@halo-dev/api-client 0.0.14 → 0.0.15

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
@@ -303,30 +303,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
303
303
  options: localVarRequestOptions
304
304
  };
305
305
  },
306
- draftSinglePage: async (singlePageRequest, options = {}) => {
307
- assertParamExists("draftSinglePage", "singlePageRequest", singlePageRequest);
308
- const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
309
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
310
- let baseOptions;
311
- if (configuration) {
312
- baseOptions = configuration.baseOptions;
313
- }
314
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
315
- const localVarHeaderParameter = {};
316
- const localVarQueryParameter = {};
317
- setBasicAuthToObject(localVarRequestOptions, configuration);
318
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
319
- localVarHeaderParameter["Content-Type"] = "application/json";
320
- setSearchParams(localVarUrlObj, localVarQueryParameter);
321
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
323
- localVarRequestOptions.data = serializeDataIfNeeded(singlePageRequest, localVarRequestOptions, configuration);
324
- return {
325
- url: toPathString(localVarUrlObj),
326
- options: localVarRequestOptions
327
- };
328
- },
329
- listPosts: async (contributors, categories, tags, size, labelSelector, fieldSelector, page, options = {}) => {
306
+ listPosts: async (page, size, labelSelector, fieldSelector, contributors, categories, tags, options = {}) => {
330
307
  const localVarPath = `/apis/api.halo.run/v1alpha1/posts`;
331
308
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
332
309
  let baseOptions;
@@ -338,14 +315,8 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
338
315
  const localVarQueryParameter = {};
339
316
  setBasicAuthToObject(localVarRequestOptions, configuration);
340
317
  await setBearerAuthToObject(localVarHeaderParameter, configuration);
341
- if (contributors) {
342
- localVarQueryParameter["contributors"] = Array.from(contributors);
343
- }
344
- if (categories) {
345
- localVarQueryParameter["categories"] = Array.from(categories);
346
- }
347
- if (tags) {
348
- localVarQueryParameter["tags"] = Array.from(tags);
318
+ if (page !== void 0) {
319
+ localVarQueryParameter["page"] = page;
349
320
  }
350
321
  if (size !== void 0) {
351
322
  localVarQueryParameter["size"] = size;
@@ -356,43 +327,14 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
356
327
  if (fieldSelector) {
357
328
  localVarQueryParameter["fieldSelector"] = fieldSelector;
358
329
  }
359
- if (page !== void 0) {
360
- localVarQueryParameter["page"] = page;
361
- }
362
- setSearchParams(localVarUrlObj, localVarQueryParameter);
363
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
365
- return {
366
- url: toPathString(localVarUrlObj),
367
- options: localVarRequestOptions
368
- };
369
- },
370
- listSinglePages: async (contributors, size, labelSelector, fieldSelector, page, options = {}) => {
371
- const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
372
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
373
- let baseOptions;
374
- if (configuration) {
375
- baseOptions = configuration.baseOptions;
376
- }
377
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
378
- const localVarHeaderParameter = {};
379
- const localVarQueryParameter = {};
380
- setBasicAuthToObject(localVarRequestOptions, configuration);
381
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
382
330
  if (contributors) {
383
331
  localVarQueryParameter["contributors"] = Array.from(contributors);
384
332
  }
385
- if (size !== void 0) {
386
- localVarQueryParameter["size"] = size;
387
- }
388
- if (labelSelector) {
389
- localVarQueryParameter["labelSelector"] = labelSelector;
390
- }
391
- if (fieldSelector) {
392
- localVarQueryParameter["fieldSelector"] = fieldSelector;
333
+ if (categories) {
334
+ localVarQueryParameter["categories"] = Array.from(categories);
393
335
  }
394
- if (page !== void 0) {
395
- localVarQueryParameter["page"] = page;
336
+ if (tags) {
337
+ localVarQueryParameter["tags"] = Array.from(tags);
396
338
  }
397
339
  setSearchParams(localVarUrlObj, localVarQueryParameter);
398
340
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -423,27 +365,6 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
423
365
  options: localVarRequestOptions
424
366
  };
425
367
  },
426
- publishSinglePage: async (name, options = {}) => {
427
- assertParamExists("publishSinglePage", "name", name);
428
- const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
429
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
430
- let baseOptions;
431
- if (configuration) {
432
- baseOptions = configuration.baseOptions;
433
- }
434
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
435
- const localVarHeaderParameter = {};
436
- const localVarQueryParameter = {};
437
- setBasicAuthToObject(localVarRequestOptions, configuration);
438
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
439
- setSearchParams(localVarUrlObj, localVarQueryParameter);
440
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
441
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
442
- return {
443
- url: toPathString(localVarUrlObj),
444
- options: localVarRequestOptions
445
- };
446
- },
447
368
  updateDraftPost: async (name, postRequest, options = {}) => {
448
369
  assertParamExists("updateDraftPost", "name", name);
449
370
  assertParamExists("updateDraftPost", "postRequest", postRequest);
@@ -467,30 +388,6 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
467
388
  url: toPathString(localVarUrlObj),
468
389
  options: localVarRequestOptions
469
390
  };
470
- },
471
- updateDraftSinglePage: async (name, singlePageRequest, options = {}) => {
472
- assertParamExists("updateDraftSinglePage", "name", name);
473
- assertParamExists("updateDraftSinglePage", "singlePageRequest", singlePageRequest);
474
- const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
475
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
476
- let baseOptions;
477
- if (configuration) {
478
- baseOptions = configuration.baseOptions;
479
- }
480
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
481
- const localVarHeaderParameter = {};
482
- const localVarQueryParameter = {};
483
- setBasicAuthToObject(localVarRequestOptions, configuration);
484
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
485
- localVarHeaderParameter["Content-Type"] = "application/json";
486
- setSearchParams(localVarUrlObj, localVarQueryParameter);
487
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
488
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
489
- localVarRequestOptions.data = serializeDataIfNeeded(singlePageRequest, localVarRequestOptions, configuration);
490
- return {
491
- url: toPathString(localVarUrlObj),
492
- options: localVarRequestOptions
493
- };
494
391
  }
495
392
  };
496
393
  };
@@ -501,33 +398,17 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
501
398
  const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
502
399
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
503
400
  },
