@halo-dev/api-client 0.0.51 → 0.0.52
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 +19 -19
- package/dist/index.d.ts +28 -28
- package/dist/index.mjs +19 -19
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -685,7 +685,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
685
685
|
options: localVarRequestOptions
|
|
686
686
|
};
|
|
687
687
|
},
|
|
688
|
-
listPosts: async (sort, sortOrder, publishPhase, category, contributor,
|
|
688
|
+
listPosts: async (sort, sortOrder, publishPhase, category, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
689
689
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
690
690
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
691
691
|
let baseOptions;
|
|
@@ -712,12 +712,12 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
712
712
|
if (contributor) {
|
|
713
713
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
714
714
|
}
|
|
715
|
-
if (keyword !== void 0) {
|
|
716
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
717
|
-
}
|
|
718
715
|
if (visible !== void 0) {
|
|
719
716
|
localVarQueryParameter["visible"] = visible;
|
|
720
717
|
}
|
|
718
|
+
if (keyword !== void 0) {
|
|
719
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
720
|
+
}
|
|
721
721
|
if (tag) {
|
|
722
722
|
localVarQueryParameter["tag"] = Array.from(tag);
|
|
723
723
|
}
|
|
@@ -864,8 +864,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
864
864
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
865
865
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
866
866
|
},
|
|
867
|
-
async listPosts(sort, sortOrder, publishPhase, category, contributor,
|
|
868
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, publishPhase, category, contributor,
|
|
867
|
+
async listPosts(sort, sortOrder, publishPhase, category, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
868
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, publishPhase, category, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options);
|
|
869
869
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
870
870
|
},
|
|
871
871
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -896,8 +896,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
896
896
|
draftPost(postRequest, options) {
|
|
897
897
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
898
898
|
},
|
|
899
|
-
listPosts(sort, sortOrder, publishPhase, category, contributor,
|
|
900
|
-
return localVarFp.listPosts(sort, sortOrder, publishPhase, category, contributor,
|
|
899
|
+
listPosts(sort, sortOrder, publishPhase, category, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
900
|
+
return localVarFp.listPosts(sort, sortOrder, publishPhase, category, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
901
901
|
},
|
|
902
902
|
publishPost(name, headSnapshot, options) {
|
|
903
903
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -921,7 +921,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
921
921
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
922
922
|
}
|
|
923
923
|
listPosts(requestParameters = {}, options) {
|
|
924
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.
|
|
924
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.visible, requestParameters.keyword, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
925
925
|
}
|
|
926
926
|
publishPost(requestParameters, options) {
|
|
927
927
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1027,7 +1027,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1027
1027
|
options: localVarRequestOptions
|
|
1028
1028
|
};
|
|
1029
1029
|
},
|
|
1030
|
-
listSinglePages: async (sort, sortOrder, publishPhase, contributor,
|
|
1030
|
+
listSinglePages: async (sort, sortOrder, publishPhase, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1031
1031
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1032
1032
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1033
1033
|
let baseOptions;
|
|
@@ -1051,12 +1051,12 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1051
1051
|
if (contributor) {
|
|
1052
1052
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1053
1053
|
}
|
|
1054
|
-
if (keyword !== void 0) {
|
|
1055
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1056
|
-
}
|
|
1057
1054
|
if (visible !== void 0) {
|
|
1058
1055
|
localVarQueryParameter["visible"] = visible;
|
|
1059
1056
|
}
|
|
1057
|
+
if (keyword !== void 0) {
|
|
1058
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1059
|
+
}
|
|
1060
1060
|
if (size !== void 0) {
|
|
1061
1061
|
localVarQueryParameter["size"] = size;
|
|
1062
1062
|
}
|
|
@@ -1155,8 +1155,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1155
1155
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1156
1156
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1157
1157
|
},
|
|
1158
|
-
async listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
1159
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
1158
|
+
async listSinglePages(sort, sortOrder, publishPhase, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1159
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options);
|
|
1160
1160
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1161
1161
|
},
|
|
1162
1162
|
async publishSinglePage(name, options) {
|
|
@@ -1179,8 +1179,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1179
1179
|
draftSinglePage(singlePageRequest, options) {
|
|
1180
1180
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1181
1181
|
},
|
|
1182
|
-
listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
1183
|
-
return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
1182
|
+
listSinglePages(sort, sortOrder, publishPhase, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1183
|
+
return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1184
1184
|
},
|
|
1185
1185
|
publishSinglePage(name, options) {
|
|
1186
1186
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1198,7 +1198,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1198
1198
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1199
1199
|
}
|
|
1200
1200
|
listSinglePages(requestParameters = {}, options) {
|
|
1201
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.
|
|
1201
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.visible, requestParameters.keyword, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1202
1202
|
}
|
|
1203
1203
|
publishSinglePage(requestParameters, options) {
|
|
1204
1204
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1325,7 +1325,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1325
1325
|
},
|
|
1326
1326
|
reloadThemeSetting: async (name, options = {}) => {
|
|
1327
1327
|
assertParamExists("reloadThemeSetting", "name", name);
|
|
1328
|
-
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload
|
|
1328
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1329
1329
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1330
1330
|
let baseOptions;
|
|
1331
1331
|
if (configuration) {
|
package/dist/index.d.ts
CHANGED
|
@@ -2017,16 +2017,16 @@ interface Excerpt {
|
|
|
2017
2017
|
interface Extension {
|
|
2018
2018
|
/**
|
|
2019
2019
|
*
|
|
2020
|
-
* @type {
|
|
2020
|
+
* @type {string}
|
|
2021
2021
|
* @memberof Extension
|
|
2022
2022
|
*/
|
|
2023
|
-
|
|
2023
|
+
apiVersion: string;
|
|
2024
2024
|
/**
|
|
2025
2025
|
*
|
|
2026
|
-
* @type {
|
|
2026
|
+
* @type {Metadata}
|
|
2027
2027
|
* @memberof Extension
|
|
2028
2028
|
*/
|
|
2029
|
-
|
|
2029
|
+
metadata: Metadata;
|
|
2030
2030
|
/**
|
|
2031
2031
|
*
|
|
2032
2032
|
* @type {string}
|
|
@@ -7937,8 +7937,8 @@ declare const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator: (configuration?
|
|
|
7937
7937
|
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
7938
7938
|
* @param {Array<string>} [category]
|
|
7939
7939
|
* @param {Array<string>} [contributor]
|
|
7940
|
-
* @param {string} [keyword] Posts filtered by keyword.
|
|
7941
7940
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
7941
|
+
* @param {string} [keyword] Posts filtered by keyword.
|
|
7942
7942
|
* @param {Array<string>} [tag]
|
|
7943
7943
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
7944
7944
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -7947,7 +7947,7 @@ declare const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator: (configuration?
|
|
|
7947
7947
|
* @param {*} [options] Override http request option.
|
|
7948
7948
|
* @throws {RequiredError}
|
|
7949
7949
|
*/
|
|
7950
|
-
listPosts: (sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', category?: Array<string>, contributor?: Array<string>,
|
|
7950
|
+
listPosts: (sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', category?: Array<string>, contributor?: Array<string>, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', keyword?: string, tag?: Array<string>, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, page?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
7951
7951
|
/**
|
|
7952
7952
|
* Publish a post.
|
|
7953
7953
|
* @param {string} name
|
|
@@ -8006,8 +8006,8 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFp: (configuration?: Configuration
|
|
|
8006
8006
|
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8007
8007
|
* @param {Array<string>} [category]
|
|
8008
8008
|
* @param {Array<string>} [contributor]
|
|
8009
|
-
* @param {string} [keyword] Posts filtered by keyword.
|
|
8010
8009
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
8010
|
+
* @param {string} [keyword] Posts filtered by keyword.
|
|
8011
8011
|
* @param {Array<string>} [tag]
|
|
8012
8012
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
8013
8013
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -8016,7 +8016,7 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFp: (configuration?: Configuration
|
|
|
8016
8016
|
* @param {*} [options] Override http request option.
|
|
8017
8017
|
* @throws {RequiredError}
|
|
8018
8018
|
*/
|
|
8019
|
-
listPosts(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', category?: Array<string>, contributor?: Array<string>,
|
|
8019
|
+
listPosts(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', category?: Array<string>, contributor?: Array<string>, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', keyword?: string, tag?: Array<string>, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedPostList>>;
|
|
8020
8020
|
/**
|
|
8021
8021
|
* Publish a post.
|
|
8022
8022
|
* @param {string} name
|
|
@@ -8075,8 +8075,8 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFactory: (configuration?: Configur
|
|
|
8075
8075
|
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8076
8076
|
* @param {Array<string>} [category]
|
|
8077
8077
|
* @param {Array<string>} [contributor]
|
|
8078
|
-
* @param {string} [keyword] Posts filtered by keyword.
|
|
8079
8078
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
8079
|
+
* @param {string} [keyword] Posts filtered by keyword.
|
|
8080
8080
|
* @param {Array<string>} [tag]
|
|
8081
8081
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
8082
8082
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
@@ -8085,7 +8085,7 @@ declare const ApiConsoleHaloRunV1alpha1PostApiFactory: (configuration?: Configur
|
|
|
8085
8085
|
* @param {*} [options] Override http request option.
|
|
8086
8086
|
* @throws {RequiredError}
|
|
8087
8087
|
*/
|
|
8088
|
-
listPosts(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', category?: Array<string>, contributor?: Array<string>,
|
|
8088
|
+
listPosts(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', category?: Array<string>, contributor?: Array<string>, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', keyword?: string, tag?: Array<string>, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, page?: number, options?: any): AxiosPromise<ListedPostList>;
|
|
8089
8089
|
/**
|
|
8090
8090
|
* Publish a post.
|
|
8091
8091
|
* @param {string} name
|
|
@@ -8174,18 +8174,18 @@ interface ApiConsoleHaloRunV1alpha1PostApiListPostsRequest {
|
|
|
8174
8174
|
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
8175
8175
|
*/
|
|
8176
8176
|
readonly contributor?: Array<string>;
|
|
8177
|
-
/**
|
|
8178
|
-
* Posts filtered by keyword.
|
|
8179
|
-
* @type {string}
|
|
8180
|
-
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
8181
|
-
*/
|
|
8182
|
-
readonly keyword?: string;
|
|
8183
8177
|
/**
|
|
8184
8178
|
*
|
|
8185
8179
|
* @type {'PUBLIC' | 'INTERNAL' | 'PRIVATE'}
|
|
8186
8180
|
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
8187
8181
|
*/
|
|
8188
8182
|
readonly visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE';
|
|
8183
|
+
/**
|
|
8184
|
+
* Posts filtered by keyword.
|
|
8185
|
+
* @type {string}
|
|
8186
|
+
* @memberof ApiConsoleHaloRunV1alpha1PostApiListPosts
|
|
8187
|
+
*/
|
|
8188
|
+
readonly keyword?: string;
|
|
8189
8189
|
/**
|
|
8190
8190
|
*
|
|
8191
8191
|
* @type {Array<string>}
|
|
@@ -8488,8 +8488,8 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator: (configur
|
|
|
8488
8488
|
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8489
8489
|
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8490
8490
|
* @param {Array<string>} [contributor]
|
|
8491
|
-
* @param {string} [keyword] SinglePages filtered by keyword.
|
|
8492
8491
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
8492
|
+
* @param {string} [keyword] SinglePages filtered by keyword.
|
|
8493
8493
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
8494
8494
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
8495
8495
|
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
|
@@ -8497,7 +8497,7 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator: (configur
|
|
|
8497
8497
|
* @param {*} [options] Override http request option.
|
|
8498
8498
|
* @throws {RequiredError}
|
|
8499
8499
|
*/
|
|
8500
|
-
listSinglePages: (sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', contributor?: Array<string>,
|
|
8500
|
+
listSinglePages: (sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', contributor?: Array<string>, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', keyword?: string, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, page?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8501
8501
|
/**
|
|
8502
8502
|
* Publish a single page.
|
|
8503
8503
|
* @param {string} name
|
|
@@ -8540,8 +8540,8 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiFp: (configuration?: Configu
|
|
|
8540
8540
|
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8541
8541
|
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8542
8542
|
* @param {Array<string>} [contributor]
|
|
8543
|
-
* @param {string} [keyword] SinglePages filtered by keyword.
|
|
8544
8543
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
8544
|
+
* @param {string} [keyword] SinglePages filtered by keyword.
|
|
8545
8545
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
8546
8546
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
8547
8547
|
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
|
@@ -8549,7 +8549,7 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiFp: (configuration?: Configu
|
|
|
8549
8549
|
* @param {*} [options] Override http request option.
|
|
8550
8550
|
* @throws {RequiredError}
|
|
8551
8551
|
*/
|
|
8552
|
-
listSinglePages(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', contributor?: Array<string>,
|
|
8552
|
+
listSinglePages(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', contributor?: Array<string>, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', keyword?: string, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedSinglePageList>>;
|
|
8553
8553
|
/**
|
|
8554
8554
|
* Publish a single page.
|
|
8555
8555
|
* @param {string} name
|
|
@@ -8592,8 +8592,8 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiFactory: (configuration?: Co
|
|
|
8592
8592
|
* @param {boolean} [sortOrder] ascending order If it is true; otherwise, it is in descending order.
|
|
8593
8593
|
* @param {'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED'} [publishPhase]
|
|
8594
8594
|
* @param {Array<string>} [contributor]
|
|
8595
|
-
* @param {string} [keyword] SinglePages filtered by keyword.
|
|
8596
8595
|
* @param {'PUBLIC' | 'INTERNAL' | 'PRIVATE'} [visible]
|
|
8596
|
+
* @param {string} [keyword] SinglePages filtered by keyword.
|
|
8597
8597
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
8598
8598
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
8599
8599
|
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
|
@@ -8601,7 +8601,7 @@ declare const ApiConsoleHaloRunV1alpha1SinglePageApiFactory: (configuration?: Co
|
|
|
8601
8601
|
* @param {*} [options] Override http request option.
|
|
8602
8602
|
* @throws {RequiredError}
|
|
8603
8603
|
*/
|
|
8604
|
-
listSinglePages(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', contributor?: Array<string>,
|
|
8604
|
+
listSinglePages(sort?: 'PUBLISH_TIME' | 'CREATE_TIME', sortOrder?: boolean, publishPhase?: 'DRAFT' | 'PENDING_APPROVAL' | 'PUBLISHED' | 'FAILED', contributor?: Array<string>, visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE', keyword?: string, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, page?: number, options?: any): AxiosPromise<ListedSinglePageList>;
|
|
8605
8605
|
/**
|
|
8606
8606
|
* Publish a single page.
|
|
8607
8607
|
* @param {string} name
|
|
@@ -8669,18 +8669,18 @@ interface ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePagesRequest {
|
|
|
8669
8669
|
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
|
|
8670
8670
|
*/
|
|
8671
8671
|
readonly contributor?: Array<string>;
|
|
8672
|
-
/**
|
|
8673
|
-
* SinglePages filtered by keyword.
|
|
8674
|
-
* @type {string}
|
|
8675
|
-
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
|
|
8676
|
-
*/
|
|
8677
|
-
readonly keyword?: string;
|
|
8678
8672
|
/**
|
|
8679
8673
|
*
|
|
8680
8674
|
* @type {'PUBLIC' | 'INTERNAL' | 'PRIVATE'}
|
|
8681
8675
|
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
|
|
8682
8676
|
*/
|
|
8683
8677
|
readonly visible?: 'PUBLIC' | 'INTERNAL' | 'PRIVATE';
|
|
8678
|
+
/**
|
|
8679
|
+
* SinglePages filtered by keyword.
|
|
8680
|
+
* @type {string}
|
|
8681
|
+
* @memberof ApiConsoleHaloRunV1alpha1SinglePageApiListSinglePages
|
|
8682
|
+
*/
|
|
8683
|
+
readonly keyword?: string;
|
|
8684
8684
|
/**
|
|
8685
8685
|
* Size of one page. Zero indicates no limit.
|
|
8686
8686
|
* @type {number}
|
package/dist/index.mjs
CHANGED
|
@@ -677,7 +677,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
677
677
|
options: localVarRequestOptions
|
|
678
678
|
};
|
|
679
679
|
},
|
|
680
|
-
listPosts: async (sort, sortOrder, publishPhase, category, contributor,
|
|
680
|
+
listPosts: async (sort, sortOrder, publishPhase, category, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
681
681
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
682
682
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
683
683
|
let baseOptions;
|
|
@@ -704,12 +704,12 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
704
704
|
if (contributor) {
|
|
705
705
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
706
706
|
}
|
|
707
|
-
if (keyword !== void 0) {
|
|
708
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
709
|
-
}
|
|
710
707
|
if (visible !== void 0) {
|
|
711
708
|
localVarQueryParameter["visible"] = visible;
|
|
712
709
|
}
|
|
710
|
+
if (keyword !== void 0) {
|
|
711
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
712
|
+
}
|
|
713
713
|
if (tag) {
|
|
714
714
|
localVarQueryParameter["tag"] = Array.from(tag);
|
|
715
715
|
}
|
|
@@ -856,8 +856,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
856
856
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
857
857
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
858
858
|
},
|
|
859
|
-
async listPosts(sort, sortOrder, publishPhase, category, contributor,
|
|
860
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, publishPhase, category, contributor,
|
|
859
|
+
async listPosts(sort, sortOrder, publishPhase, category, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
860
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, publishPhase, category, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options);
|
|
861
861
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
862
862
|
},
|
|
863
863
|
async publishPost(name, headSnapshot, options) {
|
|
@@ -888,8 +888,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
888
888
|
draftPost(postRequest, options) {
|
|
889
889
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
890
890
|
},
|
|
891
|
-
listPosts(sort, sortOrder, publishPhase, category, contributor,
|
|
892
|
-
return localVarFp.listPosts(sort, sortOrder, publishPhase, category, contributor,
|
|
891
|
+
listPosts(sort, sortOrder, publishPhase, category, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options) {
|
|
892
|
+
return localVarFp.listPosts(sort, sortOrder, publishPhase, category, contributor, visible, keyword, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
893
893
|
},
|
|
894
894
|
publishPost(name, headSnapshot, options) {
|
|
895
895
|
return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
|
|
@@ -913,7 +913,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
913
913
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
914
914
|
}
|
|
915
915
|
listPosts(requestParameters = {}, options) {
|
|
916
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.
|
|
916
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.visible, requestParameters.keyword, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
917
917
|
}
|
|
918
918
|
publishPost(requestParameters, options) {
|
|
919
919
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1019,7 +1019,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1019
1019
|
options: localVarRequestOptions
|
|
1020
1020
|
};
|
|
1021
1021
|
},
|
|
1022
|
-
listSinglePages: async (sort, sortOrder, publishPhase, contributor,
|
|
1022
|
+
listSinglePages: async (sort, sortOrder, publishPhase, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
1023
1023
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
|
|
1024
1024
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1025
1025
|
let baseOptions;
|
|
@@ -1043,12 +1043,12 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
|
|
|
1043
1043
|
if (contributor) {
|
|
1044
1044
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
1045
1045
|
}
|
|
1046
|
-
if (keyword !== void 0) {
|
|
1047
|
-
localVarQueryParameter["keyword"] = keyword;
|
|
1048
|
-
}
|
|
1049
1046
|
if (visible !== void 0) {
|
|
1050
1047
|
localVarQueryParameter["visible"] = visible;
|
|
1051
1048
|
}
|
|
1049
|
+
if (keyword !== void 0) {
|
|
1050
|
+
localVarQueryParameter["keyword"] = keyword;
|
|
1051
|
+
}
|
|
1052
1052
|
if (size !== void 0) {
|
|
1053
1053
|
localVarQueryParameter["size"] = size;
|
|
1054
1054
|
}
|
|
@@ -1147,8 +1147,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
|
1147
1147
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
1148
1148
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1149
1149
|
},
|
|
1150
|
-
async listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
1151
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
1150
|
+
async listSinglePages(sort, sortOrder, publishPhase, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1151
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options);
|
|
1152
1152
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1153
1153
|
},
|
|
1154
1154
|
async publishSinglePage(name, options) {
|
|
@@ -1171,8 +1171,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
|
|
|
1171
1171
|
draftSinglePage(singlePageRequest, options) {
|
|
1172
1172
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
1173
1173
|
},
|
|
1174
|
-
listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
1175
|
-
return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor,
|
|
1174
|
+
listSinglePages(sort, sortOrder, publishPhase, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options) {
|
|
1175
|
+
return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor, visible, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
1176
1176
|
},
|
|
1177
1177
|
publishSinglePage(name, options) {
|
|
1178
1178
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
@@ -1190,7 +1190,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
|
1190
1190
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1191
1191
|
}
|
|
1192
1192
|
listSinglePages(requestParameters = {}, options) {
|
|
1193
|
-
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.
|
|
1193
|
+
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.visible, requestParameters.keyword, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1194
1194
|
}
|
|
1195
1195
|
publishSinglePage(requestParameters, options) {
|
|
1196
1196
|
return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1317,7 +1317,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
|
|
|
1317
1317
|
},
|
|
1318
1318
|
reloadThemeSetting: async (name, options = {}) => {
|
|
1319
1319
|
assertParamExists("reloadThemeSetting", "name", name);
|
|
1320
|
-
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload
|
|
1320
|
+
const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes/{name}/reload`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1321
1321
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1322
1322
|
let baseOptions;
|
|
1323
1323
|
if (configuration) {
|