@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.
@@ -1,167 +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
- /**
17
- *
18
- * @export
19
- * @interface SecurityCompaniesStoreRequest
20
- */
21
- export interface SecurityCompaniesStoreRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof SecurityCompaniesStoreRequest
26
- */
27
- name: string;
28
- /**
29
- *
30
- * @type {boolean}
31
- * @memberof SecurityCompaniesStoreRequest
32
- */
33
- isEnabled?: boolean;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof SecurityCompaniesStoreRequest
38
- */
39
- email: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof SecurityCompaniesStoreRequest
44
- */
45
- licenseNumber: string;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof SecurityCompaniesStoreRequest
50
- */
51
- addressLine1: string;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof SecurityCompaniesStoreRequest
56
- */
57
- addressLine2?: string;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof SecurityCompaniesStoreRequest
62
- */
63
- suburb?: string;
64
- /**
65
- *
66
- * @type {string}
67
- * @memberof SecurityCompaniesStoreRequest
68
- */
69
- city?: string;
70
- /**
71
- *
72
- * @type {string}
73
- * @memberof SecurityCompaniesStoreRequest
74
- */
75
- state: SecurityCompaniesStoreRequestStateEnum;
76
- /**
77
- *
78
- * @type {string}
79
- * @memberof SecurityCompaniesStoreRequest
80
- */
81
- postCode?: string;
82
- /**
83
- *
84
- * @type {string}
85
- * @memberof SecurityCompaniesStoreRequest
86
- */
87
- country?: string;
88
- }
89
-
90
-
91
- /**
92
- * @export
93
- */
94
- export const SecurityCompaniesStoreRequestStateEnum = {
95
- Qld: 'QLD',
96
- Nsw: 'NSW',
97
- Act: 'ACT',
98
- Vic: 'VIC',
99
- Tas: 'TAS',
100
- Sa: 'SA',
101
- Wa: 'WA',
102
- Nt: 'NT'
103
- } as const;
104
- export type SecurityCompaniesStoreRequestStateEnum = typeof SecurityCompaniesStoreRequestStateEnum[keyof typeof SecurityCompaniesStoreRequestStateEnum];
105
-
106
-
107
- /**
108
- * Check if a given object implements the SecurityCompaniesStoreRequest interface.
109
- */
110
- export function instanceOfSecurityCompaniesStoreRequest(value: object): value is SecurityCompaniesStoreRequest {
111
- if (!('name' in value) || value['name'] === undefined) return false;
112
- if (!('email' in value) || value['email'] === undefined) return false;
113
- if (!('licenseNumber' in value) || value['licenseNumber'] === undefined) return false;
114
- if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
115
- if (!('state' in value) || value['state'] === undefined) return false;
116
- return true;
117
- }
118
-
119
- export function SecurityCompaniesStoreRequestFromJSON(json: any): SecurityCompaniesStoreRequest {
120
- return SecurityCompaniesStoreRequestFromJSONTyped(json, false);
121
- }
122
-
123
- export function SecurityCompaniesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompaniesStoreRequest {
124
- if (json == null) {
125
- return json;
126
- }
127
- return {
128
-
129
- 'name': json['name'],
130
- 'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
131
- 'email': json['email'],
132
- 'licenseNumber': json['license_number'],
133
- 'addressLine1': json['address_line_1'],
134
- 'addressLine2': json['address_line_2'] == null ? undefined : json['address_line_2'],
135
- 'suburb': json['suburb'] == null ? undefined : json['suburb'],
136
- 'city': json['city'] == null ? undefined : json['city'],
137
- 'state': json['state'],
138
- 'postCode': json['post_code'] == null ? undefined : json['post_code'],
139
- 'country': json['country'] == null ? undefined : json['country'],
140
- };
141
- }
142
-
143
- export function SecurityCompaniesStoreRequestToJSON(json: any): SecurityCompaniesStoreRequest {
144
- return SecurityCompaniesStoreRequestToJSONTyped(json, false);
145
- }
146
-
147
- export function SecurityCompaniesStoreRequestToJSONTyped(value?: SecurityCompaniesStoreRequest | null, ignoreDiscriminator: boolean = false): any {
148
- if (value == null) {
149
- return value;
150
- }
151
-
152
- return {
153
-
154
- 'name': value['name'],
155
- 'is_enabled': value['isEnabled'],
156
- 'email': value['email'],
157
- 'license_number': value['licenseNumber'],
158
- 'address_line_1': value['addressLine1'],
159
- 'address_line_2': value['addressLine2'],
160
- 'suburb': value['suburb'],
161
- 'city': value['city'],
162
- 'state': value['state'],
163
- 'post_code': value['postCode'],
164
- 'country': value['country'],
165
- };
166
- }
167
-
@@ -1,134 +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 { AddressResource } from './AddressResource';
17
- import {
18
- AddressResourceFromJSON,
19
- AddressResourceFromJSONTyped,
20
- AddressResourceToJSON,
21
- AddressResourceToJSONTyped,
22
- } from './AddressResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface SecurityCompanyResource
28
- */
29
- export interface SecurityCompanyResource {
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof SecurityCompanyResource
34
- */
35
- id?: number | null;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof SecurityCompanyResource
40
- */
41
- name: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof SecurityCompanyResource
46
- */
47
- email: string;
48
- /**
49
- *
50
- * @type {boolean}
51
- * @memberof SecurityCompanyResource
52
- */
53
- isEnabled: boolean;
54
- /**
55
- *
56
- * @type {AddressResource}
57
- * @memberof SecurityCompanyResource
58
- */
59
- address: AddressResource | null;
60
- /**
61
- *
62
- * @type {string}
63
- * @memberof SecurityCompanyResource
64
- */
65
- licenseNumber: string;
66
- /**
67
- *
68
- * @type {Date}
69
- * @memberof SecurityCompanyResource
70
- */
71
- createdAt?: Date | null;
72
- /**
73
- *
74
- * @type {Date}
75
- * @memberof SecurityCompanyResource
76
- */
77
- updatedAt?: Date | null;
78
- }
79
-
80
- /**
81
- * Check if a given object implements the SecurityCompanyResource interface.
82
- */
83
- export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
84
- if (!('name' in value) || value['name'] === undefined) return false;
85
- if (!('email' in value) || value['email'] === undefined) return false;
86
- if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
87
- if (!('address' in value) || value['address'] === undefined) return false;
88
- if (!('licenseNumber' in value) || value['licenseNumber'] === undefined) return false;
89
- return true;
90
- }
91
-
92
- export function SecurityCompanyResourceFromJSON(json: any): SecurityCompanyResource {
93
- return SecurityCompanyResourceFromJSONTyped(json, false);
94
- }
95
-
96
- export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyResource {
97
- if (json == null) {
98
- return json;
99
- }
100
- return {
101
-
102
- 'id': json['id'] == null ? undefined : json['id'],
103
- 'name': json['name'],
104
- 'email': json['email'],
105
- 'isEnabled': json['isEnabled'],
106
- 'address': AddressResourceFromJSON(json['address']),
107
- 'licenseNumber': json['license_number'],
108
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
109
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
110
- };
111
- }
112
-
113
- export function SecurityCompanyResourceToJSON(json: any): SecurityCompanyResource {
114
- return SecurityCompanyResourceToJSONTyped(json, false);
115
- }
116
-
117
- export function SecurityCompanyResourceToJSONTyped(value?: SecurityCompanyResource | null, ignoreDiscriminator: boolean = false): any {
118
- if (value == null) {
119
- return value;
120
- }
121
-
122
- return {
123
-
124
- 'id': value['id'],
125
- 'name': value['name'],
126
- 'email': value['email'],
127
- 'isEnabled': value['isEnabled'],
128
- 'address': AddressResourceToJSON(value['address']),
129
- 'license_number': value['licenseNumber'],
130
- 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
131
- 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
132
- };
133
- }
134
-
@@ -1,73 +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 { SecurityCompanyResource } from './SecurityCompanyResource';
17
- import {
18
- SecurityCompanyResourceFromJSON,
19
- SecurityCompanyResourceFromJSONTyped,
20
- SecurityCompanyResourceToJSON,
21
- SecurityCompanyResourceToJSONTyped,
22
- } from './SecurityCompanyResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface SecurityCompanyResourceArrayResponse
28
- */
29
- export interface SecurityCompanyResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<SecurityCompanyResource>}
33
- * @memberof SecurityCompanyResourceArrayResponse
34
- */
35
- data?: Array<SecurityCompanyResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the SecurityCompanyResourceArrayResponse interface.
40
- */
41
- export function instanceOfSecurityCompanyResourceArrayResponse(value: object): value is SecurityCompanyResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function SecurityCompanyResourceArrayResponseFromJSON(json: any): SecurityCompanyResourceArrayResponse {
46
- return SecurityCompanyResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function SecurityCompanyResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SecurityCompanyResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(SecurityCompanyResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function SecurityCompanyResourceArrayResponseToJSON(json: any): SecurityCompanyResourceArrayResponse {
60
- return SecurityCompanyResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function SecurityCompanyResourceArrayResponseToJSONTyped(value?: SecurityCompanyResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
- if (value == null) {
65
- return value;
66
- }
67
-
68
- return {
69
-
70
- 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(SecurityCompanyResourceToJSON)),
71
- };
72
- }
73
-