@gambulls-org/gambulls-apis 3.0.273 → 3.0.275
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/.idea/gambulls-apis.iml +11 -11
- package/.idea/modules.xml +7 -7
- package/.idea/vcs.xml +5 -5
- package/.openapi-generator/FILES +549 -543
- package/.openapi-generator-ignore +23 -23
- package/README.md +16 -16
- package/api.ts +10356 -10356
- package/apis/AdminAffiliateApi.js +7 -17
- package/apis/AdminAppConfigApi.js +7 -17
- package/apis/AdminAuthApi.js +7 -17
- package/apis/AdminBannerApi.js +7 -17
- package/apis/AdminBonusApi.js +7 -17
- package/apis/AdminCategoryApi.js +7 -17
- package/apis/AdminChatApi.js +7 -17
- package/apis/AdminDashboardApi.js +7 -17
- package/apis/AdminExchangeApi.js +7 -17
- package/apis/AdminFileManagementApi.js +7 -17
- package/apis/AdminGamesApi.js +7 -17
- package/apis/AdminGroupApi.js +7 -17
- package/apis/AdminLoyaltyApi.js +7 -17
- package/apis/AdminManagementApi.js +7 -17
- package/apis/AdminMenuApi.js +7 -17
- package/apis/AdminPaymentSystemApi.js +7 -17
- package/apis/AdminPinnedMessageApi.js +7 -17
- package/apis/AdminPolicyApi.js +7 -17
- package/apis/AdminProvidersApi.js +7 -17
- package/apis/AdminRakebackEventApi.js +7 -17
- package/apis/AdminReportApi.js +7 -17
- package/apis/AdminSportApi.js +164 -0
- package/apis/AdminSportApi.ts +176 -0
- package/apis/AdminUserManagementApi.js +7 -17
- package/apis/AuthApi.js +7 -17
- package/apis/CMSApi.js +7 -17
- package/apis/CronDataCleanupApi.js +7 -17
- package/apis/HealthCheckApi.js +7 -17
- package/apis/PublicBannerApi.js +7 -17
- package/apis/PublicGamesApi.js +8 -17
- package/apis/PublicGamesApi.ts +1 -0
- package/apis/PublicPolicyApi.js +7 -17
- package/apis/RGSApi.js +7 -17
- package/apis/RGSV2Api.js +7 -17
- package/apis/SportsbookApi.js +7 -17
- package/apis/TatumApi.js +7 -17
- package/apis/TestForNonProductionOnlyApi.js +7 -17
- package/apis/UserAffiliateApi.js +7 -17
- package/apis/UserAvatarApi.js +7 -17
- package/apis/UserBalanceApi.js +7 -17
- package/apis/UserBonusApi.js +7 -17
- package/apis/UserDepositApi.js +7 -17
- package/apis/UserDocumentApi.js +7 -17
- package/apis/UserGamesApi.js +7 -17
- package/apis/UserLoyaltyApi.js +7 -17
- package/apis/UserModeratorApi.js +7 -17
- package/apis/UserNotificationApi.js +7 -17
- package/apis/UserPreferencesApi.js +7 -17
- package/apis/UserProfileApi.js +7 -17
- package/apis/UserResponsibleGamingApi.js +7 -17
- package/apis/UserSportsbookApi.js +7 -17
- package/apis/UserStatisticApi.js +7 -17
- package/apis/UserTippingApi.js +7 -17
- package/apis/UserTransactionHistoryApi.js +7 -17
- package/apis/UserUploadApi.js +7 -17
- package/apis/UserWagerApi.js +7 -17
- package/apis/UserWithdrawalApi.js +7 -17
- package/apis/index.js +1 -0
- package/apis/index.ts +1 -0
- package/base.ts +86 -86
- package/common.ts +150 -150
- package/configuration.ts +110 -110
- package/git_push.sh +57 -57
- package/hooks.json +8 -8
- package/models/ApiAdminSportsGet200Response.js +61 -0
- package/models/ApiAdminSportsGet200Response.ts +100 -0
- package/models/ApiAdminSportsGet200ResponseResponseObject.js +67 -0
- package/models/ApiAdminSportsGet200ResponseResponseObject.ts +110 -0
- package/models/ApiAdminSportsGet200ResponseResponseObjectItemsInner.js +82 -0
- package/models/ApiAdminSportsGet200ResponseResponseObjectItemsInner.ts +138 -0
- package/models/ApiAdminSportsIdPatch200Response.js +61 -0
- package/models/ApiAdminSportsIdPatch200Response.ts +100 -0
- package/models/ApiAdminSportsIdPatchRequest.js +50 -0
- package/models/ApiAdminSportsIdPatchRequest.ts +73 -0
- package/models/index.js +5 -0
- package/models/index.ts +5 -0
- package/openapitools.json +7 -7
- package/package.json +26 -26
- package/tsconfig.json +108 -108
- package/workflow.sh +40 -40
|
@@ -28,23 +28,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
28
28
|
}) : function(o, v) {
|
|
29
29
|
o["default"] = v;
|
|
30
30
|
});
|
|
31
|
-
var __importStar = (this && this.__importStar) ||
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
48
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/apis/UserStatisticApi.js
CHANGED
|
@@ -28,23 +28,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
28
28
|
}) : function(o, v) {
|
|
29
29
|
o["default"] = v;
|
|
30
30
|
});
|
|
31
|
-
var __importStar = (this && this.__importStar) ||
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
48
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/apis/UserTippingApi.js
CHANGED
|
@@ -28,23 +28,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
28
28
|
}) : function(o, v) {
|
|
29
29
|
o["default"] = v;
|
|
30
30
|
});
|
|
31
|
-
var __importStar = (this && this.__importStar) ||
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
48
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -28,23 +28,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
28
28
|
}) : function(o, v) {
|
|
29
29
|
o["default"] = v;
|
|
30
30
|
});
|
|
31
|
-
var __importStar = (this && this.__importStar) ||
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
48
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/apis/UserUploadApi.js
CHANGED
|
@@ -28,23 +28,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
28
28
|
}) : function(o, v) {
|
|
29
29
|
o["default"] = v;
|
|
30
30
|
});
|
|
31
|
-
var __importStar = (this && this.__importStar) ||
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
48
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/apis/UserWagerApi.js
CHANGED
|
@@ -28,23 +28,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
28
28
|
}) : function(o, v) {
|
|
29
29
|
o["default"] = v;
|
|
30
30
|
});
|
|
31
|
-
var __importStar = (this && this.__importStar) ||
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
48
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -28,23 +28,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
28
28
|
}) : function(o, v) {
|
|
29
29
|
o["default"] = v;
|
|
30
30
|
});
|
|
31
|
-
var __importStar = (this && this.__importStar) ||
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return ownKeys(o);
|
|
39
|
-
};
|
|
40
|
-
return function (mod) {
|
|
41
|
-
if (mod && mod.__esModule) return mod;
|
|
42
|
-
var result = {};
|
|
43
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
-
__setModuleDefault(result, mod);
|
|
45
|
-
return result;
|
|
46
|
-
};
|
|
47
|
-
})();
|
|
31
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
48
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
49
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
50
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
package/apis/index.js
CHANGED
|
@@ -37,6 +37,7 @@ __exportStar(require("./AdminPolicyApi"), exports);
|
|
|
37
37
|
__exportStar(require("./AdminProvidersApi"), exports);
|
|
38
38
|
__exportStar(require("./AdminRakebackEventApi"), exports);
|
|
39
39
|
__exportStar(require("./AdminReportApi"), exports);
|
|
40
|
+
__exportStar(require("./AdminSportApi"), exports);
|
|
40
41
|
__exportStar(require("./AdminUserManagementApi"), exports);
|
|
41
42
|
__exportStar(require("./AuthApi"), exports);
|
|
42
43
|
__exportStar(require("./CMSApi"), exports);
|
package/apis/index.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from './AdminPolicyApi';
|
|
|
21
21
|
export * from './AdminProvidersApi';
|
|
22
22
|
export * from './AdminRakebackEventApi';
|
|
23
23
|
export * from './AdminReportApi';
|
|
24
|
+
export * from './AdminSportApi';
|
|
24
25
|
export * from './AdminUserManagementApi';
|
|
25
26
|
export * from './AuthApi';
|
|
26
27
|
export * from './CMSApi';
|
package/base.ts
CHANGED
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Swagger API
|
|
5
|
-
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from './configuration';
|
|
17
|
-
// Some imports not used depending on template conditions
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
|
-
import globalAxios from 'axios';
|
|
21
|
-
|
|
22
|
-
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export const COLLECTION_FORMATS = {
|
|
29
|
-
csv: ",",
|
|
30
|
-
ssv: " ",
|
|
31
|
-
tsv: "\t",
|
|
32
|
-
pipes: "|",
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface RequestArgs
|
|
39
|
-
*/
|
|
40
|
-
export interface RequestArgs {
|
|
41
|
-
url: string;
|
|
42
|
-
options: RawAxiosRequestConfig;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class BaseAPI
|
|
49
|
-
*/
|
|
50
|
-
export class BaseAPI {
|
|
51
|
-
protected configuration: Configuration | undefined;
|
|
52
|
-
|
|
53
|
-
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
54
|
-
if (configuration) {
|
|
55
|
-
this.configuration = configuration;
|
|
56
|
-
this.basePath = configuration.basePath ?? basePath;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
* @class RequiredError
|
|
65
|
-
* @extends {Error}
|
|
66
|
-
*/
|
|
67
|
-
export class RequiredError extends Error {
|
|
68
|
-
constructor(public field: string, msg?: string) {
|
|
69
|
-
super(msg);
|
|
70
|
-
this.name = "RequiredError"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface ServerMap {
|
|
75
|
-
[key: string]: {
|
|
76
|
-
url: string,
|
|
77
|
-
description: string,
|
|
78
|
-
}[];
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
|
-
export const operationServerMap: ServerMap = {
|
|
86
|
-
}
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Swagger API
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from './configuration';
|
|
17
|
+
// Some imports not used depending on template conditions
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
|
+
import globalAxios from 'axios';
|
|
21
|
+
|
|
22
|
+
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export const COLLECTION_FORMATS = {
|
|
29
|
+
csv: ",",
|
|
30
|
+
ssv: " ",
|
|
31
|
+
tsv: "\t",
|
|
32
|
+
pipes: "|",
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface RequestArgs
|
|
39
|
+
*/
|
|
40
|
+
export interface RequestArgs {
|
|
41
|
+
url: string;
|
|
42
|
+
options: RawAxiosRequestConfig;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class BaseAPI
|
|
49
|
+
*/
|
|
50
|
+
export class BaseAPI {
|
|
51
|
+
protected configuration: Configuration | undefined;
|
|
52
|
+
|
|
53
|
+
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
54
|
+
if (configuration) {
|
|
55
|
+
this.configuration = configuration;
|
|
56
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
* @class RequiredError
|
|
65
|
+
* @extends {Error}
|
|
66
|
+
*/
|
|
67
|
+
export class RequiredError extends Error {
|
|
68
|
+
constructor(public field: string, msg?: string) {
|
|
69
|
+
super(msg);
|
|
70
|
+
this.name = "RequiredError"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface ServerMap {
|
|
75
|
+
[key: string]: {
|
|
76
|
+
url: string,
|
|
77
|
+
description: string,
|
|
78
|
+
}[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export const operationServerMap: ServerMap = {
|
|
86
|
+
}
|