@digital8/security-registers-backend-ts-sdk 0.0.200 → 0.0.202
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 +3 -5
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +12 -39
- package/dist/apis/GeneralApi.js +55 -215
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/IncidentResource.d.ts +119 -0
- package/dist/models/IncidentResource.js +91 -0
- package/dist/models/IncidentResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsStoreRequest.d.ts +38 -0
- package/dist/models/IncidentsStoreRequest.js +55 -0
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +1 -3
- package/dist/models/RegisterResource.d.ts +3 -3
- package/dist/models/RegisterResource.js +9 -11
- 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 +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/index.d.ts +3 -5
- package/dist/models/index.js +3 -5
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +50 -179
- package/src/models/AddressResource.ts +2 -3
- package/src/models/IncidentResource.ts +204 -0
- package/src/models/IncidentResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsStoreRequest.ts +75 -0
- package/src/models/RegisterListResource.ts +2 -3
- package/src/models/RegisterResource.ts +8 -9
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/index.ts +3 -5
- package/dist/models/NotificationPreferenceResource.d.ts +0 -63
- package/dist/models/NotificationPreferenceResource.js +0 -67
- package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +0 -33
- package/dist/models/NotificationPreferenceResourceArrayResponse.js +0 -50
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +0 -55
- package/dist/models/NotificationPreferencesStoreRequest.js +0 -68
- package/dist/models/NotificationTypeResource.d.ts +0 -38
- package/dist/models/NotificationTypeResource.js +0 -55
- package/dist/models/NotificationTypeResourceArrayResponse.d.ts +0 -33
- package/dist/models/NotificationTypeResourceArrayResponse.js +0 -50
- package/src/models/NotificationPreferenceResource.ts +0 -116
- package/src/models/NotificationPreferenceResourceArrayResponse.ts +0 -73
- package/src/models/NotificationPreferencesStoreRequest.ts +0 -97
- package/src/models/NotificationTypeResource.ts +0 -75
- package/src/models/NotificationTypeResourceArrayResponse.ts +0 -73
|
@@ -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 { IncidentResource } from './IncidentResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<IncidentResource>}
|
|
22
|
+
* @memberof IncidentResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<IncidentResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IncidentResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfIncidentResourceArrayResponse(value: object): value is IncidentResourceArrayResponse;
|
|
30
|
+
export declare function IncidentResourceArrayResponseFromJSON(json: any): IncidentResourceArrayResponse;
|
|
31
|
+
export declare function IncidentResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentResourceArrayResponse;
|
|
32
|
+
export declare function IncidentResourceArrayResponseToJSON(json: any): IncidentResourceArrayResponse;
|
|
33
|
+
export declare function IncidentResourceArrayResponseToJSONTyped(value?: IncidentResourceArrayResponse | 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.instanceOfIncidentResourceArrayResponse = instanceOfIncidentResourceArrayResponse;
|
|
17
|
+
exports.IncidentResourceArrayResponseFromJSON = IncidentResourceArrayResponseFromJSON;
|
|
18
|
+
exports.IncidentResourceArrayResponseFromJSONTyped = IncidentResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.IncidentResourceArrayResponseToJSON = IncidentResourceArrayResponseToJSON;
|
|
20
|
+
exports.IncidentResourceArrayResponseToJSONTyped = IncidentResourceArrayResponseToJSONTyped;
|
|
21
|
+
var IncidentResource_1 = require("./IncidentResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IncidentResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return IncidentResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IncidentResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(IncidentResource_1.IncidentResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function IncidentResourceArrayResponseToJSON(json) {
|
|
40
|
+
return IncidentResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function IncidentResourceArrayResponseToJSONTyped(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(IncidentResource_1.IncidentResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 IncidentsStoreRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsStoreRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IncidentsStoreRequest
|
|
22
|
+
*/
|
|
23
|
+
venueId: number;
|
|
24
|
+
/**
|
|
25
|
+
* Dynamic fields keyed by section key. Non-repeatable sections are objects of field_key => value; repeatable sections are arrays of such objects. Shape is driven by the venue state's IncidentFieldSchema.
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof IncidentsStoreRequest
|
|
28
|
+
*/
|
|
29
|
+
fields: object;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfIncidentsStoreRequest(value: object): value is IncidentsStoreRequest;
|
|
35
|
+
export declare function IncidentsStoreRequestFromJSON(json: any): IncidentsStoreRequest;
|
|
36
|
+
export declare function IncidentsStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsStoreRequest;
|
|
37
|
+
export declare function IncidentsStoreRequestToJSON(json: any): IncidentsStoreRequest;
|
|
38
|
+
export declare function IncidentsStoreRequestToJSONTyped(value?: IncidentsStoreRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfIncidentsStoreRequest = instanceOfIncidentsStoreRequest;
|
|
17
|
+
exports.IncidentsStoreRequestFromJSON = IncidentsStoreRequestFromJSON;
|
|
18
|
+
exports.IncidentsStoreRequestFromJSONTyped = IncidentsStoreRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsStoreRequestToJSON = IncidentsStoreRequestToJSON;
|
|
20
|
+
exports.IncidentsStoreRequestToJSONTyped = IncidentsStoreRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsStoreRequest(value) {
|
|
25
|
+
if (!('venueId' in value) || value['venueId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('fields' in value) || value['fields'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function IncidentsStoreRequestFromJSON(json) {
|
|
32
|
+
return IncidentsStoreRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function IncidentsStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'venueId': json['venue_id'],
|
|
40
|
+
'fields': json['fields'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function IncidentsStoreRequestToJSON(json) {
|
|
44
|
+
return IncidentsStoreRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function IncidentsStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'venue_id': value['venueId'],
|
|
53
|
+
'fields': value['fields'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -60,8 +60,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
60
60
|
return false;
|
|
61
61
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
62
62
|
return false;
|
|
63
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
64
|
-
return false;
|
|
65
63
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
66
64
|
return false;
|
|
67
65
|
return true;
|
|
@@ -94,7 +92,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
92
|
'firstAid': json['firstAid'],
|
|
95
93
|
'signOnLat': json['signOnLat'],
|
|
96
94
|
'signOnLong': json['signOnLong'],
|
|
97
|
-
'signOffLat': json['signOffLat'],
|
|
95
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
98
96
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
99
97
|
'incidents': json['incidents'],
|
|
100
98
|
};
|
|
@@ -46,7 +46,7 @@ export interface RegisterResource {
|
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof RegisterResource
|
|
48
48
|
*/
|
|
49
|
-
finishDateTime
|
|
49
|
+
finishDateTime?: Date | null;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {number}
|
|
@@ -106,7 +106,7 @@ 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}
|
|
@@ -142,7 +142,7 @@ export interface RegisterResource {
|
|
|
142
142
|
* @type {string}
|
|
143
143
|
* @memberof RegisterResource
|
|
144
144
|
*/
|
|
145
|
-
badgeNumber
|
|
145
|
+
badgeNumber?: string | null;
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
148
|
* @type {Date}
|
|
@@ -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)
|
|
@@ -50,6 +48,8 @@ function instanceOfRegisterResource(value) {
|
|
|
50
48
|
return false;
|
|
51
49
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
52
50
|
return false;
|
|
51
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
52
|
+
return false;
|
|
53
53
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
54
54
|
return false;
|
|
55
55
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -60,8 +60,6 @@ function instanceOfRegisterResource(value) {
|
|
|
60
60
|
return false;
|
|
61
61
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
62
62
|
return false;
|
|
63
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
64
|
-
return false;
|
|
65
63
|
return true;
|
|
66
64
|
}
|
|
67
65
|
function RegisterResourceFromJSON(json) {
|
|
@@ -76,7 +74,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
74
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
77
75
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
78
76
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
79
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
77
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
80
78
|
'signOffStatus': json['signOffStatus'],
|
|
81
79
|
'signOnSignature': json['signOnSignature'],
|
|
82
80
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -86,13 +84,13 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
84
|
'firstAidImage': json['firstAidImage'],
|
|
87
85
|
'signOnLat': json['signOnLat'],
|
|
88
86
|
'signOnLong': json['signOnLong'],
|
|
89
|
-
'signOffLat': json['signOffLat']
|
|
87
|
+
'signOffLat': json['signOffLat'],
|
|
90
88
|
'signOffLong': json['signOffLong'],
|
|
91
89
|
'licenceNumber': json['licenceNumber'],
|
|
92
90
|
'licenceExpiry': json['licenceExpiry'],
|
|
93
91
|
'licenceFirstName': json['licenceFirstName'],
|
|
94
92
|
'licenceLastName': json['licenceLastName'],
|
|
95
|
-
'badgeNumber': json['badgeNumber'],
|
|
93
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
96
94
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
97
95
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
98
96
|
};
|
|
@@ -101,7 +99,7 @@ function RegisterResourceToJSON(json) {
|
|
|
101
99
|
return RegisterResourceToJSONTyped(json, false);
|
|
102
100
|
}
|
|
103
101
|
function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
104
|
-
var _a, _b;
|
|
102
|
+
var _a, _b, _c;
|
|
105
103
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
106
104
|
if (value == null) {
|
|
107
105
|
return value;
|
|
@@ -111,7 +109,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
111
109
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
112
110
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
113
111
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
114
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
112
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
115
113
|
'signOffStatus': value['signOffStatus'],
|
|
116
114
|
'signOnSignature': value['signOnSignature'],
|
|
117
115
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -128,7 +126,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
128
126
|
'licenceFirstName': value['licenceFirstName'],
|
|
129
127
|
'licenceLastName': value['licenceLastName'],
|
|
130
128
|
'badgeNumber': value['badgeNumber'],
|
|
131
|
-
'createdAt': value['createdAt'] === null ? null : ((
|
|
132
|
-
'updatedAt': value['updatedAt'] === null ? null : ((
|
|
129
|
+
'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
130
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
133
131
|
};
|
|
134
132
|
}
|
|
@@ -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,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,6 +25,8 @@ 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;
|
|
28
30
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -43,7 +45,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
45
|
return {
|
|
44
46
|
'id': json['id'] == null ? undefined : json['id'],
|
|
45
47
|
'name': json['name'],
|
|
46
|
-
'email': json['email']
|
|
48
|
+
'email': json['email'],
|
|
47
49
|
'isEnabled': json['isEnabled'],
|
|
48
50
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
49
51
|
'licenceNumber': json['licenceNumber'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -11,6 +11,9 @@ export * from './CurrentRegisterResourceArrayResponse';
|
|
|
11
11
|
export * from './GenericResponse';
|
|
12
12
|
export * from './IncidentFieldSchemaResource';
|
|
13
13
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
14
|
+
export * from './IncidentResource';
|
|
15
|
+
export * from './IncidentResourceArrayResponse';
|
|
16
|
+
export * from './IncidentsStoreRequest';
|
|
14
17
|
export * from './IndexMinimalUserRequest';
|
|
15
18
|
export * from './IndexUserRequest';
|
|
16
19
|
export * from './LicenceListResource';
|
|
@@ -25,11 +28,6 @@ export * from './LicencesStoreRequest';
|
|
|
25
28
|
export * from './LicencesUpdateRequest';
|
|
26
29
|
export * from './LicencesVerifyRequest';
|
|
27
30
|
export * from './LoginAuthRequest';
|
|
28
|
-
export * from './NotificationPreferenceResource';
|
|
29
|
-
export * from './NotificationPreferenceResourceArrayResponse';
|
|
30
|
-
export * from './NotificationPreferencesStoreRequest';
|
|
31
|
-
export * from './NotificationTypeResource';
|
|
32
|
-
export * from './NotificationTypeResourceArrayResponse';
|
|
33
31
|
export * from './PaginatedLicenceListResourceResponse';
|
|
34
32
|
export * from './PaginatedLicenceResourceResponse';
|
|
35
33
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -29,6 +29,9 @@ __exportStar(require("./CurrentRegisterResourceArrayResponse"), exports);
|
|
|
29
29
|
__exportStar(require("./GenericResponse"), exports);
|
|
30
30
|
__exportStar(require("./IncidentFieldSchemaResource"), exports);
|
|
31
31
|
__exportStar(require("./IncidentFieldSchemaResourceArrayResponse"), exports);
|
|
32
|
+
__exportStar(require("./IncidentResource"), exports);
|
|
33
|
+
__exportStar(require("./IncidentResourceArrayResponse"), exports);
|
|
34
|
+
__exportStar(require("./IncidentsStoreRequest"), exports);
|
|
32
35
|
__exportStar(require("./IndexMinimalUserRequest"), exports);
|
|
33
36
|
__exportStar(require("./IndexUserRequest"), exports);
|
|
34
37
|
__exportStar(require("./LicenceListResource"), exports);
|
|
@@ -43,11 +46,6 @@ __exportStar(require("./LicencesStoreRequest"), exports);
|
|
|
43
46
|
__exportStar(require("./LicencesUpdateRequest"), exports);
|
|
44
47
|
__exportStar(require("./LicencesVerifyRequest"), exports);
|
|
45
48
|
__exportStar(require("./LoginAuthRequest"), exports);
|
|
46
|
-
__exportStar(require("./NotificationPreferenceResource"), exports);
|
|
47
|
-
__exportStar(require("./NotificationPreferenceResourceArrayResponse"), exports);
|
|
48
|
-
__exportStar(require("./NotificationPreferencesStoreRequest"), exports);
|
|
49
|
-
__exportStar(require("./NotificationTypeResource"), exports);
|
|
50
|
-
__exportStar(require("./NotificationTypeResourceArrayResponse"), exports);
|
|
51
49
|
__exportStar(require("./PaginatedLicenceListResourceResponse"), exports);
|
|
52
50
|
__exportStar(require("./PaginatedLicenceResourceResponse"), exports);
|
|
53
51
|
__exportStar(require("./PaginatedRegisterGroupedByRosterResourceResponse"), exports);
|
package/package.json
CHANGED