@halo-dev/api-client 0.0.41 → 0.0.42

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 CHANGED
@@ -77,7 +77,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
77
77
 
78
78
  const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
79
79
  return {
80
- searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
80
+ searchAttachments: async (policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
81
81
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
82
82
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
83
83
  let baseOptions;
@@ -95,24 +95,24 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
95
95
  if (displayName !== void 0) {
96
96
  localVarQueryParameter["displayName"] = displayName;
97
97
  }
98
- if (group !== void 0) {
99
- localVarQueryParameter["group"] = group;
100
- }
101
98
  if (uploadedBy !== void 0) {
102
99
  localVarQueryParameter["uploadedBy"] = uploadedBy;
103
100
  }
101
+ if (group !== void 0) {
102
+ localVarQueryParameter["group"] = group;
103
+ }
104
104
  if (size !== void 0) {
105
105
  localVarQueryParameter["size"] = size;
106
106
  }
107
- if (page !== void 0) {
108
- localVarQueryParameter["page"] = page;
109
- }
110
107
  if (labelSelector) {
111
108
  localVarQueryParameter["labelSelector"] = labelSelector;
112
109
  }
113
110
  if (fieldSelector) {
114
111
  localVarQueryParameter["fieldSelector"] = fieldSelector;
115
112
  }
113
+ if (page !== void 0) {
114
+ localVarQueryParameter["page"] = page;
115
+ }
116
116
  setSearchParams(localVarUrlObj, localVarQueryParameter);
117
117
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
118
118
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -160,8 +160,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
160
160
  const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
161
161
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
162
162
  return {
163
- async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
164
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
163
+ async searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
164
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
165
165
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
166
166
  },
167
167
  async uploadAttachment(file, policyName, groupName, options) {
@@ -173,8 +173,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
173
173
  const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
174
174
  const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
175
175
  return {
176
- searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
177
- return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
176
+ searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
177
+ return localVarFp.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
178
178
  },
179
179
  uploadAttachment(file, policyName, groupName, options) {
180
180
  return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
@@ -183,7 +183,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
183
183
  };
184
184
  class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
185
185
  searchAttachments(requestParameters = {}, options) {
186
- return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
186
+ return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.uploadedBy, requestParameters.group, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
187
187
  }
188
188
  uploadAttachment(requestParameters, options) {
189
189
  return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
@@ -239,7 +239,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
239
239
  options: localVarRequestOptions
240
240
  };
241
241
  },
242
- listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
242
+ listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
243
243
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
244
244
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
245
245
  let baseOptions;
@@ -254,15 +254,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
254
254
  if (sort !== void 0) {
255
255
  localVarQueryParameter["sort"] = sort;
256
256
  }
257
- if (keyword !== void 0) {
258
- localVarQueryParameter["keyword"] = keyword;
259
- }
260
- if (hidden !== void 0) {
261
- localVarQueryParameter["hidden"] = hidden;
262
- }
263
- if (top !== void 0) {
264
- localVarQueryParameter["top"] = top;
265
- }
266
257
  if (sortOrder !== void 0) {
267
258
  localVarQueryParameter["sortOrder"] = sortOrder;
268
259
  }
@@ -284,18 +275,27 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
284
275
  if (subjectName !== void 0) {
285
276
  localVarQueryParameter["subjectName"] = subjectName;
286
277
  }
278
+ if (keyword !== void 0) {
279
+ localVarQueryParameter["keyword"] = keyword;
280
+ }
281
+ if (hidden !== void 0) {
282
+ localVarQueryParameter["hidden"] = hidden;
283
+ }
284
+ if (top !== void 0) {
285
+ localVarQueryParameter["top"] = top;
286
+ }
287
287
  if (size !== void 0) {
288
288
  localVarQueryParameter["size"] = size;
289
289
  }
290
- if (page !== void 0) {
291
- localVarQueryParameter["page"] = page;
292
- }
293
290
  if (labelSelector) {
294
291
  localVarQueryParameter["labelSelector"] = labelSelector;
295
292
  }
296
293
  if (fieldSelector) {
297
294
  localVarQueryParameter["fieldSelector"] = fieldSelector;
298
295
  }
296
+ if (page !== void 0) {
297
+ localVarQueryParameter["page"] = page;
298
+ }
299
299
  setSearchParams(localVarUrlObj, localVarQueryParameter);
300
300
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
301
301
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -317,8 +317,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
317
317
  const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
318
318
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
319
319
  },
320
- async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
321
- const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
320
+ async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
321
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
322
322
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
323
323
  }
