@digital8/security-registers-backend-ts-sdk 0.0.121 → 0.0.123
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.
- package/.openapi-generator/FILES +13 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +79 -1
- package/dist/apis/GeneralApi.js +390 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/LicenceListResource.d.ts +81 -0
- package/dist/models/LicenceListResource.js +81 -0
- package/dist/models/LicenceListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceListResourceArrayResponse.js +50 -0
- package/dist/models/LicenceLiteResource.d.ts +44 -0
- package/dist/models/LicenceLiteResource.js +57 -0
- package/dist/models/LicenceLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceLiteResourceArrayResponse.js +50 -0
- package/dist/models/LicenceResource.d.ts +111 -0
- package/dist/models/LicenceResource.js +99 -0
- package/dist/models/LicenceResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceResourceArrayResponse.js +50 -0
- package/dist/models/LicencesListAllRequest.d.ts +92 -0
- package/dist/models/LicencesListAllRequest.js +83 -0
- package/dist/models/LicencesListRequest.d.ts +116 -0
- package/dist/models/LicencesListRequest.js +91 -0
- package/dist/models/LicencesStoreRequest.d.ts +100 -0
- package/dist/models/LicencesStoreRequest.js +95 -0
- package/dist/models/LicencesUpdateRequest.d.ts +74 -0
- package/dist/models/LicencesUpdateRequest.js +63 -0
- package/dist/models/LicencesVerifyRequest.d.ts +64 -0
- package/dist/models/LicencesVerifyRequest.js +77 -0
- package/dist/models/PaginatedLicenceListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLicenceListResourceResponse.js +57 -0
- package/dist/models/PaginatedLicenceResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLicenceResourceResponse.js +57 -0
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +351 -0
- package/src/models/AddressResource.ts +3 -2
- package/src/models/LicenceListResource.ts +144 -0
- package/src/models/LicenceListResourceArrayResponse.ts +73 -0
- package/src/models/LicenceLiteResource.ts +83 -0
- package/src/models/LicenceLiteResourceArrayResponse.ts +73 -0
- package/src/models/LicenceResource.ts +188 -0
- package/src/models/LicenceResourceArrayResponse.ts +73 -0
- package/src/models/LicencesListAllRequest.ts +142 -0
- package/src/models/LicencesListRequest.ts +174 -0
- package/src/models/LicencesStoreRequest.ts +161 -0
- package/src/models/LicencesUpdateRequest.ts +121 -0
- package/src/models/LicencesVerifyRequest.ts +110 -0
- package/src/models/PaginatedLicenceListResourceResponse.ts +90 -0
- package/src/models/PaginatedLicenceResourceResponse.ts +90 -0
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/index.ts +13 -0
|
@@ -0,0 +1,174 @@
|
|
|
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 LicencesListRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LicencesListRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LicencesListRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LicencesListRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: LicencesListRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LicencesListRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: LicencesListRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof LicencesListRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof LicencesListRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof LicencesListRequest
|
|
56
|
+
*/
|
|
57
|
+
state?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof LicencesListRequest
|
|
62
|
+
*/
|
|
63
|
+
beforeExpiryDate?: Date;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof LicencesListRequest
|
|
68
|
+
*/
|
|
69
|
+
afterExpiryDate?: Date;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof LicencesListRequest
|
|
74
|
+
*/
|
|
75
|
+
relatedId?: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof LicencesListRequest
|
|
80
|
+
*/
|
|
81
|
+
relatedType?: LicencesListRequestRelatedTypeEnum;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof LicencesListRequest
|
|
86
|
+
*/
|
|
87
|
+
includesRelations?: boolean;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const LicencesListRequestSortByEnum = {
|
|
95
|
+
ExpiryDate: 'expiry_date',
|
|
96
|
+
FirstName: 'first_name',
|
|
97
|
+
LicenceNumber: 'licence_number'
|
|
98
|
+
} as const;
|
|
99
|
+
export type LicencesListRequestSortByEnum = typeof LicencesListRequestSortByEnum[keyof typeof LicencesListRequestSortByEnum];
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @export
|
|
103
|
+
*/
|
|
104
|
+
export const LicencesListRequestSortDirectionEnum = {
|
|
105
|
+
Asc: 'asc',
|
|
106
|
+
Desc: 'desc'
|
|
107
|
+
} as const;
|
|
108
|
+
export type LicencesListRequestSortDirectionEnum = typeof LicencesListRequestSortDirectionEnum[keyof typeof LicencesListRequestSortDirectionEnum];
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const LicencesListRequestRelatedTypeEnum = {
|
|
114
|
+
User: 'user'
|
|
115
|
+
} as const;
|
|
116
|
+
export type LicencesListRequestRelatedTypeEnum = typeof LicencesListRequestRelatedTypeEnum[keyof typeof LicencesListRequestRelatedTypeEnum];
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Check if a given object implements the LicencesListRequest interface.
|
|
121
|
+
*/
|
|
122
|
+
export function instanceOfLicencesListRequest(value: object): value is LicencesListRequest {
|
|
123
|
+
return true;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function LicencesListRequestFromJSON(json: any): LicencesListRequest {
|
|
127
|
+
return LicencesListRequestFromJSONTyped(json, false);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export function LicencesListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesListRequest {
|
|
131
|
+
if (json == null) {
|
|
132
|
+
return json;
|
|
133
|
+
}
|
|
134
|
+
return {
|
|
135
|
+
|
|
136
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
137
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
138
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
139
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
140
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
141
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
142
|
+
'beforeExpiryDate': json['before_expiry_date'] == null ? undefined : (new Date(json['before_expiry_date'])),
|
|
143
|
+
'afterExpiryDate': json['after_expiry_date'] == null ? undefined : (new Date(json['after_expiry_date'])),
|
|
144
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
145
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
146
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function LicencesListRequestToJSON(json: any): LicencesListRequest {
|
|
151
|
+
return LicencesListRequestToJSONTyped(json, false);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function LicencesListRequestToJSONTyped(value?: LicencesListRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
155
|
+
if (value == null) {
|
|
156
|
+
return value;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
|
|
161
|
+
'search': value['search'],
|
|
162
|
+
'sort_by': value['sortBy'],
|
|
163
|
+
'sort_direction': value['sortDirection'],
|
|
164
|
+
'per_page': value['perPage'],
|
|
165
|
+
'page': value['page'],
|
|
166
|
+
'state': value['state'],
|
|
167
|
+
'before_expiry_date': value['beforeExpiryDate'] == null ? undefined : ((value['beforeExpiryDate']).toISOString()),
|
|
168
|
+
'after_expiry_date': value['afterExpiryDate'] == null ? undefined : ((value['afterExpiryDate']).toISOString()),
|
|
169
|
+
'related_id': value['relatedId'],
|
|
170
|
+
'related_type': value['relatedType'],
|
|
171
|
+
'includes_relations': value['includesRelations'],
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
@@ -0,0 +1,161 @@
|
|
|
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 LicencesStoreRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LicencesStoreRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LicencesStoreRequest
|
|
26
|
+
*/
|
|
27
|
+
userId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LicencesStoreRequest
|
|
32
|
+
*/
|
|
33
|
+
state: LicencesStoreRequestStateEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LicencesStoreRequest
|
|
38
|
+
*/
|
|
39
|
+
licenceNumber: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof LicencesStoreRequest
|
|
44
|
+
*/
|
|
45
|
+
firstName: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof LicencesStoreRequest
|
|
50
|
+
*/
|
|
51
|
+
lastName: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof LicencesStoreRequest
|
|
56
|
+
*/
|
|
57
|
+
expiryDate: Date;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof LicencesStoreRequest
|
|
62
|
+
*/
|
|
63
|
+
frontAssetId: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof LicencesStoreRequest
|
|
68
|
+
*/
|
|
69
|
+
backAssetId?: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof LicencesStoreRequest
|
|
74
|
+
*/
|
|
75
|
+
rsaAssetId?: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof LicencesStoreRequest
|
|
80
|
+
*/
|
|
81
|
+
firstAidAssetId?: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export const LicencesStoreRequestStateEnum = {
|
|
89
|
+
Qld: 'QLD',
|
|
90
|
+
Nsw: 'NSW',
|
|
91
|
+
Act: 'ACT',
|
|
92
|
+
Vic: 'VIC',
|
|
93
|
+
Tas: 'TAS',
|
|
94
|
+
Sa: 'SA',
|
|
95
|
+
Wa: 'WA',
|
|
96
|
+
Nt: 'NT'
|
|
97
|
+
} as const;
|
|
98
|
+
export type LicencesStoreRequestStateEnum = typeof LicencesStoreRequestStateEnum[keyof typeof LicencesStoreRequestStateEnum];
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the LicencesStoreRequest interface.
|
|
103
|
+
*/
|
|
104
|
+
export function instanceOfLicencesStoreRequest(value: object): value is LicencesStoreRequest {
|
|
105
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
106
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
107
|
+
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
108
|
+
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
109
|
+
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
110
|
+
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
111
|
+
if (!('frontAssetId' in value) || value['frontAssetId'] === undefined) return false;
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function LicencesStoreRequestFromJSON(json: any): LicencesStoreRequest {
|
|
116
|
+
return LicencesStoreRequestFromJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function LicencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesStoreRequest {
|
|
120
|
+
if (json == null) {
|
|
121
|
+
return json;
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'userId': json['user_id'],
|
|
126
|
+
'state': json['state'],
|
|
127
|
+
'licenceNumber': json['licence_number'],
|
|
128
|
+
'firstName': json['first_name'],
|
|
129
|
+
'lastName': json['last_name'],
|
|
130
|
+
'expiryDate': (new Date(json['expiry_date'])),
|
|
131
|
+
'frontAssetId': json['front_asset_id'],
|
|
132
|
+
'backAssetId': json['back_asset_id'] == null ? undefined : json['back_asset_id'],
|
|
133
|
+
'rsaAssetId': json['rsa_asset_id'] == null ? undefined : json['rsa_asset_id'],
|
|
134
|
+
'firstAidAssetId': json['first_aid_asset_id'] == null ? undefined : json['first_aid_asset_id'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function LicencesStoreRequestToJSON(json: any): LicencesStoreRequest {
|
|
139
|
+
return LicencesStoreRequestToJSONTyped(json, false);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function LicencesStoreRequestToJSONTyped(value?: LicencesStoreRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
143
|
+
if (value == null) {
|
|
144
|
+
return value;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
|
|
149
|
+
'user_id': value['userId'],
|
|
150
|
+
'state': value['state'],
|
|
151
|
+
'licence_number': value['licenceNumber'],
|
|
152
|
+
'first_name': value['firstName'],
|
|
153
|
+
'last_name': value['lastName'],
|
|
154
|
+
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
155
|
+
'front_asset_id': value['frontAssetId'],
|
|
156
|
+
'back_asset_id': value['backAssetId'],
|
|
157
|
+
'rsa_asset_id': value['rsaAssetId'],
|
|
158
|
+
'first_aid_asset_id': value['firstAidAssetId'],
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
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 LicencesUpdateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LicencesUpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LicencesUpdateRequest
|
|
26
|
+
*/
|
|
27
|
+
licenceNumber?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LicencesUpdateRequest
|
|
32
|
+
*/
|
|
33
|
+
firstName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LicencesUpdateRequest
|
|
38
|
+
*/
|
|
39
|
+
lastName?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof LicencesUpdateRequest
|
|
44
|
+
*/
|
|
45
|
+
expiryDate?: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof LicencesUpdateRequest
|
|
50
|
+
*/
|
|
51
|
+
frontAssetId?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof LicencesUpdateRequest
|
|
56
|
+
*/
|
|
57
|
+
backAssetId?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof LicencesUpdateRequest
|
|
62
|
+
*/
|
|
63
|
+
rsaAssetId?: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof LicencesUpdateRequest
|
|
68
|
+
*/
|
|
69
|
+
firstAidAssetId?: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the LicencesUpdateRequest interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfLicencesUpdateRequest(value: object): value is LicencesUpdateRequest {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function LicencesUpdateRequestFromJSON(json: any): LicencesUpdateRequest {
|
|
80
|
+
return LicencesUpdateRequestFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function LicencesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesUpdateRequest {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
|
|
90
|
+
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
91
|
+
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
92
|
+
'expiryDate': json['expiry_date'] == null ? undefined : (new Date(json['expiry_date'])),
|
|
93
|
+
'frontAssetId': json['front_asset_id'] == null ? undefined : json['front_asset_id'],
|
|
94
|
+
'backAssetId': json['back_asset_id'] == null ? undefined : json['back_asset_id'],
|
|
95
|
+
'rsaAssetId': json['rsa_asset_id'] == null ? undefined : json['rsa_asset_id'],
|
|
96
|
+
'firstAidAssetId': json['first_aid_asset_id'] == null ? undefined : json['first_aid_asset_id'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function LicencesUpdateRequestToJSON(json: any): LicencesUpdateRequest {
|
|
101
|
+
return LicencesUpdateRequestToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function LicencesUpdateRequestToJSONTyped(value?: LicencesUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'licence_number': value['licenceNumber'],
|
|
112
|
+
'first_name': value['firstName'],
|
|
113
|
+
'last_name': value['lastName'],
|
|
114
|
+
'expiry_date': value['expiryDate'] == null ? undefined : ((value['expiryDate']).toISOString()),
|
|
115
|
+
'front_asset_id': value['frontAssetId'],
|
|
116
|
+
'back_asset_id': value['backAssetId'],
|
|
117
|
+
'rsa_asset_id': value['rsaAssetId'],
|
|
118
|
+
'first_aid_asset_id': value['firstAidAssetId'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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 LicencesVerifyRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface LicencesVerifyRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LicencesVerifyRequest
|
|
26
|
+
*/
|
|
27
|
+
state: LicencesVerifyRequestStateEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LicencesVerifyRequest
|
|
32
|
+
*/
|
|
33
|
+
licenceNumber: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof LicencesVerifyRequest
|
|
38
|
+
*/
|
|
39
|
+
expiryDate: Date;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof LicencesVerifyRequest
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const LicencesVerifyRequestStateEnum = {
|
|
53
|
+
Qld: 'QLD',
|
|
54
|
+
Nsw: 'NSW',
|
|
55
|
+
Act: 'ACT',
|
|
56
|
+
Vic: 'VIC',
|
|
57
|
+
Tas: 'TAS',
|
|
58
|
+
Sa: 'SA',
|
|
59
|
+
Wa: 'WA',
|
|
60
|
+
Nt: 'NT'
|
|
61
|
+
} as const;
|
|
62
|
+
export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEnum[keyof typeof LicencesVerifyRequestStateEnum];
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the LicencesVerifyRequest interface.
|
|
67
|
+
*/
|
|
68
|
+
export function instanceOfLicencesVerifyRequest(value: object): value is LicencesVerifyRequest {
|
|
69
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
70
|
+
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
71
|
+
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
72
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function LicencesVerifyRequestFromJSON(json: any): LicencesVerifyRequest {
|
|
77
|
+
return LicencesVerifyRequestFromJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function LicencesVerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesVerifyRequest {
|
|
81
|
+
if (json == null) {
|
|
82
|
+
return json;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'state': json['state'],
|
|
87
|
+
'licenceNumber': json['licence_number'],
|
|
88
|
+
'expiryDate': (new Date(json['expiry_date'])),
|
|
89
|
+
'name': json['name'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function LicencesVerifyRequestToJSON(json: any): LicencesVerifyRequest {
|
|
94
|
+
return LicencesVerifyRequestToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function LicencesVerifyRequestToJSONTyped(value?: LicencesVerifyRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'state': value['state'],
|
|
105
|
+
'licence_number': value['licenceNumber'],
|
|
106
|
+
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
107
|
+
'name': value['name'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { LicenceListResource } from './LicenceListResource';
|
|
24
|
+
import {
|
|
25
|
+
LicenceListResourceFromJSON,
|
|
26
|
+
LicenceListResourceFromJSONTyped,
|
|
27
|
+
LicenceListResourceToJSON,
|
|
28
|
+
LicenceListResourceToJSONTyped,
|
|
29
|
+
} from './LicenceListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedLicenceListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedLicenceListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<LicenceListResource>}
|
|
40
|
+
* @memberof PaginatedLicenceListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<LicenceListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedLicenceListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedLicenceListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedLicenceListResourceResponse(value: object): value is PaginatedLicenceListResourceResponse {
|
|
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 PaginatedLicenceListResourceResponseFromJSON(json: any): PaginatedLicenceListResourceResponse {
|
|
61
|
+
return PaginatedLicenceListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedLicenceListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedLicenceListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(LicenceListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedLicenceListResourceResponseToJSON(json: any): PaginatedLicenceListResourceResponse {
|
|
76
|
+
return PaginatedLicenceListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedLicenceListResourceResponseToJSONTyped(value?: PaginatedLicenceListResourceResponse | 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(LicenceListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|