@gambulls-org/gambulls-apis 3.0.175 → 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.
Files changed (87) hide show
  1. package/.idea/gambulls-apis.iml +11 -11
  2. package/.idea/modules.xml +7 -7
  3. package/.idea/vcs.xml +5 -5
  4. package/.openapi-generator/FILES +516 -508
  5. package/.openapi-generator-ignore +23 -23
  6. package/README.md +16 -16
  7. package/api.ts +10356 -10356
  8. package/apis/AdminAffiliateApi.js +7 -17
  9. package/apis/AdminAppConfigApi.js +7 -17
  10. package/apis/AdminAuthApi.js +7 -17
  11. package/apis/AdminBannerApi.js +171 -0
  12. package/apis/AdminBannerApi.ts +186 -0
  13. package/apis/AdminBonusApi.js +7 -17
  14. package/apis/AdminCategoryApi.js +7 -17
  15. package/apis/AdminChatApi.js +7 -17
  16. package/apis/AdminDashboardApi.js +7 -17
  17. package/apis/AdminExchangeApi.js +7 -17
  18. package/apis/AdminFileManagementApi.js +7 -17
  19. package/apis/AdminGamesApi.js +7 -17
  20. package/apis/AdminGroupApi.js +7 -17
  21. package/apis/AdminLoyaltyApi.js +7 -17
  22. package/apis/AdminManagementApi.js +7 -17
  23. package/apis/AdminMenuApi.js +7 -17
  24. package/apis/AdminPaymentSystemApi.js +7 -17
  25. package/apis/AdminPinnedMessageApi.js +7 -17
  26. package/apis/AdminPolicyApi.js +7 -17
  27. package/apis/AdminProvidersApi.js +7 -17
  28. package/apis/AdminRakebackEventApi.js +7 -17
  29. package/apis/AdminReportApi.js +7 -17
  30. package/apis/AdminUserManagementApi.js +7 -17
  31. package/apis/AuthApi.js +7 -17
  32. package/apis/CMSApi.js +7 -17
  33. package/apis/CronDataCleanupApi.js +7 -17
  34. package/apis/HealthCheckApi.js +7 -17
  35. package/apis/PublicBannerApi.js +91 -0
  36. package/apis/PublicBannerApi.ts +68 -0
  37. package/apis/PublicGamesApi.js +7 -17
  38. package/apis/PublicPolicyApi.js +7 -17
  39. package/apis/RGSApi.js +7 -17
  40. package/apis/RGSV2Api.js +7 -17
  41. package/apis/SportsbookApi.js +7 -17
  42. package/apis/TatumApi.js +7 -17
  43. package/apis/TestForNonProductionOnlyApi.js +7 -17
  44. package/apis/UserAffiliateApi.js +7 -17
  45. package/apis/UserAvatarApi.js +7 -17
  46. package/apis/UserBalanceApi.js +7 -17
  47. package/apis/UserBonusApi.js +7 -17
  48. package/apis/UserDepositApi.js +7 -17
  49. package/apis/UserDocumentApi.js +7 -17
  50. package/apis/UserGamesApi.js +7 -17
  51. package/apis/UserLoyaltyApi.js +7 -17
  52. package/apis/UserModeratorApi.js +7 -17
  53. package/apis/UserNotificationApi.js +7 -17
  54. package/apis/UserPreferencesApi.js +7 -17
  55. package/apis/UserProfileApi.js +7 -17
  56. package/apis/UserResponsibleGamingApi.js +7 -17
  57. package/apis/UserStatisticApi.js +7 -17
  58. package/apis/UserTippingApi.js +7 -17
  59. package/apis/UserTransactionHistoryApi.js +7 -17
  60. package/apis/UserUploadApi.js +7 -17
  61. package/apis/UserWagerApi.js +7 -17
  62. package/apis/UserWithdrawalApi.js +7 -17
  63. package/apis/index.js +2 -0
  64. package/apis/index.ts +2 -0
  65. package/base.ts +86 -86
  66. package/common.ts +150 -150
  67. package/configuration.ts +110 -110
  68. package/git_push.sh +57 -57
  69. package/hooks.json +8 -8
  70. package/models/ApiAdminBannersBannerIdPutRequest.js +75 -0
  71. package/models/ApiAdminBannersBannerIdPutRequest.ts +144 -0
  72. package/models/ApiAdminBannersPost200Response.js +61 -0
  73. package/models/ApiAdminBannersPost200Response.ts +100 -0
  74. package/models/ApiAdminBannersPost200ResponseResponseObject.js +103 -0
  75. package/models/ApiAdminBannersPost200ResponseResponseObject.ts +179 -0
  76. package/models/ApiAdminBannersPostRequest.js +91 -0
  77. package/models/ApiAdminBannersPostRequest.ts +152 -0
  78. package/models/ApiAdminBannersPostRequestButtonText.js +78 -0
  79. package/models/ApiAdminBannersPostRequestButtonText.ts +129 -0
  80. package/models/ApiPublicBannersGet200Response.js +61 -0
  81. package/models/ApiPublicBannersGet200Response.ts +100 -0
  82. package/models/index.js +6 -0
  83. package/models/index.ts +6 -0
  84. package/openapitools.json +7 -7
  85. package/package.json +26 -26
  86. package/tsconfig.json +108 -108
  87. 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) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
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) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
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) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
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) {
@@ -0,0 +1,171 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
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
+ };
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.AdminBannerApi = void 0;
49
+ const runtime = __importStar(require("../runtime"));
50
+ const index_1 = require("../models/index");
51
+ /**
52
+ *
53
+ */
54
+ class AdminBannerApi extends runtime.BaseAPI {
55
+ /**
56
+ * Banner Delete
57
+ */
58
+ apiAdminBannersBannerIdDeleteRaw(requestParameters, initOverrides) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ if (requestParameters['bannerId'] == null) {
61
+ throw new runtime.RequiredError('bannerId', 'Required parameter "bannerId" was null or undefined when calling apiAdminBannersBannerIdDelete().');
62
+ }
63
+ const queryParameters = {};
64
+ const headerParameters = {};
65
+ if (this.configuration && this.configuration.apiKey) {
66
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
67
+ }
68
+ if (this.configuration && this.configuration.accessToken) {
69
+ const token = this.configuration.accessToken;
70
+ const tokenString = yield token("BearerAuth", []);
71
+ if (tokenString) {
72
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
73
+ }
74
+ }
75
+ const response = yield this.request({
76
+ path: `/api/admin/banners/{bannerId}`.replace(`{${"bannerId"}}`, encodeURIComponent(String(requestParameters['bannerId']))),
77
+ method: 'DELETE',
78
+ headers: headerParameters,
79
+ query: queryParameters,
80
+ }, initOverrides);
81
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiHealthCheckGet200ResponseFromJSON)(jsonValue));
82
+ });
83
+ }
84
+ /**
85
+ * Banner Delete
86
+ */
87
+ apiAdminBannersBannerIdDelete(requestParameters, initOverrides) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ const response = yield this.apiAdminBannersBannerIdDeleteRaw(requestParameters, initOverrides);
90
+ return yield response.value();
91
+ });
92
+ }
93
+ /**
94
+ * Banner Update
95
+ */
96
+ apiAdminBannersBannerIdPutRaw(requestParameters, initOverrides) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ if (requestParameters['bannerId'] == null) {
99
+ throw new runtime.RequiredError('bannerId', 'Required parameter "bannerId" was null or undefined when calling apiAdminBannersBannerIdPut().');
100
+ }
101
+ const queryParameters = {};
102
+ const headerParameters = {};
103
+ headerParameters['Content-Type'] = 'application/json';
104
+ if (this.configuration && this.configuration.apiKey) {
105
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
106
+ }
107
+ if (this.configuration && this.configuration.accessToken) {
108
+ const token = this.configuration.accessToken;
109
+ const tokenString = yield token("BearerAuth", []);
110
+ if (tokenString) {
111
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
112
+ }
113
+ }
114
+ const response = yield this.request({
115
+ path: `/api/admin/banners/{bannerId}`.replace(`{${"bannerId"}}`, encodeURIComponent(String(requestParameters['bannerId']))),
116
+ method: 'PUT',
117
+ headers: headerParameters,
118
+ query: queryParameters,
119
+ body: (0, index_1.ApiAdminBannersBannerIdPutRequestToJSON)(requestParameters['apiAdminBannersBannerIdPutRequest']),
120
+ }, initOverrides);
121
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminBannersPost200ResponseFromJSON)(jsonValue));
122
+ });
123
+ }
124
+ /**
125
+ * Banner Update
126
+ */
127
+ apiAdminBannersBannerIdPut(requestParameters, initOverrides) {
128
+ return __awaiter(this, void 0, void 0, function* () {
129
+ const response = yield this.apiAdminBannersBannerIdPutRaw(requestParameters, initOverrides);
130
+ return yield response.value();
131
+ });
132
+ }
133
+ /**
134
+ * Banner Create
135
+ */
136
+ apiAdminBannersPostRaw(requestParameters, initOverrides) {
137
+ return __awaiter(this, void 0, void 0, function* () {
138
+ const queryParameters = {};
139
+ const headerParameters = {};
140
+ headerParameters['Content-Type'] = 'application/json';
141
+ if (this.configuration && this.configuration.apiKey) {
142
+ headerParameters["api-key"] = yield this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
143
+ }
144
+ if (this.configuration && this.configuration.accessToken) {
145
+ const token = this.configuration.accessToken;
146
+ const tokenString = yield token("BearerAuth", []);
147
+ if (tokenString) {
148
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
149
+ }
150
+ }
151
+ const response = yield this.request({
152
+ path: `/api/admin/banners`,
153
+ method: 'POST',
154
+ headers: headerParameters,
155
+ query: queryParameters,
156
+ body: (0, index_1.ApiAdminBannersPostRequestToJSON)(requestParameters['apiAdminBannersPostRequest']),
157
+ }, initOverrides);
158
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiAdminBannersPost200ResponseFromJSON)(jsonValue));
159
+ });
160
+ }
161
+ /**
162
+ * Banner Create
163
+ */
164
+ apiAdminBannersPost() {
165
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
166
+ const response = yield this.apiAdminBannersPostRaw(requestParameters, initOverrides);
167
+ return yield response.value();
168
+ });
169
+ }
170
+ }
171
+ exports.AdminBannerApi = AdminBannerApi;
@@ -0,0 +1,186 @@
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 * as runtime from '../runtime';
17
+ import type {
18
+ ApiAdminBannersBannerIdPutRequest,
19
+ ApiAdminBannersPost200Response,
20
+ ApiAdminBannersPostRequest,
21
+ ApiHealthCheckGet200Response,
22
+ } from '../models/index';
23
+ import {
24
+ ApiAdminBannersBannerIdPutRequestFromJSON,
25
+ ApiAdminBannersBannerIdPutRequestToJSON,
26
+ ApiAdminBannersPost200ResponseFromJSON,
27
+ ApiAdminBannersPost200ResponseToJSON,
28
+ ApiAdminBannersPostRequestFromJSON,
29
+ ApiAdminBannersPostRequestToJSON,
30
+ ApiHealthCheckGet200ResponseFromJSON,
31
+ ApiHealthCheckGet200ResponseToJSON,
32
+ } from '../models/index';
33
+
34
+ export interface ApiAdminBannersBannerIdDeleteRequest {
35
+ bannerId: string;
36
+ }
37
+
38
+ export interface ApiAdminBannersBannerIdPutOperationRequest {
39
+ bannerId: string;
40
+ apiAdminBannersBannerIdPutRequest?: ApiAdminBannersBannerIdPutRequest;
41
+ }
42
+
43
+ export interface ApiAdminBannersPostOperationRequest {
44
+ apiAdminBannersPostRequest?: ApiAdminBannersPostRequest;
45
+ }
46
+
47
+ /**
48
+ *
49
+ */
50
+ export class AdminBannerApi extends runtime.BaseAPI {
51
+
52
+ /**
53
+ * Banner Delete
54
+ */
55
+ async apiAdminBannersBannerIdDeleteRaw(requestParameters: ApiAdminBannersBannerIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiHealthCheckGet200Response>> {
56
+ if (requestParameters['bannerId'] == null) {
57
+ throw new runtime.RequiredError(
58
+ 'bannerId',
59
+ 'Required parameter "bannerId" was null or undefined when calling apiAdminBannersBannerIdDelete().'
60
+ );
61
+ }
62
+
63
+ const queryParameters: any = {};
64
+
65
+ const headerParameters: runtime.HTTPHeaders = {};
66
+
67
+ if (this.configuration && this.configuration.apiKey) {
68
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
69
+ }
70
+
71
+ if (this.configuration && this.configuration.accessToken) {
72
+ const token = this.configuration.accessToken;
73
+ const tokenString = await token("BearerAuth", []);
74
+
75
+ if (tokenString) {
76
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
77
+ }
78
+ }
79
+ const response = await this.request({
80
+ path: `/api/admin/banners/{bannerId}`.replace(`{${"bannerId"}}`, encodeURIComponent(String(requestParameters['bannerId']))),
81
+ method: 'DELETE',
82
+ headers: headerParameters,
83
+ query: queryParameters,
84
+ }, initOverrides);
85
+
86
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiHealthCheckGet200ResponseFromJSON(jsonValue));
87
+ }
88
+
89
+ /**
90
+ * Banner Delete
91
+ */
92
+ async apiAdminBannersBannerIdDelete(requestParameters: ApiAdminBannersBannerIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiHealthCheckGet200Response> {
93
+ const response = await this.apiAdminBannersBannerIdDeleteRaw(requestParameters, initOverrides);
94
+ return await response.value();
95
+ }
96
+
97
+ /**
98
+ * Banner Update
99
+ */
100
+ async apiAdminBannersBannerIdPutRaw(requestParameters: ApiAdminBannersBannerIdPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminBannersPost200Response>> {
101
+ if (requestParameters['bannerId'] == null) {
102
+ throw new runtime.RequiredError(
103
+ 'bannerId',
104
+ 'Required parameter "bannerId" was null or undefined when calling apiAdminBannersBannerIdPut().'
105
+ );
106
+ }
107
+
108
+ const queryParameters: any = {};
109
+
110
+ const headerParameters: runtime.HTTPHeaders = {};
111
+
112
+ headerParameters['Content-Type'] = 'application/json';
113
+
114
+ if (this.configuration && this.configuration.apiKey) {
115
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
116
+ }
117
+
118
+ if (this.configuration && this.configuration.accessToken) {
119
+ const token = this.configuration.accessToken;
120
+ const tokenString = await token("BearerAuth", []);
121
+
122
+ if (tokenString) {
123
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
124
+ }
125
+ }
126
+ const response = await this.request({
127
+ path: `/api/admin/banners/{bannerId}`.replace(`{${"bannerId"}}`, encodeURIComponent(String(requestParameters['bannerId']))),
128
+ method: 'PUT',
129
+ headers: headerParameters,
130
+ query: queryParameters,
131
+ body: ApiAdminBannersBannerIdPutRequestToJSON(requestParameters['apiAdminBannersBannerIdPutRequest']),
132
+ }, initOverrides);
133
+
134
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminBannersPost200ResponseFromJSON(jsonValue));
135
+ }
136
+
137
+ /**
138
+ * Banner Update
139
+ */
140
+ async apiAdminBannersBannerIdPut(requestParameters: ApiAdminBannersBannerIdPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminBannersPost200Response> {
141
+ const response = await this.apiAdminBannersBannerIdPutRaw(requestParameters, initOverrides);
142
+ return await response.value();
143
+ }
144
+
145
+ /**
146
+ * Banner Create
147
+ */
148
+ async apiAdminBannersPostRaw(requestParameters: ApiAdminBannersPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminBannersPost200Response>> {
149
+ const queryParameters: any = {};
150
+
151
+ const headerParameters: runtime.HTTPHeaders = {};
152
+
153
+ headerParameters['Content-Type'] = 'application/json';
154
+
155
+ if (this.configuration && this.configuration.apiKey) {
156
+ headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
157
+ }
158
+
159
+ if (this.configuration && this.configuration.accessToken) {
160
+ const token = this.configuration.accessToken;
161
+ const tokenString = await token("BearerAuth", []);
162
+
163
+ if (tokenString) {
164
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
165
+ }
166
+ }
167
+ const response = await this.request({
168
+ path: `/api/admin/banners`,
169
+ method: 'POST',
170
+ headers: headerParameters,
171
+ query: queryParameters,
172
+ body: ApiAdminBannersPostRequestToJSON(requestParameters['apiAdminBannersPostRequest']),
173
+ }, initOverrides);
174
+
175
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminBannersPost200ResponseFromJSON(jsonValue));
176
+ }
177
+
178
+ /**
179
+ * Banner Create
180
+ */
181
+ async apiAdminBannersPost(requestParameters: ApiAdminBannersPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminBannersPost200Response> {
182
+ const response = await this.apiAdminBannersPostRaw(requestParameters, initOverrides);
183
+ return await response.value();
184
+ }
185
+
186
+ }
@@ -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) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
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) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
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) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
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) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
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) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
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) || (function () {
32
- var ownKeys = function(o) {
33
- ownKeys = Object.getOwnPropertyNames || function (o) {
34
- var ar = [];
35
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
- return ar;
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) {