504
- async draftSinglePage(singlePageRequest, options) {
505
- const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
506
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
507
- },
508
- async listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options) {
509
- const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options);
510
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
511
- },
512
- async listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
513
- const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options);
401
+ async listPosts(page, size, labelSelector, fieldSelector, contributors, categories, tags, options) {
402
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(page, size, labelSelector, fieldSelector, contributors, categories, tags, options);
514
403
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
515
404
  },
516
405
  async publishPost(name, options) {
517
406
  const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, options);
518
407
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
519
408
  },
520
- async publishSinglePage(name, options) {
521
- const localVarAxiosArgs = await localVarAxiosParamCreator.publishSinglePage(name, options);
522
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
523
- },
524
409
  async updateDraftPost(name, postRequest, options) {
525
410
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
526
411
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
527
- },
528
- async updateDraftSinglePage(name, singlePageRequest, options) {
529
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftSinglePage(name, singlePageRequest, options);
530
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
531
412
  }
532
413
  };
533
414
  };
@@ -537,26 +418,14 @@ const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios
537
418
  draftPost(postRequest, options) {
538
419
  return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
539
420
  },
540
- draftSinglePage(singlePageRequest, options) {
541
- return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
542
- },
543
- listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options) {
544
- return localVarFp.listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
545
- },
546
- listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
547
- return localVarFp.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
421
+ listPosts(page, size, labelSelector, fieldSelector, contributors, categories, tags, options) {
422
+ return localVarFp.listPosts(page, size, labelSelector, fieldSelector, contributors, categories, tags, options).then((request) => request(axios, basePath));
548
423
  },
