@drxsuperapp/sdk 2.0.0 → 2.0.2

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 (59) hide show
  1. package/.openapi-generator/FILES +12 -3
  2. package/apis/AdminPointsApi.ts +69 -0
  3. package/apis/AppConfigurationApi.ts +6 -6
  4. package/apis/AuthenticationApi.ts +9 -9
  5. package/dist/apis/AdminPointsApi.d.ts +17 -1
  6. package/dist/apis/AdminPointsApi.js +46 -1
  7. package/dist/apis/AppConfigurationApi.d.ts +3 -3
  8. package/dist/apis/AppConfigurationApi.js +2 -2
  9. package/dist/apis/AuthenticationApi.d.ts +5 -5
  10. package/dist/apis/AuthenticationApi.js +3 -3
  11. package/dist/models/ApiAdminPointDropsGet200Response.d.ts +51 -0
  12. package/dist/models/ApiAdminPointDropsGet200Response.js +54 -0
  13. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObject.d.ts +57 -0
  14. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObject.js +59 -0
  15. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInner.d.ts +149 -0
  16. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInner.js +123 -0
  17. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerAdmin.d.ts +38 -0
  18. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerAdmin.js +47 -0
  19. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerAmountPerUser.d.ts +26 -0
  20. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerAmountPerUser.js +31 -0
  21. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerCompletedAt.d.ts +26 -0
  22. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerCompletedAt.js +31 -0
  23. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerCreatedAt.d.ts +26 -0
  24. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerCreatedAt.js +31 -0
  25. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerTargetUsersInner.d.ts +44 -0
  26. package/dist/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerTargetUsersInner.js +51 -0
  27. package/dist/models/ApiAdminPointDropsGetFilterParameter.d.ts +58 -0
  28. package/dist/models/ApiAdminPointDropsGetFilterParameter.js +51 -0
  29. package/dist/models/ApiAdminPointDropsPost200Response.d.ts +3 -3
  30. package/dist/models/ApiAdminPointDropsPost200Response.js +3 -3
  31. package/dist/models/ApiAuthValidateGet200Response.d.ts +50 -0
  32. package/dist/models/ApiAuthValidateGet200Response.js +53 -0
  33. package/dist/models/ApiPwaTournamentPostRequest.d.ts +3 -3
  34. package/dist/models/ApiPwaTournamentPostRequest.js +3 -3
  35. package/dist/models/ApiUserGet200Response.d.ts +3 -2
  36. package/dist/models/ApiUserGet200Response.js +3 -2
  37. package/dist/models/ApiUserGet200ResponseResponseObject.d.ts +57 -0
  38. package/dist/models/ApiUserGet200ResponseResponseObject.js +60 -0
  39. package/dist/models/ApiUserGet200ResponseResponseObjectItemsInner.d.ts +62 -0
  40. package/dist/models/ApiUserGet200ResponseResponseObjectItemsInner.js +63 -0
  41. package/dist/models/index.d.ts +12 -3
  42. package/dist/models/index.js +12 -3
  43. package/models/ApiAdminPointDropsGet200Response.ts +100 -0
  44. package/models/ApiAdminPointDropsGet200ResponseResponseObject.ts +110 -0
  45. package/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInner.ts +258 -0
  46. package/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerAdmin.ts +75 -0
  47. package/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerAmountPerUser.ts +46 -0
  48. package/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerCompletedAt.ts +46 -0
  49. package/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerCreatedAt.ts +46 -0
  50. package/models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerTargetUsersInner.ts +84 -0
  51. package/models/ApiAdminPointDropsGetFilterParameter.ts +112 -0
  52. package/models/ApiAdminPointDropsPost200Response.ts +10 -10
  53. package/models/ApiAuthValidateGet200Response.ts +92 -0
  54. package/models/ApiPwaTournamentPostRequest.ts +10 -10
  55. package/models/ApiUserGet200Response.ts +12 -4
  56. package/models/ApiUserGet200ResponseResponseObject.ts +110 -0
  57. package/models/ApiUserGet200ResponseResponseObjectItemsInner.ts +111 -0
  58. package/models/index.ts +12 -3
  59. package/package.json +1 -1
