@@ -95,7 +95,7 @@ SourceSearch:
95
95
96
96
SourceType :
97
97
type : string
98
- enum : ['bigcommerce', 'commercetools', 'json']
98
+ enum : ['bigcommerce', 'commercetools', 'json', 'csv' ]
99
99
100
100
SourceCommercetools :
101
101
type : object
@@ -134,7 +134,7 @@ MethodType:
134
134
type : string
135
135
enum : ['GET', 'POST']
136
136
137
- SourceJson :
137
+ SourceJSON :
138
138
type : object
139
139
additionalProperties : false
140
140
properties :
@@ -146,11 +146,37 @@ SourceJson:
146
146
required :
147
147
- url
148
148
149
+ MappingTypeCSV :
150
+ type : string
151
+ enum : ['string','integer','float','boolean','json']
152
+
153
+ SourceCSV :
154
+ type : object
155
+ additionalProperties : false
156
+ properties :
157
+ url :
158
+ type : string
159
+ description : The URL of the file.
160
+ uniqueIDColumn :
161
+ type : string
162
+ description : The name of the column that contains the unique ID, used as `objectID` in Algolia.
163
+ mapping :
164
+ type : object
165
+ description : >
166
+ Mapping of type for every column. For example {"myColumn": "boolean", "myOtherColumn": "json"}.
167
+ additionalProperties :
168
+ $ref : ' #/MappingTypeCSV'
169
+ method :
170
+ $ref : ' #/MethodType'
171
+ required :
172
+ - url
173
+
149
174
SourceInput :
150
175
oneOf :
151
176
- $ref : ' #/SourceCommercetools'
152
177
- $ref : ' #/SourceBigCommerce'
153
- - $ref : ' #/SourceJson'
178
+ - $ref : ' #/SourceJSON'
179
+ - $ref : ' #/SourceCSV'
154
180
155
181
SourceUpdateCommercetools :
156
182
type : object
@@ -168,19 +194,9 @@ SourceUpdateCommercetools:
168
194
items :
169
195
type : string
170
196
171
- SourceUpdateJson :
172
- type : object
173
- additionalProperties : false
174
- properties :
175
- url :
176
- type : string
177
- description : The URL of the file.
178
- method :
179
- $ref : ' #/MethodType'
180
- required :
181
- - url
182
197
183
198
SourceUpdateInput :
184
199
oneOf :
185
200
- $ref : ' #/SourceUpdateCommercetools'
186
- - $ref : ' #/SourceUpdateJson'
201
+ - $ref : ' #/SourceJSON'
202
+ - $ref : ' #/SourceCSV'
0 commit comments