549
424
  publishPost(name, options) {
550
425
  return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
551
426
  },
552
- publishSinglePage(name, options) {
553
- return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
554
- },
555
427
  updateDraftPost(name, postRequest, options) {
556
428
  return localVarFp.updateDraftPost(name, postRequest, options).then((request) => request(axios, basePath));
557
- },
558
- updateDraftSinglePage(name, singlePageRequest, options) {
559
- return localVarFp.updateDraftSinglePage(name, singlePageRequest, options).then((request) => request(axios, basePath));
560
429
  }
561
430
  };
562
431
  };
@@ -564,27 +433,15 @@ class ApiHaloRunV1alpha1PostApi extends BaseAPI {
564
433
  draftPost(requestParameters, options) {
565
434
  return ApiHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
566
435
  }
567
- draftSinglePage(requestParameters, options) {
568
- return ApiHaloRunV1alpha1PostApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
569
- }
570
436
  listPosts(requestParameters = {}, options) {
571
- 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));
572
- }
573
- listSinglePages(requestParameters = {}, options) {
574
- return ApiHaloRunV1alpha1PostApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
437
+ return ApiHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.contributors, requestParameters.categories, requestParameters.tags, options).then((request) => request(this.axios, this.basePath));
575
438
  }
576
439
  publishPost(requestParameters, options) {
577
440
  return ApiHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
578
441
  }
579
- publishSinglePage(requestParameters, options) {
580
- return ApiHaloRunV1alpha1PostApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
581
- }
582
442
  updateDraftPost(requestParameters, options) {
583
443
  return ApiHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
584
444
  }
585
- updateDraftSinglePage(requestParameters, options) {
586
- return ApiHaloRunV1alpha1PostApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
587
- }
588
445
  }
589
446
 
590
447
  const ApiHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
@@ -1531,192 +1388,6 @@ class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
1531
1388
  }
1532
1389
  }
1533
1390
 
