@orangefox-recovery/foxclient 5.2.5 → 5.2.6

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/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
7
  *
8
- * The version of the OpenAPI document: 5.2.5
8
+ * The version of the OpenAPI document: 5.2.6
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.StatsApi = exports.StatsApiFactory = exports.StatsApiFp = exports.StatsApiAxiosParamCreator = exports.ReleaseApi = exports.ReleaseApiFactory = exports.ReleaseApiFp = exports.ReleaseApiAxiosParamCreator = exports.DeviceApi = exports.DeviceApiFactory = exports.DeviceApiFp = exports.DeviceApiAxiosParamCreator = exports.ReleasesSort = exports.ReleaseType = void 0;
25
+ exports.StatsApi = exports.StatsApiFactory = exports.StatsApiFp = exports.StatsApiAxiosParamCreator = exports.ReleaseApi = exports.ReleaseApiFactory = exports.ReleaseApiFp = exports.ReleaseApiAxiosParamCreator = exports.PasteApi = exports.PasteApiFactory = exports.PasteApiFp = exports.PasteApiAxiosParamCreator = exports.DeviceApi = exports.DeviceApiFactory = exports.DeviceApiFp = exports.DeviceApiAxiosParamCreator = exports.ReleasesSort = exports.ReleaseType = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -431,6 +431,177 @@ class DeviceApi extends base_1.BaseAPI {
431
431
  }
432
432
  }
433
433
  exports.DeviceApi = DeviceApi;
