@halo-dev/api-client 0.0.40 → 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.mjs CHANGED
@@ -69,7 +69,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
69
69
 
70
70
  const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
71
71
  return {
72
- searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
72
+ searchAttachments: async (policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
73
73
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
74
74
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
75
75
  let baseOptions;
@@ -87,24 +87,24 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
87
87
  if (displayName !== void 0) {
88
88
  localVarQueryParameter["displayName"] = displayName;
89
89
  }
90
- if (group !== void 0) {
91
- localVarQueryParameter["group"] = group;
92
- }
93
90
  if (uploadedBy !== void 0) {
94
91
  localVarQueryParameter["uploadedBy"] = uploadedBy;
95
92
  }
93
+ if (group !== void 0) {
94
+ localVarQueryParameter["group"] = group;
95
+ }
96
96
  if (size !== void 0) {
97
97
  localVarQueryParameter["size"] = size;
98
98
  }
99
- if (page !== void 0) {
100
- localVarQueryParameter["page"] = page;
101
- }
102
99
  if (labelSelector) {
103
100
  localVarQueryParameter["labelSelector"] = labelSelector;
104
101
  }
105
102
  if (fieldSelector) {
106
103
  localVarQueryParameter["fieldSelector"] = fieldSelector;
107
104
  }
105
+ if (page !== void 0) {
106
+ localVarQueryParameter["page"] = page;
107
+ }
108
108
  setSearchParams(localVarUrlObj, localVarQueryParameter);
109
109
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
110
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -152,8 +152,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
152
152
  const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
153
153
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
154
154
  return {
155
- async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
156
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
155
+ async searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
156
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
157
157
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
158
158
  },
159
159
  async uploadAttachment(file, policyName, groupName, options) {
@@ -165,8 +165,8 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
165
165
  const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, basePath, axios) {
166
166
  const localVarFp = ApiConsoleHaloRunV1alpha1AttachmentApiFp(configuration);
167
167
  return {
168
- searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
169
- return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
168
+ searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
169
+ return localVarFp.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
170
170
  },
171
171
  uploadAttachment(file, policyName, groupName, options) {
172
172
  return localVarFp.uploadAttachment(file, policyName, groupName, options).then((request) => request(axios, basePath));
@@ -175,7 +175,7 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
175
175
  };
176
176
  class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
177
177
  searchAttachments(requestParameters = {}, options) {
178
- 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));
178
+ 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));
179
179
  }
180
180
  uploadAttachment(requestParameters, options) {
181
181
  return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).uploadAttachment(requestParameters.file, requestParameters.policyName, requestParameters.groupName, options).then((request) => request(this.axios, this.basePath));
@@ -231,7 +231,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
231
231
  options: localVarRequestOptions
232
232
  };
233
233
  },
234
- listComments: async (sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
234
+ listComments: async (sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options = {}) => {
235
235
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
236
236
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
237
237
  let baseOptions;
@@ -246,15 +246,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
246
246
  if (sort !== void 0) {
247
247
  localVarQueryParameter["sort"] = sort;
248
248
  }
249
- if (keyword !== void 0) {
250
- localVarQueryParameter["keyword"] = keyword;
251
- }
252
- if (hidden !== void 0) {
253
- localVarQueryParameter["hidden"] = hidden;
254
- }
255
- if (top !== void 0) {
256
- localVarQueryParameter["top"] = top;
257
- }
258
249
  if (sortOrder !== void 0) {
259
250
  localVarQueryParameter["sortOrder"] = sortOrder;
260
251
  }
@@ -276,18 +267,27 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
276
267
  if (subjectName !== void 0) {
277
268
  localVarQueryParameter["subjectName"] = subjectName;
278
269
  }
270
+ if (keyword !== void 0) {
271
+ localVarQueryParameter["keyword"] = keyword;
272
+ }
273
+ if (hidden !== void 0) {
274
+ localVarQueryParameter["hidden"] = hidden;
275
+ }
276
+ if (top !== void 0) {
277
+ localVarQueryParameter["top"] = top;
278
+ }
279
279
  if (size !== void 0) {
280
280
  localVarQueryParameter["size"] = size;
281
281
  }
282
- if (page !== void 0) {
283
- localVarQueryParameter["page"] = page;
284
- }
285
282
  if (labelSelector) {
286
283
  localVarQueryParameter["labelSelector"] = labelSelector;
287
284
  }
288
285
  if (fieldSelector) {
289
286
  localVarQueryParameter["fieldSelector"] = fieldSelector;
290
287
  }
288
+ if (page !== void 0) {
289
+ localVarQueryParameter["page"] = page;
290
+ }
291
291
  setSearchParams(localVarUrlObj, localVarQueryParameter);
292
292
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
293
293
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -309,8 +309,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
309
309
  const localVarAxiosArgs = await localVarAxiosParamCreator.createReply(name, replyRequest, options);
310
310
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
311
311
  },
312
- async listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
313
- const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
312
+ async listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
313
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options);
314
314
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
315
315
  }
