@digital8/security-registers-backend-ts-sdk 0.0.303 → 0.0.305
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 -22
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -127
- package/dist/apis/GeneralApi.js +36 -694
- package/dist/models/AssetFileForUploadResource.d.ts +2 -4
- package/dist/models/AssetLiteResource.d.ts +12 -0
- package/dist/models/AssetLiteResource.js +6 -0
- package/dist/models/AssetResource.d.ts +12 -0
- package/dist/models/AssetResource.js +6 -0
- package/dist/models/IncidentFieldSchemaResource.d.ts +2 -4
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +2 -4
- package/dist/models/LicencesStoreRequest.d.ts +104 -10
- package/dist/models/LicencesStoreRequest.js +40 -10
- package/dist/models/LicencesUpdateRequest.d.ts +104 -9
- package/dist/models/LicencesUpdateRequest.js +40 -9
- package/dist/models/RegisterListResource.d.ts +5 -4
- package/dist/models/RegisterListResource.js +6 -9
- package/dist/models/RegisterResource.d.ts +13 -1
- package/dist/models/RegisterResource.js +9 -3
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +8 -12
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +8 -12
- package/dist/models/VenueLiteResource.d.ts +0 -6
- package/dist/models/VenueLiteResource.js +0 -4
- package/dist/models/index.d.ts +0 -22
- package/dist/models/index.js +0 -22
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -564
- package/src/models/AssetFileForUploadResource.ts +2 -2
- package/src/models/AssetLiteResource.ts +17 -0
- package/src/models/AssetResource.ts +17 -0
- package/src/models/IncidentFieldSchemaResource.ts +2 -2
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/IncidentVideoUploadTokenResource.ts +2 -2
- package/src/models/LicencesStoreRequest.ts +144 -31
- package/src/models/LicencesUpdateRequest.ts +144 -24
- package/src/models/RegisterListResource.ts +16 -11
- package/src/models/RegisterResource.ts +20 -3
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +16 -45
- package/src/models/VenueLiteResource.ts +0 -9
- package/src/models/index.ts +0 -22
- package/dist/models/AuthChangePasswordRequest.d.ts +0 -38
- package/dist/models/AuthChangePasswordRequest.js +0 -55
- package/dist/models/AuthProfileUpdateRequest.d.ts +0 -56
- package/dist/models/AuthProfileUpdateRequest.js +0 -57
- package/dist/models/AuthRegisterGuardRequest.d.ts +0 -70
- package/dist/models/AuthRegisterGuardRequest.js +0 -77
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -98
- package/dist/models/AuthRegisterGuardRequestLicence.js +0 -95
- package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +0 -50
- package/dist/models/AuthRegisterGuardRequestProfileSignature.js +0 -55
- package/dist/models/BackAsset.d.ts +0 -50
- package/dist/models/BackAsset.js +0 -55
- package/dist/models/DevicesRegisterRequest.d.ts +0 -76
- package/dist/models/DevicesRegisterRequest.js +0 -73
- package/dist/models/FirstAidAsset.d.ts +0 -50
- package/dist/models/FirstAidAsset.js +0 -55
- package/dist/models/FrontAsset.d.ts +0 -50
- package/dist/models/FrontAsset.js +0 -55
- package/dist/models/IncidentListResource.d.ts +0 -107
- package/dist/models/IncidentListResource.js +0 -81
- package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentListResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +0 -56
- package/dist/models/IncidentsExportPdfBulkRequest.js +0 -63
- package/dist/models/IncidentsListRequest.d.ts +0 -157
- package/dist/models/IncidentsListRequest.js +0 -101
- package/dist/models/LicencesStoreRequestBackAsset.d.ts +0 -50
- package/dist/models/LicencesStoreRequestBackAsset.js +0 -55
- package/dist/models/MobileDeviceResource.d.ts +0 -92
- package/dist/models/MobileDeviceResource.js +0 -86
- package/dist/models/MobileDeviceResourceArrayResponse.d.ts +0 -33
- package/dist/models/MobileDeviceResourceArrayResponse.js +0 -50
- package/dist/models/MobileInitResource.d.ts +0 -47
- package/dist/models/MobileInitResource.js +0 -62
- package/dist/models/MobileInitResourceArrayResponse.d.ts +0 -33
- package/dist/models/MobileInitResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
- package/dist/models/PdfExportQueuedResource.d.ts +0 -44
- package/dist/models/PdfExportQueuedResource.js +0 -59
- package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +0 -33
- package/dist/models/PdfExportQueuedResourceArrayResponse.js +0 -50
- package/dist/models/RsaAsset.d.ts +0 -50
- package/dist/models/RsaAsset.js +0 -55
- package/src/models/AuthChangePasswordRequest.ts +0 -75
- package/src/models/AuthProfileUpdateRequest.ts +0 -97
- package/src/models/AuthRegisterGuardRequest.ts +0 -135
- package/src/models/AuthRegisterGuardRequestLicence.ts +0 -181
- package/src/models/AuthRegisterGuardRequestProfileSignature.ts +0 -89
- package/src/models/BackAsset.ts +0 -89
- package/src/models/DevicesRegisterRequest.ts +0 -126
- package/src/models/FirstAidAsset.ts +0 -89
- package/src/models/FrontAsset.ts +0 -89
- package/src/models/IncidentListResource.ts +0 -185
- package/src/models/IncidentListResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsExportPdfBulkRequest.ts +0 -100
- package/src/models/IncidentsListRequest.ts +0 -230
- package/src/models/LicencesStoreRequestBackAsset.ts +0 -89
- package/src/models/MobileDeviceResource.ts +0 -153
- package/src/models/MobileDeviceResourceArrayResponse.ts +0 -73
- package/src/models/MobileInitResource.ts +0 -106
- package/src/models/MobileInitResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
- package/src/models/PdfExportQueuedResource.ts +0 -84
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +0 -73
- package/src/models/RsaAsset.ts +0 -89
|
@@ -29,12 +29,10 @@ export interface AssetFileForUploadResource {
|
|
|
29
29
|
url: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {Array<string>}
|
|
33
33
|
* @memberof AssetFileForUploadResource
|
|
34
34
|
*/
|
|
35
|
-
headers:
|
|
36
|
-
[key: string]: string;
|
|
37
|
-
};
|
|
35
|
+
headers: Array<string>;
|
|
38
36
|
/**
|
|
39
37
|
*
|
|
40
38
|
* @type {string}
|
|
@@ -27,6 +27,18 @@ export interface AssetLiteResource {
|
|
|
27
27
|
* @memberof AssetLiteResource
|
|
28
28
|
*/
|
|
29
29
|
filePath: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof AssetLiteResource
|
|
34
|
+
*/
|
|
35
|
+
isExternal: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AssetLiteResource
|
|
40
|
+
*/
|
|
41
|
+
externalUrl?: string | null;
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
32
44
|
* Check if a given object implements the AssetLiteResource interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfAssetLiteResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('filePath' in value) || value['filePath'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('isExternal' in value) || value['isExternal'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function AssetLiteResourceFromJSON(json) {
|
|
@@ -38,6 +40,8 @@ function AssetLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
return {
|
|
39
41
|
'id': json['id'],
|
|
40
42
|
'filePath': json['filePath'],
|
|
43
|
+
'isExternal': json['isExternal'],
|
|
44
|
+
'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
|
|
41
45
|
};
|
|
42
46
|
}
|
|
43
47
|
function AssetLiteResourceToJSON(json) {
|
|
@@ -51,5 +55,7 @@ function AssetLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
55
|
return {
|
|
52
56
|
'id': value['id'],
|
|
53
57
|
'filePath': value['filePath'],
|
|
58
|
+
'isExternal': value['isExternal'],
|
|
59
|
+
'externalUrl': value['externalUrl'],
|
|
54
60
|
};
|
|
55
61
|
}
|
|
@@ -57,6 +57,18 @@ export interface AssetResource {
|
|
|
57
57
|
* @memberof AssetResource
|
|
58
58
|
*/
|
|
59
59
|
fileId: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof AssetResource
|
|
64
|
+
*/
|
|
65
|
+
isExternal: boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AssetResource
|
|
70
|
+
*/
|
|
71
|
+
externalUrl?: string | null;
|
|
60
72
|
}
|
|
61
73
|
/**
|
|
62
74
|
* Check if a given object implements the AssetResource interface.
|
|
@@ -34,6 +34,8 @@ function instanceOfAssetResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
+
if (!('isExternal' in value) || value['isExternal'] === undefined)
|
|
38
|
+
return false;
|
|
37
39
|
return true;
|
|
38
40
|
}
|
|
39
41
|
function AssetResourceFromJSON(json) {
|
|
@@ -51,6 +53,8 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
53
|
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
52
54
|
'index': json['index'],
|
|
53
55
|
'fileId': json['fileId'],
|
|
56
|
+
'isExternal': json['isExternal'],
|
|
57
|
+
'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
60
|
function AssetResourceToJSON(json) {
|
|
@@ -69,5 +73,7 @@ function AssetResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
73
|
'altText': value['altText'],
|
|
70
74
|
'index': value['index'],
|
|
71
75
|
'fileId': value['fileId'],
|
|
76
|
+
'isExternal': value['isExternal'],
|
|
77
|
+
'externalUrl': value['externalUrl'],
|
|
72
78
|
};
|
|
73
79
|
}
|
|
@@ -29,12 +29,10 @@ export interface IncidentFieldSchemaResource {
|
|
|
29
29
|
state: object;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {Array<boolean>}
|
|
33
33
|
* @memberof IncidentFieldSchemaResource
|
|
34
34
|
*/
|
|
35
|
-
jsonSchema:
|
|
36
|
-
[key: string]: boolean;
|
|
37
|
-
};
|
|
35
|
+
jsonSchema: Array<boolean>;
|
|
38
36
|
/**
|
|
39
37
|
*
|
|
40
38
|
* @type {Date}
|
|
@@ -26,8 +26,6 @@ function instanceOfIncidentImageResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -44,7 +42,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
42
|
return {
|
|
45
43
|
'fileId': json['file_id'],
|
|
46
44
|
'mimeType': json['mime_type'],
|
|
47
|
-
'altText': json['alt_text'],
|
|
45
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
48
46
|
'assetId': json['asset_id'],
|
|
49
47
|
'url': json['url'],
|
|
50
48
|
};
|
|
@@ -35,12 +35,10 @@ export interface IncidentVideoUploadTokenResource {
|
|
|
35
35
|
containerName: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {Array<string>}
|
|
39
39
|
* @memberof IncidentVideoUploadTokenResource
|
|
40
40
|
*/
|
|
41
|
-
headers:
|
|
42
|
-
[key: string]: string;
|
|
43
|
-
};
|
|
41
|
+
headers: Array<string>;
|
|
44
42
|
}
|
|
45
43
|
/**
|
|
46
44
|
* Check if a given object implements the IncidentVideoUploadTokenResource interface.
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
|
|
13
|
-
import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
|
|
14
12
|
/**
|
|
15
13
|
*
|
|
16
14
|
* @export
|
|
@@ -55,28 +53,124 @@ export interface LicencesStoreRequest {
|
|
|
55
53
|
expiryDate: Date;
|
|
56
54
|
/**
|
|
57
55
|
*
|
|
58
|
-
* @type {
|
|
56
|
+
* @type {Array<string>}
|
|
59
57
|
* @memberof LicencesStoreRequest
|
|
60
58
|
*/
|
|
61
|
-
frontAsset:
|
|
59
|
+
frontAsset: Array<string>;
|
|
62
60
|
/**
|
|
63
61
|
*
|
|
64
|
-
* @type {
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof LicencesStoreRequest
|
|
64
|
+
*/
|
|
65
|
+
frontAssetFileId?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof LicencesStoreRequest
|
|
70
|
+
*/
|
|
71
|
+
frontAssetFileName?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof LicencesStoreRequest
|
|
76
|
+
*/
|
|
77
|
+
frontAssetMimeType?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof LicencesStoreRequest
|
|
82
|
+
*/
|
|
83
|
+
frontAssetAltText?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<string>}
|
|
87
|
+
* @memberof LicencesStoreRequest
|
|
88
|
+
*/
|
|
89
|
+
backAsset?: Array<string>;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof LicencesStoreRequest
|
|
94
|
+
*/
|
|
95
|
+
backAssetFileId?: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof LicencesStoreRequest
|
|
100
|
+
*/
|
|
101
|
+
backAssetFileName?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof LicencesStoreRequest
|
|
106
|
+
*/
|
|
107
|
+
backAssetMimeType?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
65
111
|
* @memberof LicencesStoreRequest
|
|
66
112
|
*/
|
|
67
|
-
|
|
113
|
+
backAssetAltText?: string;
|
|
68
114
|
/**
|
|
69
115
|
*
|
|
70
|
-
* @type {
|
|
116
|
+
* @type {Array<string>}
|
|
71
117
|
* @memberof LicencesStoreRequest
|
|
72
118
|
*/
|
|
73
|
-
rsaAsset?:
|
|
119
|
+
rsaAsset?: Array<string>;
|
|
74
120
|
/**
|
|
75
121
|
*
|
|
76
|
-
* @type {
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof LicencesStoreRequest
|
|
124
|
+
*/
|
|
125
|
+
rsaAssetFileId?: number;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof LicencesStoreRequest
|
|
130
|
+
*/
|
|
131
|
+
rsaAssetFileName?: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof LicencesStoreRequest
|
|
136
|
+
*/
|
|
137
|
+
rsaAssetMimeType?: string;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof LicencesStoreRequest
|
|
142
|
+
*/
|
|
143
|
+
rsaAssetAltText?: string;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {Array<string>}
|
|
147
|
+
* @memberof LicencesStoreRequest
|
|
148
|
+
*/
|
|
149
|
+
firstAidAsset?: Array<string>;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof LicencesStoreRequest
|
|
154
|
+
*/
|
|
155
|
+
firstAidAssetFileId?: number;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof LicencesStoreRequest
|
|
160
|
+
*/
|
|
161
|
+
firstAidAssetFileName?: string;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof LicencesStoreRequest
|
|
166
|
+
*/
|
|
167
|
+
firstAidAssetMimeType?: string;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
77
171
|
* @memberof LicencesStoreRequest
|
|
78
172
|
*/
|
|
79
|
-
|
|
173
|
+
firstAidAssetAltText?: string;
|
|
80
174
|
}
|
|
81
175
|
/**
|
|
82
176
|
* @export
|
|
@@ -19,8 +19,6 @@ exports.LicencesStoreRequestFromJSON = LicencesStoreRequestFromJSON;
|
|
|
19
19
|
exports.LicencesStoreRequestFromJSONTyped = LicencesStoreRequestFromJSONTyped;
|
|
20
20
|
exports.LicencesStoreRequestToJSON = LicencesStoreRequestToJSON;
|
|
21
21
|
exports.LicencesStoreRequestToJSONTyped = LicencesStoreRequestToJSONTyped;
|
|
22
|
-
var LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset");
|
|
23
|
-
var AuthRegisterGuardRequestProfileSignature_1 = require("./AuthRegisterGuardRequestProfileSignature");
|
|
24
22
|
/**
|
|
25
23
|
* @export
|
|
26
24
|
*/
|
|
@@ -68,10 +66,26 @@ function LicencesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
66
|
'firstName': json['first_name'],
|
|
69
67
|
'lastName': json['last_name'],
|
|
70
68
|
'expiryDate': (new Date(json['expiry_date'])),
|
|
71
|
-
'frontAsset':
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
69
|
+
'frontAsset': json['front_asset'],
|
|
70
|
+
'frontAssetFileId': json['front_asset.file_id'] == null ? undefined : json['front_asset.file_id'],
|
|
71
|
+
'frontAssetFileName': json['front_asset.file_name'] == null ? undefined : json['front_asset.file_name'],
|
|
72
|
+
'frontAssetMimeType': json['front_asset.mime_type'] == null ? undefined : json['front_asset.mime_type'],
|
|
73
|
+
'frontAssetAltText': json['front_asset.alt_text'] == null ? undefined : json['front_asset.alt_text'],
|
|
74
|
+
'backAsset': json['back_asset'] == null ? undefined : json['back_asset'],
|
|
75
|
+
'backAssetFileId': json['back_asset.file_id'] == null ? undefined : json['back_asset.file_id'],
|
|
76
|
+
'backAssetFileName': json['back_asset.file_name'] == null ? undefined : json['back_asset.file_name'],
|
|
77
|
+
'backAssetMimeType': json['back_asset.mime_type'] == null ? undefined : json['back_asset.mime_type'],
|
|
78
|
+
'backAssetAltText': json['back_asset.alt_text'] == null ? undefined : json['back_asset.alt_text'],
|
|
79
|
+
'rsaAsset': json['rsa_asset'] == null ? undefined : json['rsa_asset'],
|
|
80
|
+
'rsaAssetFileId': json['rsa_asset.file_id'] == null ? undefined : json['rsa_asset.file_id'],
|
|
81
|
+
'rsaAssetFileName': json['rsa_asset.file_name'] == null ? undefined : json['rsa_asset.file_name'],
|
|
82
|
+
'rsaAssetMimeType': json['rsa_asset.mime_type'] == null ? undefined : json['rsa_asset.mime_type'],
|
|
83
|
+
'rsaAssetAltText': json['rsa_asset.alt_text'] == null ? undefined : json['rsa_asset.alt_text'],
|
|
84
|
+
'firstAidAsset': json['first_aid_asset'] == null ? undefined : json['first_aid_asset'],
|
|
85
|
+
'firstAidAssetFileId': json['first_aid_asset.file_id'] == null ? undefined : json['first_aid_asset.file_id'],
|
|
86
|
+
'firstAidAssetFileName': json['first_aid_asset.file_name'] == null ? undefined : json['first_aid_asset.file_name'],
|
|
87
|
+
'firstAidAssetMimeType': json['first_aid_asset.mime_type'] == null ? undefined : json['first_aid_asset.mime_type'],
|
|
88
|
+
'firstAidAssetAltText': json['first_aid_asset.alt_text'] == null ? undefined : json['first_aid_asset.alt_text'],
|
|
75
89
|
};
|
|
76
90
|
}
|
|
77
91
|
function LicencesStoreRequestToJSON(json) {
|
|
@@ -89,9 +103,25 @@ function LicencesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
103
|
'first_name': value['firstName'],
|
|
90
104
|
'last_name': value['lastName'],
|
|
91
105
|
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
92
|
-
'front_asset':
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
106
|
+
'front_asset': value['frontAsset'],
|
|
107
|
+
'front_asset.file_id': value['frontAssetFileId'],
|
|
108
|
+
'front_asset.file_name': value['frontAssetFileName'],
|
|
109
|
+
'front_asset.mime_type': value['frontAssetMimeType'],
|
|
110
|
+
'front_asset.alt_text': value['frontAssetAltText'],
|
|
111
|
+
'back_asset': value['backAsset'],
|
|
112
|
+
'back_asset.file_id': value['backAssetFileId'],
|
|
113
|
+
'back_asset.file_name': value['backAssetFileName'],
|
|
114
|
+
'back_asset.mime_type': value['backAssetMimeType'],
|
|
115
|
+
'back_asset.alt_text': value['backAssetAltText'],
|
|
116
|
+
'rsa_asset': value['rsaAsset'],
|
|
117
|
+
'rsa_asset.file_id': value['rsaAssetFileId'],
|
|
118
|
+
'rsa_asset.file_name': value['rsaAssetFileName'],
|
|
119
|
+
'rsa_asset.mime_type': value['rsaAssetMimeType'],
|
|
120
|
+
'rsa_asset.alt_text': value['rsaAssetAltText'],
|
|
121
|
+
'first_aid_asset': value['firstAidAsset'],
|
|
122
|
+
'first_aid_asset.file_id': value['firstAidAssetFileId'],
|
|
123
|
+
'first_aid_asset.file_name': value['firstAidAssetFileName'],
|
|
124
|
+
'first_aid_asset.mime_type': value['firstAidAssetMimeType'],
|
|
125
|
+
'first_aid_asset.alt_text': value['firstAidAssetAltText'],
|
|
96
126
|
};
|
|
97
127
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -48,28 +47,124 @@ export interface LicencesUpdateRequest {
|
|
|
48
47
|
expiryDate?: Date;
|
|
49
48
|
/**
|
|
50
49
|
*
|
|
51
|
-
* @type {
|
|
50
|
+
* @type {Array<string>}
|
|
52
51
|
* @memberof LicencesUpdateRequest
|
|
53
52
|
*/
|
|
54
|
-
frontAsset?:
|
|
53
|
+
frontAsset?: Array<string>;
|
|
55
54
|
/**
|
|
56
55
|
*
|
|
57
|
-
* @type {
|
|
56
|
+
* @type {number}
|
|
58
57
|
* @memberof LicencesUpdateRequest
|
|
59
58
|
*/
|
|
60
|
-
|
|
59
|
+
frontAssetFileId?: number;
|
|
61
60
|
/**
|
|
62
61
|
*
|
|
63
|
-
* @type {
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof LicencesUpdateRequest
|
|
64
|
+
*/
|
|
65
|
+
frontAssetFileName?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof LicencesUpdateRequest
|
|
70
|
+
*/
|
|
71
|
+
frontAssetMimeType?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof LicencesUpdateRequest
|
|
76
|
+
*/
|
|
77
|
+
frontAssetAltText?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof LicencesUpdateRequest
|
|
82
|
+
*/
|
|
83
|
+
backAsset?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof LicencesUpdateRequest
|
|
88
|
+
*/
|
|
89
|
+
backAssetFileId?: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof LicencesUpdateRequest
|
|
94
|
+
*/
|
|
95
|
+
backAssetFileName?: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof LicencesUpdateRequest
|
|
100
|
+
*/
|
|
101
|
+
backAssetMimeType?: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof LicencesUpdateRequest
|
|
106
|
+
*/
|
|
107
|
+
backAssetAltText?: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {Array<string>}
|
|
64
111
|
* @memberof LicencesUpdateRequest
|
|
65
112
|
*/
|
|
66
|
-
rsaAsset?:
|
|
113
|
+
rsaAsset?: Array<string>;
|
|
67
114
|
/**
|
|
68
115
|
*
|
|
69
|
-
* @type {
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof LicencesUpdateRequest
|
|
118
|
+
*/
|
|
119
|
+
rsaAssetFileId?: number;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof LicencesUpdateRequest
|
|
124
|
+
*/
|
|
125
|
+
rsaAssetFileName?: string;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof LicencesUpdateRequest
|
|
130
|
+
*/
|
|
131
|
+
rsaAssetMimeType?: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof LicencesUpdateRequest
|
|
136
|
+
*/
|
|
137
|
+
rsaAssetAltText?: string;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {Array<string>}
|
|
141
|
+
* @memberof LicencesUpdateRequest
|
|
142
|
+
*/
|
|
143
|
+
firstAidAsset?: Array<string>;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {number}
|
|
147
|
+
* @memberof LicencesUpdateRequest
|
|
148
|
+
*/
|
|
149
|
+
firstAidAssetFileId?: number;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {string}
|
|
153
|
+
* @memberof LicencesUpdateRequest
|
|
154
|
+
*/
|
|
155
|
+
firstAidAssetFileName?: string;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof LicencesUpdateRequest
|
|
160
|
+
*/
|
|
161
|
+
firstAidAssetMimeType?: string;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
70
165
|
* @memberof LicencesUpdateRequest
|
|
71
166
|
*/
|
|
72
|
-
|
|
167
|
+
firstAidAssetAltText?: string;
|
|
73
168
|
}
|
|
74
169
|
/**
|
|
75
170
|
* @export
|
|
@@ -19,7 +19,6 @@ exports.LicencesUpdateRequestFromJSON = LicencesUpdateRequestFromJSON;
|
|
|
19
19
|
exports.LicencesUpdateRequestFromJSONTyped = LicencesUpdateRequestFromJSONTyped;
|
|
20
20
|
exports.LicencesUpdateRequestToJSON = LicencesUpdateRequestToJSON;
|
|
21
21
|
exports.LicencesUpdateRequestToJSONTyped = LicencesUpdateRequestToJSONTyped;
|
|
22
|
-
var LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset");
|
|
23
22
|
/**
|
|
24
23
|
* @export
|
|
25
24
|
*/
|
|
@@ -52,10 +51,26 @@ function LicencesUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
51
|
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
53
52
|
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
54
53
|
'expiryDate': json['expiry_date'] == null ? undefined : (new Date(json['expiry_date'])),
|
|
55
|
-
'frontAsset': json['front_asset'] == null ? undefined :
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
54
|
+
'frontAsset': json['front_asset'] == null ? undefined : json['front_asset'],
|
|
55
|
+
'frontAssetFileId': json['front_asset.file_id'] == null ? undefined : json['front_asset.file_id'],
|
|
56
|
+
'frontAssetFileName': json['front_asset.file_name'] == null ? undefined : json['front_asset.file_name'],
|
|
57
|
+
'frontAssetMimeType': json['front_asset.mime_type'] == null ? undefined : json['front_asset.mime_type'],
|
|
58
|
+
'frontAssetAltText': json['front_asset.alt_text'] == null ? undefined : json['front_asset.alt_text'],
|
|
59
|
+
'backAsset': json['back_asset'] == null ? undefined : json['back_asset'],
|
|
60
|
+
'backAssetFileId': json['back_asset.file_id'] == null ? undefined : json['back_asset.file_id'],
|
|
61
|
+
'backAssetFileName': json['back_asset.file_name'] == null ? undefined : json['back_asset.file_name'],
|
|
62
|
+
'backAssetMimeType': json['back_asset.mime_type'] == null ? undefined : json['back_asset.mime_type'],
|
|
63
|
+
'backAssetAltText': json['back_asset.alt_text'] == null ? undefined : json['back_asset.alt_text'],
|
|
64
|
+
'rsaAsset': json['rsa_asset'] == null ? undefined : json['rsa_asset'],
|
|
65
|
+
'rsaAssetFileId': json['rsa_asset.file_id'] == null ? undefined : json['rsa_asset.file_id'],
|
|
66
|
+
'rsaAssetFileName': json['rsa_asset.file_name'] == null ? undefined : json['rsa_asset.file_name'],
|
|
67
|
+
'rsaAssetMimeType': json['rsa_asset.mime_type'] == null ? undefined : json['rsa_asset.mime_type'],
|
|
68
|
+
'rsaAssetAltText': json['rsa_asset.alt_text'] == null ? undefined : json['rsa_asset.alt_text'],
|
|
69
|
+
'firstAidAsset': json['first_aid_asset'] == null ? undefined : json['first_aid_asset'],
|
|
70
|
+
'firstAidAssetFileId': json['first_aid_asset.file_id'] == null ? undefined : json['first_aid_asset.file_id'],
|
|
71
|
+
'firstAidAssetFileName': json['first_aid_asset.file_name'] == null ? undefined : json['first_aid_asset.file_name'],
|
|
72
|
+
'firstAidAssetMimeType': json['first_aid_asset.mime_type'] == null ? undefined : json['first_aid_asset.mime_type'],
|
|
73
|
+
'firstAidAssetAltText': json['first_aid_asset.alt_text'] == null ? undefined : json['first_aid_asset.alt_text'],
|
|
59
74
|
};
|
|
60
75
|
}
|
|
61
76
|
function LicencesUpdateRequestToJSON(json) {
|
|
@@ -72,9 +87,25 @@ function LicencesUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
87
|
'first_name': value['firstName'],
|
|
73
88
|
'last_name': value['lastName'],
|
|
74
89
|
'expiry_date': value['expiryDate'] == null ? undefined : ((value['expiryDate']).toISOString()),
|
|
75
|
-
'front_asset':
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
90
|
+
'front_asset': value['frontAsset'],
|
|
91
|
+
'front_asset.file_id': value['frontAssetFileId'],
|
|
92
|
+
'front_asset.file_name': value['frontAssetFileName'],
|
|
93
|
+
'front_asset.mime_type': value['frontAssetMimeType'],
|
|
94
|
+
'front_asset.alt_text': value['frontAssetAltText'],
|
|
95
|
+
'back_asset': value['backAsset'],
|
|
96
|
+
'back_asset.file_id': value['backAssetFileId'],
|
|
97
|
+
'back_asset.file_name': value['backAssetFileName'],
|
|
98
|
+
'back_asset.mime_type': value['backAssetMimeType'],
|
|
99
|
+
'back_asset.alt_text': value['backAssetAltText'],
|
|
100
|
+
'rsa_asset': value['rsaAsset'],
|
|
101
|
+
'rsa_asset.file_id': value['rsaAssetFileId'],
|
|
102
|
+
'rsa_asset.file_name': value['rsaAssetFileName'],
|
|
103
|
+
'rsa_asset.mime_type': value['rsaAssetMimeType'],
|
|
104
|
+
'rsa_asset.alt_text': value['rsaAssetAltText'],
|
|
105
|
+
'first_aid_asset': value['firstAidAsset'],
|
|
106
|
+
'first_aid_asset.file_id': value['firstAidAssetFileId'],
|
|
107
|
+
'first_aid_asset.file_name': value['firstAidAssetFileName'],
|
|
108
|
+
'first_aid_asset.mime_type': value['firstAidAssetMimeType'],
|
|
109
|
+
'first_aid_asset.alt_text': value['firstAidAssetAltText'],
|
|
79
110
|
};
|
|
80
111
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { VenueLiteResource } from './VenueLiteResource';
|
|
13
13
|
import type { UserLiteResource } from './UserLiteResource';
|
|
14
|
+
import type { IncidentLiteResource } from './IncidentLiteResource';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -142,19 +143,19 @@ export interface RegisterListResource {
|
|
|
142
143
|
* @type {number}
|
|
143
144
|
* @memberof RegisterListResource
|
|
144
145
|
*/
|
|
145
|
-
signOffLat
|
|
146
|
+
signOffLat?: number | null;
|
|
146
147
|
/**
|
|
147
148
|
*
|
|
148
149
|
* @type {number}
|
|
149
150
|
* @memberof RegisterListResource
|
|
150
151
|
*/
|
|
151
|
-
signOffLong
|
|
152
|
+
signOffLong?: number | null;
|
|
152
153
|
/**
|
|
153
154
|
*
|
|
154
|
-
* @type {
|
|
155
|
+
* @type {Array<IncidentLiteResource>}
|
|
155
156
|
* @memberof RegisterListResource
|
|
156
157
|
*/
|
|
157
|
-
|
|
158
|
+
incidents: Array<IncidentLiteResource> | null;
|
|
158
159
|
}
|
|
159
160
|
/**
|
|
160
161
|
* Check if a given object implements the RegisterListResource interface.
|
|
@@ -20,6 +20,7 @@ exports.RegisterListResourceToJSON = RegisterListResourceToJSON;
|
|
|
20
20
|
exports.RegisterListResourceToJSONTyped = RegisterListResourceToJSONTyped;
|
|
21
21
|
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
22
|
var UserLiteResource_1 = require("./UserLiteResource");
|
|
23
|
+
var IncidentLiteResource_1 = require("./IncidentLiteResource");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the RegisterListResource interface.
|
|
25
26
|
*/
|
|
@@ -60,11 +61,7 @@ function instanceOfRegisterListResource(value) {
|
|
|
60
61
|
return false;
|
|
61
62
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
62
63
|
return false;
|
|
63
|
-
if (!('
|
|
64
|
-
return false;
|
|
65
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
66
|
-
return false;
|
|
67
|
-
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
64
|
+
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
68
65
|
return false;
|
|
69
66
|
return true;
|
|
70
67
|
}
|
|
@@ -96,9 +93,9 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
96
93
|
'firstAid': json['firstAid'],
|
|
97
94
|
'signOnLat': json['signOnLat'],
|
|
98
95
|
'signOnLong': json['signOnLong'],
|
|
99
|
-
'signOffLat': json['signOffLat'],
|
|
100
|
-
'signOffLong': json['signOffLong'],
|
|
101
|
-
'
|
|
96
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
97
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
98
|
+
'incidents': (json['incidents'] == null ? null : json['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
|
|
102
99
|
};
|
|
103
100
|
}
|
|
104
101
|
function RegisterListResourceToJSON(json) {
|
|
@@ -132,6 +129,6 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
132
129
|
'signOnLong': value['signOnLong'],
|
|
133
130
|
'signOffLat': value['signOffLat'],
|
|
134
131
|
'signOffLong': value['signOffLong'],
|
|
135
|
-
'
|
|
132
|
+
'incidents': (value['incidents'] == null ? null : value['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceToJSON)),
|
|
136
133
|
};
|
|
137
134
|
}
|