@teemill/platform 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Platform API
5
- * Manage Your podOS platform Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage Your podOS platform
6
+ *
7
+ * The version of the OpenAPI document: 0.11.0
6
8
  *
7
- * The version of the OpenAPI document: 0.9.0
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -38,6 +38,307 @@ export const OrderStatus = {
38
38
  Complete: 'complete',
39
39
  Refunded: 'refunded'
40
40
  };
41
+ export const OutputPositionEnum = {
42
+ Center: 'center',
43
+ Top: 'top',
44
+ Left: 'left',
45
+ Bottom: 'bottom',
46
+ Right: 'right',
47
+ RightTop: 'right-top',
48
+ RightBottom: 'right-bottom',
49
+ LeftTop: 'left-top',
50
+ LeftBottom: 'left-bottom'
51
+ };
52
+ export const OutputFileFormatEnum = {
53
+ Png: 'png',
54
+ Jpg: 'jpg',
55
+ Jpeg: 'jpeg',
56
+ Webp: 'webp',
57
+ Pdf: 'pdf'
58
+ };
59
+ export const ProductAttributeValuesInnerThumbnailTypeEnum = {
60
+ Text: 'text',
61
+ Color: 'color',
62
+ Image: 'image'
63
+ };
64
+ export const VariantAttributeThumbnailTypeEnum = {
65
+ Text: 'text',
66
+ Color: 'color',
67
+ Image: 'image'
68
+ };
69
+ /**
70
+ * CustomersApi - axios parameter creator
71
+ * @export
72
+ */
73
+ export const CustomersApiAxiosParamCreator = function (configuration) {
74
+ return {
75
+ /**
76
+ * Export customers as a CSV file
77
+ * @summary Export customers
78
+ * @param {string} project Project unique identifier
79
+ * @param {string} platformId The platform identifier
80
+ * @param {*} [options] Override http request option.
81
+ * @throws {RequiredError}
82
+ */
83
+ exportCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
84
+ // verify required parameter 'project' is not null or undefined
85
+ assertParamExists('exportCustomers', 'project', project);
86
+ // verify required parameter 'platformId' is not null or undefined
87
+ assertParamExists('exportCustomers', 'platformId', platformId);
88
+ const localVarPath = `/v1/platform/{platformId}/customers/export`
89
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
90
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
91
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
92
+ let baseOptions;
93
+ if (configuration) {
94
+ baseOptions = configuration.baseOptions;
95
+ }
96
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
97
+ const localVarHeaderParameter = {};
98
+ const localVarQueryParameter = {};
99
+ // authentication session-oauth required
100
+ // oauth required
101
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
102
+ // authentication api-key required
103
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
104
+ if (project !== undefined) {
105
+ localVarQueryParameter['project'] = project;
106
+ }
107
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
108
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
109
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
110
+ return {
111
+ url: toPathString(localVarUrlObj),
112
+ options: localVarRequestOptions,
113
+ };
114
+ }),
115
+ /**
116
+ * Get a customer for a platform by a given customer ID.
117
+ * @summary Get customer
118
+ * @param {string} project Project unique identifier
119
+ * @param {string} platformId The platform identifier
120
+ * @param {string} customerId The customer identifier
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ getCustomer: (project_1, platformId_1, customerId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, customerId_1, ...args_1], void 0, function* (project, platformId, customerId, options = {}) {
125
+ // verify required parameter 'project' is not null or undefined
126
+ assertParamExists('getCustomer', 'project', project);
127
+ // verify required parameter 'platformId' is not null or undefined
128
+ assertParamExists('getCustomer', 'platformId', platformId);
129
+ // verify required parameter 'customerId' is not null or undefined
130
+ assertParamExists('getCustomer', 'customerId', customerId);
131
+ const localVarPath = `/v1/platform/{platformId}/customers/{customerId}`
132
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
133
+ .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
135
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
136
+ let baseOptions;
137
+ if (configuration) {
138
+ baseOptions = configuration.baseOptions;
139
+ }
140
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
141
+ const localVarHeaderParameter = {};
142
+ const localVarQueryParameter = {};
143
+ // authentication session-oauth required
144
+ // oauth required
145
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
146
+ // authentication api-key required
147
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
148
+ if (project !== undefined) {
149
+ localVarQueryParameter['project'] = project;
150
+ }
151
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
152
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
154
+ return {
155
+ url: toPathString(localVarUrlObj),
156
+ options: localVarRequestOptions,
157
+ };
158
+ }),
159
+ /**
160
+ * List customers for a platform
161
+ * @summary List customers
162
+ * @param {string} project Project unique identifier
163
+ * @param {string} platformId The platform identifier
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ listCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
168
+ // verify required parameter 'project' is not null or undefined
169
+ assertParamExists('listCustomers', 'project', project);
170
+ // verify required parameter 'platformId' is not null or undefined
171
+ assertParamExists('listCustomers', 'platformId', platformId);
172
+ const localVarPath = `/v1/platform/{platformId}/customers`
173
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
174
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
175
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
176
+ let baseOptions;
177
+ if (configuration) {
178
+ baseOptions = configuration.baseOptions;
179
+ }
180
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
181
+ const localVarHeaderParameter = {};
182
+ const localVarQueryParameter = {};
183
+ // authentication session-oauth required
184
+ // oauth required
185
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
186
+ // authentication api-key required
187
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
188
+ if (project !== undefined) {
189
+ localVarQueryParameter['project'] = project;
190
+ }
191
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
192
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
193
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
194
+ return {
195
+ url: toPathString(localVarUrlObj),
196
+ options: localVarRequestOptions,
197
+ };
198
+ }),
199
+ };
200
+ };
201
+ /**
202
+ * CustomersApi - functional programming interface
203
+ * @export
204
+ */
205
+ export const CustomersApiFp = function (configuration) {
206
+ const localVarAxiosParamCreator = CustomersApiAxiosParamCreator(configuration);
207
+ return {
208
+ /**
209
+ * Export customers as a CSV file
210
+ * @summary Export customers
211
+ * @param {string} project Project unique identifier
212
+ * @param {string} platformId The platform identifier
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ exportCustomers(project, platformId, options) {
217
+ return __awaiter(this, void 0, void 0, function* () {
218
+ var _a, _b, _c;
219
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, options);
220
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
221
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
222
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
223
+ });
224
+ },
225
+ /**
226
+ * Get a customer for a platform by a given customer ID.
227
+ * @summary Get customer
228
+ * @param {string} project Project unique identifier
229
+ * @param {string} platformId The platform identifier
230
+ * @param {string} customerId The customer identifier
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ getCustomer(project, platformId, customerId, options) {
235
+ return __awaiter(this, void 0, void 0, function* () {
236
+ var _a, _b, _c;
237
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomer(project, platformId, customerId, options);
238
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
239
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.getCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
240
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
241
+ });
242
+ },
243
+ /**
244
+ * List customers for a platform
245
+ * @summary List customers
246
+ * @param {string} project Project unique identifier
247
+ * @param {string} platformId The platform identifier
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ listCustomers(project, platformId, options) {
252
+ return __awaiter(this, void 0, void 0, function* () {
253
+ var _a, _b, _c;
254
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, options);
255
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
256
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CustomersApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
257
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
258
+ });
259
+ },
260
+ };
261
+ };
262
+ /**
263
+ * CustomersApi - factory interface
264
+ * @export
265
+ */
266
+ export const CustomersApiFactory = function (configuration, basePath, axios) {
267
+ const localVarFp = CustomersApiFp(configuration);
268
+ return {
269
+ /**
270
+ * Export customers as a CSV file
271
+ * @summary Export customers
272
+ * @param {CustomersApiExportCustomersRequest} requestParameters Request parameters.
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ exportCustomers(requestParameters, options) {
277
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
278
+ },
279
+ /**
280
+ * Get a customer for a platform by a given customer ID.
281
+ * @summary Get customer
282
+ * @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ getCustomer(requestParameters, options) {
287
+ return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
288
+ },
289
+ /**
290
+ * List customers for a platform
291
+ * @summary List customers
292
+ * @param {CustomersApiListCustomersRequest} requestParameters Request parameters.
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ listCustomers(requestParameters, options) {
297
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
298
+ },
299
+ };
300
+ };
301
+ /**
302
+ * CustomersApi - object-oriented interface
303
+ * @export
304
+ * @class CustomersApi
305
+ * @extends {BaseAPI}
306
+ */
307
+ export class CustomersApi extends BaseAPI {
308
+ /**
309
+ * Export customers as a CSV file
310
+ * @summary Export customers
311
+ * @param {CustomersApiExportCustomersRequest} requestParameters Request parameters.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ * @memberof CustomersApi
315
+ */
316
+ exportCustomers(requestParameters, options) {
317
+ return CustomersApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
318
+ }
319
+ /**
320
+ * Get a customer for a platform by a given customer ID.
321
+ * @summary Get customer
322
+ * @param {CustomersApiGetCustomerRequest} requestParameters Request parameters.
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ * @memberof CustomersApi
326
+ */
327
+ getCustomer(requestParameters, options) {
328
+ return CustomersApiFp(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
329
+ }
330
+ /**
331
+ * List customers for a platform
332
+ * @summary List customers
333
+ * @param {CustomersApiListCustomersRequest} requestParameters Request parameters.
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ * @memberof CustomersApi
337
+ */
338
+ listCustomers(requestParameters, options) {
339
+ return CustomersApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
340
+ }
341
+ }
41
342
  /**
42
343
  * OrdersApi - axios parameter creator
43
344
  * @export
@@ -622,6 +923,46 @@ export class OrdersApi extends BaseAPI {
622
923
  */
623
924
  export const PlatformApiAxiosParamCreator = function (configuration) {
624
925
  return {
926
+ /**
927
+ * Export customers as a CSV file
928
+ * @summary Export customers
929
+ * @param {string} project Project unique identifier
930
+ * @param {string} platformId The platform identifier
931
+ * @param {*} [options] Override http request option.
932
+ * @throws {RequiredError}
933
+ */
934
+ exportCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
935
+ // verify required parameter 'project' is not null or undefined
936
+ assertParamExists('exportCustomers', 'project', project);
937
+ // verify required parameter 'platformId' is not null or undefined
938
+ assertParamExists('exportCustomers', 'platformId', platformId);
939
+ const localVarPath = `/v1/platform/{platformId}/customers/export`
940
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
941
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
942
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
943
+ let baseOptions;
944
+ if (configuration) {
945
+ baseOptions = configuration.baseOptions;
946
+ }
947
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
948
+ const localVarHeaderParameter = {};
949
+ const localVarQueryParameter = {};
950
+ // authentication session-oauth required
951
+ // oauth required
952
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
953
+ // authentication api-key required
954
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
955
+ if (project !== undefined) {
956
+ localVarQueryParameter['project'] = project;
957
+ }
958
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
959
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
960
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
961
+ return {
962
+ url: toPathString(localVarUrlObj),
963
+ options: localVarRequestOptions,
964
+ };
965
+ }),
625
966
  /**
626
967
  * Export orders as a CSV file
627
968
  * @summary Export orders
@@ -681,24 +1022,24 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
681
1022
  };
682
1023
  }),
683
1024
  /**
684
- * Get a fulfillment for a platform by a given fulfillment ID.
685
- * @summary Get fulfillment
1025
+ * Get a customer for a platform by a given customer ID.
1026
+ * @summary Get customer
686
1027
  * @param {string} project Project unique identifier
687
1028
  * @param {string} platformId The platform identifier
688
- * @param {string} fulfillmentId The fulfillment identifier
1029
+ * @param {string} customerId The customer identifier
689
1030
  * @param {*} [options] Override http request option.
690
1031
  * @throws {RequiredError}
691
1032
  */
692
- getFulfillment: (project_1, platformId_1, fulfillmentId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, fulfillmentId_1, ...args_1], void 0, function* (project, platformId, fulfillmentId, options = {}) {
1033
+ getCustomer: (project_1, platformId_1, customerId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, customerId_1, ...args_1], void 0, function* (project, platformId, customerId, options = {}) {
693
1034
  // verify required parameter 'project' is not null or undefined
694
- assertParamExists('getFulfillment', 'project', project);
1035
+ assertParamExists('getCustomer', 'project', project);
695
1036
  // verify required parameter 'platformId' is not null or undefined
696
- assertParamExists('getFulfillment', 'platformId', platformId);
697
- // verify required parameter 'fulfillmentId' is not null or undefined
698
- assertParamExists('getFulfillment', 'fulfillmentId', fulfillmentId);
699
- const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
1037
+ assertParamExists('getCustomer', 'platformId', platformId);
1038
+ // verify required parameter 'customerId' is not null or undefined
1039
+ assertParamExists('getCustomer', 'customerId', customerId);
1040
+ const localVarPath = `/v1/platform/{platformId}/customers/{customerId}`
700
1041
  .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
701
- .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
1042
+ .replace(`{${"customerId"}}`, encodeURIComponent(String(customerId)));
702
1043
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
703
1044
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
704
1045
  let baseOptions;
@@ -725,24 +1066,68 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
725
1066
  };
726
1067
  }),
727
1068
  /**
728
- * Get an order for a platform by a given order ID.
729
- * @summary Get order
1069
+ * Get a fulfillment for a platform by a given fulfillment ID.
1070
+ * @summary Get fulfillment
730
1071
  * @param {string} project Project unique identifier
731
1072
  * @param {string} platformId The platform identifier
732
- * @param {string} orderId The order identifier
1073
+ * @param {string} fulfillmentId The fulfillment identifier
733
1074
  * @param {*} [options] Override http request option.
734
1075
  * @throws {RequiredError}
735
1076
  */
736
- getOrder: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
1077
+ getFulfillment: (project_1, platformId_1, fulfillmentId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, fulfillmentId_1, ...args_1], void 0, function* (project, platformId, fulfillmentId, options = {}) {
737
1078
  // verify required parameter 'project' is not null or undefined
738
- assertParamExists('getOrder', 'project', project);
1079
+ assertParamExists('getFulfillment', 'project', project);
739
1080
  // verify required parameter 'platformId' is not null or undefined
740
- assertParamExists('getOrder', 'platformId', platformId);
741
- // verify required parameter 'orderId' is not null or undefined
742
- assertParamExists('getOrder', 'orderId', orderId);
743
- const localVarPath = `/v1/platform/{platformId}/orders/{orderId}`
744
- .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
745
- .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
1081
+ assertParamExists('getFulfillment', 'platformId', platformId);
1082
+ // verify required parameter 'fulfillmentId' is not null or undefined
1083
+ assertParamExists('getFulfillment', 'fulfillmentId', fulfillmentId);
1084
+ const localVarPath = `/v1/platform/{platformId}/fulfillments/{fulfillmentId}`
1085
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1086
+ .replace(`{${"fulfillmentId"}}`, encodeURIComponent(String(fulfillmentId)));
1087
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1088
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1089
+ let baseOptions;
1090
+ if (configuration) {
1091
+ baseOptions = configuration.baseOptions;
1092
+ }
1093
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1094
+ const localVarHeaderParameter = {};
1095
+ const localVarQueryParameter = {};
1096
+ // authentication session-oauth required
1097
+ // oauth required
1098
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1099
+ // authentication api-key required
1100
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1101
+ if (project !== undefined) {
1102
+ localVarQueryParameter['project'] = project;
1103
+ }
1104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1106
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1107
+ return {
1108
+ url: toPathString(localVarUrlObj),
1109
+ options: localVarRequestOptions,
1110
+ };
1111
+ }),
1112
+ /**
1113
+ * Get an order for a platform by a given order ID.
1114
+ * @summary Get order
1115
+ * @param {string} project Project unique identifier
1116
+ * @param {string} platformId The platform identifier
1117
+ * @param {string} orderId The order identifier
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ getOrder: (project_1, platformId_1, orderId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, orderId_1, ...args_1], void 0, function* (project, platformId, orderId, options = {}) {
1122
+ // verify required parameter 'project' is not null or undefined
1123
+ assertParamExists('getOrder', 'project', project);
1124
+ // verify required parameter 'platformId' is not null or undefined
1125
+ assertParamExists('getOrder', 'platformId', platformId);
1126
+ // verify required parameter 'orderId' is not null or undefined
1127
+ assertParamExists('getOrder', 'orderId', orderId);
1128
+ const localVarPath = `/v1/platform/{platformId}/orders/{orderId}`
1129
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1130
+ .replace(`{${"orderId"}}`, encodeURIComponent(String(orderId)));
746
1131
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
747
1132
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
748
1133
  let baseOptions;
@@ -848,6 +1233,46 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
848
1233
  options: localVarRequestOptions,
849
1234
  };
850
1235
  }),
1236
+ /**
1237
+ * List customers for a platform
1238
+ * @summary List customers
1239
+ * @param {string} project Project unique identifier
1240
+ * @param {string} platformId The platform identifier
1241
+ * @param {*} [options] Override http request option.
1242
+ * @throws {RequiredError}
1243
+ */
1244
+ listCustomers: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
1245
+ // verify required parameter 'project' is not null or undefined
1246
+ assertParamExists('listCustomers', 'project', project);
1247
+ // verify required parameter 'platformId' is not null or undefined
1248
+ assertParamExists('listCustomers', 'platformId', platformId);
1249
+ const localVarPath = `/v1/platform/{platformId}/customers`
1250
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
1251
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1252
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1253
+ let baseOptions;
1254
+ if (configuration) {
1255
+ baseOptions = configuration.baseOptions;
1256
+ }
1257
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1258
+ const localVarHeaderParameter = {};
1259
+ const localVarQueryParameter = {};
1260
+ // authentication session-oauth required
1261
+ // oauth required
1262
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1263
+ // authentication api-key required
1264
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1265
+ if (project !== undefined) {
1266
+ localVarQueryParameter['project'] = project;
1267
+ }
1268
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1269
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1270
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1271
+ return {
1272
+ url: toPathString(localVarUrlObj),
1273
+ options: localVarRequestOptions,
1274
+ };
1275
+ }),
851
1276
  /**
852
1277
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
853
1278
  * @summary List orders
@@ -1002,6 +1427,104 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
1002
1427
  options: localVarRequestOptions,
1003
1428
  };
1004
1429
  }),
1430
+ /**
1431
+ * Updates the warehouse product and its variants
1432
+ * @summary Update warehouse product
1433
+ * @param {string} project Project unique identifier
1434
+ * @param {string} platformId The platform identifier
1435
+ * @param {string} productId Products unique identifier
1436
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1437
+ * @param {*} [options] Override http request option.
1438
+ * @throws {RequiredError}
1439
+ */
1440
+ updateProduct: (project_1, platformId_1, productId_1, updateProductRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, productId_1, updateProductRequest_1, ...args_1], void 0, function* (project, platformId, productId, updateProductRequest, options = {}) {
1441
+ // verify required parameter 'project' is not null or undefined
1442
+ assertParamExists('updateProduct', 'project', project);
1443
+ // verify required parameter 'platformId' is not null or undefined
1444
+ assertParamExists('updateProduct', 'platformId', platformId);
1445
+ // verify required parameter 'productId' is not null or undefined
1446
+ assertParamExists('updateProduct', 'productId', productId);
1447
+ // verify required parameter 'updateProductRequest' is not null or undefined
1448
+ assertParamExists('updateProduct', 'updateProductRequest', updateProductRequest);
1449
+ const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
1450
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1451
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
1452
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1453
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1454
+ let baseOptions;
1455
+ if (configuration) {
1456
+ baseOptions = configuration.baseOptions;
1457
+ }
1458
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1459
+ const localVarHeaderParameter = {};
1460
+ const localVarQueryParameter = {};
1461
+ // authentication session-oauth required
1462
+ // oauth required
1463
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1464
+ // authentication api-key required
1465
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1466
+ if (project !== undefined) {
1467
+ localVarQueryParameter['project'] = project;
1468
+ }
1469
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1470
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1471
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1472
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1473
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration);
1474
+ return {
1475
+ url: toPathString(localVarUrlObj),
1476
+ options: localVarRequestOptions,
1477
+ };
1478
+ }),
1479
+ /**
1480
+ * Updates the warehouse variant
1481
+ * @summary Update warehouse variant
1482
+ * @param {string} project Project unique identifier
1483
+ * @param {string} platformId The platform identifier
1484
+ * @param {string} variantId Variants unique identifier
1485
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ */
1489
+ updateVariant: (project_1, platformId_1, variantId_1, updateVariantRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, variantId_1, updateVariantRequest_1, ...args_1], void 0, function* (project, platformId, variantId, updateVariantRequest, options = {}) {
1490
+ // verify required parameter 'project' is not null or undefined
1491
+ assertParamExists('updateVariant', 'project', project);
1492
+ // verify required parameter 'platformId' is not null or undefined
1493
+ assertParamExists('updateVariant', 'platformId', platformId);
1494
+ // verify required parameter 'variantId' is not null or undefined
1495
+ assertParamExists('updateVariant', 'variantId', variantId);
1496
+ // verify required parameter 'updateVariantRequest' is not null or undefined
1497
+ assertParamExists('updateVariant', 'updateVariantRequest', updateVariantRequest);
1498
+ const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
1499
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
1500
+ .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
1501
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1502
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1503
+ let baseOptions;
1504
+ if (configuration) {
1505
+ baseOptions = configuration.baseOptions;
1506
+ }
1507
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1508
+ const localVarHeaderParameter = {};
1509
+ const localVarQueryParameter = {};
1510
+ // authentication session-oauth required
1511
+ // oauth required
1512
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1513
+ // authentication api-key required
1514
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1515
+ if (project !== undefined) {
1516
+ localVarQueryParameter['project'] = project;
1517
+ }
1518
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1519
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1520
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1521
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1522
+ localVarRequestOptions.data = serializeDataIfNeeded(updateVariantRequest, localVarRequestOptions, configuration);
1523
+ return {
1524
+ url: toPathString(localVarUrlObj),
1525
+ options: localVarRequestOptions,
1526
+ };
1527
+ }),
1005
1528
  };
