@digital8/security-registers-backend-ts-sdk 0.0.5 → 0.0.6

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.
@@ -2,6 +2,7 @@
2
2
  /* eslint-disable */
3
3
  export * from './AddressResource';
4
4
  export * from './AddressResourceArrayResponse';
5
+ export * from './AdminRegisterRequest';
5
6
  export * from './AssetFileForUploadResource';
6
7
  export * from './AssetFileForUploadResourceArrayResponse';
7
8
  export * from './AssetLiteResource';
@@ -11,13 +12,9 @@ export * from './AssetResourceArrayResponse';
11
12
  export * from './GenericResponse';
12
13
  export * from './IndexUserRequest';
13
14
  export * from './LoginAuthRequest';
14
- export * from './PaginatedSecurityCompanyResourceResponse';
15
15
  export * from './PaginatedUserResourceResponse';
16
16
  export * from './PagingMetadata';
17
17
  export * from './ResetPasswordAuthRequest';
18
- export * from './SecurityCompaniesStoreRequest';
19
- export * from './SecurityCompanyResource';
20
- export * from './SecurityCompanyResourceArrayResponse';
21
18
  export * from './SendForgotPasswordLinkAuthRequest';
22
19
  export * from './StoreAssetFileRequest';
23
20
  export * from './StoreUserRequest';
@@ -1,40 +0,0 @@
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 { SecurityCompanyResource } from './SecurityCompanyResource';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedSecurityCompanyResourceResponse
18
- */
19
- export interface PaginatedSecurityCompanyResourceResponse {
20
- /**
21
- *
22
- * @type {Array<SecurityCompanyResource>}
23
- * @memberof PaginatedSecurityCompanyResourceResponse
24
- */
25
- data: Array<SecurityCompanyResource>;
26
- /**
27
- *
28
- * @type {PagingMetadata}
29
- * @memberof PaginatedSecurityCompanyResourceResponse
30
- */
31
- meta: PagingMetadata;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedSecurityCompanyResourceResponse interface.
35
- */
36
- export declare function instanceOfPaginatedSecurityCompanyResourceResponse(value: object): value is PaginatedSecurityCompanyResourceResponse;
37
- export declare function PaginatedSecurityCompanyResourceResponseFromJSON(json: any): PaginatedSecurityCompanyResourceResponse;
38
- export declare function PaginatedSecurityCompanyResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSecurityCompanyResourceResponse;
39
- export declare function PaginatedSecurityCompanyResourceResponseToJSON(json: any): PaginatedSecurityCompanyResourceResponse;
40
- export declare function PaginatedSecurityCompanyResourceResponseToJSONTyped(value?: PaginatedSecurityCompanyResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +0,0 @@
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.instanceOfPaginatedSecurityCompanyResourceResponse = instanceOfPaginatedSecurityCompanyResourceResponse;
17
- exports.PaginatedSecurityCompanyResourceResponseFromJSON = PaginatedSecurityCompanyResourceResponseFromJSON;
18
- exports.PaginatedSecurityCompanyResourceResponseFromJSONTyped = PaginatedSecurityCompanyResourceResponseFromJSONTyped;
19
- exports.PaginatedSecurityCompanyResourceResponseToJSON = PaginatedSecurityCompanyResourceResponseToJSON;
20
- exports.PaginatedSecurityCompanyResourceResponseToJSONTyped = PaginatedSecurityCompanyResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var SecurityCompanyResource_1 = require("./SecurityCompanyResource");
23
- /**
24
- * Check if a given object implements the PaginatedSecurityCompanyResourceResponse interface.
25
- */
26
- function instanceOfPaginatedSecurityCompanyResourceResponse(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 PaginatedSecurityCompanyResourceResponseFromJSON(json) {
34
- return PaginatedSecurityCompanyResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedSecurityCompanyResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(SecurityCompanyResource_1.SecurityCompanyResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedSecurityCompanyResourceResponseToJSON(json) {
46
- return PaginatedSecurityCompanyResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedSecurityCompanyResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(SecurityCompanyResource_1.SecurityCompanyResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -1,106 +0,0 @@
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 SecurityCompaniesStoreRequest
16
- */
17
- export interface SecurityCompaniesStoreRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SecurityCompaniesStoreRequest
22
- */
23
- name: string;
24
- /**
25
- *
26
- * @type {boolean}
27
- * @memberof SecurityCompaniesStoreRequest
28
- */
29
- isEnabled?: boolean;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof SecurityCompaniesStoreRequest
34
- */
35
- email: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof SecurityCompaniesStoreRequest
40
- */
41
- licenseNumber: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof SecurityCompaniesStoreRequest
46
- */
47
- addressLine1: string;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof SecurityCompaniesStoreRequest
52
- */
53
- addressLine2?: string;
54
- /**
55
- *
56
- * @type {string}
57
- * @memberof SecurityCompaniesStoreRequest
58
- */
59
- suburb?: string;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof SecurityCompaniesStoreRequest
64
- */
65
- city?: string;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof SecurityCompaniesStoreRequest
70
- */
71
- state: SecurityCompaniesStoreRequestStateEnum;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof SecurityCompaniesStoreRequest
76
- */
77
- postCode?: string;
78
- /**
79
- *
80
- * @type {string}
81
- * @memberof SecurityCompaniesStoreRequest
82
- */
83
- country?: string;
84
- }
85
- /**
86
- * @export
87
- */
88
- export declare const SecurityCompaniesStoreRequestStateEnum: {
89
- readonly Qld: "QLD";
90
- readonly Nsw: "NSW";
91
- readonly Act: "ACT";
92
- readonly Vic: "VIC";
93
- readonly Tas: "TAS";
94
- readonly Sa: "SA";
95
- readonly Wa: "WA";
96
- readonly Nt: "NT";
97
- };
98
- export type SecurityCompaniesStoreRequestStateEnum = typeof SecurityCompaniesStoreRequestStateEnum[keyof typeof SecurityCompaniesStoreRequestStateEnum];
99
- /**
100
- * Check if a given object implements the SecurityCompaniesStoreRequest interface.
101
- */
102
- export declare function instanceOfSecurityCompaniesStoreRequest(value: object): value is SecurityCompaniesStoreRequest;
103
- export declare function SecurityCompaniesStoreRequestFromJSON(json: any): SecurityCompaniesStoreRequest;
104
- export declare function SecurityCompaniesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompaniesStoreRequest;
105
- export declare function SecurityCompaniesStoreRequestToJSON(json: any): SecurityCompaniesStoreRequest;
106
- export declare function SecurityCompaniesStoreRequestToJSONTyped(value?: SecurityCompaniesStoreRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,93 +0,0 @@
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.SecurityCompaniesStoreRequestStateEnum = void 0;
17
- exports.instanceOfSecurityCompaniesStoreRequest = instanceOfSecurityCompaniesStoreRequest;
18
- exports.SecurityCompaniesStoreRequestFromJSON = SecurityCompaniesStoreRequestFromJSON;
19
- exports.SecurityCompaniesStoreRequestFromJSONTyped = SecurityCompaniesStoreRequestFromJSONTyped;
20
- exports.SecurityCompaniesStoreRequestToJSON = SecurityCompaniesStoreRequestToJSON;
21
- exports.SecurityCompaniesStoreRequestToJSONTyped = SecurityCompaniesStoreRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.SecurityCompaniesStoreRequestStateEnum = {
26
- Qld: 'QLD',
27
- Nsw: 'NSW',
28
- Act: 'ACT',
29
- Vic: 'VIC',
30
- Tas: 'TAS',
31
- Sa: 'SA',
32
- Wa: 'WA',
33
- Nt: 'NT'
34
- };
35
- /**
36
- * Check if a given object implements the SecurityCompaniesStoreRequest interface.
37
- */
38
- function instanceOfSecurityCompaniesStoreRequest(value) {
39
- if (!('name' in value) || value['name'] === undefined)
40
- return false;
41
- if (!('email' in value) || value['email'] === undefined)
42
- return false;
43
- if (!('licenseNumber' in value) || value['licenseNumber'] === undefined)
44
- return false;
45
- if (!('addressLine1' in value) || value['addressLine1'] === undefined)
46
- return false;
47
- if (!('state' in value) || value['state'] === undefined)
48
- return false;
49
- return true;
50
- }
51
- function SecurityCompaniesStoreRequestFromJSON(json) {
52
- return SecurityCompaniesStoreRequestFromJSONTyped(json, false);
53
- }
54
- function SecurityCompaniesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
55
- if (json == null) {
56
- return json;
57
- }
58
- return {
59
- 'name': json['name'],
60
- 'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
61
- 'email': json['email'],
62
- 'licenseNumber': json['license_number'],
63
- 'addressLine1': json['address_line_1'],
64
- 'addressLine2': json['address_line_2'] == null ? undefined : json['address_line_2'],
65
- 'suburb': json['suburb'] == null ? undefined : json['suburb'],
66
- 'city': json['city'] == null ? undefined : json['city'],
67
- 'state': json['state'],
68
- 'postCode': json['post_code'] == null ? undefined : json['post_code'],
69
- 'country': json['country'] == null ? undefined : json['country'],
70
- };
71
- }
72
- function SecurityCompaniesStoreRequestToJSON(json) {
73
- return SecurityCompaniesStoreRequestToJSONTyped(json, false);
74
- }
75
- function SecurityCompaniesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
76
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
77
- if (value == null) {
78
- return value;
79
- }
80
- return {
81
- 'name': value['name'],
82
- 'is_enabled': value['isEnabled'],
83
- 'email': value['email'],
84
- 'license_number': value['licenseNumber'],
85
- 'address_line_1': value['addressLine1'],
86
- 'address_line_2': value['addressLine2'],
87
- 'suburb': value['suburb'],
88
- 'city': value['city'],
89
- 'state': value['state'],
90
- 'post_code': value['postCode'],
91
- 'country': value['country'],
92
- };
93
- }
@@ -1,75 +0,0 @@
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 { AddressResource } from './AddressResource';
13
- /**
14
- *
15
- * @export
16
- * @interface SecurityCompanyResource
17
- */
18
- export interface SecurityCompanyResource {
19
- /**
20
- *
21
- * @type {number}
22
- * @memberof SecurityCompanyResource
23
- */
24
- id?: number | null;
25
- /**
26
- *
27
- * @type {string}
28
- * @memberof SecurityCompanyResource
29
- */
30
- name: string;
31
- /**
32
- *
33
- * @type {string}
34
- * @memberof SecurityCompanyResource
35
- */
36
- email: string;
37
- /**
38
- *
39
- * @type {boolean}
40
- * @memberof SecurityCompanyResource
41
- */
42
- isEnabled: boolean;
43
- /**
44
- *
45
- * @type {AddressResource}
46
- * @memberof SecurityCompanyResource
47
- */
48
- address: AddressResource | null;
49
- /**
50
- *
51
- * @type {string}
52
- * @memberof SecurityCompanyResource
53
- */
54
- licenseNumber: string;
55
- /**
56
- *
57
- * @type {Date}
58
- * @memberof SecurityCompanyResource
59
- */
60
- createdAt?: Date | null;
61
- /**
62
- *
63
- * @type {Date}
64
- * @memberof SecurityCompanyResource
65
- */
66
- updatedAt?: Date | null;
67
- }
68
- /**
69
- * Check if a given object implements the SecurityCompanyResource interface.
70
- */
71
- export declare function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource;
72
- export declare function SecurityCompanyResourceFromJSON(json: any): SecurityCompanyResource;
73
- export declare function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyResource;
74
- export declare function SecurityCompanyResourceToJSON(json: any): SecurityCompanyResource;
75
- export declare function SecurityCompanyResourceToJSONTyped(value?: SecurityCompanyResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,75 +0,0 @@
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.instanceOfSecurityCompanyResource = instanceOfSecurityCompanyResource;
17
- exports.SecurityCompanyResourceFromJSON = SecurityCompanyResourceFromJSON;
18
- exports.SecurityCompanyResourceFromJSONTyped = SecurityCompanyResourceFromJSONTyped;
19
- exports.SecurityCompanyResourceToJSON = SecurityCompanyResourceToJSON;
20
- exports.SecurityCompanyResourceToJSONTyped = SecurityCompanyResourceToJSONTyped;
21
- var AddressResource_1 = require("./AddressResource");
22
- /**
23
- * Check if a given object implements the SecurityCompanyResource interface.
24
- */
25
- function instanceOfSecurityCompanyResource(value) {
26
- if (!('name' in value) || value['name'] === undefined)
27
- return false;
28
- if (!('email' in value) || value['email'] === undefined)
29
- return false;
30
- if (!('isEnabled' in value) || value['isEnabled'] === undefined)
31
- return false;
32
- if (!('address' in value) || value['address'] === undefined)
33
- return false;
34
- if (!('licenseNumber' in value) || value['licenseNumber'] === undefined)
35
- return false;
36
- return true;
37
- }
38
- function SecurityCompanyResourceFromJSON(json) {
39
- return SecurityCompanyResourceFromJSONTyped(json, false);
40
- }
41
- function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
- 'id': json['id'] == null ? undefined : json['id'],
47
- 'name': json['name'],
48
- 'email': json['email'],
49
- 'isEnabled': json['isEnabled'],
50
- 'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
51
- 'licenseNumber': json['license_number'],
52
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
53
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
54
- };
55
- }
56
- function SecurityCompanyResourceToJSON(json) {
57
- return SecurityCompanyResourceToJSONTyped(json, false);
58
- }
59
- function SecurityCompanyResourceToJSONTyped(value, ignoreDiscriminator) {
60
- var _a, _b;
61
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
62
- if (value == null) {
63
- return value;
64
- }
65
- return {
66
- 'id': value['id'],
67
- 'name': value['name'],
68
- 'email': value['email'],
69
- 'isEnabled': value['isEnabled'],
70
- 'address': (0, AddressResource_1.AddressResourceToJSON)(value['address']),
71
- 'license_number': value['licenseNumber'],
72
- 'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
73
- 'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
74
- };
75
- }
@@ -1,33 +0,0 @@
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 { SecurityCompanyResource } from './SecurityCompanyResource';
13
- /**
14
- *
15
- * @export
16
- * @interface SecurityCompanyResourceArrayResponse
17
- */
18
- export interface SecurityCompanyResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<SecurityCompanyResource>}
22
- * @memberof SecurityCompanyResourceArrayResponse
23
- */
24
- data?: Array<SecurityCompanyResource>;
25
- }
26
- /**
27
- * Check if a given object implements the SecurityCompanyResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfSecurityCompanyResourceArrayResponse(value: object): value is SecurityCompanyResourceArrayResponse;
30
- export declare function SecurityCompanyResourceArrayResponseFromJSON(json: any): SecurityCompanyResourceArrayResponse;
31
- export declare function SecurityCompanyResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyResourceArrayResponse;
32
- export declare function SecurityCompanyResourceArrayResponseToJSON(json: any): SecurityCompanyResourceArrayResponse;
33
- export declare function SecurityCompanyResourceArrayResponseToJSONTyped(value?: SecurityCompanyResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
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.instanceOfSecurityCompanyResourceArrayResponse = instanceOfSecurityCompanyResourceArrayResponse;
17
- exports.SecurityCompanyResourceArrayResponseFromJSON = SecurityCompanyResourceArrayResponseFromJSON;
18
- exports.SecurityCompanyResourceArrayResponseFromJSONTyped = SecurityCompanyResourceArrayResponseFromJSONTyped;
19
- exports.SecurityCompanyResourceArrayResponseToJSON = SecurityCompanyResourceArrayResponseToJSON;
20
- exports.SecurityCompanyResourceArrayResponseToJSONTyped = SecurityCompanyResourceArrayResponseToJSONTyped;
21
- var SecurityCompanyResource_1 = require("./SecurityCompanyResource");
22
- /**
23
- * Check if a given object implements the SecurityCompanyResourceArrayResponse interface.
24
- */
25
- function instanceOfSecurityCompanyResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function SecurityCompanyResourceArrayResponseFromJSON(json) {
29
- return SecurityCompanyResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function SecurityCompanyResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(SecurityCompanyResource_1.SecurityCompanyResourceFromJSON)),
37
- };
38
- }
39
- function SecurityCompanyResourceArrayResponseToJSON(json) {
40
- return SecurityCompanyResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function SecurityCompanyResourceArrayResponseToJSONTyped(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(SecurityCompanyResource_1.SecurityCompanyResourceToJSON)),
49
- };
50
- }
@@ -1,90 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
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 { PagingMetadata } from './PagingMetadata';
17
- import {
18
- PagingMetadataFromJSON,
19
- PagingMetadataFromJSONTyped,
20
- PagingMetadataToJSON,
21
- PagingMetadataToJSONTyped,
22
- } from './PagingMetadata';
23
- import type { SecurityCompanyResource } from './SecurityCompanyResource';
24
- import {
25
- SecurityCompanyResourceFromJSON,
26
- SecurityCompanyResourceFromJSONTyped,
27
- SecurityCompanyResourceToJSON,
28
- SecurityCompanyResourceToJSONTyped,
29
- } from './SecurityCompanyResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedSecurityCompanyResourceResponse
35
- */
36
- export interface PaginatedSecurityCompanyResourceResponse {
37
- /**
38
- *
39
- * @type {Array<SecurityCompanyResource>}
40
- * @memberof PaginatedSecurityCompanyResourceResponse
41
- */
42
- data: Array<SecurityCompanyResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedSecurityCompanyResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedSecurityCompanyResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedSecurityCompanyResourceResponse(value: object): value is PaginatedSecurityCompanyResourceResponse {
55
- if (!('data' in value) || value['data'] === undefined) return false;
56
- if (!('meta' in value) || value['meta'] === undefined) return false;
57
- return true;
58
- }
59
-
60
- export function PaginatedSecurityCompanyResourceResponseFromJSON(json: any): PaginatedSecurityCompanyResourceResponse {
61
- return PaginatedSecurityCompanyResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedSecurityCompanyResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSecurityCompanyResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(SecurityCompanyResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedSecurityCompanyResourceResponseToJSON(json: any): PaginatedSecurityCompanyResourceResponse {
76
- return PaginatedSecurityCompanyResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedSecurityCompanyResourceResponseToJSONTyped(value?: PaginatedSecurityCompanyResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
- if (value == null) {
81
- return value;
82
- }
83
-
84
- return {
85
-
86
- 'data': ((value['data'] as Array<any>).map(SecurityCompanyResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-