@drxsuperapp/sdk 1.1.215 → 1.1.216

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.
@@ -18,6 +18,8 @@ models/ApiAuthLoginPost200ResponseResponseObjectUser.ts
18
18
  models/ApiAuthLoginPostRequest.ts
19
19
  models/ApiAuthRefreshPost200Response.ts
20
20
  models/ApiAuthRefreshPost200ResponseResponseObject.ts
21
+ models/ApiAuthRegisterCompletePost200Response.ts
22
+ models/ApiAuthRegisterCompletePost200ResponseResponseObject.ts
21
23
  models/ApiAuthRegisterCompletePostRequest.ts
22
24
  models/ApiAuthRegisterStartPost200Response.ts
23
25
  models/ApiAuthRegisterStartPost200ResponseResponseObject.ts
@@ -18,6 +18,7 @@ import type {
18
18
  ApiAuthLoginPost200Response,
19
19
  ApiAuthLoginPostRequest,
20
20
  ApiAuthRefreshPost200Response,
21
+ ApiAuthRegisterCompletePost200Response,
21
22
  ApiAuthRegisterCompletePostRequest,
22
23
  ApiAuthRegisterStartPost200Response,
23
24
  ApiAuthRegisterStartPostRequest,
@@ -34,6 +35,8 @@ import {
34
35
  ApiAuthLoginPostRequestToJSON,
35
36
  ApiAuthRefreshPost200ResponseFromJSON,
36
37
  ApiAuthRefreshPost200ResponseToJSON,
38
+ ApiAuthRegisterCompletePost200ResponseFromJSON,
39
+ ApiAuthRegisterCompletePost200ResponseToJSON,
37
40
  ApiAuthRegisterCompletePostRequestFromJSON,
38
41
  ApiAuthRegisterCompletePostRequestToJSON,
39
42
  ApiAuthRegisterStartPost200ResponseFromJSON,
@@ -164,7 +167,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
164
167
  * Complete registration by setting password and creating user account
165
168
  * Register 3. Complete User Registration
166
169
  */
167
- async apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthLoginPost200Response>> {
170
+ async apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterCompletePost200Response>> {
168
171
  const queryParameters: any = {};
169
172
 
170
173
  const headerParameters: runtime.HTTPHeaders = {};
@@ -191,14 +194,14 @@ export class AuthenticationApi extends runtime.BaseAPI {
191
194
  body: ApiAuthRegisterCompletePostRequestToJSON(requestParameters['apiAuthRegisterCompletePostRequest']),
192
195
  }, initOverrides);
193
196
 
194
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthLoginPost200ResponseFromJSON(jsonValue));
197
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterCompletePost200ResponseFromJSON(jsonValue));
195
198
  }
196
199
 
197
200
  /**
198
201
  * Complete registration by setting password and creating user account
199
202
  * Register 3. Complete User Registration
200
203
  */
201
- async apiAuthRegisterCompletePost(requestParameters: ApiAuthRegisterCompletePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthLoginPost200Response> {
204
+ async apiAuthRegisterCompletePost(requestParameters: ApiAuthRegisterCompletePostOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterCompletePost200Response> {
202
205
  const response = await this.apiAuthRegisterCompletePostRaw(requestParameters, initOverrides);
203
206
  return await response.value();
204
207
  }
package/deploy.log CHANGED
@@ -149,6 +149,8 @@
149
149
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_verify_otp_post_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_auth_register_verify_otp_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_verify_otp_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
150
150
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_verify_otp_post_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_auth_register_verify_otp_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_verify_otp_post_200_response=NewModel,ModelA=NewModelA in CLI).
151
151
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_complete_post_request. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_auth_register_complete_post_request=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_complete_post_request=NewModel,ModelA=NewModelA in CLI).
152
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_complete_post_200_response_responseObject. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_auth_register_complete_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_complete_post_200_response_responseObject=NewModel,ModelA=NewModelA in CLI).
153
+ [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_auth_register_complete_post_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_auth_register_complete_post_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_auth_register_complete_post_200_response=NewModel,ModelA=NewModelA in CLI).
152
154
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_videogames_get_200_response_responseObject_inner. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_videogames_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_videogames_get_200_response_responseObject_inner=NewModel,ModelA=NewModelA in CLI).
153
155
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport_videogames_get_200_response. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport_videogames_get_200_response=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport_videogames_get_200_response=NewModel,ModelA=NewModelA in CLI).
154
156
  [main] INFO o.o.codegen.InlineModelResolver - Inline schema created as _api_esport__id__matches_get_200_response_responseObject_items_inner_results_inner_team. To have complete control of the model name, set the `title` field or use the modelNameMapping option (e.g. --model-name-mappings _api_esport__id__matches_get_200_response_responseObject_items_inner_results_inner_team=NewModel,ModelA=NewModelA in CLI) or inlineSchemaNameMapping option (--inline-schema-name-mappings _api_esport__id__matches_get_200_response_responseObject_items_inner_results_inner_team=NewModel,ModelA=NewModelA in CLI).
