@digital8/security-registers-backend-ts-sdk 0.0.195 → 0.0.197
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 -1
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +29 -13
- package/dist/apis/GeneralApi.js +123 -19
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- 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 +1 -1
- package/dist/models/RegisterListResource.js +1 -3
- package/dist/models/RegistersUpdateRequest.d.ts +0 -12
- package/dist/models/RegistersUpdateRequest.js +0 -4
- 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 +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/UpdateUserRequest.d.ts +0 -6
- package/dist/models/UpdateUserRequest.js +0 -2
- package/dist/models/UserLiteResource.d.ts +0 -7
- package/dist/models/UserLiteResource.js +0 -5
- package/dist/models/UserResource.d.ts +0 -6
- package/dist/models/UserResource.js +0 -4
- package/dist/models/UsersCreateWithRoleRequest.d.ts +0 -6
- package/dist/models/UsersCreateWithRoleRequest.js +0 -2
- package/dist/models/index.d.ts +5 -1
- package/dist/models/index.js +5 -1
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +112 -29
- package/src/models/AssetResource.ts +3 -2
- 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 +2 -3
- package/src/models/RegistersUpdateRequest.ts +0 -16
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/UpdateUserRequest.ts +0 -8
- package/src/models/UserLiteResource.ts +0 -17
- package/src/models/UserResource.ts +0 -9
- package/src/models/UsersCreateWithRoleRequest.ts +0 -8
- package/src/models/index.ts +5 -1
- package/dist/models/RegistersCreateRequest.d.ts +0 -98
- package/dist/models/RegistersCreateRequest.js +0 -83
- package/src/models/RegistersCreateRequest.ts +0 -159
|
@@ -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
|
+
}
|
|
@@ -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 (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
66
64
|
return false;
|
|
67
65
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
@@ -96,7 +94,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
96
94
|
'firstAid': json['firstAid'],
|
|
97
95
|
'signOnLat': json['signOnLat'],
|
|
98
96
|
'signOnLong': json['signOnLong'],
|
|
99
|
-
'signOffLat': json['signOffLat'],
|
|
97
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
100
98
|
'signOffLong': json['signOffLong'],
|
|
101
99
|
'incidents': json['incidents'],
|
|
102
100
|
};
|
|
@@ -21,12 +21,6 @@ export interface RegistersUpdateRequest {
|
|
|
21
21
|
* @memberof RegistersUpdateRequest
|
|
22
22
|
*/
|
|
23
23
|
userId?: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof RegistersUpdateRequest
|
|
28
|
-
*/
|
|
29
|
-
venueId?: number;
|
|
30
24
|
/**
|
|
31
25
|
*
|
|
32
26
|
* @type {Date}
|
|
@@ -87,12 +81,6 @@ export interface RegistersUpdateRequest {
|
|
|
87
81
|
* @memberof RegistersUpdateRequest
|
|
88
82
|
*/
|
|
89
83
|
signOffLong?: number;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {boolean}
|
|
93
|
-
* @memberof RegistersUpdateRequest
|
|
94
|
-
*/
|
|
95
|
-
bypassActiveRegisterCheck?: boolean;
|
|
96
84
|
}
|
|
97
85
|
/**
|
|
98
86
|
* @export
|
|
@@ -42,7 +42,6 @@ function RegistersUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
45
|
-
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
46
45
|
'startDateTime': json['start_date_time'] == null ? undefined : (new Date(json['start_date_time'])),
|
|
47
46
|
'finishDateTime': json['finish_date_time'] == null ? undefined : (new Date(json['finish_date_time'])),
|
|
48
47
|
'signOffStatus': json['sign_off_status'] == null ? undefined : json['sign_off_status'],
|
|
@@ -53,7 +52,6 @@ function RegistersUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
52
|
'signOnLong': json['sign_on_long'] == null ? undefined : json['sign_on_long'],
|
|
54
53
|
'signOffLat': json['sign_off_lat'] == null ? undefined : json['sign_off_lat'],
|
|
55
54
|
'signOffLong': json['sign_off_long'] == null ? undefined : json['sign_off_long'],
|
|
56
|
-
'bypassActiveRegisterCheck': json['bypass_active_register_check'] == null ? undefined : json['bypass_active_register_check'],
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
57
|
function RegistersUpdateRequestToJSON(json) {
|
|
@@ -66,7 +64,6 @@ function RegistersUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
66
64
|
}
|
|
67
65
|
return {
|
|
68
66
|
'user_id': value['userId'],
|
|
69
|
-
'venue_id': value['venueId'],
|
|
70
67
|
'start_date_time': value['startDateTime'] == null ? undefined : ((value['startDateTime']).toISOString()),
|
|
71
68
|
'finish_date_time': value['finishDateTime'] == null ? undefined : ((value['finishDateTime']).toISOString()),
|
|
72
69
|
'sign_off_status': value['signOffStatus'],
|
|
@@ -77,6 +74,5 @@ function RegistersUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
77
74
|
'sign_on_long': value['signOnLong'],
|
|
78
75
|
'sign_off_lat': value['signOffLat'],
|
|
79
76
|
'sign_off_long': value['signOffLong'],
|
|
80
|
-
'bypass_active_register_check': value['bypassActiveRegisterCheck'],
|
|
81
77
|
};
|
|
82
78
|
}
|
|
@@ -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,6 +24,8 @@ 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;
|
|
27
29
|
return true;
|
|
28
30
|
}
|
|
29
31
|
function RosterLiteResourceFromJSON(json) {
|
|
@@ -36,14 +38,13 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
38
|
return {
|
|
37
39
|
'id': json['id'] == null ? undefined : json['id'],
|
|
38
40
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
39
|
-
'finishDateTime':
|
|
41
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
function RosterLiteResourceToJSON(json) {
|
|
43
45
|
return RosterLiteResourceToJSONTyped(json, false);
|
|
44
46
|
}
|
|
45
47
|
function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
-
var _a;
|
|
47
48
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
49
|
if (value == null) {
|
|
49
50
|
return value;
|
|
@@ -51,6 +52,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
52
|
return {
|
|
52
53
|
'id': value['id'],
|
|
53
54
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
54
|
-
'finishDateTime':
|
|
55
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
55
56
|
};
|
|
56
57
|
}
|
|
@@ -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'],
|
|
@@ -49,7 +49,6 @@ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'email': json['email'],
|
|
50
50
|
'mobile': json['mobile'],
|
|
51
51
|
'password': json['password'] == null ? undefined : json['password'],
|
|
52
|
-
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
53
52
|
'role': json['role'] == null ? undefined : json['role'],
|
|
54
53
|
};
|
|
55
54
|
}
|
|
@@ -67,7 +66,6 @@ function UpdateUserRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
66
|
'email': value['email'],
|
|
68
67
|
'mobile': value['mobile'],
|
|
69
68
|
'password': value['password'],
|
|
70
|
-
'signature_asset_id': value['signatureAssetId'],
|
|
71
69
|
'role': value['role'],
|
|
72
70
|
};
|
|
73
71
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AssetLiteResource } from './AssetLiteResource';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -40,12 +39,6 @@ export interface UserLiteResource {
|
|
|
40
39
|
* @memberof UserLiteResource
|
|
41
40
|
*/
|
|
42
41
|
fullName: string;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {AssetLiteResource}
|
|
46
|
-
* @memberof UserLiteResource
|
|
47
|
-
*/
|
|
48
|
-
signatureAsset: AssetLiteResource | null;
|
|
49
42
|
}
|
|
50
43
|
/**
|
|
51
44
|
* Check if a given object implements the UserLiteResource interface.
|
|
@@ -18,7 +18,6 @@ exports.UserLiteResourceFromJSON = UserLiteResourceFromJSON;
|
|
|
18
18
|
exports.UserLiteResourceFromJSONTyped = UserLiteResourceFromJSONTyped;
|
|
19
19
|
exports.UserLiteResourceToJSON = UserLiteResourceToJSON;
|
|
20
20
|
exports.UserLiteResourceToJSONTyped = UserLiteResourceToJSONTyped;
|
|
21
|
-
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the UserLiteResource interface.
|
|
24
23
|
*/
|
|
@@ -31,8 +30,6 @@ function instanceOfUserLiteResource(value) {
|
|
|
31
30
|
return false;
|
|
32
31
|
if (!('fullName' in value) || value['fullName'] === undefined)
|
|
33
32
|
return false;
|
|
34
|
-
if (!('signatureAsset' in value) || value['signatureAsset'] === undefined)
|
|
35
|
-
return false;
|
|
36
33
|
return true;
|
|
37
34
|
}
|
|
38
35
|
function UserLiteResourceFromJSON(json) {
|
|
@@ -47,7 +44,6 @@ function UserLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
44
|
'firstName': json['firstName'],
|
|
48
45
|
'lastName': json['lastName'],
|
|
49
46
|
'fullName': json['fullName'],
|
|
50
|
-
'signatureAsset': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['signatureAsset']),
|
|
51
47
|
};
|
|
52
48
|
}
|
|
53
49
|
function UserLiteResourceToJSON(json) {
|
|
@@ -63,6 +59,5 @@ function UserLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
63
59
|
'firstName': value['firstName'],
|
|
64
60
|
'lastName': value['lastName'],
|
|
65
61
|
'fullName': value['fullName'],
|
|
66
|
-
'signatureAsset': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['signatureAsset']),
|
|
67
62
|
};
|
|
68
63
|
}
|
|
@@ -70,12 +70,6 @@ export interface UserResource {
|
|
|
70
70
|
* @memberof UserResource
|
|
71
71
|
*/
|
|
72
72
|
assets: Array<AssetLiteResource> | null;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {AssetLiteResource}
|
|
76
|
-
* @memberof UserResource
|
|
77
|
-
*/
|
|
78
|
-
signatureAsset: AssetLiteResource | null;
|
|
79
73
|
/**
|
|
80
74
|
*
|
|
81
75
|
* @type {object}
|
|
@@ -41,8 +41,6 @@ function instanceOfUserResource(value) {
|
|
|
41
41
|
return false;
|
|
42
42
|
if (!('assets' in value) || value['assets'] === undefined)
|
|
43
43
|
return false;
|
|
44
|
-
if (!('signatureAsset' in value) || value['signatureAsset'] === undefined)
|
|
45
|
-
return false;
|
|
46
44
|
if (!('currentRegister' in value) || value['currentRegister'] === undefined)
|
|
47
45
|
return false;
|
|
48
46
|
return true;
|
|
@@ -64,7 +62,6 @@ function UserResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
62
|
'role': json['role'],
|
|
65
63
|
'hasVenues': json['hasVenues'],
|
|
66
64
|
'assets': (json['assets'] == null ? null : json['assets'].map(AssetLiteResource_1.AssetLiteResourceFromJSON)),
|
|
67
|
-
'signatureAsset': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['signatureAsset']),
|
|
68
65
|
'currentRegister': json['currentRegister'],
|
|
69
66
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
70
67
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -89,7 +86,6 @@ function UserResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
89
86
|
'role': value['role'],
|
|
90
87
|
'hasVenues': value['hasVenues'],
|
|
91
88
|
'assets': (value['assets'] == null ? null : value['assets'].map(AssetLiteResource_1.AssetLiteResourceToJSON)),
|
|
92
|
-
'signatureAsset': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['signatureAsset']),
|
|
93
89
|
'currentRegister': value['currentRegister'],
|
|
94
90
|
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
95
91
|
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
@@ -70,12 +70,6 @@ export interface UsersCreateWithRoleRequest {
|
|
|
70
70
|
* @memberof UsersCreateWithRoleRequest
|
|
71
71
|
*/
|
|
72
72
|
licences?: Array<UsersCreateWithRoleRequestLicencesInner>;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {number}
|
|
76
|
-
* @memberof UsersCreateWithRoleRequest
|
|
77
|
-
*/
|
|
78
|
-
signatureAssetId?: number;
|
|
79
73
|
}
|
|
80
74
|
/**
|
|
81
75
|
* @export
|
|
@@ -65,7 +65,6 @@ function UsersCreateWithRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'venueIds': json['venue_ids'] == null ? undefined : json['venue_ids'],
|
|
66
66
|
'securityCompanyIds': json['security_company_ids'] == null ? undefined : json['security_company_ids'],
|
|
67
67
|
'licences': json['licences'] == null ? undefined : (json['licences'].map(UsersCreateWithRoleRequestLicencesInner_1.UsersCreateWithRoleRequestLicencesInnerFromJSON)),
|
|
68
|
-
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
69
68
|
};
|
|
70
69
|
}
|
|
71
70
|
function UsersCreateWithRoleRequestToJSON(json) {
|
|
@@ -86,6 +85,5 @@ function UsersCreateWithRoleRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
86
85
|
'venue_ids': value['venueIds'],
|
|
87
86
|
'security_company_ids': value['securityCompanyIds'],
|
|
88
87
|
'licences': value['licences'] == null ? undefined : (value['licences'].map(UsersCreateWithRoleRequestLicencesInner_1.UsersCreateWithRoleRequestLicencesInnerToJSON)),
|
|
89
|
-
'signature_asset_id': value['signatureAssetId'],
|
|
90
88
|
};
|
|
91
89
|
}
|
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';
|
|
@@ -45,7 +50,6 @@ export * from './RegisterLiteResource';
|
|
|
45
50
|
export * from './RegisterLiteResourceArrayResponse';
|
|
46
51
|
export * from './RegisterResource';
|
|
47
52
|
export * from './RegisterResourceArrayResponse';
|
|
48
|
-
export * from './RegistersCreateRequest';
|
|
49
53
|
export * from './RegistersListAllRequest';
|
|
50
54
|
export * from './RegistersListRequest';
|
|
51
55
|
export * from './RegistersSignOffRequest';
|
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);
|
|
@@ -63,7 +68,6 @@ __exportStar(require("./RegisterLiteResource"), exports);
|
|
|
63
68
|
__exportStar(require("./RegisterLiteResourceArrayResponse"), exports);
|
|
64
69
|
__exportStar(require("./RegisterResource"), exports);
|
|
65
70
|
__exportStar(require("./RegisterResourceArrayResponse"), exports);
|
|
66
|
-
__exportStar(require("./RegistersCreateRequest"), exports);
|
|
67
71
|
__exportStar(require("./RegistersListAllRequest"), exports);
|
|
68
72
|
__exportStar(require("./RegistersListRequest"), exports);
|
|
69
73
|
__exportStar(require("./RegistersSignOffRequest"), exports);
|
package/package.json
CHANGED