@halo-dev/api-client 0.0.44 → 0.0.46

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, uploadedBy, group, 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;
@@ -96,15 +96,15 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
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, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
156
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, uploadedBy, group, 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, uploadedBy, group, size, page, labelSelector, fieldSelector, options) {
169
- return localVarFp.searchAttachments(policy, displayName, uploadedBy, group, 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.uploadedBy, requestParameters.group, 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
 
@@ -532,7 +532,7 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
532
532
  options: localVarRequestOptions
533
533
  };
534
534
  },
535
- listPlugins: async (sort, keyword, enabled, size, page, labelSelector, fieldSelector, options = {}) => {
535
+ listPlugins: async (sort, keyword, enabled, size, labelSelector, fieldSelector, page, options = {}) => {
536
536
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/plugins`;
537
537
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
538
538
  let baseOptions;
@@ -556,15 +556,15 @@ const ApiConsoleHaloRunV1alpha1PluginApiAxiosParamCreator = function(configurati
556
556
  if (size !== void 0) {
557
557
  localVarQueryParameter["size"] = size;
558
558
  }
559
- if (page !== void 0) {
560
- localVarQueryParameter["page"] = page;
561
- }
562
559
  if (labelSelector) {
563
560
  localVarQueryParameter["labelSelector"] = labelSelector;
564
561
  }
565
562
  if (fieldSelector) {
566
563
  localVarQueryParameter["fieldSelector"] = fieldSelector;
567
564
  }
565
+ if (page !== void 0) {
566
+ localVarQueryParameter["page"] = page;
567
+ }
568
568
  setSearchParams(localVarUrlObj, localVarQueryParameter);
569
569
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
570
570
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -610,8 +610,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFp = function(configuration) {
610
610
  const localVarAxiosArgs = await localVarAxiosParamCreator.installPlugin(file, options);
611
611
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
612
612
  },
613
- async listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
614
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options);
613
+ async listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
614
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options);
615
615
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
616
616
  },
617
617
  async upgradePlugin(name, file, options) {
@@ -626,8 +626,8 @@ const ApiConsoleHaloRunV1alpha1PluginApiFactory = function(configuration, basePa
626
626
  installPlugin(file, options) {
627
627
  return localVarFp.installPlugin(file, options).then((request) => request(axios, basePath));
628
628
  },
629
- listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options) {
630
- return localVarFp.listPlugins(sort, keyword, enabled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
629
+ listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options) {
630
+ return localVarFp.listPlugins(sort, keyword, enabled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
631
631
  },
632
632
  upgradePlugin(name, file, options) {
633
633
  return localVarFp.upgradePlugin(name, file, options).then((request) => request(axios, basePath));
@@ -639,7 +639,7 @@ class ApiConsoleHaloRunV1alpha1PluginApi extends BaseAPI {
639
639
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).installPlugin(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
640
640
  }
641
641
  listPlugins(requestParameters = {}, options) {
642
- 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));
642
+ return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).listPlugins(requestParameters.sort, requestParameters.keyword, requestParameters.enabled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
643
643
  }
644
644
  upgradePlugin(requestParameters, options) {
645
645
  return ApiConsoleHaloRunV1alpha1PluginApiFp(this.configuration).upgradePlugin(requestParameters.name, requestParameters.file, options).then((request) => request(this.axios, this.basePath));
@@ -671,7 +671,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
671
671
  options: localVarRequestOptions
672
672
  };
673
673
  },
674
- listPosts: async (sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
674
+ listPosts: async (sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
675
675
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
676
676
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
677
677
  let baseOptions;
@@ -686,15 +686,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
686
686
  if (sort !== void 0) {
687
687
  localVarQueryParameter["sort"] = sort;
688
688
  }
689
- if (keyword !== void 0) {
690
- localVarQueryParameter["keyword"] = keyword;
691
- }
692
- if (visible !== void 0) {
693
- localVarQueryParameter["visible"] = visible;
694
- }
695
- if (tag) {
696
- localVarQueryParameter["tag"] = Array.from(tag);
697
- }
698
689
  if (sortOrder !== void 0) {
699
690
  localVarQueryParameter["sortOrder"] = sortOrder;
700
691
  }
@@ -707,18 +698,27 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
707
698
  if (contributor) {
708
699
  localVarQueryParameter["contributor"] = Array.from(contributor);
709
700
  }
701
+ if (keyword !== void 0) {
702
+ localVarQueryParameter["keyword"] = keyword;
703
+ }
704
+ if (visible !== void 0) {
705
+ localVarQueryParameter["visible"] = visible;
706
+ }
707
+ if (tag) {
708
+ localVarQueryParameter["tag"] = Array.from(tag);
709
+ }
710
710
  if (size !== void 0) {
711
711
  localVarQueryParameter["size"] = size;
712
712
  }
713
- if (page !== void 0) {
714
- localVarQueryParameter["page"] = page;
715
- }
716
713
  if (labelSelector) {
717
714
  localVarQueryParameter["labelSelector"] = labelSelector;
718
715
  }
719
716
  if (fieldSelector) {
720
717
  localVarQueryParameter["fieldSelector"] = fieldSelector;
721
718
  }
719
+ if (page !== void 0) {
720
+ localVarQueryParameter["page"] = page;
721
+ }
722
722
  setSearchParams(localVarUrlObj, localVarQueryParameter);
723
723
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
724
724
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -727,7 +727,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
727
727
  options: localVarRequestOptions
728
728
  };
729
729
  },
730
- publishPost: async (name, options = {}) => {
730
+ publishPost: async (name, headSnapshot, options = {}) => {
731
731
  assertParamExists("publishPost", "name", name);
732
732
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
733
733
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -740,6 +740,9 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
740
740
  const localVarQueryParameter = {};
741
741
  setBasicAuthToObject(localVarRequestOptions, configuration);
742
742
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
743
+ if (headSnapshot !== void 0) {
744
+ localVarQueryParameter["headSnapshot"] = headSnapshot;
745
+ }
743
746
  setSearchParams(localVarUrlObj, localVarQueryParameter);
744
747
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
745
748
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -823,12 +826,12 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
823
826
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
824
827
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
825
828
  },
826
- async listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
827
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options);
829
+ async listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
830
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
828
831
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
829
832
  },
830
- async publishPost(name, options) {
831
- const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, options);
833
+ async publishPost(name, headSnapshot, options) {
834
+ const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, headSnapshot, options);
832
835
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
833
836
  },
834
837
  async recyclePost(name, options) {
@@ -851,11 +854,11 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
851
854
  draftPost(postRequest, options) {
852
855
  return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
853
856
  },
854
- listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options) {
855
- return localVarFp.listPosts(sort, keyword, visible, tag, sortOrder, publishPhase, category, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
857
+ listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
858
+ return localVarFp.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
856
859
  },
857
- publishPost(name, options) {
858
- return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
860
+ publishPost(name, headSnapshot, options) {
861
+ return localVarFp.publishPost(name, headSnapshot, options).then((request) => request(axios, basePath));
859
862
  },
860
863
  recyclePost(name, options) {
861
864
  return localVarFp.recyclePost(name, options).then((request) => request(axios, basePath));
@@ -873,10 +876,10 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
873
876
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
874
877
  }
875
878
  listPosts(requestParameters = {}, options) {
876
- 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));
879
+ return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
877
880
  }
878
881
  publishPost(requestParameters, options) {
879
- return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
882
+ return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, requestParameters.headSnapshot, options).then((request) => request(this.axios, this.basePath));
880
883
  }
881
884
  recyclePost(requestParameters, options) {
882
885
  return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).recyclePost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -891,7 +894,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
891
894
 
892
895
  const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
893
896
  return {
894
- listReplies: async (commentName, size, page, labelSelector, fieldSelector, options = {}) => {
897
+ listReplies: async (commentName, size, labelSelector, fieldSelector, page, options = {}) => {
895
898
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
896
899
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
897
900
  let baseOptions;
@@ -909,15 +912,15 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
909
912
  if (size !== void 0) {
910
913
  localVarQueryParameter["size"] = size;
911
914
  }
912
- if (page !== void 0) {
913
- localVarQueryParameter["page"] = page;
914
- }
915
915
  if (labelSelector) {
916
916
  localVarQueryParameter["labelSelector"] = labelSelector;
917
917
  }
918
918
  if (fieldSelector) {
919
919
  localVarQueryParameter["fieldSelector"] = fieldSelector;
920
920
  }
921
+ if (page !== void 0) {
922
+ localVarQueryParameter["page"] = page;
923
+ }
921
924
  setSearchParams(localVarUrlObj, localVarQueryParameter);
922
925
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
923
926
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -931,8 +934,8 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
931
934
  const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
932
935
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
933
936
  return {
934
- async listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
935
- const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, page, labelSelector, fieldSelector, options);
937
+ async listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
938
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(commentName, size, labelSelector, fieldSelector, page, options);
936
939
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
937
940
  }
938
941
  };
@@ -940,14 +943,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
940
943
  const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePath, axios) {
941
944
  const localVarFp = ApiConsoleHaloRunV1alpha1ReplyApiFp(configuration);
942
945
  return {
943
- listReplies(commentName, size, page, labelSelector, fieldSelector, options) {
944
- return localVarFp.listReplies(commentName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
946
+ listReplies(commentName, size, labelSelector, fieldSelector, page, options) {
947
+ return localVarFp.listReplies(commentName, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
945
948
  }
946
949
  };
947
950
  };
948
951
  class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
949
952
  listReplies(requestParameters = {}, options) {
950
- return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
953
+ return ApiConsoleHaloRunV1alpha1ReplyApiFp(this.configuration).listReplies(requestParameters.commentName, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
951
954
  }
952
955
  }
953
956
 
@@ -976,7 +979,7 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
976
979
  options: localVarRequestOptions
977
980
  };
978
981
  },
979
- listSinglePages: async (sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options = {}) => {
982
+ listSinglePages: async (sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options = {}) => {
980
983
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/singlepages`;
981
984
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
982
985
  let baseOptions;
@@ -991,12 +994,6 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
991
994
  if (sort !== void 0) {
992
995
  localVarQueryParameter["sort"] = sort;
993
996
  }
994
- if (keyword !== void 0) {
995
- localVarQueryParameter["keyword"] = keyword;
996
- }
997
- if (visible !== void 0) {
998
- localVarQueryParameter["visible"] = visible;
999
- }
1000
997
  if (sortOrder !== void 0) {
1001
998
  localVarQueryParameter["sortOrder"] = sortOrder;
1002
999
  }
@@ -1006,18 +1003,24 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configu
1006
1003
  if (contributor) {
1007
1004
  localVarQueryParameter["contributor"] = Array.from(contributor);
1008
1005
  }
1006
+ if (keyword !== void 0) {
1007
+ localVarQueryParameter["keyword"] = keyword;
1008
+ }
1009
+ if (visible !== void 0) {
1010
+ localVarQueryParameter["visible"] = visible;
1011
+ }
1009
1012
  if (size !== void 0) {
1010
1013
  localVarQueryParameter["size"] = size;
1011
1014
  }
1012
- if (page !== void 0) {
1013
- localVarQueryParameter["page"] = page;
1014
- }
1015
1015
  if (labelSelector) {
1016
1016
  localVarQueryParameter["labelSelector"] = labelSelector;
1017
1017
  }
1018
1018
  if (fieldSelector) {
1019
1019
  localVarQueryParameter["fieldSelector"] = fieldSelector;
1020
1020
  }
1021
+ if (page !== void 0) {
1022
+ localVarQueryParameter["page"] = page;
1023
+ }
1021
1024
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1022
1025
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1023
1026
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1080,8 +1083,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFp = function(configuration) {
1080
1083
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
1081
1084
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1082
1085
  },
1083
- async listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
1084
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options);
1086
+ async listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
1087
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options);
1085
1088
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1086
1089
  },