@@ -41,9 +41,16 @@ models/ApiAdminAppConfigsIdPutRequest.ts
41
41
  models/ApiAdminAppConfigsPost200Response.ts
42
42
  models/ApiAdminAppConfigsPostRequest.ts
43
43
  models/ApiAdminNotificationBroadcastPostRequest.ts
44
+ models/ApiAdminPointDropsGet200Response.ts
45
+ models/ApiAdminPointDropsGet200ResponseResponseObject.ts
46
+ models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInner.ts
47
+ models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerAdmin.ts
48
+ models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerAmountPerUser.ts
49
+ models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerCompletedAt.ts
50
+ models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerCreatedAt.ts
51
+ models/ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInnerTargetUsersInner.ts
52
+ models/ApiAdminPointDropsGetFilterParameter.ts
44
53
  models/ApiAdminPointDropsPost200Response.ts
45
- models/ApiAdminPointDropsPost200ResponseResponseObject.ts
46
- models/ApiAdminPointDropsPost200ResponseResponseObjectCreatedAt.ts
47
54
  models/ApiAdminPointDropsPostRequest.ts
48
55
  models/ApiAdminSyncUserPointsPost200Response.ts
49
56
  models/ApiAdminSyncUserPointsPost200ResponseResponseObject.ts
@@ -72,6 +79,7 @@ models/ApiAuthRegisterVerifyOtpPostRequest.ts
72
79
  models/ApiAuthSocialMobilePost200Response.ts
73
80
  models/ApiAuthSocialMobilePost200ResponseResponseObject.ts
74
81
  models/ApiAuthSocialMobilePostRequest.ts
82
+ models/ApiAuthValidateGet200Response.ts
75
83
  models/ApiBindCreateJwtGet200Response.ts
76
84
  models/ApiBindCreateJwtGet200ResponseResponseObject.ts
77
85
  models/ApiBindDiscordGet200Response.ts
@@ -238,7 +246,6 @@ models/ApiPwaTournamentIdGet200ResponseResponseObjectCreatedBy.ts
238
246
  models/ApiPwaTournamentIdGet200ResponseResponseObjectTeamsInner.ts
239
247
  models/ApiPwaTournamentPost200Response.ts
240
248
  models/ApiPwaTournamentPostRequest.ts
241
- models/ApiPwaTournamentPostRequestAdminInner.ts
242
249
  models/ApiPwaTournamentTournamentIdPlayersGet200Response.ts
243
250
  models/ApiPwaTournamentTournamentIdPlayersGet200ResponseResponseObjectInner.ts
244
251
  models/ApiPwaTournamentTournamentIdPlayersPost200Response.ts
@@ -327,6 +334,8 @@ models/ApiUserFcmTokenPost200Response.ts
327
334
  models/ApiUserFcmTokenPost200ResponseResponseObject.ts
328
335
  models/ApiUserFcmTokenPostRequest.ts
329
336
  models/ApiUserGet200Response.ts
337
+ models/ApiUserGet200ResponseResponseObject.ts
338
+ models/ApiUserGet200ResponseResponseObjectItemsInner.ts
330
339
  models/ApiUserGetFilterParameter.ts
331
340
  models/ApiUserLeaderboardGet200Response.ts
332
341
  models/ApiUserLeaderboardGet200ResponseResponseObject.ts
@@ -15,16 +15,29 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ ApiAdminPointDropsGet200Response,
19
+ ApiAdminPointDropsGetFilterParameter,
18
20
  ApiAdminPointDropsPost200Response,
19
21
  ApiAdminPointDropsPostRequest,
20
22
  } from '../models/index';
21
23
  import {
24
+ ApiAdminPointDropsGet200ResponseFromJSON,
25
+ ApiAdminPointDropsGet200ResponseToJSON,
26
+ ApiAdminPointDropsGetFilterParameterFromJSON,
27
+ ApiAdminPointDropsGetFilterParameterToJSON,
22
28
  ApiAdminPointDropsPost200ResponseFromJSON,
23
29
  ApiAdminPointDropsPost200ResponseToJSON,
24
30
  ApiAdminPointDropsPostRequestFromJSON,
25
31
  ApiAdminPointDropsPostRequestToJSON,
26
32
  } from '../models/index';
