@digital8/security-registers-backend-ts-sdk 0.0.1

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/.openapi-generator/FILES +33 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +46 -0
  5. package/dist/apis/GeneralApi.d.ts +123 -0
  6. package/dist/apis/GeneralApi.js +528 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +19 -0
  9. package/dist/index.d.ts +3 -0
  10. package/dist/index.js +21 -0
  11. package/dist/models/AddressResource.d.ts +80 -0
  12. package/dist/models/AddressResource.js +79 -0
  13. package/dist/models/AddressResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/AddressResourceArrayResponse.js +50 -0
  15. package/dist/models/AssetFileForUploadResource.d.ts +50 -0
  16. package/dist/models/AssetFileForUploadResource.js +63 -0
  17. package/dist/models/AssetFileForUploadResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/AssetFileForUploadResourceArrayResponse.js +50 -0
  19. package/dist/models/AssetLiteResource.d.ts +38 -0
  20. package/dist/models/AssetLiteResource.js +55 -0
  21. package/dist/models/AssetLiteResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/AssetLiteResourceArrayResponse.js +50 -0
  23. package/dist/models/AssetResource.d.ts +68 -0
  24. package/dist/models/AssetResource.js +75 -0
  25. package/dist/models/AssetResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/AssetResourceArrayResponse.js +50 -0
  27. package/dist/models/GenericResponse.d.ts +32 -0
  28. package/dist/models/GenericResponse.js +49 -0
  29. package/dist/models/IndexUserRequest.d.ts +92 -0
  30. package/dist/models/IndexUserRequest.js +80 -0
  31. package/dist/models/LoginAuthRequest.d.ts +38 -0
  32. package/dist/models/LoginAuthRequest.js +55 -0
  33. package/dist/models/PaginatedUserResourceResponse.d.ts +40 -0
  34. package/dist/models/PaginatedUserResourceResponse.js +57 -0
  35. package/dist/models/PagingMetadata.d.ts +68 -0
  36. package/dist/models/PagingMetadata.js +75 -0
  37. package/dist/models/ResetPasswordAuthRequest.d.ts +44 -0
  38. package/dist/models/ResetPasswordAuthRequest.js +59 -0
  39. package/dist/models/SendForgotPasswordLinkAuthRequest.d.ts +32 -0
  40. package/dist/models/SendForgotPasswordLinkAuthRequest.js +51 -0
  41. package/dist/models/StoreAssetFileRequest.d.ts +38 -0
  42. package/dist/models/StoreAssetFileRequest.js +55 -0
  43. package/dist/models/StoreUserRequest.d.ts +50 -0
  44. package/dist/models/StoreUserRequest.js +63 -0
  45. package/dist/models/UpdateUserRequest.d.ts +56 -0
  46. package/dist/models/UpdateUserRequest.js +57 -0
  47. package/dist/models/UserAuthTokenResource.d.ts +39 -0
  48. package/dist/models/UserAuthTokenResource.js +56 -0
  49. package/dist/models/UserAuthTokenResourceArrayResponse.d.ts +33 -0
  50. package/dist/models/UserAuthTokenResourceArrayResponse.js +50 -0
  51. package/dist/models/UserResource.d.ts +81 -0
  52. package/dist/models/UserResource.js +81 -0
  53. package/dist/models/UserResourceArrayResponse.d.ts +33 -0
  54. package/dist/models/UserResourceArrayResponse.js +50 -0
  55. package/dist/models/index.d.ts +22 -0
  56. package/dist/models/index.js +40 -0
  57. package/dist/runtime.d.ts +184 -0
  58. package/dist/runtime.js +564 -0
  59. package/package.json +19 -0
  60. package/src/apis/GeneralApi.ts +423 -0
  61. package/src/apis/index.ts +3 -0
  62. package/src/index.ts +5 -0
  63. package/src/models/AddressResource.ts +136 -0
  64. package/src/models/AddressResourceArrayResponse.ts +73 -0
  65. package/src/models/AssetFileForUploadResource.ts +93 -0
  66. package/src/models/AssetFileForUploadResourceArrayResponse.ts +73 -0
  67. package/src/models/AssetLiteResource.ts +75 -0
  68. package/src/models/AssetLiteResourceArrayResponse.ts +73 -0
  69. package/src/models/AssetResource.ts +120 -0
  70. package/src/models/AssetResourceArrayResponse.ts +73 -0
  71. package/src/models/GenericResponse.ts +65 -0
  72. package/src/models/IndexUserRequest.ts +143 -0
  73. package/src/models/LoginAuthRequest.ts +75 -0
  74. package/src/models/PaginatedUserResourceResponse.ts +90 -0
  75. package/src/models/PagingMetadata.ts +120 -0
  76. package/src/models/ResetPasswordAuthRequest.ts +84 -0
  77. package/src/models/SendForgotPasswordLinkAuthRequest.ts +66 -0
  78. package/src/models/StoreAssetFileRequest.ts +75 -0
  79. package/src/models/StoreUserRequest.ts +93 -0
  80. package/src/models/UpdateUserRequest.ts +97 -0
  81. package/src/models/UserAuthTokenResource.ts +83 -0
  82. package/src/models/UserAuthTokenResourceArrayResponse.ts +73 -0
  83. package/src/models/UserResource.ts +144 -0
  84. package/src/models/UserResourceArrayResponse.ts +73 -0
  85. package/src/models/index.ts +24 -0
  86. package/src/runtime.ts +432 -0
  87. package/tsconfig.json +20 -0
