@teemill/website 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -2,10 +2,10 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Website API
5
- * Manage your Teemill Website Currently this API is in development and is not yet publicly accessible. All paths and models are subject to change. For full documentation on functionality and account settings go to [teemill.com](https://teemill.com)
5
+ * Manage your PodOS Website
6
+ *
7
+ * The version of the OpenAPI document: 0.8.0
6
8
  *
7
- * The version of the OpenAPI document: 0.7.0
8
- * Contact: hello@teemill.com
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -56,6 +56,598 @@ export const PaymentAccountMethodEnum = {
56
56
  export const PriceCurrencyCodeEnum = {
57
57
  Gbp: 'GBP'
58
58
  };
59
+ /**
60
+ * BlogsApi - axios parameter creator
61
+ * @export
62
+ */
63
+ export const BlogsApiAxiosParamCreator = function (configuration) {
64
+ return {
65
+ /**
66
+ *
67
+ * @summary List website blog posts
68
+ * @param {string} project What project it is
69
+ * @param {number} [pageToken] Page reference token
70
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
71
+ * @param {string} [search] Search term to filter results
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ listBlogs: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
76
+ // verify required parameter 'project' is not null or undefined
77
+ assertParamExists('listBlogs', 'project', project);
78
+ const localVarPath = `/v1/website/blogs`;
79
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
80
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
81
+ let baseOptions;
82
+ if (configuration) {
83
+ baseOptions = configuration.baseOptions;
84
+ }
85
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
86
+ const localVarHeaderParameter = {};
87
+ const localVarQueryParameter = {};
88
+ // authentication session-oauth required
89
+ // oauth required
90
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
91
+ // authentication api-key required
92
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
93
+ if (project !== undefined) {
94
+ localVarQueryParameter['project'] = project;
95
+ }
96
+ if (pageToken !== undefined) {
97
+ localVarQueryParameter['pageToken'] = pageToken;
98
+ }
99
+ if (pageSize !== undefined) {
100
+ localVarQueryParameter['pageSize'] = pageSize;
101
+ }
102
+ if (search !== undefined) {
103
+ localVarQueryParameter['search'] = search;
104
+ }
105
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
106
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
107
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
108
+ return {
109
+ url: toPathString(localVarUrlObj),
110
+ options: localVarRequestOptions,
111
+ };
112
+ }),
113
+ /**
114
+ *
115
+ * @summary Update website blog post
116
+ * @param {string} project What project it is
117
+ * @param {string} blogId Blog\'s unique identifier
118
+ * @param {UpdateBlogRequest} [updateBlogRequest]
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ updateBlog: (project_1, blogId_1, updateBlogRequest_1, ...args_1) => __awaiter(this, [project_1, blogId_1, updateBlogRequest_1, ...args_1], void 0, function* (project, blogId, updateBlogRequest, options = {}) {
123
+ // verify required parameter 'project' is not null or undefined
124
+ assertParamExists('updateBlog', 'project', project);
125
+ // verify required parameter 'blogId' is not null or undefined
126
+ assertParamExists('updateBlog', 'blogId', blogId);
127
+ const localVarPath = `/v1/website/blogs/{blogId}`
128
+ .replace(`{${"blogId"}}`, encodeURIComponent(String(blogId)));
129
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
130
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
131
+ let baseOptions;
132
+ if (configuration) {
133
+ baseOptions = configuration.baseOptions;
134
+ }
135
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
136
+ const localVarHeaderParameter = {};
137
+ const localVarQueryParameter = {};
138
+ // authentication session-oauth required
139
+ // oauth required
140
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
141
+ // authentication api-key required
142
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
143
+ if (project !== undefined) {
144
+ localVarQueryParameter['project'] = project;
145
+ }
146
+ localVarHeaderParameter['Content-Type'] = 'application/json';
147
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
149
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
150
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBlogRequest, localVarRequestOptions, configuration);
151
+ return {
152
+ url: toPathString(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ }),
156
+ /**
157
+ *
158
+ * @summary Update website blog posts
159
+ * @param {string} project What project it is
160
+ * @param {number} [pageToken] Page reference token
161
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
162
+ * @param {string} [search] Search term to filter results
163
+ * @param {UpdateBlogsRequest} [updateBlogsRequest] Update blogs in bulk.
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ updateBlogs: (project_1, pageToken_1, pageSize_1, search_1, updateBlogsRequest_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, updateBlogsRequest_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, updateBlogsRequest, options = {}) {
168
+ // verify required parameter 'project' is not null or undefined
169
+ assertParamExists('updateBlogs', 'project', project);
170
+ const localVarPath = `/v1/website/blogs`;
171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
173
+ let baseOptions;
174
+ if (configuration) {
175
+ baseOptions = configuration.baseOptions;
176
+ }
177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
178
+ const localVarHeaderParameter = {};
179
+ const localVarQueryParameter = {};
180
+ // authentication session-oauth required
181
+ // oauth required
182
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
183
+ // authentication api-key required
184
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
185
+ if (project !== undefined) {
186
+ localVarQueryParameter['project'] = project;
187
+ }
188
+ if (pageToken !== undefined) {
189
+ localVarQueryParameter['pageToken'] = pageToken;
190
+ }
191
+ if (pageSize !== undefined) {
192
+ localVarQueryParameter['pageSize'] = pageSize;
193
+ }
194
+ if (search !== undefined) {
195
+ localVarQueryParameter['search'] = search;
196
+ }
197
+ localVarHeaderParameter['Content-Type'] = 'application/json';
198
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
199
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
200
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
201
+ localVarRequestOptions.data = serializeDataIfNeeded(updateBlogsRequest, localVarRequestOptions, configuration);
202
+ return {
203
+ url: toPathString(localVarUrlObj),
204
+ options: localVarRequestOptions,
205
+ };
206
+ }),
207
+ };
208
+ };
209
+ /**
210
+ * BlogsApi - functional programming interface
211
+ * @export
212
+ */
213
+ export const BlogsApiFp = function (configuration) {
214
+ const localVarAxiosParamCreator = BlogsApiAxiosParamCreator(configuration);
215
+ return {
216
+ /**
217
+ *
218
+ * @summary List website blog posts
219
+ * @param {string} project What project it is
220
+ * @param {number} [pageToken] Page reference token
221
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
222
+ * @param {string} [search] Search term to filter results
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ listBlogs(project, pageToken, pageSize, search, options) {
227
+ return __awaiter(this, void 0, void 0, function* () {
228
+ var _a, _b, _c;
229
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listBlogs(project, pageToken, pageSize, search, options);
230
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
231
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogsApi.listBlogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
232
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
233
+ });
234
+ },
235
+ /**
236
+ *
237
+ * @summary Update website blog post
238
+ * @param {string} project What project it is
239
+ * @param {string} blogId Blog\'s unique identifier
240
+ * @param {UpdateBlogRequest} [updateBlogRequest]
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ updateBlog(project, blogId, updateBlogRequest, options) {
245
+ return __awaiter(this, void 0, void 0, function* () {
246
+ var _a, _b, _c;
247
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBlog(project, blogId, updateBlogRequest, options);
248
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
249
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogsApi.updateBlog']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
250
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
251
+ });
252
+ },
253
+ /**
254
+ *
255
+ * @summary Update website blog posts
256
+ * @param {string} project What project it is
257
+ * @param {number} [pageToken] Page reference token
258
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
259
+ * @param {string} [search] Search term to filter results
260
+ * @param {UpdateBlogsRequest} [updateBlogsRequest] Update blogs in bulk.
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ updateBlogs(project, pageToken, pageSize, search, updateBlogsRequest, options) {
265
+ return __awaiter(this, void 0, void 0, function* () {
266
+ var _a, _b, _c;
267
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBlogs(project, pageToken, pageSize, search, updateBlogsRequest, options);
268
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
269
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlogsApi.updateBlogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
270
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
271
+ });
272
+ },
273
+ };
274
+ };
275
+ /**
276
+ * BlogsApi - factory interface
277
+ * @export
278
+ */
279
+ export const BlogsApiFactory = function (configuration, basePath, axios) {
280
+ const localVarFp = BlogsApiFp(configuration);
281
+ return {
282
+ /**
283
+ *
284
+ * @summary List website blog posts
285
+ * @param {BlogsApiListBlogsRequest} requestParameters Request parameters.
286
+ * @param {*} [options] Override http request option.
287
+ * @throws {RequiredError}
288
+ */
289
+ listBlogs(requestParameters, options) {
290
+ return localVarFp.listBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
291
+ },
292
+ /**
293
+ *
294
+ * @summary Update website blog post
295
+ * @param {BlogsApiUpdateBlogRequest} requestParameters Request parameters.
296
+ * @param {*} [options] Override http request option.
297
+ * @throws {RequiredError}
298
+ */
299
+ updateBlog(requestParameters, options) {
300
+ return localVarFp.updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(axios, basePath));
301
+ },
302
+ /**
303
+ *
304
+ * @summary Update website blog posts
305
+ * @param {BlogsApiUpdateBlogsRequest} requestParameters Request parameters.
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ updateBlogs(requestParameters, options) {
310
+ return localVarFp.updateBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateBlogsRequest, options).then((request) => request(axios, basePath));
311
+ },
312
+ };
313
+ };
314
+ /**
315
+ * BlogsApi - object-oriented interface
316
+ * @export
317
+ * @class BlogsApi
318
+ * @extends {BaseAPI}
319
+ */
320
+ export class BlogsApi extends BaseAPI {
321
+ /**
322
+ *
323
+ * @summary List website blog posts
324
+ * @param {BlogsApiListBlogsRequest} requestParameters Request parameters.
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ * @memberof BlogsApi
328
+ */
329
+ listBlogs(requestParameters, options) {
330
+ return BlogsApiFp(this.configuration).listBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
331
+ }
332
+ /**
333
+ *
334
+ * @summary Update website blog post
335
+ * @param {BlogsApiUpdateBlogRequest} requestParameters Request parameters.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ * @memberof BlogsApi
339
+ */
340
+ updateBlog(requestParameters, options) {
341
+ return BlogsApiFp(this.configuration).updateBlog(requestParameters.project, requestParameters.blogId, requestParameters.updateBlogRequest, options).then((request) => request(this.axios, this.basePath));
342
+ }
343
+ /**
344
+ *
345
+ * @summary Update website blog posts
346
+ * @param {BlogsApiUpdateBlogsRequest} requestParameters Request parameters.
347
+ * @param {*} [options] Override http request option.
348
+ * @throws {RequiredError}
349
+ * @memberof BlogsApi
350
+ */
351
+ updateBlogs(requestParameters, options) {
352
+ return BlogsApiFp(this.configuration).updateBlogs(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateBlogsRequest, options).then((request) => request(this.axios, this.basePath));
353
+ }
354
+ }
355
+ /**
356
+ * CollectionsApi - axios parameter creator
357
+ * @export
358
+ */
359
+ export const CollectionsApiAxiosParamCreator = function (configuration) {
360
+ return {
361
+ /**
362
+ *
363
+ * @summary List website collections
364
+ * @param {string} project What project it is
365
+ * @param {number} [pageToken] Page reference token
366
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
367
+ * @param {string} [search] Search term to filter results
368
+ * @param {*} [options] Override http request option.
369
+ * @throws {RequiredError}
370
+ */
371
+ listCollections: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
372
+ // verify required parameter 'project' is not null or undefined
373
+ assertParamExists('listCollections', 'project', project);
374
+ const localVarPath = `/v1/website/collections`;
375
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
376
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
377
+ let baseOptions;
378
+ if (configuration) {
379
+ baseOptions = configuration.baseOptions;
380
+ }
381
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
382
+ const localVarHeaderParameter = {};
383
+ const localVarQueryParameter = {};
384
+ // authentication session-oauth required
385
+ // oauth required
386
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
387
+ // authentication api-key required
388
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
389
+ if (project !== undefined) {
390
+ localVarQueryParameter['project'] = project;
391
+ }
392
+ if (pageToken !== undefined) {
393
+ localVarQueryParameter['pageToken'] = pageToken;
394
+ }
395
+ if (pageSize !== undefined) {
396
+ localVarQueryParameter['pageSize'] = pageSize;
397
+ }
398
+ if (search !== undefined) {
399
+ localVarQueryParameter['search'] = search;
400
+ }
401
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
403
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
404
+ return {
405
+ url: toPathString(localVarUrlObj),
406
+ options: localVarRequestOptions,
407
+ };
408
+ }),
409
+ /**
410
+ *
411
+ * @summary Update website collection
412
+ * @param {string} project What project it is
413
+ * @param {string} collectionId Collection\'s unique identifier
414
+ * @param {UpdateCollectionRequest} [updateCollectionRequest]
415
+ * @param {*} [options] Override http request option.
416
+ * @throws {RequiredError}
417
+ */
418
+ updateCollection: (project_1, collectionId_1, updateCollectionRequest_1, ...args_1) => __awaiter(this, [project_1, collectionId_1, updateCollectionRequest_1, ...args_1], void 0, function* (project, collectionId, updateCollectionRequest, options = {}) {
419
+ // verify required parameter 'project' is not null or undefined
420
+ assertParamExists('updateCollection', 'project', project);
421
+ // verify required parameter 'collectionId' is not null or undefined
422
+ assertParamExists('updateCollection', 'collectionId', collectionId);
423
+ const localVarPath = `/v1/website/collections/{collectionId}`
424
+ .replace(`{${"collectionId"}}`, encodeURIComponent(String(collectionId)));
425
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
426
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
427
+ let baseOptions;
428
+ if (configuration) {
429
+ baseOptions = configuration.baseOptions;
430
+ }
431
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
432
+ const localVarHeaderParameter = {};
433
+ const localVarQueryParameter = {};
434
+ // authentication session-oauth required
435
+ // oauth required
436
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
437
+ // authentication api-key required
438
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
439
+ if (project !== undefined) {
440
+ localVarQueryParameter['project'] = project;
441
+ }
442
+ localVarHeaderParameter['Content-Type'] = 'application/json';
443
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
444
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
445
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
446
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCollectionRequest, localVarRequestOptions, configuration);
447
+ return {
448
+ url: toPathString(localVarUrlObj),
449
+ options: localVarRequestOptions,
450
+ };
451
+ }),
452
+ /**
453
+ *
454
+ * @summary Update website collections
455
+ * @param {string} project What project it is
456
+ * @param {number} [pageToken] Page reference token
457
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
458
+ * @param {string} [search] Search term to filter results
459
+ * @param {UpdateCollectionsRequest} [updateCollectionsRequest] Update collections in bulk.
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ updateCollections: (project_1, pageToken_1, pageSize_1, search_1, updateCollectionsRequest_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, updateCollectionsRequest_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, updateCollectionsRequest, options = {}) {
464
+ // verify required parameter 'project' is not null or undefined
465
+ assertParamExists('updateCollections', 'project', project);
466
+ const localVarPath = `/v1/website/collections`;
467
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
468
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
469
+ let baseOptions;
470
+ if (configuration) {
471
+ baseOptions = configuration.baseOptions;
472
+ }
473
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
474
+ const localVarHeaderParameter = {};
475
+ const localVarQueryParameter = {};
476
+ // authentication session-oauth required
477
+ // oauth required
478
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
479
+ // authentication api-key required
480
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
481
+ if (project !== undefined) {
482
+ localVarQueryParameter['project'] = project;
483
+ }
484
+ if (pageToken !== undefined) {
485
+ localVarQueryParameter['pageToken'] = pageToken;
486
+ }
487
+ if (pageSize !== undefined) {
488
+ localVarQueryParameter['pageSize'] = pageSize;
489
+ }
490
+ if (search !== undefined) {
491
+ localVarQueryParameter['search'] = search;
492
+ }
493
+ localVarHeaderParameter['Content-Type'] = 'application/json';
494
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
496
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
497
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCollectionsRequest, localVarRequestOptions, configuration);
498
+ return {
499
+ url: toPathString(localVarUrlObj),
500
+ options: localVarRequestOptions,
501
+ };
502
+ }),
503
+ };
504
+ };
505
+ /**
506
+ * CollectionsApi - functional programming interface
507
+ * @export
508
+ */
509
+ export const CollectionsApiFp = function (configuration) {
510
+ const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration);
511
+ return {
512
+ /**
513
+ *
514
+ * @summary List website collections
515
+ * @param {string} project What project it is
516
+ * @param {number} [pageToken] Page reference token
517
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
518
+ * @param {string} [search] Search term to filter results
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ listCollections(project, pageToken, pageSize, search, options) {
523
+ return __awaiter(this, void 0, void 0, function* () {
524
+ var _a, _b, _c;
525
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCollections(project, pageToken, pageSize, search, options);
526
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
527
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.listCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
528
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
529
+ });
530
+ },
531
+ /**
532
+ *
533
+ * @summary Update website collection
534
+ * @param {string} project What project it is
535
+ * @param {string} collectionId Collection\'s unique identifier
536
+ * @param {UpdateCollectionRequest} [updateCollectionRequest]
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ updateCollection(project, collectionId, updateCollectionRequest, options) {
541
+ return __awaiter(this, void 0, void 0, function* () {
542
+ var _a, _b, _c;
543
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCollection(project, collectionId, updateCollectionRequest, options);
544
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
545
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.updateCollection']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
546
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
547
+ });
548
+ },
549
+ /**
550
+ *
551
+ * @summary Update website collections
552
+ * @param {string} project What project it is
553
+ * @param {number} [pageToken] Page reference token
554
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
555
+ * @param {string} [search] Search term to filter results
556
+ * @param {UpdateCollectionsRequest} [updateCollectionsRequest] Update collections in bulk.
557
+ * @param {*} [options] Override http request option.
558
+ * @throws {RequiredError}
559
+ */
560
+ updateCollections(project, pageToken, pageSize, search, updateCollectionsRequest, options) {
561
+ return __awaiter(this, void 0, void 0, function* () {
562
+ var _a, _b, _c;
563
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateCollections(project, pageToken, pageSize, search, updateCollectionsRequest, options);
564
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
565
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CollectionsApi.updateCollections']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
566
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
567
+ });
568
+ },
569
+ };
570
+ };
571
+ /**
572
+ * CollectionsApi - factory interface
573
+ * @export
574
+ */
575
+ export const CollectionsApiFactory = function (configuration, basePath, axios) {
576
+ const localVarFp = CollectionsApiFp(configuration);
577
+ return {
578
+ /**
579
+ *
580
+ * @summary List website collections
581
+ * @param {CollectionsApiListCollectionsRequest} requestParameters Request parameters.
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ listCollections(requestParameters, options) {
586
+ return localVarFp.listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
587
+ },
588
+ /**
589
+ *
590
+ * @summary Update website collection
591
+ * @param {CollectionsApiUpdateCollectionRequest} requestParameters Request parameters.
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ updateCollection(requestParameters, options) {
596
+ return localVarFp.updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(axios, basePath));
597
+ },
598
+ /**
599
+ *
600
+ * @summary Update website collections
601
+ * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ updateCollections(requestParameters, options) {
606
+ return localVarFp.updateCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateCollectionsRequest, options).then((request) => request(axios, basePath));
607
+ },
608
+ };
609
+ };
610
+ /**
611
+ * CollectionsApi - object-oriented interface
612
+ * @export
613
+ * @class CollectionsApi
614
+ * @extends {BaseAPI}
615
+ */
616
+ export class CollectionsApi extends BaseAPI {
617
+ /**
618
+ *
619
+ * @summary List website collections
620
+ * @param {CollectionsApiListCollectionsRequest} requestParameters Request parameters.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ * @memberof CollectionsApi
624
+ */
625
+ listCollections(requestParameters, options) {
626
+ return CollectionsApiFp(this.configuration).listCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
627
+ }
628
+ /**
629
+ *
630
+ * @summary Update website collection
631
+ * @param {CollectionsApiUpdateCollectionRequest} requestParameters Request parameters.
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ * @memberof CollectionsApi
635
+ */
636
+ updateCollection(requestParameters, options) {
637
+ return CollectionsApiFp(this.configuration).updateCollection(requestParameters.project, requestParameters.collectionId, requestParameters.updateCollectionRequest, options).then((request) => request(this.axios, this.basePath));
638
+ }
639
+ /**
640
+ *
641
+ * @summary Update website collections
642
+ * @param {CollectionsApiUpdateCollectionsRequest} requestParameters Request parameters.
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ * @memberof CollectionsApi
646
+ */
647
+ updateCollections(requestParameters, options) {
648
+ return CollectionsApiFp(this.configuration).updateCollections(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updateCollectionsRequest, options).then((request) => request(this.axios, this.basePath));
649
+ }
650
+ }
59
651
  /**
60
652
  * CrossSellApi - axios parameter creator
61
653
  * @export
@@ -434,6 +1026,302 @@ export class MenuApi extends BaseAPI {
434
1026
  return MenuApiFp(this.configuration).updateMenu(requestParameters.project, requestParameters.updateMenuRequest, options).then((request) => request(this.axios, this.basePath));
435
1027
  }
436
1028
  }
1029
+ /**
1030
+ * PagesApi - axios parameter creator
1031
+ * @export
1032
+ */
1033
+ export const PagesApiAxiosParamCreator = function (configuration) {
1034
+ return {
1035
+ /**
1036
+ *
1037
+ * @summary List website pages
1038
+ * @param {string} project What project it is
1039
+ * @param {number} [pageToken] Page reference token
1040
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1041
+ * @param {string} [search] Search term to filter results
1042
+ * @param {*} [options] Override http request option.
1043
+ * @throws {RequiredError}
1044
+ */
1045
+ listPages: (project_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, options = {}) {
1046
+ // verify required parameter 'project' is not null or undefined
1047
+ assertParamExists('listPages', 'project', project);
1048
+ const localVarPath = `/v1/website/pages`;
1049
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1050
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1051
+ let baseOptions;
1052
+ if (configuration) {
1053
+ baseOptions = configuration.baseOptions;
1054
+ }
1055
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1056
+ const localVarHeaderParameter = {};
1057
+ const localVarQueryParameter = {};
1058
+ // authentication session-oauth required
1059
+ // oauth required
1060
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1061
+ // authentication api-key required
1062
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1063
+ if (project !== undefined) {
1064
+ localVarQueryParameter['project'] = project;
1065
+ }
1066
+ if (pageToken !== undefined) {
1067
+ localVarQueryParameter['pageToken'] = pageToken;
1068
+ }
1069
+ if (pageSize !== undefined) {
1070
+ localVarQueryParameter['pageSize'] = pageSize;
1071
+ }
1072
+ if (search !== undefined) {
1073
+ localVarQueryParameter['search'] = search;
1074
+ }
1075
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1076
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1077
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1078
+ return {
1079
+ url: toPathString(localVarUrlObj),
1080
+ options: localVarRequestOptions,
1081
+ };
1082
+ }),
1083
+ /**
1084
+ *
1085
+ * @summary Update website page
1086
+ * @param {string} project What project it is
1087
+ * @param {string} pageId Page\'s unique identifier
1088
+ * @param {UpdatePageRequest} [updatePageRequest]
1089
+ * @param {*} [options] Override http request option.
1090
+ * @throws {RequiredError}
1091
+ */
1092
+ updatePage: (project_1, pageId_1, updatePageRequest_1, ...args_1) => __awaiter(this, [project_1, pageId_1, updatePageRequest_1, ...args_1], void 0, function* (project, pageId, updatePageRequest, options = {}) {
1093
+ // verify required parameter 'project' is not null or undefined
1094
+ assertParamExists('updatePage', 'project', project);
1095
+ // verify required parameter 'pageId' is not null or undefined
1096
+ assertParamExists('updatePage', 'pageId', pageId);
1097
+ const localVarPath = `/v1/website/pages/{pageId}`
1098
+ .replace(`{${"pageId"}}`, encodeURIComponent(String(pageId)));
1099
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1100
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1101
+ let baseOptions;
1102
+ if (configuration) {
1103
+ baseOptions = configuration.baseOptions;
1104
+ }
1105
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1106
+ const localVarHeaderParameter = {};
1107
+ const localVarQueryParameter = {};
1108
+ // authentication session-oauth required
1109
+ // oauth required
1110
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1111
+ // authentication api-key required
1112
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1113
+ if (project !== undefined) {
1114
+ localVarQueryParameter['project'] = project;
1115
+ }
1116
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1117
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1118
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1119
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1120
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePageRequest, localVarRequestOptions, configuration);
1121
+ return {
1122
+ url: toPathString(localVarUrlObj),
1123
+ options: localVarRequestOptions,
1124
+ };
1125
+ }),
1126
+ /**
1127
+ *
1128
+ * @summary Update website pages
1129
+ * @param {string} project What project it is
1130
+ * @param {number} [pageToken] Page reference token
1131
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1132
+ * @param {string} [search] Search term to filter results
1133
+ * @param {UpdatePagesRequest} [updatePagesRequest] Update pages in bulk.
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ */
1137
+ updatePages: (project_1, pageToken_1, pageSize_1, search_1, updatePagesRequest_1, ...args_1) => __awaiter(this, [project_1, pageToken_1, pageSize_1, search_1, updatePagesRequest_1, ...args_1], void 0, function* (project, pageToken, pageSize, search, updatePagesRequest, options = {}) {
1138
+ // verify required parameter 'project' is not null or undefined
1139
+ assertParamExists('updatePages', 'project', project);
1140
+ const localVarPath = `/v1/website/pages`;
1141
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1142
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1143
+ let baseOptions;
1144
+ if (configuration) {
1145
+ baseOptions = configuration.baseOptions;
1146
+ }
1147
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1148
+ const localVarHeaderParameter = {};
1149
+ const localVarQueryParameter = {};
1150
+ // authentication session-oauth required
1151
+ // oauth required
1152
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1153
+ // authentication api-key required
1154
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1155
+ if (project !== undefined) {
1156
+ localVarQueryParameter['project'] = project;
1157
+ }
1158
+ if (pageToken !== undefined) {
1159
+ localVarQueryParameter['pageToken'] = pageToken;
1160
+ }
1161
+ if (pageSize !== undefined) {
1162
+ localVarQueryParameter['pageSize'] = pageSize;
1163
+ }
1164
+ if (search !== undefined) {
1165
+ localVarQueryParameter['search'] = search;
1166
+ }
1167
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1170
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1171
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePagesRequest, localVarRequestOptions, configuration);
1172
+ return {
1173
+ url: toPathString(localVarUrlObj),
1174
+ options: localVarRequestOptions,
1175
+ };
1176
+ }),
1177
+ };
1178
+ };
1179
+ /**
1180
+ * PagesApi - functional programming interface
1181
+ * @export
1182
+ */
1183
+ export const PagesApiFp = function (configuration) {
1184
+ const localVarAxiosParamCreator = PagesApiAxiosParamCreator(configuration);
1185
+ return {
1186
+ /**
1187
+ *
1188
+ * @summary List website pages
1189
+ * @param {string} project What project it is
1190
+ * @param {number} [pageToken] Page reference token
1191
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1192
+ * @param {string} [search] Search term to filter results
1193
+ * @param {*} [options] Override http request option.
1194
+ * @throws {RequiredError}
1195
+ */
1196
+ listPages(project, pageToken, pageSize, search, options) {
1197
+ return __awaiter(this, void 0, void 0, function* () {
1198
+ var _a, _b, _c;
1199
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listPages(project, pageToken, pageSize, search, options);
1200
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1201
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PagesApi.listPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1202
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1203
+ });
1204
+ },
1205
+ /**
1206
+ *
1207
+ * @summary Update website page
1208
+ * @param {string} project What project it is
1209
+ * @param {string} pageId Page\'s unique identifier
1210
+ * @param {UpdatePageRequest} [updatePageRequest]
1211
+ * @param {*} [options] Override http request option.
1212
+ * @throws {RequiredError}
1213
+ */
1214
+ updatePage(project, pageId, updatePageRequest, options) {
1215
+ return __awaiter(this, void 0, void 0, function* () {
1216
+ var _a, _b, _c;
1217
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePage(project, pageId, updatePageRequest, options);
1218
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1219
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PagesApi.updatePage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1220
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1221
+ });
1222
+ },
1223
+ /**
1224
+ *
1225
+ * @summary Update website pages
1226
+ * @param {string} project What project it is
1227
+ * @param {number} [pageToken] Page reference token
1228
+ * @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
1229
+ * @param {string} [search] Search term to filter results
1230
+ * @param {UpdatePagesRequest} [updatePagesRequest] Update pages in bulk.
1231
+ * @param {*} [options] Override http request option.
1232
+ * @throws {RequiredError}
1233
+ */
1234
+ updatePages(project, pageToken, pageSize, search, updatePagesRequest, options) {
1235
+ return __awaiter(this, void 0, void 0, function* () {
1236
+ var _a, _b, _c;
1237
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePages(project, pageToken, pageSize, search, updatePagesRequest, options);
1238
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1239
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PagesApi.updatePages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1240
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1241
+ });
1242
+ },
1243
+ };
1244
+ };
1245
+ /**
1246
+ * PagesApi - factory interface
1247
+ * @export
1248
+ */
1249
+ export const PagesApiFactory = function (configuration, basePath, axios) {
1250
+ const localVarFp = PagesApiFp(configuration);
1251
+ return {
1252
+ /**
1253
+ *
1254
+ * @summary List website pages
1255
+ * @param {PagesApiListPagesRequest} requestParameters Request parameters.
1256
+ * @param {*} [options] Override http request option.
1257
+ * @throws {RequiredError}
1258
+ */
1259
+ listPages(requestParameters, options) {
1260
+ return localVarFp.listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
1261
+ },
1262
+ /**
1263
+ *
1264
+ * @summary Update website page
1265
+ * @param {PagesApiUpdatePageRequest} requestParameters Request parameters.
1266
+ * @param {*} [options] Override http request option.
1267
+ * @throws {RequiredError}
1268
+ */
1269
+ updatePage(requestParameters, options) {
1270
+ return localVarFp.updatePage(requestParameters.project, requestParameters.pageId, requestParameters.updatePageRequest, options).then((request) => request(axios, basePath));
1271
+ },
1272
+ /**
1273
+ *
1274
+ * @summary Update website pages
1275
+ * @param {PagesApiUpdatePagesRequest} requestParameters Request parameters.
1276
+ * @param {*} [options] Override http request option.
1277
+ * @throws {RequiredError}
1278
+ */
1279
+ updatePages(requestParameters, options) {
1280
+ return localVarFp.updatePages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updatePagesRequest, options).then((request) => request(axios, basePath));
1281
+ },
1282
+ };
1283
+ };
1284
+ /**
1285
+ * PagesApi - object-oriented interface
1286
+ * @export
1287
+ * @class PagesApi
1288
+ * @extends {BaseAPI}
1289
+ */
1290
+ export class PagesApi extends BaseAPI {
1291
+ /**
1292
+ *
1293
+ * @summary List website pages
1294
+ * @param {PagesApiListPagesRequest} requestParameters Request parameters.
1295
+ * @param {*} [options] Override http request option.
1296
+ * @throws {RequiredError}
1297
+ * @memberof PagesApi
1298
+ */
1299
+ listPages(requestParameters, options) {
1300
+ return PagesApiFp(this.configuration).listPages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
1301
+ }
1302
+ /**
1303
+ *
1304
+ * @summary Update website page
1305
+ * @param {PagesApiUpdatePageRequest} requestParameters Request parameters.
1306
+ * @param {*} [options] Override http request option.
1307
+ * @throws {RequiredError}
1308
+ * @memberof PagesApi
1309
+ */
1310
+ updatePage(requestParameters, options) {
1311
+ return PagesApiFp(this.configuration).updatePage(requestParameters.project, requestParameters.pageId, requestParameters.updatePageRequest, options).then((request) => request(this.axios, this.basePath));
1312
+ }
1313
+ /**
1314
+ *
1315
+ * @summary Update website pages
1316
+ * @param {PagesApiUpdatePagesRequest} requestParameters Request parameters.
1317
+ * @param {*} [options] Override http request option.
1318
+ * @throws {RequiredError}
1319
+ * @memberof PagesApi
1320
+ */
1321
+ updatePages(requestParameters, options) {
1322
+ return PagesApiFp(this.configuration).updatePages(requestParameters.project, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.updatePagesRequest, options).then((request) => request(this.axios, this.basePath));
1323
+ }
1324
+ }
437
1325
  /**
438
1326
  * PaymentApi - axios parameter creator
439
1327
  * @export