@digital8/security-registers-backend-ts-sdk 0.0.120 → 0.0.121
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 +0 -13
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -80
- package/dist/apis/GeneralApi.js +0 -393
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/index.d.ts +0 -13
- package/dist/models/index.js +0 -13
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -360
- package/src/models/AssetResource.ts +2 -3
- package/src/models/index.ts +0 -13
- package/dist/models/LicenceListResource.d.ts +0 -87
- package/dist/models/LicenceListResource.js +0 -83
- package/dist/models/LicenceListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LicenceListResourceArrayResponse.js +0 -50
- package/dist/models/LicenceLiteResource.d.ts +0 -44
- package/dist/models/LicenceLiteResource.js +0 -57
- package/dist/models/LicenceLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/LicenceLiteResourceArrayResponse.js +0 -50
- package/dist/models/LicenceResource.d.ts +0 -117
- package/dist/models/LicenceResource.js +0 -93
- package/dist/models/LicenceResourceArrayResponse.d.ts +0 -33
- package/dist/models/LicenceResourceArrayResponse.js +0 -50
- package/dist/models/LicencesListAllRequest.d.ts +0 -92
- package/dist/models/LicencesListAllRequest.js +0 -83
- package/dist/models/LicencesListRequest.d.ts +0 -116
- package/dist/models/LicencesListRequest.js +0 -91
- package/dist/models/LicencesStoreRequest.d.ts +0 -100
- package/dist/models/LicencesStoreRequest.js +0 -95
- package/dist/models/LicencesUpdateRequest.d.ts +0 -74
- package/dist/models/LicencesUpdateRequest.js +0 -63
- package/dist/models/LicencesVerifyRequest.d.ts +0 -64
- package/dist/models/LicencesVerifyRequest.js +0 -77
- package/dist/models/PaginatedLicenceListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLicenceListResourceResponse.js +0 -57
- package/dist/models/PaginatedLicenceResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLicenceResourceResponse.js +0 -57
- package/src/models/LicenceListResource.ts +0 -152
- package/src/models/LicenceListResourceArrayResponse.ts +0 -73
- package/src/models/LicenceLiteResource.ts +0 -83
- package/src/models/LicenceLiteResourceArrayResponse.ts +0 -73
- package/src/models/LicenceResource.ts +0 -192
- package/src/models/LicenceResourceArrayResponse.ts +0 -73
- package/src/models/LicencesListAllRequest.ts +0 -142
- package/src/models/LicencesListRequest.ts +0 -174
- package/src/models/LicencesStoreRequest.ts +0 -161
- package/src/models/LicencesUpdateRequest.ts +0 -121
- package/src/models/LicencesVerifyRequest.ts +0 -110
- package/src/models/PaginatedLicenceListResourceResponse.ts +0 -90
- package/src/models/PaginatedLicenceResourceResponse.ts +0 -90
|
@@ -1,116 +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 LicencesListRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface LicencesListRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof LicencesListRequest
|
|
22
|
-
*/
|
|
23
|
-
search?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof LicencesListRequest
|
|
28
|
-
*/
|
|
29
|
-
sortBy?: LicencesListRequestSortByEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof LicencesListRequest
|
|
34
|
-
*/
|
|
35
|
-
sortDirection?: LicencesListRequestSortDirectionEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof LicencesListRequest
|
|
40
|
-
*/
|
|
41
|
-
perPage?: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof LicencesListRequest
|
|
46
|
-
*/
|
|
47
|
-
page?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {Array<string>}
|
|
51
|
-
* @memberof LicencesListRequest
|
|
52
|
-
*/
|
|
53
|
-
state?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Date}
|
|
57
|
-
* @memberof LicencesListRequest
|
|
58
|
-
*/
|
|
59
|
-
beforeExpiryDate?: Date;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Date}
|
|
63
|
-
* @memberof LicencesListRequest
|
|
64
|
-
*/
|
|
65
|
-
afterExpiryDate?: Date;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {number}
|
|
69
|
-
* @memberof LicencesListRequest
|
|
70
|
-
*/
|
|
71
|
-
relatedId?: number;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof LicencesListRequest
|
|
76
|
-
*/
|
|
77
|
-
relatedType?: LicencesListRequestRelatedTypeEnum;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {boolean}
|
|
81
|
-
* @memberof LicencesListRequest
|
|
82
|
-
*/
|
|
83
|
-
includesRelations?: boolean;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @export
|
|
87
|
-
*/
|
|
88
|
-
export declare const LicencesListRequestSortByEnum: {
|
|
89
|
-
readonly ExpiryDate: "expiry_date";
|
|
90
|
-
readonly FirstName: "first_name";
|
|
91
|
-
readonly LicenceNumber: "licence_number";
|
|
92
|
-
};
|
|
93
|
-
export type LicencesListRequestSortByEnum = typeof LicencesListRequestSortByEnum[keyof typeof LicencesListRequestSortByEnum];
|
|
94
|
-
/**
|
|
95
|
-
* @export
|
|
96
|
-
*/
|
|
97
|
-
export declare const LicencesListRequestSortDirectionEnum: {
|
|
98
|
-
readonly Asc: "asc";
|
|
99
|
-
readonly Desc: "desc";
|
|
100
|
-
};
|
|
101
|
-
export type LicencesListRequestSortDirectionEnum = typeof LicencesListRequestSortDirectionEnum[keyof typeof LicencesListRequestSortDirectionEnum];
|
|
102
|
-
/**
|
|
103
|
-
* @export
|
|
104
|
-
*/
|
|
105
|
-
export declare const LicencesListRequestRelatedTypeEnum: {
|
|
106
|
-
readonly User: "user";
|
|
107
|
-
};
|
|
108
|
-
export type LicencesListRequestRelatedTypeEnum = typeof LicencesListRequestRelatedTypeEnum[keyof typeof LicencesListRequestRelatedTypeEnum];
|
|
109
|
-
/**
|
|
110
|
-
* Check if a given object implements the LicencesListRequest interface.
|
|
111
|
-
*/
|
|
112
|
-
export declare function instanceOfLicencesListRequest(value: object): value is LicencesListRequest;
|
|
113
|
-
export declare function LicencesListRequestFromJSON(json: any): LicencesListRequest;
|
|
114
|
-
export declare function LicencesListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesListRequest;
|
|
115
|
-
export declare function LicencesListRequestToJSON(json: any): LicencesListRequest;
|
|
116
|
-
export declare function LicencesListRequestToJSONTyped(value?: LicencesListRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,91 +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.LicencesListRequestRelatedTypeEnum = exports.LicencesListRequestSortDirectionEnum = exports.LicencesListRequestSortByEnum = void 0;
|
|
17
|
-
exports.instanceOfLicencesListRequest = instanceOfLicencesListRequest;
|
|
18
|
-
exports.LicencesListRequestFromJSON = LicencesListRequestFromJSON;
|
|
19
|
-
exports.LicencesListRequestFromJSONTyped = LicencesListRequestFromJSONTyped;
|
|
20
|
-
exports.LicencesListRequestToJSON = LicencesListRequestToJSON;
|
|
21
|
-
exports.LicencesListRequestToJSONTyped = LicencesListRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.LicencesListRequestSortByEnum = {
|
|
26
|
-
ExpiryDate: 'expiry_date',
|
|
27
|
-
FirstName: 'first_name',
|
|
28
|
-
LicenceNumber: 'licence_number'
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* @export
|
|
32
|
-
*/
|
|
33
|
-
exports.LicencesListRequestSortDirectionEnum = {
|
|
34
|
-
Asc: 'asc',
|
|
35
|
-
Desc: 'desc'
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* @export
|
|
39
|
-
*/
|
|
40
|
-
exports.LicencesListRequestRelatedTypeEnum = {
|
|
41
|
-
User: 'user'
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Check if a given object implements the LicencesListRequest interface.
|
|
45
|
-
*/
|
|
46
|
-
function instanceOfLicencesListRequest(value) {
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
function LicencesListRequestFromJSON(json) {
|
|
50
|
-
return LicencesListRequestFromJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function LicencesListRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
-
if (json == null) {
|
|
54
|
-
return json;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
58
|
-
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
59
|
-
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
60
|
-
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
61
|
-
'page': json['page'] == null ? undefined : json['page'],
|
|
62
|
-
'state': json['state'] == null ? undefined : json['state'],
|
|
63
|
-
'beforeExpiryDate': json['before_expiry_date'] == null ? undefined : (new Date(json['before_expiry_date'])),
|
|
64
|
-
'afterExpiryDate': json['after_expiry_date'] == null ? undefined : (new Date(json['after_expiry_date'])),
|
|
65
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
66
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
67
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function LicencesListRequestToJSON(json) {
|
|
71
|
-
return LicencesListRequestToJSONTyped(json, false);
|
|
72
|
-
}
|
|
73
|
-
function LicencesListRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
74
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
75
|
-
if (value == null) {
|
|
76
|
-
return value;
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
'search': value['search'],
|
|
80
|
-
'sort_by': value['sortBy'],
|
|
81
|
-
'sort_direction': value['sortDirection'],
|
|
82
|
-
'per_page': value['perPage'],
|
|
83
|
-
'page': value['page'],
|
|
84
|
-
'state': value['state'],
|
|
85
|
-
'before_expiry_date': value['beforeExpiryDate'] == null ? undefined : ((value['beforeExpiryDate']).toISOString()),
|
|
86
|
-
'after_expiry_date': value['afterExpiryDate'] == null ? undefined : ((value['afterExpiryDate']).toISOString()),
|
|
87
|
-
'related_id': value['relatedId'],
|
|
88
|
-
'related_type': value['relatedType'],
|
|
89
|
-
'includes_relations': value['includesRelations'],
|
|
90
|
-
};
|
|
91
|
-
}
|
|
@@ -1,100 +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 LicencesStoreRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface LicencesStoreRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof LicencesStoreRequest
|
|
22
|
-
*/
|
|
23
|
-
userId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof LicencesStoreRequest
|
|
28
|
-
*/
|
|
29
|
-
state: LicencesStoreRequestStateEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof LicencesStoreRequest
|
|
34
|
-
*/
|
|
35
|
-
licenceNumber: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof LicencesStoreRequest
|
|
40
|
-
*/
|
|
41
|
-
firstName: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof LicencesStoreRequest
|
|
46
|
-
*/
|
|
47
|
-
lastName: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {Date}
|
|
51
|
-
* @memberof LicencesStoreRequest
|
|
52
|
-
*/
|
|
53
|
-
expiryDate: Date;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof LicencesStoreRequest
|
|
58
|
-
*/
|
|
59
|
-
frontAssetId: number;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {number}
|
|
63
|
-
* @memberof LicencesStoreRequest
|
|
64
|
-
*/
|
|
65
|
-
backAssetId?: number;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {number}
|
|
69
|
-
* @memberof LicencesStoreRequest
|
|
70
|
-
*/
|
|
71
|
-
rsaAssetId?: number;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {number}
|
|
75
|
-
* @memberof LicencesStoreRequest
|
|
76
|
-
*/
|
|
77
|
-
firstAidAssetId?: number;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* @export
|
|
81
|
-
*/
|
|
82
|
-
export declare const LicencesStoreRequestStateEnum: {
|
|
83
|
-
readonly Qld: "QLD";
|
|
84
|
-
readonly Nsw: "NSW";
|
|
85
|
-
readonly Act: "ACT";
|
|
86
|
-
readonly Vic: "VIC";
|
|
87
|
-
readonly Tas: "TAS";
|
|
88
|
-
readonly Sa: "SA";
|
|
89
|
-
readonly Wa: "WA";
|
|
90
|
-
readonly Nt: "NT";
|
|
91
|
-
};
|
|
92
|
-
export type LicencesStoreRequestStateEnum = typeof LicencesStoreRequestStateEnum[keyof typeof LicencesStoreRequestStateEnum];
|
|
93
|
-
/**
|
|
94
|
-
* Check if a given object implements the LicencesStoreRequest interface.
|
|
95
|
-
*/
|
|
96
|
-
export declare function instanceOfLicencesStoreRequest(value: object): value is LicencesStoreRequest;
|
|
97
|
-
export declare function LicencesStoreRequestFromJSON(json: any): LicencesStoreRequest;
|
|
98
|
-
export declare function LicencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesStoreRequest;
|
|
99
|
-
export declare function LicencesStoreRequestToJSON(json: any): LicencesStoreRequest;
|
|
100
|
-
export declare function LicencesStoreRequestToJSONTyped(value?: LicencesStoreRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,95 +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.LicencesStoreRequestStateEnum = void 0;
|
|
17
|
-
exports.instanceOfLicencesStoreRequest = instanceOfLicencesStoreRequest;
|
|
18
|
-
exports.LicencesStoreRequestFromJSON = LicencesStoreRequestFromJSON;
|
|
19
|
-
exports.LicencesStoreRequestFromJSONTyped = LicencesStoreRequestFromJSONTyped;
|
|
20
|
-
exports.LicencesStoreRequestToJSON = LicencesStoreRequestToJSON;
|
|
21
|
-
exports.LicencesStoreRequestToJSONTyped = LicencesStoreRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.LicencesStoreRequestStateEnum = {
|
|
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 LicencesStoreRequest interface.
|
|
37
|
-
*/
|
|
38
|
-
function instanceOfLicencesStoreRequest(value) {
|
|
39
|
-
if (!('userId' in value) || value['userId'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('state' in value) || value['state'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
48
|
-
return false;
|
|
49
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
50
|
-
return false;
|
|
51
|
-
if (!('frontAssetId' in value) || value['frontAssetId'] === undefined)
|
|
52
|
-
return false;
|
|
53
|
-
return true;
|
|
54
|
-
}
|
|
55
|
-
function LicencesStoreRequestFromJSON(json) {
|
|
56
|
-
return LicencesStoreRequestFromJSONTyped(json, false);
|
|
57
|
-
}
|
|
58
|
-
function LicencesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
59
|
-
if (json == null) {
|
|
60
|
-
return json;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
'userId': json['user_id'],
|
|
64
|
-
'state': json['state'],
|
|
65
|
-
'licenceNumber': json['licence_number'],
|
|
66
|
-
'firstName': json['first_name'],
|
|
67
|
-
'lastName': json['last_name'],
|
|
68
|
-
'expiryDate': (new Date(json['expiry_date'])),
|
|
69
|
-
'frontAssetId': json['front_asset_id'],
|
|
70
|
-
'backAssetId': json['back_asset_id'] == null ? undefined : json['back_asset_id'],
|
|
71
|
-
'rsaAssetId': json['rsa_asset_id'] == null ? undefined : json['rsa_asset_id'],
|
|
72
|
-
'firstAidAssetId': json['first_aid_asset_id'] == null ? undefined : json['first_aid_asset_id'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
function LicencesStoreRequestToJSON(json) {
|
|
76
|
-
return LicencesStoreRequestToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
function LicencesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
79
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
return {
|
|
84
|
-
'user_id': value['userId'],
|
|
85
|
-
'state': value['state'],
|
|
86
|
-
'licence_number': value['licenceNumber'],
|
|
87
|
-
'first_name': value['firstName'],
|
|
88
|
-
'last_name': value['lastName'],
|
|
89
|
-
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
90
|
-
'front_asset_id': value['frontAssetId'],
|
|
91
|
-
'back_asset_id': value['backAssetId'],
|
|
92
|
-
'rsa_asset_id': value['rsaAssetId'],
|
|
93
|
-
'first_aid_asset_id': value['firstAidAssetId'],
|
|
94
|
-
};
|
|
95
|
-
}
|
|
@@ -1,74 +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 LicencesUpdateRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface LicencesUpdateRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof LicencesUpdateRequest
|
|
22
|
-
*/
|
|
23
|
-
licenceNumber?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof LicencesUpdateRequest
|
|
28
|
-
*/
|
|
29
|
-
firstName?: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof LicencesUpdateRequest
|
|
34
|
-
*/
|
|
35
|
-
lastName?: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {Date}
|
|
39
|
-
* @memberof LicencesUpdateRequest
|
|
40
|
-
*/
|
|
41
|
-
expiryDate?: Date;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof LicencesUpdateRequest
|
|
46
|
-
*/
|
|
47
|
-
frontAssetId?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof LicencesUpdateRequest
|
|
52
|
-
*/
|
|
53
|
-
backAssetId?: number;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof LicencesUpdateRequest
|
|
58
|
-
*/
|
|
59
|
-
rsaAssetId?: number;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {number}
|
|
63
|
-
* @memberof LicencesUpdateRequest
|
|
64
|
-
*/
|
|
65
|
-
firstAidAssetId?: number;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Check if a given object implements the LicencesUpdateRequest interface.
|
|
69
|
-
*/
|
|
70
|
-
export declare function instanceOfLicencesUpdateRequest(value: object): value is LicencesUpdateRequest;
|
|
71
|
-
export declare function LicencesUpdateRequestFromJSON(json: any): LicencesUpdateRequest;
|
|
72
|
-
export declare function LicencesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesUpdateRequest;
|
|
73
|
-
export declare function LicencesUpdateRequestToJSON(json: any): LicencesUpdateRequest;
|
|
74
|
-
export declare function LicencesUpdateRequestToJSONTyped(value?: LicencesUpdateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,63 +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.instanceOfLicencesUpdateRequest = instanceOfLicencesUpdateRequest;
|
|
17
|
-
exports.LicencesUpdateRequestFromJSON = LicencesUpdateRequestFromJSON;
|
|
18
|
-
exports.LicencesUpdateRequestFromJSONTyped = LicencesUpdateRequestFromJSONTyped;
|
|
19
|
-
exports.LicencesUpdateRequestToJSON = LicencesUpdateRequestToJSON;
|
|
20
|
-
exports.LicencesUpdateRequestToJSONTyped = LicencesUpdateRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the LicencesUpdateRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfLicencesUpdateRequest(value) {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function LicencesUpdateRequestFromJSON(json) {
|
|
28
|
-
return LicencesUpdateRequestFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
function LicencesUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if (json == null) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
|
|
36
|
-
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
37
|
-
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
38
|
-
'expiryDate': json['expiry_date'] == null ? undefined : (new Date(json['expiry_date'])),
|
|
39
|
-
'frontAssetId': json['front_asset_id'] == null ? undefined : json['front_asset_id'],
|
|
40
|
-
'backAssetId': json['back_asset_id'] == null ? undefined : json['back_asset_id'],
|
|
41
|
-
'rsaAssetId': json['rsa_asset_id'] == null ? undefined : json['rsa_asset_id'],
|
|
42
|
-
'firstAidAssetId': json['first_aid_asset_id'] == null ? undefined : json['first_aid_asset_id'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function LicencesUpdateRequestToJSON(json) {
|
|
46
|
-
return LicencesUpdateRequestToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function LicencesUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'licence_number': value['licenceNumber'],
|
|
55
|
-
'first_name': value['firstName'],
|
|
56
|
-
'last_name': value['lastName'],
|
|
57
|
-
'expiry_date': value['expiryDate'] == null ? undefined : ((value['expiryDate']).toISOString()),
|
|
58
|
-
'front_asset_id': value['frontAssetId'],
|
|
59
|
-
'back_asset_id': value['backAssetId'],
|
|
60
|
-
'rsa_asset_id': value['rsaAssetId'],
|
|
61
|
-
'first_aid_asset_id': value['firstAidAssetId'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
@@ -1,64 +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 LicencesVerifyRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface LicencesVerifyRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof LicencesVerifyRequest
|
|
22
|
-
*/
|
|
23
|
-
state: LicencesVerifyRequestStateEnum;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof LicencesVerifyRequest
|
|
28
|
-
*/
|
|
29
|
-
licenceNumber: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Date}
|
|
33
|
-
* @memberof LicencesVerifyRequest
|
|
34
|
-
*/
|
|
35
|
-
expiryDate: Date;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof LicencesVerifyRequest
|
|
40
|
-
*/
|
|
41
|
-
name: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @export
|
|
45
|
-
*/
|
|
46
|
-
export declare const LicencesVerifyRequestStateEnum: {
|
|
47
|
-
readonly Qld: "QLD";
|
|
48
|
-
readonly Nsw: "NSW";
|
|
49
|
-
readonly Act: "ACT";
|
|
50
|
-
readonly Vic: "VIC";
|
|
51
|
-
readonly Tas: "TAS";
|
|
52
|
-
readonly Sa: "SA";
|
|
53
|
-
readonly Wa: "WA";
|
|
54
|
-
readonly Nt: "NT";
|
|
55
|
-
};
|
|
56
|
-
export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEnum[keyof typeof LicencesVerifyRequestStateEnum];
|
|
57
|
-
/**
|
|
58
|
-
* Check if a given object implements the LicencesVerifyRequest interface.
|
|
59
|
-
*/
|
|
60
|
-
export declare function instanceOfLicencesVerifyRequest(value: object): value is LicencesVerifyRequest;
|
|
61
|
-
export declare function LicencesVerifyRequestFromJSON(json: any): LicencesVerifyRequest;
|
|
62
|
-
export declare function LicencesVerifyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesVerifyRequest;
|
|
63
|
-
export declare function LicencesVerifyRequestToJSON(json: any): LicencesVerifyRequest;
|
|
64
|
-
export declare function LicencesVerifyRequestToJSONTyped(value?: LicencesVerifyRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,77 +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.LicencesVerifyRequestStateEnum = void 0;
|
|
17
|
-
exports.instanceOfLicencesVerifyRequest = instanceOfLicencesVerifyRequest;
|
|
18
|
-
exports.LicencesVerifyRequestFromJSON = LicencesVerifyRequestFromJSON;
|
|
19
|
-
exports.LicencesVerifyRequestFromJSONTyped = LicencesVerifyRequestFromJSONTyped;
|
|
20
|
-
exports.LicencesVerifyRequestToJSON = LicencesVerifyRequestToJSON;
|
|
21
|
-
exports.LicencesVerifyRequestToJSONTyped = LicencesVerifyRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.LicencesVerifyRequestStateEnum = {
|
|
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 LicencesVerifyRequest interface.
|
|
37
|
-
*/
|
|
38
|
-
function instanceOfLicencesVerifyRequest(value) {
|
|
39
|
-
if (!('state' in value) || value['state'] === undefined)
|
|
40
|
-
return false;
|
|
41
|
-
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
42
|
-
return false;
|
|
43
|
-
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
44
|
-
return false;
|
|
45
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
46
|
-
return false;
|
|
47
|
-
return true;
|
|
48
|
-
}
|
|
49
|
-
function LicencesVerifyRequestFromJSON(json) {
|
|
50
|
-
return LicencesVerifyRequestFromJSONTyped(json, false);
|
|
51
|
-
}
|
|
52
|
-
function LicencesVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
-
if (json == null) {
|
|
54
|
-
return json;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'state': json['state'],
|
|
58
|
-
'licenceNumber': json['licence_number'],
|
|
59
|
-
'expiryDate': (new Date(json['expiry_date'])),
|
|
60
|
-
'name': json['name'],
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function LicencesVerifyRequestToJSON(json) {
|
|
64
|
-
return LicencesVerifyRequestToJSONTyped(json, false);
|
|
65
|
-
}
|
|
66
|
-
function LicencesVerifyRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
-
if (value == null) {
|
|
69
|
-
return value;
|
|
70
|
-
}
|
|
71
|
-
return {
|
|
72
|
-
'state': value['state'],
|
|
73
|
-
'licence_number': value['licenceNumber'],
|
|
74
|
-
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
75
|
-
'name': value['name'],
|
|
76
|
-
};
|
|
77
|
-
}
|