324
324
  };
@@ -332,8 +332,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
332
332
  createReply(name, replyRequest, options) {
333
333
  return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
334
334
  },
335
- listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
336
- return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
335
+ listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
336
+ return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
337
337
  }
338
338
  };
339
339
  };
@@ -345,7 +345,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
345
345
  return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
346
346
  }
347
347
  listComments(requestParameters = {}, options) {
348
- return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
348
+ return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.keyword, requestParameters.hidden, requestParameters.top, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
349
349
  }
350
350
  }
351
351
 
@@ -395,30 +395,6 @@ const ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator = function(configurat
395
395
  options: localVarRequestOptions
396
396
  };
397
397
  },
398
- publishSnapshotContent: async (snapshotName, subjectRef, options = {}) => {
399
- assertParamExists("publishSnapshotContent", "snapshotName", snapshotName);
400
- assertParamExists("publishSnapshotContent", "subjectRef", subjectRef);
401
- const localVarPath = `/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}/publish`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
402
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
403
- let baseOptions;
404
- if (configuration) {
405
- baseOptions = configuration.baseOptions;
406
- }
407
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
408
- const localVarHeaderParameter = {};
409
- const localVarQueryParameter = {};
410
- setBasicAuthToObject(localVarRequestOptions, configuration);
411
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
412
- localVarHeaderParameter["Content-Type"] = "application/json";
413
- setSearchParams(localVarUrlObj, localVarQueryParameter);
414
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
415
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
416
- localVarRequestOptions.data = serializeDataIfNeeded(subjectRef, localVarRequestOptions, configuration);
417
- return {
418
- url: toPathString(localVarUrlObj),
419
- options: localVarRequestOptions
420
- };
421
- },
422
398
  updateSnapshotContent: async (snapshotName, contentRequest, options = {}) => {
423
399
  assertParamExists("updateSnapshotContent", "snapshotName", snapshotName);
424
400
  assertParamExists("updateSnapshotContent", "contentRequest", contentRequest);
@@ -456,10 +432,6 @@ const ApiConsoleHaloRunV1alpha1ContentApiFp = function(configuration) {
456
432
  const localVarAxiosArgs = await localVarAxiosParamCreator.obtainSnapshotContent(snapshotName, options);
457
433
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
458
434
  },
459
- async publishSnapshotContent(snapshotName, subjectRef, options) {
460
- const localVarAxiosArgs = await localVarAxiosParamCreator.publishSnapshotContent(snapshotName, subjectRef, options);
461
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
462
- },
463
435
  async updateSnapshotContent(snapshotName, contentRequest, options) {
464
436
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateSnapshotContent(snapshotName, contentRequest, options);
465
437
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
@@ -475,9 +447,6 @@ const ApiConsoleHaloRunV1alpha1ContentApiFactory = function(configuration, baseP
475
447
  obtainSnapshotContent(snapshotName, options) {
476
448
  return localVarFp.obtainSnapshotContent(snapshotName, options).then((request) => request(axios, basePath));
477
449
  },
478
- publishSnapshotContent(snapshotName, subjectRef, options) {
479
- return localVarFp.publishSnapshotContent(snapshotName, subjectRef, options).then((request) => request(axios, basePath));
480
- },
481
450
  updateSnapshotContent(snapshotName, contentRequest, options) {
482
451
  return localVarFp.updateSnapshotContent(snapshotName, contentRequest, options).then((request) => request(axios, basePath));
483
452
  }
@@ -490,9 +459,6 @@ class ApiConsoleHaloRunV1alpha1ContentApi extends BaseAPI {
490
459
  obtainSnapshotContent(requestParameters, options) {
491
460
  return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).obtainSnapshotContent(requestParameters.snapshotName, options).then((request) => request(this.axios, this.basePath));
492
461
  }
493
- publishSnapshotContent(requestParameters, options) {
494
- return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).publishSnapshotContent(requestParameters.snapshotName, requestParameters.subjectRef, options).then((request) => request(this.axios, this.basePath));
495
- }
496
462
  updateSnapshotContent(requestParameters, options) {
497
463
  return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).updateSnapshotContent(requestParameters.snapshotName, requestParameters.contentRequest, options).then((request) => request(this.axios, this.basePath));
498
464
  }
@@ -527,7 +493,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
527
493
  options: localVarRequestOptions
528
494
  };