1006
1529
  };
1007
1530
  /**
@@ -1011,6 +1534,23 @@ export const PlatformApiAxiosParamCreator = function (configuration) {
1011
1534
  export const PlatformApiFp = function (configuration) {
1012
1535
  const localVarAxiosParamCreator = PlatformApiAxiosParamCreator(configuration);
1013
1536
  return {
1537
+ /**
1538
+ * Export customers as a CSV file
1539
+ * @summary Export customers
1540
+ * @param {string} project Project unique identifier
1541
+ * @param {string} platformId The platform identifier
1542
+ * @param {*} [options] Override http request option.
1543
+ * @throws {RequiredError}
1544
+ */
1545
+ exportCustomers(project, platformId, options) {
1546
+ return __awaiter(this, void 0, void 0, function* () {
1547
+ var _a, _b, _c;
1548
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.exportCustomers(project, platformId, options);
1549
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1550
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.exportCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1551
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1552
+ });
1553
+ },
1014
1554
  /**
1015
1555
  * Export orders as a CSV file
1016
1556
  * @summary Export orders
@@ -1031,6 +1571,24 @@ export const PlatformApiFp = function (configuration) {
1031
1571
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1032
1572
  });
1033
1573
  },
1574
+ /**
1575
+ * Get a customer for a platform by a given customer ID.
1576
+ * @summary Get customer
1577
+ * @param {string} project Project unique identifier
1578
+ * @param {string} platformId The platform identifier
1579
+ * @param {string} customerId The customer identifier
1580
+ * @param {*} [options] Override http request option.
1581
+ * @throws {RequiredError}
1582
+ */
1583
+ getCustomer(project, platformId, customerId, options) {
1584
+ return __awaiter(this, void 0, void 0, function* () {
1585
+ var _a, _b, _c;
1586
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomer(project, platformId, customerId, options);
1587
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1588
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.getCustomer']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1589
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1590
+ });
1591
+ },
1034
1592
  /**
1035
1593
  * Get a fulfillment for a platform by a given fulfillment ID.
1036
1594
  * @summary Get fulfillment
@@ -1101,6 +1659,23 @@ export const PlatformApiFp = function (configuration) {
1101
1659
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1102
1660
  });
1103
1661
  },
1662
+ /**
1663
+ * List customers for a platform
1664
+ * @summary List customers
1665
+ * @param {string} project Project unique identifier
1666
+ * @param {string} platformId The platform identifier
1667
+ * @param {*} [options] Override http request option.
1668
+ * @throws {RequiredError}
1669
+ */
1670
+ listCustomers(project, platformId, options) {
1671
+ return __awaiter(this, void 0, void 0, function* () {
1672
+ var _a, _b, _c;
1673
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCustomers(project, platformId, options);
1674
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1675
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.listCustomers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1677
+ });
1678
+ },
1104
1679
  /**
1105
1680
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1106
1681
  * @summary List orders
@@ -1159,6 +1734,44 @@ export const PlatformApiFp = function (configuration) {
1159
1734
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1160
1735
  });
1161
1736
  },
1737
+ /**
1738
+ * Updates the warehouse product and its variants
1739
+ * @summary Update warehouse product
1740
+ * @param {string} project Project unique identifier
1741
+ * @param {string} platformId The platform identifier
1742
+ * @param {string} productId Products unique identifier
1743
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
1744
+ * @param {*} [options] Override http request option.
1745
+ * @throws {RequiredError}
1746
+ */
1747
+ updateProduct(project, platformId, productId, updateProductRequest, options) {
1748
+ return __awaiter(this, void 0, void 0, function* () {
1749
+ var _a, _b, _c;
1750
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
1751
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1752
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.updateProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1753
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1754
+ });
1755
+ },
1756
+ /**
1757
+ * Updates the warehouse variant
1758
+ * @summary Update warehouse variant
1759
+ * @param {string} project Project unique identifier
1760
+ * @param {string} platformId The platform identifier
1761
+ * @param {string} variantId Variants unique identifier
1762
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
1763
+ * @param {*} [options] Override http request option.
1764
+ * @throws {RequiredError}
1765
+ */
1766
+ updateVariant(project, platformId, variantId, updateVariantRequest, options) {
1767
+ return __awaiter(this, void 0, void 0, function* () {
1768
+ var _a, _b, _c;
1769
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
1770
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1771
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PlatformApi.updateVariant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1772
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1773
+ });
1774
+ },
1162
1775
  };
