@halo-dev/api-client 0.0.34 → 0.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -906,6 +906,53 @@ class ApiConsoleHaloRunV1alpha1SinglePageApi extends BaseAPI {
906
906
  }
907
907
  }
908
908
 
909
+ const ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = function(configuration) {
910
+ return {
911
+ getStats: async (options = {}) => {
912
+ const localVarPath = `/apis/api.console.halo.run/v1alpha1/stats`;
913
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
914
+ let baseOptions;
915
+ if (configuration) {
916
+ baseOptions = configuration.baseOptions;
917
+ }
918
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
919
+ const localVarHeaderParameter = {};
920
+ const localVarQueryParameter = {};
921
+ setBasicAuthToObject(localVarRequestOptions, configuration);
922
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
923
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
924
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
925
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
926
+ return {
927
+ url: toPathString(localVarUrlObj),
928
+ options: localVarRequestOptions
929
+ };
930
+ }
931
+ };
932
+ };
933
+ const ApiConsoleHaloRunV1alpha1StatsApiFp = function(configuration) {
934
+ const localVarAxiosParamCreator = ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator(configuration);
935
+ return {
936
+ async getStats(options) {
937
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStats(options);
938
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
939
+ }
940
+ };
941
+ };
942
+ const ApiConsoleHaloRunV1alpha1StatsApiFactory = function(configuration, basePath, axios) {
943
+ const localVarFp = ApiConsoleHaloRunV1alpha1StatsApiFp(configuration);
944
+ return {
945
+ getStats(options) {
946
+ return localVarFp.getStats(options).then((request) => request(axios, basePath));
947
+ }
948
+ };
949
+ };
950
+ class ApiConsoleHaloRunV1alpha1StatsApi extends BaseAPI {
951
+ getStats(options) {
952
+ return ApiConsoleHaloRunV1alpha1StatsApiFp(this.configuration).getStats(options).then((request) => request(this.axios, this.basePath));
953
+ }
954
+ }
955
+
909
956
  const ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = function(configuration) {
910
957
  return {
911
958
  installTheme: async (file, options = {}) => {
@@ -1340,6 +1387,56 @@ class ApiHaloRunV1alpha1CommentApi extends BaseAPI {
1340
1387
  }
1341
1388
  }
1342
1389
 
1390
+ const ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = function(configuration) {
1391
+ return {
1392
+ count: async (counterRequest, options = {}) => {
1393
+ assertParamExists("count", "counterRequest", counterRequest);
1394
+ const localVarPath = `/apis/api.halo.run/v1alpha1/trackers/counter`;
1395
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1396
+ let baseOptions;
1397
+ if (configuration) {
1398
+ baseOptions = configuration.baseOptions;
1399
+ }
1400
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
1401
+ const localVarHeaderParameter = {};
1402
+ const localVarQueryParameter = {};
1403
+ setBasicAuthToObject(localVarRequestOptions, configuration);
1404
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1405
+ localVarHeaderParameter["Content-Type"] = "application/json";
1406
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1407
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1408
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1409
+ localVarRequestOptions.data = serializeDataIfNeeded(counterRequest, localVarRequestOptions, configuration);
1410
+ return {
1411
+ url: toPathString(localVarUrlObj),
1412
+ options: localVarRequestOptions
1413
+ };
1414
+ }
1415
+ };
1416
+ };
1417
+ const ApiHaloRunV1alpha1TrackerApiFp = function(configuration) {
1418
+ const localVarAxiosParamCreator = ApiHaloRunV1alpha1TrackerApiAxiosParamCreator(configuration);
1419
+ return {
1420
+ async count(counterRequest, options) {
1421
+ const localVarAxiosArgs = await localVarAxiosParamCreator.count(counterRequest, options);
1422
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
1423
+ }
1424
+ };
1425
+ };
1426
+ const ApiHaloRunV1alpha1TrackerApiFactory = function(configuration, basePath, axios) {
1427
+ const localVarFp = ApiHaloRunV1alpha1TrackerApiFp(configuration);
1428
+ return {
1429
+ count(counterRequest, options) {
1430
+ return localVarFp.count(counterRequest, options).then((request) => request(axios, basePath));
1431
+ }
1432
+ };
1433
+ };
1434
+ class ApiHaloRunV1alpha1TrackerApi extends BaseAPI {
1435
+ count(requestParameters, options) {
1436
+ return ApiHaloRunV1alpha1TrackerApiFp(this.configuration).count(requestParameters.counterRequest, options).then((request) => request(this.axios, this.basePath));
1437
+ }
1438
+ }
1439
+
1343
1440
  const ContentHaloRunV1alpha1CategoryApiAxiosParamCreator = function(configuration) {
1344
1441
  return {
1345
1442
  createcontentHaloRunV1alpha1Category: async (category, options = {}) => {
@@ -3014,6 +3111,192 @@ class CoreHaloRunV1alpha1LinkGroupApi extends BaseAPI {
3014
3111
  }
3015
3112
  }
3016
3113
 
3114
+ const MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = function(configuration) {
3115
+ return {
3116
+ createmetricsHaloRunV1alpha1Counter: async (counter, options = {}) => {
3117
+ const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
3118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3119
+ let baseOptions;
3120
+ if (configuration) {
3121
+ baseOptions = configuration.baseOptions;
3122
+ }
3123
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
3124
+ const localVarHeaderParameter = {};
3125
+ const localVarQueryParameter = {};
3126
+ setBasicAuthToObject(localVarRequestOptions, configuration);
3127
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3128
+ localVarHeaderParameter["Content-Type"] = "application/json";
3129
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3130
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3131
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3132
+ localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration);
3133
+ return {
3134
+ url: toPathString(localVarUrlObj),
3135
+ options: localVarRequestOptions
3136
+ };
3137
+ },
3138
+ deletemetricsHaloRunV1alpha1Counter: async (name, options = {}) => {
3139
+ assertParamExists("deletemetricsHaloRunV1alpha1Counter", "name", name);
3140
+ const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
3141
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3142
+ let baseOptions;
3143
+ if (configuration) {
3144
+ baseOptions = configuration.baseOptions;
3145
+ }
3146
+ const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
3147
+ const localVarHeaderParameter = {};
3148
+ const localVarQueryParameter = {};
3149
+ setBasicAuthToObject(localVarRequestOptions, configuration);
3150
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3151
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3152
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3153
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3154
+ return {
3155
+ url: toPathString(localVarUrlObj),
3156
+ options: localVarRequestOptions
3157
+ };
3158
+ },
3159
+ getmetricsHaloRunV1alpha1Counter: async (name, options = {}) => {
3160
+ assertParamExists("getmetricsHaloRunV1alpha1Counter", "name", name);
3161
+ const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
3162
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3163
+ let baseOptions;
3164
+ if (configuration) {
3165
+ baseOptions = configuration.baseOptions;
3166
+ }
3167
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3168
+ const localVarHeaderParameter = {};
3169
+ const localVarQueryParameter = {};
3170
+ setBasicAuthToObject(localVarRequestOptions, configuration);
3171
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3172
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3174
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3175
+ return {
3176
+ url: toPathString(localVarUrlObj),
3177
+ options: localVarRequestOptions
3178
+ };
3179
+ },
3180
+ listmetricsHaloRunV1alpha1Counter: async (page, size, labelSelector, fieldSelector, options = {}) => {
3181
+ const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters`;
3182
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3183
+ let baseOptions;
3184
+ if (configuration) {
3185
+ baseOptions = configuration.baseOptions;
3186
+ }
3187
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
3188
+ const localVarHeaderParameter = {};
3189
+ const localVarQueryParameter = {};
3190
+ setBasicAuthToObject(localVarRequestOptions, configuration);
3191
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3192
+ if (page !== void 0) {
3193
+ localVarQueryParameter["page"] = page;
3194
+ }
3195
+ if (size !== void 0) {
3196
+ localVarQueryParameter["size"] = size;
3197
+ }
3198
+ if (labelSelector) {
3199
+ localVarQueryParameter["labelSelector"] = labelSelector;
3200
+ }
3201
+ if (fieldSelector) {
3202
+ localVarQueryParameter["fieldSelector"] = fieldSelector;
3203
+ }
3204
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3205
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3206
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3207
+ return {
3208
+ url: toPathString(localVarUrlObj),
3209
+ options: localVarRequestOptions
3210
+ };
3211
+ },
3212
+ updatemetricsHaloRunV1alpha1Counter: async (name, counter, options = {}) => {
3213
+ assertParamExists("updatemetricsHaloRunV1alpha1Counter", "name", name);
3214
+ const localVarPath = `/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(name)));
3215
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3216
+ let baseOptions;
3217
+ if (configuration) {
3218
+ baseOptions = configuration.baseOptions;
3219
+ }
3220
+ const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
3221
+ const localVarHeaderParameter = {};
3222
+ const localVarQueryParameter = {};
3223
+ setBasicAuthToObject(localVarRequestOptions, configuration);
3224
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
3225
+ localVarHeaderParameter["Content-Type"] = "application/json";
3226
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3227
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3228
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3229
+ localVarRequestOptions.data = serializeDataIfNeeded(counter, localVarRequestOptions, configuration);
3230
+ return {
3231
+ url: toPathString(localVarUrlObj),
3232
+ options: localVarRequestOptions
3233
+ };
3234
+ }
3235
+ };
3236
+ };
3237
+ const MetricsHaloRunV1alpha1CounterApiFp = function(configuration) {
3238
+ const localVarAxiosParamCreator = MetricsHaloRunV1alpha1CounterApiAxiosParamCreator(configuration);
3239
+ return {
3240
+ async createmetricsHaloRunV1alpha1Counter(counter, options) {
3241
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createmetricsHaloRunV1alpha1Counter(counter, options);
3242
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
3243
+ },
3244
+ async deletemetricsHaloRunV1alpha1Counter(name, options) {
3245
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletemetricsHaloRunV1alpha1Counter(name, options);
3246
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
3247
+ },
3248
+ async getmetricsHaloRunV1alpha1Counter(name, options) {
3249
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getmetricsHaloRunV1alpha1Counter(name, options);
3250
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
3251
+ },
3252
+ async listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options) {
3253
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options);
3254
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
3255
+ },
3256
+ async updatemetricsHaloRunV1alpha1Counter(name, counter, options) {
3257
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatemetricsHaloRunV1alpha1Counter(name, counter, options);
3258
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default, BASE_PATH, configuration);
3259
+ }
3260
+ };
3261
+ };
3262
+ const MetricsHaloRunV1alpha1CounterApiFactory = function(configuration, basePath, axios) {
3263
+ const localVarFp = MetricsHaloRunV1alpha1CounterApiFp(configuration);
3264
+ return {
3265
+ createmetricsHaloRunV1alpha1Counter(counter, options) {
3266
+ return localVarFp.createmetricsHaloRunV1alpha1Counter(counter, options).then((request) => request(axios, basePath));
3267
+ },
3268
+ deletemetricsHaloRunV1alpha1Counter(name, options) {
3269
+ return localVarFp.deletemetricsHaloRunV1alpha1Counter(name, options).then((request) => request(axios, basePath));
3270
+ },
3271
+ getmetricsHaloRunV1alpha1Counter(name, options) {
3272
+ return localVarFp.getmetricsHaloRunV1alpha1Counter(name, options).then((request) => request(axios, basePath));
3273
+ },
3274
+ listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options) {
3275
+ return localVarFp.listmetricsHaloRunV1alpha1Counter(page, size, labelSelector, fieldSelector, options).then((request) => request(axios, basePath));
3276
+ },
3277
+ updatemetricsHaloRunV1alpha1Counter(name, counter, options) {
3278
+ return localVarFp.updatemetricsHaloRunV1alpha1Counter(name, counter, options).then((request) => request(axios, basePath));
3279
+ }
3280
+ };
3281
+ };
3282
+ class MetricsHaloRunV1alpha1CounterApi extends BaseAPI {
3283
+ createmetricsHaloRunV1alpha1Counter(requestParameters = {}, options) {
3284
+ return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).createmetricsHaloRunV1alpha1Counter(requestParameters.counter, options).then((request) => request(this.axios, this.basePath));
3285
+ }
3286
+ deletemetricsHaloRunV1alpha1Counter(requestParameters, options) {
3287
+ return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).deletemetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
3288
+ }
3289
+ getmetricsHaloRunV1alpha1Counter(requestParameters, options) {
3290
+ return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).getmetricsHaloRunV1alpha1Counter(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
3291
+ }
3292
+ listmetricsHaloRunV1alpha1Counter(requestParameters = {}, options) {
3293
+ return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).listmetricsHaloRunV1alpha1Counter(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, options).then((request) => request(this.axios, this.basePath));
3294
+ }
3295
+ updatemetricsHaloRunV1alpha1Counter(requestParameters, options) {
3296
+ return MetricsHaloRunV1alpha1CounterApiFp(this.configuration).updatemetricsHaloRunV1alpha1Counter(requestParameters.name, requestParameters.counter, options).then((request) => request(this.axios, this.basePath));
3297
+ }
3298
+ }
3299
+
3017
3300
  const PluginHaloRunV1alpha1PluginApiAxiosParamCreator = function(configuration) {
3018
3301
  return {
3019
3302
  createpluginHaloRunV1alpha1Plugin: async (plugin, options = {}) => {
@@ -5969,6 +6252,10 @@ exports.ApiConsoleHaloRunV1alpha1SinglePageApi = ApiConsoleHaloRunV1alpha1Single
5969
6252
  exports.ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1SinglePageApiAxiosParamCreator;
5970
6253
  exports.ApiConsoleHaloRunV1alpha1SinglePageApiFactory = ApiConsoleHaloRunV1alpha1SinglePageApiFactory;
5971
6254
  exports.ApiConsoleHaloRunV1alpha1SinglePageApiFp = ApiConsoleHaloRunV1alpha1SinglePageApiFp;
6255
+ exports.ApiConsoleHaloRunV1alpha1StatsApi = ApiConsoleHaloRunV1alpha1StatsApi;
6256
+ exports.ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1StatsApiAxiosParamCreator;
6257
+ exports.ApiConsoleHaloRunV1alpha1StatsApiFactory = ApiConsoleHaloRunV1alpha1StatsApiFactory;
6258
+ exports.ApiConsoleHaloRunV1alpha1StatsApiFp = ApiConsoleHaloRunV1alpha1StatsApiFp;
5972
6259
  exports.ApiConsoleHaloRunV1alpha1ThemeApi = ApiConsoleHaloRunV1alpha1ThemeApi;
5973
6260
  exports.ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator = ApiConsoleHaloRunV1alpha1ThemeApiAxiosParamCreator;
5974
6261
  exports.ApiConsoleHaloRunV1alpha1ThemeApiFactory = ApiConsoleHaloRunV1alpha1ThemeApiFactory;
@@ -5981,6 +6268,10 @@ exports.ApiHaloRunV1alpha1CommentApi = ApiHaloRunV1alpha1CommentApi;
5981
6268
  exports.ApiHaloRunV1alpha1CommentApiAxiosParamCreator = ApiHaloRunV1alpha1CommentApiAxiosParamCreator;
5982
6269
  exports.ApiHaloRunV1alpha1CommentApiFactory = ApiHaloRunV1alpha1CommentApiFactory;
5983
6270
  exports.ApiHaloRunV1alpha1CommentApiFp = ApiHaloRunV1alpha1CommentApiFp;
6271
+ exports.ApiHaloRunV1alpha1TrackerApi = ApiHaloRunV1alpha1TrackerApi;
6272
+ exports.ApiHaloRunV1alpha1TrackerApiAxiosParamCreator = ApiHaloRunV1alpha1TrackerApiAxiosParamCreator;
6273
+ exports.ApiHaloRunV1alpha1TrackerApiFactory = ApiHaloRunV1alpha1TrackerApiFactory;
6274
+ exports.ApiHaloRunV1alpha1TrackerApiFp = ApiHaloRunV1alpha1TrackerApiFp;
5984
6275
  exports.ConditionStatusEnum = ConditionStatusEnum;
5985
6276
  exports.Configuration = Configuration;
5986
6277
  exports.ContentHaloRunV1alpha1CategoryApi = ContentHaloRunV1alpha1CategoryApi;
@@ -6019,6 +6310,10 @@ exports.CoreHaloRunV1alpha1LinkGroupApi = CoreHaloRunV1alpha1LinkGroupApi;
6019
6310
  exports.CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator = CoreHaloRunV1alpha1LinkGroupApiAxiosParamCreator;
6020
6311
  exports.CoreHaloRunV1alpha1LinkGroupApiFactory = CoreHaloRunV1alpha1LinkGroupApiFactory;
6021
6312
  exports.CoreHaloRunV1alpha1LinkGroupApiFp = CoreHaloRunV1alpha1LinkGroupApiFp;
6313
+ exports.MetricsHaloRunV1alpha1CounterApi = MetricsHaloRunV1alpha1CounterApi;
6314
+ exports.MetricsHaloRunV1alpha1CounterApiAxiosParamCreator = MetricsHaloRunV1alpha1CounterApiAxiosParamCreator;
6315
+ exports.MetricsHaloRunV1alpha1CounterApiFactory = MetricsHaloRunV1alpha1CounterApiFactory;
6316
+ exports.MetricsHaloRunV1alpha1CounterApiFp = MetricsHaloRunV1alpha1CounterApiFp;
6022
6317
  exports.PluginHaloRunV1alpha1PluginApi = PluginHaloRunV1alpha1PluginApi;
6023
6318
  exports.PluginHaloRunV1alpha1PluginApiAxiosParamCreator = PluginHaloRunV1alpha1PluginApiAxiosParamCreator;
6024
6319
  exports.PluginHaloRunV1alpha1PluginApiFactory = PluginHaloRunV1alpha1PluginApiFactory;