@@ -167,6 +169,8 @@
167
169
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthLoginPostRequest.ts
168
170
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200Response.ts
169
171
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRefreshPost200ResponseResponseObject.ts
172
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterCompletePost200Response.ts
173
+ [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterCompletePost200ResponseResponseObject.ts
170
174
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterCompletePostRequest.ts
171
175
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterStartPost200Response.ts
172
176
  [main] INFO o.o.codegen.TemplateManager - writing file /root/drx-sdk/./models/ApiAuthRegisterStartPost200ResponseResponseObject.ts
@@ -403,21 +407,22 @@
403
407
  # https://opencollective.com/openapi_generator/donate #
404
408
  ################################################################################
405
409
  ✅ SDK generated
406
- [master b40be82] VPS: Generated API SDK
407
- 4 files changed, 54 insertions(+), 192 deletions(-)
408
- delete mode 100644 apis/RegistrationApi.ts
410
+ [master 23bab3e] VPS: Generated API SDK
411
+ 6 files changed, 218 insertions(+), 3 deletions(-)
412
+ create mode 100644 models/ApiAuthRegisterCompletePost200Response.ts
413
+ create mode 100644 models/ApiAuthRegisterCompletePost200ResponseResponseObject.ts
409
414
  To https://gitlab.com/drx-super/drx-sdk.git
410
- edb142e..b40be82 master -> master
415
+ 72d677f..23bab3e master -> master
411
416
  ✅ Changes committed and pushed
412
- v1.1.215
417
+ v1.1.216
413
418
  To https://gitlab.com/drx-super/drx-sdk.git
414
- b40be82..72d677f master -> master
419
+ 23bab3e..14457b9 master -> master
415
420
  ✅ Version bumped
416
421
 
417
- > @drxsuperapp/sdk@1.1.215 prepublishOnly
422
+ > @drxsuperapp/sdk@1.1.216 prepublishOnly
418
423
  > npm run build
419
424
 
420
425
 
421
- > @drxsuperapp/sdk@1.1.215 build
426
+ > @drxsuperapp/sdk@1.1.216 build
422
427
  > tsc
423
428
 
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiUserGet200Response } from '../models/index';
13
+ import type { ApiAuthLoginPost200Response, ApiAuthLoginPostRequest, ApiAuthRefreshPost200Response, ApiAuthRegisterCompletePost200Response, ApiAuthRegisterCompletePostRequest, ApiAuthRegisterStartPost200Response, ApiAuthRegisterStartPostRequest, ApiAuthRegisterVerifyOtpPost200Response, ApiAuthRegisterVerifyOtpPostRequest, ApiAuthSocialMobilePost200Response, ApiAuthSocialMobilePostRequest, ApiUserGet200Response } from '../models/index';
14
14
  export interface ApiAuthLoginPostOperationRequest {
15
15
  apiAuthLoginPostRequest?: ApiAuthLoginPostRequest;
16
16
  }
@@ -54,12 +54,12 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
54
54
  * Complete registration by setting password and creating user account
55
55
  * Register 3. Complete User Registration
56
56
  */
57
- apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthLoginPost200Response>>;
57
+ apiAuthRegisterCompletePostRaw(requestParameters: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiAuthRegisterCompletePost200Response>>;
58
58
  /**
59
59
  * Complete registration by setting password and creating user account
60
60
  * Register 3. Complete User Registration
61
61
  */
62
- apiAuthRegisterCompletePost(requestParameters?: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthLoginPost200Response>;
62
+ apiAuthRegisterCompletePost(requestParameters?: ApiAuthRegisterCompletePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiAuthRegisterCompletePost200Response>;
63
63
  /**
64
64
  * Start registration process by sending OTP to email
65
65
  * Register 1. Start User Registration
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime';
15
- import { ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
15
+ import { ApiAuthLoginPost200ResponseFromJSON, ApiAuthLoginPostRequestToJSON, ApiAuthRefreshPost200ResponseFromJSON, ApiAuthRegisterCompletePost200ResponseFromJSON, ApiAuthRegisterCompletePostRequestToJSON, ApiAuthRegisterStartPost200ResponseFromJSON, ApiAuthRegisterStartPostRequestToJSON, ApiAuthRegisterVerifyOtpPost200ResponseFromJSON, ApiAuthRegisterVerifyOtpPostRequestToJSON, ApiAuthSocialMobilePost200ResponseFromJSON, ApiAuthSocialMobilePostRequestToJSON, ApiUserGet200ResponseFromJSON, } from '../models/index';
16
16
  /**
17
17
  *
18
18
  */
@@ -110,7 +110,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
110
110
  query: queryParameters,
111
111
  body: ApiAuthRegisterCompletePostRequestToJSON(requestParameters['apiAuthRegisterCompletePostRequest']),
112
112
  }, initOverrides);
113
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthLoginPost200ResponseFromJSON(jsonValue));
113
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiAuthRegisterCompletePost200ResponseFromJSON(jsonValue));
114
114
  }
