@teemill/website 0.19.1 → 0.20.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 +590 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +368 -1
- package/dist/api.js +379 -3
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +368 -1
- package/dist/esm/api.js +369 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/website@0.
|
|
1
|
+
## @teemill/website@0.20.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/website@0.
|
|
39
|
+
npm install @teemill/website@0.20.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your PodOS Website
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.20.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -281,6 +281,19 @@ export interface BlogsResponse {
|
|
|
281
281
|
*/
|
|
282
282
|
'nextPageToken'?: number | null;
|
|
283
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @export
|
|
287
|
+
* @interface Brand
|
|
288
|
+
*/
|
|
289
|
+
export interface Brand {
|
|
290
|
+
/**
|
|
291
|
+
* The URL of the favicon
|
|
292
|
+
* @type {string}
|
|
293
|
+
* @memberof Brand
|
|
294
|
+
*/
|
|
295
|
+
'favicon'?: string;
|
|
296
|
+
}
|
|
284
297
|
/**
|
|
285
298
|
*
|
|
286
299
|
* @export
|
|
@@ -393,6 +406,50 @@ export interface ExportPages202Response {
|
|
|
393
406
|
*/
|
|
394
407
|
'message'?: string;
|
|
395
408
|
}
|
|
409
|
+
/**
|
|
410
|
+
*
|
|
411
|
+
* @export
|
|
412
|
+
* @interface Footer
|
|
413
|
+
*/
|
|
414
|
+
export interface Footer {
|
|
415
|
+
/**
|
|
416
|
+
*
|
|
417
|
+
* @type {Array<FooterItem>}
|
|
418
|
+
* @memberof Footer
|
|
419
|
+
*/
|
|
420
|
+
'items'?: Array<FooterItem>;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
*
|
|
424
|
+
* @export
|
|
425
|
+
* @interface FooterItem
|
|
426
|
+
*/
|
|
427
|
+
export interface FooterItem {
|
|
428
|
+
/**
|
|
429
|
+
*
|
|
430
|
+
* @type {string}
|
|
431
|
+
* @memberof FooterItem
|
|
432
|
+
*/
|
|
433
|
+
'id'?: string;
|
|
434
|
+
/**
|
|
435
|
+
*
|
|
436
|
+
* @type {string}
|
|
437
|
+
* @memberof FooterItem
|
|
438
|
+
*/
|
|
439
|
+
'text'?: string;
|
|
440
|
+
/**
|
|
441
|
+
*
|
|
442
|
+
* @type {string}
|
|
443
|
+
* @memberof FooterItem
|
|
444
|
+
*/
|
|
445
|
+
'link'?: string;
|
|
446
|
+
/**
|
|
447
|
+
*
|
|
448
|
+
* @type {number}
|
|
449
|
+
* @memberof FooterItem
|
|
450
|
+
*/
|
|
451
|
+
'order'?: number;
|
|
452
|
+
}
|
|
396
453
|
/**
|
|
397
454
|
* Image description
|
|
398
455
|
* @export
|
|
@@ -611,6 +668,13 @@ export interface Page {
|
|
|
611
668
|
* @memberof Page
|
|
612
669
|
*/
|
|
613
670
|
'id'?: string;
|
|
671
|
+
/**
|
|
672
|
+
* The legacy ID of the page
|
|
673
|
+
* @type {number}
|
|
674
|
+
* @memberof Page
|
|
675
|
+
* @deprecated
|
|
676
|
+
*/
|
|
677
|
+
'legacyId'?: number;
|
|
614
678
|
/**
|
|
615
679
|
*
|
|
616
680
|
* @type {string}
|
|
@@ -1681,6 +1745,19 @@ export interface UpdateBlogsRequestBlogsInnerSeoMetadata {
|
|
|
1681
1745
|
*/
|
|
1682
1746
|
'description'?: string | null;
|
|
1683
1747
|
}
|
|
1748
|
+
/**
|
|
1749
|
+
*
|
|
1750
|
+
* @export
|
|
1751
|
+
* @interface UpdateBrandRequest
|
|
1752
|
+
*/
|
|
1753
|
+
export interface UpdateBrandRequest {
|
|
1754
|
+
/**
|
|
1755
|
+
*
|
|
1756
|
+
* @type {string}
|
|
1757
|
+
* @memberof UpdateBrandRequest
|
|
1758
|
+
*/
|
|
1759
|
+
'favicon'?: string;
|
|
1760
|
+
}
|
|
1684
1761
|
/**
|
|
1685
1762
|
*
|
|
1686
1763
|
* @export
|
|
@@ -1817,6 +1894,44 @@ export interface UpdateCollectionsRequestCollectionsInnerSeoMetadata {
|
|
|
1817
1894
|
*/
|
|
1818
1895
|
'description'?: string | null;
|
|
1819
1896
|
}
|
|
1897
|
+
/**
|
|
1898
|
+
*
|
|
1899
|
+
* @export
|
|
1900
|
+
* @interface UpdateFooterRequest
|
|
1901
|
+
*/
|
|
1902
|
+
export interface UpdateFooterRequest {
|
|
1903
|
+
/**
|
|
1904
|
+
*
|
|
1905
|
+
* @type {Array<UpdateFooterRequestItemsInner>}
|
|
1906
|
+
* @memberof UpdateFooterRequest
|
|
1907
|
+
*/
|
|
1908
|
+
'items': Array<UpdateFooterRequestItemsInner>;
|
|
1909
|
+
}
|
|
1910
|
+
/**
|
|
1911
|
+
*
|
|
1912
|
+
* @export
|
|
1913
|
+
* @interface UpdateFooterRequestItemsInner
|
|
1914
|
+
*/
|
|
1915
|
+
export interface UpdateFooterRequestItemsInner {
|
|
1916
|
+
/**
|
|
1917
|
+
*
|
|
1918
|
+
* @type {string}
|
|
1919
|
+
* @memberof UpdateFooterRequestItemsInner
|
|
1920
|
+
*/
|
|
1921
|
+
'text': string;
|
|
1922
|
+
/**
|
|
1923
|
+
*
|
|
1924
|
+
* @type {string}
|
|
1925
|
+
* @memberof UpdateFooterRequestItemsInner
|
|
1926
|
+
*/
|
|
1927
|
+
'link': string;
|
|
1928
|
+
/**
|
|
1929
|
+
*
|
|
1930
|
+
* @type {number}
|
|
1931
|
+
* @memberof UpdateFooterRequestItemsInner
|
|
1932
|
+
*/
|
|
1933
|
+
'order': number;
|
|
1934
|
+
}
|
|
1820
1935
|
/**
|
|
1821
1936
|
*
|
|
1822
1937
|
* @export
|
|
@@ -4051,6 +4166,480 @@ export class CrossSellApi extends BaseAPI {
|
|
|
4051
4166
|
|
|
4052
4167
|
|
|
4053
4168
|
|
|
4169
|
+
/**
|
|
4170
|
+
* DefaultApi - axios parameter creator
|
|
4171
|
+
* @export
|
|
4172
|
+
*/
|
|
4173
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4174
|
+
return {
|
|
4175
|
+
/**
|
|
4176
|
+
* Get the brand for the project
|
|
4177
|
+
* @summary Get brand
|
|
4178
|
+
* @param {string} project What project it is
|
|
4179
|
+
* @param {*} [options] Override http request option.
|
|
4180
|
+
* @throws {RequiredError}
|
|
4181
|
+
*/
|
|
4182
|
+
getBrand: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4183
|
+
// verify required parameter 'project' is not null or undefined
|
|
4184
|
+
assertParamExists('getBrand', 'project', project)
|
|
4185
|
+
const localVarPath = `/v1/website/brand`;
|
|
4186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4187
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4188
|
+
let baseOptions;
|
|
4189
|
+
if (configuration) {
|
|
4190
|
+
baseOptions = configuration.baseOptions;
|
|
4191
|
+
}
|
|
4192
|
+
|
|
4193
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4194
|
+
const localVarHeaderParameter = {} as any;
|
|
4195
|
+
const localVarQueryParameter = {} as any;
|
|
4196
|
+
|
|
4197
|
+
// authentication session-oauth required
|
|
4198
|
+
// oauth required
|
|
4199
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4200
|
+
|
|
4201
|
+
// authentication api-key required
|
|
4202
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4203
|
+
|
|
4204
|
+
if (project !== undefined) {
|
|
4205
|
+
localVarQueryParameter['project'] = project;
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
|
|
4209
|
+
|
|
4210
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4211
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4212
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4213
|
+
|
|
4214
|
+
return {
|
|
4215
|
+
url: toPathString(localVarUrlObj),
|
|
4216
|
+
options: localVarRequestOptions,
|
|
4217
|
+
};
|
|
4218
|
+
},
|
|
4219
|
+
/**
|
|
4220
|
+
* Update the brand for the project
|
|
4221
|
+
* @summary Update brand
|
|
4222
|
+
* @param {string} project What project it is
|
|
4223
|
+
* @param {UpdateBrandRequest} [updateBrandRequest] Update brand request
|
|
4224
|
+
* @param {*} [options] Override http request option.
|
|
4225
|
+
* @throws {RequiredError}
|
|
4226
|
+
*/
|
|
4227
|
+
updateBrand: async (project: string, updateBrandRequest?: UpdateBrandRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4228
|
+
// verify required parameter 'project' is not null or undefined
|
|
4229
|
+
assertParamExists('updateBrand', 'project', project)
|
|
4230
|
+
const localVarPath = `/v1/website/brand`;
|
|
4231
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4232
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4233
|
+
let baseOptions;
|
|
4234
|
+
if (configuration) {
|
|
4235
|
+
baseOptions = configuration.baseOptions;
|
|
4236
|
+
}
|
|
4237
|
+
|
|
4238
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
4239
|
+
const localVarHeaderParameter = {} as any;
|
|
4240
|
+
const localVarQueryParameter = {} as any;
|
|
4241
|
+
|
|
4242
|
+
// authentication session-oauth required
|
|
4243
|
+
// oauth required
|
|
4244
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4245
|
+
|
|
4246
|
+
// authentication api-key required
|
|
4247
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4248
|
+
|
|
4249
|
+
if (project !== undefined) {
|
|
4250
|
+
localVarQueryParameter['project'] = project;
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4253
|
+
|
|
4254
|
+
|
|
4255
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4256
|
+
|
|
4257
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4258
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4259
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4260
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBrandRequest, localVarRequestOptions, configuration)
|
|
4261
|
+
|
|
4262
|
+
return {
|
|
4263
|
+
url: toPathString(localVarUrlObj),
|
|
4264
|
+
options: localVarRequestOptions,
|
|
4265
|
+
};
|
|
4266
|
+
},
|
|
4267
|
+
}
|
|
4268
|
+
};
|
|
4269
|
+
|
|
4270
|
+
/**
|
|
4271
|
+
* DefaultApi - functional programming interface
|
|
4272
|
+
* @export
|
|
4273
|
+
*/
|
|
4274
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
4275
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
4276
|
+
return {
|
|
4277
|
+
/**
|
|
4278
|
+
* Get the brand for the project
|
|
4279
|
+
* @summary Get brand
|
|
4280
|
+
* @param {string} project What project it is
|
|
4281
|
+
* @param {*} [options] Override http request option.
|
|
4282
|
+
* @throws {RequiredError}
|
|
4283
|
+
*/
|
|
4284
|
+
async getBrand(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Brand>> {
|
|
4285
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBrand(project, options);
|
|
4286
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4287
|
+
const localVarOperationServerBasePath = operationServerMap['DefaultApi.getBrand']?.[localVarOperationServerIndex]?.url;
|
|
4288
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4289
|
+
},
|
|
4290
|
+
/**
|
|
4291
|
+
* Update the brand for the project
|
|
4292
|
+
* @summary Update brand
|
|
4293
|
+
* @param {string} project What project it is
|
|
4294
|
+
* @param {UpdateBrandRequest} [updateBrandRequest] Update brand request
|
|
4295
|
+
* @param {*} [options] Override http request option.
|
|
4296
|
+
* @throws {RequiredError}
|
|
4297
|
+
*/
|
|
4298
|
+
async updateBrand(project: string, updateBrandRequest?: UpdateBrandRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Brand>> {
|
|
4299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBrand(project, updateBrandRequest, options);
|
|
4300
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4301
|
+
const localVarOperationServerBasePath = operationServerMap['DefaultApi.updateBrand']?.[localVarOperationServerIndex]?.url;
|
|
4302
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4303
|
+
},
|
|
4304
|
+
}
|
|
4305
|
+
};
|
|
4306
|
+
|
|
4307
|
+
/**
|
|
4308
|
+
* DefaultApi - factory interface
|
|
4309
|
+
* @export
|
|
4310
|
+
*/
|
|
4311
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4312
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
4313
|
+
return {
|
|
4314
|
+
/**
|
|
4315
|
+
* Get the brand for the project
|
|
4316
|
+
* @summary Get brand
|
|
4317
|
+
* @param {DefaultApiGetBrandRequest} requestParameters Request parameters.
|
|
4318
|
+
* @param {*} [options] Override http request option.
|
|
4319
|
+
* @throws {RequiredError}
|
|
4320
|
+
*/
|
|
4321
|
+
getBrand(requestParameters: DefaultApiGetBrandRequest, options?: RawAxiosRequestConfig): AxiosPromise<Brand> {
|
|
4322
|
+
return localVarFp.getBrand(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
4323
|
+
},
|
|
4324
|
+
/**
|
|
4325
|
+
* Update the brand for the project
|
|
4326
|
+
* @summary Update brand
|
|
4327
|
+
* @param {DefaultApiUpdateBrandRequest} requestParameters Request parameters.
|
|
4328
|
+
* @param {*} [options] Override http request option.
|
|
4329
|
+
* @throws {RequiredError}
|
|
4330
|
+
*/
|
|
4331
|
+
updateBrand(requestParameters: DefaultApiUpdateBrandRequest, options?: RawAxiosRequestConfig): AxiosPromise<Brand> {
|
|
4332
|
+
return localVarFp.updateBrand(requestParameters.project, requestParameters.updateBrandRequest, options).then((request) => request(axios, basePath));
|
|
4333
|
+
},
|
|
4334
|
+
};
|
|
4335
|
+
};
|
|
4336
|
+
|
|
4337
|
+
/**
|
|
4338
|
+
* Request parameters for getBrand operation in DefaultApi.
|
|
4339
|
+
* @export
|
|
4340
|
+
* @interface DefaultApiGetBrandRequest
|
|
4341
|
+
*/
|
|
4342
|
+
export interface DefaultApiGetBrandRequest {
|
|
4343
|
+
/**
|
|
4344
|
+
* What project it is
|
|
4345
|
+
* @type {string}
|
|
4346
|
+
* @memberof DefaultApiGetBrand
|
|
4347
|
+
*/
|
|
4348
|
+
readonly project: string
|
|
4349
|
+
}
|
|
4350
|
+
|
|
4351
|
+
/**
|
|
4352
|
+
* Request parameters for updateBrand operation in DefaultApi.
|
|
4353
|
+
* @export
|
|
4354
|
+
* @interface DefaultApiUpdateBrandRequest
|
|
4355
|
+
*/
|
|
4356
|
+
export interface DefaultApiUpdateBrandRequest {
|
|
4357
|
+
/**
|
|
4358
|
+
* What project it is
|
|
4359
|
+
* @type {string}
|
|
4360
|
+
* @memberof DefaultApiUpdateBrand
|
|
4361
|
+
*/
|
|
4362
|
+
readonly project: string
|
|
4363
|
+
|
|
4364
|
+
/**
|
|
4365
|
+
* Update brand request
|
|
4366
|
+
* @type {UpdateBrandRequest}
|
|
4367
|
+
* @memberof DefaultApiUpdateBrand
|
|
4368
|
+
*/
|
|
4369
|
+
readonly updateBrandRequest?: UpdateBrandRequest
|
|
4370
|
+
}
|
|
4371
|
+
|
|
4372
|
+
/**
|
|
4373
|
+
* DefaultApi - object-oriented interface
|
|
4374
|
+
* @export
|
|
4375
|
+
* @class DefaultApi
|
|
4376
|
+
* @extends {BaseAPI}
|
|
4377
|
+
*/
|
|
4378
|
+
export class DefaultApi extends BaseAPI {
|
|
4379
|
+
/**
|
|
4380
|
+
* Get the brand for the project
|
|
4381
|
+
* @summary Get brand
|
|
4382
|
+
* @param {DefaultApiGetBrandRequest} requestParameters Request parameters.
|
|
4383
|
+
* @param {*} [options] Override http request option.
|
|
4384
|
+
* @throws {RequiredError}
|
|
4385
|
+
* @memberof DefaultApi
|
|
4386
|
+
*/
|
|
4387
|
+
public getBrand(requestParameters: DefaultApiGetBrandRequest, options?: RawAxiosRequestConfig) {
|
|
4388
|
+
return DefaultApiFp(this.configuration).getBrand(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
4389
|
+
}
|
|
4390
|
+
|
|
4391
|
+
/**
|
|
4392
|
+
* Update the brand for the project
|
|
4393
|
+
* @summary Update brand
|
|
4394
|
+
* @param {DefaultApiUpdateBrandRequest} requestParameters Request parameters.
|
|
4395
|
+
* @param {*} [options] Override http request option.
|
|
4396
|
+
* @throws {RequiredError}
|
|
4397
|
+
* @memberof DefaultApi
|
|
4398
|
+
*/
|
|
4399
|
+
public updateBrand(requestParameters: DefaultApiUpdateBrandRequest, options?: RawAxiosRequestConfig) {
|
|
4400
|
+
return DefaultApiFp(this.configuration).updateBrand(requestParameters.project, requestParameters.updateBrandRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4401
|
+
}
|
|
4402
|
+
}
|
|
4403
|
+
|
|
4404
|
+
|
|
4405
|
+
|
|
4406
|
+
/**
|
|
4407
|
+
* FooterApi - axios parameter creator
|
|
4408
|
+
* @export
|
|
4409
|
+
*/
|
|
4410
|
+
export const FooterApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
4411
|
+
return {
|
|
4412
|
+
/**
|
|
4413
|
+
* Get the footer for the project
|
|
4414
|
+
* @summary Get footer
|
|
4415
|
+
* @param {string} project What project it is
|
|
4416
|
+
* @param {*} [options] Override http request option.
|
|
4417
|
+
* @throws {RequiredError}
|
|
4418
|
+
*/
|
|
4419
|
+
getFooter: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4420
|
+
// verify required parameter 'project' is not null or undefined
|
|
4421
|
+
assertParamExists('getFooter', 'project', project)
|
|
4422
|
+
const localVarPath = `/v1/website/footer`;
|
|
4423
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4424
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4425
|
+
let baseOptions;
|
|
4426
|
+
if (configuration) {
|
|
4427
|
+
baseOptions = configuration.baseOptions;
|
|
4428
|
+
}
|
|
4429
|
+
|
|
4430
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
4431
|
+
const localVarHeaderParameter = {} as any;
|
|
4432
|
+
const localVarQueryParameter = {} as any;
|
|
4433
|
+
|
|
4434
|
+
// authentication session-oauth required
|
|
4435
|
+
// oauth required
|
|
4436
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4437
|
+
|
|
4438
|
+
// authentication api-key required
|
|
4439
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4440
|
+
|
|
4441
|
+
if (project !== undefined) {
|
|
4442
|
+
localVarQueryParameter['project'] = project;
|
|
4443
|
+
}
|
|
4444
|
+
|
|
4445
|
+
|
|
4446
|
+
|
|
4447
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4448
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4449
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4450
|
+
|
|
4451
|
+
return {
|
|
4452
|
+
url: toPathString(localVarUrlObj),
|
|
4453
|
+
options: localVarRequestOptions,
|
|
4454
|
+
};
|
|
4455
|
+
},
|
|
4456
|
+
/**
|
|
4457
|
+
* Update a footer
|
|
4458
|
+
* @summary Update footer
|
|
4459
|
+
* @param {string} project What project it is
|
|
4460
|
+
* @param {UpdateFooterRequest} [updateFooterRequest] Update footer
|
|
4461
|
+
* @param {*} [options] Override http request option.
|
|
4462
|
+
* @throws {RequiredError}
|
|
4463
|
+
*/
|
|
4464
|
+
updateFooter: async (project: string, updateFooterRequest?: UpdateFooterRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4465
|
+
// verify required parameter 'project' is not null or undefined
|
|
4466
|
+
assertParamExists('updateFooter', 'project', project)
|
|
4467
|
+
const localVarPath = `/v1/website/footer`;
|
|
4468
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4469
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4470
|
+
let baseOptions;
|
|
4471
|
+
if (configuration) {
|
|
4472
|
+
baseOptions = configuration.baseOptions;
|
|
4473
|
+
}
|
|
4474
|
+
|
|
4475
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
4476
|
+
const localVarHeaderParameter = {} as any;
|
|
4477
|
+
const localVarQueryParameter = {} as any;
|
|
4478
|
+
|
|
4479
|
+
// authentication session-oauth required
|
|
4480
|
+
// oauth required
|
|
4481
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
4482
|
+
|
|
4483
|
+
// authentication api-key required
|
|
4484
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
4485
|
+
|
|
4486
|
+
if (project !== undefined) {
|
|
4487
|
+
localVarQueryParameter['project'] = project;
|
|
4488
|
+
}
|
|
4489
|
+
|
|
4490
|
+
|
|
4491
|
+
|
|
4492
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4493
|
+
|
|
4494
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4495
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4496
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4497
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateFooterRequest, localVarRequestOptions, configuration)
|
|
4498
|
+
|
|
4499
|
+
return {
|
|
4500
|
+
url: toPathString(localVarUrlObj),
|
|
4501
|
+
options: localVarRequestOptions,
|
|
4502
|
+
};
|
|
4503
|
+
},
|
|
4504
|
+
}
|
|
4505
|
+
};
|
|
4506
|
+
|
|
4507
|
+
/**
|
|
4508
|
+
* FooterApi - functional programming interface
|
|
4509
|
+
* @export
|
|
4510
|
+
*/
|
|
4511
|
+
export const FooterApiFp = function(configuration?: Configuration) {
|
|
4512
|
+
const localVarAxiosParamCreator = FooterApiAxiosParamCreator(configuration)
|
|
4513
|
+
return {
|
|
4514
|
+
/**
|
|
4515
|
+
* Get the footer for the project
|
|
4516
|
+
* @summary Get footer
|
|
4517
|
+
* @param {string} project What project it is
|
|
4518
|
+
* @param {*} [options] Override http request option.
|
|
4519
|
+
* @throws {RequiredError}
|
|
4520
|
+
*/
|
|
4521
|
+
async getFooter(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Footer>>> {
|
|
4522
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFooter(project, options);
|
|
4523
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4524
|
+
const localVarOperationServerBasePath = operationServerMap['FooterApi.getFooter']?.[localVarOperationServerIndex]?.url;
|
|
4525
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4526
|
+
},
|
|
4527
|
+
/**
|
|
4528
|
+
* Update a footer
|
|
4529
|
+
* @summary Update footer
|
|
4530
|
+
* @param {string} project What project it is
|
|
4531
|
+
* @param {UpdateFooterRequest} [updateFooterRequest] Update footer
|
|
4532
|
+
* @param {*} [options] Override http request option.
|
|
4533
|
+
* @throws {RequiredError}
|
|
4534
|
+
*/
|
|
4535
|
+
async updateFooter(project: string, updateFooterRequest?: UpdateFooterRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Footer>>> {
|
|
4536
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFooter(project, updateFooterRequest, options);
|
|
4537
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4538
|
+
const localVarOperationServerBasePath = operationServerMap['FooterApi.updateFooter']?.[localVarOperationServerIndex]?.url;
|
|
4539
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4540
|
+
},
|
|
4541
|
+
}
|
|
4542
|
+
};
|
|
4543
|
+
|
|
4544
|
+
/**
|
|
4545
|
+
* FooterApi - factory interface
|
|
4546
|
+
* @export
|
|
4547
|
+
*/
|
|
4548
|
+
export const FooterApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
4549
|
+
const localVarFp = FooterApiFp(configuration)
|
|
4550
|
+
return {
|
|
4551
|
+
/**
|
|
4552
|
+
* Get the footer for the project
|
|
4553
|
+
* @summary Get footer
|
|
4554
|
+
* @param {FooterApiGetFooterRequest} requestParameters Request parameters.
|
|
4555
|
+
* @param {*} [options] Override http request option.
|
|
4556
|
+
* @throws {RequiredError}
|
|
4557
|
+
*/
|
|
4558
|
+
getFooter(requestParameters: FooterApiGetFooterRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Footer>> {
|
|
4559
|
+
return localVarFp.getFooter(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
4560
|
+
},
|
|
4561
|
+
/**
|
|
4562
|
+
* Update a footer
|
|
4563
|
+
* @summary Update footer
|
|
4564
|
+
* @param {FooterApiUpdateFooterRequest} requestParameters Request parameters.
|
|
4565
|
+
* @param {*} [options] Override http request option.
|
|
4566
|
+
* @throws {RequiredError}
|
|
4567
|
+
*/
|
|
4568
|
+
updateFooter(requestParameters: FooterApiUpdateFooterRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Footer>> {
|
|
4569
|
+
return localVarFp.updateFooter(requestParameters.project, requestParameters.updateFooterRequest, options).then((request) => request(axios, basePath));
|
|
4570
|
+
},
|
|
4571
|
+
};
|
|
4572
|
+
};
|
|
4573
|
+
|
|
4574
|
+
/**
|
|
4575
|
+
* Request parameters for getFooter operation in FooterApi.
|
|
4576
|
+
* @export
|
|
4577
|
+
* @interface FooterApiGetFooterRequest
|
|
4578
|
+
*/
|
|
4579
|
+
export interface FooterApiGetFooterRequest {
|
|
4580
|
+
/**
|
|
4581
|
+
* What project it is
|
|
4582
|
+
* @type {string}
|
|
4583
|
+
* @memberof FooterApiGetFooter
|
|
4584
|
+
*/
|
|
4585
|
+
readonly project: string
|
|
4586
|
+
}
|
|
4587
|
+
|
|
4588
|
+
/**
|
|
4589
|
+
* Request parameters for updateFooter operation in FooterApi.
|
|
4590
|
+
* @export
|
|
4591
|
+
* @interface FooterApiUpdateFooterRequest
|
|
4592
|
+
*/
|
|
4593
|
+
export interface FooterApiUpdateFooterRequest {
|
|
4594
|
+
/**
|
|
4595
|
+
* What project it is
|
|
4596
|
+
* @type {string}
|
|
4597
|
+
* @memberof FooterApiUpdateFooter
|
|
4598
|
+
*/
|
|
4599
|
+
readonly project: string
|
|
4600
|
+
|
|
4601
|
+
/**
|
|
4602
|
+
* Update footer
|
|
4603
|
+
* @type {UpdateFooterRequest}
|
|
4604
|
+
* @memberof FooterApiUpdateFooter
|
|
4605
|
+
*/
|
|
4606
|
+
readonly updateFooterRequest?: UpdateFooterRequest
|
|
4607
|
+
}
|
|
4608
|
+
|
|
4609
|
+
/**
|
|
4610
|
+
* FooterApi - object-oriented interface
|
|
4611
|
+
* @export
|
|
4612
|
+
* @class FooterApi
|
|
4613
|
+
* @extends {BaseAPI}
|
|
4614
|
+
*/
|
|
4615
|
+
export class FooterApi extends BaseAPI {
|
|
4616
|
+
/**
|
|
4617
|
+
* Get the footer for the project
|
|
4618
|
+
* @summary Get footer
|
|
4619
|
+
* @param {FooterApiGetFooterRequest} requestParameters Request parameters.
|
|
4620
|
+
* @param {*} [options] Override http request option.
|
|
4621
|
+
* @throws {RequiredError}
|
|
4622
|
+
* @memberof FooterApi
|
|
4623
|
+
*/
|
|
4624
|
+
public getFooter(requestParameters: FooterApiGetFooterRequest, options?: RawAxiosRequestConfig) {
|
|
4625
|
+
return FooterApiFp(this.configuration).getFooter(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
4626
|
+
}
|
|
4627
|
+
|
|
4628
|
+
/**
|
|
4629
|
+
* Update a footer
|
|
4630
|
+
* @summary Update footer
|
|
4631
|
+
* @param {FooterApiUpdateFooterRequest} requestParameters Request parameters.
|
|
4632
|
+
* @param {*} [options] Override http request option.
|
|
4633
|
+
* @throws {RequiredError}
|
|
4634
|
+
* @memberof FooterApi
|
|
4635
|
+
*/
|
|
4636
|
+
public updateFooter(requestParameters: FooterApiUpdateFooterRequest, options?: RawAxiosRequestConfig) {
|
|
4637
|
+
return FooterApiFp(this.configuration).updateFooter(requestParameters.project, requestParameters.updateFooterRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4638
|
+
}
|
|
4639
|
+
}
|
|
4640
|
+
|
|
4641
|
+
|
|
4642
|
+
|
|
4054
4643
|
/**
|
|
4055
4644
|
* MenuApi - axios parameter creator
|
|
4056
4645
|
* @export
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED