Skip to content

Commit 480b5ab

Browse files
refactor(specs): group files for composition api (#5122) (generated) [skip ci]
Co-authored-by: Clara Muller <[email protected]>
1 parent e7dfb35 commit 480b5ab

File tree

10 files changed

+52
-33
lines changed

10 files changed

+52
-33
lines changed

clients/algoliasearch-client-javascript/packages/client-composition/model/composition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { CompositionBehavior } from './compositionBehavior';
44

55
export type Composition = {
66
/**
7-
* Unique record identifier.
7+
* Composition unique identifier.
88
*/
99
objectID: string;
1010

clients/algoliasearch-client-javascript/packages/client-composition/model/compositionRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { TimeRange } from './timeRange';
66

77
export type CompositionRule = {
88
/**
9-
* Unique record identifier.
9+
* Composition rule unique identifier.
1010
*/
1111
objectID: string;
1212

clients/algoliasearch-client-javascript/packages/client-composition/model/deleteCompositionAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
export type DeleteCompositionAction = {
77
/**
8-
* Unique record identifier.
8+
* Composition unique identifier.
99
*/
1010
objectID: string;
1111
};

clients/algoliasearch-client-javascript/packages/client-composition/model/deleteCompositionRuleAction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
export type DeleteCompositionRuleAction = {
77
/**
8-
* Unique record identifier.
8+
* Composition rule unique identifier.
99
*/
1010
objectID: string;
1111
};

docs/bundled/composition-full.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,8 @@
10351035
},
10361036
"compositionObjectID": {
10371037
"type": "string",
1038-
"description": "Unique Composition ObjectID."
1038+
"example": "my_composition_object_id",
1039+
"description": "Composition unique identifier."
10391040
},
10401041
"query": {
10411042
"type": "string",
@@ -3755,7 +3756,7 @@
37553756
"additionalProperties": false,
37563757
"properties": {
37573758
"objectID": {
3758-
"$ref": "#/components/schemas/objectID"
3759+
"$ref": "#/components/schemas/compositionObjectID"
37593760
},
37603761
"name": {
37613762
"type": "string",
@@ -3791,7 +3792,7 @@
37913792
"additionalProperties": false,
37923793
"properties": {
37933794
"objectID": {
3794-
"$ref": "#/components/schemas/objectID"
3795+
"$ref": "#/components/schemas/compositionObjectID"
37953796
}
37963797
},
37973798
"required": [
@@ -3819,6 +3820,11 @@
38193820
"type": "string",
38203821
"description": "Unique identifier of a rule object."
38213822
},
3823+
"compositionRuleObjectID": {
3824+
"type": "string",
3825+
"example": "my_composition_rule_object_id",
3826+
"description": "Composition rule unique identifier."
3827+
},
38223828
"anchoring": {
38233829
"type": "string",
38243830
"description": "Which part of the search query the pattern should match:\n\n- `startsWith`. The pattern must match the beginning of the query.\n- `endsWith`. The pattern must match the end of the query.\n- `is`. The pattern must match the query exactly.\n- `contains`. The pattern must match anywhere in the query.\n\nEmpty queries are only allowed as patterns with `anchoring: is`.\n",
@@ -3878,7 +3884,7 @@
38783884
"additionalProperties": false,
38793885
"properties": {
38803886
"objectID": {
3881-
"$ref": "#/components/schemas/objectID"
3887+
"$ref": "#/components/schemas/compositionRuleObjectID"
38823888
},
38833889
"conditions": {
38843890
"type": "array",
@@ -3933,7 +3939,7 @@
39333939
"additionalProperties": false,
39343940
"properties": {
39353941
"objectID": {
3936-
"$ref": "#/components/schemas/objectID"
3942+
"$ref": "#/components/schemas/compositionRuleObjectID"
39373943
}
39383944
},
39393945
"required": [

docs/bundled/composition-full.yml

Lines changed: 19 additions & 14 deletions
Large diffs are not rendered by default.

docs/bundled/composition.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@
229229
"schemas": {
230230
"compositionObjectID": {
231231
"type": "string",
232-
"description": "Unique Composition ObjectID."
232+
"example": "my_composition_object_id",
233+
"description": "Composition unique identifier."
233234
},
234235
"query": {
235236
"type": "string",

docs/bundled/composition.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ paths:
454454
label: curl
455455
source: |-
456456
curl --request POST \
457-
--url https://algolia_application_id.algolia.net/1/compositions/lorem/run \
457+
--url https://algolia_application_id.algolia.net/1/compositions/my_composition_object_id/run \
458458
--header 'accept: application/json' \
459459
--header 'content-type: application/json' \
460460
--header 'x-algolia-api-key: ALGOLIA_API_KEY' \
@@ -802,7 +802,7 @@ paths:
802802
label: curl
803803
source: |-
804804
curl --request POST \
805-
--url https://algolia_application_id.algolia.net/1/compositions/lorem/facets/lorem/query \
805+
--url https://algolia_application_id.algolia.net/1/compositions/my_composition_object_id/facets/lorem/query \
806806
--header 'accept: application/json' \
807807
--header 'content-type: application/json' \
808808
--header 'x-algolia-api-key: ALGOLIA_API_KEY' \
@@ -830,7 +830,8 @@ components:
830830
schemas:
831831
compositionObjectID:
832832
type: string
833-
description: Unique Composition ObjectID.
833+
example: my_composition_object_id
834+
description: Composition unique identifier.
834835
query:
835836
type: string
836837
description: Search query.

specs/bundled/composition-full.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,8 @@ components:
719719
example: Invalid Application-Id or API-Key
720720
compositionObjectID:
721721
type: string
722-
description: Unique Composition ObjectID.
722+
example: my_composition_object_id
723+
description: Composition unique identifier.
723724
query:
724725
type: string
725726
description: Search query.
@@ -3859,7 +3860,7 @@ components:
38593860
additionalProperties: false
38603861
properties:
38613862
objectID:
3862-
$ref: '#/components/schemas/objectID'
3863+
$ref: '#/components/schemas/compositionObjectID'
38633864
name:
38643865
type: string
38653866
description: Composition name.
@@ -3886,7 +3887,7 @@ components:
38863887
additionalProperties: false
38873888
properties:
38883889
objectID:
3889-
$ref: '#/components/schemas/objectID'
3890+
$ref: '#/components/schemas/compositionObjectID'
38903891
required:
38913892
- objectID
38923893
batchCompositionAction:
@@ -3908,6 +3909,10 @@ components:
39083909
title: objectID
39093910
type: string
39103911
description: Unique identifier of a rule object.
3912+
compositionRuleObjectID:
3913+
type: string
3914+
example: my_composition_rule_object_id
3915+
description: Composition rule unique identifier.
39113916
anchoring:
39123917
type: string
39133918
description: |
@@ -3988,7 +3993,7 @@ components:
39883993
additionalProperties: false
39893994
properties:
39903995
objectID:
3991-
$ref: '#/components/schemas/objectID'
3996+
$ref: '#/components/schemas/compositionRuleObjectID'
39923997
conditions:
39933998
type: array
39943999
minItems: 0
@@ -4031,7 +4036,7 @@ components:
40314036
additionalProperties: false
40324037
properties:
40334038
objectID:
4034-
$ref: '#/components/schemas/objectID'
4039+
$ref: '#/components/schemas/compositionRuleObjectID'
40354040
required:
40364041
- objectID
40374042
rulesBatchCompositionAction:

specs/bundled/composition.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ components:
287287
schemas:
288288
compositionObjectID:
289289
type: string
290-
description: Unique Composition ObjectID.
290+
example: my_composition_object_id
291+
description: Composition unique identifier.
291292
query:
292293
type: string
293294
description: Search query.

0 commit comments

Comments
 (0)