@teemill/website 0.7.0 → 0.9.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.9.0
7
9
  *
8
- * The version of the OpenAPI document: 0.7.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.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = 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.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = exports.UpdateMenuRequestItemSubmenuInnerImageTextAlignmentEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonWidthEnum = exports.UpdateMenuRequestItemSubmenuInnerImageButtonBorderRadiusEnum = exports.UpdateMenuRequestItemSubmenuInnerModeEnum = exports.SubmenuInnerImageTextShadowEnum = exports.SubmenuInnerImageTextAlignmentEnum = exports.SubmenuInnerImageButtonWidthEnum = exports.SubmenuInnerImageBorderRadiusEnum = exports.SubmenuInnerModeEnum = 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
@@ -59,6 +59,656 @@ exports.PaymentAccountMethodEnum = {
59
59
  exports.PriceCurrencyCodeEnum = {
60
60
  Gbp: 'GBP'
61
61
  };
62
+ exports.SubmenuInnerModeEnum = {
63
+ Image: 'image',
64
+ List: 'list'
65
+ };
66
+ exports.SubmenuInnerImageBorderRadiusEnum = {
67
+ Sharp: 'sharp',
68
+ Smooth: 'smooth',
69
+ Rounded: 'rounded',
70
+ Circle: 'circle'
71
+ };
72
+ exports.SubmenuInnerImageButtonWidthEnum = {
73
+ Auto: 'auto',
74
+ Full: 'full'
75
+ };
76
+ exports.SubmenuInnerImageTextAlignmentEnum = {
77
+ Left: 'left',
78
+ Center: 'center',
79
+ Right: 'right'
80
+ };
81
+ exports.SubmenuInnerImageTextShadowEnum = {
82
+ None: 'none',
83
+ Light: 'light',
84
+ Medium: 'medium',
85
+ Heavy: 'heavy'
86
+ };
87
+ exports.UpdateMenuRequestItemSubmenuInnerModeEnum = {
88
+ Image: 'image',
89
+ List: 'list'
90
+ };
91
+ exports.UpdateMenuRequestItemSubmenuInnerImageButtonBorderRadiusEnum = {
92
+ Sharp: 'sharp',
93
+ Smooth: 'smooth',
94
+ Rounded: 'rounded',
95
+ Circle: 'circle'
96
+ };
97
+ exports.UpdateMenuRequestItemSubmenuInnerImageButtonWidthEnum = {
98
+ Auto: 'auto',
99
+ Full: 'full'
100
+ };
101
+ exports.UpdateMenuRequestItemSubmenuInnerImageTextAlignmentEnum = {
102
+ Left: 'left',
103
+ Center: 'center',
104
+ Right: 'right'
105
+ };
106
+ exports.UpdateMenuRequestItemSubmenuInnerImageTextShadowEnum = {
107
+ None: 'none',
108
+ Light: 'light',
109
+ Medium: 'medium',
110
+ Heavy: 'heavy'
111
+ };
112
+ /**
113
+ * BlogsApi - axios parameter creator
114
+ * @export
115
+ */
116
+ const BlogsApiAxiosParamCreator = function (configuration) {
117
+ return {
118
+ /**
119
+ *
120
+ * @summary List website blog posts
121
+ * @param {string} project What project it is
122
+ * @param {number} [pageToken] Page reference token
123
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
124
+ * @param {string} [search] Search term to filter results
125
+ * @param {*} [options] Override http request option.
126
+ * @throws {RequiredError}
127
+ */
128
+ 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 = {}) {
129
+ // verify required parameter 'project' is not null or undefined
130
+ (0, common_1.assertParamExists)('listBlogs', 'project', project);
131
+ const localVarPath = `/v1/website/blogs`;
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: 'GET' }, 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
+ if (pageToken !== undefined) {
150
+ localVarQueryParameter['pageToken'] = pageToken;
151
+ }
152
+ if (pageSize !== undefined) {
153
+ localVarQueryParameter['pageSize'] = pageSize;
154
+ }
155
+ if (search !== undefined) {
156
+ localVarQueryParameter['search'] = search;
157
+ }
158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
161
+ return {
162
+ url: (0, common_1.toPathString)(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ }),
166
+ /**
167
+ *
168
+ * @summary Update website blog post
169
+ * @param {string} project What project it is
170
+ * @param {string} blogId Blog\'s unique identifier
171
+ * @param {UpdateBlogRequest} [updateBlogRequest]
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ 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 = {}) {
176
+ // verify required parameter 'project' is not null or undefined
177
+ (0, common_1.assertParamExists)('updateBlog', 'project', project);
178
+ // verify required parameter 'blogId' is not null or undefined
179
+ (0, common_1.assertParamExists)('updateBlog', 'blogId', blogId);
180
+ const localVarPath = `/v1/website/blogs/{blogId}`
181
+ .replace(`{${"blogId"}}`, encodeURIComponent(String(blogId)));
182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
183
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
184
+ let baseOptions;
185
+ if (configuration) {
186
+ baseOptions = configuration.baseOptions;
187
+ }
188
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
189
+ const localVarHeaderParameter = {};
190
+ const localVarQueryParameter = {};
191
+ // authentication session-oauth required
192
+ // oauth required
193
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
194
+ // authentication api-key required
195
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
196
+ if (project !== undefined) {
197
+ localVarQueryParameter['project'] = project;
198
+ }
199
+ localVarHeaderParameter['Content-Type'] = 'application/json';
200
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
201
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
202
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
203
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBlogRequest, localVarRequestOptions, configuration);
204
+ return {
205
+ url: (0, common_1.toPathString)(localVarUrlObj),
206
+ options: localVarRequestOptions,
207
+ };
208
+ }),
209
+ /**
210
+ *
211
+ * @summary Update website blog posts
212
+ * @param {string} project What project it is
213
+ * @param {number} [pageToken] Page reference token
214
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
215
+ * @param {string} [search] Search term to filter results
216
+ * @param {UpdateBlogsRequest} [updateBlogsRequest] Update blogs in bulk.
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ 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 = {}) {
221
+ // verify required parameter 'project' is not null or undefined
222
+ (0, common_1.assertParamExists)('updateBlogs', 'project', project);
223
+ const localVarPath = `/v1/website/blogs`;
224
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
225
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
226
+ let baseOptions;
227
+ if (configuration) {
228
+ baseOptions = configuration.baseOptions;
229
+ }
230
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
231
+ const localVarHeaderParameter = {};
232
+ const localVarQueryParameter = {};
233
+ // authentication session-oauth required
234
+ // oauth required
235
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
236
+ // authentication api-key required
237
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
238
+ if (project !== undefined) {
239
+ localVarQueryParameter['project'] = project;
240
+ }
241
+ if (pageToken !== undefined) {
242
+ localVarQueryParameter['pageToken'] = pageToken;
243
+ }
244
+ if (pageSize !== undefined) {
245
+ localVarQueryParameter['pageSize'] = pageSize;
246
+ }
247
+ if (search !== undefined) {
248
+ localVarQueryParameter['search'] = search;
249
+ }
250
+ localVarHeaderParameter['Content-Type'] = 'application/json';
251
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
252
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
254
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBlogsRequest, localVarRequestOptions, configuration);
255
+ return {
256
+ url: (0, common_1.toPathString)(localVarUrlObj),
257
+ options: localVarRequestOptions,
258
+ };
259
+ }),
260
+ };
261
+ };
262
+ exports.BlogsApiAxiosParamCreator = BlogsApiAxiosParamCreator;
263
+ /**
264
+ * BlogsApi - functional programming interface
265
+ * @export
266
+ */
267
+ const BlogsApiFp = function (configuration) {
268
+ const localVarAxiosParamCreator = (0, exports.BlogsApiAxiosParamCreator)(configuration);
269
+ return {
270
+ /**
271
+ *
272
+ * @summary List website blog posts
273
+ * @param {string} project What project it is
274
+ * @param {number} [pageToken] Page reference token
275
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
276
+ * @param {string} [search] Search term to filter results
277
+ * @param {*} [options] Override http request option.
278
+ * @throws {RequiredError}
279
+ */
280
+ listBlogs(project, pageToken, pageSize, search, options) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ var _a, _b, _c;
283
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listBlogs(project, pageToken, pageSize, search, options);
284
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
285
+ 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;
286
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
287
+ });
288
+ },
289
+ /**
290
+ *
291
+ * @summary Update website blog post
292
+ * @param {string} project What project it is
293
+ * @param {string} blogId Blog\'s unique identifier
294
+ * @param {UpdateBlogRequest} [updateBlogRequest]
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ updateBlog(project, blogId, updateBlogRequest, options) {
299
+ return __awaiter(this, void 0, void 0, function* () {
300
+ var _a, _b, _c;
301
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBlog(project, blogId, updateBlogRequest, options);
302
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
303
+ 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;
304
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
305
+ });
306
+ },
307
+ /**
308
+ *
309
+ * @summary Update website blog posts
310
+ * @param {string} project What project it is
311
+ * @param {number} [pageToken] Page reference token
312
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
313
+ * @param {string} [search] Search term to filter results
314
+ * @param {UpdateBlogsRequest} [updateBlogsRequest] Update blogs in bulk.
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ updateBlogs(project, pageToken, pageSize, search, updateBlogsRequest, options) {
319
+ return __awaiter(this, void 0, void 0, function* () {
320
+ var _a, _b, _c;
321
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBlogs(project, pageToken, pageSize, search, updateBlogsRequest, options);
322
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
323
+ 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;
324
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
325
+ });
326
+ },
327
+ };
328
+ };
329
+ exports.BlogsApiFp = BlogsApiFp;
330
+ /**
331
+ * BlogsApi - factory interface
332
+ * @export
333
+ */
334
+ const BlogsApiFactory = function (configuration, basePath, axios) {
335
+ const localVarFp = (0, exports.BlogsApiFp)(configuration);
336
+ return {
337
+ /**
338
+ *
339
+ * @summary List website blog posts
340
+ * @param {BlogsApiListBlogsRequest} requestParameters Request parameters.
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ */
344
+ listBlogs(requestParameters, options) {
345
+ return localVarFp.listBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
346
+ },
347
+ /**
348
+ *
349
+ * @summary Update website blog post
350
+ * @param {BlogsApiUpdateBlogRequest} requestParameters Request parameters.
351
+ * @param {*} [options] Override http request option.
352
+ * @throws {RequiredError}
353
+ */
354
+ updateBlog(requestParameters, options) {
355
+ return localVarFp.updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(axios, basePath));
356
+ },
357
+ /**
358
+ *
359
+ * @summary Update website blog posts
360
+ * @param {BlogsApiUpdateBlogsRequest} requestParameters Request parameters.
361
+ * @param {*} [options] Override http request option.
362
+ * @throws {RequiredError}
363
+ */
364
+ updateBlogs(requestParameters, options) {
365
+ return localVarFp.updateBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateBlogsRequest, options).then((request) => request(axios, basePath));
366
+ },
367
+ };
368
+ };
369
+ exports.BlogsApiFactory = BlogsApiFactory;
370
+ /**
371
+ * BlogsApi - object-oriented interface
372
+ * @export
373
+ * @class BlogsApi
374
+ * @extends {BaseAPI}
375
+ */
376
+ class BlogsApi extends base_1.BaseAPI {
377
+ /**
378
+ *
379
+ * @summary List website blog posts
380
+ * @param {BlogsApiListBlogsRequest} requestParameters Request parameters.
381
+ * @param {*} [options] Override http request option.
382
+ * @throws {RequiredError}
383
+ * @memberof BlogsApi
384
+ */
385
+ listBlogs(requestParameters, options) {
386
+ return (0, exports.BlogsApiFp)(this.configuration).listBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
387
+ }
388
+ /**
389
+ *
390
+ * @summary Update website blog post
391
+ * @param {BlogsApiUpdateBlogRequest} requestParameters Request parameters.
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ * @memberof BlogsApi
395
+ */
396
+ updateBlog(requestParameters, options) {
397
+ return (0, exports.BlogsApiFp)(this.configuration).updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(this.axios, this.basePath));
398
+ }
399
+ /**
400
+ *
401
+ * @summary Update website blog posts
402
+ * @param {BlogsApiUpdateBlogsRequest} requestParameters Request parameters.
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ * @memberof BlogsApi
406
+ */
407
+ updateBlogs(requestParameters, options) {
408
+ 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));
409
+ }
410
+ }
411
+ exports.BlogsApi = BlogsApi;
412
+ /**
413
+ * CollectionsApi - axios parameter creator
414
+ * @export
415
+ */
416
+ const CollectionsApiAxiosParamCreator = function (configuration) {
417
+ return {
418
+ /**
419
+ *
420
+ * @summary List website collections
421
+ * @param {string} project What project it is
422
+ * @param {number} [pageToken] Page reference token
423
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
424
+ * @param {string} [search] Search term to filter results
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ 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 = {}) {
429
+ // verify required parameter 'project' is not null or undefined
430
+ (0, common_1.assertParamExists)('listCollections', 'project', project);
431
+ const localVarPath = `/v1/website/collections`;
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: 'GET' }, 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
+ if (pageToken !== undefined) {
450
+ localVarQueryParameter['pageToken'] = pageToken;
451
+ }
452
+ if (pageSize !== undefined) {
453
+ localVarQueryParameter['pageSize'] = pageSize;
454
+ }
455
+ if (search !== undefined) {
456
+ localVarQueryParameter['search'] = search;
457
+ }
458
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
459
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
460
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
461
+ return {
462
+ url: (0, common_1.toPathString)(localVarUrlObj),
463
+ options: localVarRequestOptions,
464
+ };
465
+ }),
466
+ /**
467
+ *
468
+ * @summary Update website collection
469
+ * @param {string} project What project it is
470
+ * @param {string} collectionId Collection\'s unique identifier
471
+ * @param {UpdateCollectionRequest} [updateCollectionRequest]
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ 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 = {}) {
476
+ // verify required parameter 'project' is not null or undefined
477
+ (0, common_1.assertParamExists)('updateCollection', 'project', project);
478
+ // verify required parameter 'collectionId' is not null or undefined
479
+ (0, common_1.assertParamExists)('updateCollection', 'collectionId', collectionId);
480
+ const localVarPath = `/v1/website/collections/{collectionId}`
481
+ .replace(`{${"collectionId"}}`, encodeURIComponent(String(collectionId)));
482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
483
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
484
+ let baseOptions;
485
+ if (configuration) {
486
+ baseOptions = configuration.baseOptions;
487
+ }
488
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
489
+ const localVarHeaderParameter = {};
490
+ const localVarQueryParameter = {};
491
+ // authentication session-oauth required
492
+ // oauth required
493
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
494
+ // authentication api-key required
495
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
496
+ if (project !== undefined) {
497
+ localVarQueryParameter['project'] = project;
498
+ }
499
+ localVarHeaderParameter['Content-Type'] = 'application/json';
500
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
501
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
502
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
503
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCollectionRequest, localVarRequestOptions, configuration);
504
+ return {
505
+ url: (0, common_1.toPathString)(localVarUrlObj),
506
+ options: localVarRequestOptions,
507
+ };
508
+ }),
509
+ /**
510
+ *
511
+ * @summary Update website collections
512
+ * @param {string} project What project it is
513
+ * @param {number} [pageToken] Page reference token
514
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
515
+ * @param {string} [search] Search term to filter results
516
+ * @param {UpdateCollectionsRequest} [updateCollectionsRequest] Update collections in bulk.
517
+ * @param {*} [options] Override http request option.
518
+ * @throws {RequiredError}
519
+ */
520
+ 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 = {}) {
521
+ // verify required parameter 'project' is not null or undefined
522
+ (0, common_1.assertParamExists)('updateCollections', 'project', project);
523
+ const localVarPath = `/v1/website/collections`;
524
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
525
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
526
+ let baseOptions;
527
+ if (configuration) {
528
+ baseOptions = configuration.baseOptions;
529
+ }
530
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
531
+ const localVarHeaderParameter = {};
532
+ const localVarQueryParameter = {};
533
+ // authentication session-oauth required
534
+ // oauth required
535
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
536
+ // authentication api-key required
537
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
538
+ if (project !== undefined) {
539
+ localVarQueryParameter['project'] = project;
540
+ }
541
+ if (pageToken !== undefined) {
542
+ localVarQueryParameter['pageToken'] = pageToken;
543
+ }
544
+ if (pageSize !== undefined) {
545
+ localVarQueryParameter['pageSize'] = pageSize;
546
+ }
547
+ if (search !== undefined) {
548
+ localVarQueryParameter['search'] = search;
549
+ }
550
+ localVarHeaderParameter['Content-Type'] = 'application/json';
551
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
552
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
553
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
554
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCollectionsRequest, localVarRequestOptions, configuration);
555
+ return {
556
+ url: (0, common_1.toPathString)(localVarUrlObj),
557
+ options: localVarRequestOptions,
558
+ };
559
+ }),
560
+ };
561
+ };
562
+ exports.CollectionsApiAxiosParamCreator = CollectionsApiAxiosParamCreator;
563
+ /**
564
+ * CollectionsApi - functional programming interface
565
+ * @export
566
+ */
567
+ const CollectionsApiFp = function (configuration) {
568
+ const localVarAxiosParamCreator = (0, exports.CollectionsApiAxiosParamCreator)(configuration);
569
+ return {
570
+ /**
571
+ *
572
+ * @summary List website collections
573
+ * @param {string} project What project it is
574
+ * @param {number} [pageToken] Page reference token
575
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
576
+ * @param {string} [search] Search term to filter results
577
+ * @param {*} [options] Override http request option.
578
+ * @throws {RequiredError}
579
+ */
580
+ listCollections(project, pageToken, pageSize, search, options) {
581
+ return __awaiter(this, void 0, void 0, function* () {
582
+ var _a, _b, _c;
583
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCollections(project, pageToken, pageSize, search, options);
584
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
585
+ 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;
586
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
587
+ });
588
+ },
589
+ /**
590
+ *
591
+ * @summary Update website collection
592
+ * @param {string} project What project it is
593
+ * @param {string} collectionId Collection\'s unique identifier
594
+ * @param {UpdateCollectionRequest} [updateCollectionRequest]
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ */
598
+ updateCollection(project, collectionId, updateCollectionRequest, options) {
599
+ return __awaiter(this, void 0, void 0, function* () {
600
+ var _a, _b, _c;
601
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCollection(project, collectionId, updateCollectionRequest, options);
602
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
603
+ 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;
604
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
605
+ });
606
+ },
607
+ /**
608
+ *
609
+ * @summary Update website collections
610
+ * @param {string} project What project it is
611
+ * @param {number} [pageToken] Page reference token
612
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
613
+ * @param {string} [search] Search term to filter results
614
+ * @param {UpdateCollectionsRequest} [updateCollectionsRequest] Update collections in bulk.
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ updateCollections(project, pageToken, pageSize, search, updateCollectionsRequest, options) {
619
+ return __awaiter(this, void 0, void 0, function* () {
620
+ var _a, _b, _c;
621
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCollections(project, pageToken, pageSize, search, updateCollectionsRequest, options);
622
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
623
+ 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;
624
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
625
+ });
626
+ },
627
+ };
628
+ };
629
+ exports.CollectionsApiFp = CollectionsApiFp;
630
+ /**
631
+ * CollectionsApi - factory interface
632
+ * @export
633
+ */
634
+ const CollectionsApiFactory = function (configuration, basePath, axios) {
635
+ const localVarFp = (0, exports.CollectionsApiFp)(configuration);
636
+ return {
637
+ /**
638
+ *
639
+ * @summary List website collections
640
+ * @param {CollectionsApiListCollectionsRequest} requestParameters Request parameters.
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ */
644
+ listCollections(requestParameters, options) {
645
+ return localVarFp.listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
646
+ },
647
+ /**
648
+ *
649
+ * @summary Update website collection
650
+ * @param {CollectionsApiUpdateCollectionRequest} requestParameters Request parameters.
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ updateCollection(requestParameters, options) {
655
+ return localVarFp.updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(axios, basePath));
656
+ },
657
+ /**
658
+ *
659
+ * @summary Update website collections
660
+ * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ */
664
+ updateCollections(requestParameters, options) {
665
+ return localVarFp.updateCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateCollectionsRequest, options).then((request) => request(axios, basePath));
666
+ },
667
+ };
668
+ };
669
+ exports.CollectionsApiFactory = CollectionsApiFactory;
670
+ /**
671
+ * CollectionsApi - object-oriented interface
672
+ * @export
673
+ * @class CollectionsApi
674
+ * @extends {BaseAPI}
675
+ */
676
+ class CollectionsApi extends base_1.BaseAPI {
677
+ /**
678
+ *
679
+ * @summary List website collections
680
+ * @param {CollectionsApiListCollectionsRequest} requestParameters Request parameters.
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ * @memberof CollectionsApi
684
+ */
685
+ listCollections(requestParameters, options) {
686
+ return (0, exports.CollectionsApiFp)(this.configuration).listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
687
+ }
688
+ /**
689
+ *
690
+ * @summary Update website collection
691
+ * @param {CollectionsApiUpdateCollectionRequest} requestParameters Request parameters.
692
+ * @param {*} [options] Override http request option.
693
+ * @throws {RequiredError}
694
+ * @memberof CollectionsApi
695
+ */
696
+ updateCollection(requestParameters, options) {
697
+ return (0, exports.CollectionsApiFp)(this.configuration).updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(this.axios, this.basePath));
698
+ }
699
+ /**
700
+ *
701
+ * @summary Update website collections
702
+ * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ * @memberof CollectionsApi
706
+ */
707
+ updateCollections(requestParameters, options) {
708
+ 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));
709
+ }
710
+ }
711
+ exports.CollectionsApi = CollectionsApi;
62
712
  /**
63
713
  * CrossSellApi - axios parameter creator
64
714
  * @export
@@ -445,6 +1095,306 @@ class MenuApi extends base_1.BaseAPI {
445
1095
  }
446
1096
  }
447
1097
  exports.MenuApi = MenuApi;
1098
+ /**
1099
+ * PagesApi - axios parameter creator
1100
+ * @export
1101
+ */
1102
+ const PagesApiAxiosParamCreator = function (configuration) {
1103
+ return {
1104
+ /**
1105
+ *
1106
+ * @summary List website pages
1107
+ * @param {string} project What project it is
1108
+ * @param {number} [pageToken] Page reference token
1109
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1110
+ * @param {string} [search] Search term to filter results
1111
+ * @param {*} [options] Override http request option.
1112
+ * @throws {RequiredError}
1113
+ */
1114
+ 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 = {}) {
1115
+ // verify required parameter 'project' is not null or undefined
1116
+ (0, common_1.assertParamExists)('listPages', 'project', project);
1117
+ const localVarPath = `/v1/website/pages`;
1118
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1119
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1120
+ let baseOptions;
1121
+ if (configuration) {
1122
+ baseOptions = configuration.baseOptions;
1123
+ }
1124
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1125
+ const localVarHeaderParameter = {};
1126
+ const localVarQueryParameter = {};
1127
+ // authentication session-oauth required
1128
+ // oauth required
1129
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1130
+ // authentication api-key required
1131
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1132
+ if (project !== undefined) {
1133
+ localVarQueryParameter['project'] = project;
1134
+ }
1135
+ if (pageToken !== undefined) {
1136
+ localVarQueryParameter['pageToken'] = pageToken;
1137
+ }
1138
+ if (pageSize !== undefined) {
1139
+ localVarQueryParameter['pageSize'] = pageSize;
1140
+ }
1141
+ if (search !== undefined) {
1142
+ localVarQueryParameter['search'] = search;
1143
+ }
1144
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1145
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1146
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1147
+ return {
1148
+ url: (0, common_1.toPathString)(localVarUrlObj),
1149
+ options: localVarRequestOptions,
1150
+ };
1151
+ }),
1152
+ /**
1153
+ *
1154
+ * @summary Update website page
1155
+ * @param {string} project What project it is
1156
+ * @param {string} pageId Page\'s unique identifier
1157
+ * @param {UpdatePageRequest} [updatePageRequest]
1158
+ * @param {*} [options] Override http request option.
1159
+ * @throws {RequiredError}
1160
+ */
1161
+ 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 = {}) {
1162
+ // verify required parameter 'project' is not null or undefined
1163
+ (0, common_1.assertParamExists)('updatePage', 'project', project);
1164
+ // verify required parameter 'pageId' is not null or undefined
1165
+ (0, common_1.assertParamExists)('updatePage', 'pageId', pageId);
1166
+ const localVarPath = `/v1/website/pages/{pageId}`
1167
+ .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId)));
1168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1169
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1170
+ let baseOptions;
1171
+ if (configuration) {
1172
+ baseOptions = configuration.baseOptions;
1173
+ }
1174
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1175
+ const localVarHeaderParameter = {};
1176
+ const localVarQueryParameter = {};
1177
+ // authentication session-oauth required
1178
+ // oauth required
1179
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1180
+ // authentication api-key required
1181
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1182
+ if (project !== undefined) {
1183
+ localVarQueryParameter['project'] = project;
1184
+ }
1185
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1186
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1187
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1188
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1189
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePageRequest, localVarRequestOptions, configuration);
1190
+ return {
1191
+ url: (0, common_1.toPathString)(localVarUrlObj),
1192
+ options: localVarRequestOptions,
1193
+ };
1194
+ }),
1195
+ /**
1196
+ *
1197
+ * @summary Update website pages
1198
+ * @param {string} project What project it is
1199
+ * @param {number} [pageToken] Page reference token
1200
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1201
+ * @param {string} [search] Search term to filter results
1202
+ * @param {UpdatePagesRequest} [updatePagesRequest] Update pages in bulk.
1203
+ * @param {*} [options] Override http request option.
1204
+ * @throws {RequiredError}
1205
+ */
1206
+ 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 = {}) {
1207
+ // verify required parameter 'project' is not null or undefined
1208
+ (0, common_1.assertParamExists)('updatePages', 'project', project);
1209
+ const localVarPath = `/v1/website/pages`;
1210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1211
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1212
+ let baseOptions;
1213
+ if (configuration) {
1214
+ baseOptions = configuration.baseOptions;
1215
+ }
1216
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1217
+ const localVarHeaderParameter = {};
1218
+ const localVarQueryParameter = {};
1219
+ // authentication session-oauth required
1220
+ // oauth required
1221
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
1222
+ // authentication api-key required
1223
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1224
+ if (project !== undefined) {
1225
+ localVarQueryParameter['project'] = project;
1226
+ }
1227
+ if (pageToken !== undefined) {
1228
+ localVarQueryParameter['pageToken'] = pageToken;
1229
+ }
1230
+ if (pageSize !== undefined) {
1231
+ localVarQueryParameter['pageSize'] = pageSize;
1232
+ }
1233
+ if (search !== undefined) {
1234
+ localVarQueryParameter['search'] = search;
1235
+ }
1236
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1237
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1238
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1239
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1240
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePagesRequest, localVarRequestOptions, configuration);
1241
+ return {
1242
+ url: (0, common_1.toPathString)(localVarUrlObj),
1243
+ options: localVarRequestOptions,
1244
+ };
1245
+ }),
1246
+ };
1247
+ };
1248
+ exports.PagesApiAxiosParamCreator = PagesApiAxiosParamCreator;
1249
+ /**
1250
+ * PagesApi - functional programming interface
1251
+ * @export
1252
+ */
1253
+ const PagesApiFp = function (configuration) {
1254
+ const localVarAxiosParamCreator = (0, exports.PagesApiAxiosParamCreator)(configuration);
1255
+ return {
1256
+ /**
1257
+ *
1258
+ * @summary List website pages
1259
+ * @param {string} project What project it is
1260
+ * @param {number} [pageToken] Page reference token
1261
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1262
+ * @param {string} [search] Search term to filter results
1263
+ * @param {*} [options] Override http request option.
1264
+ * @throws {RequiredError}
1265
+ */
1266
+ listPages(project, pageToken, pageSize, search, options) {
1267
+ return __awaiter(this, void 0, void 0, function* () {
1268
+ var _a, _b, _c;
1269
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPages(project, pageToken, pageSize, search, options);
1270
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1271
+ 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;
1272
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1273
+ });
1274
+ },
1275
+ /**
1276
+ *
1277
+ * @summary Update website page
1278
+ * @param {string} project What project it is
1279
+ * @param {string} pageId Page\'s unique identifier
1280
+ * @param {UpdatePageRequest} [updatePageRequest]
1281
+ * @param {*} [options] Override http request option.
1282
+ * @throws {RequiredError}
1283
+ */
1284
+ updatePage(project, pageId, updatePageRequest, options) {
1285
+ return __awaiter(this, void 0, void 0, function* () {
1286
+ var _a, _b, _c;
1287
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePage(project, pageId, updatePageRequest, options);
1288
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1289
+ 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;
1290
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1291
+ });
1292
+ },
1293
+ /**
1294
+ *
1295
+ * @summary Update website pages
1296
+ * @param {string} project What project it is
1297
+ * @param {number} [pageToken] Page reference token
1298
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1299
+ * @param {string} [search] Search term to filter results
1300
+ * @param {UpdatePagesRequest} [updatePagesRequest] Update pages in bulk.
1301
+ * @param {*} [options] Override http request option.
1302
+ * @throws {RequiredError}
1303
+ */
1304
+ updatePages(project, pageToken, pageSize, search, updatePagesRequest, options) {
1305
+ return __awaiter(this, void 0, void 0, function* () {
1306
+ var _a, _b, _c;
1307
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePages(project, pageToken, pageSize, search, updatePagesRequest, options);
1308
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1309
+ 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;
1310
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1311
+ });
1312
+ },
1313
+ };
1314
+ };
1315
+ exports.PagesApiFp = PagesApiFp;
1316
+ /**
1317
+ * PagesApi - factory interface
1318
+ * @export
1319
+ */
1320
+ const PagesApiFactory = function (configuration, basePath, axios) {
1321
+ const localVarFp = (0, exports.PagesApiFp)(configuration);
1322
+ return {
1323
+ /**
1324
+ *
1325
+ * @summary List website pages
1326
+ * @param {PagesApiListPagesRequest} requestParameters Request parameters.
1327
+ * @param {*} [options] Override http request option.
1328
+ * @throws {RequiredError}
1329
+ */
1330
+ listPages(requestParameters, options) {
1331
+ return localVarFp.listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
1332
+ },
1333
+ /**
1334
+ *
1335
+ * @summary Update website page
1336
+ * @param {PagesApiUpdatePageRequest} requestParameters Request parameters.
1337
+ * @param {*} [options] Override http request option.
1338
+ * @throws {RequiredError}
1339
+ */
1340
+ updatePage(requestParameters, options) {
1341
+ return localVarFp.updatePage(requestParameters.project, requestParameters.pageId, requestParameters.updatePageRequest, options).then((request) => request(axios, basePath));
1342
+ },
1343
+ /**
1344
+ *
1345
+ * @summary Update website pages
1346
+ * @param {PagesApiUpdatePagesRequest} requestParameters Request parameters.
1347
+ * @param {*} [options] Override http request option.
1348
+ * @throws {RequiredError}
1349
+ */
1350
+ updatePages(requestParameters, options) {
1351
+ return localVarFp.updatePages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updatePagesRequest, options).then((request) => request(axios, basePath));
1352
+ },
1353
+ };
1354
+ };
1355
+ exports.PagesApiFactory = PagesApiFactory;
1356
+ /**
1357
+ * PagesApi - object-oriented interface
1358
+ * @export
1359
+ * @class PagesApi
1360
+ * @extends {BaseAPI}
1361
+ */
1362
+ class PagesApi extends base_1.BaseAPI {
1363
+ /**
1364
+ *
1365
+ * @summary List website pages
1366
+ * @param {PagesApiListPagesRequest} requestParameters Request parameters.
1367
+ * @param {*} [options] Override http request option.
1368
+ * @throws {RequiredError}
1369
+ * @memberof PagesApi
1370
+ */
1371
+ listPages(requestParameters, options) {
1372
+ return (0, exports.PagesApiFp)(this.configuration).listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1373
+ }
1374
+ /**
1375
+ *
1376
+ * @summary Update website page
1377
+ * @param {PagesApiUpdatePageRequest} requestParameters Request parameters.
1378
+ * @param {*} [options] Override http request option.
1379
+ * @throws {RequiredError}
1380
+ * @memberof PagesApi
1381
+ */
1382
+ updatePage(requestParameters, options) {
1383
+ return (0, exports.PagesApiFp)(this.configuration).updatePage(requestParameters.project, requestParameters.pageId, requestParameters.updatePageRequest, options).then((request) => request(this.axios, this.basePath));
1384
+ }
1385
+ /**
1386
+ *
1387
+ * @summary Update website pages
1388
+ * @param {PagesApiUpdatePagesRequest} requestParameters Request parameters.
1389
+ * @param {*} [options] Override http request option.
1390
+ * @throws {RequiredError}
1391
+ * @memberof PagesApi
1392
+ */
1393
+ updatePages(requestParameters, options) {
1394
+ 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));
1395
+ }
1396
+ }
1397
+ exports.PagesApi = PagesApi;
448
1398
  /**
449
1399
  * PaymentApi - axios parameter creator
450
1400
  * @export