@halo-dev/api-client 2.12.0 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -92,7 +92,7 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
92
92
 
93
93
  const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configuration) {
94
94
  return {
95
- searchAttachments: async (displayName, fieldSelector, group, labelSelector, page, policy, size, sort, ungrouped, uploadedBy, options = {}) => {
95
+ searchAttachments: async (fieldSelector, keyword, labelSelector, page, size, sort, ungrouped, options = {}) => {
96
96
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/attachments`;
97
97
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
98
98
  let baseOptions;
@@ -108,14 +108,11 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
108
108
  const localVarQueryParameter = {};
109
109
  setBasicAuthToObject(localVarRequestOptions, configuration);
110
110
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
111
- if (displayName !== void 0) {
112
- localVarQueryParameter["displayName"] = displayName;
113
- }
114
111
  if (fieldSelector) {
115
112
  localVarQueryParameter["fieldSelector"] = fieldSelector;
116
113
  }
117
- if (group !== void 0) {
118
- localVarQueryParameter["group"] = group;
114
+ if (keyword !== void 0) {
115
+ localVarQueryParameter["keyword"] = keyword;
119
116
  }
120
117
  if (labelSelector) {
121
118
  localVarQueryParameter["labelSelector"] = labelSelector;
@@ -123,9 +120,6 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
123
120
  if (page !== void 0) {
124
121
  localVarQueryParameter["page"] = page;
125
122
  }
126
- if (policy !== void 0) {
127
- localVarQueryParameter["policy"] = policy;
128
- }
129
123
  if (size !== void 0) {
130
124
  localVarQueryParameter["size"] = size;
131
125
  }
@@ -135,9 +129,6 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
135
129
  if (ungrouped !== void 0) {
136
130
  localVarQueryParameter["ungrouped"] = ungrouped;
137
131
  }
138
- if (uploadedBy !== void 0) {
139
- localVarQueryParameter["uploadedBy"] = uploadedBy;
140
- }
141
132
  setSearchParams(localVarUrlObj, localVarQueryParameter);
142
133
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
134
  localVarRequestOptions.headers = {
@@ -197,18 +188,15 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configu
197
188
  const ApiConsoleHaloRunV1alpha1AttachmentApiFp = function(configuration) {
198
189
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1AttachmentApiAxiosParamCreator(configuration);
199
190
  return {
200
- async searchAttachments(displayName, fieldSelector, group, labelSelector, page, policy, size, sort, ungrouped, uploadedBy, options) {
191
+ async searchAttachments(fieldSelector, keyword, labelSelector, page, size, sort, ungrouped, options) {
201
192
  const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(
202
- displayName,
203
193
  fieldSelector,
204
- group,
194
+ keyword,
205
195
  labelSelector,
206
196
  page,
207
- policy,
208
197
  size,
209
198
  sort,
210
199
  ungrouped,
211
- uploadedBy,
212
200
  options
213
201
  );
214
202
  return createRequestFunction(
@@ -239,16 +227,13 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
239
227
  return {
240
228
  searchAttachments(requestParameters = {}, options) {
241
229
  return localVarFp.searchAttachments(
242
- requestParameters.displayName,
243
230
  requestParameters.fieldSelector,
244
- requestParameters.group,
231
+ requestParameters.keyword,
245
232
  requestParameters.labelSelector,
246
233
  requestParameters.page,
247
- requestParameters.policy,
248
234
  requestParameters.size,
249
235
  requestParameters.sort,
250
236
  requestParameters.ungrouped,
251
- requestParameters.uploadedBy,
252
237
  options
253
238
  ).then((request) => request(axios, basePath));
254
239
  },
@@ -265,16 +250,13 @@ const ApiConsoleHaloRunV1alpha1AttachmentApiFactory = function(configuration, ba
265
250
  class ApiConsoleHaloRunV1alpha1AttachmentApi extends BaseAPI {
266
251
  searchAttachments(requestParameters = {}, options) {
267
252
  return ApiConsoleHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(
268
- requestParameters.displayName,
269
253
  requestParameters.fieldSelector,
270
- requestParameters.group,
254
+ requestParameters.keyword,
271
255
  requestParameters.labelSelector,
272
256
  requestParameters.page,
273
- requestParameters.policy,
274
257
  requestParameters.size,
275
258
  requestParameters.sort,
276
259
  requestParameters.ungrouped,
277
- requestParameters.uploadedBy,
278
260
  options
279
261
  ).then((request) => request(this.axios, this.basePath));
280
262
  }
@@ -518,7 +500,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
518
500
  options: localVarRequestOptions
519
501
  };
520
502
  },
521
- listComments: async (allowNotification, approved, fieldSelector, hidden, keyword, labelSelector, ownerKind, ownerName, page, size, sort, subjectKind, subjectName, top, options = {}) => {
503
+ listComments: async (fieldSelector, keyword, labelSelector, ownerKind, ownerName, page, size, sort, options = {}) => {
522
504
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/comments`;
523
505
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
524
506
  let baseOptions;
@@ -534,18 +516,9 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
534
516
  const localVarQueryParameter = {};
535
517
  setBasicAuthToObject(localVarRequestOptions, configuration);
536
518
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
537
- if (allowNotification !== void 0) {
538
- localVarQueryParameter["allowNotification"] = allowNotification;
539
- }
540
- if (approved !== void 0) {
541
- localVarQueryParameter["approved"] = approved;
542
- }
543
519
  if (fieldSelector) {
544
520
  localVarQueryParameter["fieldSelector"] = fieldSelector;
545
521
  }
546
- if (hidden !== void 0) {
547
- localVarQueryParameter["hidden"] = hidden;
548
- }
549
522
  if (keyword !== void 0) {
550
523
  localVarQueryParameter["keyword"] = keyword;
551
524
  }
@@ -567,15 +540,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiAxiosParamCreator = function(configurat
567
540
  if (sort) {
568
541
  localVarQueryParameter["sort"] = Array.from(sort);
569
542
  }
570
- if (subjectKind !== void 0) {
571
- localVarQueryParameter["subjectKind"] = subjectKind;
572
- }
573
- if (subjectName !== void 0) {
574
- localVarQueryParameter["subjectName"] = subjectName;
575
- }
576
- if (top !== void 0) {
577
- localVarQueryParameter["top"] = top;
578
- }
579
543
  setSearchParams(localVarUrlObj, localVarQueryParameter);
580
544
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
581
545
  localVarRequestOptions.headers = {
@@ -618,12 +582,9 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
618
582
  configuration
619
583
  );
620
584
  },
621
- async listComments(allowNotification, approved, fieldSelector, hidden, keyword, labelSelector, ownerKind, ownerName, page, size, sort, subjectKind, subjectName, top, options) {
585
+ async listComments(fieldSelector, keyword, labelSelector, ownerKind, ownerName, page, size, sort, options) {
622
586
  const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(
623
- allowNotification,
624
- approved,
625
587
  fieldSelector,
626
- hidden,
627
588
  keyword,
628
589
  labelSelector,
629
590
  ownerKind,
@@ -631,9 +592,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiFp = function(configuration) {
631
592
  page,
632
593
  size,
633
594
  sort,
634
- subjectKind,
635
- subjectName,
636
- top,
637
595
  options
638
596
  );
639
597
  return createRequestFunction(
@@ -660,10 +618,7 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
660
618
  },
661
619
  listComments(requestParameters = {}, options) {
662
620
  return localVarFp.listComments(
663
- requestParameters.allowNotification,
664
- requestParameters.approved,
665
621
  requestParameters.fieldSelector,
666
- requestParameters.hidden,
667
622
  requestParameters.keyword,
668
623
  requestParameters.labelSelector,
669
624
  requestParameters.ownerKind,
@@ -671,9 +626,6 @@ const ApiConsoleHaloRunV1alpha1CommentApiFactory = function(configuration, baseP
671
626
  requestParameters.page,
672
627
  requestParameters.size,
673
628
  requestParameters.sort,
674
- requestParameters.subjectKind,
675
- requestParameters.subjectName,
676
- requestParameters.top,
677
629
  options
678
630
  ).then((request) => request(axios, basePath));
679
631
  }
@@ -692,10 +644,7 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
692
644
  }
693
645
  listComments(requestParameters = {}, options) {
694
646
  return ApiConsoleHaloRunV1alpha1CommentApiFp(this.configuration).listComments(
695
- requestParameters.allowNotification,
696
- requestParameters.approved,
697
647
  requestParameters.fieldSelector,
698
- requestParameters.hidden,
699
648
  requestParameters.keyword,
700
649
  requestParameters.labelSelector,
701
650
  requestParameters.ownerKind,
@@ -703,9 +652,6 @@ class ApiConsoleHaloRunV1alpha1CommentApi extends BaseAPI {
703
652
  requestParameters.page,
704
653
  requestParameters.size,
705
654
  requestParameters.sort,
706
- requestParameters.subjectKind,
707
- requestParameters.subjectName,
708
- requestParameters.top,
709
655
  options
710
656
  ).then((request) => request(this.axios, this.basePath));
711
657
  }
@@ -2286,7 +2232,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
2286
2232
 
2287
2233
  const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuration) {
2288
2234
  return {
2289
- listReplies: async (commentName, fieldSelector, labelSelector, page, size, options = {}) => {
2235
+ listReplies: async (commentName, fieldSelector, labelSelector, page, size, sort, options = {}) => {
2290
2236
  const localVarPath = `/apis/api.console.halo.run/v1alpha1/replies`;
2291
2237
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2292
2238
  let baseOptions;
@@ -2317,6 +2263,9 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
2317
2263
  if (size !== void 0) {
2318
2264
  localVarQueryParameter["size"] = size;
2319
2265
  }
2266
+ if (sort) {
2267
+ localVarQueryParameter["sort"] = Array.from(sort);
2268
+ }
2320
2269
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2321
2270
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2322
2271
  localVarRequestOptions.headers = {
@@ -2334,13 +2283,14 @@ const ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator = function(configuratio
2334
2283
  const ApiConsoleHaloRunV1alpha1ReplyApiFp = function(configuration) {
2335
2284
  const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1ReplyApiAxiosParamCreator(configuration);
2336
2285
  return {
2337
- async listReplies(commentName, fieldSelector, labelSelector, page, size, options) {
2286
+ async listReplies(commentName, fieldSelector, labelSelector, page, size, sort, options) {
2338
2287
  const localVarAxiosArgs = await localVarAxiosParamCreator.listReplies(
2339
2288
  commentName,
2340
2289
  fieldSelector,
2341
2290
  labelSelector,
2342
2291
  page,
2343
2292
  size,
2293
+ sort,
2344
2294
  options
2345
2295
  );
2346
2296
  return createRequestFunction(
@@ -2362,6 +2312,7 @@ const ApiConsoleHaloRunV1alpha1ReplyApiFactory = function(configuration, basePat
2362
2312
  requestParameters.labelSelector,
2363
2313
  requestParameters.page,
2364
2314
  requestParameters.size,
2315
+ requestParameters.sort,
2365
2316
  options
2366
2317
  ).then((request) => request(axios, basePath));
2367
2318
  }
@@ -2375,6 +2326,7 @@ class ApiConsoleHaloRunV1alpha1ReplyApi extends BaseAPI {
2375
2326
  requestParameters.labelSelector,
2376
2327
  requestParameters.page,
2377
2328
  requestParameters.size,
2329
+ requestParameters.sort,
2378
2330
  options
2379
2331
  ).then((request) => request(this.axios, this.basePath));
2380
2332
  }
@@ -6173,6 +6125,45 @@ const ApiHaloRunV1alpha1UserApiAxiosParamCreator = function(configuration) {
6173
6125
  options: localVarRequestOptions
6174
6126
  };
6175
6127
  },
6128
+ sendRegisterVerifyEmail: async (registerVerifyEmailRequest, options = {}) => {
6129
+ assertParamExists(
6130
+ "sendRegisterVerifyEmail",
6131
+ "registerVerifyEmailRequest",
6132
+ registerVerifyEmailRequest
6133
+ );
6134
+ const localVarPath = `/apis/api.halo.run/v1alpha1/users/-/send-register-verify-email`;
6135
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6136
+ let baseOptions;
6137
+ if (configuration) {
6138
+ baseOptions = configuration.baseOptions;
6139
+ }
6140
+ const localVarRequestOptions = {
6141
+ method: "POST",
6142
+ ...baseOptions,
6143
+ ...options
6144
+ };
6145
+ const localVarHeaderParameter = {};
6146
+ const localVarQueryParameter = {};
6147
+ setBasicAuthToObject(localVarRequestOptions, configuration);
6148
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
6149
+ localVarHeaderParameter["Content-Type"] = "application/json";
6150
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6152
+ localVarRequestOptions.headers = {
6153
+ ...localVarHeaderParameter,
6154
+ ...headersFromBaseOptions,
6155
+ ...options.headers
6156
+ };
6157
+ localVarRequestOptions.data = serializeDataIfNeeded(
6158
+ registerVerifyEmailRequest,
6159
+ localVarRequestOptions,
6160
+ configuration
6161
+ );
6162
+ return {
6163
+ url: toPathString(localVarUrlObj),
6164
+ options: localVarRequestOptions
6165
+ };
6166
+ },
6176
6167
  signUp: async (signUpRequest, options = {}) => {
6177
6168
  assertParamExists("signUp", "signUpRequest", signUpRequest);
6178
6169
  const localVarPath = `/apis/api.halo.run/v1alpha1/users/-/signup`;
@@ -6238,6 +6229,18 @@ const ApiHaloRunV1alpha1UserApiFp = function(configuration) {
6238
6229
  configuration
6239
6230
  );
6240
6231
  },
6232
+ async sendRegisterVerifyEmail(registerVerifyEmailRequest, options) {
6233
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendRegisterVerifyEmail(
6234
+ registerVerifyEmailRequest,
6235
+ options
6236
+ );
6237
+ return createRequestFunction(
6238
+ localVarAxiosArgs,
6239
+ globalAxios,
6240
+ BASE_PATH,
6241
+ configuration
6242
+ );
6243
+ },
6241
6244
  async signUp(signUpRequest, options) {
6242
6245
  const localVarAxiosArgs = await localVarAxiosParamCreator.signUp(
6243
6246
  signUpRequest,
@@ -6268,6 +6271,12 @@ const ApiHaloRunV1alpha1UserApiFactory = function(configuration, basePath, axios
6268
6271
  options
6269
6272
  ).then((request) => request(axios, basePath));
6270
6273
  },
6274
+ sendRegisterVerifyEmail(requestParameters, options) {
6275
+ return localVarFp.sendRegisterVerifyEmail(
6276
+ requestParameters.registerVerifyEmailRequest,
6277
+ options
6278
+ ).then((request) => request(axios, basePath));
6279
+ },
6271
6280
  signUp(requestParameters, options) {
6272
6281
  return localVarFp.signUp(requestParameters.signUpRequest, options).then((request) => request(axios, basePath));
6273
6282
  }
@@ -6287,6 +6296,12 @@ class ApiHaloRunV1alpha1UserApi extends BaseAPI {
6287
6296
  options
6288
6297
  ).then((request) => request(this.axios, this.basePath));
6289
6298
  }
6299
+ sendRegisterVerifyEmail(requestParameters, options) {
6300
+ return ApiHaloRunV1alpha1UserApiFp(this.configuration).sendRegisterVerifyEmail(
6301
+ requestParameters.registerVerifyEmailRequest,
6302
+ options
6303
+ ).then((request) => request(this.axios, this.basePath));
6304
+ }
6290
6305
  signUp(requestParameters, options) {
6291
6306
  return ApiHaloRunV1alpha1UserApiFp(this.configuration).signUp(requestParameters.signUpRequest, options).then((request) => request(this.axios, this.basePath));
6292
6307
  }
@@ -6360,7 +6375,7 @@ const ApiNotificationHaloRunV1alpha1NotificationApiAxiosParamCreator = function(
6360
6375
  options: localVarRequestOptions
6361
6376
  };
6362
6377
  },
6363
- listUserNotifications: async (username, fieldSelector, keyword, labelSelector, page, reason, size, sort, unRead, options = {}) => {
6378
+ listUserNotifications: async (username, fieldSelector, keyword, labelSelector, page, size, sort, options = {}) => {
6364
6379
  assertParamExists("listUserNotifications", "username", username);
6365
6380
  const localVarPath = `/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications`.replace(
6366
6381
  `{${"username"}}`,
@@ -6392,18 +6407,12 @@ const ApiNotificationHaloRunV1alpha1NotificationApiAxiosParamCreator = function(
6392
6407
  if (page !== void 0) {
6393
6408
  localVarQueryParameter["page"] = page;
6394
6409
  }
6395
- if (reason !== void 0) {
6396
- localVarQueryParameter["reason"] = reason;
6397
- }
6398
6410
  if (size !== void 0) {
6399
6411
  localVarQueryParameter["size"] = size;
6400
6412
  }
6401
6413
  if (sort) {
6402
6414
  localVarQueryParameter["sort"] = Array.from(sort);
6403
6415
  }
6404
- if (unRead !== void 0) {
6405
- localVarQueryParameter["unRead"] = unRead;
6406
- }
6407
6416
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6408
6417
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6409
6418
  localVarRequestOptions.headers = {
@@ -6563,17 +6572,15 @@ const ApiNotificationHaloRunV1alpha1NotificationApiFp = function(configuration)
6563
6572
  configuration
6564
6573
  );
6565
6574
  },
6566
- async listUserNotifications(username, fieldSelector, keyword, labelSelector, page, reason, size, sort, unRead, options) {
6575
+ async listUserNotifications(username, fieldSelector, keyword, labelSelector, page, size, sort, options) {
6567
6576
  const localVarAxiosArgs = await localVarAxiosParamCreator.listUserNotifications(
6568
6577
  username,
6569
6578
  fieldSelector,
6570
6579
  keyword,
6571
6580
  labelSelector,
6572
6581
  page,
6573
- reason,
6574
6582
  size,
6575
6583
  sort,
6576
- unRead,
6577
6584
  options
6578
6585
  );
6579
6586
  return createRequestFunction(
@@ -6644,10 +6651,8 @@ const ApiNotificationHaloRunV1alpha1NotificationApiFactory = function(configurat
6644
6651
  requestParameters.keyword,
6645
6652
  requestParameters.labelSelector,
6646
6653
  requestParameters.page,
6647
- requestParameters.reason,
6648
6654
  requestParameters.size,
6649
6655
  requestParameters.sort,
6650
- requestParameters.unRead,
6651
6656
  options
6652
6657
  ).then((request) => request(axios, basePath));
6653
6658
  },
@@ -6692,10 +6697,8 @@ class ApiNotificationHaloRunV1alpha1NotificationApi extends BaseAPI {
6692
6697
  requestParameters.keyword,
6693
6698
  requestParameters.labelSelector,
6694
6699
  requestParameters.page,
6695
- requestParameters.reason,
6696
6700
  requestParameters.size,
6697
6701
  requestParameters.sort,
6698
- requestParameters.unRead,
6699
6702
  options
6700
6703
  ).then((request) => request(this.axios, this.basePath));
6701
6704
  }
@@ -20417,7 +20420,8 @@ const PluginStatusLastProbeStateEnum = {
20417
20420
  Resolved: "RESOLVED",
20418
20421
  Started: "STARTED",
20419
20422
  Stopped: "STOPPED",
20420
- Failed: "FAILED"
20423
+ Failed: "FAILED",
20424
+ Unloaded: "UNLOADED"
20421
20425
  };
20422
20426
  const PluginStatusPhaseEnum = {
20423
20427
  Pending: "PENDING",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halo-dev/api-client",
3
- "version": "2.12.0",
3
+ "version": "2.14.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "@halo-dev",
@@ -13,12 +13,12 @@
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "https://github.com/halo-dev/halo.git",
16
- "directory": "console/packages/api-client"
16
+ "directory": "ui/packages/api-client"
17
17
  },
18
18
  "bugs": {
19
19
  "url": "https://github.com/halo-dev/halo/issues"
20
20
  },
21
- "homepage": "https://github.com/halo-dev/halo/tree/main/console/packages/api-client#readme",
21
+ "homepage": "https://github.com/halo-dev/halo/tree/main/ui/packages/api-client#readme",
22
22
  "license": "GPL-3.0",
23
23
  "exports": {
24
24
  ".": {
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "@openapitools/openapi-generator-cli": "^2.5.2",
46
46
  "@types/node": "^18.13.0",
47
- "axios": "^0.27.2",
47
+ "axios": "^1.6.7",
48
48
  "bumpp": "^8.2.1",
49
49
  "typescript": "^4.9.5",
50
50
  "unbuild": "^0.7.6",