@gambulls-org/gambulls-apis 3.0.176 → 3.0.177
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 +516 -508
- 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 +171 -0
- package/apis/AdminBannerApi.ts +186 -0
- 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/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 +91 -0
- package/apis/PublicBannerApi.ts +68 -0
- package/apis/PublicGamesApi.js +7 -17
- 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/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 +2 -0
- package/apis/index.ts +2 -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/ApiAdminBannersBannerIdPutRequest.js +75 -0
- package/models/ApiAdminBannersBannerIdPutRequest.ts +144 -0
- package/models/ApiAdminBannersPost200Response.js +61 -0
- package/models/ApiAdminBannersPost200Response.ts +100 -0
- package/models/ApiAdminBannersPost200ResponseResponseObject.js +103 -0
- package/models/ApiAdminBannersPost200ResponseResponseObject.ts +179 -0
- package/models/ApiAdminBannersPostRequest.js +91 -0
- package/models/ApiAdminBannersPostRequest.ts +152 -0
- package/models/ApiAdminBannersPostRequestButtonText.js +78 -0
- package/models/ApiAdminBannersPostRequestButtonText.ts +129 -0
- package/models/ApiPublicBannersGet200Response.js +61 -0
- package/models/ApiPublicBannersGet200Response.ts +100 -0
- package/models/index.js +6 -0
- package/models/index.ts +6 -0
- package/openapitools.json +7 -7
- package/package.json +26 -26
- package/tsconfig.json +108 -108
- package/workflow.sh +40 -40
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ApiAdminBannersBannerIdPutRequestButtonPositionEnum = void 0;
|
|
17
|
+
exports.instanceOfApiAdminBannersBannerIdPutRequest = instanceOfApiAdminBannersBannerIdPutRequest;
|
|
18
|
+
exports.ApiAdminBannersBannerIdPutRequestFromJSON = ApiAdminBannersBannerIdPutRequestFromJSON;
|
|
19
|
+
exports.ApiAdminBannersBannerIdPutRequestFromJSONTyped = ApiAdminBannersBannerIdPutRequestFromJSONTyped;
|
|
20
|
+
exports.ApiAdminBannersBannerIdPutRequestToJSON = ApiAdminBannersBannerIdPutRequestToJSON;
|
|
21
|
+
exports.ApiAdminBannersBannerIdPutRequestToJSONTyped = ApiAdminBannersBannerIdPutRequestToJSONTyped;
|
|
22
|
+
const ApiAdminBannersPostRequestButtonText_1 = require("./ApiAdminBannersPostRequestButtonText");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ApiAdminBannersBannerIdPutRequestButtonPositionEnum = {
|
|
27
|
+
TopLeft: 'TOP_LEFT',
|
|
28
|
+
TopMiddle: 'TOP_MIDDLE',
|
|
29
|
+
TopRight: 'TOP_RIGHT',
|
|
30
|
+
BottomLeft: 'BOTTOM_LEFT',
|
|
31
|
+
BottomMiddle: 'BOTTOM_MIDDLE',
|
|
32
|
+
BottomRight: 'BOTTOM_RIGHT'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the ApiAdminBannersBannerIdPutRequest interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfApiAdminBannersBannerIdPutRequest(value) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function ApiAdminBannersBannerIdPutRequestFromJSON(json) {
|
|
41
|
+
return ApiAdminBannersBannerIdPutRequestFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ApiAdminBannersBannerIdPutRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'bannerName': json['bannerName'] == null ? undefined : json['bannerName'],
|
|
49
|
+
'bannerUrlImage': json['bannerUrlImage'] == null ? undefined : json['bannerUrlImage'],
|
|
50
|
+
'buttonText': json['buttonText'] == null ? undefined : (0, ApiAdminBannersPostRequestButtonText_1.ApiAdminBannersPostRequestButtonTextFromJSON)(json['buttonText']),
|
|
51
|
+
'buttonPosition': json['buttonPosition'] == null ? undefined : json['buttonPosition'],
|
|
52
|
+
'buttonLink': json['buttonLink'] == null ? undefined : json['buttonLink'],
|
|
53
|
+
'sequence': json['sequence'] == null ? undefined : json['sequence'],
|
|
54
|
+
'startDate': json['startDate'] == null ? undefined : json['startDate'],
|
|
55
|
+
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function ApiAdminBannersBannerIdPutRequestToJSON(json) {
|
|
59
|
+
return ApiAdminBannersBannerIdPutRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function ApiAdminBannersBannerIdPutRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'bannerName': value['bannerName'],
|
|
67
|
+
'bannerUrlImage': value['bannerUrlImage'],
|
|
68
|
+
'buttonText': (0, ApiAdminBannersPostRequestButtonText_1.ApiAdminBannersPostRequestButtonTextToJSON)(value['buttonText']),
|
|
69
|
+
'buttonPosition': value['buttonPosition'],
|
|
70
|
+
'buttonLink': value['buttonLink'],
|
|
71
|
+
'sequence': value['sequence'],
|
|
72
|
+
'startDate': value['startDate'],
|
|
73
|
+
'endDate': value['endDate'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiAdminBannersPostRequestButtonText } from './ApiAdminBannersPostRequestButtonText';
|
|
17
|
+
import {
|
|
18
|
+
ApiAdminBannersPostRequestButtonTextFromJSON,
|
|
19
|
+
ApiAdminBannersPostRequestButtonTextFromJSONTyped,
|
|
20
|
+
ApiAdminBannersPostRequestButtonTextToJSON,
|
|
21
|
+
ApiAdminBannersPostRequestButtonTextToJSONTyped,
|
|
22
|
+
} from './ApiAdminBannersPostRequestButtonText';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiAdminBannersBannerIdPutRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiAdminBannersBannerIdPutRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiAdminBannersBannerIdPutRequest
|
|
34
|
+
*/
|
|
35
|
+
bannerName?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiAdminBannersBannerIdPutRequest
|
|
40
|
+
*/
|
|
41
|
+
bannerUrlImage?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiAdminBannersPostRequestButtonText}
|
|
45
|
+
* @memberof ApiAdminBannersBannerIdPutRequest
|
|
46
|
+
*/
|
|
47
|
+
buttonText?: ApiAdminBannersPostRequestButtonText;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ApiAdminBannersBannerIdPutRequest
|
|
52
|
+
*/
|
|
53
|
+
buttonPosition?: ApiAdminBannersBannerIdPutRequestButtonPositionEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ApiAdminBannersBannerIdPutRequest
|
|
58
|
+
*/
|
|
59
|
+
buttonLink?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ApiAdminBannersBannerIdPutRequest
|
|
64
|
+
*/
|
|
65
|
+
sequence?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ApiAdminBannersBannerIdPutRequest
|
|
70
|
+
*/
|
|
71
|
+
startDate?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ApiAdminBannersBannerIdPutRequest
|
|
76
|
+
*/
|
|
77
|
+
endDate?: string | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @export
|
|
83
|
+
*/
|
|
84
|
+
export const ApiAdminBannersBannerIdPutRequestButtonPositionEnum = {
|
|
85
|
+
TopLeft: 'TOP_LEFT',
|
|
86
|
+
TopMiddle: 'TOP_MIDDLE',
|
|
87
|
+
TopRight: 'TOP_RIGHT',
|
|
88
|
+
BottomLeft: 'BOTTOM_LEFT',
|
|
89
|
+
BottomMiddle: 'BOTTOM_MIDDLE',
|
|
90
|
+
BottomRight: 'BOTTOM_RIGHT'
|
|
91
|
+
} as const;
|
|
92
|
+
export type ApiAdminBannersBannerIdPutRequestButtonPositionEnum = typeof ApiAdminBannersBannerIdPutRequestButtonPositionEnum[keyof typeof ApiAdminBannersBannerIdPutRequestButtonPositionEnum];
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the ApiAdminBannersBannerIdPutRequest interface.
|
|
97
|
+
*/
|
|
98
|
+
export function instanceOfApiAdminBannersBannerIdPutRequest(value: object): value is ApiAdminBannersBannerIdPutRequest {
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function ApiAdminBannersBannerIdPutRequestFromJSON(json: any): ApiAdminBannersBannerIdPutRequest {
|
|
103
|
+
return ApiAdminBannersBannerIdPutRequestFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function ApiAdminBannersBannerIdPutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminBannersBannerIdPutRequest {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'bannerName': json['bannerName'] == null ? undefined : json['bannerName'],
|
|
113
|
+
'bannerUrlImage': json['bannerUrlImage'] == null ? undefined : json['bannerUrlImage'],
|
|
114
|
+
'buttonText': json['buttonText'] == null ? undefined : ApiAdminBannersPostRequestButtonTextFromJSON(json['buttonText']),
|
|
115
|
+
'buttonPosition': json['buttonPosition'] == null ? undefined : json['buttonPosition'],
|
|
116
|
+
'buttonLink': json['buttonLink'] == null ? undefined : json['buttonLink'],
|
|
117
|
+
'sequence': json['sequence'] == null ? undefined : json['sequence'],
|
|
118
|
+
'startDate': json['startDate'] == null ? undefined : json['startDate'],
|
|
119
|
+
'endDate': json['endDate'] == null ? undefined : json['endDate'],
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function ApiAdminBannersBannerIdPutRequestToJSON(json: any): ApiAdminBannersBannerIdPutRequest {
|
|
124
|
+
return ApiAdminBannersBannerIdPutRequestToJSONTyped(json, false);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function ApiAdminBannersBannerIdPutRequestToJSONTyped(value?: ApiAdminBannersBannerIdPutRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
128
|
+
if (value == null) {
|
|
129
|
+
return value;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
return {
|
|
133
|
+
|
|
134
|
+
'bannerName': value['bannerName'],
|
|
135
|
+
'bannerUrlImage': value['bannerUrlImage'],
|
|
136
|
+
'buttonText': ApiAdminBannersPostRequestButtonTextToJSON(value['buttonText']),
|
|
137
|
+
'buttonPosition': value['buttonPosition'],
|
|
138
|
+
'buttonLink': value['buttonLink'],
|
|
139
|
+
'sequence': value['sequence'],
|
|
140
|
+
'startDate': value['startDate'],
|
|
141
|
+
'endDate': value['endDate'],
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfApiAdminBannersPost200Response = instanceOfApiAdminBannersPost200Response;
|
|
17
|
+
exports.ApiAdminBannersPost200ResponseFromJSON = ApiAdminBannersPost200ResponseFromJSON;
|
|
18
|
+
exports.ApiAdminBannersPost200ResponseFromJSONTyped = ApiAdminBannersPost200ResponseFromJSONTyped;
|
|
19
|
+
exports.ApiAdminBannersPost200ResponseToJSON = ApiAdminBannersPost200ResponseToJSON;
|
|
20
|
+
exports.ApiAdminBannersPost200ResponseToJSONTyped = ApiAdminBannersPost200ResponseToJSONTyped;
|
|
21
|
+
const ApiAdminBannersPost200ResponseResponseObject_1 = require("./ApiAdminBannersPost200ResponseResponseObject");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ApiAdminBannersPost200Response interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfApiAdminBannersPost200Response(value) {
|
|
26
|
+
if (!('success' in value) || value['success'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function ApiAdminBannersPost200ResponseFromJSON(json) {
|
|
35
|
+
return ApiAdminBannersPost200ResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function ApiAdminBannersPost200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'success': json['success'],
|
|
43
|
+
'message': json['message'],
|
|
44
|
+
'responseObject': json['responseObject'] == null ? undefined : (0, ApiAdminBannersPost200ResponseResponseObject_1.ApiAdminBannersPost200ResponseResponseObjectFromJSON)(json['responseObject']),
|
|
45
|
+
'statusCode': json['statusCode'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function ApiAdminBannersPost200ResponseToJSON(json) {
|
|
49
|
+
return ApiAdminBannersPost200ResponseToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
function ApiAdminBannersPost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'success': value['success'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
'responseObject': (0, ApiAdminBannersPost200ResponseResponseObject_1.ApiAdminBannersPost200ResponseResponseObjectToJSON)(value['responseObject']),
|
|
59
|
+
'statusCode': value['statusCode'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiAdminBannersPost200ResponseResponseObject } from './ApiAdminBannersPost200ResponseResponseObject';
|
|
17
|
+
import {
|
|
18
|
+
ApiAdminBannersPost200ResponseResponseObjectFromJSON,
|
|
19
|
+
ApiAdminBannersPost200ResponseResponseObjectFromJSONTyped,
|
|
20
|
+
ApiAdminBannersPost200ResponseResponseObjectToJSON,
|
|
21
|
+
ApiAdminBannersPost200ResponseResponseObjectToJSONTyped,
|
|
22
|
+
} from './ApiAdminBannersPost200ResponseResponseObject';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiAdminBannersPost200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiAdminBannersPost200Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ApiAdminBannersPost200Response
|
|
34
|
+
*/
|
|
35
|
+
success: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiAdminBannersPost200Response
|
|
40
|
+
*/
|
|
41
|
+
message: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiAdminBannersPost200ResponseResponseObject}
|
|
45
|
+
* @memberof ApiAdminBannersPost200Response
|
|
46
|
+
*/
|
|
47
|
+
responseObject?: ApiAdminBannersPost200ResponseResponseObject;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof ApiAdminBannersPost200Response
|
|
52
|
+
*/
|
|
53
|
+
statusCode: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the ApiAdminBannersPost200Response interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfApiAdminBannersPost200Response(value: object): value is ApiAdminBannersPost200Response {
|
|
60
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
61
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
62
|
+
if (!('statusCode' in value) || value['statusCode'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ApiAdminBannersPost200ResponseFromJSON(json: any): ApiAdminBannersPost200Response {
|
|
67
|
+
return ApiAdminBannersPost200ResponseFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ApiAdminBannersPost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminBannersPost200Response {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'success': json['success'],
|
|
77
|
+
'message': json['message'],
|
|
78
|
+
'responseObject': json['responseObject'] == null ? undefined : ApiAdminBannersPost200ResponseResponseObjectFromJSON(json['responseObject']),
|
|
79
|
+
'statusCode': json['statusCode'],
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ApiAdminBannersPost200ResponseToJSON(json: any): ApiAdminBannersPost200Response {
|
|
84
|
+
return ApiAdminBannersPost200ResponseToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ApiAdminBannersPost200ResponseToJSONTyped(value?: ApiAdminBannersPost200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'success': value['success'],
|
|
95
|
+
'message': value['message'],
|
|
96
|
+
'responseObject': ApiAdminBannersPost200ResponseResponseObjectToJSON(value['responseObject']),
|
|
97
|
+
'statusCode': value['statusCode'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger API
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ApiAdminBannersPost200ResponseResponseObjectButtonPositionEnum = void 0;
|
|
17
|
+
exports.instanceOfApiAdminBannersPost200ResponseResponseObject = instanceOfApiAdminBannersPost200ResponseResponseObject;
|
|
18
|
+
exports.ApiAdminBannersPost200ResponseResponseObjectFromJSON = ApiAdminBannersPost200ResponseResponseObjectFromJSON;
|
|
19
|
+
exports.ApiAdminBannersPost200ResponseResponseObjectFromJSONTyped = ApiAdminBannersPost200ResponseResponseObjectFromJSONTyped;
|
|
20
|
+
exports.ApiAdminBannersPost200ResponseResponseObjectToJSON = ApiAdminBannersPost200ResponseResponseObjectToJSON;
|
|
21
|
+
exports.ApiAdminBannersPost200ResponseResponseObjectToJSONTyped = ApiAdminBannersPost200ResponseResponseObjectToJSONTyped;
|
|
22
|
+
const ApiAdminBannersPostRequestButtonText_1 = require("./ApiAdminBannersPostRequestButtonText");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ApiAdminBannersPost200ResponseResponseObjectButtonPositionEnum = {
|
|
27
|
+
TopLeft: 'TOP_LEFT',
|
|
28
|
+
TopMiddle: 'TOP_MIDDLE',
|
|
29
|
+
TopRight: 'TOP_RIGHT',
|
|
30
|
+
BottomLeft: 'BOTTOM_LEFT',
|
|
31
|
+
BottomMiddle: 'BOTTOM_MIDDLE',
|
|
32
|
+
BottomRight: 'BOTTOM_RIGHT'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the ApiAdminBannersPost200ResponseResponseObject interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfApiAdminBannersPost200ResponseResponseObject(value) {
|
|
38
|
+
if (!('bannerName' in value) || value['bannerName'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('bannerUrlImage' in value) || value['bannerUrlImage'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('buttonText' in value) || value['buttonText'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('buttonPosition' in value) || value['buttonPosition'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('buttonLink' in value) || value['buttonLink'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('sequence' in value) || value['sequence'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('startDate' in value) || value['startDate'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('endDate' in value) || value['endDate'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
57
|
+
return false;
|
|
58
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
59
|
+
return false;
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
function ApiAdminBannersPost200ResponseResponseObjectFromJSON(json) {
|
|
63
|
+
return ApiAdminBannersPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function ApiAdminBannersPost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
66
|
+
if (json == null) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'bannerName': json['bannerName'],
|
|
71
|
+
'bannerUrlImage': json['bannerUrlImage'],
|
|
72
|
+
'buttonText': (0, ApiAdminBannersPostRequestButtonText_1.ApiAdminBannersPostRequestButtonTextFromJSON)(json['buttonText']),
|
|
73
|
+
'buttonPosition': json['buttonPosition'],
|
|
74
|
+
'buttonLink': json['buttonLink'],
|
|
75
|
+
'sequence': json['sequence'],
|
|
76
|
+
'startDate': json['startDate'],
|
|
77
|
+
'endDate': json['endDate'],
|
|
78
|
+
'id': json['id'],
|
|
79
|
+
'createdAt': json['createdAt'],
|
|
80
|
+
'updatedAt': json['updatedAt'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function ApiAdminBannersPost200ResponseResponseObjectToJSON(json) {
|
|
84
|
+
return ApiAdminBannersPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
function ApiAdminBannersPost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
'bannerName': value['bannerName'],
|
|
92
|
+
'bannerUrlImage': value['bannerUrlImage'],
|
|
93
|
+
'buttonText': (0, ApiAdminBannersPostRequestButtonText_1.ApiAdminBannersPostRequestButtonTextToJSON)(value['buttonText']),
|
|
94
|
+
'buttonPosition': value['buttonPosition'],
|
|
95
|
+
'buttonLink': value['buttonLink'],
|
|
96
|
+
'sequence': value['sequence'],
|
|
97
|
+
'startDate': value['startDate'],
|
|
98
|
+
'endDate': value['endDate'],
|
|
99
|
+
'id': value['id'],
|
|
100
|
+
'createdAt': value['createdAt'],
|
|
101
|
+
'updatedAt': value['updatedAt'],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ApiAdminBannersPostRequestButtonText } from './ApiAdminBannersPostRequestButtonText';
|
|
17
|
+
import {
|
|
18
|
+
ApiAdminBannersPostRequestButtonTextFromJSON,
|
|
19
|
+
ApiAdminBannersPostRequestButtonTextFromJSONTyped,
|
|
20
|
+
ApiAdminBannersPostRequestButtonTextToJSON,
|
|
21
|
+
ApiAdminBannersPostRequestButtonTextToJSONTyped,
|
|
22
|
+
} from './ApiAdminBannersPostRequestButtonText';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ApiAdminBannersPost200ResponseResponseObject
|
|
28
|
+
*/
|
|
29
|
+
export interface ApiAdminBannersPost200ResponseResponseObject {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
34
|
+
*/
|
|
35
|
+
bannerName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
40
|
+
*/
|
|
41
|
+
bannerUrlImage: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ApiAdminBannersPostRequestButtonText}
|
|
45
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
46
|
+
*/
|
|
47
|
+
buttonText: ApiAdminBannersPostRequestButtonText;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
52
|
+
*/
|
|
53
|
+
buttonPosition: ApiAdminBannersPost200ResponseResponseObjectButtonPositionEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
58
|
+
*/
|
|
59
|
+
buttonLink: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
64
|
+
*/
|
|
65
|
+
sequence: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
70
|
+
*/
|
|
71
|
+
startDate: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
76
|
+
*/
|
|
77
|
+
endDate: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
82
|
+
*/
|
|
83
|
+
id: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
88
|
+
*/
|
|
89
|
+
createdAt: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof ApiAdminBannersPost200ResponseResponseObject
|
|
94
|
+
*/
|
|
95
|
+
updatedAt: string;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @export
|
|
101
|
+
*/
|
|
102
|
+
export const ApiAdminBannersPost200ResponseResponseObjectButtonPositionEnum = {
|
|
103
|
+
TopLeft: 'TOP_LEFT',
|
|
104
|
+
TopMiddle: 'TOP_MIDDLE',
|
|
105
|
+
TopRight: 'TOP_RIGHT',
|
|
106
|
+
BottomLeft: 'BOTTOM_LEFT',
|
|
107
|
+
BottomMiddle: 'BOTTOM_MIDDLE',
|
|
108
|
+
BottomRight: 'BOTTOM_RIGHT'
|
|
109
|
+
} as const;
|
|
110
|
+
export type ApiAdminBannersPost200ResponseResponseObjectButtonPositionEnum = typeof ApiAdminBannersPost200ResponseResponseObjectButtonPositionEnum[keyof typeof ApiAdminBannersPost200ResponseResponseObjectButtonPositionEnum];
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Check if a given object implements the ApiAdminBannersPost200ResponseResponseObject interface.
|
|
115
|
+
*/
|
|
116
|
+
export function instanceOfApiAdminBannersPost200ResponseResponseObject(value: object): value is ApiAdminBannersPost200ResponseResponseObject {
|
|
117
|
+
if (!('bannerName' in value) || value['bannerName'] === undefined) return false;
|
|
118
|
+
if (!('bannerUrlImage' in value) || value['bannerUrlImage'] === undefined) return false;
|
|
119
|
+
if (!('buttonText' in value) || value['buttonText'] === undefined) return false;
|
|
120
|
+
if (!('buttonPosition' in value) || value['buttonPosition'] === undefined) return false;
|
|
121
|
+
if (!('buttonLink' in value) || value['buttonLink'] === undefined) return false;
|
|
122
|
+
if (!('sequence' in value) || value['sequence'] === undefined) return false;
|
|
123
|
+
if (!('startDate' in value) || value['startDate'] === undefined) return false;
|
|
124
|
+
if (!('endDate' in value) || value['endDate'] === undefined) return false;
|
|
125
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
126
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
127
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function ApiAdminBannersPost200ResponseResponseObjectFromJSON(json: any): ApiAdminBannersPost200ResponseResponseObject {
|
|
132
|
+
return ApiAdminBannersPost200ResponseResponseObjectFromJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function ApiAdminBannersPost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminBannersPost200ResponseResponseObject {
|
|
136
|
+
if (json == null) {
|
|
137
|
+
return json;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'bannerName': json['bannerName'],
|
|
142
|
+
'bannerUrlImage': json['bannerUrlImage'],
|
|
143
|
+
'buttonText': ApiAdminBannersPostRequestButtonTextFromJSON(json['buttonText']),
|
|
144
|
+
'buttonPosition': json['buttonPosition'],
|
|
145
|
+
'buttonLink': json['buttonLink'],
|
|
146
|
+
'sequence': json['sequence'],
|
|
147
|
+
'startDate': json['startDate'],
|
|
148
|
+
'endDate': json['endDate'],
|
|
149
|
+
'id': json['id'],
|
|
150
|
+
'createdAt': json['createdAt'],
|
|
151
|
+
'updatedAt': json['updatedAt'],
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function ApiAdminBannersPost200ResponseResponseObjectToJSON(json: any): ApiAdminBannersPost200ResponseResponseObject {
|
|
156
|
+
return ApiAdminBannersPost200ResponseResponseObjectToJSONTyped(json, false);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function ApiAdminBannersPost200ResponseResponseObjectToJSONTyped(value?: ApiAdminBannersPost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
|
|
160
|
+
if (value == null) {
|
|
161
|
+
return value;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
return {
|
|
165
|
+
|
|
166
|
+
'bannerName': value['bannerName'],
|
|
167
|
+
'bannerUrlImage': value['bannerUrlImage'],
|
|
168
|
+
'buttonText': ApiAdminBannersPostRequestButtonTextToJSON(value['buttonText']),
|
|
169
|
+
'buttonPosition': value['buttonPosition'],
|
|
170
|
+
'buttonLink': value['buttonLink'],
|
|
171
|
+
'sequence': value['sequence'],
|
|
172
|
+
'startDate': value['startDate'],
|
|
173
|
+
'endDate': value['endDate'],
|
|
174
|
+
'id': value['id'],
|
|
175
|
+
'createdAt': value['createdAt'],
|
|
176
|
+
'updatedAt': value['updatedAt'],
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|