529
495
  },
530
- listPlugins: async (sort, keyword, enabled, size, page, labelSelector, fieldSelector, options = {}) => {
496
+ listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
531
497
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
532
498
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
533
499
  let baseOptions;
@@ -542,24 +508,24 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
542
508
  if (sort) {
543
509
  localVarQueryParameter["sort"] = Array.from(sort);
544
510
  }
545
- if (keyword !== void 0) {
546
- localVarQueryParameter["keyword"] = keyword;
547
- }
548
511
  if (enabled !== void 0) {
549
512
  localVarQueryParameter["enabled"] = enabled;
550
513
  }
514
+ if (keyword !== void 0) {
515
+ localVarQueryParameter["keyword"] = keyword;
516
+ }
551
517
  if (size !== void 0) {
552
518
  localVarQueryParameter["size"] = size;
553
519
  }
554
- if (page !== void 0) {
555
- localVarQueryParameter["page"] = page;
556
- }
557
520
  if (labelSelector) {
558
521
  localVarQueryParameter["labelSelector"] = labelSelector;
559
522
  }
560
523
  if (fieldSelector) {
561
524
  localVarQueryParameter["fieldSelector"] = fieldSelector;
562
525
  }
526
+ if (page !== void 0) {
527
+ localVarQueryParameter["page"] = page;
528
+ }
563
529
  setSearchParams(localVarUrlObj, localVarQueryParameter);
564
530
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
565
531
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -605,8 +571,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
605
571
  const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
606
572
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
607
573
  },
608
- async listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
609
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options);
574
+ async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
575
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options);
610
576
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
611
577
  },
612
578
  async upgradePlugin(name, file, options) {
@@ -621,8 +587,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
621
587
  installPlugin(file, options) {
622
588
  return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
623
589
  },
624
- listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
625
- return localVarFp.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
590
+ listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
591
+ return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
626
592
  },
627
593
  upgradePlugin(name, file, options) {
628
594
  return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
@@ -634,7 +600,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
634
600
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
635
601
  }
636
602
  listPlugins(requestParameters = {}, options) {
637
- return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
603
+ return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.enabled, requestParameters.keyword, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
638
604
  }
639
605
  upgradePlugin(requestParameters, options) {
640
606
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
@@ -666,7 +632,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
666
632
  options: localVarRequestOptions
667
633
  };
668
634
  },
