@halo-dev/api-client 0.0.15 → 0.0.18
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 +364 -24
- package/dist/index.d.ts +974 -46
- package/dist/index.mjs +360 -25
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -295,7 +295,30 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
295
295
|
options: localVarRequestOptions
|
|
296
296
|
};
|
|
297
297
|
},
|
|
298
|
-
|
|
298
|
+
draftSinglePage: async (singlePageRequest, options = {}) => {
|
|
299
|
+
assertParamExists("draftSinglePage", "singlePageRequest", singlePageRequest);
|
|
300
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
301
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
302
|
+
let baseOptions;
|
|
303
|
+
if (configuration) {
|
|
304
|
+
baseOptions = configuration.baseOptions;
|
|
305
|
+
}
|
|
306
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
307
|
+
const localVarHeaderParameter = {};
|
|
308
|
+
const localVarQueryParameter = {};
|
|
309
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
310
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
311
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
312
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
314
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
315
|
+
localVarRequestOptions.data = serializeDataIfNeeded(singlePageRequest, localVarRequestOptions, configuration);
|
|
316
|
+
return {
|
|
317
|
+
url: toPathString(localVarUrlObj),
|
|
318
|
+
options: localVarRequestOptions
|
|
319
|
+
};
|
|
320
|
+
},
|
|
321
|
+
listPosts: async (contributors, categories, tags, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
299
322
|
const localVarPath = `/apis/api.halo.run/v1alpha1/posts`;
|
|
300
323
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
301
324
|
let baseOptions;
|
|
@@ -307,8 +330,14 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
307
330
|
const localVarQueryParameter = {};
|
|
308
331
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
309
332
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
310
|
-
if (
|
|
311
|
-
localVarQueryParameter["
|
|
333
|
+
if (contributors) {
|
|
334
|
+
localVarQueryParameter["contributors"] = Array.from(contributors);
|
|
335
|
+
}
|
|
336
|
+
if (categories) {
|
|
337
|
+
localVarQueryParameter["categories"] = Array.from(categories);
|
|
338
|
+
}
|
|
339
|
+
if (tags) {
|
|
340
|
+
localVarQueryParameter["tags"] = Array.from(tags);
|
|
312
341
|
}
|
|
313
342
|
if (size !== void 0) {
|
|
314
343
|
localVarQueryParameter["size"] = size;
|
|
@@ -319,14 +348,43 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
319
348
|
if (fieldSelector) {
|
|
320
349
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
321
350
|
}
|
|
351
|
+
if (page !== void 0) {
|
|
352
|
+
localVarQueryParameter["page"] = page;
|
|
353
|
+
}
|
|
354
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
355
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
356
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
357
|
+
return {
|
|
358
|
+
url: toPathString(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions
|
|
360
|
+
};
|
|
361
|
+
},
|
|
362
|
+
listSinglePages: async (contributors, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
363
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
364
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
365
|
+
let baseOptions;
|
|
366
|
+
if (configuration) {
|
|
367
|
+
baseOptions = configuration.baseOptions;
|
|
368
|
+
}
|
|
369
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
370
|
+
const localVarHeaderParameter = {};
|
|
371
|
+
const localVarQueryParameter = {};
|
|
372
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
373
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
322
374
|
if (contributors) {
|
|
323
375
|
localVarQueryParameter["contributors"] = Array.from(contributors);
|
|
324
376
|
}
|
|
325
|
-
if (
|
|
326
|
-
localVarQueryParameter["
|
|
377
|
+
if (size !== void 0) {
|
|
378
|
+
localVarQueryParameter["size"] = size;
|
|
327
379
|
}
|
|
328
|
-
if (
|
|
329
|
-
localVarQueryParameter["
|
|
380
|
+
if (labelSelector) {
|
|
381
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
382
|
+
}
|
|
383
|
+
if (fieldSelector) {
|
|
384
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
385
|
+
}
|
|
386
|
+
if (page !== void 0) {
|
|
387
|
+
localVarQueryParameter["page"] = page;
|
|
330
388
|
}
|
|
331
389
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
332
390
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -357,6 +415,27 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
357
415
|
options: localVarRequestOptions
|
|
358
416
|
};
|
|
359
417
|
},
|
|
418
|
+
publishSinglePage: async (name, options = {}) => {
|
|
419
|
+
assertParamExists("publishSinglePage", "name", name);
|
|
420
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
421
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
422
|
+
let baseOptions;
|
|
423
|
+
if (configuration) {
|
|
424
|
+
baseOptions = configuration.baseOptions;
|
|
425
|
+
}
|
|
426
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
427
|
+
const localVarHeaderParameter = {};
|
|
428
|
+
const localVarQueryParameter = {};
|
|
429
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
430
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
431
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
432
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
433
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
434
|
+
return {
|
|
435
|
+
url: toPathString(localVarUrlObj),
|
|
436
|
+
options: localVarRequestOptions
|
|
437
|
+
};
|
|
438
|
+
},
|
|
360
439
|
updateDraftPost: async (name, postRequest, options = {}) => {
|
|
361
440
|
assertParamExists("updateDraftPost", "name", name);
|
|
362
441
|
assertParamExists("updateDraftPost", "postRequest", postRequest);
|
|
@@ -380,6 +459,30 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
380
459
|
url: toPathString(localVarUrlObj),
|
|
381
460
|
options: localVarRequestOptions
|
|
382
461
|
};
|
|
462
|
+
},
|
|
463
|
+
updateDraftSinglePage: async (name, singlePageRequest, options = {}) => {
|
|
464
|
+
assertParamExists("updateDraftSinglePage", "name", name);
|
|
465
|
+
assertParamExists("updateDraftSinglePage", "singlePageRequest", singlePageRequest);
|
|
466
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
467
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
|
+
let baseOptions;
|
|
469
|
+
if (configuration) {
|
|
470
|
+
baseOptions = configuration.baseOptions;
|
|
471
|
+
}
|
|
472
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
473
|
+
const localVarHeaderParameter = {};
|
|
474
|
+
const localVarQueryParameter = {};
|
|
475
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
476
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
477
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
478
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
479
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
480
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
481
|
+
localVarRequestOptions.data = serializeDataIfNeeded(singlePageRequest, localVarRequestOptions, configuration);
|
|
482
|
+
return {
|
|
483
|
+
url: toPathString(localVarUrlObj),
|
|
484
|
+
options: localVarRequestOptions
|
|
485
|
+
};
|
|
383
486
|
}
|
|
384
487
|
};
|
|
385
488
|
};
|
|
@@ -390,17 +493,33 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
390
493
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
391
494
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
392
495
|
},
|
|
393
|
-
async
|
|
394
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
496
|
+
async draftSinglePage(singlePageRequest, options) {
|
|
497
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
498
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
499
|
+
},
|
|
500
|
+
async listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options) {
|
|
501
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options);
|
|
502
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
503
|
+
},
|
|
504
|
+
async listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
505
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options);
|
|
395
506
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
396
507
|
},
|
|
397
508
|
async publishPost(name, options) {
|
|
398
509
|
const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, options);
|
|
399
510
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
400
511
|
},
|
|
512
|
+
async publishSinglePage(name, options) {
|
|
513
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.publishSinglePage(name, options);
|
|
514
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
515
|
+
},
|
|
401
516
|
async updateDraftPost(name, postRequest, options) {
|
|
402
517
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
|
|
403
518
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
519
|
+
},
|
|
520
|
+
async updateDraftSinglePage(name, singlePageRequest, options) {
|
|
521
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftSinglePage(name, singlePageRequest, options);
|
|
522
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
404
523
|
}
|
|
405
524
|
};
|
|
406
525
|
};
|
|
@@ -410,14 +529,26 @@ const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios
|
|
|
410
529
|
draftPost(postRequest, options) {
|
|
411
530
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
412
531
|
},
|
|
413
|
-
|
|
414
|
-
return localVarFp.
|
|
532
|
+
draftSinglePage(singlePageRequest, options) {
|
|
533
|
+
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
534
|
+
},
|
|
535
|
+
listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options) {
|
|
536
|
+
return localVarFp.listPosts(contributors, categories, tags, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
537
|
+
},
|
|
538
|
+
listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
539
|
+
return localVarFp.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
415
540
|
},
|
|
416
541
|
publishPost(name, options) {
|
|
417
542
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
418
543
|
},
|
|
544
|
+
publishSinglePage(name, options) {
|
|
545
|
+
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
546
|
+
},
|
|
419
547
|
updateDraftPost(name, postRequest, options) {
|
|
420
548
|
return localVarFp.updateDraftPost(name, postRequest, options).then((request) => request(axios, basePath));
|
|
549
|
+
},
|
|
550
|
+
updateDraftSinglePage(name, singlePageRequest, options) {
|
|
551
|
+
return localVarFp.updateDraftSinglePage(name, singlePageRequest, options).then((request) => request(axios, basePath));
|
|
421
552
|
}
|
|
422
553
|
};
|
|
423
554
|
};
|
|
@@ -425,15 +556,27 @@ class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
425
556
|
draftPost(requestParameters, options) {
|
|
426
557
|
return ApiHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
427
558
|
}
|
|
559
|
+
draftSinglePage(requestParameters, options) {
|
|
560
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
561
|
+
}
|
|
428
562
|
listPosts(requestParameters = {}, options) {
|
|
429
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.
|
|
563
|
+
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));
|
|
564
|
+
}
|
|
565
|
+
listSinglePages(requestParameters = {}, options) {
|
|
566
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
430
567
|
}
|
|
431
568
|
publishPost(requestParameters, options) {
|
|
432
569
|
return ApiHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
433
570
|
}
|
|
571
|
+
publishSinglePage(requestParameters, options) {
|
|
572
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
573
|
+
}
|
|
434
574
|
updateDraftPost(requestParameters, options) {
|
|
435
575
|
return ApiHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
436
576
|
}
|
|
577
|
+
updateDraftSinglePage(requestParameters, options) {
|
|
578
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
579
|
+
}
|
|
437
580
|
}
|
|
438
581
|
|
|
439
582
|
const ApiHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
@@ -1380,6 +1523,192 @@ class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
|
1380
1523
|
}
|
|
1381
1524
|
}
|
|
1382
1525
|
|
|
1526
|
+
const ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration) {
|
|
1527
|
+
return {
|
|
1528
|
+
createcontentHaloRunV1alpha1SinglePage: async (singlePage, options = {}) => {
|
|
1529
|
+
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`;
|
|
1530
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1531
|
+
let baseOptions;
|
|
1532
|
+
if (configuration) {
|
|
1533
|
+
baseOptions = configuration.baseOptions;
|
|
1534
|
+
}
|
|
1535
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1536
|
+
const localVarHeaderParameter = {};
|
|
1537
|
+
const localVarQueryParameter = {};
|
|
1538
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1539
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1540
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1541
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1542
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1543
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1544
|
+
localVarRequestOptions.data = serializeDataIfNeeded(singlePage, localVarRequestOptions, configuration);
|
|
1545
|
+
return {
|
|
1546
|
+
url: toPathString(localVarUrlObj),
|
|
1547
|
+
options: localVarRequestOptions
|
|
1548
|
+
};
|
|
1549
|
+
},
|
|
1550
|
+
deletecontentHaloRunV1alpha1SinglePage: async (name, options = {}) => {
|
|
1551
|
+
assertParamExists("deletecontentHaloRunV1alpha1SinglePage", "name", name);
|
|
1552
|
+
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1553
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1554
|
+
let baseOptions;
|
|
1555
|
+
if (configuration) {
|
|
1556
|
+
baseOptions = configuration.baseOptions;
|
|
1557
|
+
}
|
|
1558
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1559
|
+
const localVarHeaderParameter = {};
|
|
1560
|
+
const localVarQueryParameter = {};
|
|
1561
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1562
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1563
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1564
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1565
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1566
|
+
return {
|
|
1567
|
+
url: toPathString(localVarUrlObj),
|
|
1568
|
+
options: localVarRequestOptions
|
|
1569
|
+
};
|
|
1570
|
+
},
|
|
1571
|
+
getcontentHaloRunV1alpha1SinglePage: async (name, options = {}) => {
|
|
1572
|
+
assertParamExists("getcontentHaloRunV1alpha1SinglePage", "name", name);
|
|
1573
|
+
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1574
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1575
|
+
let baseOptions;
|
|
1576
|
+
if (configuration) {
|
|
1577
|
+
baseOptions = configuration.baseOptions;
|
|
1578
|
+
}
|
|
1579
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1580
|
+
const localVarHeaderParameter = {};
|
|
1581
|
+
const localVarQueryParameter = {};
|
|
1582
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1583
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1584
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1585
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1586
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1587
|
+
return {
|
|
1588
|
+
url: toPathString(localVarUrlObj),
|
|
1589
|
+
options: localVarRequestOptions
|
|
1590
|
+
};
|
|
1591
|
+
},
|
|
1592
|
+
listcontentHaloRunV1alpha1SinglePage: async (page, size, labelSelector, fieldSelector, options = {}) => {
|
|
1593
|
+
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages`;
|
|
1594
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1595
|
+
let baseOptions;
|
|
1596
|
+
if (configuration) {
|
|
1597
|
+
baseOptions = configuration.baseOptions;
|
|
1598
|
+
}
|
|
1599
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1600
|
+
const localVarHeaderParameter = {};
|
|
1601
|
+
const localVarQueryParameter = {};
|
|
1602
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1603
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1604
|
+
if (page !== void 0) {
|
|
1605
|
+
localVarQueryParameter["page"] = page;
|
|
1606
|
+
}
|
|
1607
|
+
if (size !== void 0) {
|
|
1608
|
+
localVarQueryParameter["size"] = size;
|
|
1609
|
+
}
|
|
1610
|
+
if (labelSelector) {
|
|
1611
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
1612
|
+
}
|
|
1613
|
+
if (fieldSelector) {
|
|
1614
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
1615
|
+
}
|
|
1616
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1617
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1618
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1619
|
+
return {
|
|
1620
|
+
url: toPathString(localVarUrlObj),
|
|
1621
|
+
options: localVarRequestOptions
|
|
1622
|
+
};
|
|
1623
|
+
},
|
|
1624
|
+
updatecontentHaloRunV1alpha1SinglePage: async (name, singlePage, options = {}) => {
|
|
1625
|
+
assertParamExists("updatecontentHaloRunV1alpha1SinglePage", "name", name);
|
|
1626
|
+
const localVarPath = `/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1627
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1628
|
+
let baseOptions;
|
|
1629
|
+
if (configuration) {
|
|
1630
|
+
baseOptions = configuration.baseOptions;
|
|
1631
|
+
}
|
|
1632
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1633
|
+
const localVarHeaderParameter = {};
|
|
1634
|
+
const localVarQueryParameter = {};
|
|
1635
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1636
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1637
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1638
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1639
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1640
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1641
|
+
localVarRequestOptions.data = serializeDataIfNeeded(singlePage, localVarRequestOptions, configuration);
|
|
1642
|
+
return {
|
|
1643
|
+
url: toPathString(localVarUrlObj),
|
|
1644
|
+
options: localVarRequestOptions
|
|
1645
|
+
};
|
|
1646
|
+
}
|
|
1647
|
+
};
|
|
1648
|
+
};
|
|
1649
|
+
const ContentHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
1650
|
+
const localVarAxiosParamCreator = ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration);
|
|
1651
|
+
return {
|
|
1652
|
+
async createcontentHaloRunV1alpha1SinglePage(singlePage, options) {
|
|
1653
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createcontentHaloRunV1alpha1SinglePage(singlePage, options);
|
|
1654
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1655
|
+
},
|
|
1656
|
+
async deletecontentHaloRunV1alpha1SinglePage(name, options) {
|
|
1657
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletecontentHaloRunV1alpha1SinglePage(name, options);
|
|
1658
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1659
|
+
},
|
|
1660
|
+
async getcontentHaloRunV1alpha1SinglePage(name, options) {
|
|
1661
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getcontentHaloRunV1alpha1SinglePage(name, options);
|
|
1662
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1663
|
+
},
|
|
1664
|
+
async listcontentHaloRunV1alpha1SinglePage(page, size, labelSelector, fieldSelector, options) {
|
|
1665
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listcontentHaloRunV1alpha1SinglePage(page, size, labelSelector, fieldSelector, options);
|
|
1666
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1667
|
+
},
|
|
1668
|
+
async updatecontentHaloRunV1alpha1SinglePage(name, singlePage, options) {
|
|
1669
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatecontentHaloRunV1alpha1SinglePage(name, singlePage, options);
|
|
1670
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1671
|
+
}
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1674
|
+
const ContentHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath, axios) {
|
|
1675
|
+
const localVarFp = ContentHaloRunV1alpha1SinglePageApiFp(configuration);
|
|
1676
|
+
return {
|
|
1677
|
+
createcontentHaloRunV1alpha1SinglePage(singlePage, options) {
|
|
1678
|
+
return localVarFp.createcontentHaloRunV1alpha1SinglePage(singlePage, options).then((request) => request(axios, basePath));
|
|
1679
|
+
},
|
|
1680
|
+
deletecontentHaloRunV1alpha1SinglePage(name, options) {
|
|
1681
|
+
return localVarFp.deletecontentHaloRunV1alpha1SinglePage(name, options).then((request) => request(axios, basePath));
|
|
1682
|
+
},
|
|
1683
|
+
getcontentHaloRunV1alpha1SinglePage(name, options) {
|
|
1684
|
+
return localVarFp.getcontentHaloRunV1alpha1SinglePage(name, options).then((request) => request(axios, basePath));
|
|
1685
|
+
},
|
|
1686
|
+
listcontentHaloRunV1alpha1SinglePage(page, size, labelSelector, fieldSelector, options) {
|
|
1687
|
+
return localVarFp.listcontentHaloRunV1alpha1SinglePage(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
1688
|
+
},
|
|
1689
|
+
updatecontentHaloRunV1alpha1SinglePage(name, singlePage, options) {
|
|
1690
|
+
return localVarFp.updatecontentHaloRunV1alpha1SinglePage(name, singlePage, options).then((request) => request(axios, basePath));
|
|
1691
|
+
}
|
|
1692
|
+
};
|
|
1693
|
+
};
|
|
1694
|
+
class ContentHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
1695
|
+
createcontentHaloRunV1alpha1SinglePage(requestParameters = {}, options) {
|
|
1696
|
+
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).createcontentHaloRunV1alpha1SinglePage(requestParameters.singlePage, options).then((request) => request(this.axios, this.basePath));
|
|
1697
|
+
}
|
|
1698
|
+
deletecontentHaloRunV1alpha1SinglePage(requestParameters, options) {
|
|
1699
|
+
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).deletecontentHaloRunV1alpha1SinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1700
|
+
}
|
|
1701
|
+
getcontentHaloRunV1alpha1SinglePage(requestParameters, options) {
|
|
1702
|
+
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).getcontentHaloRunV1alpha1SinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1703
|
+
}
|
|
1704
|
+
listcontentHaloRunV1alpha1SinglePage(requestParameters = {}, options) {
|
|
1705
|
+
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).listcontentHaloRunV1alpha1SinglePage(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
1706
|
+
}
|
|
1707
|
+
updatecontentHaloRunV1alpha1SinglePage(requestParameters, options) {
|
|
1708
|
+
return ContentHaloRunV1alpha1SinglePageApiFp(this.configuration).updatecontentHaloRunV1alpha1SinglePage(requestParameters.name, requestParameters.singlePage, options).then((request) => request(this.axios, this.basePath));
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1383
1712
|
const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function(configuration) {
|
|
1384
1713
|
return {
|
|
1385
1714
|
createcontentHaloRunV1alpha1Snapshot: async (snapshot, options = {}) => {
|
|
@@ -2222,7 +2551,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2222
2551
|
options: localVarRequestOptions
|
|
2223
2552
|
};
|
|
2224
2553
|
},
|
|
2225
|
-
searchAttachments: async (policy, displayName,
|
|
2554
|
+
searchAttachments: async (policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
2226
2555
|
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments`;
|
|
2227
2556
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2228
2557
|
let baseOptions;
|
|
@@ -2240,24 +2569,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2240
2569
|
if (displayName !== void 0) {
|
|
2241
2570
|
localVarQueryParameter["displayName"] = displayName;
|
|
2242
2571
|
}
|
|
2243
|
-
if (group !== void 0) {
|
|
2244
|
-
localVarQueryParameter["group"] = group;
|
|
2245
|
-
}
|
|
2246
2572
|
if (uploadedBy !== void 0) {
|
|
2247
2573
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2248
2574
|
}
|
|
2575
|
+
if (group !== void 0) {
|
|
2576
|
+
localVarQueryParameter["group"] = group;
|
|
2577
|
+
}
|
|
2249
2578
|
if (size !== void 0) {
|
|
2250
2579
|
localVarQueryParameter["size"] = size;
|
|
2251
2580
|
}
|
|
2252
|
-
if (page !== void 0) {
|
|
2253
|
-
localVarQueryParameter["page"] = page;
|
|
2254
|
-
}
|
|
2255
2581
|
if (labelSelector) {
|
|
2256
2582
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2257
2583
|
}
|
|
2258
2584
|
if (fieldSelector) {
|
|
2259
2585
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2260
2586
|
}
|
|
2587
|
+
if (page !== void 0) {
|
|
2588
|
+
localVarQueryParameter["page"] = page;
|
|
2589
|
+
}
|
|
2261
2590
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2262
2591
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2263
2592
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2344,8 +2673,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
2344
2673
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
2345
2674
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2346
2675
|
},
|
|
2347
|
-
async searchAttachments(policy, displayName,
|
|
2348
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
2676
|
+
async searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
2677
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options);
|
|
2349
2678
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2350
2679
|
},
|
|
2351
2680
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -2373,8 +2702,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
2373
2702
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
2374
2703
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2375
2704
|
},
|
|
2376
|
-
searchAttachments(policy, displayName,
|
|
2377
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
2705
|
+
searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options) {
|
|
2706
|
+
return localVarFp.searchAttachments(policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
2378
2707
|
},
|
|
2379
2708
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
2380
2709
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -2398,7 +2727,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
2398
2727
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2399
2728
|
}
|
|
2400
2729
|
searchAttachments(requestParameters = {}, options) {
|
|
2401
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
2730
|
+
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));
|
|
2402
2731
|
}
|
|
2403
2732
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
2404
2733
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4677,4 +5006,10 @@ const PostSpecVisibleEnum = {
|
|
|
4677
5006
|
Private: "PRIVATE"
|
|
4678
5007
|
};
|
|
4679
5008
|
|
|
4680
|
-
|
|
5009
|
+
const SinglePageSpecVisibleEnum = {
|
|
5010
|
+
Public: "PUBLIC",
|
|
5011
|
+
Internal: "INTERNAL",
|
|
5012
|
+
Private: "PRIVATE"
|
|
5013
|
+
};
|
|
5014
|
+
|
|
5015
|
+
export { ApiHaloRunV1alpha1ContentApi, ApiHaloRunV1alpha1ContentApiAxiosParamCreator, ApiHaloRunV1alpha1ContentApiFactory, ApiHaloRunV1alpha1ContentApiFp, ApiHaloRunV1alpha1PluginApi, ApiHaloRunV1alpha1PluginApiAxiosParamCreator, ApiHaloRunV1alpha1PluginApiFactory, ApiHaloRunV1alpha1PluginApiFp, ApiHaloRunV1alpha1PostApi, ApiHaloRunV1alpha1PostApiAxiosParamCreator, ApiHaloRunV1alpha1PostApiFactory, ApiHaloRunV1alpha1PostApiFp, ApiHaloRunV1alpha1ThemeApi, ApiHaloRunV1alpha1ThemeApiAxiosParamCreator, ApiHaloRunV1alpha1ThemeApiFactory, ApiHaloRunV1alpha1ThemeApiFp, ApiHaloRunV1alpha1UserApi, ApiHaloRunV1alpha1UserApiAxiosParamCreator, ApiHaloRunV1alpha1UserApiFactory, ApiHaloRunV1alpha1UserApiFp, ConditionStatusEnum, Configuration, ContentHaloRunV1alpha1CategoryApi, ContentHaloRunV1alpha1CategoryApiAxiosParamCreator, ContentHaloRunV1alpha1CategoryApiFactory, ContentHaloRunV1alpha1CategoryApiFp, ContentHaloRunV1alpha1CommentApi, ContentHaloRunV1alpha1CommentApiAxiosParamCreator, ContentHaloRunV1alpha1CommentApiFactory, ContentHaloRunV1alpha1CommentApiFp, ContentHaloRunV1alpha1PostApi, ContentHaloRunV1alpha1PostApiAxiosParamCreator, ContentHaloRunV1alpha1PostApiFactory, ContentHaloRunV1alpha1PostApiFp, ContentHaloRunV1alpha1ReplyApi, ContentHaloRunV1alpha1ReplyApiAxiosParamCreator, ContentHaloRunV1alpha1ReplyApiFactory, ContentHaloRunV1alpha1ReplyApiFp, ContentHaloRunV1alpha1SinglePageApi, ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator, ContentHaloRunV1alpha1SinglePageApiFactory, ContentHaloRunV1alpha1SinglePageApiFp, ContentHaloRunV1alpha1SnapshotApi, ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator, ContentHaloRunV1alpha1SnapshotApiFactory, ContentHaloRunV1alpha1SnapshotApiFp, ContentHaloRunV1alpha1TagApi, ContentHaloRunV1alpha1TagApiAxiosParamCreator, ContentHaloRunV1alpha1TagApiFactory, ContentHaloRunV1alpha1TagApiFp, PluginHaloRunV1alpha1PluginApi, PluginHaloRunV1alpha1PluginApiAxiosParamCreator, PluginHaloRunV1alpha1PluginApiFactory, PluginHaloRunV1alpha1PluginApiFp, PluginHaloRunV1alpha1ReverseProxyApi, PluginHaloRunV1alpha1ReverseProxyApiAxiosParamCreator, PluginHaloRunV1alpha1ReverseProxyApiFactory, PluginHaloRunV1alpha1ReverseProxyApiFp, PluginStatusPhaseEnum, PostSpecVisibleEnum, SinglePageSpecVisibleEnum, StorageHaloRunV1alpha1AttachmentApi, StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator, StorageHaloRunV1alpha1AttachmentApiFactory, StorageHaloRunV1alpha1AttachmentApiFp, StorageHaloRunV1alpha1GroupApi, StorageHaloRunV1alpha1GroupApiAxiosParamCreator, StorageHaloRunV1alpha1GroupApiFactory, StorageHaloRunV1alpha1GroupApiFp, StorageHaloRunV1alpha1PolicyApi, StorageHaloRunV1alpha1PolicyApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyApiFactory, StorageHaloRunV1alpha1PolicyApiFp, StorageHaloRunV1alpha1PolicyTemplateApi, StorageHaloRunV1alpha1PolicyTemplateApiAxiosParamCreator, StorageHaloRunV1alpha1PolicyTemplateApiFactory, StorageHaloRunV1alpha1PolicyTemplateApiFp, ThemeHaloRunV1alpha1ThemeApi, ThemeHaloRunV1alpha1ThemeApiAxiosParamCreator, ThemeHaloRunV1alpha1ThemeApiFactory, ThemeHaloRunV1alpha1ThemeApiFp, V1alpha1ConfigMapApi, V1alpha1ConfigMapApiAxiosParamCreator, V1alpha1ConfigMapApiFactory, V1alpha1ConfigMapApiFp, V1alpha1MenuApi, V1alpha1MenuApiAxiosParamCreator, V1alpha1MenuApiFactory, V1alpha1MenuApiFp, V1alpha1MenuItemApi, V1alpha1MenuItemApiAxiosParamCreator, V1alpha1MenuItemApiFactory, V1alpha1MenuItemApiFp, V1alpha1PersonalAccessTokenApi, V1alpha1PersonalAccessTokenApiAxiosParamCreator, V1alpha1PersonalAccessTokenApiFactory, V1alpha1PersonalAccessTokenApiFp, V1alpha1RoleApi, V1alpha1RoleApiAxiosParamCreator, V1alpha1RoleApiFactory, V1alpha1RoleApiFp, V1alpha1RoleBindingApi, V1alpha1RoleBindingApiAxiosParamCreator, V1alpha1RoleBindingApiFactory, V1alpha1RoleBindingApiFp, V1alpha1SettingApi, V1alpha1SettingApiAxiosParamCreator, V1alpha1SettingApiFactory, V1alpha1SettingApiFp, V1alpha1UserApi, V1alpha1UserApiAxiosParamCreator, V1alpha1UserApiFactory, V1alpha1UserApiFp };
|