@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.cjs
CHANGED
|
@@ -303,7 +303,30 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
303
303
|
options: localVarRequestOptions
|
|
304
304
|
};
|
|
305
305
|
},
|
|
306
|
-
|
|
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 = {}) => {
|
|
307
330
|
const localVarPath = `/apis/api.halo.run/v1alpha1/posts`;
|
|
308
331
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
309
332
|
let baseOptions;
|
|
@@ -315,8 +338,14 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
315
338
|
const localVarQueryParameter = {};
|
|
316
339
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
317
340
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
318
|
-
if (
|
|
319
|
-
localVarQueryParameter["
|
|
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);
|
|
320
349
|
}
|
|
321
350
|
if (size !== void 0) {
|
|
322
351
|
localVarQueryParameter["size"] = size;
|
|
@@ -327,14 +356,43 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
327
356
|
if (fieldSelector) {
|
|
328
357
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
329
358
|
}
|
|
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);
|
|
330
382
|
if (contributors) {
|
|
331
383
|
localVarQueryParameter["contributors"] = Array.from(contributors);
|
|
332
384
|
}
|
|
333
|
-
if (
|
|
334
|
-
localVarQueryParameter["
|
|
385
|
+
if (size !== void 0) {
|
|
386
|
+
localVarQueryParameter["size"] = size;
|
|
335
387
|
}
|
|
336
|
-
if (
|
|
337
|
-
localVarQueryParameter["
|
|
388
|
+
if (labelSelector) {
|
|
389
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
390
|
+
}
|
|
391
|
+
if (fieldSelector) {
|
|
392
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
393
|
+
}
|
|
394
|
+
if (page !== void 0) {
|
|
395
|
+
localVarQueryParameter["page"] = page;
|
|
338
396
|
}
|
|
339
397
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
340
398
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -365,6 +423,27 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
365
423
|
options: localVarRequestOptions
|
|
366
424
|
};
|
|
367
425
|
},
|
|
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
|
+
},
|
|
368
447
|
updateDraftPost: async (name, postRequest, options = {}) => {
|
|
369
448
|
assertParamExists("updateDraftPost", "name", name);
|
|
370
449
|
assertParamExists("updateDraftPost", "postRequest", postRequest);
|
|
@@ -388,6 +467,30 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
388
467
|
url: toPathString(localVarUrlObj),
|
|
389
468
|
options: localVarRequestOptions
|
|
390
469
|
};
|
|
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
|
+
};
|
|
391
494
|
}
|
|
392
495
|
};
|
|
393
496
|
};
|
|
@@ -398,17 +501,33 @@ const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
398
501
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
399
502
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
400
503
|
},
|
|
401
|
-
async
|
|
402
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
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);
|
|
403
514
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
404
515
|
},
|
|
405
516
|
async publishPost(name, options) {
|
|
406
517
|
const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, options);
|
|
407
518
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
408
519
|
},
|
|
520
|
+
async publishSinglePage(name, options) {
|
|
521
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.publishSinglePage(name, options);
|
|
522
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
523
|
+
},
|
|
409
524
|
async updateDraftPost(name, postRequest, options) {
|
|
410
525
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
|
|
411
526
|
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);
|
|
412
531
|
}
|
|
413
532
|
};
|
|
414
533
|
};
|
|
@@ -418,14 +537,26 @@ const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios
|
|
|
418
537
|
draftPost(postRequest, options) {
|
|
419
538
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
420
539
|
},
|
|
421
|
-
|
|
422
|
-
return localVarFp.
|
|
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));
|
|
423
548
|
},
|
|
424
549
|
publishPost(name, options) {
|
|
425
550
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
426
551
|
},
|
|
552
|
+
publishSinglePage(name, options) {
|
|
553
|
+
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
554
|
+
},
|
|
427
555
|
updateDraftPost(name, postRequest, options) {
|
|
428
556
|
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));
|
|
429
560
|
}
|
|
430
561
|
};
|
|
431
562
|
};
|
|
@@ -433,15 +564,27 @@ class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
433
564
|
draftPost(requestParameters, options) {
|
|
434
565
|
return ApiHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
435
566
|
}
|
|
567
|
+
draftSinglePage(requestParameters, options) {
|
|
568
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
569
|
+
}
|
|
436
570
|
listPosts(requestParameters = {}, options) {
|
|
437
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.
|
|
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));
|
|
438
575
|
}
|
|
439
576
|
publishPost(requestParameters, options) {
|
|
440
577
|
return ApiHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
441
578
|
}
|
|
579
|
+
publishSinglePage(requestParameters, options) {
|
|
580
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
581
|
+
}
|
|
442
582
|
updateDraftPost(requestParameters, options) {
|
|
443
583
|
return ApiHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
444
584
|
}
|
|
585
|
+
updateDraftSinglePage(requestParameters, options) {
|
|
586
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
587
|
+
}
|
|
445
588
|
}
|
|
446
589
|
|
|
447
590
|
const ApiHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
|
|
@@ -1388,6 +1531,192 @@ class ContentHaloRunV1alpha1ReplyApi extends BaseAPI {
|
|
|
1388
1531
|
}
|
|
1389
1532
|
}
|
|
1390
1533
|
|
|
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
|
+
|
|
1391
1720
|
const ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = function(configuration) {
|
|
1392
1721
|
return {
|
|
1393
1722
|
createcontentHaloRunV1alpha1Snapshot: async (snapshot, options = {}) => {
|
|
@@ -2230,7 +2559,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2230
2559
|
options: localVarRequestOptions
|
|
2231
2560
|
};
|
|
2232
2561
|
},
|
|
2233
|
-
searchAttachments: async (policy, displayName,
|
|
2562
|
+
searchAttachments: async (policy, displayName, uploadedBy, group, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
2234
2563
|
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments`;
|
|
2235
2564
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2236
2565
|
let baseOptions;
|
|
@@ -2248,24 +2577,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2248
2577
|
if (displayName !== void 0) {
|
|
2249
2578
|
localVarQueryParameter["displayName"] = displayName;
|
|
2250
2579
|
}
|
|
2251
|
-
if (group !== void 0) {
|
|
2252
|
-
localVarQueryParameter["group"] = group;
|
|
2253
|
-
}
|
|
2254
2580
|
if (uploadedBy !== void 0) {
|
|
2255
2581
|
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2256
2582
|
}
|
|
2583
|
+
if (group !== void 0) {
|
|
2584
|
+
localVarQueryParameter["group"] = group;
|
|
2585
|
+
}
|
|
2257
2586
|
if (size !== void 0) {
|
|
2258
2587
|
localVarQueryParameter["size"] = size;
|
|
2259
2588
|
}
|
|
2260
|
-
if (page !== void 0) {
|
|
2261
|
-
localVarQueryParameter["page"] = page;
|
|
2262
|
-
}
|
|
2263
2589
|
if (labelSelector) {
|
|
2264
2590
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2265
2591
|
}
|
|
2266
2592
|
if (fieldSelector) {
|
|
2267
2593
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2268
2594
|
}
|
|
2595
|
+
if (page !== void 0) {
|
|
2596
|
+
localVarQueryParameter["page"] = page;
|
|
2597
|
+
}
|
|
2269
2598
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2270
2599
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2271
2600
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2352,8 +2681,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
2352
2681
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
2353
2682
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2354
2683
|
},
|
|
2355
|
-
async searchAttachments(policy, displayName,
|
|
2356
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
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);
|
|
2357
2686
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2358
2687
|
},
|
|
2359
2688
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -2381,8 +2710,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
2381
2710
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
2382
2711
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2383
2712
|
},
|
|
2384
|
-
searchAttachments(policy, displayName,
|
|
2385
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
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));
|
|
2386
2715
|
},
|
|
2387
2716
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
2388
2717
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -2406,7 +2735,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
2406
2735
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2407
2736
|
}
|
|
2408
2737
|
searchAttachments(requestParameters = {}, options) {
|
|
2409
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
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));
|
|
2410
2739
|
}
|
|
2411
2740
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
2412
2741
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4685,6 +5014,12 @@ const PostSpecVisibleEnum = {
|
|
|
4685
5014
|
Private: "PRIVATE"
|
|
4686
5015
|
};
|
|
4687
5016
|
|
|
5017
|
+
const SinglePageSpecVisibleEnum = {
|
|
5018
|
+
Public: "PUBLIC",
|
|
5019
|
+
Internal: "INTERNAL",
|
|
5020
|
+
Private: "PRIVATE"
|
|
5021
|
+
};
|
|
5022
|
+
|
|
4688
5023
|
exports.ApiHaloRunV1alpha1ContentApi = ApiHaloRunV1alpha1ContentApi;
|
|
4689
5024
|
exports.ApiHaloRunV1alpha1ContentApiAxiosParamCreator = ApiHaloRunV1alpha1ContentApiAxiosParamCreator;
|
|
4690
5025
|
exports.ApiHaloRunV1alpha1ContentApiFactory = ApiHaloRunV1alpha1ContentApiFactory;
|
|
@@ -4723,6 +5058,10 @@ exports.ContentHaloRunV1alpha1ReplyApi = ContentHaloRunV1alpha1ReplyApi;
|
|
|
4723
5058
|
exports.ContentHaloRunV1alpha1ReplyApiAxiosParamCreator = ContentHaloRunV1alpha1ReplyApiAxiosParamCreator;
|
|
4724
5059
|
exports.ContentHaloRunV1alpha1ReplyApiFactory = ContentHaloRunV1alpha1ReplyApiFactory;
|
|
4725
5060
|
exports.ContentHaloRunV1alpha1ReplyApiFp = ContentHaloRunV1alpha1ReplyApiFp;
|
|
5061
|
+
exports.ContentHaloRunV1alpha1SinglePageApi = ContentHaloRunV1alpha1SinglePageApi;
|
|
5062
|
+
exports.ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator = ContentHaloRunV1alpha1SinglePageApiAxiosParamCreator;
|
|
5063
|
+
exports.ContentHaloRunV1alpha1SinglePageApiFactory = ContentHaloRunV1alpha1SinglePageApiFactory;
|
|
5064
|
+
exports.ContentHaloRunV1alpha1SinglePageApiFp = ContentHaloRunV1alpha1SinglePageApiFp;
|
|
4726
5065
|
exports.ContentHaloRunV1alpha1SnapshotApi = ContentHaloRunV1alpha1SnapshotApi;
|
|
4727
5066
|
exports.ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator = ContentHaloRunV1alpha1SnapshotApiAxiosParamCreator;
|
|
4728
5067
|
exports.ContentHaloRunV1alpha1SnapshotApiFactory = ContentHaloRunV1alpha1SnapshotApiFactory;
|
|
@@ -4741,6 +5080,7 @@ exports.PluginHaloRunV1alpha1ReverseProxyApiFactory = PluginHaloRunV1alpha1Rever
|
|
|
4741
5080
|
exports.PluginHaloRunV1alpha1ReverseProxyApiFp = PluginHaloRunV1alpha1ReverseProxyApiFp;
|
|
4742
5081
|
exports.PluginStatusPhaseEnum = PluginStatusPhaseEnum;
|
|
4743
5082
|
exports.PostSpecVisibleEnum = PostSpecVisibleEnum;
|
|
5083
|
+
exports.SinglePageSpecVisibleEnum = SinglePageSpecVisibleEnum;
|
|
4744
5084
|
exports.StorageHaloRunV1alpha1AttachmentApi = StorageHaloRunV1alpha1AttachmentApi;
|
|
4745
5085
|
exports.StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator;
|
|
4746
5086
|
exports.StorageHaloRunV1alpha1AttachmentApiFactory = StorageHaloRunV1alpha1AttachmentApiFactory;
|