115
115
  /**
116
116
  * Complete registration by setting password and creating user account
@@ -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 { ApiAuthRegisterCompletePost200ResponseResponseObject } from './ApiAuthRegisterCompletePost200ResponseResponseObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiAuthRegisterCompletePost200Response
17
+ */
18
+ export interface ApiAuthRegisterCompletePost200Response {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof ApiAuthRegisterCompletePost200Response
23
+ */
24
+ success: boolean;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiAuthRegisterCompletePost200Response
29
+ */
30
+ message: string;
31
+ /**
32
+ *
33
+ * @type {ApiAuthRegisterCompletePost200ResponseResponseObject}
34
+ * @memberof ApiAuthRegisterCompletePost200Response
35
+ */
36
+ responseObject?: ApiAuthRegisterCompletePost200ResponseResponseObject;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof ApiAuthRegisterCompletePost200Response
41
+ */
42
+ statusCode: number;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiAuthRegisterCompletePost200Response interface.
46
+ */
47
+ export declare function instanceOfApiAuthRegisterCompletePost200Response(value: object): value is ApiAuthRegisterCompletePost200Response;
48
+ export declare function ApiAuthRegisterCompletePost200ResponseFromJSON(json: any): ApiAuthRegisterCompletePost200Response;
49
+ export declare function ApiAuthRegisterCompletePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthRegisterCompletePost200Response;
50
+ export declare function ApiAuthRegisterCompletePost200ResponseToJSON(json: any): ApiAuthRegisterCompletePost200Response;
51
+ export declare function ApiAuthRegisterCompletePost200ResponseToJSONTyped(value?: ApiAuthRegisterCompletePost200Response | 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 { ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSON, ApiAuthRegisterCompletePost200ResponseResponseObjectToJSON, } from './ApiAuthRegisterCompletePost200ResponseResponseObject';
15
+ /**
16
+ * Check if a given object implements the ApiAuthRegisterCompletePost200Response interface.
17
+ */
18
+ export function instanceOfApiAuthRegisterCompletePost200Response(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 ApiAuthRegisterCompletePost200ResponseFromJSON(json) {
28
+ return ApiAuthRegisterCompletePost200ResponseFromJSONTyped(json, false);
29
+ }
30
+ export function ApiAuthRegisterCompletePost200ResponseFromJSONTyped(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 : ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSON(json['responseObject']),
38
+ 'statusCode': json['statusCode'],
39
+ };
40
+ }
41
+ export function ApiAuthRegisterCompletePost200ResponseToJSON(json) {
42
+ return ApiAuthRegisterCompletePost200ResponseToJSONTyped(json, false);
43
+ }
44
+ export function ApiAuthRegisterCompletePost200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'success': value['success'],
50
+ 'message': value['message'],
51
+ 'responseObject': ApiAuthRegisterCompletePost200ResponseResponseObjectToJSON(value['responseObject']),
52
+ 'statusCode': value['statusCode'],
53
+ };
54
+ }
@@ -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 { ApiAuthLoginPost200ResponseResponseObjectUser } from './ApiAuthLoginPost200ResponseResponseObjectUser';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ApiAuthRegisterCompletePost200ResponseResponseObject
17
+ */
18
+ export interface ApiAuthRegisterCompletePost200ResponseResponseObject {
19
+ /**
20
+ *
21
+ * @type {ApiAuthLoginPost200ResponseResponseObjectUser}
22
+ * @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
23
+ */
24
+ user: ApiAuthLoginPost200ResponseResponseObjectUser;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
29
+ */
30
+ accessToken: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
35
+ */
36
+ refreshToken: string;
37
+ /**
38
+ *
39
+ * @type {boolean}
40
+ * @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
41
+ */
42
+ affiliateCodeApplied?: boolean;
43
+ }
44
+ /**
45
+ * Check if a given object implements the ApiAuthRegisterCompletePost200ResponseResponseObject interface.
46
+ */
47
+ export declare function instanceOfApiAuthRegisterCompletePost200ResponseResponseObject(value: object): value is ApiAuthRegisterCompletePost200ResponseResponseObject;
48
+ export declare function ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSON(json: any): ApiAuthRegisterCompletePost200ResponseResponseObject;
49
+ export declare function ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthRegisterCompletePost200ResponseResponseObject;
50
+ export declare function ApiAuthRegisterCompletePost200ResponseResponseObjectToJSON(json: any): ApiAuthRegisterCompletePost200ResponseResponseObject;
51
+ export declare function ApiAuthRegisterCompletePost200ResponseResponseObjectToJSONTyped(value?: ApiAuthRegisterCompletePost200ResponseResponseObject | 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 { ApiAuthLoginPost200ResponseResponseObjectUserFromJSON, ApiAuthLoginPost200ResponseResponseObjectUserToJSON, } from './ApiAuthLoginPost200ResponseResponseObjectUser';
15
+ /**
16
+ * Check if a given object implements the ApiAuthRegisterCompletePost200ResponseResponseObject interface.
17
+ */
18
+ export function instanceOfApiAuthRegisterCompletePost200ResponseResponseObject(value) {
19
+ if (!('user' in value) || value['user'] === undefined)
20
+ return false;
21
+ if (!('accessToken' in value) || value['accessToken'] === undefined)
22
+ return false;
23
+ if (!('refreshToken' in value) || value['refreshToken'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSON(json) {
28
+ return ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSONTyped(json, false);
29
+ }
30
+ export function ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'user': ApiAuthLoginPost200ResponseResponseObjectUserFromJSON(json['user']),
36
+ 'accessToken': json['accessToken'],
37
+ 'refreshToken': json['refreshToken'],
38
+ 'affiliateCodeApplied': json['affiliateCodeApplied'] == null ? undefined : json['affiliateCodeApplied'],
39
+ };
40
+ }
41
+ export function ApiAuthRegisterCompletePost200ResponseResponseObjectToJSON(json) {
42
+ return ApiAuthRegisterCompletePost200ResponseResponseObjectToJSONTyped(json, false);
43
+ }
44
+ export function ApiAuthRegisterCompletePost200ResponseResponseObjectToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'user': ApiAuthLoginPost200ResponseResponseObjectUserToJSON(value['user']),
50
+ 'accessToken': value['accessToken'],
51
+ 'refreshToken': value['refreshToken'],
52
+ 'affiliateCodeApplied': value['affiliateCodeApplied'],
53
+ };
54
+ }
@@ -27,6 +27,12 @@ export interface ApiAuthRegisterCompletePostRequest {
27
27
  * @memberof ApiAuthRegisterCompletePostRequest
28
28
  */
29
29
  password: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ApiAuthRegisterCompletePostRequest
34
+ */
35
+ affiliateCode?: string;
30
36
  }