316
316
  };
@@ -324,8 +324,8 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
324
324
  createReply(name, replyRequest, options) {
325
325
  return localVarFp.createReply(name, replyRequest, options).then((request) => request(axios, basePath));
326
326
  },
327
- listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
328
- return localVarFp.listComments(sort, keyword, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
327
+ listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options) {
328
+ return localVarFp.listComments(sort, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, keyword, hidden, top, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
329
329
  }
330
330
  };
331
331
  };
@@ -337,7 +337,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
337
337
  return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).createReply(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
338
338
  }
339
339
  listComments(requestParameters = {}, options) {
340
- 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));
340
+ 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));
341
341
  }
342
342
  }
343
343
 
@@ -387,30 +387,6 @@ const ApiConsoleHaloRunV1alpha1ContentApiAxiosParamCreator = function(configurat
387
387
  options: localVarRequestOptions
388
388
  };
389
389
  },
390
- publishSnapshotContent: async (snapshotName, subjectRef, options = {}) => {
391
- assertParamExists("publishSnapshotContent", "snapshotName", snapshotName);
392
- assertParamExists("publishSnapshotContent", "subjectRef", subjectRef);
393
- const localVarPath = `/apis/api.console.halo.run/v1alpha1/contents/{snapshotName}/publish`.replace(`{${"snapshotName"}}`, encodeURIComponent(String(snapshotName)));
394
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
395
- let baseOptions;
396
- if (configuration) {
397
- baseOptions = configuration.baseOptions;
398
- }
399
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
400
- const localVarHeaderParameter = {};
401
- const localVarQueryParameter = {};
402
- setBasicAuthToObject(localVarRequestOptions, configuration);
403
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
404
- localVarHeaderParameter["Content-Type"] = "application/json";
405
- setSearchParams(localVarUrlObj, localVarQueryParameter);
406
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
407
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
408
- localVarRequestOptions.data = serializeDataIfNeeded(subjectRef, localVarRequestOptions, configuration);
409
- return {
410
- url: toPathString(localVarUrlObj),
411
- options: localVarRequestOptions
412
- };
413
- },
414
390
  updateSnapshotContent: async (snapshotName, contentRequest, options = {}) => {
415
391
  assertParamExists("updateSnapshotContent", "snapshotName", snapshotName);
416
392
  assertParamExists("updateSnapshotContent", "contentRequest", contentRequest);
@@ -448,10 +424,6 @@ const ApiConsoleHaloRunV1alpha1ContentApiFp = function(configuration) {
448
424
  const localVarAxiosArgs = await localVarAxiosParamCreator.obtainSnapshotContent(snapshotName, options);
449
425
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
450
426
  },
451
- async publishSnapshotContent(snapshotName, subjectRef, options) {
452
- const localVarAxiosArgs = await localVarAxiosParamCreator.publishSnapshotContent(snapshotName, subjectRef, options);
453
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
454
- },
455
427
  async updateSnapshotContent(snapshotName, contentRequest, options) {
456
428
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateSnapshotContent(snapshotName, contentRequest, options);
457
429
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
@@ -467,9 +439,6 @@ const ApiConsoleHaloRunV1alpha1ContentApiFactory = function(configuration, baseP
467
439
  obtainSnapshotContent(snapshotName, options) {
468
440
  return localVarFp.obtainSnapshotContent(snapshotName, options).then((request) => request(axios, basePath));
469
441
  },
470
- publishSnapshotContent(snapshotName, subjectRef, options) {
471
- return localVarFp.publishSnapshotContent(snapshotName, subjectRef, options).then((request) => request(axios, basePath));
472
- },
473
442
  updateSnapshotContent(snapshotName, contentRequest, options) {
474
443
  return localVarFp.updateSnapshotContent(snapshotName, contentRequest, options).then((request) => request(axios, basePath));
475
444
  }
@@ -482,9 +451,6 @@ class ApiConsoleHaloRunV1alpha1ContentApi extends BaseAPI {
482
451
  obtainSnapshotContent(requestParameters, options) {
483
452
  return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).obtainSnapshotContent(requestParameters.snapshotName, options).then((request) => request(this.axios, this.basePath));
484
453
  }
485
- publishSnapshotContent(requestParameters, options) {
486
- return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).publishSnapshotContent(requestParameters.snapshotName, requestParameters.subjectRef, options).then((request) => request(this.axios, this.basePath));
487
- }
488
454
  updateSnapshotContent(requestParameters, options) {
489
455
  return ApiConsoleHaloRunV1alpha1ContentApiFp(this.configuration).updateSnapshotContent(requestParameters.snapshotName, requestParameters.contentRequest, options).then((request) => request(this.axios, this.basePath));
490
456
  }
@@ -519,7 +485,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
519
485
  options: localVarRequestOptions
520
486
  };
521
487
  },
