@teemill/website 0.14.0 → 0.16.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 +414 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +261 -1
- package/dist/api.js +235 -1
- 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 +261 -1
- package/dist/esm/api.js +235 -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.16.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.16.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.16.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -249,6 +249,18 @@ export interface Blog {
|
|
|
249
249
|
* @memberof Blog
|
|
250
250
|
*/
|
|
251
251
|
'targetSearchPhraseData'?: TargetSearchPhraseData;
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @type {MetaImage}
|
|
255
|
+
* @memberof Blog
|
|
256
|
+
*/
|
|
257
|
+
'metaImage'?: MetaImage;
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @type {string}
|
|
261
|
+
* @memberof Blog
|
|
262
|
+
*/
|
|
263
|
+
'publishedAt'?: string | null;
|
|
252
264
|
}
|
|
253
265
|
/**
|
|
254
266
|
*
|
|
@@ -299,6 +311,12 @@ export interface Collection {
|
|
|
299
311
|
* @memberof Collection
|
|
300
312
|
*/
|
|
301
313
|
'slug'?: string;
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof Collection
|
|
318
|
+
*/
|
|
319
|
+
'longDescription'?: string;
|
|
302
320
|
/**
|
|
303
321
|
*
|
|
304
322
|
* @type {SeoMetadata}
|
|
@@ -311,6 +329,18 @@ export interface Collection {
|
|
|
311
329
|
* @memberof Collection
|
|
312
330
|
*/
|
|
313
331
|
'targetSearchPhraseData'?: TargetSearchPhraseData;
|
|
332
|
+
/**
|
|
333
|
+
* History of AI optimisations performed on the collection
|
|
334
|
+
* @type {Array<OptimisationHistoryItem>}
|
|
335
|
+
* @memberof Collection
|
|
336
|
+
*/
|
|
337
|
+
'optimisationHistory'?: Array<OptimisationHistoryItem>;
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @type {MetaImage}
|
|
341
|
+
* @memberof Collection
|
|
342
|
+
*/
|
|
343
|
+
'metaImage'?: MetaImage;
|
|
314
344
|
}
|
|
315
345
|
/**
|
|
316
346
|
*
|
|
@@ -493,6 +523,44 @@ export interface MetaField {
|
|
|
493
523
|
*/
|
|
494
524
|
'value': string;
|
|
495
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* The image that will in links shared on social media platforms
|
|
528
|
+
* @export
|
|
529
|
+
* @interface MetaImage
|
|
530
|
+
*/
|
|
531
|
+
export interface MetaImage {
|
|
532
|
+
/**
|
|
533
|
+
*
|
|
534
|
+
* @type {string}
|
|
535
|
+
* @memberof MetaImage
|
|
536
|
+
*/
|
|
537
|
+
'src'?: string;
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
* @type {string}
|
|
541
|
+
* @memberof MetaImage
|
|
542
|
+
*/
|
|
543
|
+
'alt'?: string;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @export
|
|
548
|
+
* @interface OptimisationHistoryItem
|
|
549
|
+
*/
|
|
550
|
+
export interface OptimisationHistoryItem {
|
|
551
|
+
/**
|
|
552
|
+
* Unique object identifier
|
|
553
|
+
* @type {string}
|
|
554
|
+
* @memberof OptimisationHistoryItem
|
|
555
|
+
*/
|
|
556
|
+
'id'?: string;
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type {string}
|
|
560
|
+
* @memberof OptimisationHistoryItem
|
|
561
|
+
*/
|
|
562
|
+
'createdAt'?: string;
|
|
563
|
+
}
|
|
496
564
|
/**
|
|
497
565
|
*
|
|
498
566
|
* @export
|
|
@@ -529,6 +597,24 @@ export interface Page {
|
|
|
529
597
|
* @memberof Page
|
|
530
598
|
*/
|
|
531
599
|
'targetSearchPhraseData'?: TargetSearchPhraseData;
|
|
600
|
+
/**
|
|
601
|
+
* History of AI optimisations performed on the page
|
|
602
|
+
* @type {Array<OptimisationHistoryItem>}
|
|
603
|
+
* @memberof Page
|
|
604
|
+
*/
|
|
605
|
+
'optimisationHistory'?: Array<OptimisationHistoryItem>;
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
* @type {MetaImage}
|
|
609
|
+
* @memberof Page
|
|
610
|
+
*/
|
|
611
|
+
'metaImage'?: MetaImage;
|
|
612
|
+
/**
|
|
613
|
+
*
|
|
614
|
+
* @type {string}
|
|
615
|
+
* @memberof Page
|
|
616
|
+
*/
|
|
617
|
+
'publishedAt'?: string | null;
|
|
532
618
|
}
|
|
533
619
|
/**
|
|
534
620
|
*
|
|
@@ -1407,6 +1493,12 @@ export interface UpdateCollectionRequest {
|
|
|
1407
1493
|
* @memberof UpdateCollectionRequest
|
|
1408
1494
|
*/
|
|
1409
1495
|
'slug'?: string;
|
|
1496
|
+
/**
|
|
1497
|
+
* Long-form description for the collection used for SEO.
|
|
1498
|
+
* @type {string}
|
|
1499
|
+
* @memberof UpdateCollectionRequest
|
|
1500
|
+
*/
|
|
1501
|
+
'longDescription'?: string;
|
|
1410
1502
|
/**
|
|
1411
1503
|
*
|
|
1412
1504
|
* @type {UpdateCollectionsRequestCollectionsInnerSeoMetadata}
|
|
@@ -1469,6 +1561,12 @@ export interface UpdateCollectionsRequestCollectionsInner {
|
|
|
1469
1561
|
* @memberof UpdateCollectionsRequestCollectionsInner
|
|
1470
1562
|
*/
|
|
1471
1563
|
'slug'?: string;
|
|
1564
|
+
/**
|
|
1565
|
+
* Long-form description for the collection used for SEO.
|
|
1566
|
+
* @type {string}
|
|
1567
|
+
* @memberof UpdateCollectionsRequestCollectionsInner
|
|
1568
|
+
*/
|
|
1569
|
+
'longDescription'?: string;
|
|
1472
1570
|
/**
|
|
1473
1571
|
*
|
|
1474
1572
|
* @type {UpdateCollectionsRequestCollectionsInnerSeoMetadata}
|
|
@@ -2097,6 +2195,54 @@ export interface Video {
|
|
|
2097
2195
|
*/
|
|
2098
2196
|
export const BlogsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2099
2197
|
return {
|
|
2198
|
+
/**
|
|
2199
|
+
*
|
|
2200
|
+
* @summary Get website blog post
|
|
2201
|
+
* @param {string} project What project it is
|
|
2202
|
+
* @param {string} blogId Blog\'s unique identifier
|
|
2203
|
+
* @param {*} [options] Override http request option.
|
|
2204
|
+
* @throws {RequiredError}
|
|
2205
|
+
*/
|
|
2206
|
+
getBlog: async (project: string, blogId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2207
|
+
// verify required parameter 'project' is not null or undefined
|
|
2208
|
+
assertParamExists('getBlog', 'project', project)
|
|
2209
|
+
// verify required parameter 'blogId' is not null or undefined
|
|
2210
|
+
assertParamExists('getBlog', 'blogId', blogId)
|
|
2211
|
+
const localVarPath = `/v1/website/blogs/{blogId}`
|
|
2212
|
+
.replace(`{${"blogId"}}`, encodeURIComponent(String(blogId)));
|
|
2213
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2214
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2215
|
+
let baseOptions;
|
|
2216
|
+
if (configuration) {
|
|
2217
|
+
baseOptions = configuration.baseOptions;
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2221
|
+
const localVarHeaderParameter = {} as any;
|
|
2222
|
+
const localVarQueryParameter = {} as any;
|
|
2223
|
+
|
|
2224
|
+
// authentication session-oauth required
|
|
2225
|
+
// oauth required
|
|
2226
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2227
|
+
|
|
2228
|
+
// authentication api-key required
|
|
2229
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2230
|
+
|
|
2231
|
+
if (project !== undefined) {
|
|
2232
|
+
localVarQueryParameter['project'] = project;
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2235
|
+
|
|
2236
|
+
|
|
2237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2240
|
+
|
|
2241
|
+
return {
|
|
2242
|
+
url: toPathString(localVarUrlObj),
|
|
2243
|
+
options: localVarRequestOptions,
|
|
2244
|
+
};
|
|
2245
|
+
},
|
|
2100
2246
|
/**
|
|
2101
2247
|
*
|
|
2102
2248
|
* @summary List website blog posts
|
|
@@ -2281,6 +2427,20 @@ export const BlogsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
2281
2427
|
export const BlogsApiFp = function(configuration?: Configuration) {
|
|
2282
2428
|
const localVarAxiosParamCreator = BlogsApiAxiosParamCreator(configuration)
|
|
2283
2429
|
return {
|
|
2430
|
+
/**
|
|
2431
|
+
*
|
|
2432
|
+
* @summary Get website blog post
|
|
2433
|
+
* @param {string} project What project it is
|
|
2434
|
+
* @param {string} blogId Blog\'s unique identifier
|
|
2435
|
+
* @param {*} [options] Override http request option.
|
|
2436
|
+
* @throws {RequiredError}
|
|
2437
|
+
*/
|
|
2438
|
+
async getBlog(project: string, blogId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Blog>> {
|
|
2439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBlog(project, blogId, options);
|
|
2440
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2441
|
+
const localVarOperationServerBasePath = operationServerMap['BlogsApi.getBlog']?.[localVarOperationServerIndex]?.url;
|
|
2442
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2443
|
+
},
|
|
2284
2444
|
/**
|
|
2285
2445
|
*
|
|
2286
2446
|
* @summary List website blog posts
|
|
@@ -2339,6 +2499,16 @@ export const BlogsApiFp = function(configuration?: Configuration) {
|
|
|
2339
2499
|
export const BlogsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2340
2500
|
const localVarFp = BlogsApiFp(configuration)
|
|
2341
2501
|
return {
|
|
2502
|
+
/**
|
|
2503
|
+
*
|
|
2504
|
+
* @summary Get website blog post
|
|
2505
|
+
* @param {BlogsApiGetBlogRequest} requestParameters Request parameters.
|
|
2506
|
+
* @param {*} [options] Override http request option.
|
|
2507
|
+
* @throws {RequiredError}
|
|
2508
|
+
*/
|
|
2509
|
+
getBlog(requestParameters: BlogsApiGetBlogRequest, options?: RawAxiosRequestConfig): AxiosPromise<Blog> {
|
|
2510
|
+
return localVarFp.getBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(axios, basePath));
|
|
2511
|
+
},
|
|
2342
2512
|
/**
|
|
2343
2513
|
*
|
|
2344
2514
|
* @summary List website blog posts
|
|
@@ -2372,6 +2542,27 @@ export const BlogsApiFactory = function (configuration?: Configuration, basePath
|
|
|
2372
2542
|
};
|
|
2373
2543
|
};
|
|
2374
2544
|
|
|
2545
|
+
/**
|
|
2546
|
+
* Request parameters for getBlog operation in BlogsApi.
|
|
2547
|
+
* @export
|
|
2548
|
+
* @interface BlogsApiGetBlogRequest
|
|
2549
|
+
*/
|
|
2550
|
+
export interface BlogsApiGetBlogRequest {
|
|
2551
|
+
/**
|
|
2552
|
+
* What project it is
|
|
2553
|
+
* @type {string}
|
|
2554
|
+
* @memberof BlogsApiGetBlog
|
|
2555
|
+
*/
|
|
2556
|
+
readonly project: string
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
* Blog\'s unique identifier
|
|
2560
|
+
* @type {string}
|
|
2561
|
+
* @memberof BlogsApiGetBlog
|
|
2562
|
+
*/
|
|
2563
|
+
readonly blogId: string
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2375
2566
|
/**
|
|
2376
2567
|
* Request parameters for listBlogs operation in BlogsApi.
|
|
2377
2568
|
* @export
|
|
@@ -2484,6 +2675,18 @@ export interface BlogsApiUpdateBlogsRequest {
|
|
|
2484
2675
|
* @extends {BaseAPI}
|
|
2485
2676
|
*/
|
|
2486
2677
|
export class BlogsApi extends BaseAPI {
|
|
2678
|
+
/**
|
|
2679
|
+
*
|
|
2680
|
+
* @summary Get website blog post
|
|
2681
|
+
* @param {BlogsApiGetBlogRequest} requestParameters Request parameters.
|
|
2682
|
+
* @param {*} [options] Override http request option.
|
|
2683
|
+
* @throws {RequiredError}
|
|
2684
|
+
* @memberof BlogsApi
|
|
2685
|
+
*/
|
|
2686
|
+
public getBlog(requestParameters: BlogsApiGetBlogRequest, options?: RawAxiosRequestConfig) {
|
|
2687
|
+
return BlogsApiFp(this.configuration).getBlog(requestParameters.project, requestParameters.blogId, options).then((request) => request(this.axios, this.basePath));
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2487
2690
|
/**
|
|
2488
2691
|
*
|
|
2489
2692
|
* @summary List website blog posts
|
|
@@ -2529,6 +2732,54 @@ export class BlogsApi extends BaseAPI {
|
|
|
2529
2732
|
*/
|
|
2530
2733
|
export const CollectionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2531
2734
|
return {
|
|
2735
|
+
/**
|
|
2736
|
+
*
|
|
2737
|
+
* @summary Get website collection
|
|
2738
|
+
* @param {string} project What project it is
|
|
2739
|
+
* @param {string} collectionId Collection\'s unique identifier
|
|
2740
|
+
* @param {*} [options] Override http request option.
|
|
2741
|
+
* @throws {RequiredError}
|
|
2742
|
+
*/
|
|
2743
|
+
getCollection: async (project: string, collectionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2744
|
+
// verify required parameter 'project' is not null or undefined
|
|
2745
|
+
assertParamExists('getCollection', 'project', project)
|
|
2746
|
+
// verify required parameter 'collectionId' is not null or undefined
|
|
2747
|
+
assertParamExists('getCollection', 'collectionId', collectionId)
|
|
2748
|
+
const localVarPath = `/v1/website/collections/{collectionId}`
|
|
2749
|
+
.replace(`{${"collectionId"}}`, encodeURIComponent(String(collectionId)));
|
|
2750
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2751
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2752
|
+
let baseOptions;
|
|
2753
|
+
if (configuration) {
|
|
2754
|
+
baseOptions = configuration.baseOptions;
|
|
2755
|
+
}
|
|
2756
|
+
|
|
2757
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2758
|
+
const localVarHeaderParameter = {} as any;
|
|
2759
|
+
const localVarQueryParameter = {} as any;
|
|
2760
|
+
|
|
2761
|
+
// authentication session-oauth required
|
|
2762
|
+
// oauth required
|
|
2763
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2764
|
+
|
|
2765
|
+
// authentication api-key required
|
|
2766
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2767
|
+
|
|
2768
|
+
if (project !== undefined) {
|
|
2769
|
+
localVarQueryParameter['project'] = project;
|
|
2770
|
+
}
|
|
2771
|
+
|
|
2772
|
+
|
|
2773
|
+
|
|
2774
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2775
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2776
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2777
|
+
|
|
2778
|
+
return {
|
|
2779
|
+
url: toPathString(localVarUrlObj),
|
|
2780
|
+
options: localVarRequestOptions,
|
|
2781
|
+
};
|
|
2782
|
+
},
|
|
2532
2783
|
/**
|
|
2533
2784
|
*
|
|
2534
2785
|
* @summary List website collections
|
|
@@ -2761,6 +3012,20 @@ export const CollectionsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
2761
3012
|
export const CollectionsApiFp = function(configuration?: Configuration) {
|
|
2762
3013
|
const localVarAxiosParamCreator = CollectionsApiAxiosParamCreator(configuration)
|
|
2763
3014
|
return {
|
|
3015
|
+
/**
|
|
3016
|
+
*
|
|
3017
|
+
* @summary Get website collection
|
|
3018
|
+
* @param {string} project What project it is
|
|
3019
|
+
* @param {string} collectionId Collection\'s unique identifier
|
|
3020
|
+
* @param {*} [options] Override http request option.
|
|
3021
|
+
* @throws {RequiredError}
|
|
3022
|
+
*/
|
|
3023
|
+
async getCollection(project: string, collectionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Collection>> {
|
|
3024
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCollection(project, collectionId, options);
|
|
3025
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3026
|
+
const localVarOperationServerBasePath = operationServerMap['CollectionsApi.getCollection']?.[localVarOperationServerIndex]?.url;
|
|
3027
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3028
|
+
},
|
|
2764
3029
|
/**
|
|
2765
3030
|
*
|
|
2766
3031
|
* @summary List website collections
|
|
@@ -2833,6 +3098,16 @@ export const CollectionsApiFp = function(configuration?: Configuration) {
|
|
|
2833
3098
|
export const CollectionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
2834
3099
|
const localVarFp = CollectionsApiFp(configuration)
|
|
2835
3100
|
return {
|
|
3101
|
+
/**
|
|
3102
|
+
*
|
|
3103
|
+
* @summary Get website collection
|
|
3104
|
+
* @param {CollectionsApiGetCollectionRequest} requestParameters Request parameters.
|
|
3105
|
+
* @param {*} [options] Override http request option.
|
|
3106
|
+
* @throws {RequiredError}
|
|
3107
|
+
*/
|
|
3108
|
+
getCollection(requestParameters: CollectionsApiGetCollectionRequest, options?: RawAxiosRequestConfig): AxiosPromise<Collection> {
|
|
3109
|
+
return localVarFp.getCollection(requestParameters.project, requestParameters.collectionId, options).then((request) => request(axios, basePath));
|
|
3110
|
+
},
|
|
2836
3111
|
/**
|
|
2837
3112
|
*
|
|
2838
3113
|
* @summary List website collections
|
|
@@ -2876,6 +3151,27 @@ export const CollectionsApiFactory = function (configuration?: Configuration, ba
|
|
|
2876
3151
|
};
|
|
2877
3152
|
};
|
|
2878
3153
|
|
|
3154
|
+
/**
|
|
3155
|
+
* Request parameters for getCollection operation in CollectionsApi.
|
|
3156
|
+
* @export
|
|
3157
|
+
* @interface CollectionsApiGetCollectionRequest
|
|
3158
|
+
*/
|
|
3159
|
+
export interface CollectionsApiGetCollectionRequest {
|
|
3160
|
+
/**
|
|
3161
|
+
* What project it is
|
|
3162
|
+
* @type {string}
|
|
3163
|
+
* @memberof CollectionsApiGetCollection
|
|
3164
|
+
*/
|
|
3165
|
+
readonly project: string
|
|
3166
|
+
|
|
3167
|
+
/**
|
|
3168
|
+
* Collection\'s unique identifier
|
|
3169
|
+
* @type {string}
|
|
3170
|
+
* @memberof CollectionsApiGetCollection
|
|
3171
|
+
*/
|
|
3172
|
+
readonly collectionId: string
|
|
3173
|
+
}
|
|
3174
|
+
|
|
2879
3175
|
/**
|
|
2880
3176
|
* Request parameters for listCollections operation in CollectionsApi.
|
|
2881
3177
|
* @export
|
|
@@ -3009,6 +3305,18 @@ export interface CollectionsApiUpdateCollectionsRequest {
|
|
|
3009
3305
|
* @extends {BaseAPI}
|
|
3010
3306
|
*/
|
|
3011
3307
|
export class CollectionsApi extends BaseAPI {
|
|
3308
|
+
/**
|
|
3309
|
+
*
|
|
3310
|
+
* @summary Get website collection
|
|
3311
|
+
* @param {CollectionsApiGetCollectionRequest} requestParameters Request parameters.
|
|
3312
|
+
* @param {*} [options] Override http request option.
|
|
3313
|
+
* @throws {RequiredError}
|
|
3314
|
+
* @memberof CollectionsApi
|
|
3315
|
+
*/
|
|
3316
|
+
public getCollection(requestParameters: CollectionsApiGetCollectionRequest, options?: RawAxiosRequestConfig) {
|
|
3317
|
+
return CollectionsApiFp(this.configuration).getCollection(requestParameters.project, requestParameters.collectionId, options).then((request) => request(this.axios, this.basePath));
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3012
3320
|
/**
|
|
3013
3321
|
*
|
|
3014
3322
|
* @summary List website collections
|
|
@@ -3564,6 +3872,54 @@ export class MenuApi extends BaseAPI {
|
|
|
3564
3872
|
*/
|
|
3565
3873
|
export const PagesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
3566
3874
|
return {
|
|
3875
|
+
/**
|
|
3876
|
+
*
|
|
3877
|
+
* @summary Get website page
|
|
3878
|
+
* @param {string} project What project it is
|
|
3879
|
+
* @param {string} pageId Page\'s unique identifier
|
|
3880
|
+
* @param {*} [options] Override http request option.
|
|
3881
|
+
* @throws {RequiredError}
|
|
3882
|
+
*/
|
|
3883
|
+
getPage: async (project: string, pageId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3884
|
+
// verify required parameter 'project' is not null or undefined
|
|
3885
|
+
assertParamExists('getPage', 'project', project)
|
|
3886
|
+
// verify required parameter 'pageId' is not null or undefined
|
|
3887
|
+
assertParamExists('getPage', 'pageId', pageId)
|
|
3888
|
+
const localVarPath = `/v1/website/pages/{pageId}`
|
|
3889
|
+
.replace(`{${"pageId"}}`, encodeURIComponent(String(pageId)));
|
|
3890
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3891
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3892
|
+
let baseOptions;
|
|
3893
|
+
if (configuration) {
|
|
3894
|
+
baseOptions = configuration.baseOptions;
|
|
3895
|
+
}
|
|
3896
|
+
|
|
3897
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3898
|
+
const localVarHeaderParameter = {} as any;
|
|
3899
|
+
const localVarQueryParameter = {} as any;
|
|
3900
|
+
|
|
3901
|
+
// authentication session-oauth required
|
|
3902
|
+
// oauth required
|
|
3903
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
3904
|
+
|
|
3905
|
+
// authentication api-key required
|
|
3906
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
3907
|
+
|
|
3908
|
+
if (project !== undefined) {
|
|
3909
|
+
localVarQueryParameter['project'] = project;
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
|
|
3913
|
+
|
|
3914
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3915
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3916
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3917
|
+
|
|
3918
|
+
return {
|
|
3919
|
+
url: toPathString(localVarUrlObj),
|
|
3920
|
+
options: localVarRequestOptions,
|
|
3921
|
+
};
|
|
3922
|
+
},
|
|
3567
3923
|
/**
|
|
3568
3924
|
*
|
|
3569
3925
|
* @summary List website pages
|
|
@@ -3796,6 +4152,20 @@ export const PagesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
3796
4152
|
export const PagesApiFp = function(configuration?: Configuration) {
|
|
3797
4153
|
const localVarAxiosParamCreator = PagesApiAxiosParamCreator(configuration)
|
|
3798
4154
|
return {
|
|
4155
|
+
/**
|
|
4156
|
+
*
|
|
4157
|
+
* @summary Get website page
|
|
4158
|
+
* @param {string} project What project it is
|
|
4159
|
+
* @param {string} pageId Page\'s unique identifier
|
|
4160
|
+
* @param {*} [options] Override http request option.
|
|
4161
|
+
* @throws {RequiredError}
|
|
4162
|
+
*/
|
|
4163
|
+
async getPage(project: string, pageId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Page>> {
|
|
4164
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPage(project, pageId, options);
|
|
4165
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4166
|
+
const localVarOperationServerBasePath = operationServerMap['PagesApi.getPage']?.[localVarOperationServerIndex]?.url;
|
|
4167
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4168
|
+
},
|
|
3799
4169
|
/**
|
|
3800
4170
|
*
|
|
3801
4171
|
* @summary List website pages
|
|
@@ -3868,6 +4238,16 @@ export const PagesApiFp = function(configuration?: Configuration) {
|
|
|
3868
4238
|
export const PagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3869
4239
|
const localVarFp = PagesApiFp(configuration)
|
|
3870
4240
|
return {
|
|
4241
|
+
/**
|
|
4242
|
+
*
|
|
4243
|
+
* @summary Get website page
|
|
4244
|
+
* @param {PagesApiGetPageRequest} requestParameters Request parameters.
|
|
4245
|
+
* @param {*} [options] Override http request option.
|
|
4246
|
+
* @throws {RequiredError}
|
|
4247
|
+
*/
|
|
4248
|
+
getPage(requestParameters: PagesApiGetPageRequest, options?: RawAxiosRequestConfig): AxiosPromise<Page> {
|
|
4249
|
+
return localVarFp.getPage(requestParameters.project, requestParameters.pageId, options).then((request) => request(axios, basePath));
|
|
4250
|
+
},
|
|
3871
4251
|
/**
|
|
3872
4252
|
*
|
|
3873
4253
|
* @summary List website pages
|
|
@@ -3911,6 +4291,27 @@ export const PagesApiFactory = function (configuration?: Configuration, basePath
|
|
|
3911
4291
|
};
|
|
3912
4292
|
};
|
|
3913
4293
|
|
|
4294
|
+
/**
|
|
4295
|
+
* Request parameters for getPage operation in PagesApi.
|
|
4296
|
+
* @export
|
|
4297
|
+
* @interface PagesApiGetPageRequest
|
|
4298
|
+
*/
|
|
4299
|
+
export interface PagesApiGetPageRequest {
|
|
4300
|
+
/**
|
|
4301
|
+
* What project it is
|
|
4302
|
+
* @type {string}
|
|
4303
|
+
* @memberof PagesApiGetPage
|
|
4304
|
+
*/
|
|
4305
|
+
readonly project: string
|
|
4306
|
+
|
|
4307
|
+
/**
|
|
4308
|
+
* Page\'s unique identifier
|
|
4309
|
+
* @type {string}
|
|
4310
|
+
* @memberof PagesApiGetPage
|
|
4311
|
+
*/
|
|
4312
|
+
readonly pageId: string
|
|
4313
|
+
}
|
|
4314
|
+
|
|
3914
4315
|
/**
|
|
3915
4316
|
* Request parameters for listPages operation in PagesApi.
|
|
3916
4317
|
* @export
|
|
@@ -4044,6 +4445,18 @@ export interface PagesApiUpdatePagesRequest {
|
|
|
4044
4445
|
* @extends {BaseAPI}
|
|
4045
4446
|
*/
|
|
4046
4447
|
export class PagesApi extends BaseAPI {
|
|
4448
|
+
/**
|
|
4449
|
+
*
|
|
4450
|
+
* @summary Get website page
|
|
4451
|
+
* @param {PagesApiGetPageRequest} requestParameters Request parameters.
|
|
4452
|
+
* @param {*} [options] Override http request option.
|
|
4453
|
+
* @throws {RequiredError}
|
|
4454
|
+
* @memberof PagesApi
|
|
4455
|
+
*/
|
|
4456
|
+
public getPage(requestParameters: PagesApiGetPageRequest, options?: RawAxiosRequestConfig) {
|
|
4457
|
+
return PagesApiFp(this.configuration).getPage(requestParameters.project, requestParameters.pageId, options).then((request) => request(this.axios, this.basePath));
|
|
4458
|
+
}
|
|
4459
|
+
|
|
4047
4460
|
/**
|
|
4048
4461
|
*
|
|
4049
4462
|
* @summary List website pages
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED