@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,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 { AssetResource } from './AssetResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AssetResourceArrayResponse
17
+ */
18
+ export interface AssetResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<AssetResource>}
22
+ * @memberof AssetResourceArrayResponse
23
+ */
24
+ data?: Array<AssetResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AssetResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfAssetResourceArrayResponse(value: object): value is AssetResourceArrayResponse;
30
+ export declare function AssetResourceArrayResponseFromJSON(json: any): AssetResourceArrayResponse;
31
+ export declare function AssetResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetResourceArrayResponse;
32
+ export declare function AssetResourceArrayResponseToJSON(json: any): AssetResourceArrayResponse;
33
+ export declare function AssetResourceArrayResponseToJSONTyped(value?: AssetResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfAssetResourceArrayResponse = instanceOfAssetResourceArrayResponse;
17
+ exports.AssetResourceArrayResponseFromJSON = AssetResourceArrayResponseFromJSON;
18
+ exports.AssetResourceArrayResponseFromJSONTyped = AssetResourceArrayResponseFromJSONTyped;
19
+ exports.AssetResourceArrayResponseToJSON = AssetResourceArrayResponseToJSON;
20
+ exports.AssetResourceArrayResponseToJSONTyped = AssetResourceArrayResponseToJSONTyped;
21
+ var AssetResource_1 = require("./AssetResource");
22
+ /**
23
+ * Check if a given object implements the AssetResourceArrayResponse interface.
24
+ */
25
+ function instanceOfAssetResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function AssetResourceArrayResponseFromJSON(json) {
29
+ return AssetResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function AssetResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(AssetResource_1.AssetResourceFromJSON)),
37
+ };
38
+ }
39
+ function AssetResourceArrayResponseToJSON(json) {
40
+ return AssetResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function AssetResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(AssetResource_1.AssetResourceToJSON)),
49
+ };
50
+ }
@@ -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 GenericResponse
16
+ */
17
+ export interface GenericResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GenericResponse
22
+ */
23
+ message?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the GenericResponse interface.
27
+ */
28
+ export declare function instanceOfGenericResponse(value: object): value is GenericResponse;
29
+ export declare function GenericResponseFromJSON(json: any): GenericResponse;
30
+ export declare function GenericResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenericResponse;
31
+ export declare function GenericResponseToJSON(json: any): GenericResponse;
32
+ export declare function GenericResponseToJSONTyped(value?: GenericResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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.instanceOfGenericResponse = instanceOfGenericResponse;
17
+ exports.GenericResponseFromJSON = GenericResponseFromJSON;
18
+ exports.GenericResponseFromJSONTyped = GenericResponseFromJSONTyped;
19
+ exports.GenericResponseToJSON = GenericResponseToJSON;
20
+ exports.GenericResponseToJSONTyped = GenericResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GenericResponse interface.
23
+ */
24
+ function instanceOfGenericResponse(value) {
25
+ return true;
26
+ }
27
+ function GenericResponseFromJSON(json) {
28
+ return GenericResponseFromJSONTyped(json, false);
29
+ }
30
+ function GenericResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'message': json['message'] == null ? undefined : json['message'],
36
+ };
37
+ }
38
+ function GenericResponseToJSON(json) {
39
+ return GenericResponseToJSONTyped(json, false);
40
+ }
41
+ function GenericResponseToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'message': value['message'],
48
+ };
49
+ }
@@ -0,0 +1,92 @@
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 IndexUserRequest
16
+ */
17
+ export interface IndexUserRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof IndexUserRequest
22
+ */
23
+ search?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof IndexUserRequest
28
+ */
29
+ sortBy?: IndexUserRequestSortByEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof IndexUserRequest
34
+ */
35
+ sortDirection?: IndexUserRequestSortDirectionEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof IndexUserRequest
40
+ */
41
+ perPage?: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof IndexUserRequest
46
+ */
47
+ page?: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof IndexUserRequest
52
+ */
53
+ relatedId?: number;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof IndexUserRequest
58
+ */
59
+ relatedType?: string;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof IndexUserRequest
64
+ */
65
+ includesRelations?: boolean;
66
+ }
67
+ /**
68
+ * @export
69
+ */
70
+ export declare const IndexUserRequestSortByEnum: {
71
+ readonly FirstName: "first_name";
72
+ readonly LastName: "last_name";
73
+ readonly Email: "email";
74
+ readonly Mobile: "mobile";
75
+ };
76
+ export type IndexUserRequestSortByEnum = typeof IndexUserRequestSortByEnum[keyof typeof IndexUserRequestSortByEnum];
77
+ /**
78
+ * @export
79
+ */
80
+ export declare const IndexUserRequestSortDirectionEnum: {
81
+ readonly Asc: "asc";
82
+ readonly Desc: "desc";
83
+ };
84
+ export type IndexUserRequestSortDirectionEnum = typeof IndexUserRequestSortDirectionEnum[keyof typeof IndexUserRequestSortDirectionEnum];
85
+ /**
86
+ * Check if a given object implements the IndexUserRequest interface.
87
+ */
88
+ export declare function instanceOfIndexUserRequest(value: object): value is IndexUserRequest;
89
+ export declare function IndexUserRequestFromJSON(json: any): IndexUserRequest;
90
+ export declare function IndexUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexUserRequest;
91
+ export declare function IndexUserRequestToJSON(json: any): IndexUserRequest;
92
+ export declare function IndexUserRequestToJSONTyped(value?: IndexUserRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,80 @@
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.IndexUserRequestSortDirectionEnum = exports.IndexUserRequestSortByEnum = void 0;
17
+ exports.instanceOfIndexUserRequest = instanceOfIndexUserRequest;
18
+ exports.IndexUserRequestFromJSON = IndexUserRequestFromJSON;
19
+ exports.IndexUserRequestFromJSONTyped = IndexUserRequestFromJSONTyped;
20
+ exports.IndexUserRequestToJSON = IndexUserRequestToJSON;
21
+ exports.IndexUserRequestToJSONTyped = IndexUserRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.IndexUserRequestSortByEnum = {
26
+ FirstName: 'first_name',
27
+ LastName: 'last_name',
28
+ Email: 'email',
29
+ Mobile: 'mobile'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.IndexUserRequestSortDirectionEnum = {
35
+ Asc: 'asc',
36
+ Desc: 'desc'
37
+ };
38
+ /**
39
+ * Check if a given object implements the IndexUserRequest interface.
40
+ */
41
+ function instanceOfIndexUserRequest(value) {
42
+ return true;
43
+ }
44
+ function IndexUserRequestFromJSON(json) {
45
+ return IndexUserRequestFromJSONTyped(json, false);
46
+ }
47
+ function IndexUserRequestFromJSONTyped(json, ignoreDiscriminator) {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+ 'search': json['search'] == null ? undefined : json['search'],
53
+ 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
54
+ 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
55
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
56
+ 'page': json['page'] == null ? undefined : json['page'],
57
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
58
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
59
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
60
+ };
61
+ }
62
+ function IndexUserRequestToJSON(json) {
63
+ return IndexUserRequestToJSONTyped(json, false);
64
+ }
65
+ function IndexUserRequestToJSONTyped(value, ignoreDiscriminator) {
66
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'search': value['search'],
72
+ 'sort_by': value['sortBy'],
73
+ 'sort_direction': value['sortDirection'],
74
+ 'per_page': value['perPage'],
75
+ 'page': value['page'],
76
+ 'related_id': value['relatedId'],
77
+ 'related_type': value['relatedType'],
78
+ 'includes_relations': value['includesRelations'],
79
+ };
80
+ }
@@ -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 LoginAuthRequest
16
+ */
17
+ export interface LoginAuthRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LoginAuthRequest
22
+ */
23
+ email: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LoginAuthRequest
28
+ */
29
+ password: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LoginAuthRequest interface.
33
+ */
34
+ export declare function instanceOfLoginAuthRequest(value: object): value is LoginAuthRequest;
35
+ export declare function LoginAuthRequestFromJSON(json: any): LoginAuthRequest;
36
+ export declare function LoginAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAuthRequest;
37
+ export declare function LoginAuthRequestToJSON(json: any): LoginAuthRequest;
38
+ export declare function LoginAuthRequestToJSONTyped(value?: LoginAuthRequest | 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.instanceOfLoginAuthRequest = instanceOfLoginAuthRequest;
17
+ exports.LoginAuthRequestFromJSON = LoginAuthRequestFromJSON;
18
+ exports.LoginAuthRequestFromJSONTyped = LoginAuthRequestFromJSONTyped;
19
+ exports.LoginAuthRequestToJSON = LoginAuthRequestToJSON;
20
+ exports.LoginAuthRequestToJSONTyped = LoginAuthRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LoginAuthRequest interface.
23
+ */
24
+ function instanceOfLoginAuthRequest(value) {
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ if (!('password' in value) || value['password'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function LoginAuthRequestFromJSON(json) {
32
+ return LoginAuthRequestFromJSONTyped(json, false);
33
+ }
34
+ function LoginAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'email': json['email'],
40
+ 'password': json['password'],
41
+ };
42
+ }
43
+ function LoginAuthRequestToJSON(json) {
44
+ return LoginAuthRequestToJSONTyped(json, false);
45
+ }
46
+ function LoginAuthRequestToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'email': value['email'],
53
+ 'password': value['password'],
54
+ };
55
+ }
@@ -0,0 +1,40 @@
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 { PagingMetadata } from './PagingMetadata';
13
+ import type { UserResource } from './UserResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedUserResourceResponse
18
+ */
19
+ export interface PaginatedUserResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<UserResource>}
23
+ * @memberof PaginatedUserResourceResponse
24
+ */
25
+ data: Array<UserResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedUserResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedUserResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedUserResourceResponse(value: object): value is PaginatedUserResourceResponse;
37
+ export declare function PaginatedUserResourceResponseFromJSON(json: any): PaginatedUserResourceResponse;
38
+ export declare function PaginatedUserResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserResourceResponse;
39
+ export declare function PaginatedUserResourceResponseToJSON(json: any): PaginatedUserResourceResponse;
40
+ export declare function PaginatedUserResourceResponseToJSONTyped(value?: PaginatedUserResourceResponse | 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.instanceOfPaginatedUserResourceResponse = instanceOfPaginatedUserResourceResponse;
17
+ exports.PaginatedUserResourceResponseFromJSON = PaginatedUserResourceResponseFromJSON;
18
+ exports.PaginatedUserResourceResponseFromJSONTyped = PaginatedUserResourceResponseFromJSONTyped;
19
+ exports.PaginatedUserResourceResponseToJSON = PaginatedUserResourceResponseToJSON;
20
+ exports.PaginatedUserResourceResponseToJSONTyped = PaginatedUserResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var UserResource_1 = require("./UserResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedUserResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedUserResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedUserResourceResponseFromJSON(json) {
34
+ return PaginatedUserResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedUserResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(UserResource_1.UserResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedUserResourceResponseToJSON(json) {
46
+ return PaginatedUserResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedUserResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(UserResource_1.UserResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,68 @@
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 PagingMetadata
16
+ */
17
+ export interface PagingMetadata {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PagingMetadata
22
+ */
23
+ currentPage: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PagingMetadata
28
+ */
29
+ from: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PagingMetadata
34
+ */
35
+ lastPage: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PagingMetadata
40
+ */
41
+ path: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof PagingMetadata
46
+ */
47
+ perPage: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof PagingMetadata
52
+ */
53
+ to: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof PagingMetadata
58
+ */
59
+ total: number;
60
+ }
61
+ /**
62
+ * Check if a given object implements the PagingMetadata interface.
63
+ */
64
+ export declare function instanceOfPagingMetadata(value: object): value is PagingMetadata;
65
+ export declare function PagingMetadataFromJSON(json: any): PagingMetadata;
66
+ export declare function PagingMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagingMetadata;
67
+ export declare function PagingMetadataToJSON(json: any): PagingMetadata;
68
+ export declare function PagingMetadataToJSONTyped(value?: PagingMetadata | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
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.instanceOfPagingMetadata = instanceOfPagingMetadata;
17
+ exports.PagingMetadataFromJSON = PagingMetadataFromJSON;
18
+ exports.PagingMetadataFromJSONTyped = PagingMetadataFromJSONTyped;
19
+ exports.PagingMetadataToJSON = PagingMetadataToJSON;
20
+ exports.PagingMetadataToJSONTyped = PagingMetadataToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PagingMetadata interface.
23
+ */
24
+ function instanceOfPagingMetadata(value) {
25
+ if (!('currentPage' in value) || value['currentPage'] === undefined)
26
+ return false;
27
+ if (!('from' in value) || value['from'] === undefined)
28
+ return false;
29
+ if (!('lastPage' in value) || value['lastPage'] === undefined)
30
+ return false;
31
+ if (!('path' in value) || value['path'] === undefined)
32
+ return false;
33
+ if (!('perPage' in value) || value['perPage'] === undefined)
34
+ return false;
35
+ if (!('to' in value) || value['to'] === undefined)
36
+ return false;
37
+ if (!('total' in value) || value['total'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function PagingMetadataFromJSON(json) {
42
+ return PagingMetadataFromJSONTyped(json, false);
43
+ }
44
+ function PagingMetadataFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'currentPage': json['current_page'],
50
+ 'from': json['from'],
51
+ 'lastPage': json['last_page'],
52
+ 'path': json['path'],
53
+ 'perPage': json['per_page'],
54
+ 'to': json['to'],
55
+ 'total': json['total'],
56
+ };
57
+ }
58
+ function PagingMetadataToJSON(json) {
59
+ return PagingMetadataToJSONTyped(json, false);
60
+ }
61
+ function PagingMetadataToJSONTyped(value, ignoreDiscriminator) {
62
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'current_page': value['currentPage'],
68
+ 'from': value['from'],
69
+ 'last_page': value['lastPage'],
70
+ 'path': value['path'],
71
+ 'per_page': value['perPage'],
72
+ 'to': value['to'],
73
+ 'total': value['total'],
74
+ };
75
+ }