434
+ /**
435
+ * PasteApi - axios parameter creator
436
+ * @export
437
+ */
438
+ const PasteApiAxiosParamCreator = function (configuration) {
439
+ return {
440
+ /**
441
+ * Create a new paste.
442
+ * @summary Create Paste
443
+ * @param {PasteInput} pasteInput
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ createPastePastePost: (pasteInput_1, ...args_1) => __awaiter(this, [pasteInput_1, ...args_1], void 0, function* (pasteInput, options = {}) {
448
+ // verify required parameter 'pasteInput' is not null or undefined
449
+ (0, common_1.assertParamExists)('createPastePastePost', 'pasteInput', pasteInput);
450
+ const localVarPath = `/paste/`;
451
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
452
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
453
+ let baseOptions;
454
+ if (configuration) {
455
+ baseOptions = configuration.baseOptions;
456
+ }
457
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
458
+ const localVarHeaderParameter = {};
459
+ const localVarQueryParameter = {};
460
+ localVarHeaderParameter['Content-Type'] = 'application/json';
461
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
462
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
463
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
464
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(pasteInput, localVarRequestOptions, configuration);
465
+ return {
466
+ url: (0, common_1.toPathString)(localVarUrlObj),
467
+ options: localVarRequestOptions,
468
+ };
469
+ }),
470
+ /**
471
+ * Get a paste by ID.
472
+ * @summary Get Paste
473
+ * @param {string} pasteId
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ getPastePastePasteIdGet: (pasteId_1, ...args_1) => __awaiter(this, [pasteId_1, ...args_1], void 0, function* (pasteId, options = {}) {
478
+ // verify required parameter 'pasteId' is not null or undefined
479
+ (0, common_1.assertParamExists)('getPastePastePasteIdGet', 'pasteId', pasteId);
480
+ const localVarPath = `/paste/{paste_id}`
481
+ .replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
483
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
484
+ let baseOptions;
485
+ if (configuration) {
486
+ baseOptions = configuration.baseOptions;
487
+ }
488
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
489
+ const localVarHeaderParameter = {};
490
+ const localVarQueryParameter = {};
491
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
492
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
493
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
494
+ return {
495
+ url: (0, common_1.toPathString)(localVarUrlObj),
496
+ options: localVarRequestOptions,
497
+ };
498
+ }),
499
+ };
500
+ };
501
+ exports.PasteApiAxiosParamCreator = PasteApiAxiosParamCreator;
502
+ /**
503
+ * PasteApi - functional programming interface
504
+ * @export
505
+ */
506
+ const PasteApiFp = function (configuration) {
507
+ const localVarAxiosParamCreator = (0, exports.PasteApiAxiosParamCreator)(configuration);
508
+ return {
509
+ /**
510
+ * Create a new paste.
511
+ * @summary Create Paste
512
+ * @param {PasteInput} pasteInput
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ createPastePastePost(pasteInput, options) {
517
+ return __awaiter(this, void 0, void 0, function* () {
518
+ var _a, _b, _c;
519
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPastePastePost(pasteInput, options);
520
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
521
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PasteApi.createPastePastePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
522
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
523
+ });
524
+ },
525
+ /**
526
+ * Get a paste by ID.
527
+ * @summary Get Paste
528
+ * @param {string} pasteId
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ getPastePastePasteIdGet(pasteId, options) {
533
+ return __awaiter(this, void 0, void 0, function* () {
534
+ var _a, _b, _c;
535
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastePastePasteIdGet(pasteId, options);
536
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
537
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PasteApi.getPastePastePasteIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
538
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
539
+ });
540
+ },
541
+ };
542
+ };
543
+ exports.PasteApiFp = PasteApiFp;
544
+ /**
545
+ * PasteApi - factory interface
546
+ * @export
547
+ */
548
+ const PasteApiFactory = function (configuration, basePath, axios) {
549
+ const localVarFp = (0, exports.PasteApiFp)(configuration);
550
+ return {
551
+ /**
552
+ * Create a new paste.
553
+ * @summary Create Paste
554
+ * @param {PasteInput} pasteInput
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ */
558
+ createPastePastePost(pasteInput, options) {
559
+ return localVarFp.createPastePastePost(pasteInput, options).then((request) => request(axios, basePath));
560
+ },
561
+ /**
562
+ * Get a paste by ID.
563
+ * @summary Get Paste
564
+ * @param {string} pasteId
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ getPastePastePasteIdGet(pasteId, options) {
569
+ return localVarFp.getPastePastePasteIdGet(pasteId, options).then((request) => request(axios, basePath));
570
+ },
571
+ };
572
+ };
573
+ exports.PasteApiFactory = PasteApiFactory;
574
+ /**
575
+ * PasteApi - object-oriented interface
576
+ * @export
577
+ * @class PasteApi
578
+ * @extends {BaseAPI}
579
+ */
580
+ class PasteApi extends base_1.BaseAPI {
581
+ /**
582
+ * Create a new paste.
583
+ * @summary Create Paste
584
+ * @param {PasteInput} pasteInput
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ * @memberof PasteApi
588
+ */
589
+ createPastePastePost(pasteInput, options) {
590
+ return (0, exports.PasteApiFp)(this.configuration).createPastePastePost(pasteInput, options).then((request) => request(this.axios, this.basePath));
591
+ }
592
+ /**
593
+ * Get a paste by ID.
594
+ * @summary Get Paste
595
+ * @param {string} pasteId
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ * @memberof PasteApi
599
+ */
600
+ getPastePastePasteIdGet(pasteId, options) {
601
+ return (0, exports.PasteApiFp)(this.configuration).getPastePastePasteIdGet(pasteId, options).then((request) => request(this.axios, this.basePath));
602
+ }
603
+ }
604
+ exports.PasteApi = PasteApi;
434
605
  /**
435
606
  * ReleaseApi - axios parameter creator
436
607
  * @export
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.2.5
5
+ * The version of the OpenAPI document: 5.2.6
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
7
  *
8
- * The version of the OpenAPI document: 5.2.5
8
+ * The version of the OpenAPI document: 5.2.6
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.2.5
5
+ * The version of the OpenAPI document: 5.2.6
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
7
  *
8
- * The version of the OpenAPI document: 5.2.5
8
+ * The version of the OpenAPI document: 5.2.6
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.2.5
5
+ * The version of the OpenAPI document: 5.2.6
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
7
  *
8
- * The version of the OpenAPI document: 5.2.5
8
+ * The version of the OpenAPI document: 5.2.6
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.2.5
5
+ * The version of the OpenAPI document: 5.2.6
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -255,6 +255,68 @@ export interface MaintainerShortModel {
255
255
  */
256
256
  'username': string;
257
257
  }
258
+ /**
259
+ *
260
+ * @export
261
+ * @interface PasteInput
262
+ */
263
+ export interface PasteInput {
264
+ /**
265
+ *
266
+ * @type {string}
267
+ * @memberof PasteInput
268
+ */
269
+ '_id'?: string | null;
270
+ /**
271
+ *
272
+ * @type {string}
273
+ * @memberof PasteInput
274
+ */
275
+ 'content': string;
276
+ /**
277
+ *
278
+ * @type {string}
279
+ * @memberof PasteInput
280
+ */
281
+ 'ip_address': string;
282
+ /**
283
+ *
284
+ * @type {string}
285
+ * @memberof PasteInput
286
+ */
287
+ 'created_at'?: string;
288
+ }
289
+ /**
290
+ *
291
+ * @export
292
+ * @interface PasteOutput
293
+ */
294
+ export interface PasteOutput {
295
+ /**
296
+ *
297
+ * @type {string}
298
+ * @memberof PasteOutput
299
+ */
300
+ '_id'?: string | null;
301
+ /**
302
+ *
303
+ * @type {string}
304
+ * @memberof PasteOutput
305
+ */
306
+ 'content': string;
307
+ /**
308
+ *
309
+ * @type {string}
310
+ * @memberof PasteOutput
311
+ */
312
+ 'ip_address': string;
313
+ /**
314
+ *
315
+ * @type {string}
316
+ * @memberof PasteOutput
317
+ */
318
+ 'created_at'?: string;
319
+ }
258
320
  /**
259
321
  *
260
322
  * @export
@@ -906,6 +968,123 @@ export declare class DeviceApi extends BaseAPI implements DeviceApiInterface {
906
968
  */
907
969
  getOems(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListResponseStr, any>>;
908
970
  }
971
+ /**
972
+ * PasteApi - axios parameter creator
973
+ * @export
974
+ */
975
+ export declare const PasteApiAxiosParamCreator: (configuration?: Configuration) => {
976
+ /**
977
+ * Create a new paste.
978
+ * @summary Create Paste
979
+ * @param {PasteInput} pasteInput
980
+ * @param {*} [options] Override http request option.
981
+ * @throws {RequiredError}
982
+ */
983
+ createPastePastePost: (pasteInput: PasteInput, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
984
+ /**
985
+ * Get a paste by ID.
986
+ * @summary Get Paste
987
+ * @param {string} pasteId
988
+ * @param {*} [options] Override http request option.
989
+ * @throws {RequiredError}
990
+ */
991
+ getPastePastePasteIdGet: (pasteId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
992
+ };
993
+ /**
994
+ * PasteApi - functional programming interface
995
+ * @export
996
+ */
997
+ export declare const PasteApiFp: (configuration?: Configuration) => {
998
+ /**
999
+ * Create a new paste.
1000
+ * @summary Create Paste
1001
+ * @param {PasteInput} pasteInput
1002
+ * @param {*} [options] Override http request option.
1003
+ * @throws {RequiredError}
1004
+ */
1005
+ createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>>;
1006
+ /**
1007
+ * Get a paste by ID.
1008
+ * @summary Get Paste
1009
+ * @param {string} pasteId
1010
+ * @param {*} [options] Override http request option.
1011
+ * @throws {RequiredError}
1012
+ */
1013
+ getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>>;
1014
+ };
1015
+ /**
1016
+ * PasteApi - factory interface
1017
+ * @export
1018
+ */
1019
+ export declare const PasteApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1020
+ /**
1021
+ * Create a new paste.
1022
+ * @summary Create Paste
1023
+ * @param {PasteInput} pasteInput
1024
+ * @param {*} [options] Override http request option.
1025
+ * @throws {RequiredError}
1026
+ */
1027
+ createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
1028
+ /**
1029
+ * Get a paste by ID.
1030
+ * @summary Get Paste
1031
+ * @param {string} pasteId
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ */
1035
+ getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
1036
+ };
1037
+ /**
1038
+ * PasteApi - interface
1039
+ * @export
1040
+ * @interface PasteApi
1041
+ */
1042
+ export interface PasteApiInterface {
1043
+ /**
1044
+ * Create a new paste.
1045
+ * @summary Create Paste
1046
+ * @param {PasteInput} pasteInput
1047
+ * @param {*} [options] Override http request option.
1048
+ * @throws {RequiredError}
1049
+ * @memberof PasteApiInterface
1050
+ */
1051
+ createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
1052
+ /**
1053
+ * Get a paste by ID.
1054
+ * @summary Get Paste
1055
+ * @param {string} pasteId
1056
+ * @param {*} [options] Override http request option.
1057
+ * @throws {RequiredError}
1058
+ * @memberof PasteApiInterface
1059
+ */
1060
+ getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
1061
+ }
1062
+ /**
1063
+ * PasteApi - object-oriented interface
1064
+ * @export
1065
+ * @class PasteApi
1066
+ * @extends {BaseAPI}
1067
+ */
1068
+ export declare class PasteApi extends BaseAPI implements PasteApiInterface {
1069
+ /**
1070
+ * Create a new paste.
1071
+ * @summary Create Paste
1072
+ * @param {PasteInput} pasteInput
1073
+ * @param {*} [options] Override http request option.
1074
+ * @throws {RequiredError}
1075
+ * @memberof PasteApi
1076
+ */
1077
+ createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PasteOutput, any>>;
1078
+ /**
1079
+ * Get a paste by ID.
1080
+ * @summary Get Paste
1081
+ * @param {string} pasteId
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ * @memberof PasteApi
1085
+ */
1086
+ getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PasteOutput, any>>;
1087
+ }
909
1088
  /**
910
1089
  * ReleaseApi - axios parameter creator
911
1090
  * @export
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Fox API
5
5
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
6
  *
7
- * The version of the OpenAPI document: 5.2.5
7
+ * The version of the OpenAPI document: 5.2.6
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,7 +23,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  import globalAxios from 'axios';
24
24
  // Some imports not used depending on template conditions
25
25
  // @ts-ignore
26
- import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from './common';
26
+ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
29
  /**
@@ -424,6 +424,173 @@ export class DeviceApi extends BaseAPI {
424
424
  return DeviceApiFp(this.configuration).getOems(options).then((request) => request(this.axios, this.basePath));
425
425
  }
426
426
  }
427
+ /**
428
+ * PasteApi - axios parameter creator
429
+ * @export
430
+ */
431
+ export const PasteApiAxiosParamCreator = function (configuration) {
432
+ return {
433
+ /**
434
+ * Create a new paste.
435
+ * @summary Create Paste
436
+ * @param {PasteInput} pasteInput
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ createPastePastePost: (pasteInput_1, ...args_1) => __awaiter(this, [pasteInput_1, ...args_1], void 0, function* (pasteInput, options = {}) {
441
+ // verify required parameter 'pasteInput' is not null or undefined
442
+ assertParamExists('createPastePastePost', 'pasteInput', pasteInput);
443
+ const localVarPath = `/paste/`;
444
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
445
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
446
+ let baseOptions;
447
+ if (configuration) {
448
+ baseOptions = configuration.baseOptions;
449
+ }
450
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
451
+ const localVarHeaderParameter = {};
452
+ const localVarQueryParameter = {};
453
+ localVarHeaderParameter['Content-Type'] = 'application/json';
454
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
455
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
456
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
457
+ localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration);
458
+ return {
459
+ url: toPathString(localVarUrlObj),
460
+ options: localVarRequestOptions,
461
+ };
462
+ }),
463
+ /**
464
+ * Get a paste by ID.
465
+ * @summary Get Paste
466
+ * @param {string} pasteId
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ getPastePastePasteIdGet: (pasteId_1, ...args_1) => __awaiter(this, [pasteId_1, ...args_1], void 0, function* (pasteId, options = {}) {
471
+ // verify required parameter 'pasteId' is not null or undefined
472
+ assertParamExists('getPastePastePasteIdGet', 'pasteId', pasteId);
473
+ const localVarPath = `/paste/{paste_id}`
474
+ .replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
475
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
476
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
477
+ let baseOptions;
478
+ if (configuration) {
479
+ baseOptions = configuration.baseOptions;
480
+ }
481
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
482
+ const localVarHeaderParameter = {};
483
+ const localVarQueryParameter = {};
484
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
485
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
486
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
487
+ return {
488
+ url: toPathString(localVarUrlObj),
489
+ options: localVarRequestOptions,
490
+ };
491
+ }),
492
+ };
493
+ };
494
+ /**
495
+ * PasteApi - functional programming interface
496
+ * @export
497
+ */
498
+ export const PasteApiFp = function (configuration) {
499
+ const localVarAxiosParamCreator = PasteApiAxiosParamCreator(configuration);
500
+ return {
501
+ /**
502
+ * Create a new paste.
503
+ * @summary Create Paste
504
+ * @param {PasteInput} pasteInput
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ */
508
+ createPastePastePost(pasteInput, options) {
509
+ return __awaiter(this, void 0, void 0, function* () {
510
+ var _a, _b, _c;
511
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPastePastePost(pasteInput, options);
512
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
513
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PasteApi.createPastePastePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
514
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
515
+ });
516
+ },
517
+ /**
518
+ * Get a paste by ID.
519
+ * @summary Get Paste
520
+ * @param {string} pasteId
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ getPastePastePasteIdGet(pasteId, options) {
525
+ return __awaiter(this, void 0, void 0, function* () {
526
+ var _a, _b, _c;
527
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastePastePasteIdGet(pasteId, options);
528
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
529
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PasteApi.getPastePastePasteIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
530
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
531
+ });
532
+ },
533
+ };
534
+ };
535
+ /**
536
+ * PasteApi - factory interface
537
+ * @export
538
+ */
539
+ export const PasteApiFactory = function (configuration, basePath, axios) {
540
+ const localVarFp = PasteApiFp(configuration);
541
+ return {
542
+ /**
543
+ * Create a new paste.
544
+ * @summary Create Paste
545
+ * @param {PasteInput} pasteInput
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ createPastePastePost(pasteInput, options) {
550
+ return localVarFp.createPastePastePost(pasteInput, options).then((request) => request(axios, basePath));
551
+ },
552
+ /**
553
+ * Get a paste by ID.
554
+ * @summary Get Paste
555
+ * @param {string} pasteId
556
+ * @param {*} [options] Override http request option.
557
+ * @throws {RequiredError}
558
+ */
559
+ getPastePastePasteIdGet(pasteId, options) {
560
+ return localVarFp.getPastePastePasteIdGet(pasteId, options).then((request) => request(axios, basePath));
561
+ },
562
+ };
563
+ };
564
+ /**
565
+ * PasteApi - object-oriented interface
566
+ * @export
567
+ * @class PasteApi
568
+ * @extends {BaseAPI}
569
+ */
570
+ export class PasteApi extends BaseAPI {
571
+ /**
572
+ * Create a new paste.
573
+ * @summary Create Paste
574
+ * @param {PasteInput} pasteInput
575
+ * @param {*} [options] Override http request option.
576
+ * @throws {RequiredError}
577
+ * @memberof PasteApi
578
+ */
579
+ createPastePastePost(pasteInput, options) {
580
+ return PasteApiFp(this.configuration).createPastePastePost(pasteInput, options).then((request) => request(this.axios, this.basePath));
581
+ }
582
+ /**
583
+ * Get a paste by ID.
584
+ * @summary Get Paste
585
+ * @param {string} pasteId
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ * @memberof PasteApi
589
+ */
590
+ getPastePastePasteIdGet(pasteId, options) {
591
+ return PasteApiFp(this.configuration).getPastePastePasteIdGet(pasteId, options).then((request) => request(this.axios, this.basePath));
592
+ }
593
+ }
427
594
  /**
428
595
  * ReleaseApi - axios parameter creator
429
596
  * @export
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.2.5
5
+ * The version of the OpenAPI document: 5.2.6
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Fox API
5
5
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
6
  *
7
- * The version of the OpenAPI document: 5.2.5
7
+ * The version of the OpenAPI document: 5.2.6
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).