@digital8/security-registers-backend-ts-sdk 0.0.255 → 0.0.256
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 +8 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +72 -1
- package/dist/apis/GeneralApi.js +352 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/IncidentResource.d.ts +13 -0
- package/dist/models/IncidentResource.js +7 -0
- package/dist/models/IncidentVideoResource.d.ts +74 -0
- package/dist/models/IncidentVideoResource.js +72 -0
- package/dist/models/IncidentVideoResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoSignedUrlResource.d.ts +32 -0
- package/dist/models/IncidentVideoSignedUrlResource.js +51 -0
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.js +63 -0
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsVideosStoreRequest.d.ts +44 -0
- package/dist/models/IncidentsVideosStoreRequest.js +59 -0
- package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +44 -0
- package/dist/models/IncidentsVideosUploadTokenRequest.js +59 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +5 -5
- package/dist/models/RegisterListResource.js +9 -6
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +3 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +344 -0
- package/src/models/AddressResource.ts +2 -3
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/IncidentResource.ts +24 -0
- package/src/models/IncidentVideoResource.ts +125 -0
- package/src/models/IncidentVideoResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoSignedUrlResource.ts +66 -0
- package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoUploadTokenResource.ts +93 -0
- package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsVideosStoreRequest.ts +84 -0
- package/src/models/IncidentsVideosUploadTokenRequest.ts +84 -0
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +11 -10
- package/src/models/RegisterResource.ts +5 -5
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfIncidentsVideosStoreRequest = instanceOfIncidentsVideosStoreRequest;
|
|
17
|
+
exports.IncidentsVideosStoreRequestFromJSON = IncidentsVideosStoreRequestFromJSON;
|
|
18
|
+
exports.IncidentsVideosStoreRequestFromJSONTyped = IncidentsVideosStoreRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsVideosStoreRequestToJSON = IncidentsVideosStoreRequestToJSON;
|
|
20
|
+
exports.IncidentsVideosStoreRequestToJSONTyped = IncidentsVideosStoreRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsVideosStoreRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsVideosStoreRequest(value) {
|
|
25
|
+
if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('originalFilename' in value) || value['originalFilename'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function IncidentsVideosStoreRequestFromJSON(json) {
|
|
34
|
+
return IncidentsVideosStoreRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function IncidentsVideosStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'rawBlobPath': json['raw_blob_path'],
|
|
42
|
+
'originalFilename': json['original_filename'],
|
|
43
|
+
'mimeType': json['mime_type'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function IncidentsVideosStoreRequestToJSON(json) {
|
|
47
|
+
return IncidentsVideosStoreRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function IncidentsVideosStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'raw_blob_path': value['rawBlobPath'],
|
|
56
|
+
'original_filename': value['originalFilename'],
|
|
57
|
+
'mime_type': value['mimeType'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 IncidentsVideosUploadTokenRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsVideosUploadTokenRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IncidentsVideosUploadTokenRequest
|
|
22
|
+
*/
|
|
23
|
+
filename: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IncidentsVideosUploadTokenRequest
|
|
28
|
+
*/
|
|
29
|
+
mimeType: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof IncidentsVideosUploadTokenRequest
|
|
34
|
+
*/
|
|
35
|
+
sizeBytes: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfIncidentsVideosUploadTokenRequest(value: object): value is IncidentsVideosUploadTokenRequest;
|
|
41
|
+
export declare function IncidentsVideosUploadTokenRequestFromJSON(json: any): IncidentsVideosUploadTokenRequest;
|
|
42
|
+
export declare function IncidentsVideosUploadTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosUploadTokenRequest;
|
|
43
|
+
export declare function IncidentsVideosUploadTokenRequestToJSON(json: any): IncidentsVideosUploadTokenRequest;
|
|
44
|
+
export declare function IncidentsVideosUploadTokenRequestToJSONTyped(value?: IncidentsVideosUploadTokenRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfIncidentsVideosUploadTokenRequest = instanceOfIncidentsVideosUploadTokenRequest;
|
|
17
|
+
exports.IncidentsVideosUploadTokenRequestFromJSON = IncidentsVideosUploadTokenRequestFromJSON;
|
|
18
|
+
exports.IncidentsVideosUploadTokenRequestFromJSONTyped = IncidentsVideosUploadTokenRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsVideosUploadTokenRequestToJSON = IncidentsVideosUploadTokenRequestToJSON;
|
|
20
|
+
exports.IncidentsVideosUploadTokenRequestToJSONTyped = IncidentsVideosUploadTokenRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsVideosUploadTokenRequest(value) {
|
|
25
|
+
if (!('filename' in value) || value['filename'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function IncidentsVideosUploadTokenRequestFromJSON(json) {
|
|
34
|
+
return IncidentsVideosUploadTokenRequestFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function IncidentsVideosUploadTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'filename': json['filename'],
|
|
42
|
+
'mimeType': json['mime_type'],
|
|
43
|
+
'sizeBytes': json['size_bytes'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function IncidentsVideosUploadTokenRequestToJSON(json) {
|
|
47
|
+
return IncidentsVideosUploadTokenRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function IncidentsVideosUploadTokenRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'filename': value['filename'],
|
|
56
|
+
'mime_type': value['mimeType'],
|
|
57
|
+
'size_bytes': value['sizeBytes'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -32,6 +32,8 @@ function instanceOfRegisterGroupedByRosterResource(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
36
|
+
return false;
|
|
35
37
|
if (!('registers' in value) || value['registers'] === undefined)
|
|
36
38
|
return false;
|
|
37
39
|
return true;
|
|
@@ -49,7 +51,7 @@ function RegisterGroupedByRosterResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
49
51
|
'timezone': json['timezone'],
|
|
50
52
|
'state': json['state'],
|
|
51
53
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
52
|
-
'finishDateTime':
|
|
54
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
53
55
|
'registers': (json['registers'] == null ? null : json['registers'].map(RegisterListResource_1.RegisterListResourceFromJSON)),
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -57,7 +59,6 @@ function RegisterGroupedByRosterResourceToJSON(json) {
|
|
|
57
59
|
return RegisterGroupedByRosterResourceToJSONTyped(json, false);
|
|
58
60
|
}
|
|
59
61
|
function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
-
var _a;
|
|
61
62
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
63
|
if (value == null) {
|
|
63
64
|
return value;
|
|
@@ -68,7 +69,7 @@ function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
68
69
|
'timezone': value['timezone'],
|
|
69
70
|
'state': value['state'],
|
|
70
71
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
71
|
-
'finishDateTime':
|
|
72
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
72
73
|
'registers': (value['registers'] == null ? null : value['registers'].map(RegisterListResource_1.RegisterListResourceToJSON)),
|
|
73
74
|
};
|
|
74
75
|
}
|
|
@@ -47,13 +47,13 @@ export interface RegisterListResource {
|
|
|
47
47
|
* @type {Date}
|
|
48
48
|
* @memberof RegisterListResource
|
|
49
49
|
*/
|
|
50
|
-
finishDateTime
|
|
50
|
+
finishDateTime?: Date | null;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
|
-
* @type {
|
|
53
|
+
* @type {object}
|
|
54
54
|
* @memberof RegisterListResource
|
|
55
55
|
*/
|
|
56
|
-
shiftLength:
|
|
56
|
+
shiftLength: object;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
59
|
* @type {number}
|
|
@@ -65,7 +65,7 @@ export interface RegisterListResource {
|
|
|
65
65
|
* @type {string}
|
|
66
66
|
* @memberof RegisterListResource
|
|
67
67
|
*/
|
|
68
|
-
badgeNumber
|
|
68
|
+
badgeNumber: string;
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @type {string}
|
|
@@ -149,7 +149,7 @@ export interface RegisterListResource {
|
|
|
149
149
|
* @type {number}
|
|
150
150
|
* @memberof RegisterListResource
|
|
151
151
|
*/
|
|
152
|
-
signOffLong
|
|
152
|
+
signOffLong: number;
|
|
153
153
|
/**
|
|
154
154
|
*
|
|
155
155
|
* @type {Array<IncidentLiteResource>}
|
|
@@ -31,12 +31,12 @@ function instanceOfRegisterListResource(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
35
|
-
return false;
|
|
36
34
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined)
|
|
37
35
|
return false;
|
|
38
36
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
39
37
|
return false;
|
|
38
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
39
|
+
return false;
|
|
40
40
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
41
41
|
return false;
|
|
42
42
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -61,6 +61,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
61
61
|
return false;
|
|
62
62
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
63
63
|
return false;
|
|
64
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
65
|
+
return false;
|
|
64
66
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
65
67
|
return false;
|
|
66
68
|
return true;
|
|
@@ -77,10 +79,10 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
79
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
78
80
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
79
81
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
80
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
82
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
81
83
|
'shiftLength': json['shiftLength'],
|
|
82
84
|
'signOffStatus': json['signOffStatus'],
|
|
83
|
-
'badgeNumber': json['badgeNumber']
|
|
85
|
+
'badgeNumber': json['badgeNumber'],
|
|
84
86
|
'licenceNumber': json['licenceNumber'],
|
|
85
87
|
'licenceFirstName': json['licenceFirstName'],
|
|
86
88
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -94,7 +96,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
96
|
'signOnLat': json['signOnLat'],
|
|
95
97
|
'signOnLong': json['signOnLong'],
|
|
96
98
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
97
|
-
'signOffLong': json['signOffLong']
|
|
99
|
+
'signOffLong': json['signOffLong'],
|
|
98
100
|
'incidents': (json['incidents'] == null ? null : json['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
|
|
99
101
|
};
|
|
100
102
|
}
|
|
@@ -102,6 +104,7 @@ function RegisterListResourceToJSON(json) {
|
|
|
102
104
|
return RegisterListResourceToJSONTyped(json, false);
|
|
103
105
|
}
|
|
104
106
|
function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
107
|
+
var _a;
|
|
105
108
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
106
109
|
if (value == null) {
|
|
107
110
|
return value;
|
|
@@ -111,7 +114,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
111
114
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
112
115
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
113
116
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
114
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
117
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
115
118
|
'shiftLength': value['shiftLength'],
|
|
116
119
|
'signOffStatus': value['signOffStatus'],
|
|
117
120
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -106,13 +106,13 @@ export interface RegisterResource {
|
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof RegisterResource
|
|
108
108
|
*/
|
|
109
|
-
signOffLat
|
|
109
|
+
signOffLat: number;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof RegisterResource
|
|
114
114
|
*/
|
|
115
|
-
signOffLong
|
|
115
|
+
signOffLong?: number | null;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {string}
|
|
@@ -48,7 +48,7 @@ function instanceOfRegisterResource(value) {
|
|
|
48
48
|
return false;
|
|
49
49
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
50
50
|
return false;
|
|
51
|
-
if (!('
|
|
51
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
52
52
|
return false;
|
|
53
53
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
54
54
|
return false;
|
|
@@ -84,8 +84,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
84
|
'firstAidImage': json['firstAidImage'],
|
|
85
85
|
'signOnLat': json['signOnLat'],
|
|
86
86
|
'signOnLong': json['signOnLong'],
|
|
87
|
-
'signOffLat': json['signOffLat']
|
|
88
|
-
'signOffLong': json['signOffLong'],
|
|
87
|
+
'signOffLat': json['signOffLat'],
|
|
88
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
89
89
|
'licenceNumber': json['licenceNumber'],
|
|
90
90
|
'licenceExpiry': json['licenceExpiry'],
|
|
91
91
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -33,6 +33,8 @@ function instanceOfRosterWithRegistersResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -56,7 +58,7 @@ function RosterWithRegistersResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
'state': json['state'],
|
|
57
59
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
58
60
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
59
|
-
'finishDateTime':
|
|
61
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
60
62
|
'isCompliant': json['isCompliant'],
|
|
61
63
|
'isComplete': json['isComplete'],
|
|
62
64
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -67,7 +69,6 @@ function RosterWithRegistersResourceToJSON(json) {
|
|
|
67
69
|
return RosterWithRegistersResourceToJSONTyped(json, false);
|
|
68
70
|
}
|
|
69
71
|
function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
-
var _a;
|
|
71
72
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
72
73
|
if (value == null) {
|
|
73
74
|
return value;
|
|
@@ -78,7 +79,7 @@ function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
79
|
'state': value['state'],
|
|
79
80
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
80
81
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
81
|
-
'finishDateTime':
|
|
82
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
82
83
|
'isCompliant': value['isCompliant'],
|
|
83
84
|
'isComplete': value['isComplete'],
|
|
84
85
|
'signOffStatus': value['signOffStatus'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -24,9 +24,17 @@ export * from './IncidentResource';
|
|
|
24
24
|
export * from './IncidentResourceArrayResponse';
|
|
25
25
|
export * from './IncidentVersionResource';
|
|
26
26
|
export * from './IncidentVersionResourceArrayResponse';
|
|
27
|
+
export * from './IncidentVideoResource';
|
|
28
|
+
export * from './IncidentVideoResourceArrayResponse';
|
|
29
|
+
export * from './IncidentVideoSignedUrlResource';
|
|
30
|
+
export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
31
|
+
export * from './IncidentVideoUploadTokenResource';
|
|
32
|
+
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
27
33
|
export * from './IncidentsApproveRequest';
|
|
28
34
|
export * from './IncidentsStoreRequest';
|
|
29
35
|
export * from './IncidentsUpdateRequest';
|
|
36
|
+
export * from './IncidentsVideosStoreRequest';
|
|
37
|
+
export * from './IncidentsVideosUploadTokenRequest';
|
|
30
38
|
export * from './IndexMinimalUserRequest';
|
|
31
39
|
export * from './IndexUserRequest';
|
|
32
40
|
export * from './LicenceListResource';
|
package/dist/models/index.js
CHANGED
|
@@ -42,9 +42,17 @@ __exportStar(require("./IncidentResource"), exports);
|
|
|
42
42
|
__exportStar(require("./IncidentResourceArrayResponse"), exports);
|
|
43
43
|
__exportStar(require("./IncidentVersionResource"), exports);
|
|
44
44
|
__exportStar(require("./IncidentVersionResourceArrayResponse"), exports);
|
|
45
|
+
__exportStar(require("./IncidentVideoResource"), exports);
|
|
46
|
+
__exportStar(require("./IncidentVideoResourceArrayResponse"), exports);
|
|
47
|
+
__exportStar(require("./IncidentVideoSignedUrlResource"), exports);
|
|
48
|
+
__exportStar(require("./IncidentVideoSignedUrlResourceArrayResponse"), exports);
|
|
49
|
+
__exportStar(require("./IncidentVideoUploadTokenResource"), exports);
|
|
50
|
+
__exportStar(require("./IncidentVideoUploadTokenResourceArrayResponse"), exports);
|
|
45
51
|
__exportStar(require("./IncidentsApproveRequest"), exports);
|
|
46
52
|
__exportStar(require("./IncidentsStoreRequest"), exports);
|
|
47
53
|
__exportStar(require("./IncidentsUpdateRequest"), exports);
|
|
54
|
+
__exportStar(require("./IncidentsVideosStoreRequest"), exports);
|
|
55
|
+
__exportStar(require("./IncidentsVideosUploadTokenRequest"), exports);
|
|
48
56
|
__exportStar(require("./IndexMinimalUserRequest"), exports);
|
|
49
57
|
__exportStar(require("./IndexUserRequest"), exports);
|
|
50
58
|
__exportStar(require("./LicenceListResource"), exports);
|
package/package.json
CHANGED