522
- listPlugins: async (sort, keyword, enabled, size, page, labelSelector, fieldSelector, options = {}) => {
488
+ listPlugins: async (sort, enabled, keyword, size, labelSelector, fieldSelector, page, options = {}) => {
523
489
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
524
490
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
525
491
  let baseOptions;
@@ -534,24 +500,24 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
534
500
  if (sort) {
535
501
  localVarQueryParameter["sort"] = Array.from(sort);
536
502
  }
537
- if (keyword !== void 0) {
538
- localVarQueryParameter["keyword"] = keyword;
539
- }
540
503
  if (enabled !== void 0) {
541
504
  localVarQueryParameter["enabled"] = enabled;
542
505
  }
506
+ if (keyword !== void 0) {
507
+ localVarQueryParameter["keyword"] = keyword;
508
+ }
543
509
  if (size !== void 0) {
544
510
  localVarQueryParameter["size"] = size;
545
511
  }
546
- if (page !== void 0) {
547
- localVarQueryParameter["page"] = page;
548
- }
549
512
  if (labelSelector) {
550
513
  localVarQueryParameter["labelSelector"] = labelSelector;
551
514
  }
552
515
  if (fieldSelector) {
553
516
  localVarQueryParameter["fieldSelector"] = fieldSelector;
554
517
  }
518
+ if (page !== void 0) {
519
+ localVarQueryParameter["page"] = page;
520
+ }
555
521
  setSearchParams(localVarUrlObj, localVarQueryParameter);
556
522
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
557
523
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -597,8 +563,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
597
563
  const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
598
564
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
599
565
  },
600
- async listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
601
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options);
566
+ async listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
567
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options);
602
568
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
603
569
  },
604
570
  async upgradePlugin(name, file, options) {
@@ -613,8 +579,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
613
579
  installPlugin(file, options) {
614
580
  return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
615
581
  },
616
- listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
617
- return localVarFp.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
582
+ listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options) {
583
+ return localVarFp.listPlugins(sort, enabled, keyword, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
618
584
  },
619
585
  upgradePlugin(name, file, options) {
620
586
  return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
@@ -626,7 +592,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
626
592
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
627
593
  }
628
594
  listPlugins(requestParameters = {}, options) {
629
- 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));
595
+ 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));
630
596
  }
631
597
  upgradePlugin(requestParameters, options) {
632
598
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
@@ -658,7 +624,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
658
624
  options: localVarRequestOptions
659
625
  };
660
626
  },