27
33
 
34
+ export interface ApiAdminPointDropsGetRequest {
35
+ page?: number;
36
+ pageSize?: number;
37
+ sort?: string;
38
+ filter?: ApiAdminPointDropsGetFilterParameter;
39
+ }
40
+
28
41
  export interface ApiAdminPointDropsPostOperationRequest {
29
42
  apiAdminPointDropsPostRequest?: ApiAdminPointDropsPostRequest;
30
43
  }
@@ -34,6 +47,62 @@ export interface ApiAdminPointDropsPostOperationRequest {
34
47
  */
35
48
  export class AdminPointsApi extends runtime.BaseAPI {
36
49
 
50
+ /**
51
+ * Retrieve a paginated list of point drop events
52
+ * List Point Drops
53
+ */
54
+ async apiAdminPointDropsGetRaw(requestParameters: ApiAdminPointDropsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminPointDropsGet200Response>> {
55
+ const queryParameters: any = {};
56
+
57
+ if (requestParameters['page'] != null) {
58
+ queryParameters['page'] = requestParameters['page'];
59
+ }
60
+
61
+ if (requestParameters['pageSize'] != null) {
62
+ queryParameters['pageSize'] = requestParameters['pageSize'];
63
+ }
64
+
65
+ if (requestParameters['sort'] != null) {
66
+ queryParameters['sort'] = requestParameters['sort'];
67
+ }
68
+
69
+ if (requestParameters['filter'] != null) {
70
+ queryParameters['filter'] = requestParameters['filter'];
71
+ }
72
+
73
+ const headerParameters: runtime.HTTPHeaders = {};
74
+
75
+ if (this.configuration && this.configuration.apiKey) {
76
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
77
+ }
78
+
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ const token = this.configuration.accessToken;
81
+ const tokenString = await token("BearerAuth", []);
82
+
83
+ if (tokenString) {
84
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
85
+ }
86
+ }
87
+ const response = await this.request({
88
+ path: `/api/admin/point-drops`,
89
+ method: 'GET',
90
+ headers: headerParameters,
91
+ query: queryParameters,
92
+ }, initOverrides);
93
+
94
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminPointDropsGet200ResponseFromJSON(jsonValue));
95
+ }
96
+
97
+ /**
98
+ * Retrieve a paginated list of point drop events
99
+ * List Point Drops
100
+ */
101
+ async apiAdminPointDropsGet(requestParameters: ApiAdminPointDropsGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminPointDropsGet200Response> {
102
+ const response = await this.apiAdminPointDropsGetRaw(requestParameters, initOverrides);
103
+ return await response.value();
104
+ }
105
+
37
106
  /**
38
107
  * Create a new point drop event (manual, batch, or global)
39
108
  * Create Point Drop
@@ -21,7 +21,7 @@ import type {
21
21
  ApiAdminAppConfigsIdPutRequest,
22
22
  ApiAdminAppConfigsPost200Response,
23
23
  ApiAdminAppConfigsPostRequest,
24
- ApiUserGet200Response,
24
+ ApiAuthValidateGet200Response,
25
25
  } from '../models/index';
26
26
  import {
27
27
  ApiAdminAppConfigsGet200ResponseFromJSON,
@@ -36,8 +36,8 @@ import {
36
36
  ApiAdminAppConfigsPost200ResponseToJSON,
37
37
  ApiAdminAppConfigsPostRequestFromJSON,
38
38
  ApiAdminAppConfigsPostRequestToJSON,
39
- ApiUserGet200ResponseFromJSON,
40
- ApiUserGet200ResponseToJSON,
39
+ ApiAuthValidateGet200ResponseFromJSON,
40
+ ApiAuthValidateGet200ResponseToJSON,
41
41
  } from '../models/index';
42
42
 
43
43
  export interface ApiAdminAppConfigsGetRequest {
@@ -184,7 +184,7 @@ export class AppConfigurationApi extends runtime.BaseAPI {
184
184
  * Delete an existing app configuration
185
185
  * Delete App Config
186
186
  */
187
- async apiAdminAppConfigsIdDeleteRaw(requestParameters: ApiAdminAppConfigsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserGet200Response>> {
187
+ async apiAdminAppConfigsIdDeleteRaw(requestParameters: ApiAdminAppConfigsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthValidateGet200Response>> {
188
188
  if (requestParameters['id'] == null) {
189
189
  throw new runtime.RequiredError(
190
190
  'id',
@@ -215,14 +215,14 @@ export class AppConfigurationApi extends runtime.BaseAPI {
215
215
  query: queryParameters,
216
216
  }, initOverrides);
217
217
 
218
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserGet200ResponseFromJSON(jsonValue));
218
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthValidateGet200ResponseFromJSON(jsonValue));
219
219
  }
220
220
 
221
221
  /**
222
222
  * Delete an existing app configuration
223
223
  * Delete App Config
224
224
  */
225
- async apiAdminAppConfigsIdDelete(requestParameters: ApiAdminAppConfigsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response> {
225
+ async apiAdminAppConfigsIdDelete(requestParameters: ApiAdminAppConfigsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthValidateGet200Response> {
226
226
  const response = await this.apiAdminAppConfigsIdDeleteRaw(requestParameters, initOverrides);
227
227
  return await response.value();
228
228
  }
@@ -31,7 +31,7 @@ import type {
31
31
  ApiAuthRegisterVerifyOtpPostRequest,
32
32
  ApiAuthSocialMobilePost200Response,
33
33
  ApiAuthSocialMobilePostRequest,
34
- ApiUserGet200Response,
34
+ ApiAuthValidateGet200Response,
35
35
  } from '../models/index';
36
36
  import {
37
37
  ApiAuthChangePasswordPostRequestFromJSON,
@@ -66,8 +66,8 @@ import {
66
66
  ApiAuthSocialMobilePost200ResponseToJSON,
67
67
  ApiAuthSocialMobilePostRequestFromJSON,
68
68
  ApiAuthSocialMobilePostRequestToJSON,
69
- ApiUserGet200ResponseFromJSON,
70
- ApiUserGet200ResponseToJSON,
69
+ ApiAuthValidateGet200ResponseFromJSON,
70
+ ApiAuthValidateGet200ResponseToJSON,
71
71
  } from '../models/index';
72
72
 
73
73
  export interface ApiAuthChangePasswordPostOperationRequest {
@@ -115,7 +115,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
115
115
  * Change user password (requires authentication)
116
116
  * Change Password
117
117
  */
118
- async apiAuthChangePasswordPostRaw(requestParameters: ApiAuthChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserGet200Response>> {
118
+ async apiAuthChangePasswordPostRaw(requestParameters: ApiAuthChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthValidateGet200Response>> {
119
119
  const queryParameters: any = {};
120
120
 
121
121
  const headerParameters: runtime.HTTPHeaders = {};
@@ -142,14 +142,14 @@ export class AuthenticationApi extends runtime.BaseAPI {
142
142
  body: ApiAuthChangePasswordPostRequestToJSON(requestParameters['apiAuthChangePasswordPostRequest']),
143
143
  }, initOverrides);
144
144
 
145
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserGet200ResponseFromJSON(jsonValue));
145
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthValidateGet200ResponseFromJSON(jsonValue));
146
146
  }
147
147
 
148
148
  /**
149
149
  * Change user password (requires authentication)
150
150
  * Change Password
151
151
  */
152
- async apiAuthChangePasswordPost(requestParameters: ApiAuthChangePasswordPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response> {
152
+ async apiAuthChangePasswordPost(requestParameters: ApiAuthChangePasswordPostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthValidateGet200Response> {
153
153
  const response = await this.apiAuthChangePasswordPostRaw(requestParameters, initOverrides);
154
154
  return await response.value();
155
155
  }
@@ -542,7 +542,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
542
542
  * Validate the current access token and return user information
543
543
  * Validate Token
544
544
  */
545
- async apiAuthValidateGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserGet200Response>> {
545
+ async apiAuthValidateGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthValidateGet200Response>> {
546
546
  const queryParameters: any = {};
547
547
 
548
548
  const headerParameters: runtime.HTTPHeaders = {};
@@ -566,14 +566,14 @@ export class AuthenticationApi extends runtime.BaseAPI {
566
566
  query: queryParameters,
567
567
  }, initOverrides);
568
568
 
569
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserGet200ResponseFromJSON(jsonValue));
569
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthValidateGet200ResponseFromJSON(jsonValue));
570
570
  }
571
571
 
572
572
  /**
573
573
  * Validate the current access token and return user information
574
574
  * Validate Token
575
575
  */
576
- async apiAuthValidateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response> {
576
+ async apiAuthValidateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthValidateGet200Response> {
577
577
  const response = await this.apiAuthValidateGetRaw(initOverrides);
578
578
  return await response.value();
579
579
  }
@@ -10,7 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiAdminPointDropsPost200Response, ApiAdminPointDropsPostRequest } from '../models/index';
13
+ import type { ApiAdminPointDropsGet200Response, ApiAdminPointDropsGetFilterParameter, ApiAdminPointDropsPost200Response, ApiAdminPointDropsPostRequest } from '../models/index';
14
+ export interface ApiAdminPointDropsGetRequest {
15
+ page?: number;
16
+ pageSize?: number;
17
+ sort?: string;
18
+ filter?: ApiAdminPointDropsGetFilterParameter;
19
+ }
14
20
  export interface ApiAdminPointDropsPostOperationRequest {
15
21
  apiAdminPointDropsPostRequest?: ApiAdminPointDropsPostRequest;
16
22
  }
@@ -18,6 +24,16 @@ export interface ApiAdminPointDropsPostOperationRequest {
18
24
  *
19
25
  */
20
26
  export declare class AdminPointsApi extends runtime.BaseAPI {
27
+ /**
28
+ * Retrieve a paginated list of point drop events
29
+ * List Point Drops
30
+ */
31
+ apiAdminPointDropsGetRaw(requestParameters: ApiAdminPointDropsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAdminPointDropsGet200Response>>;
32
+ /**
33
+ * Retrieve a paginated list of point drop events
34
+ * List Point Drops
35
+ */
36
+ apiAdminPointDropsGet(requestParameters?: ApiAdminPointDropsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAdminPointDropsGet200Response>;
21
37
  /**
22
38
  * Create a new point drop event (manual, batch, or global)
23
39
  * Create Point Drop
@@ -12,11 +12,56 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiAdminPointDropsPost200ResponseFromJSON, ApiAdminPointDropsPostRequestToJSON, } from '../models/index';
15
+ import { ApiAdminPointDropsGet200ResponseFromJSON, ApiAdminPointDropsPost200ResponseFromJSON, ApiAdminPointDropsPostRequestToJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
19
19
  export class AdminPointsApi extends runtime.BaseAPI {
20
+ /**
21
+ * Retrieve a paginated list of point drop events
22
+ * List Point Drops
23
+ */
24
+ async apiAdminPointDropsGetRaw(requestParameters, initOverrides) {
25
+ const queryParameters = {};
26
+ if (requestParameters['page'] != null) {
27
+ queryParameters['page'] = requestParameters['page'];
28
+ }
29
+ if (requestParameters['pageSize'] != null) {
30
+ queryParameters['pageSize'] = requestParameters['pageSize'];
31
+ }
32
+ if (requestParameters['sort'] != null) {
33
+ queryParameters['sort'] = requestParameters['sort'];
34
+ }
35
+ if (requestParameters['filter'] != null) {
36
+ queryParameters['filter'] = requestParameters['filter'];
37
+ }
38
+ const headerParameters = {};
39
+ if (this.configuration && this.configuration.apiKey) {
40
+ headerParameters["x-api-key"] = await this.configuration.apiKey("x-api-key"); // ApiKeyAuth authentication
41
+ }
42
+ if (this.configuration && this.configuration.accessToken) {
43
+ const token = this.configuration.accessToken;
44
+ const tokenString = await token("BearerAuth", []);
45
+ if (tokenString) {
46
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
+ }
48
+ }
49
+ const response = await this.request({
50
+ path: `/api/admin/point-drops`,
51
+ method: 'GET',
52
+ headers: headerParameters,
53
+ query: queryParameters,
54
+ }, initOverrides);
55
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAdminPointDropsGet200ResponseFromJSON(jsonValue));
56
+ }
57
+ /**
58
+ * Retrieve a paginated list of point drop events
59
+ * List Point Drops
60
+ */
61
+ async apiAdminPointDropsGet(requestParameters = {}, initOverrides) {
62
+ const response = await this.apiAdminPointDropsGetRaw(requestParameters, initOverrides);
63
+ return await response.value();
64
+ }
20
65
  /**
21
66
  * Create a new point drop event (manual, batch, or global)
22
67
  * Create Point Drop
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiAdminAppConfigsGet200Response, ApiAdminAppConfigsGetFilterParameter, ApiAdminAppConfigsGroupGroupGet200Response, ApiAdminAppConfigsIdPutRequest, ApiAdminAppConfigsPost200Response, ApiAdminAppConfigsPostRequest, ApiUserGet200Response } from '../models/index';
13
+ import type { ApiAdminAppConfigsGet200Response, ApiAdminAppConfigsGetFilterParameter, ApiAdminAppConfigsGroupGroupGet200Response, ApiAdminAppConfigsIdPutRequest, ApiAdminAppConfigsPost200Response, ApiAdminAppConfigsPostRequest, ApiAuthValidateGet200Response } from '../models/index';
14
14
  export interface ApiAdminAppConfigsGetRequest {
15
15
  page?: number;
16
16
  pageSize?: number;
@@ -64,12 +64,12 @@ export declare class AppConfigurationApi extends runtime.BaseAPI {
64
64
  * Delete an existing app configuration
65
65
  * Delete App Config
66
66
  */
67
- apiAdminAppConfigsIdDeleteRaw(requestParameters: ApiAdminAppConfigsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserGet200Response>>;
67
+ apiAdminAppConfigsIdDeleteRaw(requestParameters: ApiAdminAppConfigsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthValidateGet200Response>>;
68
68
  /**
69
69
  * Delete an existing app configuration
70
70
  * Delete App Config
71
71
  */
72
- apiAdminAppConfigsIdDelete(requestParameters: ApiAdminAppConfigsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response>;
72
+ apiAdminAppConfigsIdDelete(requestParameters: ApiAdminAppConfigsIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthValidateGet200Response>;
73
73
  /**
74
74
  * Retrieve a specific app configuration by its ID
75
75
  * Get App Config by ID
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiAdminAppConfigsGet200ResponseFromJSON, ApiAdminAppConfigsGroupGroupGet200ResponseFromJSON, ApiAdminAppConfigsIdPutRequestToJSON, ApiAdminAppConfigsPost200ResponseFromJSON, ApiAdminAppConfigsPostRequestToJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
15
+ import { ApiAdminAppConfigsGet200ResponseFromJSON, ApiAdminAppConfigsGroupGroupGet200ResponseFromJSON, ApiAdminAppConfigsIdPutRequestToJSON, ApiAdminAppConfigsPost200ResponseFromJSON, ApiAdminAppConfigsPostRequestToJSON, ApiAuthValidateGet200ResponseFromJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
@@ -124,7 +124,7 @@ export class AppConfigurationApi extends runtime.BaseAPI {
124
124
  headers: headerParameters,
125
125
  query: queryParameters,
126
126
  }, initOverrides);
127
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserGet200ResponseFromJSON(jsonValue));
127
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthValidateGet200ResponseFromJSON(jsonValue));
128
128
  }
129
129
  /**
130
130
  * Delete an existing app configuration
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiAuthChangePasswordPostRequest, ApiAuthForgotPasswordChangePasswordPost200Response, ApiAuthForgotPasswordChangePasswordPostRequest, ApiAuthForgotPasswordRequestPostRequest, ApiAuthForgotPasswordVerifyOtpPost200Response, ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiUserGet200Response } from '../models/index';
13
+ import type { ApiAuthChangePasswordPostRequest, ApiAuthForgotPasswordChangePasswordPost200Response, ApiAuthForgotPasswordChangePasswordPostRequest, ApiAuthForgotPasswordRequestPostRequest, ApiAuthForgotPasswordVerifyOtpPost200Response, ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiAuthValidateGet200Response } from '../models/index';
14
14
  export interface ApiAuthChangePasswordPostOperationRequest {
15
15
  apiAuthChangePasswordPostRequest?: ApiAuthChangePasswordPostRequest;
16
16
  }
@@ -46,12 +46,12 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
46
46
  * Change user password (requires authentication)
47
47
  * Change Password
48
48
  */
49
- apiAuthChangePasswordPostRaw(requestParameters: ApiAuthChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserGet200Response>>;
49
+ apiAuthChangePasswordPostRaw(requestParameters: ApiAuthChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthValidateGet200Response>>;
50
50
  /**
51
51
  * Change user password (requires authentication)
52
52
  * Change Password
53
53
  */
54
- apiAuthChangePasswordPost(requestParameters?: ApiAuthChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response>;
54
+ apiAuthChangePasswordPost(requestParameters?: ApiAuthChangePasswordPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthValidateGet200Response>;
55
55
  /**
56
56
  * Change password using reset token
57
57
  * Forgot Password 3. Change Password
@@ -146,10 +146,10 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
146
146
  * Validate the current access token and return user information
147
147
  * Validate Token
148
148
  */
149
- apiAuthValidateGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiUserGet200Response>>;
149
+ apiAuthValidateGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthValidateGet200Response>>;
150
150
  /**
151
151
  * Validate the current access token and return user information
152
152
  * Validate Token
153
153
  */
154
- apiAuthValidateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiUserGet200Response>;
154
+ apiAuthValidateGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthValidateGet200Response>;
155
155
  }
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiAuthChangePasswordPostRequestToJSON, ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON, ApiAuthForgotPasswordChangePasswordPostRequestToJSON, ApiAuthForgotPasswordRequestPostRequestToJSON, ApiAuthForgotPasswordVerifyOtpPost200ResponseFromJSON, ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
15
+ import { ApiAuthChangePasswordPostRequestToJSON, ApiAuthForgotPasswordChangePasswordPost200ResponseFromJSON, ApiAuthForgotPasswordChangePasswordPostRequestToJSON, ApiAuthForgotPasswordRequestPostRequestToJSON, ApiAuthForgotPasswordVerifyOtpPost200ResponseFromJSON, ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiAuthValidateGet200ResponseFromJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
@@ -42,7 +42,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
42
42
  query: queryParameters,
43
43
  body: ApiAuthChangePasswordPostRequestToJSON(requestParameters['apiAuthChangePasswordPostRequest']),
44
44
  }, initOverrides);
45
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserGet200ResponseFromJSON(jsonValue));
45
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthValidateGet200ResponseFromJSON(jsonValue));
46
46
  }
47
47
  /**
48
48
  * Change user password (requires authentication)
@@ -388,7 +388,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
388
388
  headers: headerParameters,
389
389
  query: queryParameters,
390
390
  }, initOverrides);
391
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiUserGet200ResponseFromJSON(jsonValue));
391
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthValidateGet200ResponseFromJSON(jsonValue));
392
392
  }
393
393
  /**
394
394
  * Validate the current access token and return user information
@@ -0,0 +1,51 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiAdminPointDropsGet200ResponseResponseObject } from './ApiAdminPointDropsGet200ResponseResponseObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiAdminPointDropsGet200Response
17
+ */
18
+ export interface ApiAdminPointDropsGet200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiAdminPointDropsGet200Response
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiAdminPointDropsGet200Response
29
+ */
30
+ message: string;
31
+ /**
32
+ *
33
+ * @type {ApiAdminPointDropsGet200ResponseResponseObject}
34
+ * @memberof ApiAdminPointDropsGet200Response
35
+ */
36
+ responseObject?: ApiAdminPointDropsGet200ResponseResponseObject;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiAdminPointDropsGet200Response
41
+ */
42
+ statusCode: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiAdminPointDropsGet200Response interface.
46
+ */
47
+ export declare function instanceOfApiAdminPointDropsGet200Response(value: object): value is ApiAdminPointDropsGet200Response;
48
+ export declare function ApiAdminPointDropsGet200ResponseFromJSON(json: any): ApiAdminPointDropsGet200Response;
49
+ export declare function ApiAdminPointDropsGet200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminPointDropsGet200Response;
50
+ export declare function ApiAdminPointDropsGet200ResponseToJSON(json: any): ApiAdminPointDropsGet200Response;
51
+ export declare function ApiAdminPointDropsGet200ResponseToJSONTyped(value?: ApiAdminPointDropsGet200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * DRX 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
+ import { ApiAdminPointDropsGet200ResponseResponseObjectFromJSON, ApiAdminPointDropsGet200ResponseResponseObjectToJSON, } from './ApiAdminPointDropsGet200ResponseResponseObject';
15
+ /**
16
+ * Check if a given object implements the ApiAdminPointDropsGet200Response interface.
17
+ */
18
+ export function instanceOfApiAdminPointDropsGet200Response(value) {
19
+ if (!('success' in value) || value['success'] === undefined)
20
+ return false;
21
+ if (!('message' in value) || value['message'] === undefined)
22
+ return false;
23
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function ApiAdminPointDropsGet200ResponseFromJSON(json) {
28
+ return ApiAdminPointDropsGet200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function ApiAdminPointDropsGet200ResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'success': json['success'],
36
+ 'message': json['message'],
37
+ 'responseObject': json['responseObject'] == null ? undefined : ApiAdminPointDropsGet200ResponseResponseObjectFromJSON(json['responseObject']),
38
+ 'statusCode': json['statusCode'],
39
+ };
40
+ }
41
+ export function ApiAdminPointDropsGet200ResponseToJSON(json) {
42
+ return ApiAdminPointDropsGet200ResponseToJSONTyped(json, false);
43
+ }
44
+ export function ApiAdminPointDropsGet200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'message': value['message'],
51
+ 'responseObject': ApiAdminPointDropsGet200ResponseResponseObjectToJSON(value['responseObject']),
52
+ 'statusCode': value['statusCode'],
53
+ };
54
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * DRX API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInner } from './ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiAdminPointDropsGet200ResponseResponseObject
17
+ */
18
+ export interface ApiAdminPointDropsGet200ResponseResponseObject {
19
+ /**
20
+ *
21
+ * @type {Array<Array<ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInner>>}
22
+ * @memberof ApiAdminPointDropsGet200ResponseResponseObject
23
+ */
24
+ items: Array<Array<ApiAdminPointDropsGet200ResponseResponseObjectItemsInnerInner>>;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof ApiAdminPointDropsGet200ResponseResponseObject
29
+ */
30
+ currentPage: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof ApiAdminPointDropsGet200ResponseResponseObject
35
+ */
36
+ totalItems: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiAdminPointDropsGet200ResponseResponseObject
41
+ */
42
+ totalPages: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof ApiAdminPointDropsGet200ResponseResponseObject
47
+ */
48
+ pageSize: number;
49
+ }
50
+ /**
51
+ * Check if a given object implements the ApiAdminPointDropsGet200ResponseResponseObject interface.
52
+ */
53
+ export declare function instanceOfApiAdminPointDropsGet200ResponseResponseObject(value: object): value is ApiAdminPointDropsGet200ResponseResponseObject;
54
+ export declare function ApiAdminPointDropsGet200ResponseResponseObjectFromJSON(json: any): ApiAdminPointDropsGet200ResponseResponseObject;
55
+ export declare function ApiAdminPointDropsGet200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminPointDropsGet200ResponseResponseObject;
56
+ export declare function ApiAdminPointDropsGet200ResponseResponseObjectToJSON(json: any): ApiAdminPointDropsGet200ResponseResponseObject;
57
+ export declare function ApiAdminPointDropsGet200ResponseResponseObjectToJSONTyped(value?: ApiAdminPointDropsGet200ResponseResponseObject | null, ignoreDiscriminator?: boolean): any;