@halo-dev/api-client 0.0.19 → 0.0.20

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
@@ -75,6 +75,95 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
75
75
  };
76
76
  };
77
77
 
78
+ const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
79
+ return {
80
+ listComments: async (sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
81
+ const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
82
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
83
+ let baseOptions;
84
+ if (configuration) {
85
+ baseOptions = configuration.baseOptions;
86
+ }
87
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
88
+ const localVarHeaderParameter = {};
89
+ const localVarQueryParameter = {};
90
+ setBasicAuthToObject(localVarRequestOptions, configuration);
91
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
92
+ if (sort !== void 0) {
93
+ localVarQueryParameter["sort"] = sort;
94
+ }
95
+ if (hidden !== void 0) {
96
+ localVarQueryParameter["hidden"] = hidden;
97
+ }
98
+ if (top !== void 0) {
99
+ localVarQueryParameter["top"] = top;
100
+ }
101
+ if (sortOrder !== void 0) {
102
+ localVarQueryParameter["sortOrder"] = sortOrder;
103
+ }
104
+ if (approved !== void 0) {
105
+ localVarQueryParameter["approved"] = approved;
106
+ }
107
+ if (allowNotification !== void 0) {
108
+ localVarQueryParameter["allowNotification"] = allowNotification;
109
+ }
110
+ if (ownerKind !== void 0) {
111
+ localVarQueryParameter["ownerKind"] = ownerKind;
112
+ }
113
+ if (ownerName !== void 0) {
114
+ localVarQueryParameter["ownerName"] = ownerName;
115
+ }
116
+ if (subjectKind !== void 0) {
117
+ localVarQueryParameter["subjectKind"] = subjectKind;
118
+ }
119
+ if (subjectName !== void 0) {
120
+ localVarQueryParameter["subjectName"] = subjectName;
121
+ }
122
+ if (size !== void 0) {
123
+ localVarQueryParameter["size"] = size;
124
+ }
125
+ if (page !== void 0) {
126
+ localVarQueryParameter["page"] = page;
127
+ }
128
+ if (labelSelector) {
129
+ localVarQueryParameter["labelSelector"] = labelSelector;
130
+ }
131
+ if (fieldSelector) {
132
+ localVarQueryParameter["fieldSelector"] = fieldSelector;
133
+ }
134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
137
+ return {
138
+ url: toPathString(localVarUrlObj),
139
+ options: localVarRequestOptions
140
+ };
141
+ }
142
+ };
143
+ };
144
+ const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
145
+ const localVarAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator(configuration);
146
+ return {
147
+ async listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
149
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
150
+ }
151
+ };
152
+ };
153
+ const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, axios) {
154
+ const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration);
155
+ return {
156
+ listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
157
+ return localVarFp.listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
158
+ }
159
+ };
160
+ };
161
+ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
162
+ listComments(requestParameters = {}, options) {
163
+ return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, 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));
164
+ }
165
+ }
166
+
78
167
  const ApiHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
79
168
  return {
80
169
  draftSnapshotContent: async (contentRequest, options = {}) => {
@@ -303,7 +392,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
303
392
  options: localVarRequestOptions
304
393
  };
305
394
  },
