@digital8/security-registers-backend-ts-sdk 0.0.191 → 0.0.193
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 +39 -1
- package/dist/apis/GeneralApi.js +215 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/NotificationPreferenceResource.d.ts +63 -0
- package/dist/models/NotificationPreferenceResource.js +67 -0
- package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +33 -0
- package/dist/models/NotificationPreferenceResourceArrayResponse.js +50 -0
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +55 -0
- package/dist/models/NotificationPreferencesStoreRequest.js +68 -0
- package/dist/models/NotificationTypeResource.d.ts +38 -0
- package/dist/models/NotificationTypeResource.js +55 -0
- package/dist/models/NotificationTypeResourceArrayResponse.d.ts +33 -0
- package/dist/models/NotificationTypeResourceArrayResponse.js +50 -0
- package/dist/models/RegisterListResource.d.ts +3 -3
- package/dist/models/RegisterListResource.js +3 -4
- package/dist/models/RegisterResource.d.ts +3 -3
- package/dist/models/RegisterResource.js +11 -9
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- 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 +179 -0
- package/src/models/AddressResource.ts +2 -3
- package/src/models/NotificationPreferenceResource.ts +116 -0
- package/src/models/NotificationPreferenceResourceArrayResponse.ts +73 -0
- package/src/models/NotificationPreferencesStoreRequest.ts +97 -0
- package/src/models/NotificationTypeResource.ts +75 -0
- package/src/models/NotificationTypeResourceArrayResponse.ts +73 -0
- package/src/models/RegisterListResource.ts +5 -6
- package/src/models/RegisterResource.ts +9 -8
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterResource.ts +4 -3
- package/src/models/index.ts +5 -0
|
@@ -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.NotificationPreferencesStoreRequestNotificationTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfNotificationPreferencesStoreRequest = instanceOfNotificationPreferencesStoreRequest;
|
|
18
|
+
exports.NotificationPreferencesStoreRequestFromJSON = NotificationPreferencesStoreRequestFromJSON;
|
|
19
|
+
exports.NotificationPreferencesStoreRequestFromJSONTyped = NotificationPreferencesStoreRequestFromJSONTyped;
|
|
20
|
+
exports.NotificationPreferencesStoreRequestToJSON = NotificationPreferencesStoreRequestToJSON;
|
|
21
|
+
exports.NotificationPreferencesStoreRequestToJSONTyped = NotificationPreferencesStoreRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.NotificationPreferencesStoreRequestNotificationTypeEnum = {
|
|
26
|
+
IncidentAdded: 'incident_added',
|
|
27
|
+
NonSignOff: 'non_sign_off',
|
|
28
|
+
NonSignOn: 'non_sign_on',
|
|
29
|
+
SignOnRejected: 'sign_on_rejected',
|
|
30
|
+
LicenceUpdated: 'licence_updated'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the NotificationPreferencesStoreRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfNotificationPreferencesStoreRequest(value) {
|
|
36
|
+
if (!('notificationType' in value) || value['notificationType'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function NotificationPreferencesStoreRequestFromJSON(json) {
|
|
43
|
+
return NotificationPreferencesStoreRequestFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function NotificationPreferencesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'notificationType': json['notification_type'],
|
|
51
|
+
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
52
|
+
'enabled': json['enabled'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function NotificationPreferencesStoreRequestToJSON(json) {
|
|
56
|
+
return NotificationPreferencesStoreRequestToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function NotificationPreferencesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'notification_type': value['notificationType'],
|
|
65
|
+
'venue_id': value['venueId'],
|
|
66
|
+
'enabled': value['enabled'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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 NotificationTypeResource
|
|
16
|
+
*/
|
|
17
|
+
export interface NotificationTypeResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotificationTypeResource
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NotificationTypeResource
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the NotificationTypeResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfNotificationTypeResource(value: object): value is NotificationTypeResource;
|
|
35
|
+
export declare function NotificationTypeResourceFromJSON(json: any): NotificationTypeResource;
|
|
36
|
+
export declare function NotificationTypeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResource;
|
|
37
|
+
export declare function NotificationTypeResourceToJSON(json: any): NotificationTypeResource;
|
|
38
|
+
export declare function NotificationTypeResourceToJSONTyped(value?: NotificationTypeResource | 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.instanceOfNotificationTypeResource = instanceOfNotificationTypeResource;
|
|
17
|
+
exports.NotificationTypeResourceFromJSON = NotificationTypeResourceFromJSON;
|
|
18
|
+
exports.NotificationTypeResourceFromJSONTyped = NotificationTypeResourceFromJSONTyped;
|
|
19
|
+
exports.NotificationTypeResourceToJSON = NotificationTypeResourceToJSON;
|
|
20
|
+
exports.NotificationTypeResourceToJSONTyped = NotificationTypeResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NotificationTypeResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfNotificationTypeResource(value) {
|
|
25
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function NotificationTypeResourceFromJSON(json) {
|
|
32
|
+
return NotificationTypeResourceFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function NotificationTypeResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'value': json['value'],
|
|
40
|
+
'label': json['label'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function NotificationTypeResourceToJSON(json) {
|
|
44
|
+
return NotificationTypeResourceToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function NotificationTypeResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'value': value['value'],
|
|
53
|
+
'label': value['label'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -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 { NotificationTypeResource } from './NotificationTypeResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface NotificationTypeResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface NotificationTypeResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<NotificationTypeResource>}
|
|
22
|
+
* @memberof NotificationTypeResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<NotificationTypeResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the NotificationTypeResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfNotificationTypeResourceArrayResponse(value: object): value is NotificationTypeResourceArrayResponse;
|
|
30
|
+
export declare function NotificationTypeResourceArrayResponseFromJSON(json: any): NotificationTypeResourceArrayResponse;
|
|
31
|
+
export declare function NotificationTypeResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResourceArrayResponse;
|
|
32
|
+
export declare function NotificationTypeResourceArrayResponseToJSON(json: any): NotificationTypeResourceArrayResponse;
|
|
33
|
+
export declare function NotificationTypeResourceArrayResponseToJSONTyped(value?: NotificationTypeResourceArrayResponse | 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.instanceOfNotificationTypeResourceArrayResponse = instanceOfNotificationTypeResourceArrayResponse;
|
|
17
|
+
exports.NotificationTypeResourceArrayResponseFromJSON = NotificationTypeResourceArrayResponseFromJSON;
|
|
18
|
+
exports.NotificationTypeResourceArrayResponseFromJSONTyped = NotificationTypeResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.NotificationTypeResourceArrayResponseToJSON = NotificationTypeResourceArrayResponseToJSON;
|
|
20
|
+
exports.NotificationTypeResourceArrayResponseToJSONTyped = NotificationTypeResourceArrayResponseToJSONTyped;
|
|
21
|
+
var NotificationTypeResource_1 = require("./NotificationTypeResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the NotificationTypeResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfNotificationTypeResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function NotificationTypeResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return NotificationTypeResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function NotificationTypeResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(NotificationTypeResource_1.NotificationTypeResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function NotificationTypeResourceArrayResponseToJSON(json) {
|
|
40
|
+
return NotificationTypeResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function NotificationTypeResourceArrayResponseToJSONTyped(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(NotificationTypeResource_1.NotificationTypeResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -46,13 +46,13 @@ export interface RegisterListResource {
|
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof RegisterListResource
|
|
48
48
|
*/
|
|
49
|
-
finishDateTime
|
|
49
|
+
finishDateTime?: Date | null;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {object}
|
|
53
53
|
* @memberof RegisterListResource
|
|
54
54
|
*/
|
|
55
|
-
shiftLength:
|
|
55
|
+
shiftLength: object;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {number}
|
|
@@ -30,8 +30,6 @@ function instanceOfRegisterListResource(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 (!('shiftLength' in value) || value['shiftLength'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
@@ -76,7 +74,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
74
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
77
75
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
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
|
'shiftLength': json['shiftLength'],
|
|
81
79
|
'signOffStatus': json['signOffStatus'],
|
|
82
80
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -101,6 +99,7 @@ function RegisterListResourceToJSON(json) {
|
|
|
101
99
|
return RegisterListResourceToJSONTyped(json, false);
|
|
102
100
|
}
|
|
103
101
|
function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
102
|
+
var _a;
|
|
104
103
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
105
104
|
if (value == null) {
|
|
106
105
|
return value;
|
|
@@ -110,7 +109,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
110
109
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
111
110
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
112
111
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
113
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
112
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
114
113
|
'shiftLength': value['shiftLength'],
|
|
115
114
|
'signOffStatus': value['signOffStatus'],
|
|
116
115
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -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;
|
|
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 (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
54
54
|
return false;
|
|
55
55
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -58,6 +58,8 @@ function instanceOfRegisterResource(value) {
|
|
|
58
58
|
return false;
|
|
59
59
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
60
60
|
return false;
|
|
61
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
62
|
+
return false;
|
|
61
63
|
return true;
|
|
62
64
|
}
|
|
63
65
|
function RegisterResourceFromJSON(json) {
|
|
@@ -72,7 +74,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
74
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
73
75
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
74
76
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
75
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
77
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
76
78
|
'signOffStatus': json['signOffStatus'],
|
|
77
79
|
'signOnSignature': json['signOnSignature'],
|
|
78
80
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -82,13 +84,13 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
84
|
'firstAidImage': json['firstAidImage'],
|
|
83
85
|
'signOnLat': json['signOnLat'],
|
|
84
86
|
'signOnLong': json['signOnLong'],
|
|
85
|
-
'signOffLat': json['signOffLat']
|
|
87
|
+
'signOffLat': json['signOffLat'],
|
|
86
88
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
87
89
|
'licenceNumber': json['licenceNumber'],
|
|
88
90
|
'licenceExpiry': json['licenceExpiry'],
|
|
89
91
|
'licenceFirstName': json['licenceFirstName'],
|
|
90
92
|
'licenceLastName': json['licenceLastName'],
|
|
91
|
-
'badgeNumber': json['badgeNumber']
|
|
93
|
+
'badgeNumber': json['badgeNumber'],
|
|
92
94
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
93
95
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
94
96
|
};
|
|
@@ -97,7 +99,7 @@ function RegisterResourceToJSON(json) {
|
|
|
97
99
|
return RegisterResourceToJSONTyped(json, false);
|
|
98
100
|
}
|
|
99
101
|
function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
100
|
-
var _a, _b;
|
|
102
|
+
var _a, _b, _c;
|
|
101
103
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
102
104
|
if (value == null) {
|
|
103
105
|
return value;
|
|
@@ -107,7 +109,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
107
109
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
108
110
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
109
111
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
110
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
112
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
111
113
|
'signOffStatus': value['signOffStatus'],
|
|
112
114
|
'signOnSignature': value['signOnSignature'],
|
|
113
115
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -124,7 +126,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
124
126
|
'licenceFirstName': value['licenceFirstName'],
|
|
125
127
|
'licenceLastName': value['licenceLastName'],
|
|
126
128
|
'badgeNumber': value['badgeNumber'],
|
|
127
|
-
'createdAt': value['createdAt'] === null ? null : ((
|
|
128
|
-
'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()),
|
|
129
131
|
};
|
|
130
132
|
}
|
|
@@ -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'],
|
|
@@ -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'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -25,6 +25,11 @@ export * from './LicencesStoreRequest';
|
|
|
25
25
|
export * from './LicencesUpdateRequest';
|
|
26
26
|
export * from './LicencesVerifyRequest';
|
|
27
27
|
export * from './LoginAuthRequest';
|
|
28
|
+
export * from './NotificationPreferenceResource';
|
|
29
|
+
export * from './NotificationPreferenceResourceArrayResponse';
|
|
30
|
+
export * from './NotificationPreferencesStoreRequest';
|
|
31
|
+
export * from './NotificationTypeResource';
|
|
32
|
+
export * from './NotificationTypeResourceArrayResponse';
|
|
28
33
|
export * from './PaginatedLicenceListResourceResponse';
|
|
29
34
|
export * from './PaginatedLicenceResourceResponse';
|
|
30
35
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -43,6 +43,11 @@ __exportStar(require("./LicencesStoreRequest"), exports);
|
|
|
43
43
|
__exportStar(require("./LicencesUpdateRequest"), exports);
|
|
44
44
|
__exportStar(require("./LicencesVerifyRequest"), exports);
|
|
45
45
|
__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);
|
|
46
51
|
__exportStar(require("./PaginatedLicenceListResourceResponse"), exports);
|
|
47
52
|
__exportStar(require("./PaginatedLicenceResourceResponse"), exports);
|
|
48
53
|
__exportStar(require("./PaginatedRegisterGroupedByRosterResourceResponse"), exports);
|
package/package.json
CHANGED