669
- listPosts: async (sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
635
+ listPosts: async (sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
670
636
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
671
637
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
672
638
  let baseOptions;
@@ -681,14 +647,8 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
681
647
  if (sort !== void 0) {
682
648
  localVarQueryParameter["sort"] = sort;
683
649
  }
684
- if (keyword !== void 0) {
685
- localVarQueryParameter["keyword"] = keyword;
686
- }
687
- if (visible !== void 0) {
688
- localVarQueryParameter["visible"] = visible;
689
- }
690
- if (tag) {
691
- localVarQueryParameter["tag"] = Array.from(tag);
650
+ if (contributor) {
651
+ localVarQueryParameter["contributor"] = Array.from(contributor);
692
652
  }
693
653
  if (sortOrder !== void 0) {
694
654
  localVarQueryParameter["sortOrder"] = sortOrder;
@@ -699,21 +659,27 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
699
659
  if (category) {
700
660
  localVarQueryParameter["category"] = Array.from(category);
701
661
  }
702
- if (contributor) {
703
- localVarQueryParameter["contributor"] = Array.from(contributor);
662
+ if (tag) {
663
+ localVarQueryParameter["tag"] = Array.from(tag);
664
+ }
665
+ if (keyword !== void 0) {
666
+ localVarQueryParameter["keyword"] = keyword;
667
+ }
668
+ if (visible !== void 0) {
669
+ localVarQueryParameter["visible"] = visible;
704
670
  }
705
671
  if (size !== void 0) {
706
672
  localVarQueryParameter["size"] = size;
707
673
  }
708
- if (page !== void 0) {
709
- localVarQueryParameter["page"] = page;
710
- }
711
674
  if (labelSelector) {
712
675
  localVarQueryParameter["labelSelector"] = labelSelector;
713
676
  }
714
677
  if (fieldSelector) {
715
678
  localVarQueryParameter["fieldSelector"] = fieldSelector;
716
679
  }
680
+ if (page !== void 0) {
681
+ localVarQueryParameter["page"] = page;
682
+ }
717
683
  setSearchParams(localVarUrlObj, localVarQueryParameter);
718
684
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
719
685
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -776,8 +742,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
776
742
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
777
743
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
778
744
  },
779
- async listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
780
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options);
745
+ async listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
746
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options);
781
747
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
782
748
  },
783
749
  async publishPost(name, options) {
@@ -796,8 +762,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
796
762
  draftPost(postRequest, options) {
797
763
  return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
798
764
  },
799
- listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
800
- return localVarFp.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
765
+ listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
766
+ return localVarFp.listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
801
767
  },
802
768
  publishPost(name, options) {
803
769
  return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
@@ -812,7 +778,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
812
778
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
813
779
  }
814
780
  listPosts(requestParameters = {}, options) {
815
- return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
781
+ return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.tag, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
816
782
  }
817
783
  publishPost(requestParameters, options) {
818
784
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -824,7 +790,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
824
790
 
825
791
  const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
826
792
  return {
827
- listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
793
+ listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
828
794
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
829
795
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
830
796
  let baseOptions;
@@ -842,15 +808,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
842
808
  if (size !== void 0) {
843
809
  localVarQueryParameter["size"] = size;
844
810
  }
845
- if (page !== void 0) {
846
- localVarQueryParameter["page"] = page;
847
- }
848
811
  if (labelSelector) {
849
812
  localVarQueryParameter["labelSelector"] = labelSelector;
850
813
  }
851
814
  if (fieldSelector) {
852
815
  localVarQueryParameter["fieldSelector"] = fieldSelector;
853
816
  }
817
+ if (page !== void 0) {
818
+ localVarQueryParameter["page"] = page;
819
+ }
854
820
  setSearchParams(localVarUrlObj, localVarQueryParameter);
855
821
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
856
822
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -864,8 +830,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
864
830
  const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
865
831
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
866
832
  return {
867
- async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
868
- const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
833
+ async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
834
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
869
835
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
870
836
  }
871
837
  };
@@ -873,14 +839,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
873
839
  const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
874
840
  const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
875
841
  return {
876
- listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
877
- return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
842
+ listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
843
+ return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
878
844
  }
879
845
  };
880
846
  };
881
847
  class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
882
848
  listReplies(requestParameters = {}, options) {
883
- return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
849
+ return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
884
850
  }
885
851
  }
886
852
 
@@ -909,7 +875,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
909
875
  options: localVarRequestOptions
910
876
  };
911
877
  },