1087
1090
  async publishSinglePage(name, options) {
@@ -1100,8 +1103,8 @@ const ApiConsoleHaloRunV1alpha1SinglePageApiFactory = function(configuration, ba
1100
1103
  draftSinglePage(singlePageRequest, options) {
1101
1104
  return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
1102
1105
  },
1103
- listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options) {
1104
- return localVarFp.listSinglePages(sort, keyword, visible, sortOrder, publishPhase, contributor, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
1106
+ listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options) {
1107
+ return localVarFp.listSinglePages(sort, sortOrder, publishPhase, contributor, keyword, visible, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
1105
1108
  },
1106
1109
  publishSinglePage(name, options) {
1107
1110
  return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
@@ -1116,7 +1119,7 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
1116
1119
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
1117
1120
  }
1118
1121
  listSinglePages(requestParameters = {}, options) {
1119
- 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));
1122
+ return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1120
1123
  }
1121
1124
  publishSinglePage(requestParameters, options) {
1122
1125
  return ApiConsoleHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -1202,7 +1205,7 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1202
1205
  options: localVarRequestOptions
1203
1206
  };
1204
1207
  },
1205
- listThemes: async (uninstalled, size, page, labelSelector, fieldSelector, options = {}) => {
1208
+ listThemes: async (uninstalled, size, labelSelector, fieldSelector, page, options = {}) => {
1206
1209
  assertParamExists("listThemes", "uninstalled", uninstalled);
1207
1210
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/themes`;
1208
1211
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1221,15 +1224,15 @@ const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuratio
1221
1224
  if (size !== void 0) {
1222
1225
  localVarQueryParameter["size"] = size;
1223
1226
  }
1224
- if (page !== void 0) {
1225
- localVarQueryParameter["page"] = page;
1226
- }
1227
1227
  if (labelSelector) {
1228
1228
  localVarQueryParameter["labelSelector"] = labelSelector;
1229
1229
  }
1230
1230
  if (fieldSelector) {
1231
1231
  localVarQueryParameter["fieldSelector"] = fieldSelector;
1232
1232
  }
1233
+ if (page !== void 0) {
1234
+ localVarQueryParameter["page"] = page;
1235
+ }
1233
1236
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1234
1237
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1235
1238
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1296,8 +1299,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFp = function(configuration) {
1296
1299
  const localVarAxiosArgs = await localVarAxiosParamCreator.installTheme(file, options);
1297
1300
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1298
1301
  },
1299
- async listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
1300
- const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options);
1302
+ async listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
1303
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options);
1301
1304
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1302
1305
  },
1303
1306
  async reloadThemeSetting(name, options) {
@@ -1316,8 +1319,8 @@ const ApiConsoleHaloRunV1alpha1ThemeApiFactory = function(configuration, basePat
1316
1319
  installTheme(file, options) {
1317
1320
  return localVarFp.installTheme(file, options).then((request) => request(axios, basePath));
1318
1321
  },
1319
- listThemes(uninstalled, size, page, labelSelector, fieldSelector, options) {
1320
- return localVarFp.listThemes(uninstalled, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
1322
+ listThemes(uninstalled, size, labelSelector, fieldSelector, page, options) {
1323
+ return localVarFp.listThemes(uninstalled, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
1321
1324
  },
1322
1325
  reloadThemeSetting(name, options) {
1323
1326
  return localVarFp.reloadThemeSetting(name, options).then((request) => request(axios, basePath));
@@ -1332,7 +1335,7 @@ class ApiConsoleHaloRunV1alpha1ThemeApi extends BaseAPI {
1332
1335
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).installTheme(requestParameters.file, options).then((request) => request(this.axios, this.basePath));
1333
1336
  }
1334
1337
  listThemes(requestParameters, options) {
1335
- return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
1338
+ return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).listThemes(requestParameters.uninstalled, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
1336
1339
  }
1337
1340
  reloadThemeSetting(requestParameters, options) {
1338
1341
  return ApiConsoleHaloRunV1alpha1ThemeApiFp(this.configuration).reloadThemeSetting(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -1693,7 +1696,7 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
1693
1696
 
1694
1697
  const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
1695
1698
  return {
1696
- searchPost: async (keyword, limit, highlightPreTag, highlightPostTag, options = {}) => {
1699
+ searchPost: async (keyword, highlightPreTag, highlightPostTag, limit, options = {}) => {
1697
1700
  assertParamExists("searchPost", "keyword", keyword);
1698
1701
  const localVarPath = `/apis/api.halo.run/v1alpha1/indices/post`;
1699
1702
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1706,18 +1709,18 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
1706
1709
  const localVarQueryParameter = {};
1707
1710
  setBasicAuthToObject(localVarRequestOptions, configuration);
1708
1711
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
1709
- if (keyword !== void 0) {
1710
- localVarQueryParameter["keyword"] = keyword;
1711
- }
1712
- if (limit !== void 0) {
1713
- localVarQueryParameter["limit"] = limit;
1714
- }
1715
1712
  if (highlightPreTag !== void 0) {
1716
1713
  localVarQueryParameter["highlightPreTag"] = highlightPreTag;
1717
1714
  }
1718
1715
  if (highlightPostTag !== void 0) {
1719
1716
  localVarQueryParameter["highlightPostTag"] = highlightPostTag;
1720
1717
  }
1718
+ if (keyword !== void 0) {
1719
+ localVarQueryParameter["keyword"] = keyword;
1720
+ }
1721
+ if (limit !== void 0) {
1722
+ localVarQueryParameter["limit"] = limit;
1723
+ }
1721
1724
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1722
1725
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1723
1726
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1731,8 +1734,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
1731
1734
  const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
1732
1735
  const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
1733
1736
  return {
1734
- async searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
1735
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options);
1737
+ async searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
1738
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options);
1736
1739
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1737
1740
  }
1738
1741
  };
@@ -1740,14 +1743,14 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
1740
1743
  const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
1741
1744
  const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
1742
1745
  return {
1743
- searchPost(keyword, limit, highlightPreTag, highlightPostTag, options) {
1744
- return localVarFp.searchPost(keyword, limit, highlightPreTag, highlightPostTag, options).then((request) => request(axios, basePath));
1746
+ searchPost(keyword, highlightPreTag, highlightPostTag, limit, options) {
1747
+ return localVarFp.searchPost(keyword, highlightPreTag, highlightPostTag, limit, options).then((request) => request(axios, basePath));
1745
1748
  }
1746
1749
  };
1747
1750
  };
1748
1751
  class ApiHaloRunV1alpha1PostApi extends BaseAPI {
1749
1752
  searchPost(requestParameters, options) {
1750
- return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.limit, requestParameters.highlightPreTag, requestParameters.highlightPostTag, options).then((request) => request(this.axios, this.basePath));
1753
+ return ApiHaloRunV1alpha1PostApiFp(this.configuration).searchPost(requestParameters.keyword, requestParameters.highlightPreTag, requestParameters.highlightPostTag, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
1751
1754
  }
1752
1755
  }
1753
1756
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halo-dev/api-client",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "@halo-dev",