1163
1776
  };
1164
1777
  /**
@@ -1168,6 +1781,16 @@ export const PlatformApiFp = function (configuration) {
1168
1781
  export const PlatformApiFactory = function (configuration, basePath, axios) {
1169
1782
  const localVarFp = PlatformApiFp(configuration);
1170
1783
  return {
1784
+ /**
1785
+ * Export customers as a CSV file
1786
+ * @summary Export customers
1787
+ * @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
1788
+ * @param {*} [options] Override http request option.
1789
+ * @throws {RequiredError}
1790
+ */
1791
+ exportCustomers(requestParameters, options) {
1792
+ return localVarFp.exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
1793
+ },
1171
1794
  /**
1172
1795
  * Export orders as a CSV file
1173
1796
  * @summary Export orders
@@ -1178,6 +1801,16 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
1178
1801
  exportOrders(requestParameters, options) {
1179
1802
  return localVarFp.exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(axios, basePath));
1180
1803
  },
1804
+ /**
1805
+ * Get a customer for a platform by a given customer ID.
1806
+ * @summary Get customer
1807
+ * @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
1808
+ * @param {*} [options] Override http request option.
1809
+ * @throws {RequiredError}
1810
+ */
1811
+ getCustomer(requestParameters, options) {
1812
+ return localVarFp.getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(axios, basePath));
1813
+ },
1181
1814
  /**
1182
1815
  * Get a fulfillment for a platform by a given fulfillment ID.
1183
1816
  * @summary Get fulfillment
@@ -1218,6 +1851,16 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
1218
1851
  listAvailableFulfillers(requestParameters, options) {
1219
1852
  return localVarFp.listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(axios, basePath));
1220
1853
  },
1854
+ /**
1855
+ * List customers for a platform
1856
+ * @summary List customers
1857
+ * @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
1858
+ * @param {*} [options] Override http request option.
1859
+ * @throws {RequiredError}
1860
+ */
1861
+ listCustomers(requestParameters, options) {
1862
+ return localVarFp.listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
1863
+ },
1221
1864
  /**
1222
1865
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1223
1866
  * @summary List orders
@@ -1248,6 +1891,26 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
1248
1891
  updatePlatform(requestParameters, options) {
1249
1892
  return localVarFp.updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(axios, basePath));
1250
1893
  },
1894
+ /**
1895
+ * Updates the warehouse product and its variants
1896
+ * @summary Update warehouse product
1897
+ * @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
1898
+ * @param {*} [options] Override http request option.
1899
+ * @throws {RequiredError}
1900
+ */
1901
+ updateProduct(requestParameters, options) {
1902
+ return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
1903
+ },
1904
+ /**
1905
+ * Updates the warehouse variant
1906
+ * @summary Update warehouse variant
1907
+ * @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
1908
+ * @param {*} [options] Override http request option.
1909
+ * @throws {RequiredError}
1910
+ */
1911
+ updateVariant(requestParameters, options) {
1912
+ return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
1913
+ },
1251
1914
  };
1252
1915
  };
1253
1916
  /**
@@ -1257,6 +1920,17 @@ export const PlatformApiFactory = function (configuration, basePath, axios) {
1257
1920
  * @extends {BaseAPI}
1258
1921
  */
1259
1922
  export class PlatformApi extends BaseAPI {
1923
+ /**
1924
+ * Export customers as a CSV file
1925
+ * @summary Export customers
1926
+ * @param {PlatformApiExportCustomersRequest} requestParameters Request parameters.
1927
+ * @param {*} [options] Override http request option.
1928
+ * @throws {RequiredError}
1929
+ * @memberof PlatformApi
1930
+ */
1931
+ exportCustomers(requestParameters, options) {
1932
+ return PlatformApiFp(this.configuration).exportCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
1933
+ }
1260
1934
  /**
1261
1935
  * Export orders as a CSV file
1262
1936
  * @summary Export orders
@@ -1268,6 +1942,17 @@ export class PlatformApi extends BaseAPI {
1268
1942
  exportOrders(requestParameters, options) {
1269
1943
  return PlatformApiFp(this.configuration).exportOrders(requestParameters.project, requestParameters.platformId, requestParameters.start, requestParameters.end, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1270
1944
  }
1945
+ /**
1946
+ * Get a customer for a platform by a given customer ID.
1947
+ * @summary Get customer
1948
+ * @param {PlatformApiGetCustomerRequest} requestParameters Request parameters.
1949
+ * @param {*} [options] Override http request option.
1950
+ * @throws {RequiredError}
1951
+ * @memberof PlatformApi
1952
+ */
1953
+ getCustomer(requestParameters, options) {
1954
+ return PlatformApiFp(this.configuration).getCustomer(requestParameters.project, requestParameters.platformId, requestParameters.customerId, options).then((request) => request(this.axios, this.basePath));
1955
+ }
1271
1956
  /**
1272
1957
  * Get a fulfillment for a platform by a given fulfillment ID.
1273
1958
  * @summary Get fulfillment
@@ -1312,6 +1997,17 @@ export class PlatformApi extends BaseAPI {
1312
1997
  listAvailableFulfillers(requestParameters, options) {
1313
1998
  return PlatformApiFp(this.configuration).listAvailableFulfillers(requestParameters.project, requestParameters.platformId, requestParameters.fulfillmentId, options).then((request) => request(this.axios, this.basePath));
1314
1999
  }
2000
+ /**
2001
+ * List customers for a platform
2002
+ * @summary List customers
2003
+ * @param {PlatformApiListCustomersRequest} requestParameters Request parameters.
2004
+ * @param {*} [options] Override http request option.
2005
+ * @throws {RequiredError}
2006
+ * @memberof PlatformApi
2007
+ */
2008
+ listCustomers(requestParameters, options) {
2009
+ return PlatformApiFp(this.configuration).listCustomers(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
2010
+ }
1315
2011
  /**
1316
2012
  * Lists all orders placed on projects belonging to this platform, paginated into configurable chunks.
1317
2013
  * @summary List orders
@@ -1345,4 +2041,272 @@ export class PlatformApi extends BaseAPI {
1345
2041
  updatePlatform(requestParameters, options) {
1346
2042
  return PlatformApiFp(this.configuration).updatePlatform(requestParameters.project, requestParameters.updatePlatformRequest, options).then((request) => request(this.axios, this.basePath));
1347
2043
  }
2044
+ /**
2045
+ * Updates the warehouse product and its variants
2046
+ * @summary Update warehouse product
2047
+ * @param {PlatformApiUpdateProductRequest} requestParameters Request parameters.
2048
+ * @param {*} [options] Override http request option.
2049
+ * @throws {RequiredError}
2050
+ * @memberof PlatformApi
2051
+ */
2052
+ updateProduct(requestParameters, options) {
2053
+ return PlatformApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
2054
+ }
2055
+ /**
2056
+ * Updates the warehouse variant
2057
+ * @summary Update warehouse variant
2058
+ * @param {PlatformApiUpdateVariantRequest} requestParameters Request parameters.
2059
+ * @param {*} [options] Override http request option.
2060
+ * @throws {RequiredError}
2061
+ * @memberof PlatformApi
2062
+ */
2063
+ updateVariant(requestParameters, options) {
2064
+ return PlatformApiFp(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
2065
+ }
2066
+ }
2067
+ /**
2068
+ * ProductsApi - axios parameter creator
2069
+ * @export
2070
+ */
2071
+ export const ProductsApiAxiosParamCreator = function (configuration) {
2072
+ return {
2073
+ /**
2074
+ * Updates the warehouse product and its variants
2075
+ * @summary Update warehouse product
2076
+ * @param {string} project Project unique identifier
2077
+ * @param {string} platformId The platform identifier
2078
+ * @param {string} productId Products unique identifier
2079
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
2080
+ * @param {*} [options] Override http request option.
2081
+ * @throws {RequiredError}
2082
+ */
2083
+ updateProduct: (project_1, platformId_1, productId_1, updateProductRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, productId_1, updateProductRequest_1, ...args_1], void 0, function* (project, platformId, productId, updateProductRequest, options = {}) {
2084
+ // verify required parameter 'project' is not null or undefined
2085
+ assertParamExists('updateProduct', 'project', project);
2086
+ // verify required parameter 'platformId' is not null or undefined
2087
+ assertParamExists('updateProduct', 'platformId', platformId);
2088
+ // verify required parameter 'productId' is not null or undefined
2089
+ assertParamExists('updateProduct', 'productId', productId);
2090
+ // verify required parameter 'updateProductRequest' is not null or undefined
2091
+ assertParamExists('updateProduct', 'updateProductRequest', updateProductRequest);
2092
+ const localVarPath = `/v1/platform/{platformId}/warehouse/products/{productId}`
2093
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
2094
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
2095
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2096
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2097
+ let baseOptions;
2098
+ if (configuration) {
2099
+ baseOptions = configuration.baseOptions;
2100
+ }
2101
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2102
+ const localVarHeaderParameter = {};
2103
+ const localVarQueryParameter = {};
2104
+ // authentication session-oauth required
2105
+ // oauth required
2106
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2107
+ // authentication api-key required
2108
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2109
+ if (project !== undefined) {
2110
+ localVarQueryParameter['project'] = project;
2111
+ }
2112
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2113
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2115
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2116
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequest, localVarRequestOptions, configuration);
2117
+ return {
2118
+ url: toPathString(localVarUrlObj),
2119
+ options: localVarRequestOptions,
2120
+ };
2121
+ }),
2122
+ };
2123
+ };
2124
+ /**
2125
+ * ProductsApi - functional programming interface
2126
+ * @export
2127
+ */
2128
+ export const ProductsApiFp = function (configuration) {
2129
+ const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration);
2130
+ return {
2131
+ /**
2132
+ * Updates the warehouse product and its variants
2133
+ * @summary Update warehouse product
2134
+ * @param {string} project Project unique identifier
2135
+ * @param {string} platformId The platform identifier
2136
+ * @param {string} productId Products unique identifier
2137
+ * @param {UpdateProductRequest} updateProductRequest Update a platform warehouse product
2138
+ * @param {*} [options] Override http request option.
2139
+ * @throws {RequiredError}
2140
+ */
2141
+ updateProduct(project, platformId, productId, updateProductRequest, options) {
2142
+ return __awaiter(this, void 0, void 0, function* () {
2143
+ var _a, _b, _c;
2144
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateProduct(project, platformId, productId, updateProductRequest, options);
2145
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2146
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProductsApi.updateProduct']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2147
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2148
+ });
2149
+ },
2150
+ };
2151
+ };
2152
+ /**
2153
+ * ProductsApi - factory interface
2154
+ * @export
2155
+ */
2156
+ export const ProductsApiFactory = function (configuration, basePath, axios) {
2157
+ const localVarFp = ProductsApiFp(configuration);
2158
+ return {
2159
+ /**
2160
+ * Updates the warehouse product and its variants
2161
+ * @summary Update warehouse product
2162
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
2163
+ * @param {*} [options] Override http request option.
2164
+ * @throws {RequiredError}
2165
+ */
2166
+ updateProduct(requestParameters, options) {
2167
+ return localVarFp.updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(axios, basePath));
2168
+ },
2169
+ };
2170
+ };
2171
+ /**
2172
+ * ProductsApi - object-oriented interface
2173
+ * @export
2174
+ * @class ProductsApi
2175
+ * @extends {BaseAPI}
2176
+ */
2177
+ export class ProductsApi extends BaseAPI {
2178
+ /**
2179
+ * Updates the warehouse product and its variants
2180
+ * @summary Update warehouse product
2181
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
2182
+ * @param {*} [options] Override http request option.
2183
+ * @throws {RequiredError}
2184
+ * @memberof ProductsApi
2185
+ */
2186
+ updateProduct(requestParameters, options) {
2187
+ return ProductsApiFp(this.configuration).updateProduct(requestParameters.project, requestParameters.platformId, requestParameters.productId, requestParameters.updateProductRequest, options).then((request) => request(this.axios, this.basePath));
2188
+ }
2189
+ }
2190
+ /**
2191
+ * VariantsApi - axios parameter creator
2192
+ * @export
2193
+ */
2194
+ export const VariantsApiAxiosParamCreator = function (configuration) {
2195
+ return {
2196
+ /**
2197
+ * Updates the warehouse variant
2198
+ * @summary Update warehouse variant
2199
+ * @param {string} project Project unique identifier
2200
+ * @param {string} platformId The platform identifier
2201
+ * @param {string} variantId Variants unique identifier
2202
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
2203
+ * @param {*} [options] Override http request option.
2204
+ * @throws {RequiredError}
2205
+ */
2206
+ updateVariant: (project_1, platformId_1, variantId_1, updateVariantRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, variantId_1, updateVariantRequest_1, ...args_1], void 0, function* (project, platformId, variantId, updateVariantRequest, options = {}) {
2207
+ // verify required parameter 'project' is not null or undefined
2208
+ assertParamExists('updateVariant', 'project', project);
2209
+ // verify required parameter 'platformId' is not null or undefined
2210
+ assertParamExists('updateVariant', 'platformId', platformId);
2211
+ // verify required parameter 'variantId' is not null or undefined
2212
+ assertParamExists('updateVariant', 'variantId', variantId);
2213
+ // verify required parameter 'updateVariantRequest' is not null or undefined
2214
+ assertParamExists('updateVariant', 'updateVariantRequest', updateVariantRequest);
2215
+ const localVarPath = `/v1/platform/{platformId}/warehouse/variants/{variantId}`
2216
+ .replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
2217
+ .replace(`{${"variantId"}}`, encodeURIComponent(String(variantId)));
2218
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2219
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2220
+ let baseOptions;
2221
+ if (configuration) {
2222
+ baseOptions = configuration.baseOptions;
2223
+ }
2224
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
2225
+ const localVarHeaderParameter = {};
2226
+ const localVarQueryParameter = {};
2227
+ // authentication session-oauth required
2228
+ // oauth required
2229
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
2230
+ // authentication api-key required
2231
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
2232
+ if (project !== undefined) {
2233
+ localVarQueryParameter['project'] = project;
2234
+ }
2235
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2236
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2237
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2238
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2239
+ localVarRequestOptions.data = serializeDataIfNeeded(updateVariantRequest, localVarRequestOptions, configuration);
2240
+ return {
2241
+ url: toPathString(localVarUrlObj),
2242
+ options: localVarRequestOptions,
2243
+ };
2244
+ }),
2245
+ };
2246
+ };
2247
+ /**
2248
+ * VariantsApi - functional programming interface
2249
+ * @export
2250
+ */
2251
+ export const VariantsApiFp = function (configuration) {
2252
+ const localVarAxiosParamCreator = VariantsApiAxiosParamCreator(configuration);
2253
+ return {
2254
+ /**
2255
+ * Updates the warehouse variant
2256
+ * @summary Update warehouse variant
2257
+ * @param {string} project Project unique identifier
2258
+ * @param {string} platformId The platform identifier
2259
+ * @param {string} variantId Variants unique identifier
2260
+ * @param {UpdateVariantRequest} updateVariantRequest Update a platform warehouse variant
2261
+ * @param {*} [options] Override http request option.
2262
+ * @throws {RequiredError}
2263
+ */
2264
+ updateVariant(project, platformId, variantId, updateVariantRequest, options) {
2265
+ return __awaiter(this, void 0, void 0, function* () {
2266
+ var _a, _b, _c;
2267
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateVariant(project, platformId, variantId, updateVariantRequest, options);
2268
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2269
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VariantsApi.updateVariant']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2270
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2271
+ });
2272
+ },
2273
+ };
2274
+ };
2275
+ /**
2276
+ * VariantsApi - factory interface
2277
+ * @export
2278
+ */
2279
+ export const VariantsApiFactory = function (configuration, basePath, axios) {
2280
+ const localVarFp = VariantsApiFp(configuration);
2281
+ return {
2282
+ /**
2283
+ * Updates the warehouse variant
2284
+ * @summary Update warehouse variant
2285
+ * @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
2286
+ * @param {*} [options] Override http request option.
2287
+ * @throws {RequiredError}
2288
+ */
2289
+ updateVariant(requestParameters, options) {
2290
+ return localVarFp.updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(axios, basePath));
2291
+ },
2292
+ };
2293
+ };
2294
+ /**
2295
+ * VariantsApi - object-oriented interface
2296
+ * @export
2297
+ * @class VariantsApi
2298
+ * @extends {BaseAPI}
2299
+ */
2300
+ export class VariantsApi extends BaseAPI {
2301
+ /**
2302
+ * Updates the warehouse variant
2303
+ * @summary Update warehouse variant
2304
+ * @param {VariantsApiUpdateVariantRequest} requestParameters Request parameters.
2305
+ * @param {*} [options] Override http request option.
2306
+ * @throws {RequiredError}
2307
+ * @memberof VariantsApi
2308
+ */
2309
+ updateVariant(requestParameters, options) {
2310
+ return VariantsApiFp(this.configuration).updateVariant(requestParameters.project, requestParameters.platformId, requestParameters.variantId, requestParameters.updateVariantRequest, options).then((request) => request(this.axios, this.basePath));
2311
+ }
1348
2312
  }