1534
- const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration) {
1535
- return {
1536
- createcontentHaloRunV1alpha1SinglePage: async (singlePage, options = {}) => {
1537
- const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`;
1538
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1539
- let baseOptions;
1540
- if (configuration) {
1541
- baseOptions = configuration.baseOptions;
1542
- }
1543
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1544
- const localVarHeaderParameter = {};
1545
- const localVarQueryParameter = {};
1546
- setBasicAuthToObject(localVarRequestOptions, configuration);
1547
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
1548
- localVarHeaderParameter["Content-Type"] = "application/json";
1549
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1550
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1551
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1552
- localVarRequestOptions.data = serializeDataIfNeeded(singlePage, localVarRequestOptions, configuration);
1553
- return {
1554
- url: toPathString(localVarUrlObj),
1555
- options: localVarRequestOptions
1556
- };
1557
- },
1558
- deletecontentHaloRunV1alpha1SinglePage: async (name, options = {}) => {
1559
- assertParamExists("deletecontentHaloRunV1alpha1SinglePage", "name", name);
1560
- const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
1561
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1562
- let baseOptions;
1563
- if (configuration) {
1564
- baseOptions = configuration.baseOptions;
1565
- }
1566
- const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
1567
- const localVarHeaderParameter = {};
1568
- const localVarQueryParameter = {};
1569
- setBasicAuthToObject(localVarRequestOptions, configuration);
1570
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
1571
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1572
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1573
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1574
- return {
1575
- url: toPathString(localVarUrlObj),
1576
- options: localVarRequestOptions
1577
- };
1578
- },
1579
- getcontentHaloRunV1alpha1SinglePage: async (name, options = {}) => {
1580
- assertParamExists("getcontentHaloRunV1alpha1SinglePage", "name", name);
1581
- const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
1582
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1583
- let baseOptions;
1584
- if (configuration) {
1585
- baseOptions = configuration.baseOptions;
1586
- }
1587
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1588
- const localVarHeaderParameter = {};
1589
- const localVarQueryParameter = {};
1590
- setBasicAuthToObject(localVarRequestOptions, configuration);
1591
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
1592
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1593
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1594
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1595
- return {
1596
- url: toPathString(localVarUrlObj),
1597
- options: localVarRequestOptions
1598
- };
1599
- },
1600
- listcontentHaloRunV1alpha1SinglePage: async (page, size, labelSelector, fieldSelector, options = {}) => {
1601
- const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`;
1602
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1603
- let baseOptions;
1604
- if (configuration) {
1605
- baseOptions = configuration.baseOptions;
1606
- }
1607
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
1608
- const localVarHeaderParameter = {};
1609
- const localVarQueryParameter = {};
1610
- setBasicAuthToObject(localVarRequestOptions, configuration);
1611
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
1612
- if (page !== void 0) {
1613
- localVarQueryParameter["page"] = page;
1614
- }
1615
- if (size !== void 0) {
1616
- localVarQueryParameter["size"] = size;
1617
- }
1618
- if (labelSelector) {
1619
- localVarQueryParameter["labelSelector"] = labelSelector;
1620
- }
1621
- if (fieldSelector) {
1622
- localVarQueryParameter["fieldSelector"] = fieldSelector;
1623
- }
1624
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1625
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1626
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1627
- return {
1628
- url: toPathString(localVarUrlObj),
1629
- options: localVarRequestOptions
1630
- };
1631
- },
1632
- updatecontentHaloRunV1alpha1SinglePage: async (name, singlePage, options = {}) => {
1633
- assertParamExists("updatecontentHaloRunV1alpha1SinglePage", "name", name);
1634
- const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
1635
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1636
- let baseOptions;
1637
- if (configuration) {
1638
- baseOptions = configuration.baseOptions;
1639
- }
1640
- const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
1641
- const localVarHeaderParameter = {};
1642
- const localVarQueryParameter = {};
1643
- setBasicAuthToObject(localVarRequestOptions, configuration);
1644
- await setBearerAuthToObject(localVarHeaderParameter, configuration);
1645
- localVarHeaderParameter["Content-Type"] = "application/json";
1646
- setSearchParams(localVarUrlObj, localVarQueryParameter);
1647
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1648
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1649
- localVarRequestOptions.data = serializeDataIfNeeded(singlePage, localVarRequestOptions, configuration);
1650
- return {
1651
- url: toPathString(localVarUrlObj),
1652
- options: localVarRequestOptions
1653
- };
1654
- }
1655
- };
1656
- };
1657
- const ContentHaloRunV1alpha1SinglePageApiFp = function(configuration) {
1658
- const localVarAxiosParamCreator = ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration);
1659
- return {
1660
- async createcontentHaloRunV1alpha1SinglePage(singlePage, options) {
1661
- const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1SinglePage(singlePage, options);
1662
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1663
- },
1664
- async deletecontentHaloRunV1alpha1SinglePage(name, options) {
1665
- const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1SinglePage(name, options);
1666
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1667
- },
1668
- async getcontentHaloRunV1alpha1SinglePage(name, options) {
1669
- const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1SinglePage(name, options);
1670
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1671
- },
1672
- async listcontentHaloRunV1alpha1SinglePage(page, size, labelSelector, fieldSelector, options) {
1673
- const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1SinglePage(page, size, labelSelector, fieldSelector, options);
1674
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1675
- },
1676
- async updatecontentHaloRunV1alpha1SinglePage(name, singlePage, options) {
1677
- const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1SinglePage(name, singlePage, options);
1678
- return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1679
- }
1680
- };
1681
- };
1682
- const ContentHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath, axios) {
1683
- const localVarFp = ContentHaloRunV1alpha1SinglePageApiFp(configuration);
1684
- return {
1685
- createcontentHaloRunV1alpha1SinglePage(singlePage, options) {
1686
- return localVarFp.createcontentHaloRunV1alpha1SinglePage(singlePage, options).then((request) => request(axios, basePath));
1687
- },
1688
- deletecontentHaloRunV1alpha1SinglePage(name, options) {
1689
- return localVarFp.deletecontentHaloRunV1alpha1SinglePage(name, options).then((request) => request(axios, basePath));
1690
- },
1691
- getcontentHaloRunV1alpha1SinglePage(name, options) {
1692
- return localVarFp.getcontentHaloRunV1alpha1SinglePage(name, options).then((request) => request(axios, basePath));
1693
- },
1694
- listcontentHaloRunV1alpha1SinglePage(page, size, labelSelector, fieldSelector, options) {
1695
- return localVarFp.listcontentHaloRunV1alpha1SinglePage(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
1696
- },
1697
- updatecontentHaloRunV1alpha1SinglePage(name, singlePage, options) {
1698
- return localVarFp.updatecontentHaloRunV1alpha1SinglePage(name, singlePage, options).then((request) => request(axios, basePath));
1699
- }
1700
- };
1701
- };
1702
- class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
1703
- createcontentHaloRunV1alpha1SinglePage(requestParameters = {}, options) {
1704
- return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).createcontentHaloRunV1alpha1SinglePage(requestParameters.singlePage, options).then((request) => request(this.axios, this.basePath));
1705
- }
1706
- deletecontentHaloRunV1alpha1SinglePage(requestParameters, options) {
1707
- return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).deletecontentHaloRunV1alpha1SinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
1708
- }
1709
- getcontentHaloRunV1alpha1SinglePage(requestParameters, options) {
1710
- return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).getcontentHaloRunV1alpha1SinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
1711
- }
1712
- listcontentHaloRunV1alpha1SinglePage(requestParameters = {}, options) {
1713
- return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).listcontentHaloRunV1alpha1SinglePage(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
1714
- }
1715
- updatecontentHaloRunV1alpha1SinglePage(requestParameters, options) {
1716
- return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).updatecontentHaloRunV1alpha1SinglePage(requestParameters.name, requestParameters.singlePage, options).then((request) => request(this.axios, this.basePath));
1717
- }
1718
- }
1719
-
1720
1391
  const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function(configuration) {
1721
1392
  return {
1722
1393
  createcontentHaloRunV1alpha1Snapshot: async (snapshot, options = {}) => {
@@ -2559,7 +2230,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
2559
2230
  options: localVarRequestOptions
2560
2231
  };
2561
2232
  },
2562
- searchAttachments: async (policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
2233
+ searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
2563
2234
  const localVarPath = `/apis/api.halo.run/v1alpha1/attachments`;
2564
2235
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2565
2236
  let baseOptions;
@@ -2577,24 +2248,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
2577
2248
  if (displayName !== void 0) {
2578
2249
  localVarQueryParameter["displayName"] = displayName;
2579
2250
  }
2580
- if (uploadedBy !== void 0) {
2581
- localVarQueryParameter["uploadedBy"] = uploadedBy;
2582
- }
2583
2251
  if (group !== void 0) {
2584
2252
  localVarQueryParameter["group"] = group;
2585
2253
  }
2254
+ if (uploadedBy !== void 0) {
2255
+ localVarQueryParameter["uploadedBy"] = uploadedBy;
2256
+ }
2586
2257
  if (size !== void 0) {
2587
2258
  localVarQueryParameter["size"] = size;
2588
2259
  }
2260
+ if (page !== void 0) {
2261
+ localVarQueryParameter["page"] = page;
2262
+ }
2589
2263
  if (labelSelector) {
2590
2264
  localVarQueryParameter["labelSelector"] = labelSelector;
2591
2265
  }
2592
2266
  if (fieldSelector) {
2593
2267
  localVarQueryParameter["fieldSelector"] = fieldSelector;
2594
2268
  }
2595
- if (page !== void 0) {
2596
- localVarQueryParameter["page"] = page;
2597
- }
2598
2269
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2599
2270
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2600
2271
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -2681,8 +2352,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
2681
2352
  const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
2682
2353
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
2683
2354
  },
2684
- async searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
2685
- const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
2355
+ async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
2356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
2686
2357
  return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
2687
2358
  },
2688
2359
  async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
@@ -2710,8 +2381,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
2710
2381
  liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
2711
2382
  return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
2712
2383
  },
2713
- searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
2714
- return localVarFp.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
2384
+ searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
2385
+ return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
2715
2386
  },
2716
2387
  updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
2717
2388
  return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
@@ -2735,7 +2406,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
2735
2406
  return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
2736
2407
  }
2737
2408
  searchAttachments(requestParameters = {}, options) {
2738
- 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));
2409
+ 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));
2739
2410
  }
2740
2411
  updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
2741
2412
  return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
@@ -5014,12 +4685,6 @@ const PostSpecVisibleEnum = {
5014
4685
  Private: "PRIVATE"
5015
4686
  };
5016
4687
 
5017
- const SinglePageSpecVisibleEnum = {
5018
- Public: "PUBLIC",
5019
- Internal: "INTERNAL",
5020
- Private: "PRIVATE"
5021
- };
5022
-
5023
4688
  exports.ApiHaloRunV1alpha1ContentApi = ApiHaloRunV1alpha1ContentApi;
5024
4689
  exports.ApiHaloRunV1alpha1ContentApiAxiosParamCreator = ApiHaloRunV1alpha1ContentApiAxiosParamCreator;
5025
4690
  exports.ApiHaloRunV1alpha1ContentApiFactory = ApiHaloRunV1alpha1ContentApiFactory;
@@ -5058,10 +4723,6 @@ exports.ContentHaloRunV1alpha1ReplyApi = ContentHaloRunV1alpha1ReplyApi;
5058
4723
  exports.ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = ContentHaloRunV1alpha1ReplyApiAxiosParamCreator;
5059
4724
  exports.ContentHaloRunV1alpha1ReplyApiFactory = ContentHaloRunV1alpha1ReplyApiFactory;
5060
4725
  exports.ContentHaloRunV1alpha1ReplyApiFp = ContentHaloRunV1alpha1ReplyApiFp;
5061
- exports.ContentHaloRunV1alpha1SinglePageApi = ContentHaloRunV1alpha1SinglePageApi;
5062
- exports.ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator;
5063
- exports.ContentHaloRunV1alpha1SinglePageApiFactory = ContentHaloRunV1alpha1SinglePageApiFactory;
5064
- exports.ContentHaloRunV1alpha1SinglePageApiFp = ContentHaloRunV1alpha1SinglePageApiFp;
5065
4726
  exports.ContentHaloRunV1alpha1SnapshotApi = ContentHaloRunV1alpha1SnapshotApi;
5066
4727
  exports.ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator;
5067
4728
  exports.ContentHaloRunV1alpha1SnapshotApiFactory = ContentHaloRunV1alpha1SnapshotApiFactory;
@@ -5080,7 +4741,6 @@ exports.PluginHaloRunV1alpha1ReverseProxyApiFactory = PluginHaloRunV1alpha1Rever
5080
4741
  exports.PluginHaloRunV1alpha1ReverseProxyApiFp = PluginHaloRunV1alpha1ReverseProxyApiFp;
5081
4742
  exports.PluginStatusPhaseEnum = PluginStatusPhaseEnum;
5082
4743
  exports.PostSpecVisibleEnum = PostSpecVisibleEnum;
5083
- exports.SinglePageSpecVisibleEnum = SinglePageSpecVisibleEnum;
5084
4744
  exports.StorageHaloRunV1alpha1AttachmentApi = StorageHaloRunV1alpha1AttachmentApi;
5085
4745
  exports.StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator;
5086
4746
  exports.StorageHaloRunV1alpha1AttachmentApiFactory = StorageHaloRunV1alpha1AttachmentApiFactory;