@halo-dev/api-client 0.0.27 → 0.0.28
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 +216 -9
- package/dist/index.d.ts +629 -102
- package/dist/index.mjs +213 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -462,7 +462,7 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
462
462
|
options: localVarRequestOptions
|
|
463
463
|
};
|
|
464
464
|
},
|
|
465
|
-
listPosts: async (sort, publishPhase, category, contributor,
|
|
465
|
+
listPosts: async (sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options = {}) => {
|
|
466
466
|
const localVarPath = `/apis/api.console.halo.run/v1alpha1/posts`;
|
|
467
467
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
468
468
|
let baseOptions;
|
|
@@ -477,6 +477,9 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
477
477
|
if (sort !== void 0) {
|
|
478
478
|
localVarQueryParameter["sort"] = sort;
|
|
479
479
|
}
|
|
480
|
+
if (sortOrder !== void 0) {
|
|
481
|
+
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
482
|
+
}
|
|
480
483
|
if (publishPhase !== void 0) {
|
|
481
484
|
localVarQueryParameter["publishPhase"] = publishPhase;
|
|
482
485
|
}
|
|
@@ -486,9 +489,6 @@ const ApiConsoleHaloRunV1alpha1PostApiAxiosParamCreator = function(configuration
|
|
|
486
489
|
if (contributor) {
|
|
487
490
|
localVarQueryParameter["contributor"] = Array.from(contributor);
|
|
488
491
|
}
|
|
489
|
-
if (sortOrder !== void 0) {
|
|
490
|
-
localVarQueryParameter["sortOrder"] = sortOrder;
|
|
491
|
-
}
|
|
492
492
|
if (keyword !== void 0) {
|
|
493
493
|
localVarQueryParameter["keyword"] = keyword;
|
|
494
494
|
}
|
|
@@ -572,8 +572,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFp = function(configuration) {
|
|
|
572
572
|
const localVarAxiosArgs = await localVarAxiosParamCreator.draftPost(postRequest, options);
|
|
573
573
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
574
574
|
},
|
|
575
|
-
async listPosts(sort, publishPhase, category, contributor,
|
|
576
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, publishPhase, category, contributor,
|
|
575
|
+
async listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
576
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options);
|
|
577
577
|
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
578
578
|
},
|
|
579
579
|
async publishPost(name, options) {
|
|
@@ -592,8 +592,8 @@ const ApiConsoleHaloRunV1alpha1PostApiFactory = function(configuration, basePath
|
|
|
592
592
|
draftPost(postRequest, options) {
|
|
593
593
|
return localVarFp.draftPost(postRequest, options).then((request) => request(axios, basePath));
|
|
594
594
|
},
|
|
595
|
-
listPosts(sort, publishPhase, category, contributor,
|
|
596
|
-
return localVarFp.listPosts(sort, publishPhase, category, contributor,
|
|
595
|
+
listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options) {
|
|
596
|
+
return localVarFp.listPosts(sort, sortOrder, publishPhase, category, contributor, keyword, visible, tag, size, labelSelector, fieldSelector, page, options).then((request) => request(axios, basePath));
|
|
597
597
|
},
|
|
598
598
|
publishPost(name, options) {
|
|
599
599
|
return localVarFp.publishPost(name, options).then((request) => request(axios, basePath));
|
|
@@ -608,7 +608,7 @@ class ApiConsoleHaloRunV1alpha1PostApi extends BaseAPI {
|
|
|
608
608
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).draftPost(requestParameters.postRequest, options).then((request) => request(this.axios, this.basePath));
|
|
609
609
|
}
|
|
610
610
|
listPosts(requestParameters = {}, options) {
|
|
611
|
-
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.
|
|
611
|
+
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).listPosts(requestParameters.sort, requestParameters.sortOrder, requestParameters.publishPhase, requestParameters.category, requestParameters.contributor, requestParameters.keyword, requestParameters.visible, requestParameters.tag, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
612
612
|
}
|
|
613
613
|
publishPost(requestParameters, options) {
|
|
614
614
|
return ApiConsoleHaloRunV1alpha1PostApiFp(this.configuration).publishPost(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1071,6 +1071,209 @@ class ApiConsoleHaloRunV1alpha1UserApi extends BaseAPI {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
1073
|
|
|
1074
|
+
const ApiHaloRunV1alpha1CommentApiAxiosParamCreator = function(configuration) {
|
|
1075
|
+
return {
|
|
1076
|
+
createComment1: async (commentRequest, options = {}) => {
|
|
1077
|
+
assertParamExists("createComment1", "commentRequest", commentRequest);
|
|
1078
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
|
1079
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1080
|
+
let baseOptions;
|
|
1081
|
+
if (configuration) {
|
|
1082
|
+
baseOptions = configuration.baseOptions;
|
|
1083
|
+
}
|
|
1084
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1085
|
+
const localVarHeaderParameter = {};
|
|
1086
|
+
const localVarQueryParameter = {};
|
|
1087
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1088
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1089
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1090
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1092
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1093
|
+
localVarRequestOptions.data = serializeDataIfNeeded(commentRequest, localVarRequestOptions, configuration);
|
|
1094
|
+
return {
|
|
1095
|
+
url: toPathString(localVarUrlObj),
|
|
1096
|
+
options: localVarRequestOptions
|
|
1097
|
+
};
|
|
1098
|
+
},
|
|
1099
|
+
createReply1: async (name, replyRequest, options = {}) => {
|
|
1100
|
+
assertParamExists("createReply1", "name", name);
|
|
1101
|
+
assertParamExists("createReply1", "replyRequest", replyRequest);
|
|
1102
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1104
|
+
let baseOptions;
|
|
1105
|
+
if (configuration) {
|
|
1106
|
+
baseOptions = configuration.baseOptions;
|
|
1107
|
+
}
|
|
1108
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1109
|
+
const localVarHeaderParameter = {};
|
|
1110
|
+
const localVarQueryParameter = {};
|
|
1111
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1112
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1113
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1114
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1115
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1116
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1117
|
+
localVarRequestOptions.data = serializeDataIfNeeded(replyRequest, localVarRequestOptions, configuration);
|
|
1118
|
+
return {
|
|
1119
|
+
url: toPathString(localVarUrlObj),
|
|
1120
|
+
options: localVarRequestOptions
|
|
1121
|
+
};
|
|
1122
|
+
},
|
|
1123
|
+
getComment: async (name, options = {}) => {
|
|
1124
|
+
assertParamExists("getComment", "name", name);
|
|
1125
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1126
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1127
|
+
let baseOptions;
|
|
1128
|
+
if (configuration) {
|
|
1129
|
+
baseOptions = configuration.baseOptions;
|
|
1130
|
+
}
|
|
1131
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1132
|
+
const localVarHeaderParameter = {};
|
|
1133
|
+
const localVarQueryParameter = {};
|
|
1134
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1135
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1136
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1138
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1139
|
+
return {
|
|
1140
|
+
url: toPathString(localVarUrlObj),
|
|
1141
|
+
options: localVarRequestOptions
|
|
1142
|
+
};
|
|
1143
|
+
},
|
|
1144
|
+
listCommentReplies: async (name, size, page, options = {}) => {
|
|
1145
|
+
assertParamExists("listCommentReplies", "name", name);
|
|
1146
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
1147
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1148
|
+
let baseOptions;
|
|
1149
|
+
if (configuration) {
|
|
1150
|
+
baseOptions = configuration.baseOptions;
|
|
1151
|
+
}
|
|
1152
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1153
|
+
const localVarHeaderParameter = {};
|
|
1154
|
+
const localVarQueryParameter = {};
|
|
1155
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1156
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1157
|
+
if (size !== void 0) {
|
|
1158
|
+
localVarQueryParameter["size"] = size;
|
|
1159
|
+
}
|
|
1160
|
+
if (page !== void 0) {
|
|
1161
|
+
localVarQueryParameter["page"] = page;
|
|
1162
|
+
}
|
|
1163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1165
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1166
|
+
return {
|
|
1167
|
+
url: toPathString(localVarUrlObj),
|
|
1168
|
+
options: localVarRequestOptions
|
|
1169
|
+
};
|
|
1170
|
+
},
|
|
1171
|
+
listComments1: async (name, version, kind, group, size, page, options = {}) => {
|
|
1172
|
+
assertParamExists("listComments1", "name", name);
|
|
1173
|
+
assertParamExists("listComments1", "version", version);
|
|
1174
|
+
assertParamExists("listComments1", "kind", kind);
|
|
1175
|
+
const localVarPath = `/apis/api.halo.run/v1alpha1/comments`;
|
|
1176
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1177
|
+
let baseOptions;
|
|
1178
|
+
if (configuration) {
|
|
1179
|
+
baseOptions = configuration.baseOptions;
|
|
1180
|
+
}
|
|
1181
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1182
|
+
const localVarHeaderParameter = {};
|
|
1183
|
+
const localVarQueryParameter = {};
|
|
1184
|
+
setBasicAuthToObject(localVarRequestOptions, configuration);
|
|
1185
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1186
|
+
if (name !== void 0) {
|
|
1187
|
+
localVarQueryParameter["name"] = name;
|
|
1188
|
+
}
|
|
1189
|
+
if (version !== void 0) {
|
|
1190
|
+
localVarQueryParameter["version"] = version;
|
|
1191
|
+
}
|
|
1192
|
+
if (group !== void 0) {
|
|
1193
|
+
localVarQueryParameter["group"] = group;
|
|
1194
|
+
}
|
|
1195
|
+
if (kind !== void 0) {
|
|
1196
|
+
localVarQueryParameter["kind"] = kind;
|
|
1197
|
+
}
|
|
1198
|
+
if (size !== void 0) {
|
|
1199
|
+
localVarQueryParameter["size"] = size;
|
|
1200
|
+
}
|
|
1201
|
+
if (page !== void 0) {
|
|
1202
|
+
localVarQueryParameter["page"] = page;
|
|
1203
|
+
}
|
|
1204
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1205
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1206
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1207
|
+
return {
|
|
1208
|
+
url: toPathString(localVarUrlObj),
|
|
1209
|
+
options: localVarRequestOptions
|
|
1210
|
+
};
|
|
1211
|
+
}
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
const ApiHaloRunV1alpha1CommentApiFp = function(configuration) {
|
|
1215
|
+
const localVarAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator(configuration);
|
|
1216
|
+
return {
|
|
1217
|
+
async createComment1(commentRequest, options) {
|
|
1218
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createComment1(commentRequest, options);
|
|
1219
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1220
|
+
},
|
|
1221
|
+
async createReply1(name, replyRequest, options) {
|
|
1222
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createReply1(name, replyRequest, options);
|
|
1223
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1224
|
+
},
|
|
1225
|
+
async getComment(name, options) {
|
|
1226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getComment(name, options);
|
|
1227
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1228
|
+
},
|
|
1229
|
+
async listCommentReplies(name, size, page, options) {
|
|
1230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommentReplies(name, size, page, options);
|
|
1231
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1232
|
+
},
|
|
1233
|
+
async listComments1(name, version, kind, group, size, page, options) {
|
|
1234
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listComments1(name, version, kind, group, size, page, options);
|
|
1235
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1238
|
+
};
|
|
1239
|
+
const ApiHaloRunV1alpha1CommentApiFactory = function(configuration, basePath, axios) {
|
|
1240
|
+
const localVarFp = ApiHaloRunV1alpha1CommentApiFp(configuration);
|
|
1241
|
+
return {
|
|
1242
|
+
createComment1(commentRequest, options) {
|
|
1243
|
+
return localVarFp.createComment1(commentRequest, options).then((request) => request(axios, basePath));
|
|
1244
|
+
},
|
|
1245
|
+
createReply1(name, replyRequest, options) {
|
|
1246
|
+
return localVarFp.createReply1(name, replyRequest, options).then((request) => request(axios, basePath));
|
|
1247
|
+
},
|
|
1248
|
+
getComment(name, options) {
|
|
1249
|
+
return localVarFp.getComment(name, options).then((request) => request(axios, basePath));
|
|
1250
|
+
},
|
|
1251
|
+
listCommentReplies(name, size, page, options) {
|
|
1252
|
+
return localVarFp.listCommentReplies(name, size, page, options).then((request) => request(axios, basePath));
|
|
1253
|
+
},
|
|
1254
|
+
listComments1(name, version, kind, group, size, page, options) {
|
|
1255
|
+
return localVarFp.listComments1(name, version, kind, group, size, page, options).then((request) => request(axios, basePath));
|
|
1256
|
+
}
|
|
1257
|
+
};
|
|
1258
|
+
};
|
|
1259
|
+
class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
|
|
1260
|
+
createComment1(requestParameters, options) {
|
|
1261
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createComment1(requestParameters.commentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1262
|
+
}
|
|
1263
|
+
createReply1(requestParameters, options) {
|
|
1264
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).createReply1(requestParameters.name, requestParameters.replyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1265
|
+
}
|
|
1266
|
+
getComment(requestParameters, options) {
|
|
1267
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).getComment(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1268
|
+
}
|
|
1269
|
+
listCommentReplies(requestParameters, options) {
|
|
1270
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listCommentReplies(requestParameters.name, requestParameters.size, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1271
|
+
}
|
|
1272
|
+
listComments1(requestParameters, options) {
|
|
1273
|
+
return ApiHaloRunV1alpha1CommentApiFp(this.configuration).listComments1(requestParameters.name, requestParameters.version, requestParameters.kind, requestParameters.group, requestParameters.size, requestParameters.page, options).then((request) => request(this.axios, this.basePath));
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1074
1277
|
const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function(configuration) {
|
|
1075
1278
|
return {
|
|
1076
1279
|
createcontentHaloRunV1alpha1Category: async (category, options = {}) => {
|
|
@@ -5342,6 +5545,10 @@ exports.ApiConsoleHaloRunV1alpha1UserApi = ApiConsoleHaloRunV1alpha1UserApi;
|
|
|
5342
5545
|
exports.ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1UserApiAxiosParamCreator;
|
|
5343
5546
|
exports.ApiConsoleHaloRunV1alpha1UserApiFactory = ApiConsoleHaloRunV1alpha1UserApiFactory;
|
|
5344
5547
|
exports.ApiConsoleHaloRunV1alpha1UserApiFp = ApiConsoleHaloRunV1alpha1UserApiFp;
|
|
5548
|
+
exports.ApiHaloRunV1alpha1CommentApi = ApiHaloRunV1alpha1CommentApi;
|
|
5549
|
+
exports.ApiHaloRunV1alpha1CommentApiAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator;
|
|
5550
|
+
exports.ApiHaloRunV1alpha1CommentApiFactory = ApiHaloRunV1alpha1CommentApiFactory;
|
|
5551
|
+
exports.ApiHaloRunV1alpha1CommentApiFp = ApiHaloRunV1alpha1CommentApiFp;
|
|
5345
5552
|
exports.CompactPostVisibleEnum = CompactPostVisibleEnum;
|
|
5346
5553
|
exports.ConditionStatusEnum = ConditionStatusEnum;
|
|
5347
5554
|
exports.Configuration = Configuration;
|