@@ -0,0 +1,44 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ResetPasswordAuthRequest
16
+ */
17
+ export interface ResetPasswordAuthRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ResetPasswordAuthRequest
22
+ */
23
+ email: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ResetPasswordAuthRequest
28
+ */
29
+ password: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ResetPasswordAuthRequest
34
+ */
35
+ token: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ResetPasswordAuthRequest interface.
39
+ */
40
+ export declare function instanceOfResetPasswordAuthRequest(value: object): value is ResetPasswordAuthRequest;
41
+ export declare function ResetPasswordAuthRequestFromJSON(json: any): ResetPasswordAuthRequest;
42
+ export declare function ResetPasswordAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetPasswordAuthRequest;
43
+ export declare function ResetPasswordAuthRequestToJSON(json: any): ResetPasswordAuthRequest;
44
+ export declare function ResetPasswordAuthRequestToJSONTyped(value?: ResetPasswordAuthRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfResetPasswordAuthRequest = instanceOfResetPasswordAuthRequest;
17
+ exports.ResetPasswordAuthRequestFromJSON = ResetPasswordAuthRequestFromJSON;
18
+ exports.ResetPasswordAuthRequestFromJSONTyped = ResetPasswordAuthRequestFromJSONTyped;
19
+ exports.ResetPasswordAuthRequestToJSON = ResetPasswordAuthRequestToJSON;
20
+ exports.ResetPasswordAuthRequestToJSONTyped = ResetPasswordAuthRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ResetPasswordAuthRequest interface.
23
+ */
24
+ function instanceOfResetPasswordAuthRequest(value) {
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ if (!('password' in value) || value['password'] === undefined)
28
+ return false;
29
+ if (!('token' in value) || value['token'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ResetPasswordAuthRequestFromJSON(json) {
34
+ return ResetPasswordAuthRequestFromJSONTyped(json, false);
35
+ }
36
+ function ResetPasswordAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'email': json['email'],
42
+ 'password': json['password'],
43
+ 'token': json['token'],
44
+ };
45
+ }
46
+ function ResetPasswordAuthRequestToJSON(json) {
47
+ return ResetPasswordAuthRequestToJSONTyped(json, false);
48
+ }
49
+ function ResetPasswordAuthRequestToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'email': value['email'],
56
+ 'password': value['password'],
57
+ 'token': value['token'],
58
+ };
59
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface SendForgotPasswordLinkAuthRequest
16
+ */
17
+ export interface SendForgotPasswordLinkAuthRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SendForgotPasswordLinkAuthRequest
22
+ */
23
+ email: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SendForgotPasswordLinkAuthRequest interface.
27
+ */
28
+ export declare function instanceOfSendForgotPasswordLinkAuthRequest(value: object): value is SendForgotPasswordLinkAuthRequest;
29
+ export declare function SendForgotPasswordLinkAuthRequestFromJSON(json: any): SendForgotPasswordLinkAuthRequest;
30
+ export declare function SendForgotPasswordLinkAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendForgotPasswordLinkAuthRequest;
31
+ export declare function SendForgotPasswordLinkAuthRequestToJSON(json: any): SendForgotPasswordLinkAuthRequest;
32
+ export declare function SendForgotPasswordLinkAuthRequestToJSONTyped(value?: SendForgotPasswordLinkAuthRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSendForgotPasswordLinkAuthRequest = instanceOfSendForgotPasswordLinkAuthRequest;
17
+ exports.SendForgotPasswordLinkAuthRequestFromJSON = SendForgotPasswordLinkAuthRequestFromJSON;
18
+ exports.SendForgotPasswordLinkAuthRequestFromJSONTyped = SendForgotPasswordLinkAuthRequestFromJSONTyped;
19
+ exports.SendForgotPasswordLinkAuthRequestToJSON = SendForgotPasswordLinkAuthRequestToJSON;
20
+ exports.SendForgotPasswordLinkAuthRequestToJSONTyped = SendForgotPasswordLinkAuthRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SendForgotPasswordLinkAuthRequest interface.
23
+ */
24
+ function instanceOfSendForgotPasswordLinkAuthRequest(value) {
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SendForgotPasswordLinkAuthRequestFromJSON(json) {
30
+ return SendForgotPasswordLinkAuthRequestFromJSONTyped(json, false);
31
+ }
32
+ function SendForgotPasswordLinkAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'email': json['email'],
38
+ };
39
+ }
40
+ function SendForgotPasswordLinkAuthRequestToJSON(json) {
41
+ return SendForgotPasswordLinkAuthRequestToJSONTyped(json, false);
42
+ }
43
+ function SendForgotPasswordLinkAuthRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'email': value['email'],
50
+ };
51
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface StoreAssetFileRequest
16
+ */
17
+ export interface StoreAssetFileRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StoreAssetFileRequest
22
+ */
23
+ fileName: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof StoreAssetFileRequest
28
+ */
29
+ fileType: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the StoreAssetFileRequest interface.
33
+ */
34
+ export declare function instanceOfStoreAssetFileRequest(value: object): value is StoreAssetFileRequest;
35
+ export declare function StoreAssetFileRequestFromJSON(json: any): StoreAssetFileRequest;
36
+ export declare function StoreAssetFileRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreAssetFileRequest;
37
+ export declare function StoreAssetFileRequestToJSON(json: any): StoreAssetFileRequest;
38
+ export declare function StoreAssetFileRequestToJSONTyped(value?: StoreAssetFileRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfStoreAssetFileRequest = instanceOfStoreAssetFileRequest;
17
+ exports.StoreAssetFileRequestFromJSON = StoreAssetFileRequestFromJSON;
18
+ exports.StoreAssetFileRequestFromJSONTyped = StoreAssetFileRequestFromJSONTyped;
19
+ exports.StoreAssetFileRequestToJSON = StoreAssetFileRequestToJSON;
20
+ exports.StoreAssetFileRequestToJSONTyped = StoreAssetFileRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StoreAssetFileRequest interface.
23
+ */
24
+ function instanceOfStoreAssetFileRequest(value) {
25
+ if (!('fileName' in value) || value['fileName'] === undefined)
26
+ return false;
27
+ if (!('fileType' in value) || value['fileType'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function StoreAssetFileRequestFromJSON(json) {
32
+ return StoreAssetFileRequestFromJSONTyped(json, false);
33
+ }
34
+ function StoreAssetFileRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'fileName': json['file_name'],
40
+ 'fileType': json['file_type'],
41
+ };
42
+ }
43
+ function StoreAssetFileRequestToJSON(json) {
44
+ return StoreAssetFileRequestToJSONTyped(json, false);
45
+ }
46
+ function StoreAssetFileRequestToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'file_name': value['fileName'],
53
+ 'file_type': value['fileType'],
54
+ };
55
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface StoreUserRequest
16
+ */
17
+ export interface StoreUserRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StoreUserRequest
22
+ */
23
+ firstName: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof StoreUserRequest
28
+ */
29
+ lastName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof StoreUserRequest
34
+ */
35
+ email: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof StoreUserRequest
40
+ */
41
+ mobile: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the StoreUserRequest interface.
45
+ */
46
+ export declare function instanceOfStoreUserRequest(value: object): value is StoreUserRequest;
47
+ export declare function StoreUserRequestFromJSON(json: any): StoreUserRequest;
48
+ export declare function StoreUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreUserRequest;
49
+ export declare function StoreUserRequestToJSON(json: any): StoreUserRequest;
50
+ export declare function StoreUserRequestToJSONTyped(value?: StoreUserRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfStoreUserRequest = instanceOfStoreUserRequest;
17
+ exports.StoreUserRequestFromJSON = StoreUserRequestFromJSON;
18
+ exports.StoreUserRequestFromJSONTyped = StoreUserRequestFromJSONTyped;
19
+ exports.StoreUserRequestToJSON = StoreUserRequestToJSON;
20
+ exports.StoreUserRequestToJSONTyped = StoreUserRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StoreUserRequest interface.
23
+ */
24
+ function instanceOfStoreUserRequest(value) {
25
+ if (!('firstName' in value) || value['firstName'] === undefined)
26
+ return false;
27
+ if (!('lastName' in value) || value['lastName'] === undefined)
28
+ return false;
29
+ if (!('email' in value) || value['email'] === undefined)
30
+ return false;
31
+ if (!('mobile' in value) || value['mobile'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function StoreUserRequestFromJSON(json) {
36
+ return StoreUserRequestFromJSONTyped(json, false);
37
+ }
38
+ function StoreUserRequestFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'firstName': json['first_name'],
44
+ 'lastName': json['last_name'],
45
+ 'email': json['email'],
46
+ 'mobile': json['mobile'],
47
+ };
48
+ }
49
+ function StoreUserRequestToJSON(json) {
50
+ return StoreUserRequestToJSONTyped(json, false);
51
+ }
52
+ function StoreUserRequestToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'first_name': value['firstName'],
59
+ 'last_name': value['lastName'],
60
+ 'email': value['email'],
61
+ 'mobile': value['mobile'],
62
+ };
63
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateUserRequest
16
+ */
17
+ export interface UpdateUserRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateUserRequest
22
+ */
23
+ firstName?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof UpdateUserRequest
28
+ */
29
+ lastName?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof UpdateUserRequest
34
+ */
35
+ email?: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof UpdateUserRequest
40
+ */
41
+ mobile?: number;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof UpdateUserRequest
46
+ */
47
+ password?: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the UpdateUserRequest interface.
51
+ */
52
+ export declare function instanceOfUpdateUserRequest(value: object): value is UpdateUserRequest;
53
+ export declare function UpdateUserRequestFromJSON(json: any): UpdateUserRequest;
54
+ export declare function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserRequest;
55
+ export declare function UpdateUserRequestToJSON(json: any): UpdateUserRequest;
56
+ export declare function UpdateUserRequestToJSONTyped(value?: UpdateUserRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUpdateUserRequest = instanceOfUpdateUserRequest;
17
+ exports.UpdateUserRequestFromJSON = UpdateUserRequestFromJSON;
18
+ exports.UpdateUserRequestFromJSONTyped = UpdateUserRequestFromJSONTyped;
19
+ exports.UpdateUserRequestToJSON = UpdateUserRequestToJSON;
20
+ exports.UpdateUserRequestToJSONTyped = UpdateUserRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateUserRequest interface.
23
+ */
24
+ function instanceOfUpdateUserRequest(value) {
25
+ return true;
26
+ }
27
+ function UpdateUserRequestFromJSON(json) {
28
+ return UpdateUserRequestFromJSONTyped(json, false);
29
+ }
30
+ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'firstName': json['first_name'] == null ? undefined : json['first_name'],
36
+ 'lastName': json['last_name'] == null ? undefined : json['last_name'],
37
+ 'email': json['email'] == null ? undefined : json['email'],
38
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
39
+ 'password': json['password'] == null ? undefined : json['password'],
40
+ };
41
+ }
42
+ function UpdateUserRequestToJSON(json) {
43
+ return UpdateUserRequestToJSONTyped(json, false);
44
+ }
45
+ function UpdateUserRequestToJSONTyped(value, ignoreDiscriminator) {
46
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'first_name': value['firstName'],
52
+ 'last_name': value['lastName'],
53
+ 'email': value['email'],
54
+ 'mobile': value['mobile'],
55
+ 'password': value['password'],
56
+ };
57
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
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 { UserResource } from './UserResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserAuthTokenResource
17
+ */
18
+ export interface UserAuthTokenResource {
19
+ /**
20
+ *
21
+ * @type {UserResource}
22
+ * @memberof UserAuthTokenResource
23
+ */
24
+ user: UserResource | null;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof UserAuthTokenResource
29
+ */
30
+ token: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the UserAuthTokenResource interface.
34
+ */
35
+ export declare function instanceOfUserAuthTokenResource(value: object): value is UserAuthTokenResource;
36
+ export declare function UserAuthTokenResourceFromJSON(json: any): UserAuthTokenResource;
37
+ export declare function UserAuthTokenResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthTokenResource;
38
+ export declare function UserAuthTokenResourceToJSON(json: any): UserAuthTokenResource;
39
+ export declare function UserAuthTokenResourceToJSONTyped(value?: UserAuthTokenResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * My API
6
+ * API documentation for my Laravel app
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUserAuthTokenResource = instanceOfUserAuthTokenResource;
17
+ exports.UserAuthTokenResourceFromJSON = UserAuthTokenResourceFromJSON;
18
+ exports.UserAuthTokenResourceFromJSONTyped = UserAuthTokenResourceFromJSONTyped;
19
+ exports.UserAuthTokenResourceToJSON = UserAuthTokenResourceToJSON;
20
+ exports.UserAuthTokenResourceToJSONTyped = UserAuthTokenResourceToJSONTyped;
21
+ var UserResource_1 = require("./UserResource");
22
+ /**
23
+ * Check if a given object implements the UserAuthTokenResource interface.
24
+ */
25
+ function instanceOfUserAuthTokenResource(value) {
26
+ if (!('user' in value) || value['user'] === undefined)
27
+ return false;
28
+ if (!('token' in value) || value['token'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function UserAuthTokenResourceFromJSON(json) {
33
+ return UserAuthTokenResourceFromJSONTyped(json, false);
34
+ }
35
+ function UserAuthTokenResourceFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'user': (0, UserResource_1.UserResourceFromJSON)(json['user']),
41
+ 'token': json['token'],
42
+ };
43
+ }
44
+ function UserAuthTokenResourceToJSON(json) {
45
+ return UserAuthTokenResourceToJSONTyped(json, false);
46
+ }
47
+ function UserAuthTokenResourceToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'user': (0, UserResource_1.UserResourceToJSON)(value['user']),
54
+ 'token': value['token'],
55
+ };
56
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * My API
3
+ * API documentation for my Laravel app
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 { UserAuthTokenResource } from './UserAuthTokenResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserAuthTokenResourceArrayResponse
17
+ */
18
+ export interface UserAuthTokenResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<UserAuthTokenResource>}
22
+ * @memberof UserAuthTokenResourceArrayResponse
23
+ */
24
+ data?: Array<UserAuthTokenResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the UserAuthTokenResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfUserAuthTokenResourceArrayResponse(value: object): value is UserAuthTokenResourceArrayResponse;
30
+ export declare function UserAuthTokenResourceArrayResponseFromJSON(json: any): UserAuthTokenResourceArrayResponse;
31
+ export declare function UserAuthTokenResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserAuthTokenResourceArrayResponse;
32
+ export declare function UserAuthTokenResourceArrayResponseToJSON(json: any): UserAuthTokenResourceArrayResponse;
33
+ export declare function UserAuthTokenResourceArrayResponseToJSONTyped(value?: UserAuthTokenResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;