661
- listPosts: async (sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
627
+ listPosts: async (sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
662
628
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
663
629
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
664
630
  let baseOptions;
@@ -673,14 +639,8 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
673
639
  if (sort !== void 0) {
674
640
  localVarQueryParameter["sort"] = sort;
675
641
  }
676
- if (keyword !== void 0) {
677
- localVarQueryParameter["keyword"] = keyword;
678
- }
679
- if (visible !== void 0) {
680
- localVarQueryParameter["visible"] = visible;
681
- }
682
- if (tag) {
683
- localVarQueryParameter["tag"] = Array.from(tag);
642
+ if (contributor) {
643
+ localVarQueryParameter["contributor"] = Array.from(contributor);
684
644
  }
685
645
  if (sortOrder !== void 0) {
686
646
  localVarQueryParameter["sortOrder"] = sortOrder;
@@ -691,21 +651,27 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
691
651
  if (category) {
692
652
  localVarQueryParameter["category"] = Array.from(category);
693
653
  }
694
- if (contributor) {
695
- localVarQueryParameter["contributor"] = Array.from(contributor);
654
+ if (tag) {
655
+ localVarQueryParameter["tag"] = Array.from(tag);
656
+ }
657
+ if (keyword !== void 0) {
658
+ localVarQueryParameter["keyword"] = keyword;
659
+ }
660
+ if (visible !== void 0) {
661
+ localVarQueryParameter["visible"] = visible;
696
662
  }
697
663
  if (size !== void 0) {
698
664
  localVarQueryParameter["size"] = size;
699
665
  }
700
- if (page !== void 0) {
701
- localVarQueryParameter["page"] = page;
702
- }
703
666
  if (labelSelector) {
704
667
  localVarQueryParameter["labelSelector"] = labelSelector;
705
668
  }
706
669
  if (fieldSelector) {
707
670
  localVarQueryParameter["fieldSelector"] = fieldSelector;
708
671
  }
672
+ if (page !== void 0) {
673
+ localVarQueryParameter["page"] = page;
674
+ }
709
675
  setSearchParams(localVarUrlObj, localVarQueryParameter);
710
676
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
711
677
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -768,8 +734,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
768
734
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
769
735
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
770
736
  },
771
- async listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
772
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options);
737
+ async listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
738
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options);
773
739
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
774
740
  },
775
741
  async publishPost(name, options) {
@@ -788,8 +754,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
788
754
  draftPost(postRequest, options) {
789
755
  return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
790
756
  },
791
- listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
792
- return localVarFp.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
757
+ listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options) {
758
+ return localVarFp.listPosts(sort, contributor, sortOrder, publishPhase, category, tag, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
793
759
  },
794
760
  publishPost(name, options) {
795
761
  return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
@@ -804,7 +770,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
804
770
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
805
771
  }
806
772
  listPosts(requestParameters = {}, options) {
807
- 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));
773
+ 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));
808
774
  }
809
775
  publishPost(requestParameters, options) {
810
776
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -816,7 +782,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
816
782
 
817
783
  const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
818
784
  return {
819
- listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
785
+ listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
820
786
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
821
787
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
822
788
  let baseOptions;
@@ -834,15 +800,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
834
800
  if (size !== void 0) {
835
801
  localVarQueryParameter["size"] = size;
836
802
  }
837
- if (page !== void 0) {
838
- localVarQueryParameter["page"] = page;
839
- }
840
803
  if (labelSelector) {
841
804
  localVarQueryParameter["labelSelector"] = labelSelector;
842
805
  }
843
806
  if (fieldSelector) {
844
807
  localVarQueryParameter["fieldSelector"] = fieldSelector;
845
808
  }
809
+ if (page !== void 0) {
810
+ localVarQueryParameter["page"] = page;
811
+ }
846
812
  setSearchParams(localVarUrlObj, localVarQueryParameter);
847
813
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
848
814
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -856,8 +822,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
856
822
  const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
857
823
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
858
824
  return {
859
- async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
860
- const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
825
+ async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
826
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
861
827
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
862
828
  }
863
829
  };
@@ -865,14 +831,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
865
831
  const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
866
832
  const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
867
833
  return {
868
- listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
869
- return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
834
+ listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
835
+ return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
870
836
  }
871
837
  };
872
838
  };
873
839
  class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
874
840
  listReplies(requestParameters = {}, options) {
875
- return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
841
+ return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
876
842
  }
877
843
  }
878
844
 
@@ -901,7 +867,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
901
867
  options: localVarRequestOptions
902
868
  };
903
869
  },
