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