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