31
37
  /**
32
38
  * Check if a given object implements the ApiAuthRegisterCompletePostRequest interface.
@@ -31,6 +31,7 @@ export function ApiAuthRegisterCompletePostRequestFromJSONTyped(json, ignoreDisc
31
31
  return {
32
32
  'email': json['email'],
33
33
  'password': json['password'],
34
+ 'affiliateCode': json['affiliateCode'] == null ? undefined : json['affiliateCode'],
34
35
  };
35
36
  }
36
37
  export function ApiAuthRegisterCompletePostRequestToJSON(json) {
@@ -43,5 +44,6 @@ export function ApiAuthRegisterCompletePostRequestToJSONTyped(value, ignoreDiscr
43
44
  return {
44
45
  'email': value['email'],
45
46
  'password': value['password'],
47
+ 'affiliateCode': value['affiliateCode'],
46
48
  };
47
49
  }
@@ -4,6 +4,8 @@ export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
4
4
  export * from './ApiAuthLoginPostRequest';
5
5
  export * from './ApiAuthRefreshPost200Response';
6
6
  export * from './ApiAuthRefreshPost200ResponseResponseObject';
7
+ export * from './ApiAuthRegisterCompletePost200Response';
8
+ export * from './ApiAuthRegisterCompletePost200ResponseResponseObject';
7
9
  export * from './ApiAuthRegisterCompletePostRequest';
8
10
  export * from './ApiAuthRegisterStartPost200Response';
9
11
  export * from './ApiAuthRegisterStartPost200ResponseResponseObject';
@@ -6,6 +6,8 @@ export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
6
6
  export * from './ApiAuthLoginPostRequest';
7
7
  export * from './ApiAuthRefreshPost200Response';
8
8
  export * from './ApiAuthRefreshPost200ResponseResponseObject';
9
+ export * from './ApiAuthRegisterCompletePost200Response';
10
+ export * from './ApiAuthRegisterCompletePost200ResponseResponseObject';
9
11
  export * from './ApiAuthRegisterCompletePostRequest';
10
12
  export * from './ApiAuthRegisterStartPost200Response';
11
13
  export * from './ApiAuthRegisterStartPost200ResponseResponseObject';
@@ -0,0 +1,100 @@
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
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ApiAuthRegisterCompletePost200ResponseResponseObject } from './ApiAuthRegisterCompletePost200ResponseResponseObject';
17
+ import {
18
+ ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSON,
19
+ ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSONTyped,
20
+ ApiAuthRegisterCompletePost200ResponseResponseObjectToJSON,
21
+ ApiAuthRegisterCompletePost200ResponseResponseObjectToJSONTyped,
22
+ } from './ApiAuthRegisterCompletePost200ResponseResponseObject';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiAuthRegisterCompletePost200Response
28
+ */
29
+ export interface ApiAuthRegisterCompletePost200Response {
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof ApiAuthRegisterCompletePost200Response
34
+ */
35
+ success: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiAuthRegisterCompletePost200Response
40
+ */
41
+ message: string;
42
+ /**
43
+ *
44
+ * @type {ApiAuthRegisterCompletePost200ResponseResponseObject}
45
+ * @memberof ApiAuthRegisterCompletePost200Response
46
+ */
47
+ responseObject?: ApiAuthRegisterCompletePost200ResponseResponseObject;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof ApiAuthRegisterCompletePost200Response
52
+ */
53
+ statusCode: number;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiAuthRegisterCompletePost200Response interface.
58
+ */
59
+ export function instanceOfApiAuthRegisterCompletePost200Response(value: object): value is ApiAuthRegisterCompletePost200Response {
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 ApiAuthRegisterCompletePost200ResponseFromJSON(json: any): ApiAuthRegisterCompletePost200Response {
67
+ return ApiAuthRegisterCompletePost200ResponseFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiAuthRegisterCompletePost200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthRegisterCompletePost200Response {
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 : ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSON(json['responseObject']),
79
+ 'statusCode': json['statusCode'],
80
+ };
81
+ }
82
+
83
+ export function ApiAuthRegisterCompletePost200ResponseToJSON(json: any): ApiAuthRegisterCompletePost200Response {
84
+ return ApiAuthRegisterCompletePost200ResponseToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiAuthRegisterCompletePost200ResponseToJSONTyped(value?: ApiAuthRegisterCompletePost200Response | 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': ApiAuthRegisterCompletePost200ResponseResponseObjectToJSON(value['responseObject']),
97
+ 'statusCode': value['statusCode'],
98
+ };
99
+ }
100
+
@@ -0,0 +1,100 @@
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
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ApiAuthLoginPost200ResponseResponseObjectUser } from './ApiAuthLoginPost200ResponseResponseObjectUser';
17
+ import {
18
+ ApiAuthLoginPost200ResponseResponseObjectUserFromJSON,
19
+ ApiAuthLoginPost200ResponseResponseObjectUserFromJSONTyped,
20
+ ApiAuthLoginPost200ResponseResponseObjectUserToJSON,
21
+ ApiAuthLoginPost200ResponseResponseObjectUserToJSONTyped,
22
+ } from './ApiAuthLoginPost200ResponseResponseObjectUser';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiAuthRegisterCompletePost200ResponseResponseObject
28
+ */
29
+ export interface ApiAuthRegisterCompletePost200ResponseResponseObject {
30
+ /**
31
+ *
32
+ * @type {ApiAuthLoginPost200ResponseResponseObjectUser}
33
+ * @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
34
+ */
35
+ user: ApiAuthLoginPost200ResponseResponseObjectUser;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
40
+ */
41
+ accessToken: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
46
+ */
47
+ refreshToken: string;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof ApiAuthRegisterCompletePost200ResponseResponseObject
52
+ */
53
+ affiliateCodeApplied?: boolean;
54
+ }
55
+
56
+ /**
57
+ * Check if a given object implements the ApiAuthRegisterCompletePost200ResponseResponseObject interface.
58
+ */
59
+ export function instanceOfApiAuthRegisterCompletePost200ResponseResponseObject(value: object): value is ApiAuthRegisterCompletePost200ResponseResponseObject {
60
+ if (!('user' in value) || value['user'] === undefined) return false;
61
+ if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
62
+ if (!('refreshToken' in value) || value['refreshToken'] === undefined) return false;
63
+ return true;
64
+ }
65
+
66
+ export function ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSON(json: any): ApiAuthRegisterCompletePost200ResponseResponseObject {
67
+ return ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSONTyped(json, false);
68
+ }
69
+
70
+ export function ApiAuthRegisterCompletePost200ResponseResponseObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAuthRegisterCompletePost200ResponseResponseObject {
71
+ if (json == null) {
72
+ return json;
73
+ }
74
+ return {
75
+
76
+ 'user': ApiAuthLoginPost200ResponseResponseObjectUserFromJSON(json['user']),
77
+ 'accessToken': json['accessToken'],
78
+ 'refreshToken': json['refreshToken'],
79
+ 'affiliateCodeApplied': json['affiliateCodeApplied'] == null ? undefined : json['affiliateCodeApplied'],
80
+ };
81
+ }
82
+
83
+ export function ApiAuthRegisterCompletePost200ResponseResponseObjectToJSON(json: any): ApiAuthRegisterCompletePost200ResponseResponseObject {
84
+ return ApiAuthRegisterCompletePost200ResponseResponseObjectToJSONTyped(json, false);
85
+ }
86
+
87
+ export function ApiAuthRegisterCompletePost200ResponseResponseObjectToJSONTyped(value?: ApiAuthRegisterCompletePost200ResponseResponseObject | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'user': ApiAuthLoginPost200ResponseResponseObjectUserToJSON(value['user']),
95
+ 'accessToken': value['accessToken'],
96
+ 'refreshToken': value['refreshToken'],
97
+ 'affiliateCodeApplied': value['affiliateCodeApplied'],
98
+ };
99
+ }
100
+
@@ -31,6 +31,12 @@ export interface ApiAuthRegisterCompletePostRequest {
31
31
  * @memberof ApiAuthRegisterCompletePostRequest
32
32
  */
33
33
  password: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ApiAuthRegisterCompletePostRequest
38
+ */
39
+ affiliateCode?: string;
34
40
  }
