@digital8/security-registers-backend-ts-sdk 0.0.262 → 0.0.263
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 +3 -1
- 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/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +3 -1
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +5 -7
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -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 +3 -2
- 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/RegisterListResource.ts +3 -2
- package/src/models/RegisterResource.ts +3 -4
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +2 -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
|
+
}
|
|
@@ -37,6 +37,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -82,7 +84,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
84
|
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
83
85
|
'shiftLength': json['shiftLength'],
|
|
84
86
|
'signOffStatus': json['signOffStatus'],
|
|
85
|
-
'badgeNumber': json['badgeNumber']
|
|
87
|
+
'badgeNumber': json['badgeNumber'],
|
|
86
88
|
'licenceNumber': json['licenceNumber'],
|
|
87
89
|
'licenceFirstName': json['licenceFirstName'],
|
|
88
90
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -30,8 +30,6 @@ function instanceOfRegisterResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined)
|
|
@@ -72,7 +70,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
70
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
73
71
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
74
72
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
75
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
73
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
76
74
|
'signOffStatus': json['signOffStatus'],
|
|
77
75
|
'signOnSignature': json['signOnSignature'],
|
|
78
76
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -97,7 +95,7 @@ function RegisterResourceToJSON(json) {
|
|
|
97
95
|
return RegisterResourceToJSONTyped(json, false);
|
|
98
96
|
}
|
|
99
97
|
function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
100
|
-
var _a, _b;
|
|
98
|
+
var _a, _b, _c;
|
|
101
99
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
102
100
|
if (value == null) {
|
|
103
101
|
return value;
|
|
@@ -107,7 +105,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
107
105
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
108
106
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
109
107
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
110
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
108
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
111
109
|
'signOffStatus': value['signOffStatus'],
|
|
112
110
|
'signOnSignature': value['signOnSignature'],
|
|
113
111
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -124,7 +122,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
124
122
|
'licenceFirstName': value['licenceFirstName'],
|
|
125
123
|
'licenceLastName': value['licenceLastName'],
|
|
126
124
|
'badgeNumber': value['badgeNumber'],
|
|
127
|
-
'createdAt': value['createdAt'] === null ? null : ((
|
|
128
|
-
'updatedAt': value['updatedAt'] === null ? null : ((
|
|
125
|
+
'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
126
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
129
127
|
};
|
|
130
128
|
}
|
|
@@ -30,6 +30,8 @@ function instanceOfRosterListResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -52,7 +54,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
53
55
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
54
56
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
55
|
-
'finishDateTime':
|
|
57
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
56
58
|
'isCompliant': json['isCompliant'],
|
|
57
59
|
'isComplete': json['isComplete'],
|
|
58
60
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -63,7 +65,6 @@ function RosterListResourceToJSON(json) {
|
|
|
63
65
|
return RosterListResourceToJSONTyped(json, false);
|
|
64
66
|
}
|
|
65
67
|
function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
-
var _a;
|
|
67
68
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
69
|
if (value == null) {
|
|
69
70
|
return value;
|
|
@@ -73,7 +74,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
74
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
74
75
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
75
76
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
76
|
-
'finishDateTime':
|
|
77
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
77
78
|
'isCompliant': value['isCompliant'],
|
|
78
79
|
'isComplete': value['isComplete'],
|
|
79
80
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -24,8 +24,6 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfRosterLiteResource(value) {
|
|
25
25
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
function RosterLiteResourceFromJSON(json) {
|
|
@@ -38,13 +36,14 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return {
|
|
39
37
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
38
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
41
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
39
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
function RosterLiteResourceToJSON(json) {
|
|
45
43
|
return RosterLiteResourceToJSONTyped(json, false);
|
|
46
44
|
}
|
|
47
45
|
function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
var _a;
|
|
48
47
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
48
|
if (value == null) {
|
|
50
49
|
return value;
|
|
@@ -52,6 +51,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
51
|
return {
|
|
53
52
|
'id': value['id'],
|
|
54
53
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
55
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
54
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
56
55
|
};
|
|
57
56
|
}
|
|
@@ -31,6 +31,8 @@ function instanceOfRosterResource(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;
|
|
34
36
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -53,7 +55,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
55
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
54
56
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
55
57
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
56
|
-
'finishDateTime':
|
|
58
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
57
59
|
'isCompliant': json['isCompliant'],
|
|
58
60
|
'isComplete': json['isComplete'],
|
|
59
61
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -64,7 +66,6 @@ function RosterResourceToJSON(json) {
|
|
|
64
66
|
return RosterResourceToJSONTyped(json, false);
|
|
65
67
|
}
|
|
66
68
|
function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
-
var _a;
|
|
68
69
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
70
|
if (value == null) {
|
|
70
71
|
return value;
|
|
@@ -74,7 +75,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
75
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
75
76
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
76
77
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
77
|
-
'finishDateTime':
|
|
78
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
78
79
|
'isCompliant': value['isCompliant'],
|
|
79
80
|
'isComplete': value['isComplete'],
|
|
80
81
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -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'],
|
|
@@ -25,8 +25,6 @@ var AddressResource_1 = require("./AddressResource");
|
|
|
25
25
|
function instanceOfSecurityCompanyResource(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
-
return false;
|
|
30
28
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
31
29
|
return false;
|
|
32
30
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
43
|
return {
|
|
46
44
|
'id': json['id'] == null ? undefined : json['id'],
|
|
47
45
|
'name': json['name'],
|
|
48
|
-
'email': json['email'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
49
47
|
'isEnabled': json['isEnabled'],
|
|
50
48
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
49
|
'licenceNumber': json['licenceNumber'],
|
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