@halo-dev/api-client 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +27 -12
- package/dist/index.d.ts +76 -19
- package/dist/index.mjs +27 -12
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -462,7 +462,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
462
462
|
options: localVarRequestOptions
|
|
463
463
|
};
|
|
464
464
|
},
|
|
465
|
-
listPosts: async (
|
|
465
|
+
listPosts: async (sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
466
466
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
467
467
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
468
|
let baseOptions;
|
|
@@ -474,14 +474,29 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
474
474
|
const localVarQueryParameter = {};
|
|
475
475
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
476
476
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
477
|
-
if (
|
|
478
|
-
localVarQueryParameter["
|
|
477
|
+
if (sort !== void 0) {
|
|
478
|
+
localVarQueryParameter["sort"] = sort;
|
|
479
|
+
}
|
|
480
|
+
if (publishPhase !== void 0) {
|
|
481
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
482
|
+
}
|
|
483
|
+
if (category) {
|
|
484
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
485
|
+
}
|
|
486
|
+
if (sortOrder !== void 0) {
|
|
487
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
488
|
+
}
|
|
489
|
+
if (contributor) {
|
|
490
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
491
|
+
}
|
|
492
|
+
if (keyword !== void 0) {
|
|
493
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
479
494
|
}
|
|
480
|
-
if (
|
|
481
|
-
localVarQueryParameter["
|
|
495
|
+
if (visible !== void 0) {
|
|
496
|
+
localVarQueryParameter["visible"] = visible;
|
|
482
497
|
}
|
|
483
|
-
if (
|
|
484
|
-
localVarQueryParameter["
|
|
498
|
+
if (tag) {
|
|
499
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
485
500
|
}
|
|
486
501
|
if (size !== void 0) {
|
|
487
502
|
localVarQueryParameter["size"] = size;
|
|
@@ -557,8 +572,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
557
572
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
558
573
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
559
574
|
},
|
|
560
|
-
async listPosts(
|
|
561
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(
|
|
575
|
+
async listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
576
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
|
|
562
577
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
563
578
|
},
|
|
564
579
|
async publishPost(name, options) {
|
|
@@ -577,8 +592,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
577
592
|
draftPost(postRequest, options) {
|
|
578
593
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
579
594
|
},
|
|
580
|
-
listPosts(
|
|
581
|
-
return localVarFp.listPosts(
|
|
595
|
+
listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
596
|
+
return localVarFp.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
582
597
|
},
|
|
583
598
|
publishPost(name, options) {
|
|
584
599
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -593,7 +608,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
593
608
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
594
609
|
}
|
|
595
610
|
listPosts(requestParameters = {}, options) {
|
|
596
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.
|
|
611
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
597
612
|
}
|
|
598
613
|
publishPost(requestParameters, options) {
|
|
599
614
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
package/dist/index.d.ts
CHANGED
|
@@ -1550,16 +1550,16 @@ interface Excerpt {
|
|
|
1550
1550
|
interface Extension {
|
|
1551
1551
|
/**
|
|
1552
1552
|
*
|
|
1553
|
-
* @type {
|
|
1553
|
+
* @type {Metadata}
|
|
1554
1554
|
* @memberof Extension
|
|
1555
1555
|
*/
|
|
1556
|
-
|
|
1556
|
+
metadata: Metadata;
|
|
1557
1557
|
/**
|
|
1558
1558
|
*
|
|
1559
|
-
* @type {
|
|
1559
|
+
* @type {string}
|
|
1560
1560
|
* @memberof Extension
|
|
1561
1561
|
*/
|
|
1562
|
-
|
|
1562
|
+
apiVersion: string;
|
|
1563
1563
|
/**
|
|
1564
1564
|
*
|
|
1565
1565
|
* @type {string}
|
|
@@ -2180,6 +2180,12 @@ interface PostStatus {
|
|
|
2180
2180
|
* @memberof PostStatus
|
|
2181
2181
|
*/
|
|
2182
2182
|
inProgress?: boolean;
|
|
2183
|
+
/**
|
|
2184
|
+
*
|
|
2185
|
+
* @type {number}
|
|
2186
|
+
* @memberof PostStatus
|
|
2187
|
+
*/
|
|
2188
|
+
commentsCount?: number;
|
|
2183
2189
|
/**
|
|
2184
2190
|
*
|
|
2185
2191
|
* @type {Array<string>}
|
|
@@ -2895,6 +2901,12 @@ interface SinglePageStatus {
|
|
|
2895
2901
|
* @memberof SinglePageStatus
|
|
2896
2902
|
*/
|
|
2897
2903
|
inProgress?: boolean;
|
|
2904
|
+
/**
|
|
2905
|
+
*
|
|
2906
|
+
* @type {number}
|
|
2907
|
+
* @memberof SinglePageStatus
|
|
2908
|
+
*/
|
|
2909
|
+
commentsCount?: number;
|
|
2898
2910
|
/**
|
|
2899
2911
|
*
|
|
2900
2912
|
* @type {Array<string>}
|
|
@@ -6467,9 +6479,14 @@ declare const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator: (configuration?
|
|
|
6467
6479
|
draftPost: (postRequest: PostRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6468
6480
|
/**
|
|
6469
6481
|
* List posts.
|
|
6470
|
-
* @param {
|
|
6471
|
-
* @param {
|
|
6472
|
-
* @param {Array<string>} [
|
|
6482
|
+
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] Post collation.
|
|
6483
|
+
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED'} [publishPhase]
|
|
6484
|
+
* @param {Array<string>} [category]
|
|
6485
|
+
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
6486
|
+
* @param {Array<string>} [contributor]
|
|
6487
|
+
* @param {string} [keyword] Posts filtered by keyword.
|
|
6488
|
+
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
6489
|
+
* @param {Array<string>} [tag]
|
|
6473
6490
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
6474
6491
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
6475
6492
|
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
|
@@ -6477,7 +6494,7 @@ declare const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator: (configuration?
|
|
|
6477
6494
|
* @param {*} [options] Override http request option.
|
|
6478
6495
|
* @throws {RequiredError}
|
|
6479
6496
|
*/
|
|
6480
|
-
listPosts: (
|
|
6497
|
+
listPosts: (sort?: 'PUBLISH_TIME' | 'CREATE_TIME', publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED', category?: Array<string>, sortOrder?: boolean, contributor?: Array<string>, keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', tag?: Array<string>, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, page?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6481
6498
|
/**
|
|
6482
6499
|
* Publish a post.
|
|
6483
6500
|
* @param {string} name
|
|
@@ -6508,9 +6525,14 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFp: (configuration?: Configuration
|
|
|
6508
6525
|
draftPost(postRequest: PostRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Post>>;
|
|
6509
6526
|
/**
|
|
6510
6527
|
* List posts.
|
|
6511
|
-
* @param {
|
|
6512
|
-
* @param {
|
|
6513
|
-
* @param {Array<string>} [
|
|
6528
|
+
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] Post collation.
|
|
6529
|
+
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED'} [publishPhase]
|
|
6530
|
+
* @param {Array<string>} [category]
|
|
6531
|
+
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
6532
|
+
* @param {Array<string>} [contributor]
|
|
6533
|
+
* @param {string} [keyword] Posts filtered by keyword.
|
|
6534
|
+
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
6535
|
+
* @param {Array<string>} [tag]
|
|
6514
6536
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
6515
6537
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
6516
6538
|
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
|
@@ -6518,7 +6540,7 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFp: (configuration?: Configuration
|
|
|
6518
6540
|
* @param {*} [options] Override http request option.
|
|
6519
6541
|
* @throws {RequiredError}
|
|
6520
6542
|
*/
|
|
6521
|
-
listPosts(
|
|
6543
|
+
listPosts(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED', category?: Array<string>, sortOrder?: boolean, contributor?: Array<string>, keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', tag?: Array<string>, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedPostList>>;
|
|
6522
6544
|
/**
|
|
6523
6545
|
* Publish a post.
|
|
6524
6546
|
* @param {string} name
|
|
@@ -6549,9 +6571,14 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFactory: (configuration?: Configur
|
|
|
6549
6571
|
draftPost(postRequest: PostRequest, options?: any): AxiosPromise<Post>;
|
|
6550
6572
|
/**
|
|
6551
6573
|
* List posts.
|
|
6552
|
-
* @param {
|
|
6553
|
-
* @param {
|
|
6554
|
-
* @param {Array<string>} [
|
|
6574
|
+
* @param {'PUBLISH_TIME' | 'CREATE_TIME'} [sort] Post collation.
|
|
6575
|
+
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED'} [publishPhase]
|
|
6576
|
+
* @param {Array<string>} [category]
|
|
6577
|
+
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
6578
|
+
* @param {Array<string>} [contributor]
|
|
6579
|
+
* @param {string} [keyword] Posts filtered by keyword.
|
|
6580
|
+
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
6581
|
+
* @param {Array<string>} [tag]
|
|
6555
6582
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
6556
6583
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
6557
6584
|
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
|
@@ -6559,7 +6586,7 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFactory: (configuration?: Configur
|
|
|
6559
6586
|
* @param {*} [options] Override http request option.
|
|
6560
6587
|
* @throws {RequiredError}
|
|
6561
6588
|
*/
|
|
6562
|
-
listPosts(
|
|
6589
|
+
listPosts(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED', category?: Array<string>, sortOrder?: boolean, contributor?: Array<string>, keyword?: string, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', tag?: Array<string>, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, page?: number, options?: any): AxiosPromise<ListedPostList>;
|
|
6563
6590
|
/**
|
|
6564
6591
|
* Publish a post.
|
|
6565
6592
|
* @param {string} name
|
|
@@ -6595,24 +6622,54 @@ interface ApiConsoleHaloRunV1alpha1PostApiDraftPostRequest {
|
|
|
6595
6622
|
* @interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest
|
|
6596
6623
|
*/
|
|
6597
6624
|
interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest {
|
|
6625
|
+
/**
|
|
6626
|
+
* Post collation.
|
|
6627
|
+
* @type {'PUBLISH_TIME' | 'CREATE_TIME'}
|
|
6628
|
+
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
6629
|
+
*/
|
|
6630
|
+
readonly sort?: 'PUBLISH_TIME' | 'CREATE_TIME';
|
|
6631
|
+
/**
|
|
6632
|
+
*
|
|
6633
|
+
* @type {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED'}
|
|
6634
|
+
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
6635
|
+
*/
|
|
6636
|
+
readonly publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED';
|
|
6598
6637
|
/**
|
|
6599
6638
|
*
|
|
6600
6639
|
* @type {Array<string>}
|
|
6601
6640
|
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
6602
6641
|
*/
|
|
6603
|
-
readonly
|
|
6642
|
+
readonly category?: Array<string>;
|
|
6643
|
+
/**
|
|
6644
|
+
* ascending order If it is true; otherwise, it is in descending order.
|
|
6645
|
+
* @type {boolean}
|
|
6646
|
+
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
6647
|
+
*/
|
|
6648
|
+
readonly sortOrder?: boolean;
|
|
6604
6649
|
/**
|
|
6605
6650
|
*
|
|
6606
6651
|
* @type {Array<string>}
|
|
6607
6652
|
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
6608
6653
|
*/
|
|
6609
|
-
readonly
|
|
6654
|
+
readonly contributor?: Array<string>;
|
|
6655
|
+
/**
|
|
6656
|
+
* Posts filtered by keyword.
|
|
6657
|
+
* @type {string}
|
|
6658
|
+
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
6659
|
+
*/
|
|
6660
|
+
readonly keyword?: string;
|
|
6661
|
+
/**
|
|
6662
|
+
*
|
|
6663
|
+
* @type {'PUBLIC' | 'INTERNAL' | 'PRIVATE'}
|
|
6664
|
+
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
6665
|
+
*/
|
|
6666
|
+
readonly visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE';
|
|
6610
6667
|
/**
|
|
6611
6668
|
*
|
|
6612
6669
|
* @type {Array<string>}
|
|
6613
6670
|
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
6614
6671
|
*/
|
|
6615
|
-
readonly
|
|
6672
|
+
readonly tag?: Array<string>;
|
|
6616
6673
|
/**
|
|
6617
6674
|
* Size of one page. Zero indicates no limit.
|
|
6618
6675
|
* @type {number}
|
package/dist/index.mjs
CHANGED
|
@@ -454,7 +454,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
454
454
|
options: localVarRequestOptions
|
|
455
455
|
};
|
|
456
456
|
},
|
|
457
|
-
listPosts: async (
|
|
457
|
+
listPosts: async (sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
458
458
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
459
459
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
460
460
|
let baseOptions;
|
|
@@ -466,14 +466,29 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
466
466
|
const localVarQueryParameter = {};
|
|
467
467
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
468
468
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
469
|
-
if (
|
|
470
|
-
localVarQueryParameter["
|
|
469
|
+
if (sort !== void 0) {
|
|
470
|
+
localVarQueryParameter["sort"] = sort;
|
|
471
|
+
}
|
|
472
|
+
if (publishPhase !== void 0) {
|
|
473
|
+
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
474
|
+
}
|
|
475
|
+
if (category) {
|
|
476
|
+
localVarQueryParameter["category"] = Array.from(category);
|
|
477
|
+
}
|
|
478
|
+
if (sortOrder !== void 0) {
|
|
479
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
480
|
+
}
|
|
481
|
+
if (contributor) {
|
|
482
|
+
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
483
|
+
}
|
|
484
|
+
if (keyword !== void 0) {
|
|
485
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
471
486
|
}
|
|
472
|
-
if (
|
|
473
|
-
localVarQueryParameter["
|
|
487
|
+
if (visible !== void 0) {
|
|
488
|
+
localVarQueryParameter["visible"] = visible;
|
|
474
489
|
}
|
|
475
|
-
if (
|
|
476
|
-
localVarQueryParameter["
|
|
490
|
+
if (tag) {
|
|
491
|
+
localVarQueryParameter["tag"] = Array.from(tag);
|
|
477
492
|
}
|
|
478
493
|
if (size !== void 0) {
|
|
479
494
|
localVarQueryParameter["size"] = size;
|
|
@@ -549,8 +564,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
549
564
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
550
565
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
551
566
|
},
|
|
552
|
-
async listPosts(
|
|
553
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(
|
|
567
|
+
async listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
568
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
|
|
554
569
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
555
570
|
},
|
|
556
571
|
async publishPost(name, options) {
|
|
@@ -569,8 +584,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
569
584
|
draftPost(postRequest, options) {
|
|
570
585
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
571
586
|
},
|
|
572
|
-
listPosts(
|
|
573
|
-
return localVarFp.listPosts(
|
|
587
|
+
listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
588
|
+
return localVarFp.listPosts(sort, publishPhase, category, sortOrder, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
574
589
|
},
|
|
575
590
|
publishPost(name, options) {
|
|
576
591
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -585,7 +600,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
585
600
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
586
601
|
}
|
|
587
602
|
listPosts(requestParameters = {}, options) {
|
|
588
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.
|
|
603
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.publishPhase, requestParameters.category, requestParameters.sortOrder, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
589
604
|
}
|
|
590
605
|
publishPost(requestParameters, options) {
|
|
591
606
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|