@teemill/website 0.6.0 → 0.8.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
  * Website API
5
- * Manage your Teemill Website 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 Website
6
+ *
7
+ * The version of the OpenAPI document: 0.8.0
6
8
  *
7
- * The version of the OpenAPI document: 0.6.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
@@ -57,34 +57,82 @@ export const PriceCurrencyCodeEnum = {
57
57
  Gbp: 'GBP'
58
58
  };
59
59
  /**
60
- * CrossSellApi - axios parameter creator
60
+ * BlogsApi - axios parameter creator
61
61
  * @export
62
62
  */
63
- export const CrossSellApiAxiosParamCreator = function (configuration) {
63
+ export const BlogsApiAxiosParamCreator = function (configuration) {
64
64
  return {
65
65
  /**
66
- * Attaches a list of products to the given product as cross-sell products.
67
- * @summary Attach cross-sell products
66
+ *
67
+ * @summary List website blog posts
68
68
  * @param {string} project What project it is
69
- * @param {string} productId Product\'s unique identifier
70
- * @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
69
+ * @param {number} [pageToken] Page reference token
70
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
71
+ * @param {string} [search] Search term to filter results
71
72
  * @param {*} [options] Override http request option.
72
73
  * @throws {RequiredError}
73
74
  */
74
- attachCrossSellProducts: (project_1, productId_1, attachCrossSellProductsRequest_1, ...args_1) => __awaiter(this, [project_1, productId_1, attachCrossSellProductsRequest_1, ...args_1], void 0, function* (project, productId, attachCrossSellProductsRequest, options = {}) {
75
+ listBlogs: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
75
76
  // verify required parameter 'project' is not null or undefined
76
- assertParamExists('attachCrossSellProducts', 'project', project);
77
- // verify required parameter 'productId' is not null or undefined
78
- assertParamExists('attachCrossSellProducts', 'productId', productId);
79
- const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
80
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
77
+ assertParamExists('listBlogs', 'project', project);
78
+ const localVarPath = `/v1/website/blogs`;
81
79
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
82
80
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
83
81
  let baseOptions;
84
82
  if (configuration) {
85
83
  baseOptions = configuration.baseOptions;
86
84
  }
87
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
85
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
86
+ const localVarHeaderParameter = {};
87
+ const localVarQueryParameter = {};
88
+ // authentication session-oauth required
89
+ // oauth required
90
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
91
+ // authentication api-key required
92
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
93
+ if (project !== undefined) {
94
+ localVarQueryParameter['project'] = project;
95
+ }
96
+ if (pageToken !== undefined) {
97
+ localVarQueryParameter['pageToken'] = pageToken;
98
+ }
99
+ if (pageSize !== undefined) {
100
+ localVarQueryParameter['pageSize'] = pageSize;
101
+ }
102
+ if (search !== undefined) {
103
+ localVarQueryParameter['search'] = search;
104
+ }
105
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
106
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
107
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
108
+ return {
109
+ url: toPathString(localVarUrlObj),
110
+ options: localVarRequestOptions,
111
+ };
112
+ }),
113
+ /**
114
+ *
115
+ * @summary Update website blog post
116
+ * @param {string} project What project it is
117
+ * @param {string} blogId Blog\'s unique identifier
118
+ * @param {UpdateBlogRequest} [updateBlogRequest]
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ updateBlog: (project_1, blogId_1, updateBlogRequest_1, ...args_1) => __awaiter(this, [project_1, blogId_1, updateBlogRequest_1, ...args_1], void 0, function* (project, blogId, updateBlogRequest, options = {}) {
123
+ // verify required parameter 'project' is not null or undefined
124
+ assertParamExists('updateBlog', 'project', project);
125
+ // verify required parameter 'blogId' is not null or undefined
126
+ assertParamExists('updateBlog', 'blogId', blogId);
127
+ const localVarPath = `/v1/website/blogs/{blogId}`
128
+ .replace(`{${"blogId"}}`, encodeURIComponent(String(blogId)));
129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
130
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
131
+ let baseOptions;
132
+ if (configuration) {
133
+ baseOptions = configuration.baseOptions;
134
+ }
135
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
88
136
  const localVarHeaderParameter = {};
89
137
  const localVarQueryParameter = {};
90
138
  // authentication session-oauth required
@@ -99,7 +147,7 @@ export const CrossSellApiAxiosParamCreator = function (configuration) {
99
147
  setSearchParams(localVarUrlObj, localVarQueryParameter);
100
148
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
101
149
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
102
- localVarRequestOptions.data = serializeDataIfNeeded(attachCrossSellProductsRequest, localVarRequestOptions, configuration);
150
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBlogRequest, localVarRequestOptions, configuration);
103
151
  return {
104
152
  url: toPathString(localVarUrlObj),
105
153
  options: localVarRequestOptions,
@@ -107,26 +155,26 @@ export const CrossSellApiAxiosParamCreator = function (configuration) {
107
155
  }),
108
156
  /**
109
157
  *
110
- * @summary Get cross-sell products linked to a product
158
+ * @summary Update website blog posts
111
159
  * @param {string} project What project it is
112
- * @param {string} productId Product\'s unique identifier
160
+ * @param {number} [pageToken] Page reference token
161
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
162
+ * @param {string} [search] Search term to filter results
163
+ * @param {UpdateBlogsRequest} [updateBlogsRequest] Update blogs in bulk.
113
164
  * @param {*} [options] Override http request option.
114
165
  * @throws {RequiredError}
115
166
  */
116
- getCrossSellProducts: (project_1, productId_1, ...args_1) => __awaiter(this, [project_1, productId_1, ...args_1], void 0, function* (project, productId, options = {}) {
167
+ updateBlogs: (project_1, pageToken_1, pageSize_1, search_1, updateBlogsRequest_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, updateBlogsRequest_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, updateBlogsRequest, options = {}) {
117
168
  // verify required parameter 'project' is not null or undefined
118
- assertParamExists('getCrossSellProducts', 'project', project);
119
- // verify required parameter 'productId' is not null or undefined
120
- assertParamExists('getCrossSellProducts', 'productId', productId);
121
- const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
122
- .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
169
+ assertParamExists('updateBlogs', 'project', project);
170
+ const localVarPath = `/v1/website/blogs`;
123
171
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
124
172
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
125
173
  let baseOptions;
126
174
  if (configuration) {
127
175
  baseOptions = configuration.baseOptions;
128
176
  }
129
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
130
178
  const localVarHeaderParameter = {};
131
179
  const localVarQueryParameter = {};
132
180
  // authentication session-oauth required
@@ -137,9 +185,20 @@ export const CrossSellApiAxiosParamCreator = function (configuration) {
137
185
  if (project !== undefined) {
138
186
  localVarQueryParameter['project'] = project;
139
187
  }
188
+ if (pageToken !== undefined) {
189
+ localVarQueryParameter['pageToken'] = pageToken;
190
+ }
191
+ if (pageSize !== undefined) {
192
+ localVarQueryParameter['pageSize'] = pageSize;
193
+ }
194
+ if (search !== undefined) {
195
+ localVarQueryParameter['search'] = search;
196
+ }
197
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
198
  setSearchParams(localVarUrlObj, localVarQueryParameter);
141
199
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
200
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
201
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBlogsRequest, localVarRequestOptions, configuration);
143
202
  return {
144
203
  url: toPathString(localVarUrlObj),
145
204
  options: localVarRequestOptions,
@@ -148,125 +207,845 @@ export const CrossSellApiAxiosParamCreator = function (configuration) {
148
207
  };
149
208
  };
150
209
  /**
151
- * CrossSellApi - functional programming interface
210
+ * BlogsApi - functional programming interface
152
211
  * @export
153
212
  */
154
- export const CrossSellApiFp = function (configuration) {
155
- const localVarAxiosParamCreator = CrossSellApiAxiosParamCreator(configuration);
213
+ export const BlogsApiFp = function (configuration) {
214
+ const localVarAxiosParamCreator = BlogsApiAxiosParamCreator(configuration);
156
215
  return {
157
216
  /**
158
- * Attaches a list of products to the given product as cross-sell products.
159
- * @summary Attach cross-sell products
217
+ *
218
+ * @summary List website blog posts
160
219
  * @param {string} project What project it is
161
- * @param {string} productId Product\'s unique identifier
162
- * @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
220
+ * @param {number} [pageToken] Page reference token
221
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
222
+ * @param {string} [search] Search term to filter results
163
223
  * @param {*} [options] Override http request option.
164
224
  * @throws {RequiredError}
165
225
  */
166
- attachCrossSellProducts(project, productId, attachCrossSellProductsRequest, options) {
226
+ listBlogs(project, pageToken, pageSize, search, options) {
167
227
  return __awaiter(this, void 0, void 0, function* () {
168
228
  var _a, _b, _c;
169
- const localVarAxiosArgs = yield localVarAxiosParamCreator.attachCrossSellProducts(project, productId, attachCrossSellProductsRequest, options);
229
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listBlogs(project, pageToken, pageSize, search, options);
170
230
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
171
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CrossSellApi.attachCrossSellProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
231
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogsApi.listBlogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
172
232
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
173
233
  });
174
234
  },
175
235
  /**
176
236
  *
177
- * @summary Get cross-sell products linked to a product
237
+ * @summary Update website blog post
178
238
  * @param {string} project What project it is
179
- * @param {string} productId Product\'s unique identifier
239
+ * @param {string} blogId Blog\'s unique identifier
240
+ * @param {UpdateBlogRequest} [updateBlogRequest]
180
241
  * @param {*} [options] Override http request option.
181
242
  * @throws {RequiredError}
182
243
  */
183
- getCrossSellProducts(project, productId, options) {
244
+ updateBlog(project, blogId, updateBlogRequest, options) {
184
245
  return __awaiter(this, void 0, void 0, function* () {
185
246
  var _a, _b, _c;
186
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCrossSellProducts(project, productId, options);
247
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBlog(project, blogId, updateBlogRequest, options);
187
248
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
188
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CrossSellApi.getCrossSellProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
249
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogsApi.updateBlog']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
250
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
251
+ });
252
+ },
253
+ /**
254
+ *
255
+ * @summary Update website blog posts
256
+ * @param {string} project What project it is
257
+ * @param {number} [pageToken] Page reference token
258
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
259
+ * @param {string} [search] Search term to filter results
260
+ * @param {UpdateBlogsRequest} [updateBlogsRequest] Update blogs in bulk.
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ updateBlogs(project, pageToken, pageSize, search, updateBlogsRequest, options) {
265
+ return __awaiter(this, void 0, void 0, function* () {
266
+ var _a, _b, _c;
267
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBlogs(project, pageToken, pageSize, search, updateBlogsRequest, options);
268
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
269
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogsApi.updateBlogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
189
270
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
190
271
  });
191
272
  },
192
273
  };
193
274
  };
194
275
  /**
195
- * CrossSellApi - factory interface
276
+ * BlogsApi - factory interface
196
277
  * @export
197
278
  */
198
- export const CrossSellApiFactory = function (configuration, basePath, axios) {
199
- const localVarFp = CrossSellApiFp(configuration);
279
+ export const BlogsApiFactory = function (configuration, basePath, axios) {
280
+ const localVarFp = BlogsApiFp(configuration);
200
281
  return {
201
282
  /**
202
- * Attaches a list of products to the given product as cross-sell products.
203
- * @summary Attach cross-sell products
204
- * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
283
+ *
284
+ * @summary List website blog posts
285
+ * @param {BlogsApiListBlogsRequest} requestParameters Request parameters.
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ listBlogs(requestParameters, options) {
290
+ return localVarFp.listBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
291
+ },
292
+ /**
293
+ *
294
+ * @summary Update website blog post
295
+ * @param {BlogsApiUpdateBlogRequest} requestParameters Request parameters.
296
+ * @param {*} [options] Override http request option.
297
+ * @throws {RequiredError}
298
+ */
299
+ updateBlog(requestParameters, options) {
300
+ return localVarFp.updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(axios, basePath));
301
+ },
302
+ /**
303
+ *
304
+ * @summary Update website blog posts
305
+ * @param {BlogsApiUpdateBlogsRequest} requestParameters Request parameters.
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ updateBlogs(requestParameters, options) {
310
+ return localVarFp.updateBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateBlogsRequest, options).then((request) => request(axios, basePath));
311
+ },
312
+ };
313
+ };
314
+ /**
315
+ * BlogsApi - object-oriented interface
316
+ * @export
317
+ * @class BlogsApi
318
+ * @extends {BaseAPI}
319
+ */
320
+ export class BlogsApi extends BaseAPI {
321
+ /**
322
+ *
323
+ * @summary List website blog posts
324
+ * @param {BlogsApiListBlogsRequest} requestParameters Request parameters.
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ * @memberof BlogsApi
328
+ */
329
+ listBlogs(requestParameters, options) {
330
+ return BlogsApiFp(this.configuration).listBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
331
+ }
332
+ /**
333
+ *
334
+ * @summary Update website blog post
335
+ * @param {BlogsApiUpdateBlogRequest} requestParameters Request parameters.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ * @memberof BlogsApi
339
+ */
340
+ updateBlog(requestParameters, options) {
341
+ return BlogsApiFp(this.configuration).updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(this.axios, this.basePath));
342
+ }
343
+ /**
344
+ *
345
+ * @summary Update website blog posts
346
+ * @param {BlogsApiUpdateBlogsRequest} requestParameters Request parameters.
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ * @memberof BlogsApi
350
+ */
351
+ updateBlogs(requestParameters, options) {
352
+ return BlogsApiFp(this.configuration).updateBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateBlogsRequest, options).then((request) => request(this.axios, this.basePath));
353
+ }
354
+ }
355
+ /**
356
+ * CollectionsApi - axios parameter creator
357
+ * @export
358
+ */
359
+ export const CollectionsApiAxiosParamCreator = function (configuration) {
360
+ return {
361
+ /**
362
+ *
363
+ * @summary List website collections
364
+ * @param {string} project What project it is
365
+ * @param {number} [pageToken] Page reference token
366
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
367
+ * @param {string} [search] Search term to filter results
368
+ * @param {*} [options] Override http request option.
369
+ * @throws {RequiredError}
370
+ */
371
+ listCollections: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
372
+ // verify required parameter 'project' is not null or undefined
373
+ assertParamExists('listCollections', 'project', project);
374
+ const localVarPath = `/v1/website/collections`;
375
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
376
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
377
+ let baseOptions;
378
+ if (configuration) {
379
+ baseOptions = configuration.baseOptions;
380
+ }
381
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
382
+ const localVarHeaderParameter = {};
383
+ const localVarQueryParameter = {};
384
+ // authentication session-oauth required
385
+ // oauth required
386
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
387
+ // authentication api-key required
388
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
389
+ if (project !== undefined) {
390
+ localVarQueryParameter['project'] = project;
391
+ }
392
+ if (pageToken !== undefined) {
393
+ localVarQueryParameter['pageToken'] = pageToken;
394
+ }
395
+ if (pageSize !== undefined) {
396
+ localVarQueryParameter['pageSize'] = pageSize;
397
+ }
398
+ if (search !== undefined) {
399
+ localVarQueryParameter['search'] = search;
400
+ }
401
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
403
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
404
+ return {
405
+ url: toPathString(localVarUrlObj),
406
+ options: localVarRequestOptions,
407
+ };
408
+ }),
409
+ /**
410
+ *
411
+ * @summary Update website collection
412
+ * @param {string} project What project it is
413
+ * @param {string} collectionId Collection\'s unique identifier
414
+ * @param {UpdateCollectionRequest} [updateCollectionRequest]
415
+ * @param {*} [options] Override http request option.
416
+ * @throws {RequiredError}
417
+ */
418
+ updateCollection: (project_1, collectionId_1, updateCollectionRequest_1, ...args_1) => __awaiter(this, [project_1, collectionId_1, updateCollectionRequest_1, ...args_1], void 0, function* (project, collectionId, updateCollectionRequest, options = {}) {
419
+ // verify required parameter 'project' is not null or undefined
420
+ assertParamExists('updateCollection', 'project', project);
421
+ // verify required parameter 'collectionId' is not null or undefined
422
+ assertParamExists('updateCollection', 'collectionId', collectionId);
423
+ const localVarPath = `/v1/website/collections/{collectionId}`
424
+ .replace(`{${"collectionId"}}`, encodeURIComponent(String(collectionId)));
425
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
426
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
427
+ let baseOptions;
428
+ if (configuration) {
429
+ baseOptions = configuration.baseOptions;
430
+ }
431
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
432
+ const localVarHeaderParameter = {};
433
+ const localVarQueryParameter = {};
434
+ // authentication session-oauth required
435
+ // oauth required
436
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
437
+ // authentication api-key required
438
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
439
+ if (project !== undefined) {
440
+ localVarQueryParameter['project'] = project;
441
+ }
442
+ localVarHeaderParameter['Content-Type'] = 'application/json';
443
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
445
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
446
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCollectionRequest, localVarRequestOptions, configuration);
447
+ return {
448
+ url: toPathString(localVarUrlObj),
449
+ options: localVarRequestOptions,
450
+ };
451
+ }),
452
+ /**
453
+ *
454
+ * @summary Update website collections
455
+ * @param {string} project What project it is
456
+ * @param {number} [pageToken] Page reference token
457
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
458
+ * @param {string} [search] Search term to filter results
459
+ * @param {UpdateCollectionsRequest} [updateCollectionsRequest] Update collections in bulk.
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ updateCollections: (project_1, pageToken_1, pageSize_1, search_1, updateCollectionsRequest_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, updateCollectionsRequest_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, updateCollectionsRequest, options = {}) {
464
+ // verify required parameter 'project' is not null or undefined
465
+ assertParamExists('updateCollections', 'project', project);
466
+ const localVarPath = `/v1/website/collections`;
467
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
468
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
469
+ let baseOptions;
470
+ if (configuration) {
471
+ baseOptions = configuration.baseOptions;
472
+ }
473
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
474
+ const localVarHeaderParameter = {};
475
+ const localVarQueryParameter = {};
476
+ // authentication session-oauth required
477
+ // oauth required
478
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
479
+ // authentication api-key required
480
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
481
+ if (project !== undefined) {
482
+ localVarQueryParameter['project'] = project;
483
+ }
484
+ if (pageToken !== undefined) {
485
+ localVarQueryParameter['pageToken'] = pageToken;
486
+ }
487
+ if (pageSize !== undefined) {
488
+ localVarQueryParameter['pageSize'] = pageSize;
489
+ }
490
+ if (search !== undefined) {
491
+ localVarQueryParameter['search'] = search;
492
+ }
493
+ localVarHeaderParameter['Content-Type'] = 'application/json';
494
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
496
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
497
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCollectionsRequest, localVarRequestOptions, configuration);
498
+ return {
499
+ url: toPathString(localVarUrlObj),
500
+ options: localVarRequestOptions,
501
+ };
502
+ }),
503
+ };
504
+ };
505
+ /**
506
+ * CollectionsApi - functional programming interface
507
+ * @export
508
+ */
509
+ export const CollectionsApiFp = function (configuration) {
510
+ const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration);
511
+ return {
512
+ /**
513
+ *
514
+ * @summary List website collections
515
+ * @param {string} project What project it is
516
+ * @param {number} [pageToken] Page reference token
517
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
518
+ * @param {string} [search] Search term to filter results
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ listCollections(project, pageToken, pageSize, search, options) {
523
+ return __awaiter(this, void 0, void 0, function* () {
524
+ var _a, _b, _c;
525
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCollections(project, pageToken, pageSize, search, options);
526
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
527
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.listCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
528
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
529
+ });
530
+ },
531
+ /**
532
+ *
533
+ * @summary Update website collection
534
+ * @param {string} project What project it is
535
+ * @param {string} collectionId Collection\'s unique identifier
536
+ * @param {UpdateCollectionRequest} [updateCollectionRequest]
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ updateCollection(project, collectionId, updateCollectionRequest, options) {
541
+ return __awaiter(this, void 0, void 0, function* () {
542
+ var _a, _b, _c;
543
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCollection(project, collectionId, updateCollectionRequest, options);
544
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
545
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.updateCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
546
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
547
+ });
548
+ },
549
+ /**
550
+ *
551
+ * @summary Update website collections
552
+ * @param {string} project What project it is
553
+ * @param {number} [pageToken] Page reference token
554
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
555
+ * @param {string} [search] Search term to filter results
556
+ * @param {UpdateCollectionsRequest} [updateCollectionsRequest] Update collections in bulk.
557
+ * @param {*} [options] Override http request option.
558
+ * @throws {RequiredError}
559
+ */
560
+ updateCollections(project, pageToken, pageSize, search, updateCollectionsRequest, options) {
561
+ return __awaiter(this, void 0, void 0, function* () {
562
+ var _a, _b, _c;
563
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCollections(project, pageToken, pageSize, search, updateCollectionsRequest, options);
564
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
565
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.updateCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
566
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
567
+ });
568
+ },
569
+ };
570
+ };
571
+ /**
572
+ * CollectionsApi - factory interface
573
+ * @export
574
+ */
575
+ export const CollectionsApiFactory = function (configuration, basePath, axios) {
576
+ const localVarFp = CollectionsApiFp(configuration);
577
+ return {
578
+ /**
579
+ *
580
+ * @summary List website collections
581
+ * @param {CollectionsApiListCollectionsRequest} requestParameters Request parameters.
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ listCollections(requestParameters, options) {
586
+ return localVarFp.listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
587
+ },
588
+ /**
589
+ *
590
+ * @summary Update website collection
591
+ * @param {CollectionsApiUpdateCollectionRequest} requestParameters Request parameters.
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ updateCollection(requestParameters, options) {
596
+ return localVarFp.updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(axios, basePath));
597
+ },
598
+ /**
599
+ *
600
+ * @summary Update website collections
601
+ * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ updateCollections(requestParameters, options) {
606
+ return localVarFp.updateCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateCollectionsRequest, options).then((request) => request(axios, basePath));
607
+ },
608
+ };
609
+ };
610
+ /**
611
+ * CollectionsApi - object-oriented interface
612
+ * @export
613
+ * @class CollectionsApi
614
+ * @extends {BaseAPI}
615
+ */
616
+ export class CollectionsApi extends BaseAPI {
617
+ /**
618
+ *
619
+ * @summary List website collections
620
+ * @param {CollectionsApiListCollectionsRequest} requestParameters Request parameters.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ * @memberof CollectionsApi
624
+ */
625
+ listCollections(requestParameters, options) {
626
+ return CollectionsApiFp(this.configuration).listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
627
+ }
628
+ /**
629
+ *
630
+ * @summary Update website collection
631
+ * @param {CollectionsApiUpdateCollectionRequest} requestParameters Request parameters.
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ * @memberof CollectionsApi
635
+ */
636
+ updateCollection(requestParameters, options) {
637
+ return CollectionsApiFp(this.configuration).updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(this.axios, this.basePath));
638
+ }
639
+ /**
640
+ *
641
+ * @summary Update website collections
642
+ * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ * @memberof CollectionsApi
646
+ */
647
+ updateCollections(requestParameters, options) {
648
+ return CollectionsApiFp(this.configuration).updateCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
649
+ }
650
+ }
651
+ /**
652
+ * CrossSellApi - axios parameter creator
653
+ * @export
654
+ */
655
+ export const CrossSellApiAxiosParamCreator = function (configuration) {
656
+ return {
657
+ /**
658
+ * Attaches a list of products to the given product as cross-sell products.
659
+ * @summary Attach cross-sell products
660
+ * @param {string} project What project it is
661
+ * @param {string} productId Product\'s unique identifier
662
+ * @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ */
666
+ attachCrossSellProducts: (project_1, productId_1, attachCrossSellProductsRequest_1, ...args_1) => __awaiter(this, [project_1, productId_1, attachCrossSellProductsRequest_1, ...args_1], void 0, function* (project, productId, attachCrossSellProductsRequest, options = {}) {
667
+ // verify required parameter 'project' is not null or undefined
668
+ assertParamExists('attachCrossSellProducts', 'project', project);
669
+ // verify required parameter 'productId' is not null or undefined
670
+ assertParamExists('attachCrossSellProducts', 'productId', productId);
671
+ const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
672
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
673
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
674
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
675
+ let baseOptions;
676
+ if (configuration) {
677
+ baseOptions = configuration.baseOptions;
678
+ }
679
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
680
+ const localVarHeaderParameter = {};
681
+ const localVarQueryParameter = {};
682
+ // authentication session-oauth required
683
+ // oauth required
684
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
685
+ // authentication api-key required
686
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
687
+ if (project !== undefined) {
688
+ localVarQueryParameter['project'] = project;
689
+ }
690
+ localVarHeaderParameter['Content-Type'] = 'application/json';
691
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
692
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
693
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
694
+ localVarRequestOptions.data = serializeDataIfNeeded(attachCrossSellProductsRequest, localVarRequestOptions, configuration);
695
+ return {
696
+ url: toPathString(localVarUrlObj),
697
+ options: localVarRequestOptions,
698
+ };
699
+ }),
700
+ /**
701
+ *
702
+ * @summary Get cross-sell products linked to a product
703
+ * @param {string} project What project it is
704
+ * @param {string} productId Product\'s unique identifier
705
+ * @param {*} [options] Override http request option.
706
+ * @throws {RequiredError}
707
+ */
708
+ getCrossSellProducts: (project_1, productId_1, ...args_1) => __awaiter(this, [project_1, productId_1, ...args_1], void 0, function* (project, productId, options = {}) {
709
+ // verify required parameter 'project' is not null or undefined
710
+ assertParamExists('getCrossSellProducts', 'project', project);
711
+ // verify required parameter 'productId' is not null or undefined
712
+ assertParamExists('getCrossSellProducts', 'productId', productId);
713
+ const localVarPath = `/v1/website/products/{productId}/cross-sell/products`
714
+ .replace(`{${"productId"}}`, encodeURIComponent(String(productId)));
715
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
716
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
717
+ let baseOptions;
718
+ if (configuration) {
719
+ baseOptions = configuration.baseOptions;
720
+ }
721
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
722
+ const localVarHeaderParameter = {};
723
+ const localVarQueryParameter = {};
724
+ // authentication session-oauth required
725
+ // oauth required
726
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
727
+ // authentication api-key required
728
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
729
+ if (project !== undefined) {
730
+ localVarQueryParameter['project'] = project;
731
+ }
732
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
733
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
734
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
735
+ return {
736
+ url: toPathString(localVarUrlObj),
737
+ options: localVarRequestOptions,
738
+ };
739
+ }),
740
+ };
741
+ };
742
+ /**
743
+ * CrossSellApi - functional programming interface
744
+ * @export
745
+ */
746
+ export const CrossSellApiFp = function (configuration) {
747
+ const localVarAxiosParamCreator = CrossSellApiAxiosParamCreator(configuration);
748
+ return {
749
+ /**
750
+ * Attaches a list of products to the given product as cross-sell products.
751
+ * @summary Attach cross-sell products
752
+ * @param {string} project What project it is
753
+ * @param {string} productId Product\'s unique identifier
754
+ * @param {AttachCrossSellProductsRequest} [attachCrossSellProductsRequest]
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ */
758
+ attachCrossSellProducts(project, productId, attachCrossSellProductsRequest, options) {
759
+ return __awaiter(this, void 0, void 0, function* () {
760
+ var _a, _b, _c;
761
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.attachCrossSellProducts(project, productId, attachCrossSellProductsRequest, options);
762
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
763
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CrossSellApi.attachCrossSellProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
764
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
765
+ });
766
+ },
767
+ /**
768
+ *
769
+ * @summary Get cross-sell products linked to a product
770
+ * @param {string} project What project it is
771
+ * @param {string} productId Product\'s unique identifier
772
+ * @param {*} [options] Override http request option.
773
+ * @throws {RequiredError}
774
+ */
775
+ getCrossSellProducts(project, productId, options) {
776
+ return __awaiter(this, void 0, void 0, function* () {
777
+ var _a, _b, _c;
778
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCrossSellProducts(project, productId, options);
779
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
780
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CrossSellApi.getCrossSellProducts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
781
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
782
+ });
783
+ },
784
+ };
785
+ };
786
+ /**
787
+ * CrossSellApi - factory interface
788
+ * @export
789
+ */
790
+ export const CrossSellApiFactory = function (configuration, basePath, axios) {
791
+ const localVarFp = CrossSellApiFp(configuration);
792
+ return {
793
+ /**
794
+ * Attaches a list of products to the given product as cross-sell products.
795
+ * @summary Attach cross-sell products
796
+ * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
797
+ * @param {*} [options] Override http request option.
798
+ * @throws {RequiredError}
799
+ */
800
+ attachCrossSellProducts(requestParameters, options) {
801
+ return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(axios, basePath));
802
+ },
803
+ /**
804
+ *
805
+ * @summary Get cross-sell products linked to a product
806
+ * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ getCrossSellProducts(requestParameters, options) {
811
+ return localVarFp.getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
812
+ },
813
+ };
814
+ };
815
+ /**
816
+ * CrossSellApi - object-oriented interface
817
+ * @export
818
+ * @class CrossSellApi
819
+ * @extends {BaseAPI}
820
+ */
821
+ export class CrossSellApi extends BaseAPI {
822
+ /**
823
+ * Attaches a list of products to the given product as cross-sell products.
824
+ * @summary Attach cross-sell products
825
+ * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
826
+ * @param {*} [options] Override http request option.
827
+ * @throws {RequiredError}
828
+ * @memberof CrossSellApi
829
+ */
830
+ attachCrossSellProducts(requestParameters, options) {
831
+ return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(this.axios, this.basePath));
832
+ }
833
+ /**
834
+ *
835
+ * @summary Get cross-sell products linked to a product
836
+ * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ * @memberof CrossSellApi
840
+ */
841
+ getCrossSellProducts(requestParameters, options) {
842
+ return CrossSellApiFp(this.configuration).getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
843
+ }
844
+ }
845
+ /**
846
+ * MenuApi - axios parameter creator
847
+ * @export
848
+ */
849
+ export const MenuApiAxiosParamCreator = function (configuration) {
850
+ return {
851
+ /**
852
+ * Get menu
853
+ * @summary Get menu
854
+ * @param {string} project What project it is
855
+ * @param {*} [options] Override http request option.
856
+ * @throws {RequiredError}
857
+ */
858
+ getMenu: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
859
+ // verify required parameter 'project' is not null or undefined
860
+ assertParamExists('getMenu', 'project', project);
861
+ const localVarPath = `/v1/website/menu`;
862
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
863
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
864
+ let baseOptions;
865
+ if (configuration) {
866
+ baseOptions = configuration.baseOptions;
867
+ }
868
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
869
+ const localVarHeaderParameter = {};
870
+ const localVarQueryParameter = {};
871
+ // authentication session-oauth required
872
+ // oauth required
873
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
874
+ // authentication api-key required
875
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
876
+ if (project !== undefined) {
877
+ localVarQueryParameter['project'] = project;
878
+ }
879
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
880
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
881
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
882
+ return {
883
+ url: toPathString(localVarUrlObj),
884
+ options: localVarRequestOptions,
885
+ };
886
+ }),
887
+ /**
888
+ * Update menu
889
+ * @summary Update menu
890
+ * @param {string} project What project it is
891
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
892
+ * @param {*} [options] Override http request option.
893
+ * @throws {RequiredError}
894
+ */
895
+ updateMenu: (project_1, updateMenuRequest_1, ...args_1) => __awaiter(this, [project_1, updateMenuRequest_1, ...args_1], void 0, function* (project, updateMenuRequest, options = {}) {
896
+ // verify required parameter 'project' is not null or undefined
897
+ assertParamExists('updateMenu', 'project', project);
898
+ const localVarPath = `/v1/website/menu`;
899
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
900
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
901
+ let baseOptions;
902
+ if (configuration) {
903
+ baseOptions = configuration.baseOptions;
904
+ }
905
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
906
+ const localVarHeaderParameter = {};
907
+ const localVarQueryParameter = {};
908
+ // authentication session-oauth required
909
+ // oauth required
910
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
911
+ // authentication api-key required
912
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
913
+ if (project !== undefined) {
914
+ localVarQueryParameter['project'] = project;
915
+ }
916
+ localVarHeaderParameter['Content-Type'] = 'application/json';
917
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
918
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
919
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
920
+ localVarRequestOptions.data = serializeDataIfNeeded(updateMenuRequest, localVarRequestOptions, configuration);
921
+ return {
922
+ url: toPathString(localVarUrlObj),
923
+ options: localVarRequestOptions,
924
+ };
925
+ }),
926
+ };
927
+ };
928
+ /**
929
+ * MenuApi - functional programming interface
930
+ * @export
931
+ */
932
+ export const MenuApiFp = function (configuration) {
933
+ const localVarAxiosParamCreator = MenuApiAxiosParamCreator(configuration);
934
+ return {
935
+ /**
936
+ * Get menu
937
+ * @summary Get menu
938
+ * @param {string} project What project it is
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ */
942
+ getMenu(project, options) {
943
+ return __awaiter(this, void 0, void 0, function* () {
944
+ var _a, _b, _c;
945
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMenu(project, options);
946
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
947
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenuApi.getMenu']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
948
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
949
+ });
950
+ },
951
+ /**
952
+ * Update menu
953
+ * @summary Update menu
954
+ * @param {string} project What project it is
955
+ * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
956
+ * @param {*} [options] Override http request option.
957
+ * @throws {RequiredError}
958
+ */
959
+ updateMenu(project, updateMenuRequest, options) {
960
+ return __awaiter(this, void 0, void 0, function* () {
961
+ var _a, _b, _c;
962
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMenu(project, updateMenuRequest, options);
963
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
964
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenuApi.updateMenu']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
965
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
966
+ });
967
+ },
968
+ };
969
+ };
970
+ /**
971
+ * MenuApi - factory interface
972
+ * @export
973
+ */
974
+ export const MenuApiFactory = function (configuration, basePath, axios) {
975
+ const localVarFp = MenuApiFp(configuration);
976
+ return {
977
+ /**
978
+ * Get menu
979
+ * @summary Get menu
980
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
205
981
  * @param {*} [options] Override http request option.
206
982
  * @throws {RequiredError}
207
983
  */
208
- attachCrossSellProducts(requestParameters, options) {
209
- return localVarFp.attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(axios, basePath));
984
+ getMenu(requestParameters, options) {
985
+ return localVarFp.getMenu(requestParameters.project, options).then((request) => request(axios, basePath));
210
986
  },
211
987
  /**
212
- *
213
- * @summary Get cross-sell products linked to a product
214
- * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
988
+ * Update menu
989
+ * @summary Update menu
990
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
215
991
  * @param {*} [options] Override http request option.
216
992
  * @throws {RequiredError}
217
993
  */
218
- getCrossSellProducts(requestParameters, options) {
219
- return localVarFp.getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(axios, basePath));
994
+ updateMenu(requestParameters, options) {
995
+ return localVarFp.updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(axios, basePath));
220
996
  },
221
997
  };
222
998
  };
223
999
  /**
224
- * CrossSellApi - object-oriented interface
1000
+ * MenuApi - object-oriented interface
225
1001
  * @export
226
- * @class CrossSellApi
1002
+ * @class MenuApi
227
1003
  * @extends {BaseAPI}
228
1004
  */
229
- export class CrossSellApi extends BaseAPI {
1005
+ export class MenuApi extends BaseAPI {
230
1006
  /**
231
- * Attaches a list of products to the given product as cross-sell products.
232
- * @summary Attach cross-sell products
233
- * @param {CrossSellApiAttachCrossSellProductsRequest} requestParameters Request parameters.
1007
+ * Get menu
1008
+ * @summary Get menu
1009
+ * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
234
1010
  * @param {*} [options] Override http request option.
235
1011
  * @throws {RequiredError}
236
- * @memberof CrossSellApi
1012
+ * @memberof MenuApi
237
1013
  */
238
- attachCrossSellProducts(requestParameters, options) {
239
- return CrossSellApiFp(this.configuration).attachCrossSellProducts(requestParameters.project, requestParameters.productId, requestParameters.attachCrossSellProductsRequest, options).then((request) => request(this.axios, this.basePath));
1014
+ getMenu(requestParameters, options) {
1015
+ return MenuApiFp(this.configuration).getMenu(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
240
1016
  }
241
1017
  /**
242
- *
243
- * @summary Get cross-sell products linked to a product
244
- * @param {CrossSellApiGetCrossSellProductsRequest} requestParameters Request parameters.
1018
+ * Update menu
1019
+ * @summary Update menu
1020
+ * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
245
1021
  * @param {*} [options] Override http request option.
246
1022
  * @throws {RequiredError}
247
- * @memberof CrossSellApi
1023
+ * @memberof MenuApi
248
1024
  */
249
- getCrossSellProducts(requestParameters, options) {
250
- return CrossSellApiFp(this.configuration).getCrossSellProducts(requestParameters.project, requestParameters.productId, options).then((request) => request(this.axios, this.basePath));
1025
+ updateMenu(requestParameters, options) {
1026
+ return MenuApiFp(this.configuration).updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(this.axios, this.basePath));
251
1027
  }
252
1028
  }
253
1029
  /**
254
- * MenuApi - axios parameter creator
1030
+ * PagesApi - axios parameter creator
255
1031
  * @export
256
1032
  */
257
- export const MenuApiAxiosParamCreator = function (configuration) {
1033
+ export const PagesApiAxiosParamCreator = function (configuration) {
258
1034
  return {
259
1035
  /**
260
- * Get menu
261
- * @summary Get menu
1036
+ *
1037
+ * @summary List website pages
262
1038
  * @param {string} project What project it is
1039
+ * @param {number} [pageToken] Page reference token
1040
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1041
+ * @param {string} [search] Search term to filter results
263
1042
  * @param {*} [options] Override http request option.
264
1043
  * @throws {RequiredError}
265
1044
  */
266
- getMenu: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1045
+ listPages: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
267
1046
  // verify required parameter 'project' is not null or undefined
268
- assertParamExists('getMenu', 'project', project);
269
- const localVarPath = `/v1/website/menu`;
1047
+ assertParamExists('listPages', 'project', project);
1048
+ const localVarPath = `/v1/website/pages`;
270
1049
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
271
1050
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
272
1051
  let baseOptions;
@@ -284,6 +1063,15 @@ export const MenuApiAxiosParamCreator = function (configuration) {
284
1063
  if (project !== undefined) {
285
1064
  localVarQueryParameter['project'] = project;
286
1065
  }
1066
+ if (pageToken !== undefined) {
1067
+ localVarQueryParameter['pageToken'] = pageToken;
1068
+ }
1069
+ if (pageSize !== undefined) {
1070
+ localVarQueryParameter['pageSize'] = pageSize;
1071
+ }
1072
+ if (search !== undefined) {
1073
+ localVarQueryParameter['search'] = search;
1074
+ }
287
1075
  setSearchParams(localVarUrlObj, localVarQueryParameter);
288
1076
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
1077
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -293,24 +1081,28 @@ export const MenuApiAxiosParamCreator = function (configuration) {
293
1081
  };
294
1082
  }),
295
1083
  /**
296
- * Update menu
297
- * @summary Update menu
1084
+ *
1085
+ * @summary Update website page
298
1086
  * @param {string} project What project it is
299
- * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
1087
+ * @param {string} pageId Page\'s unique identifier
1088
+ * @param {UpdatePageRequest} [updatePageRequest]
300
1089
  * @param {*} [options] Override http request option.
301
1090
  * @throws {RequiredError}
302
1091
  */
303
- updateMenu: (project_1, updateMenuRequest_1, ...args_1) => __awaiter(this, [project_1, updateMenuRequest_1, ...args_1], void 0, function* (project, updateMenuRequest, options = {}) {
1092
+ updatePage: (project_1, pageId_1, updatePageRequest_1, ...args_1) => __awaiter(this, [project_1, pageId_1, updatePageRequest_1, ...args_1], void 0, function* (project, pageId, updatePageRequest, options = {}) {
304
1093
  // verify required parameter 'project' is not null or undefined
305
- assertParamExists('updateMenu', 'project', project);
306
- const localVarPath = `/v1/website/menu`;
1094
+ assertParamExists('updatePage', 'project', project);
1095
+ // verify required parameter 'pageId' is not null or undefined
1096
+ assertParamExists('updatePage', 'pageId', pageId);
1097
+ const localVarPath = `/v1/website/pages/{pageId}`
1098
+ .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId)));
307
1099
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
308
1100
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
309
1101
  let baseOptions;
310
1102
  if (configuration) {
311
1103
  baseOptions = configuration.baseOptions;
312
1104
  }
313
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1105
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
314
1106
  const localVarHeaderParameter = {};
315
1107
  const localVarQueryParameter = {};
316
1108
  // authentication session-oauth required
@@ -325,7 +1117,58 @@ export const MenuApiAxiosParamCreator = function (configuration) {
325
1117
  setSearchParams(localVarUrlObj, localVarQueryParameter);
326
1118
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
327
1119
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
328
- localVarRequestOptions.data = serializeDataIfNeeded(updateMenuRequest, localVarRequestOptions, configuration);
1120
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePageRequest, localVarRequestOptions, configuration);
1121
+ return {
1122
+ url: toPathString(localVarUrlObj),
1123
+ options: localVarRequestOptions,
1124
+ };
1125
+ }),
1126
+ /**
1127
+ *
1128
+ * @summary Update website pages
1129
+ * @param {string} project What project it is
1130
+ * @param {number} [pageToken] Page reference token
1131
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1132
+ * @param {string} [search] Search term to filter results
1133
+ * @param {UpdatePagesRequest} [updatePagesRequest] Update pages in bulk.
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ */
1137
+ updatePages: (project_1, pageToken_1, pageSize_1, search_1, updatePagesRequest_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, updatePagesRequest_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, updatePagesRequest, options = {}) {
1138
+ // verify required parameter 'project' is not null or undefined
1139
+ assertParamExists('updatePages', 'project', project);
1140
+ const localVarPath = `/v1/website/pages`;
1141
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1142
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1143
+ let baseOptions;
1144
+ if (configuration) {
1145
+ baseOptions = configuration.baseOptions;
1146
+ }
1147
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1148
+ const localVarHeaderParameter = {};
1149
+ const localVarQueryParameter = {};
1150
+ // authentication session-oauth required
1151
+ // oauth required
1152
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1153
+ // authentication api-key required
1154
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1155
+ if (project !== undefined) {
1156
+ localVarQueryParameter['project'] = project;
1157
+ }
1158
+ if (pageToken !== undefined) {
1159
+ localVarQueryParameter['pageToken'] = pageToken;
1160
+ }
1161
+ if (pageSize !== undefined) {
1162
+ localVarQueryParameter['pageSize'] = pageSize;
1163
+ }
1164
+ if (search !== undefined) {
1165
+ localVarQueryParameter['search'] = search;
1166
+ }
1167
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1170
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1171
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePagesRequest, localVarRequestOptions, configuration);
329
1172
  return {
330
1173
  url: toPathString(localVarUrlObj),
331
1174
  options: localVarRequestOptions,
@@ -334,104 +1177,149 @@ export const MenuApiAxiosParamCreator = function (configuration) {
334
1177
  };
335
1178
  };
336
1179
  /**
337
- * MenuApi - functional programming interface
1180
+ * PagesApi - functional programming interface
338
1181
  * @export
339
1182
  */
340
- export const MenuApiFp = function (configuration) {
341
- const localVarAxiosParamCreator = MenuApiAxiosParamCreator(configuration);
1183
+ export const PagesApiFp = function (configuration) {
1184
+ const localVarAxiosParamCreator = PagesApiAxiosParamCreator(configuration);
342
1185
  return {
343
1186
  /**
344
- * Get menu
345
- * @summary Get menu
1187
+ *
1188
+ * @summary List website pages
346
1189
  * @param {string} project What project it is
1190
+ * @param {number} [pageToken] Page reference token
1191
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1192
+ * @param {string} [search] Search term to filter results
347
1193
  * @param {*} [options] Override http request option.
348
1194
  * @throws {RequiredError}
349
1195
  */
350
- getMenu(project, options) {
1196
+ listPages(project, pageToken, pageSize, search, options) {
351
1197
  return __awaiter(this, void 0, void 0, function* () {
352
1198
  var _a, _b, _c;
353
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMenu(project, options);
1199
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPages(project, pageToken, pageSize, search, options);
354
1200
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
355
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenuApi.getMenu']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1201
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PagesApi.listPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
356
1202
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
357
1203
  });
358
1204
  },
359
1205
  /**
360
- * Update menu
361
- * @summary Update menu
1206
+ *
1207
+ * @summary Update website page
362
1208
  * @param {string} project What project it is
363
- * @param {UpdateMenuRequest} [updateMenuRequest] Update menu request
1209
+ * @param {string} pageId Page\'s unique identifier
1210
+ * @param {UpdatePageRequest} [updatePageRequest]
364
1211
  * @param {*} [options] Override http request option.
365
1212
  * @throws {RequiredError}
366
1213
  */
367
- updateMenu(project, updateMenuRequest, options) {
1214
+ updatePage(project, pageId, updatePageRequest, options) {
368
1215
  return __awaiter(this, void 0, void 0, function* () {
369
1216
  var _a, _b, _c;
370
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateMenu(project, updateMenuRequest, options);
1217
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePage(project, pageId, updatePageRequest, options);
371
1218
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
372
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MenuApi.updateMenu']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1219
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PagesApi.updatePage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1220
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1221
+ });
1222
+ },
1223
+ /**
1224
+ *
1225
+ * @summary Update website pages
1226
+ * @param {string} project What project it is
1227
+ * @param {number} [pageToken] Page reference token
1228
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1229
+ * @param {string} [search] Search term to filter results
1230
+ * @param {UpdatePagesRequest} [updatePagesRequest] Update pages in bulk.
1231
+ * @param {*} [options] Override http request option.
1232
+ * @throws {RequiredError}
1233
+ */
1234
+ updatePages(project, pageToken, pageSize, search, updatePagesRequest, options) {
1235
+ return __awaiter(this, void 0, void 0, function* () {
1236
+ var _a, _b, _c;
1237
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePages(project, pageToken, pageSize, search, updatePagesRequest, options);
1238
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1239
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PagesApi.updatePages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
373
1240
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
374
1241
  });
375
1242
  },
376
1243
  };
377
1244
  };
378
1245
  /**
379
- * MenuApi - factory interface
1246
+ * PagesApi - factory interface
380
1247
  * @export
381
1248
  */
382
- export const MenuApiFactory = function (configuration, basePath, axios) {
383
- const localVarFp = MenuApiFp(configuration);
1249
+ export const PagesApiFactory = function (configuration, basePath, axios) {
1250
+ const localVarFp = PagesApiFp(configuration);
384
1251
  return {
385
1252
  /**
386
- * Get menu
387
- * @summary Get menu
388
- * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
1253
+ *
1254
+ * @summary List website pages
1255
+ * @param {PagesApiListPagesRequest} requestParameters Request parameters.
389
1256
  * @param {*} [options] Override http request option.
390
1257
  * @throws {RequiredError}
391
1258
  */
392
- getMenu(requestParameters, options) {
393
- return localVarFp.getMenu(requestParameters.project, options).then((request) => request(axios, basePath));
1259
+ listPages(requestParameters, options) {
1260
+ return localVarFp.listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
394
1261
  },
395
1262
  /**
396
- * Update menu
397
- * @summary Update menu
398
- * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
1263
+ *
1264
+ * @summary Update website page
1265
+ * @param {PagesApiUpdatePageRequest} requestParameters Request parameters.
399
1266
  * @param {*} [options] Override http request option.
400
1267
  * @throws {RequiredError}
401
1268
  */
402
- updateMenu(requestParameters, options) {
403
- return localVarFp.updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(axios, basePath));
1269
+ updatePage(requestParameters, options) {
1270
+ return localVarFp.updatePage(requestParameters.project, requestParameters.pageId, requestParameters.updatePageRequest, options).then((request) => request(axios, basePath));
1271
+ },
1272
+ /**
1273
+ *
1274
+ * @summary Update website pages
1275
+ * @param {PagesApiUpdatePagesRequest} requestParameters Request parameters.
1276
+ * @param {*} [options] Override http request option.
1277
+ * @throws {RequiredError}
1278
+ */
1279
+ updatePages(requestParameters, options) {
1280
+ return localVarFp.updatePages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updatePagesRequest, options).then((request) => request(axios, basePath));
404
1281
  },
405
1282
  };
406
1283
  };
407
1284
  /**
408
- * MenuApi - object-oriented interface
1285
+ * PagesApi - object-oriented interface
409
1286
  * @export
410
- * @class MenuApi
1287
+ * @class PagesApi
411
1288
  * @extends {BaseAPI}
412
1289
  */
413
- export class MenuApi extends BaseAPI {
1290
+ export class PagesApi extends BaseAPI {
414
1291
  /**
415
- * Get menu
416
- * @summary Get menu
417
- * @param {MenuApiGetMenuRequest} requestParameters Request parameters.
1292
+ *
1293
+ * @summary List website pages
1294
+ * @param {PagesApiListPagesRequest} requestParameters Request parameters.
418
1295
  * @param {*} [options] Override http request option.
419
1296
  * @throws {RequiredError}
420
- * @memberof MenuApi
1297
+ * @memberof PagesApi
421
1298
  */
422
- getMenu(requestParameters, options) {
423
- return MenuApiFp(this.configuration).getMenu(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
1299
+ listPages(requestParameters, options) {
1300
+ return PagesApiFp(this.configuration).listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
424
1301
  }
425
1302
  /**
426
- * Update menu
427
- * @summary Update menu
428
- * @param {MenuApiUpdateMenuRequest} requestParameters Request parameters.
1303
+ *
1304
+ * @summary Update website page
1305
+ * @param {PagesApiUpdatePageRequest} requestParameters Request parameters.
429
1306
  * @param {*} [options] Override http request option.
430
1307
  * @throws {RequiredError}
431
- * @memberof MenuApi
1308
+ * @memberof PagesApi
432
1309
  */
433
- updateMenu(requestParameters, options) {
434
- return MenuApiFp(this.configuration).updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(this.axios, this.basePath));
1310
+ updatePage(requestParameters, options) {
1311
+ return PagesApiFp(this.configuration).updatePage(requestParameters.project, requestParameters.pageId, requestParameters.updatePageRequest, options).then((request) => request(this.axios, this.basePath));
1312
+ }
1313
+ /**
1314
+ *
1315
+ * @summary Update website pages
1316
+ * @param {PagesApiUpdatePagesRequest} requestParameters Request parameters.
1317
+ * @param {*} [options] Override http request option.
1318
+ * @throws {RequiredError}
1319
+ * @memberof PagesApi
1320
+ */
1321
+ updatePages(requestParameters, options) {
1322
+ return PagesApiFp(this.configuration).updatePages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updatePagesRequest, options).then((request) => request(this.axios, this.basePath));
435
1323
  }
436
1324
  }
437
1325
  /**
@@ -687,3 +1575,125 @@ export class PaymentApi extends BaseAPI {
687
1575
  return PaymentApiFp(this.configuration).getStripePaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
688
1576
  }
689
1577
  }
1578
+ /**
1579
+ * RoutesApi - axios parameter creator
1580
+ * @export
1581
+ */
1582
+ export const RoutesApiAxiosParamCreator = function (configuration) {
1583
+ return {
1584
+ /**
1585
+ *
1586
+ * @summary List routes
1587
+ * @param {string} project What project it is
1588
+ * @param {number} [pageToken] Page reference token
1589
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1590
+ * @param {string} [search] Search term to filter results
1591
+ * @param {*} [options] Override http request option.
1592
+ * @throws {RequiredError}
1593
+ */
1594
+ listRoutes: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
1595
+ // verify required parameter 'project' is not null or undefined
1596
+ assertParamExists('listRoutes', 'project', project);
1597
+ const localVarPath = `/v1/website/routes`;
1598
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1599
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1600
+ let baseOptions;
1601
+ if (configuration) {
1602
+ baseOptions = configuration.baseOptions;
1603
+ }
1604
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1605
+ const localVarHeaderParameter = {};
1606
+ const localVarQueryParameter = {};
1607
+ // authentication session-oauth required
1608
+ // oauth required
1609
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1610
+ // authentication api-key required
1611
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1612
+ if (project !== undefined) {
1613
+ localVarQueryParameter['project'] = project;
1614
+ }
1615
+ if (pageToken !== undefined) {
1616
+ localVarQueryParameter['pageToken'] = pageToken;
1617
+ }
1618
+ if (pageSize !== undefined) {
1619
+ localVarQueryParameter['pageSize'] = pageSize;
1620
+ }
1621
+ if (search !== undefined) {
1622
+ localVarQueryParameter['search'] = search;
1623
+ }
1624
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1625
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1626
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1627
+ return {
1628
+ url: toPathString(localVarUrlObj),
1629
+ options: localVarRequestOptions,
1630
+ };
1631
+ }),
1632
+ };
1633
+ };
1634
+ /**
1635
+ * RoutesApi - functional programming interface
1636
+ * @export
1637
+ */
1638
+ export const RoutesApiFp = function (configuration) {
1639
+ const localVarAxiosParamCreator = RoutesApiAxiosParamCreator(configuration);
1640
+ return {
1641
+ /**
1642
+ *
1643
+ * @summary List routes
1644
+ * @param {string} project What project it is
1645
+ * @param {number} [pageToken] Page reference token
1646
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1647
+ * @param {string} [search] Search term to filter results
1648
+ * @param {*} [options] Override http request option.
1649
+ * @throws {RequiredError}
1650
+ */
1651
+ listRoutes(project, pageToken, pageSize, search, options) {
1652
+ return __awaiter(this, void 0, void 0, function* () {
1653
+ var _a, _b, _c;
1654
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listRoutes(project, pageToken, pageSize, search, options);
1655
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1656
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RoutesApi.listRoutes']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1657
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1658
+ });
1659
+ },
1660
+ };
1661
+ };
1662
+ /**
1663
+ * RoutesApi - factory interface
1664
+ * @export
1665
+ */
1666
+ export const RoutesApiFactory = function (configuration, basePath, axios) {
1667
+ const localVarFp = RoutesApiFp(configuration);
1668
+ return {
1669
+ /**
1670
+ *
1671
+ * @summary List routes
1672
+ * @param {RoutesApiListRoutesRequest} requestParameters Request parameters.
1673
+ * @param {*} [options] Override http request option.
1674
+ * @throws {RequiredError}
1675
+ */
1676
+ listRoutes(requestParameters, options) {
1677
+ return localVarFp.listRoutes(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
1678
+ },
1679
+ };
1680
+ };
1681
+ /**
1682
+ * RoutesApi - object-oriented interface
1683
+ * @export
1684
+ * @class RoutesApi
1685
+ * @extends {BaseAPI}
1686
+ */
1687
+ export class RoutesApi extends BaseAPI {
1688
+ /**
1689
+ *
1690
+ * @summary List routes
1691
+ * @param {RoutesApiListRoutesRequest} requestParameters Request parameters.
1692
+ * @param {*} [options] Override http request option.
1693
+ * @throws {RequiredError}
1694
+ * @memberof RoutesApi
1695
+ */
1696
+ listRoutes(requestParameters, options) {
1697
+ return RoutesApiFp(this.configuration).listRoutes(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1698
+ }
1699
+ }