@halo-dev/api-client 2.13.0 → 2.14.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/dist/index.cjs +12 -41
- package/dist/index.d.ts +22 -55
- package/dist/index.mjs +12 -41
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -508,7 +508,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
508
508
|
options: localVarRequestOptions
|
|
509
509
|
};
|
|
510
510
|
},
|
|
511
|
-
listComments: async (
|
|
511
|
+
listComments: async (fieldSelector, keyword, labelSelector, ownerKind, ownerName, page, size, sort, options = {}) => {
|
|
512
512
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
513
513
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
514
514
|
let baseOptions;
|
|
@@ -524,18 +524,9 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
524
524
|
const localVarQueryParameter = {};
|
|
525
525
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
526
526
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
527
|
-
if (allowNotification !== void 0) {
|
|
528
|
-
localVarQueryParameter["allowNotification"] = allowNotification;
|
|
529
|
-
}
|
|
530
|
-
if (approved !== void 0) {
|
|
531
|
-
localVarQueryParameter["approved"] = approved;
|
|
532
|
-
}
|
|
533
527
|
if (fieldSelector) {
|
|
534
528
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
535
529
|
}
|
|
536
|
-
if (hidden !== void 0) {
|
|
537
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
538
|
-
}
|
|
539
530
|
if (keyword !== void 0) {
|
|
540
531
|
localVarQueryParameter["keyword"] = keyword;
|
|
541
532
|
}
|
|
@@ -557,15 +548,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
557
548
|
if (sort) {
|
|
558
549
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
559
550
|
}
|
|
560
|
-
if (subjectKind !== void 0) {
|
|
561
|
-
localVarQueryParameter["subjectKind"] = subjectKind;
|
|
562
|
-
}
|
|
563
|
-
if (subjectName !== void 0) {
|
|
564
|
-
localVarQueryParameter["subjectName"] = subjectName;
|
|
565
|
-
}
|
|
566
|
-
if (top !== void 0) {
|
|
567
|
-
localVarQueryParameter["top"] = top;
|
|
568
|
-
}
|
|
569
551
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
570
552
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
571
553
|
localVarRequestOptions.headers = {
|
|
@@ -608,12 +590,9 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
608
590
|
configuration
|
|
609
591
|
);
|
|
610
592
|
},
|
|
611
|
-
async listComments(
|
|
593
|
+
async listComments(fieldSelector, keyword, labelSelector, ownerKind, ownerName, page, size, sort, options) {
|
|
612
594
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(
|
|
613
|
-
allowNotification,
|
|
614
|
-
approved,
|
|
615
595
|
fieldSelector,
|
|
616
|
-
hidden,
|
|
617
596
|
keyword,
|
|
618
597
|
labelSelector,
|
|
619
598
|
ownerKind,
|
|
@@ -621,9 +600,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
621
600
|
page,
|
|
622
601
|
size,
|
|
623
602
|
sort,
|
|
624
|
-
subjectKind,
|
|
625
|
-
subjectName,
|
|
626
|
-
top,
|
|
627
603
|
options
|
|
628
604
|
);
|
|
629
605
|
return createRequestFunction(
|
|
@@ -650,10 +626,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
650
626
|
},
|
|
651
627
|
listComments(requestParameters = {}, options) {
|
|
652
628
|
return localVarFp.listComments(
|
|
653
|
-
requestParameters.allowNotification,
|
|
654
|
-
requestParameters.approved,
|
|
655
629
|
requestParameters.fieldSelector,
|
|
656
|
-
requestParameters.hidden,
|
|
657
630
|
requestParameters.keyword,
|
|
658
631
|
requestParameters.labelSelector,
|
|
659
632
|
requestParameters.ownerKind,
|
|
@@ -661,9 +634,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
661
634
|
requestParameters.page,
|
|
662
635
|
requestParameters.size,
|
|
663
636
|
requestParameters.sort,
|
|
664
|
-
requestParameters.subjectKind,
|
|
665
|
-
requestParameters.subjectName,
|
|
666
|
-
requestParameters.top,
|
|
667
637
|
options
|
|
668
638
|
).then((request) => request(axios, basePath));
|
|
669
639
|
}
|
|
@@ -682,10 +652,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
682
652
|
}
|
|
683
653
|
listComments(requestParameters = {}, options) {
|
|
684
654
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(
|
|
685
|
-
requestParameters.allowNotification,
|
|
686
|
-
requestParameters.approved,
|
|
687
655
|
requestParameters.fieldSelector,
|
|
688
|
-
requestParameters.hidden,
|
|
689
656
|
requestParameters.keyword,
|
|
690
657
|
requestParameters.labelSelector,
|
|
691
658
|
requestParameters.ownerKind,
|
|
@@ -693,9 +660,6 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
693
660
|
requestParameters.page,
|
|
694
661
|
requestParameters.size,
|
|
695
662
|
requestParameters.sort,
|
|
696
|
-
requestParameters.subjectKind,
|
|
697
|
-
requestParameters.subjectName,
|
|
698
|
-
requestParameters.top,
|
|
699
663
|
options
|
|
700
664
|
).then((request) => request(this.axios, this.basePath));
|
|
701
665
|
}
|
|
@@ -2276,7 +2240,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
2276
2240
|
|
|
2277
2241
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
2278
2242
|
return {
|
|
2279
|
-
listReplies: async (commentName, fieldSelector, labelSelector, page, size, options = {}) => {
|
|
2243
|
+
listReplies: async (commentName, fieldSelector, labelSelector, page, size, sort, options = {}) => {
|
|
2280
2244
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
2281
2245
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2282
2246
|
let baseOptions;
|
|
@@ -2307,6 +2271,9 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
2307
2271
|
if (size !== void 0) {
|
|
2308
2272
|
localVarQueryParameter["size"] = size;
|
|
2309
2273
|
}
|
|
2274
|
+
if (sort) {
|
|
2275
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
2276
|
+
}
|
|
2310
2277
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2311
2278
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2312
2279
|
localVarRequestOptions.headers = {
|
|
@@ -2324,13 +2291,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
2324
2291
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
2325
2292
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
2326
2293
|
return {
|
|
2327
|
-
async listReplies(commentName, fieldSelector, labelSelector, page, size, options) {
|
|
2294
|
+
async listReplies(commentName, fieldSelector, labelSelector, page, size, sort, options) {
|
|
2328
2295
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(
|
|
2329
2296
|
commentName,
|
|
2330
2297
|
fieldSelector,
|
|
2331
2298
|
labelSelector,
|
|
2332
2299
|
page,
|
|
2333
2300
|
size,
|
|
2301
|
+
sort,
|
|
2334
2302
|
options
|
|
2335
2303
|
);
|
|
2336
2304
|
return createRequestFunction(
|
|
@@ -2352,6 +2320,7 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePat
|
|
|
2352
2320
|
requestParameters.labelSelector,
|
|
2353
2321
|
requestParameters.page,
|
|
2354
2322
|
requestParameters.size,
|
|
2323
|
+
requestParameters.sort,
|
|
2355
2324
|
options
|
|
2356
2325
|
).then((request) => request(axios, basePath));
|
|
2357
2326
|
}
|
|
@@ -2365,6 +2334,7 @@ class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
|
2365
2334
|
requestParameters.labelSelector,
|
|
2366
2335
|
requestParameters.page,
|
|
2367
2336
|
requestParameters.size,
|
|
2337
|
+
requestParameters.sort,
|
|
2368
2338
|
options
|
|
2369
2339
|
).then((request) => request(this.axios, this.basePath));
|
|
2370
2340
|
}
|
|
@@ -20458,7 +20428,8 @@ const PluginStatusLastProbeStateEnum = {
|
|
|
20458
20428
|
Resolved: "RESOLVED",
|
|
20459
20429
|
Started: "STARTED",
|
|
20460
20430
|
Stopped: "STOPPED",
|
|
20461
|
-
Failed: "FAILED"
|
|
20431
|
+
Failed: "FAILED",
|
|
20432
|
+
Unloaded: "UNLOADED"
|
|
20462
20433
|
};
|
|
20463
20434
|
const PluginStatusPhaseEnum = {
|
|
20464
20435
|
Pending: "PENDING",
|
package/dist/index.d.ts
CHANGED
|
@@ -4658,6 +4658,12 @@ interface TagSpec {
|
|
|
4658
4658
|
* @interface TagStatus
|
|
4659
4659
|
*/
|
|
4660
4660
|
interface TagStatus {
|
|
4661
|
+
/**
|
|
4662
|
+
*
|
|
4663
|
+
* @type {number}
|
|
4664
|
+
* @memberof TagStatus
|
|
4665
|
+
*/
|
|
4666
|
+
observedVersion?: number;
|
|
4661
4667
|
/**
|
|
4662
4668
|
*
|
|
4663
4669
|
* @type {string}
|
|
@@ -7565,6 +7571,7 @@ declare const PluginStatusLastProbeStateEnum: {
|
|
|
7565
7571
|
readonly Started: "STARTED";
|
|
7566
7572
|
readonly Stopped: "STOPPED";
|
|
7567
7573
|
readonly Failed: "FAILED";
|
|
7574
|
+
readonly Unloaded: "UNLOADED";
|
|
7568
7575
|
};
|
|
7569
7576
|
type PluginStatusLastProbeStateEnum = (typeof PluginStatusLastProbeStateEnum)[keyof typeof PluginStatusLastProbeStateEnum];
|
|
7570
7577
|
declare const PluginStatusPhaseEnum: {
|
|
@@ -12058,24 +12065,18 @@ declare const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator: (configurati
|
|
|
12058
12065
|
createReply: (name: string, replyRequest: ReplyRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
12059
12066
|
/**
|
|
12060
12067
|
* List comments.
|
|
12061
|
-
* @param {boolean} [allowNotification] Send notifications when there are new replies.
|
|
12062
|
-
* @param {boolean} [approved] Comments approved.
|
|
12063
12068
|
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
|
12064
|
-
* @param {boolean} [hidden] The comment is hidden from the theme side.
|
|
12065
12069
|
* @param {string} [keyword] Comments filtered by keyword.
|
|
12066
12070
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
12067
12071
|
* @param {string} [ownerKind] Commenter kind.
|
|
12068
12072
|
* @param {string} [ownerName] Commenter name.
|
|
12069
12073
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
12070
12074
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
12071
|
-
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp,replyCount,lastReplyTime
|
|
12072
|
-
* @param {string} [subjectKind] Comment subject kind.
|
|
12073
|
-
* @param {string} [subjectName] Comment subject name.
|
|
12074
|
-
* @param {boolean} [top] Comment top display.
|
|
12075
|
+
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: metadata.creationTimestamp,status.replyCount,status.lastReplyTime
|
|
12075
12076
|
* @param {*} [options] Override http request option.
|
|
12076
12077
|
* @throws {RequiredError}
|
|
12077
12078
|
*/
|
|
12078
|
-
listComments: (
|
|
12079
|
+
listComments: (fieldSelector?: Array<string>, keyword?: string, labelSelector?: Array<string>, ownerKind?: string, ownerName?: string, page?: number, size?: number, sort?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
12079
12080
|
};
|
|
12080
12081
|
/**
|
|
12081
12082
|
* ApiConsoleHaloRunV1alpha1CommentApi - functional programming interface
|
|
@@ -12099,24 +12100,18 @@ declare const ApiConsoleHaloRunV1alpha1CommentApiFp: (configuration?: Configurat
|
|
|
12099
12100
|
createReply(name: string, replyRequest: ReplyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Reply>>;
|
|
12100
12101
|
/**
|
|
12101
12102
|
* List comments.
|
|
12102
|
-
* @param {boolean} [allowNotification] Send notifications when there are new replies.
|
|
12103
|
-
* @param {boolean} [approved] Comments approved.
|
|
12104
12103
|
* @param {Array<string>} [fieldSelector] Field selector for filtering.
|
|
12105
|
-
* @param {boolean} [hidden] The comment is hidden from the theme side.
|
|
12106
12104
|
* @param {string} [keyword] Comments filtered by keyword.
|
|
12107
12105
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
12108
12106
|
* @param {string} [ownerKind] Commenter kind.
|
|
12109
12107
|
* @param {string} [ownerName] Commenter name.
|
|
12110
12108
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
12111
12109
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
12112
|
-
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: creationTimestamp,replyCount,lastReplyTime
|
|
12113
|
-
* @param {string} [subjectKind] Comment subject kind.
|
|
12114
|
-
* @param {string} [subjectName] Comment subject name.
|
|
12115
|
-
* @param {boolean} [top] Comment top display.
|
|
12110
|
+
* @param {Array<string>} [sort] Sort property and direction of the list result. Supported fields: metadata.creationTimestamp,status.replyCount,status.lastReplyTime
|
|
12116
12111
|
* @param {*} [options] Override http request option.
|
|
12117
12112
|
* @throws {RequiredError}
|
|
12118
12113
|
*/
|
|
12119
|
-
listComments(
|
|
12114
|
+
listComments(fieldSelector?: Array<string>, keyword?: string, labelSelector?: Array<string>, ownerKind?: string, ownerName?: string, page?: number, size?: number, sort?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedCommentList>>;
|
|
12120
12115
|
};
|
|
12121
12116
|
/**
|
|
12122
12117
|
* ApiConsoleHaloRunV1alpha1CommentApi - factory interface
|
|
@@ -12183,30 +12178,12 @@ interface ApiConsoleHaloRunV1alpha1CommentApiCreateReplyRequest {
|
|
|
12183
12178
|
* @interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest
|
|
12184
12179
|
*/
|
|
12185
12180
|
interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest {
|
|
12186
|
-
/**
|
|
12187
|
-
* Send notifications when there are new replies.
|
|
12188
|
-
* @type {boolean}
|
|
12189
|
-
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
|
12190
|
-
*/
|
|
12191
|
-
readonly allowNotification?: boolean;
|
|
12192
|
-
/**
|
|
12193
|
-
* Comments approved.
|
|
12194
|
-
* @type {boolean}
|
|
12195
|
-
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
|
12196
|
-
*/
|
|
12197
|
-
readonly approved?: boolean;
|
|
12198
12181
|
/**
|
|
12199
12182
|
* Field selector for filtering.
|
|
12200
12183
|
* @type {Array<string>}
|
|
12201
12184
|
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
|
12202
12185
|
*/
|
|
12203
12186
|
readonly fieldSelector?: Array<string>;
|
|
12204
|
-
/**
|
|
12205
|
-
* The comment is hidden from the theme side.
|
|
12206
|
-
* @type {boolean}
|
|
12207
|
-
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
|
12208
|
-
*/
|
|
12209
|
-
readonly hidden?: boolean;
|
|
12210
12187
|
/**
|
|
12211
12188
|
* Comments filtered by keyword.
|
|
12212
12189
|
* @type {string}
|
|
@@ -12244,29 +12221,11 @@ interface ApiConsoleHaloRunV1alpha1CommentApiListCommentsRequest {
|
|
|
12244
12221
|
*/
|
|
12245
12222
|
readonly size?: number;
|
|
12246
12223
|
/**
|
|
12247
|
-
* Sort property and direction of the list result. Supported fields: creationTimestamp,replyCount,lastReplyTime
|
|
12224
|
+
* Sort property and direction of the list result. Supported fields: metadata.creationTimestamp,status.replyCount,status.lastReplyTime
|
|
12248
12225
|
* @type {Array<string>}
|
|
12249
12226
|
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
|
12250
12227
|
*/
|
|
12251
12228
|
readonly sort?: Array<string>;
|
|
12252
|
-
/**
|
|
12253
|
-
* Comment subject kind.
|
|
12254
|
-
* @type {string}
|
|
12255
|
-
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
|
12256
|
-
*/
|
|
12257
|
-
readonly subjectKind?: string;
|
|
12258
|
-
/**
|
|
12259
|
-
* Comment subject name.
|
|
12260
|
-
* @type {string}
|
|
12261
|
-
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
|
12262
|
-
*/
|
|
12263
|
-
readonly subjectName?: string;
|
|
12264
|
-
/**
|
|
12265
|
-
* Comment top display.
|
|
12266
|
-
* @type {boolean}
|
|
12267
|
-
* @memberof ApiConsoleHaloRunV1alpha1CommentApiListComments
|
|
12268
|
-
*/
|
|
12269
|
-
readonly top?: boolean;
|
|
12270
12229
|
}
|
|
12271
12230
|
/**
|
|
12272
12231
|
* ApiConsoleHaloRunV1alpha1CommentApi - object-oriented interface
|
|
@@ -13637,10 +13596,11 @@ declare const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator: (configuration
|
|
|
13637
13596
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
13638
13597
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
13639
13598
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
13599
|
+
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
|
|
13640
13600
|
* @param {*} [options] Override http request option.
|
|
13641
13601
|
* @throws {RequiredError}
|
|
13642
13602
|
*/
|
|
13643
|
-
listReplies: (commentName?: string, fieldSelector?: Array<string>, labelSelector?: Array<string>, page?: number, size?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
13603
|
+
listReplies: (commentName?: string, fieldSelector?: Array<string>, labelSelector?: Array<string>, page?: number, size?: number, sort?: Array<string>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
13644
13604
|
};
|
|
13645
13605
|
/**
|
|
13646
13606
|
* ApiConsoleHaloRunV1alpha1ReplyApi - functional programming interface
|
|
@@ -13654,10 +13614,11 @@ declare const ApiConsoleHaloRunV1alpha1ReplyApiFp: (configuration?: Configuratio
|
|
|
13654
13614
|
* @param {Array<string>} [labelSelector] Label selector for filtering.
|
|
13655
13615
|
* @param {number} [page] The page number. Zero indicates no page.
|
|
13656
13616
|
* @param {number} [size] Size of one page. Zero indicates no limit.
|
|
13617
|
+
* @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
|
|
13657
13618
|
* @param {*} [options] Override http request option.
|
|
13658
13619
|
* @throws {RequiredError}
|
|
13659
13620
|
*/
|
|
13660
|
-
listReplies(commentName?: string, fieldSelector?: Array<string>, labelSelector?: Array<string>, page?: number, size?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedReplyList>>;
|
|
13621
|
+
listReplies(commentName?: string, fieldSelector?: Array<string>, labelSelector?: Array<string>, page?: number, size?: number, sort?: Array<string>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListedReplyList>>;
|
|
13661
13622
|
};
|
|
13662
13623
|
/**
|
|
13663
13624
|
* ApiConsoleHaloRunV1alpha1ReplyApi - factory interface
|
|
@@ -13708,6 +13669,12 @@ interface ApiConsoleHaloRunV1alpha1ReplyApiListRepliesRequest {
|
|
|
13708
13669
|
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
|
|
13709
13670
|
*/
|
|
13710
13671
|
readonly size?: number;
|
|
13672
|
+
/**
|
|
13673
|
+
* Sort property and direction of the list result. Support sorting based on attribute name path.
|
|
13674
|
+
* @type {Array<string>}
|
|
13675
|
+
* @memberof ApiConsoleHaloRunV1alpha1ReplyApiListReplies
|
|
13676
|
+
*/
|
|
13677
|
+
readonly sort?: Array<string>;
|
|
13711
13678
|
}
|
|
13712
13679
|
/**
|
|
13713
13680
|
* ApiConsoleHaloRunV1alpha1ReplyApi - object-oriented interface
|
package/dist/index.mjs
CHANGED
|
@@ -500,7 +500,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
500
500
|
options: localVarRequestOptions
|
|
501
501
|
};
|
|
502
502
|
},
|
|
503
|
-
listComments: async (
|
|
503
|
+
listComments: async (fieldSelector, keyword, labelSelector, ownerKind, ownerName, page, size, sort, options = {}) => {
|
|
504
504
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
|
|
505
505
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
506
506
|
let baseOptions;
|
|
@@ -516,18 +516,9 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
516
516
|
const localVarQueryParameter = {};
|
|
517
517
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
518
518
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
519
|
-
if (allowNotification !== void 0) {
|
|
520
|
-
localVarQueryParameter["allowNotification"] = allowNotification;
|
|
521
|
-
}
|
|
522
|
-
if (approved !== void 0) {
|
|
523
|
-
localVarQueryParameter["approved"] = approved;
|
|
524
|
-
}
|
|
525
519
|
if (fieldSelector) {
|
|
526
520
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
527
521
|
}
|
|
528
|
-
if (hidden !== void 0) {
|
|
529
|
-
localVarQueryParameter["hidden"] = hidden;
|
|
530
|
-
}
|
|
531
522
|
if (keyword !== void 0) {
|
|
532
523
|
localVarQueryParameter["keyword"] = keyword;
|
|
533
524
|
}
|
|
@@ -549,15 +540,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
|
|
|
549
540
|
if (sort) {
|
|
550
541
|
localVarQueryParameter["sort"] = Array.from(sort);
|
|
551
542
|
}
|
|
552
|
-
if (subjectKind !== void 0) {
|
|
553
|
-
localVarQueryParameter["subjectKind"] = subjectKind;
|
|
554
|
-
}
|
|
555
|
-
if (subjectName !== void 0) {
|
|
556
|
-
localVarQueryParameter["subjectName"] = subjectName;
|
|
557
|
-
}
|
|
558
|
-
if (top !== void 0) {
|
|
559
|
-
localVarQueryParameter["top"] = top;
|
|
560
|
-
}
|
|
561
543
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
562
544
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
563
545
|
localVarRequestOptions.headers = {
|
|
@@ -600,12 +582,9 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
600
582
|
configuration
|
|
601
583
|
);
|
|
602
584
|
},
|
|
603
|
-
async listComments(
|
|
585
|
+
async listComments(fieldSelector, keyword, labelSelector, ownerKind, ownerName, page, size, sort, options) {
|
|
604
586
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(
|
|
605
|
-
allowNotification,
|
|
606
|
-
approved,
|
|
607
587
|
fieldSelector,
|
|
608
|
-
hidden,
|
|
609
588
|
keyword,
|
|
610
589
|
labelSelector,
|
|
611
590
|
ownerKind,
|
|
@@ -613,9 +592,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
|
613
592
|
page,
|
|
614
593
|
size,
|
|
615
594
|
sort,
|
|
616
|
-
subjectKind,
|
|
617
|
-
subjectName,
|
|
618
|
-
top,
|
|
619
595
|
options
|
|
620
596
|
);
|
|
621
597
|
return createRequestFunction(
|
|
@@ -642,10 +618,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
642
618
|
},
|
|
643
619
|
listComments(requestParameters = {}, options) {
|
|
644
620
|
return localVarFp.listComments(
|
|
645
|
-
requestParameters.allowNotification,
|
|
646
|
-
requestParameters.approved,
|
|
647
621
|
requestParameters.fieldSelector,
|
|
648
|
-
requestParameters.hidden,
|
|
649
622
|
requestParameters.keyword,
|
|
650
623
|
requestParameters.labelSelector,
|
|
651
624
|
requestParameters.ownerKind,
|
|
@@ -653,9 +626,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
|
|
|
653
626
|
requestParameters.page,
|
|
654
627
|
requestParameters.size,
|
|
655
628
|
requestParameters.sort,
|
|
656
|
-
requestParameters.subjectKind,
|
|
657
|
-
requestParameters.subjectName,
|
|
658
|
-
requestParameters.top,
|
|
659
629
|
options
|
|
660
630
|
).then((request) => request(axios, basePath));
|
|
661
631
|
}
|
|
@@ -674,10 +644,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
674
644
|
}
|
|
675
645
|
listComments(requestParameters = {}, options) {
|
|
676
646
|
return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(
|
|
677
|
-
requestParameters.allowNotification,
|
|
678
|
-
requestParameters.approved,
|
|
679
647
|
requestParameters.fieldSelector,
|
|
680
|
-
requestParameters.hidden,
|
|
681
648
|
requestParameters.keyword,
|
|
682
649
|
requestParameters.labelSelector,
|
|
683
650
|
requestParameters.ownerKind,
|
|
@@ -685,9 +652,6 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
|
685
652
|
requestParameters.page,
|
|
686
653
|
requestParameters.size,
|
|
687
654
|
requestParameters.sort,
|
|
688
|
-
requestParameters.subjectKind,
|
|
689
|
-
requestParameters.subjectName,
|
|
690
|
-
requestParameters.top,
|
|
691
655
|
options
|
|
692
656
|
).then((request) => request(this.axios, this.basePath));
|
|
693
657
|
}
|
|
@@ -2268,7 +2232,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
2268
2232
|
|
|
2269
2233
|
const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
|
|
2270
2234
|
return {
|
|
2271
|
-
listReplies: async (commentName, fieldSelector, labelSelector, page, size, options = {}) => {
|
|
2235
|
+
listReplies: async (commentName, fieldSelector, labelSelector, page, size, sort, options = {}) => {
|
|
2272
2236
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
|
|
2273
2237
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2274
2238
|
let baseOptions;
|
|
@@ -2299,6 +2263,9 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
2299
2263
|
if (size !== void 0) {
|
|
2300
2264
|
localVarQueryParameter["size"] = size;
|
|
2301
2265
|
}
|
|
2266
|
+
if (sort) {
|
|
2267
|
+
localVarQueryParameter["sort"] = Array.from(sort);
|
|
2268
|
+
}
|
|
2302
2269
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2303
2270
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2304
2271
|
localVarRequestOptions.headers = {
|
|
@@ -2316,13 +2283,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
|
|
|
2316
2283
|
const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
|
|
2317
2284
|
const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
|
|
2318
2285
|
return {
|
|
2319
|
-
async listReplies(commentName, fieldSelector, labelSelector, page, size, options) {
|
|
2286
|
+
async listReplies(commentName, fieldSelector, labelSelector, page, size, sort, options) {
|
|
2320
2287
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(
|
|
2321
2288
|
commentName,
|
|
2322
2289
|
fieldSelector,
|
|
2323
2290
|
labelSelector,
|
|
2324
2291
|
page,
|
|
2325
2292
|
size,
|
|
2293
|
+
sort,
|
|
2326
2294
|
options
|
|
2327
2295
|
);
|
|
2328
2296
|
return createRequestFunction(
|
|
@@ -2344,6 +2312,7 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePat
|
|
|
2344
2312
|
requestParameters.labelSelector,
|
|
2345
2313
|
requestParameters.page,
|
|
2346
2314
|
requestParameters.size,
|
|
2315
|
+
requestParameters.sort,
|
|
2347
2316
|
options
|
|
2348
2317
|
).then((request) => request(axios, basePath));
|
|
2349
2318
|
}
|
|
@@ -2357,6 +2326,7 @@ class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
|
2357
2326
|
requestParameters.labelSelector,
|
|
2358
2327
|
requestParameters.page,
|
|
2359
2328
|
requestParameters.size,
|
|
2329
|
+
requestParameters.sort,
|
|
2360
2330
|
options
|
|
2361
2331
|
).then((request) => request(this.axios, this.basePath));
|
|
2362
2332
|
}
|
|
@@ -20450,7 +20420,8 @@ const PluginStatusLastProbeStateEnum = {
|
|
|
20450
20420
|
Resolved: "RESOLVED",
|
|
20451
20421
|
Started: "STARTED",
|
|
20452
20422
|
Stopped: "STOPPED",
|
|
20453
|
-
Failed: "FAILED"
|
|
20423
|
+
Failed: "FAILED",
|
|
20424
|
+
Unloaded: "UNLOADED"
|
|
20454
20425
|
};
|
|
20455
20426
|
const PluginStatusPhaseEnum = {
|
|
20456
20427
|
Pending: "PENDING",
|