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