@halo-dev/api-client 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +241 -127
- package/dist/index.d.ts +712 -282
- package/dist/index.mjs +234 -128
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -75,6 +75,95 @@ const createRequestFunction = function(axiosArgs, globalAxios, BASE_PATH, config
|
|
|
75
75
|
};
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
79
|
+
return {
|
|
80
|
+
listComments: async (sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
81
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
|
82
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
83
|
+
let baseOptions;
|
|
84
|
+
if (configuration) {
|
|
85
|
+
baseOptions = configuration.baseOptions;
|
|
86
|
+
}
|
|
87
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
88
|
+
const localVarHeaderParameter = {};
|
|
89
|
+
const localVarQueryParameter = {};
|
|
90
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
91
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
92
|
+
if (sort !== void 0) {
|
|
93
|
+
localVarQueryParameter["sort"] = sort;
|
|
94
|
+
}
|
|
95
|
+
if (hidden !== void 0) {
|
|
96
|
+
localVarQueryParameter["hidden"] = hidden;
|
|
97
|
+
}
|
|
98
|
+
if (top !== void 0) {
|
|
99
|
+
localVarQueryParameter["top"] = top;
|
|
100
|
+
}
|
|
101
|
+
if (sortOrder !== void 0) {
|
|
102
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
103
|
+
}
|
|
104
|
+
if (approved !== void 0) {
|
|
105
|
+
localVarQueryParameter["approved"] = approved;
|
|
106
|
+
}
|
|
107
|
+
if (allowNotification !== void 0) {
|
|
108
|
+
localVarQueryParameter["allowNotification"] = allowNotification;
|
|
109
|
+
}
|
|
110
|
+
if (ownerKind !== void 0) {
|
|
111
|
+
localVarQueryParameter["ownerKind"] = ownerKind;
|
|
112
|
+
}
|
|
113
|
+
if (ownerName !== void 0) {
|
|
114
|
+
localVarQueryParameter["ownerName"] = ownerName;
|
|
115
|
+
}
|
|
116
|
+
if (subjectKind !== void 0) {
|
|
117
|
+
localVarQueryParameter["subjectKind"] = subjectKind;
|
|
118
|
+
}
|
|
119
|
+
if (subjectName !== void 0) {
|
|
120
|
+
localVarQueryParameter["subjectName"] = subjectName;
|
|
121
|
+
}
|
|
122
|
+
if (size !== void 0) {
|
|
123
|
+
localVarQueryParameter["size"] = size;
|
|
124
|
+
}
|
|
125
|
+
if (page !== void 0) {
|
|
126
|
+
localVarQueryParameter["page"] = page;
|
|
127
|
+
}
|
|
128
|
+
if (labelSelector) {
|
|
129
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
130
|
+
}
|
|
131
|
+
if (fieldSelector) {
|
|
132
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
133
|
+
}
|
|
134
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
137
|
+
return {
|
|
138
|
+
url: toPathString(localVarUrlObj),
|
|
139
|
+
options: localVarRequestOptions
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
145
|
+
const localVarAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator(configuration);
|
|
146
|
+
return {
|
|
147
|
+
async listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
148
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options);
|
|
149
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, axios) {
|
|
154
|
+
const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration);
|
|
155
|
+
return {
|
|
156
|
+
listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options) {
|
|
157
|
+
return localVarFp.listComments(sort, hidden, top, sortOrder, approved, allowNotification, ownerKind, ownerName, subjectKind, subjectName, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
162
|
+
listComments(requestParameters = {}, options) {
|
|
163
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments(requestParameters.sort, requestParameters.hidden, requestParameters.top, requestParameters.sortOrder, requestParameters.approved, requestParameters.allowNotification, requestParameters.ownerKind, requestParameters.ownerName, requestParameters.subjectKind, requestParameters.subjectName, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
78
167
|
const ApiHaloRunV1alpha1ContentApiAxiosParamCreator = function(configuration) {
|
|
79
168
|
return {
|
|
80
169
|
draftSnapshotContent: async (contentRequest, options = {}) => {
|
|
@@ -303,30 +392,7 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
303
392
|
options: localVarRequestOptions
|
|
304
393
|
};
|
|
305
394
|
},
|
|
306
|
-
|
|
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 = {}) => {
|
|
395
|
+
listPosts: async (tags, categories, contributors, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
330
396
|
const localVarPath = `/apis/api.halo.run/v1alpha1/posts`;
|
|
331
397
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
332
398
|
let baseOptions;
|
|
@@ -338,27 +404,27 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
338
404
|
const localVarQueryParameter = {};
|
|
339
405
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
340
406
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
341
|
-
if (
|
|
342
|
-
localVarQueryParameter["
|
|
407
|
+
if (tags) {
|
|
408
|
+
localVarQueryParameter["tags"] = Array.from(tags);
|
|
343
409
|
}
|
|
344
410
|
if (categories) {
|
|
345
411
|
localVarQueryParameter["categories"] = Array.from(categories);
|
|
346
412
|
}
|
|
347
|
-
if (
|
|
348
|
-
localVarQueryParameter["
|
|
413
|
+
if (contributors) {
|
|
414
|
+
localVarQueryParameter["contributors"] = Array.from(contributors);
|
|
349
415
|
}
|
|
350
416
|
if (size !== void 0) {
|
|
351
417
|
localVarQueryParameter["size"] = size;
|
|
352
418
|
}
|
|
419
|
+
if (page !== void 0) {
|
|
420
|
+
localVarQueryParameter["page"] = page;
|
|
421
|
+
}
|
|
353
422
|
if (labelSelector) {
|
|
354
423
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
355
424
|
}
|
|
356
425
|
if (fieldSelector) {
|
|
357
426
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
358
427
|
}
|
|
359
|
-
if (page !== void 0) {
|
|
360
|
-
localVarQueryParameter["page"] = page;
|
|
361
|
-
}
|
|
362
428
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
363
429
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
364
430
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -367,33 +433,19 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
367
433
|
options: localVarRequestOptions
|
|
368
434
|
};
|
|
369
435
|
},
|
|
370
|
-
|
|
371
|
-
|
|
436
|
+
publishPost: async (name, options = {}) => {
|
|
437
|
+
assertParamExists("publishPost", "name", name);
|
|
438
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/posts/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
372
439
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
373
440
|
let baseOptions;
|
|
374
441
|
if (configuration) {
|
|
375
442
|
baseOptions = configuration.baseOptions;
|
|
376
443
|
}
|
|
377
|
-
const localVarRequestOptions = { method: "
|
|
444
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
378
445
|
const localVarHeaderParameter = {};
|
|
379
446
|
const localVarQueryParameter = {};
|
|
380
447
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
381
448
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
382
|
-
if (contributors) {
|
|
383
|
-
localVarQueryParameter["contributors"] = Array.from(contributors);
|
|
384
|
-
}
|
|
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;
|
|
393
|
-
}
|
|
394
|
-
if (page !== void 0) {
|
|
395
|
-
localVarQueryParameter["page"] = page;
|
|
396
|
-
}
|
|
397
449
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
398
450
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
399
451
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -402,9 +454,10 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
402
454
|
options: localVarRequestOptions
|
|
403
455
|
};
|
|
404
456
|
},
|
|
405
|
-
|
|
406
|
-
assertParamExists("
|
|
407
|
-
|
|
457
|
+
updateDraftPost: async (name, postRequest, options = {}) => {
|
|
458
|
+
assertParamExists("updateDraftPost", "name", name);
|
|
459
|
+
assertParamExists("updateDraftPost", "postRequest", postRequest);
|
|
460
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/posts/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
408
461
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
409
462
|
let baseOptions;
|
|
410
463
|
if (configuration) {
|
|
@@ -415,39 +468,134 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
415
468
|
const localVarQueryParameter = {};
|
|
416
469
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
417
470
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
471
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
418
472
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
419
473
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
420
474
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
475
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postRequest, localVarRequestOptions, configuration);
|
|
421
476
|
return {
|
|
422
477
|
url: toPathString(localVarUrlObj),
|
|
423
478
|
options: localVarRequestOptions
|
|
424
479
|
};
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
const ApiHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
484
|
+
const localVarAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator(configuration);
|
|
485
|
+
return {
|
|
486
|
+
async draftPost(postRequest, options) {
|
|
487
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
488
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
425
489
|
},
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
490
|
+
async listPosts(tags, categories, contributors, size, page, labelSelector, fieldSelector, options) {
|
|
491
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(tags, categories, contributors, size, page, labelSelector, fieldSelector, options);
|
|
492
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
493
|
+
},
|
|
494
|
+
async publishPost(name, options) {
|
|
495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, options);
|
|
496
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
497
|
+
},
|
|
498
|
+
async updateDraftPost(name, postRequest, options) {
|
|
499
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
|
|
500
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
const ApiHaloRunV1alpha1PostApiFactory = function(configuration, basePath, axios) {
|
|
505
|
+
const localVarFp = ApiHaloRunV1alpha1PostApiFp(configuration);
|
|
506
|
+
return {
|
|
507
|
+
draftPost(postRequest, options) {
|
|
508
|
+
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
509
|
+
},
|
|
510
|
+
listPosts(tags, categories, contributors, size, page, labelSelector, fieldSelector, options) {
|
|
511
|
+
return localVarFp.listPosts(tags, categories, contributors, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
512
|
+
},
|
|
513
|
+
publishPost(name, options) {
|
|
514
|
+
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
515
|
+
},
|
|
516
|
+
updateDraftPost(name, postRequest, options) {
|
|
517
|
+
return localVarFp.updateDraftPost(name, postRequest, options).then((request) => request(axios, basePath));
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
class ApiHaloRunV1alpha1PostApi extends BaseAPI {
|
|
522
|
+
draftPost(requestParameters, options) {
|
|
523
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
524
|
+
}
|
|
525
|
+
listPosts(requestParameters = {}, options) {
|
|
526
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.tags, requestParameters.categories, requestParameters.contributors, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
527
|
+
}
|
|
528
|
+
publishPost(requestParameters, options) {
|
|
529
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
530
|
+
}
|
|
531
|
+
updateDraftPost(requestParameters, options) {
|
|
532
|
+
return ApiHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
const ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = function(configuration) {
|
|
537
|
+
return {
|
|
538
|
+
draftSinglePage: async (singlePageRequest, options = {}) => {
|
|
539
|
+
assertParamExists("draftSinglePage", "singlePageRequest", singlePageRequest);
|
|
540
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
429
541
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
430
542
|
let baseOptions;
|
|
431
543
|
if (configuration) {
|
|
432
544
|
baseOptions = configuration.baseOptions;
|
|
433
545
|
}
|
|
434
|
-
const localVarRequestOptions = { method: "
|
|
546
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
435
547
|
const localVarHeaderParameter = {};
|
|
436
548
|
const localVarQueryParameter = {};
|
|
437
549
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
438
550
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
551
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
439
552
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
440
553
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
441
554
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
555
|
+
localVarRequestOptions.data = serializeDataIfNeeded(singlePageRequest, localVarRequestOptions, configuration);
|
|
442
556
|
return {
|
|
443
557
|
url: toPathString(localVarUrlObj),
|
|
444
558
|
options: localVarRequestOptions
|
|
445
559
|
};
|
|
446
560
|
},
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
561
|
+
listSinglePages: async (contributors, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
562
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages`;
|
|
563
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
564
|
+
let baseOptions;
|
|
565
|
+
if (configuration) {
|
|
566
|
+
baseOptions = configuration.baseOptions;
|
|
567
|
+
}
|
|
568
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
569
|
+
const localVarHeaderParameter = {};
|
|
570
|
+
const localVarQueryParameter = {};
|
|
571
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
572
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
573
|
+
if (contributors) {
|
|
574
|
+
localVarQueryParameter["contributors"] = Array.from(contributors);
|
|
575
|
+
}
|
|
576
|
+
if (size !== void 0) {
|
|
577
|
+
localVarQueryParameter["size"] = size;
|
|
578
|
+
}
|
|
579
|
+
if (page !== void 0) {
|
|
580
|
+
localVarQueryParameter["page"] = page;
|
|
581
|
+
}
|
|
582
|
+
if (labelSelector) {
|
|
583
|
+
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
584
|
+
}
|
|
585
|
+
if (fieldSelector) {
|
|
586
|
+
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
587
|
+
}
|
|
588
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
589
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
590
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
591
|
+
return {
|
|
592
|
+
url: toPathString(localVarUrlObj),
|
|
593
|
+
options: localVarRequestOptions
|
|
594
|
+
};
|
|
595
|
+
},
|
|
596
|
+
publishSinglePage: async (name, options = {}) => {
|
|
597
|
+
assertParamExists("publishSinglePage", "name", name);
|
|
598
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
451
599
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
452
600
|
let baseOptions;
|
|
453
601
|
if (configuration) {
|
|
@@ -458,11 +606,9 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
458
606
|
const localVarQueryParameter = {};
|
|
459
607
|
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
460
608
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
461
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
462
609
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
463
610
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
464
611
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
465
|
-
localVarRequestOptions.data = serializeDataIfNeeded(postRequest, localVarRequestOptions, configuration);
|
|
466
612
|
return {
|
|
467
613
|
url: toPathString(localVarUrlObj),
|
|
468
614
|
options: localVarRequestOptions
|
|
@@ -494,96 +640,56 @@ const ApiHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration) {
|
|
|
494
640
|
}
|
|
495
641
|
};
|
|
496
642
|
};
|
|
497
|
-
const
|
|
498
|
-
const localVarAxiosParamCreator =
|
|
643
|
+
const ApiHaloRunV1alpha1SinglePageApiFp = function(configuration) {
|
|
644
|
+
const localVarAxiosParamCreator = ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator(configuration);
|
|
499
645
|
return {
|
|
500
|
-
async draftPost(postRequest, options) {
|
|
501
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
502
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
503
|
-
},
|
|
504
646
|
async draftSinglePage(singlePageRequest, options) {
|
|
505
647
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftSinglePage(singlePageRequest, options);
|
|
506
648
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
507
649
|
},
|
|
508
|
-
async
|
|
509
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
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);
|
|
514
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
515
|
-
},
|
|
516
|
-
async publishPost(name, options) {
|
|
517
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.publishPost(name, options);
|
|
650
|
+
async listSinglePages(contributors, size, page, labelSelector, fieldSelector, options) {
|
|
651
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSinglePages(contributors, size, page, labelSelector, fieldSelector, options);
|
|
518
652
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
519
653
|
},
|
|
520
654
|
async publishSinglePage(name, options) {
|
|
521
655
|
const localVarAxiosArgs = await localVarAxiosParamCreator.publishSinglePage(name, options);
|
|
522
656
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
523
657
|
},
|
|
524
|
-
async updateDraftPost(name, postRequest, options) {
|
|
525
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftPost(name, postRequest, options);
|
|
526
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
527
|
-
},
|
|
528
658
|
async updateDraftSinglePage(name, singlePageRequest, options) {
|
|
529
659
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDraftSinglePage(name, singlePageRequest, options);
|
|
530
660
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
531
661
|
}
|
|
532
662
|
};
|
|
533
663
|
};
|
|
534
|
-
const
|
|
535
|
-
const localVarFp =
|
|
664
|
+
const ApiHaloRunV1alpha1SinglePageApiFactory = function(configuration, basePath, axios) {
|
|
665
|
+
const localVarFp = ApiHaloRunV1alpha1SinglePageApiFp(configuration);
|
|
536
666
|
return {
|
|
537
|
-
draftPost(postRequest, options) {
|
|
538
|
-
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
539
|
-
},
|
|
540
667
|
draftSinglePage(singlePageRequest, options) {
|
|
541
668
|
return localVarFp.draftSinglePage(singlePageRequest, options).then((request) => request(axios, basePath));
|
|
542
669
|
},
|
|
543
|
-
|
|
544
|
-
return localVarFp.
|
|
545
|
-
},
|
|
546
|
-
listSinglePages(contributors, size, labelSelector, fieldSelector, page, options) {
|
|
547
|
-
return localVarFp.listSinglePages(contributors, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
548
|
-
},
|
|
549
|
-
publishPost(name, options) {
|
|
550
|
-
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
670
|
+
listSinglePages(contributors, size, page, labelSelector, fieldSelector, options) {
|
|
671
|
+
return localVarFp.listSinglePages(contributors, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
551
672
|
},
|
|
552
673
|
publishSinglePage(name, options) {
|
|
553
674
|
return localVarFp.publishSinglePage(name, options).then((request) => request(axios, basePath));
|
|
554
675
|
},
|
|
555
|
-
updateDraftPost(name, postRequest, options) {
|
|
556
|
-
return localVarFp.updateDraftPost(name, postRequest, options).then((request) => request(axios, basePath));
|
|
557
|
-
},
|
|
558
676
|
updateDraftSinglePage(name, singlePageRequest, options) {
|
|
559
677
|
return localVarFp.updateDraftSinglePage(name, singlePageRequest, options).then((request) => request(axios, basePath));
|
|
560
678
|
}
|
|
561
679
|
};
|
|
562
680
|
};
|
|
563
|
-
class
|
|
564
|
-
draftPost(requestParameters, options) {
|
|
565
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
566
|
-
}
|
|
681
|
+
class ApiHaloRunV1alpha1SinglePageApi extends BaseAPI {
|
|
567
682
|
draftSinglePage(requestParameters, options) {
|
|
568
|
-
return
|
|
569
|
-
}
|
|
570
|
-
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));
|
|
683
|
+
return ApiHaloRunV1alpha1SinglePageApiFp(this.configuration).draftSinglePage(requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
572
684
|
}
|
|
573
685
|
listSinglePages(requestParameters = {}, options) {
|
|
574
|
-
return
|
|
575
|
-
}
|
|
576
|
-
publishPost(requestParameters, options) {
|
|
577
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
686
|
+
return ApiHaloRunV1alpha1SinglePageApiFp(this.configuration).listSinglePages(requestParameters.contributors, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
578
687
|
}
|
|
579
688
|
publishSinglePage(requestParameters, options) {
|
|
580
|
-
return
|
|
581
|
-
}
|
|
582
|
-
updateDraftPost(requestParameters, options) {
|
|
583
|
-
return ApiHaloRunV1alpha1PostApiFp(this.configuration).updateDraftPost(requestParameters.name, requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
689
|
+
return ApiHaloRunV1alpha1SinglePageApiFp(this.configuration).publishSinglePage(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
584
690
|
}
|
|
585
691
|
updateDraftSinglePage(requestParameters, options) {
|
|
586
|
-
return
|
|
692
|
+
return ApiHaloRunV1alpha1SinglePageApiFp(this.configuration).updateDraftSinglePage(requestParameters.name, requestParameters.singlePageRequest, options).then((request) => request(this.axios, this.basePath));
|
|
587
693
|
}
|
|
588
694
|
}
|
|
589
695
|
|
|
@@ -2559,7 +2665,7 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2559
2665
|
options: localVarRequestOptions
|
|
2560
2666
|
};
|
|
2561
2667
|
},
|
|
2562
|
-
searchAttachments: async (policy, displayName,
|
|
2668
|
+
searchAttachments: async (policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options = {}) => {
|
|
2563
2669
|
const localVarPath = `/apis/api.halo.run/v1alpha1/attachments`;
|
|
2564
2670
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2565
2671
|
let baseOptions;
|
|
@@ -2577,24 +2683,24 @@ const StorageHaloRunV1alpha1AttachmentApiAxiosParamCreator = function(configurat
|
|
|
2577
2683
|
if (displayName !== void 0) {
|
|
2578
2684
|
localVarQueryParameter["displayName"] = displayName;
|
|
2579
2685
|
}
|
|
2580
|
-
if (uploadedBy !== void 0) {
|
|
2581
|
-
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2582
|
-
}
|
|
2583
2686
|
if (group !== void 0) {
|
|
2584
2687
|
localVarQueryParameter["group"] = group;
|
|
2585
2688
|
}
|
|
2689
|
+
if (uploadedBy !== void 0) {
|
|
2690
|
+
localVarQueryParameter["uploadedBy"] = uploadedBy;
|
|
2691
|
+
}
|
|
2586
2692
|
if (size !== void 0) {
|
|
2587
2693
|
localVarQueryParameter["size"] = size;
|
|
2588
2694
|
}
|
|
2695
|
+
if (page !== void 0) {
|
|
2696
|
+
localVarQueryParameter["page"] = page;
|
|
2697
|
+
}
|
|
2589
2698
|
if (labelSelector) {
|
|
2590
2699
|
localVarQueryParameter["labelSelector"] = labelSelector;
|
|
2591
2700
|
}
|
|
2592
2701
|
if (fieldSelector) {
|
|
2593
2702
|
localVarQueryParameter["fieldSelector"] = fieldSelector;
|
|
2594
2703
|
}
|
|
2595
|
-
if (page !== void 0) {
|
|
2596
|
-
localVarQueryParameter["page"] = page;
|
|
2597
|
-
}
|
|
2598
2704
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2599
2705
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2600
2706
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
@@ -2681,8 +2787,8 @@ const StorageHaloRunV1alpha1AttachmentApiFp = function(configuration) {
|
|
|
2681
2787
|
const localVarAxiosArgs = await localVarAxiosParamCreator.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options);
|
|
2682
2788
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2683
2789
|
},
|
|
2684
|
-
async searchAttachments(policy, displayName,
|
|
2685
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName,
|
|
2790
|
+
async searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
2791
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options);
|
|
2686
2792
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
2687
2793
|
},
|
|
2688
2794
|
async updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
@@ -2710,8 +2816,8 @@ const StorageHaloRunV1alpha1AttachmentApiFactory = function(configuration, baseP
|
|
|
2710
2816
|
liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options) {
|
|
2711
2817
|
return localVarFp.liststorageHaloRunV1alpha1Attachment(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2712
2818
|
},
|
|
2713
|
-
searchAttachments(policy, displayName,
|
|
2714
|
-
return localVarFp.searchAttachments(policy, displayName,
|
|
2819
|
+
searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options) {
|
|
2820
|
+
return localVarFp.searchAttachments(policy, displayName, group, uploadedBy, size, page, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
|
|
2715
2821
|
},
|
|
2716
2822
|
updatestorageHaloRunV1alpha1Attachment(name, attachment, options) {
|
|
2717
2823
|
return localVarFp.updatestorageHaloRunV1alpha1Attachment(name, attachment, options).then((request) => request(axios, basePath));
|
|
@@ -2735,7 +2841,7 @@ class StorageHaloRunV1alpha1AttachmentApi extends BaseAPI {
|
|
|
2735
2841
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).liststorageHaloRunV1alpha1Attachment(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2736
2842
|
}
|
|
2737
2843
|
searchAttachments(requestParameters = {}, options) {
|
|
2738
|
-
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.
|
|
2844
|
+
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).searchAttachments(requestParameters.policy, requestParameters.displayName, requestParameters.group, requestParameters.uploadedBy, requestParameters.size, requestParameters.page, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
|
|
2739
2845
|
}
|
|
2740
2846
|
updatestorageHaloRunV1alpha1Attachment(requestParameters, options) {
|
|
2741
2847
|
return StorageHaloRunV1alpha1AttachmentApiFp(this.configuration).updatestorageHaloRunV1alpha1Attachment(requestParameters.name, requestParameters.attachment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5020,6 +5126,10 @@ const SinglePageSpecVisibleEnum = {
|
|
|
5020
5126
|
Private: "PRIVATE"
|
|
5021
5127
|
};
|
|
5022
5128
|
|
|
5129
|
+
exports.ApiHaloRunV1alpha1CommentApi = ApiHaloRunV1alpha1CommentApi;
|
|
5130
|
+
exports.ApiHaloRunV1alpha1CommentApiAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator;
|
|
5131
|
+
exports.ApiHaloRunV1alpha1CommentApiFactory = ApiHaloRunV1alpha1CommentApiFactory;
|
|
5132
|
+
exports.ApiHaloRunV1alpha1CommentApiFp = ApiHaloRunV1alpha1CommentApiFp;
|
|
5023
5133
|
exports.ApiHaloRunV1alpha1ContentApi = ApiHaloRunV1alpha1ContentApi;
|
|
5024
5134
|
exports.ApiHaloRunV1alpha1ContentApiAxiosParamCreator = ApiHaloRunV1alpha1ContentApiAxiosParamCreator;
|
|
5025
5135
|
exports.ApiHaloRunV1alpha1ContentApiFactory = ApiHaloRunV1alpha1ContentApiFactory;
|
|
@@ -5032,6 +5142,10 @@ exports.ApiHaloRunV1alpha1PostApi = ApiHaloRunV1alpha1PostApi;
|
|
|
5032
5142
|
exports.ApiHaloRunV1alpha1PostApiAxiosParamCreator = ApiHaloRunV1alpha1PostApiAxiosParamCreator;
|
|
5033
5143
|
exports.ApiHaloRunV1alpha1PostApiFactory = ApiHaloRunV1alpha1PostApiFactory;
|
|
5034
5144
|
exports.ApiHaloRunV1alpha1PostApiFp = ApiHaloRunV1alpha1PostApiFp;
|
|
5145
|
+
exports.ApiHaloRunV1alpha1SinglePageApi = ApiHaloRunV1alpha1SinglePageApi;
|
|
5146
|
+
exports.ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator = ApiHaloRunV1alpha1SinglePageApiAxiosParamCreator;
|
|
5147
|
+
exports.ApiHaloRunV1alpha1SinglePageApiFactory = ApiHaloRunV1alpha1SinglePageApiFactory;
|
|
5148
|
+
exports.ApiHaloRunV1alpha1SinglePageApiFp = ApiHaloRunV1alpha1SinglePageApiFp;
|
|
5035
5149
|
exports.ApiHaloRunV1alpha1ThemeApi = ApiHaloRunV1alpha1ThemeApi;
|
|
5036
5150
|
exports.ApiHaloRunV1alpha1ThemeApiAxiosParamCreator = ApiHaloRunV1alpha1ThemeApiAxiosParamCreator;
|
|
5037
5151
|
exports.ApiHaloRunV1alpha1ThemeApiFactory = ApiHaloRunV1alpha1ThemeApiFactory;
|