Skip to content

Commit 24affb2

Browse files
authored
feat(specs): add recordType and fallbackIsInStockValue in inputs (#1988)
1 parent 92a43b8 commit 24affb2

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/.cache_version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.94
1+
0.0.95

specs/ingestion/common/schemas/destination.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ DestinationCreateResponse:
6161
DestinationUpdate:
6262
type: object
6363
additionalProperties: false
64-
description: Payload to partialy update a Destination.
64+
description: Payload to partially update a Destination.
6565
properties:
6666
type:
6767
$ref: '#/DestinationType'
@@ -122,9 +122,16 @@ DestinationIndexName:
122122
indexName:
123123
type: string
124124
description: The index name to store data in.
125+
recordType:
126+
$ref: '#/RecordType'
125127
required:
126128
- indexName
127129

130+
RecordType:
131+
type: string
132+
description: Determines the indexing strategy to use for a given e-commerce source.
133+
enum: [ 'product', 'variant' ]
134+
128135
DestinationInput:
129136
oneOf:
130137
- $ref: '#/DestinationIndexPrefix'

specs/ingestion/common/schemas/source.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ SourceCommercetools:
115115
type: string
116116
projectKey:
117117
type: string
118+
fallbackIsInStockValue:
119+
type: boolean
120+
default: true
121+
description: >
122+
Determines the value that will be stored in the Algolia record if there's no inventory information on the product.
118123
required:
119124
- url
120125
- projectKey

0 commit comments

Comments
 (0)