35
41
 
36
42
  /**
@@ -54,6 +60,7 @@ export function ApiAuthRegisterCompletePostRequestFromJSONTyped(json: any, ignor
54
60
 
55
61
  'email': json['email'],
56
62
  'password': json['password'],
63
+ 'affiliateCode': json['affiliateCode'] == null ? undefined : json['affiliateCode'],
57
64
  };
58
65
  }
59
66
 
@@ -70,6 +77,7 @@ export function ApiAuthRegisterCompletePostRequestToJSONTyped(value?: ApiAuthReg
70
77
 
71
78
  'email': value['email'],
72
79
  'password': value['password'],
80
+ 'affiliateCode': value['affiliateCode'],
73
81
  };
74
82
  }
75
83
 
package/models/index.ts CHANGED
@@ -6,6 +6,8 @@ export * from './ApiAuthLoginPost200ResponseResponseObjectUser';
6
6
  export * from './ApiAuthLoginPostRequest';
7
7
  export * from './ApiAuthRefreshPost200Response';
8
8
  export * from './ApiAuthRefreshPost200ResponseResponseObject';
9
+ export * from './ApiAuthRegisterCompletePost200Response';
10
+ export * from './ApiAuthRegisterCompletePost200ResponseResponseObject';
9
11
  export * from './ApiAuthRegisterCompletePostRequest';
10
12
  export * from './ApiAuthRegisterStartPost200Response';
11
13
  export * from './ApiAuthRegisterStartPost200ResponseResponseObject';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drxsuperapp/sdk",
3
- "version": "1.1.215",
3
+ "version": "1.1.216",
4
4
  "main": "index.ts",
5
5
  "types": "index.ts",
6
6
  "scripts": {