904
- listSinglePages: async (sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
870
+ listSinglePages: async (sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
905
871
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
906
872
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
907
873
  let baseOptions;
@@ -916,11 +882,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
916
882
  if (sort !== void 0) {
917
883
  localVarQueryParameter["sort"] = sort;
918
884
  }
919
- if (keyword !== void 0) {
920
- localVarQueryParameter["keyword"] = keyword;
921
- }
922
- if (visible !== void 0) {
923
- localVarQueryParameter["visible"] = visible;
885
+ if (contributor) {
886
+ localVarQueryParameter["contributor"] = Array.from(contributor);
924
887
  }
925
888
  if (sortOrder !== void 0) {
926
889
  localVarQueryParameter["sortOrder"] = sortOrder;
@@ -928,21 +891,24 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
928
891
  if (publishPhase !== void 0) {
929
892
  localVarQueryParameter["publishPhase"] = publishPhase;
930
893
  }
931
- if (contributor) {
932
- localVarQueryParameter["contributor"] = Array.from(contributor);
894
+ if (keyword !== void 0) {
895
+ localVarQueryParameter["keyword"] = keyword;
896
+ }
897
+ if (visible !== void 0) {
898
+ localVarQueryParameter["visible"] = visible;
933
899
  }
934
900
  if (size !== void 0) {
935
901
  localVarQueryParameter["size"] = size;
936
902
  }
937
- if (page !== void 0) {
938
- localVarQueryParameter["page"] = page;
939
- }
940
903
  if (labelSelector) {
941
904
  localVarQueryParameter["labelSelector"] = labelSelector;
942
905
  }
943
906
  if (fieldSelector) {
944
907
  localVarQueryParameter["fieldSelector"] = fieldSelector;
945
908
  }
909
+ if (page !== void 0) {
910
+ localVarQueryParameter["page"] = page;
911
+ }
946
912
  setSearchParams(localVarUrlObj, localVarQueryParameter);
947
913
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
948
914
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1005,8 +971,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
1005
971
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
1006
972
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1007
973
  },
1008
- async listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
1009
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options);
974
+ async listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options) {
975
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options);
1010
976
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1011
977
  },
1012
978
  async publishSinglePage(name, options) {
@@ -1025,8 +991,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
1025
991
  draftSinglePage(singlePageRequest, options) {
1026
992
  return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
1027
993
  },
1028
- listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
1029
- return localVarFp.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
994
+ listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options) {
995
+ return localVarFp.listSinglePages(sort, contributor, sortOrder, publishPhase, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
1030
996
  },
1031
997
  publishSinglePage(name, options) {
1032
998
  return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
@@ -1041,7 +1007,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
1041
1007
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
1042
1008
  }
1043
1009
  listSinglePages(requestParameters = {}, options) {
1044
- 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));
1010
+ 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));
1045
1011
  }
1046
1012
  publishSinglePage(requestParameters, options) {
1047
1013
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -1127,7 +1093,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1127
1093
  options: localVarRequestOptions
1128
1094
  };
1129
1095
  },
1130
- listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
1096
+ listThemes: async (uninstalled, size, labelSelector, fieldSelector, page, options = {}) => {
1131
1097
  assertParamExists("listThemes", "uninstalled", uninstalled);
1132
1098
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
1133
1099
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1146,15 +1112,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1146
1112
  if (size !== void 0) {
1147
1113
  localVarQueryParameter["size"] = size;
1148
1114
  }
1149
- if (page !== void 0) {
1150
- localVarQueryParameter["page"] = page;
1151
- }
1152
1115
  if (labelSelector) {
1153
1116
  localVarQueryParameter["labelSelector"] = labelSelector;
1154
1117
  }
1155
1118
  if (fieldSelector) {
1156
1119
  localVarQueryParameter["fieldSelector"] = fieldSelector;
1157
1120
  }
1121
+ if (page !== void 0) {
1122
+ localVarQueryParameter["page"] = page;
1123
+ }
1158
1124
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1159
1125
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1160
1126
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1221,8 +1187,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
1221
1187
  const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
1222
1188
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1223
1189
  },
1224
- async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
1225
- const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
1190
+ async listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
1191
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options);
1226
1192
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1227
1193
  },
1228
1194
  async reloadThemeSetting(name, options) {
@@ -1241,8 +1207,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
1241
1207
  installTheme(file, options) {
1242
1208
  return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
1243
1209
  },
1244
- listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
1245
- return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
1210
+ listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
1211
+ return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
1246
1212
  },
1247
1213
  reloadThemeSetting(name, options) {
1248
1214
  return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
@@ -1257,7 +1223,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
1257
1223
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
1258
1224
  }
1259
1225
  listThemes(requestParameters, options) {
1260
- return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
1226
+ return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1261
1227
  }
1262
1228
  reloadThemeSetting(requestParameters, options) {
1263
1229
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -1531,12 +1497,12 @@ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
1531
1497
  if (version !== void 0) {
1532
1498
  localVarQueryParameter["version"] = version;
1533
1499
  }
1534
- if (group !== void 0) {
1535
- localVarQueryParameter["group"] = group;
1536
- }
1537
1500
  if (kind !== void 0) {
1538
1501
  localVarQueryParameter["kind"] = kind;
1539
1502
  }
1503
+ if (group !== void 0) {
1504
+ localVarQueryParameter["group"] = group;
1505
+ }
1540
1506
  if (size !== void 0) {
1541
1507
  localVarQueryParameter["size"] = size;
1542
1508
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halo-dev/api-client",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "@halo-dev",