@digital8/security-registers-backend-ts-sdk 0.0.210 → 0.0.211
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 +5 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +58 -1
- package/dist/apis/GeneralApi.js +286 -0
- package/dist/models/IncidentFieldAuditResource.d.ts +56 -0
- package/dist/models/IncidentFieldAuditResource.js +67 -0
- package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentFieldAuditResourceArrayResponse.js +50 -0
- package/dist/models/IncidentResource.d.ts +7 -0
- package/dist/models/IncidentResource.js +5 -0
- package/dist/models/IncidentVersionResource.d.ts +57 -0
- package/dist/models/IncidentVersionResource.js +68 -0
- package/dist/models/IncidentVersionResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVersionResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsUpdateRequest.d.ts +32 -0
- package/dist/models/IncidentsUpdateRequest.js +51 -0
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +1 -3
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- 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/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +267 -0
- package/src/models/IncidentFieldAuditResource.ts +102 -0
- package/src/models/IncidentFieldAuditResourceArrayResponse.ts +73 -0
- package/src/models/IncidentResource.ts +16 -0
- package/src/models/IncidentVersionResource.ts +110 -0
- package/src/models/IncidentVersionResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsUpdateRequest.ts +66 -0
- package/src/models/RegisterListResource.ts +2 -3
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/index.ts +5 -0
|
@@ -21,6 +21,7 @@ exports.IncidentResourceToJSONTyped = IncidentResourceToJSONTyped;
|
|
|
21
21
|
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
22
|
var IncidentFieldSchemaResource_1 = require("./IncidentFieldSchemaResource");
|
|
23
23
|
var RosterLiteResource_1 = require("./RosterLiteResource");
|
|
24
|
+
var IncidentFieldAuditResource_1 = require("./IncidentFieldAuditResource");
|
|
24
25
|
var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
|
|
25
26
|
var UserLiteResource_1 = require("./UserLiteResource");
|
|
26
27
|
var RegisterLiteResource_1 = require("./RegisterLiteResource");
|
|
@@ -46,6 +47,8 @@ function instanceOfIncidentResource(value) {
|
|
|
46
47
|
return false;
|
|
47
48
|
if (!('fields' in value) || value['fields'] === undefined)
|
|
48
49
|
return false;
|
|
50
|
+
if (!('fieldAudits' in value) || value['fieldAudits'] === undefined)
|
|
51
|
+
return false;
|
|
49
52
|
return true;
|
|
50
53
|
}
|
|
51
54
|
function IncidentResourceFromJSON(json) {
|
|
@@ -68,6 +71,7 @@ function IncidentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
71
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
69
72
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
70
73
|
'fields': json['fields'],
|
|
74
|
+
'fieldAudits': (json['fieldAudits'] == null ? null : json['fieldAudits'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceFromJSON)),
|
|
71
75
|
};
|
|
72
76
|
}
|
|
73
77
|
function IncidentResourceToJSON(json) {
|
|
@@ -92,5 +96,6 @@ function IncidentResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
92
96
|
'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
93
97
|
'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
94
98
|
'fields': value['fields'],
|
|
99
|
+
'fieldAudits': (value['fieldAudits'] == null ? null : value['fieldAudits'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceToJSON)),
|
|
95
100
|
};
|
|
96
101
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import type { UserLiteResource } from './UserLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentVersionResource
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentVersionResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof IncidentVersionResource
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof IncidentVersionResource
|
|
29
|
+
*/
|
|
30
|
+
versionNumber: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {UserLiteResource}
|
|
34
|
+
* @memberof IncidentVersionResource
|
|
35
|
+
*/
|
|
36
|
+
user: UserLiteResource | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<boolean>}
|
|
40
|
+
* @memberof IncidentVersionResource
|
|
41
|
+
*/
|
|
42
|
+
fieldData: Array<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof IncidentVersionResource
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the IncidentVersionResource interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfIncidentVersionResource(value: object): value is IncidentVersionResource;
|
|
54
|
+
export declare function IncidentVersionResourceFromJSON(json: any): IncidentVersionResource;
|
|
55
|
+
export declare function IncidentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResource;
|
|
56
|
+
export declare function IncidentVersionResourceToJSON(json: any): IncidentVersionResource;
|
|
57
|
+
export declare function IncidentVersionResourceToJSONTyped(value?: IncidentVersionResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.instanceOfIncidentVersionResource = instanceOfIncidentVersionResource;
|
|
17
|
+
exports.IncidentVersionResourceFromJSON = IncidentVersionResourceFromJSON;
|
|
18
|
+
exports.IncidentVersionResourceFromJSONTyped = IncidentVersionResourceFromJSONTyped;
|
|
19
|
+
exports.IncidentVersionResourceToJSON = IncidentVersionResourceToJSON;
|
|
20
|
+
exports.IncidentVersionResourceToJSONTyped = IncidentVersionResourceToJSONTyped;
|
|
21
|
+
var UserLiteResource_1 = require("./UserLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentVersionResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentVersionResource(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('fieldData' in value) || value['fieldData'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function IncidentVersionResourceFromJSON(json) {
|
|
39
|
+
return IncidentVersionResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function IncidentVersionResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'versionNumber': json['versionNumber'],
|
|
48
|
+
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
49
|
+
'fieldData': json['fieldData'],
|
|
50
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function IncidentVersionResourceToJSON(json) {
|
|
54
|
+
return IncidentVersionResourceToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function IncidentVersionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'versionNumber': value['versionNumber'],
|
|
64
|
+
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
65
|
+
'fieldData': value['fieldData'],
|
|
66
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { IncidentVersionResource } from './IncidentVersionResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentVersionResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentVersionResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<IncidentVersionResource>}
|
|
22
|
+
* @memberof IncidentVersionResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<IncidentVersionResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IncidentVersionResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfIncidentVersionResourceArrayResponse(value: object): value is IncidentVersionResourceArrayResponse;
|
|
30
|
+
export declare function IncidentVersionResourceArrayResponseFromJSON(json: any): IncidentVersionResourceArrayResponse;
|
|
31
|
+
export declare function IncidentVersionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResourceArrayResponse;
|
|
32
|
+
export declare function IncidentVersionResourceArrayResponseToJSON(json: any): IncidentVersionResourceArrayResponse;
|
|
33
|
+
export declare function IncidentVersionResourceArrayResponseToJSONTyped(value?: IncidentVersionResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfIncidentVersionResourceArrayResponse = instanceOfIncidentVersionResourceArrayResponse;
|
|
17
|
+
exports.IncidentVersionResourceArrayResponseFromJSON = IncidentVersionResourceArrayResponseFromJSON;
|
|
18
|
+
exports.IncidentVersionResourceArrayResponseFromJSONTyped = IncidentVersionResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.IncidentVersionResourceArrayResponseToJSON = IncidentVersionResourceArrayResponseToJSON;
|
|
20
|
+
exports.IncidentVersionResourceArrayResponseToJSONTyped = IncidentVersionResourceArrayResponseToJSONTyped;
|
|
21
|
+
var IncidentVersionResource_1 = require("./IncidentVersionResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentVersionResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentVersionResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IncidentVersionResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return IncidentVersionResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IncidentVersionResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(IncidentVersionResource_1.IncidentVersionResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function IncidentVersionResourceArrayResponseToJSON(json) {
|
|
40
|
+
return IncidentVersionResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function IncidentVersionResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(IncidentVersionResource_1.IncidentVersionResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 IncidentsUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsUpdateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof IncidentsUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
fields: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIncidentsUpdateRequest(value: object): value is IncidentsUpdateRequest;
|
|
29
|
+
export declare function IncidentsUpdateRequestFromJSON(json: any): IncidentsUpdateRequest;
|
|
30
|
+
export declare function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateRequest;
|
|
31
|
+
export declare function IncidentsUpdateRequestToJSON(json: any): IncidentsUpdateRequest;
|
|
32
|
+
export declare function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfIncidentsUpdateRequest = instanceOfIncidentsUpdateRequest;
|
|
17
|
+
exports.IncidentsUpdateRequestFromJSON = IncidentsUpdateRequestFromJSON;
|
|
18
|
+
exports.IncidentsUpdateRequestFromJSONTyped = IncidentsUpdateRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsUpdateRequestToJSON = IncidentsUpdateRequestToJSON;
|
|
20
|
+
exports.IncidentsUpdateRequestToJSONTyped = IncidentsUpdateRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsUpdateRequest(value) {
|
|
25
|
+
if (!('fields' in value) || value['fields'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function IncidentsUpdateRequestFromJSON(json) {
|
|
30
|
+
return IncidentsUpdateRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function IncidentsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'fields': json['fields'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function IncidentsUpdateRequestToJSON(json) {
|
|
41
|
+
return IncidentsUpdateRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function IncidentsUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'fields': value['fields'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -34,8 +34,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
38
|
-
return false;
|
|
39
37
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
40
38
|
return false;
|
|
41
39
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -81,7 +79,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
81
79
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
82
80
|
'shiftLength': json['shiftLength'],
|
|
83
81
|
'signOffStatus': json['signOffStatus'],
|
|
84
|
-
'badgeNumber': json['badgeNumber'],
|
|
82
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
85
83
|
'licenceNumber': json['licenceNumber'],
|
|
86
84
|
'licenceFirstName': json['licenceFirstName'],
|
|
87
85
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -50,6 +50,8 @@ function instanceOfRegisterResource(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
54
|
+
return false;
|
|
53
55
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
54
56
|
return false;
|
|
55
57
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -84,7 +86,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
84
86
|
'firstAidImage': json['firstAidImage'],
|
|
85
87
|
'signOnLat': json['signOnLat'],
|
|
86
88
|
'signOnLong': json['signOnLong'],
|
|
87
|
-
'signOffLat': json['signOffLat']
|
|
89
|
+
'signOffLat': json['signOffLat'],
|
|
88
90
|
'signOffLong': json['signOffLong'],
|
|
89
91
|
'licenceNumber': json['licenceNumber'],
|
|
90
92
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -30,8 +30,6 @@ 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;
|
|
35
33
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -54,7 +52,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
52
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
55
53
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
56
54
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
57
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
55
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
58
56
|
'isCompliant': json['isCompliant'],
|
|
59
57
|
'isComplete': json['isComplete'],
|
|
60
58
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -65,6 +63,7 @@ function RosterListResourceToJSON(json) {
|
|
|
65
63
|
return RosterListResourceToJSONTyped(json, false);
|
|
66
64
|
}
|
|
67
65
|
function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
var _a;
|
|
68
67
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
68
|
if (value == null) {
|
|
70
69
|
return value;
|
|
@@ -74,7 +73,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
73
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
75
74
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
76
75
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
77
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
76
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
78
77
|
'isCompliant': value['isCompliant'],
|
|
79
78
|
'isComplete': value['isComplete'],
|
|
80
79
|
'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
|
}
|
|
@@ -33,8 +33,6 @@ 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;
|
|
38
36
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
39
37
|
return false;
|
|
40
38
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -58,7 +56,7 @@ function RosterWithRegistersResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
56
|
'state': json['state'],
|
|
59
57
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
60
58
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
61
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
59
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
62
60
|
'isCompliant': json['isCompliant'],
|
|
63
61
|
'isComplete': json['isComplete'],
|
|
64
62
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -69,6 +67,7 @@ function RosterWithRegistersResourceToJSON(json) {
|
|
|
69
67
|
return RosterWithRegistersResourceToJSONTyped(json, false);
|
|
70
68
|
}
|
|
71
69
|
function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
+
var _a;
|
|
72
71
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
73
72
|
if (value == null) {
|
|
74
73
|
return value;
|
|
@@ -79,7 +78,7 @@ function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
78
|
'state': value['state'],
|
|
80
79
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
81
80
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
82
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
81
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
83
82
|
'isCompliant': value['isCompliant'],
|
|
84
83
|
'isComplete': value['isComplete'],
|
|
85
84
|
'signOffStatus': value['signOffStatus'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,13 +9,18 @@ export * from './AssetResourceArrayResponse';
|
|
|
9
9
|
export * from './CurrentRegisterResource';
|
|
10
10
|
export * from './CurrentRegisterResourceArrayResponse';
|
|
11
11
|
export * from './GenericResponse';
|
|
12
|
+
export * from './IncidentFieldAuditResource';
|
|
13
|
+
export * from './IncidentFieldAuditResourceArrayResponse';
|
|
12
14
|
export * from './IncidentFieldSchemaResource';
|
|
13
15
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
14
16
|
export * from './IncidentFieldSchemasShowRequest';
|
|
15
17
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
16
18
|
export * from './IncidentResource';
|
|
17
19
|
export * from './IncidentResourceArrayResponse';
|
|
20
|
+
export * from './IncidentVersionResource';
|
|
21
|
+
export * from './IncidentVersionResourceArrayResponse';
|
|
18
22
|
export * from './IncidentsStoreRequest';
|
|
23
|
+
export * from './IncidentsUpdateRequest';
|
|
19
24
|
export * from './IndexMinimalUserRequest';
|
|
20
25
|
export * from './IndexUserRequest';
|
|
21
26
|
export * from './LicenceListResource';
|
package/dist/models/index.js
CHANGED
|
@@ -27,13 +27,18 @@ __exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
|
27
27
|
__exportStar(require("./CurrentRegisterResource"), exports);
|
|
28
28
|
__exportStar(require("./CurrentRegisterResourceArrayResponse"), exports);
|
|
29
29
|
__exportStar(require("./GenericResponse"), exports);
|
|
30
|
+
__exportStar(require("./IncidentFieldAuditResource"), exports);
|
|
31
|
+
__exportStar(require("./IncidentFieldAuditResourceArrayResponse"), exports);
|
|
30
32
|
__exportStar(require("./IncidentFieldSchemaResource"), exports);
|
|
31
33
|
__exportStar(require("./IncidentFieldSchemaResourceArrayResponse"), exports);
|
|
32
34
|
__exportStar(require("./IncidentFieldSchemasShowRequest"), exports);
|
|
33
35
|
__exportStar(require("./IncidentFieldsResourceArrayResponse"), exports);
|
|
34
36
|
__exportStar(require("./IncidentResource"), exports);
|
|
35
37
|
__exportStar(require("./IncidentResourceArrayResponse"), exports);
|
|
38
|
+
__exportStar(require("./IncidentVersionResource"), exports);
|
|
39
|
+
__exportStar(require("./IncidentVersionResourceArrayResponse"), exports);
|
|
36
40
|
__exportStar(require("./IncidentsStoreRequest"), exports);
|
|
41
|
+
__exportStar(require("./IncidentsUpdateRequest"), exports);
|
|
37
42
|
__exportStar(require("./IndexMinimalUserRequest"), exports);
|
|
38
43
|
__exportStar(require("./IndexUserRequest"), exports);
|
|
39
44
|
__exportStar(require("./LicenceListResource"), exports);
|
package/package.json
CHANGED