912
- listSinglePages: async (sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
878
+ listSinglePages: async (sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
913
879
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
914
880
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
915
881
  let baseOptions;
@@ -924,11 +890,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
924
890
  if (sort !== void 0) {
925
891
  localVarQueryParameter["sort"] = sort;
926
892
  }
927
- if (keyword !== void 0) {
928
- localVarQueryParameter["keyword"] = keyword;
929
- }
930
- if (visible !== void 0) {
931
- localVarQueryParameter["visible"] = visible;
893
+ if (contributor) {
894
+ localVarQueryParameter["contributor"] = Array.from(contributor);
932
895
  }
933
896
  if (sortOrder !== void 0) {
934
897
  localVarQueryParameter["sortOrder"] = sortOrder;
@@ -936,21 +899,24 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
936
899
  if (publishPhase !== void 0) {
937
900
  localVarQueryParameter["publishPhase"] = publishPhase;
938
901
  }
939
- if (contributor) {
940
- localVarQueryParameter["contributor"] = Array.from(contributor);
902
+ if (keyword !== void 0) {
903
+ localVarQueryParameter["keyword"] = keyword;
904
+ }
905
+ if (visible !== void 0) {
906
+ localVarQueryParameter["visible"] = visible;
941
907
  }
942
908
  if (size !== void 0) {
943
909
  localVarQueryParameter["size"] = size;
944
910
  }
945
- if (page !== void 0) {
946
- localVarQueryParameter["page"] = page;
947
- }
948
911
  if (labelSelector) {
949
912
  localVarQueryParameter["labelSelector"] = labelSelector;
950
913
  }
951
914
  if (fieldSelector) {
952
915
  localVarQueryParameter["fieldSelector"] = fieldSelector;
953
916
  }
917
+ if (page !== void 0) {
918
+ localVarQueryParameter["page"] = page;
919
+ }
954
920
  setSearchParams(localVarUrlObj, localVarQueryParameter);
955
921
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
956
922
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1013,8 +979,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
1013
979
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
1014
980
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1015
981
  },
1016
- async listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
1017
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options);
982
+ async listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options) {
983
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options);
1018
984
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1019
985
  },
1020
986
  async publishSinglePage(name, options) {
@@ -1033,8 +999,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
1033
999
  draftSinglePage(singlePageRequest, options) {
1034
1000
  return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
1035
1001
  },
1036
- listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
1037
- return localVarFp.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
1002
+ listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options) {
1003
+ return localVarFp.listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
1038
1004
  },
1039
1005
  publishSinglePage(name, options) {
1040
1006
  return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
@@ -1049,7 +1015,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
1049
1015
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
1050
1016
  }
1051
1017
  listSinglePages(requestParameters = {}, options) {
1052
- return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.keyword, requestParameters.visible, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
1018
+ return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.contributor, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1053
1019
  }
1054
1020
  publishSinglePage(requestParameters, options) {
1055
1021
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -1135,7 +1101,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1135
1101
  options: localVarRequestOptions
1136
1102
  };
1137
1103
  },
1138
- listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
1104
+ listThemes: async (uninstalled, size, labelSelector, fieldSelector, page, options = {}) => {
1139
1105
  assertParamExists("listThemes", "uninstalled", uninstalled);
1140
1106
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
1141
1107
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1154,15 +1120,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1154
1120
  if (size !== void 0) {
1155
1121
  localVarQueryParameter["size"] = size;
1156
1122
  }
1157
- if (page !== void 0) {
1158
- localVarQueryParameter["page"] = page;
1159
- }
1160
1123
  if (labelSelector) {
1161
1124
  localVarQueryParameter["labelSelector"] = labelSelector;
1162
1125
  }
1163
1126
  if (fieldSelector) {
1164
1127
  localVarQueryParameter["fieldSelector"] = fieldSelector;
1165
1128
  }
1129
+ if (page !== void 0) {
1130
+ localVarQueryParameter["page"] = page;
1131
+ }
1166
1132
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1167
1133
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1168
1134
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1229,8 +1195,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
1229
1195
  const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
1230
1196
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1231
1197
  },
1232
- async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
1233
- const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
1198
+ async listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
1199
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options);
1234
1200
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1235
1201
  },
1236
1202
  async reloadThemeSetting(name, options) {
@@ -1249,8 +1215,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
1249
1215
  installTheme(file, options) {
1250
1216
  return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
1251
1217
  },
1252
- listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
1253
- return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
1218
+ listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
1219
+ return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
1254
1220
  },
1255
1221
  reloadThemeSetting(name, options) {
1256
1222
  return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
@@ -1265,7 +1231,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
1265
1231
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
1266
1232
  }
1267
1233
  listThemes(requestParameters, options) {
1268
- return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
1234
+ return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1269
1235
  }
1270
1236
  reloadThemeSetting(requestParameters, options) {
1271
1237
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -1539,12 +1505,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
1539
1505
  if (version !== void 0) {
1540
1506
  localVarQueryParameter["version"] = version;
1541
1507
  }
1542
- if (group !== void 0) {
1543
- localVarQueryParameter["group"] = group;
1544
- }
1545
1508
  if (kind !== void 0) {
1546
1509
  localVarQueryParameter["kind"] = kind;
1547
1510
  }
1511
+ if (group !== void 0) {
1512
+ localVarQueryParameter["group"] = group;
1513
+ }
1548
1514
  if (size !== void 0) {
1549
1515
  localVarQueryParameter["size"] = size;
1550
1516
  }