306
- listPosts: async (contributors, categories, tags, size, labelSelector, fieldSelector, page, options = {}) => {
395
+ listPosts: async (tags, categories, contributors, size, page, labelSelector, fieldSelector, options = {}) => {
307
396
  const localVarPath = `/apis/api.halo.run/v1alpha1/posts`;
308
397
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
309
398
  let baseOptions;
@@ -315,27 +404,27 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
315
404
  const localVarQueryParameter = {};
316
405
  setBasicAuthToObject(localVarRequestOptions, configuration);
317
406
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
318
- if (contributors) {
319
- localVarQueryParameter["contributors"] = Array.from(contributors);
407
+ if (tags) {
408
+ localVarQueryParameter["tags"] = Array.from(tags);
320
409
  }
321
410
  if (categories) {
322
411
  localVarQueryParameter["categories"] = Array.from(categories);
323
412
  }
324
- if (tags) {
325
- localVarQueryParameter["tags"] = Array.from(tags);
413
+ if (contributors) {
414
+ localVarQueryParameter["contributors"] = Array.from(contributors);
326
415
  }
327
416
  if (size !== void 0) {
328
417
  localVarQueryParameter["size"] = size;
329
418
  }
419
+ if (page !== void 0) {
420
+ localVarQueryParameter["page"] = page;
421
+ }
330
422
  if (labelSelector) {
331
423
  localVarQueryParameter["labelSelector"] = labelSelector;
332
424
  }
333
425
  if (fieldSelector) {
334
426
  localVarQueryParameter["fieldSelector"] = fieldSelector;
335
427
  }
336
- if (page !== void 0) {
337
- localVarQueryParameter["page"] = page;
338
- }
339
428
  setSearchParams(localVarUrlObj, localVarQueryParameter);
340
429
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
341
430
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -398,8 +487,8 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
398
487
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
399
488
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
400
489
  },
401
- async listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options) {
402
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options);
490
+ async listPosts(tags, categories, contributors, size, page, labelSelector, fieldSelector, options) {
491
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(tags, categories, contributors, size, page, labelSelector, fieldSelector, options);
403
492
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
404
493
  },
405
494
  async publishPost(name, options) {
@@ -418,8 +507,8 @@ const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios
418
507
  draftPost(postRequest, options) {
419
508
  return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
420
509
  },
421
- listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options) {
422
- return localVarFp.listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
510
+ listPosts(tags, categories, contributors, size, page, labelSelector, fieldSelector, options) {
511
+ return localVarFp.listPosts(tags, categories, contributors, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
423
512
  },
424
513
  publishPost(name, options) {
425
514
  return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
@@ -434,7 +523,7 @@ class ApiHaloRunV1alpha1PostApi extends BaseAPI {
434
523
  return ApiHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
435
524
  }
436
525
  listPosts(requestParameters = {}, options) {
437
- return ApiHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.contributors, requestParameters.categories, requestParameters.tags, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
526
+ return ApiHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.tags, requestParameters.categories, requestParameters.contributors, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
438
527
  }
439
528
  publishPost(requestParameters, options) {
440
529
  return ApiHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -469,7 +558,7 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
469
558
  options: localVarRequestOptions
470
559
  };
471
560
  },
472
- listSinglePages: async (contributors, size, labelSelector, fieldSelector, page, options = {}) => {
561
+ listSinglePages: async (contributors, size, page, labelSelector, fieldSelector, options = {}) => {
473
562
  const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
474
563
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
475
564
  let baseOptions;
@@ -487,15 +576,15 @@ const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration)
487
576
  if (size !== void 0) {
488
577
  localVarQueryParameter["size"] = size;
489
578
  }
579
+ if (page !== void 0) {
580
+ localVarQueryParameter["page"] = page;
581
+ }
490
582
  if (labelSelector) {
491
583
  localVarQueryParameter["labelSelector"] = labelSelector;
492
584
  }
493
585
  if (fieldSelector) {
494
586
  localVarQueryParameter["fieldSelector"] = fieldSelector;
495
587
  }
496
- if (page !== void 0) {
497
- localVarQueryParameter["page"] = page;
498
- }
499
588
  setSearchParams(localVarUrlObj, localVarQueryParameter);
500
589
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
501
590
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -558,8 +647,8 @@ const ApiHaloRunV1alpha1SinglePageApiFp = function(configuration) {
558
647
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
559
648
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
560
649
  },
561
- async listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
562
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options);
650
+ async listSinglePages(contributors, size, page, labelSelector, fieldSelector, options) {
651
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, page, labelSelector, fieldSelector, options);
563
652
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
564
653
  },
565
654
  async publishSinglePage(name, options) {
@@ -578,8 +667,8 @@ const ApiHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath,
578
667
  draftSinglePage(singlePageRequest, options) {
579
668
  return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
580
669
  },
581
- listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
582
- return localVarFp.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
670
+ listSinglePages(contributors, size, page, labelSelector, fieldSelector, options) {
671
+ return localVarFp.listSinglePages(contributors, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
583
672
  },
584
673
  publishSinglePage(name, options) {
585
674
  return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
@@ -594,7 +683,7 @@ class ApiHaloRunV1alpha1SinglePageApi extends BaseAPI {
594
683
  return ApiHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
595
684
  }
596
685
  listSinglePages(requestParameters = {}, options) {
597
- return ApiHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
686
+ return ApiHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
598
687
  }
599
688
  publishSinglePage(requestParameters, options) {
600
689
  return ApiHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
@@ -2576,7 +2665,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
2576
2665
  options: localVarRequestOptions
2577
2666
  };
2578
2667
  },
2579
- searchAttachments: async (policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
2668
+ searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
2580
2669
  const localVarPath = `/apis/api.halo.run/v1alpha1/attachments`;
2581
2670
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2582
2671
  let baseOptions;
@@ -2594,24 +2683,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
2594
2683
  if (displayName !== void 0) {
2595
2684
  localVarQueryParameter["displayName"] = displayName;
2596
2685
  }
2597
- if (uploadedBy !== void 0) {
2598
- localVarQueryParameter["uploadedBy"] = uploadedBy;
2599
- }
2600
2686
  if (group !== void 0) {
2601
2687
  localVarQueryParameter["group"] = group;
2602
2688
  }
2689
+ if (uploadedBy !== void 0) {
2690
+ localVarQueryParameter["uploadedBy"] = uploadedBy;
2691
+ }
2603
2692
  if (size !== void 0) {
2604
2693
  localVarQueryParameter["size"] = size;
2605
2694
  }
2695
+ if (page !== void 0) {
2696
+ localVarQueryParameter["page"] = page;
2697
+ }
2606
2698
  if (labelSelector) {
2607
2699
  localVarQueryParameter["labelSelector"] = labelSelector;
2608
2700
  }
2609
2701
  if (fieldSelector) {
2610
2702
  localVarQueryParameter["fieldSelector"] = fieldSelector;
2611
2703
  }
2612
- if (page !== void 0) {
2613
- localVarQueryParameter["page"] = page;
2614
- }
2615
2704
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2616
2705
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2617
2706
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2698,8 +2787,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
2698
2787
  const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
2699
2788
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
2700
2789
  },
2701
- async searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
2702
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
2790
+ async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
2791
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
2703
2792
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
2704
2793
  },
2705
2794
  async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
@@ -2727,8 +2816,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
2727
2816
  liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
2728
2817
  return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
2729
2818
  },
2730
- searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
2731
- return localVarFp.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
2819
+ searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
2820
+ return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
2732
2821
  },
2733
2822
  updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
2734
2823
  return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
@@ -2752,7 +2841,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
2752
2841
  return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
2753
2842
  }
2754
2843
  searchAttachments(requestParameters = {}, options) {
2755
- return StorageHaloRunV1alpha1AttachmentApiFp(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));
2844
+ return StorageHaloRunV1alpha1AttachmentApiFp(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));
2756
2845
  }
2757
2846
  updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
2758
2847
  return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
@@ -5037,6 +5126,10 @@ const SinglePageSpecVisibleEnum = {
5037
5126
  Private: "PRIVATE"
5038
5127
  };
5039
5128
 
5129
+ exports.ApiHaloRunV1alpha1CommentApi = ApiHaloRunV1alpha1CommentApi;
5130
+ exports.ApiHaloRunV1alpha1CommentApiAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator;
5131
+ exports.ApiHaloRunV1alpha1CommentApiFactory = ApiHaloRunV1alpha1CommentApiFactory;
5132
+ exports.ApiHaloRunV1alpha1CommentApiFp = ApiHaloRunV1alpha1CommentApiFp;
5040
5133
  exports.ApiHaloRunV1alpha1ContentApi = ApiHaloRunV1alpha1ContentApi;
5041
5134
  exports.ApiHaloRunV1alpha1ContentApiAxiosParamCreator = ApiHaloRunV1alpha1ContentApiAxiosParamCreator;
5042
5135
  exports.ApiHaloRunV1alpha1ContentApiFactory = ApiHaloRunV1alpha1ContentApiFactory;