@digital8/security-registers-backend-ts-sdk 0.0.199 → 0.0.200
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 +3 -1
- 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 +3 -1
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -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 +3 -2
- 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 +3 -2
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/SecurityCompanyResource.ts +2 -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
|
+
}
|
|
@@ -60,6 +60,8 @@ 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;
|
|
63
65
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
64
66
|
return false;
|
|
65
67
|
return true;
|
|
@@ -92,7 +94,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
92
94
|
'firstAid': json['firstAid'],
|
|
93
95
|
'signOnLat': json['signOnLat'],
|
|
94
96
|
'signOnLong': json['signOnLong'],
|
|
95
|
-
'signOffLat': json['signOffLat']
|
|
97
|
+
'signOffLat': json['signOffLat'],
|
|
96
98
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
97
99
|
'incidents': json['incidents'],
|
|
98
100
|
};
|
|
@@ -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'],
|
|
@@ -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'],
|
|
@@ -25,8 +25,6 @@ var AddressResource_1 = require("./AddressResource");
|
|
|
25
25
|
function instanceOfSecurityCompanyResource(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
-
return false;
|
|
30
28
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
31
29
|
return false;
|
|
32
30
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
43
|
return {
|
|
46
44
|
'id': json['id'] == null ? undefined : json['id'],
|
|
47
45
|
'name': json['name'],
|
|
48
|
-
'email': json['email'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
49
47
|
'isEnabled': json['isEnabled'],
|
|
50
48
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
49
|
'licenceNumber': json['licenceNumber'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -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
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -28,6 +28,10 @@ import type {
|
|
|
28
28
|
LicencesUpdateRequest,
|
|
29
29
|
LicencesVerifyRequest,
|
|
30
30
|
LoginAuthRequest,
|
|
31
|
+
NotificationPreferenceResource,
|
|
32
|
+
NotificationPreferenceResourceArrayResponse,
|
|
33
|
+
NotificationPreferencesStoreRequest,
|
|
34
|
+
NotificationTypeResourceArrayResponse,
|
|
31
35
|
PaginatedLicenceListResourceResponse,
|
|
32
36
|
PaginatedRegisterGroupedByRosterResourceResponse,
|
|
33
37
|
PaginatedRosterListResourceResponse,
|
|
@@ -107,6 +111,14 @@ import {
|
|
|
107
111
|
LicencesVerifyRequestToJSON,
|
|
108
112
|
LoginAuthRequestFromJSON,
|
|
109
113
|
LoginAuthRequestToJSON,
|
|
114
|
+
NotificationPreferenceResourceFromJSON,
|
|
115
|
+
NotificationPreferenceResourceToJSON,
|
|
116
|
+
NotificationPreferenceResourceArrayResponseFromJSON,
|
|
117
|
+
NotificationPreferenceResourceArrayResponseToJSON,
|
|
118
|
+
NotificationPreferencesStoreRequestFromJSON,
|
|
119
|
+
NotificationPreferencesStoreRequestToJSON,
|
|
120
|
+
NotificationTypeResourceArrayResponseFromJSON,
|
|
121
|
+
NotificationTypeResourceArrayResponseToJSON,
|
|
110
122
|
PaginatedLicenceListResourceResponseFromJSON,
|
|
111
123
|
PaginatedLicenceListResourceResponseToJSON,
|
|
112
124
|
PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
|
|
@@ -260,6 +272,14 @@ export interface LoginAuthOperationRequest {
|
|
|
260
272
|
loginAuthRequest?: LoginAuthRequest;
|
|
261
273
|
}
|
|
262
274
|
|
|
275
|
+
export interface NotificationPreferencesDeleteRequest {
|
|
276
|
+
notificationPreference: number;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export interface NotificationPreferencesStoreOperationRequest {
|
|
280
|
+
notificationPreferencesStoreRequest?: NotificationPreferencesStoreRequest;
|
|
281
|
+
}
|
|
282
|
+
|
|
263
283
|
export interface RegistersCreateOperationRequest {
|
|
264
284
|
registersCreateRequest?: RegistersCreateRequest;
|
|
265
285
|
}
|
|
@@ -1044,6 +1064,165 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1044
1064
|
return await response.value();
|
|
1045
1065
|
}
|
|
1046
1066
|
|
|
1067
|
+
/**
|
|
1068
|
+
* Auto-generated: notificationPreferences.delete
|
|
1069
|
+
*/
|
|
1070
|
+
async notificationPreferencesDeleteRaw(requestParameters: NotificationPreferencesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
1071
|
+
if (requestParameters['notificationPreference'] == null) {
|
|
1072
|
+
throw new runtime.RequiredError(
|
|
1073
|
+
'notificationPreference',
|
|
1074
|
+
'Required parameter "notificationPreference" was null or undefined when calling notificationPreferencesDelete().'
|
|
1075
|
+
);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
const queryParameters: any = {};
|
|
1079
|
+
|
|
1080
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1081
|
+
|
|
1082
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1083
|
+
const token = this.configuration.accessToken;
|
|
1084
|
+
const tokenString = await token("bearerAuth", []);
|
|
1085
|
+
|
|
1086
|
+
if (tokenString) {
|
|
1087
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
let urlPath = `/api/notification-preferences/{notificationPreference}/delete`;
|
|
1092
|
+
urlPath = urlPath.replace(`{${"notificationPreference"}}`, encodeURIComponent(String(requestParameters['notificationPreference'])));
|
|
1093
|
+
|
|
1094
|
+
const response = await this.request({
|
|
1095
|
+
path: urlPath,
|
|
1096
|
+
method: 'POST',
|
|
1097
|
+
headers: headerParameters,
|
|
1098
|
+
query: queryParameters,
|
|
1099
|
+
}, initOverrides);
|
|
1100
|
+
|
|
1101
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* Auto-generated: notificationPreferences.delete
|
|
1106
|
+
*/
|
|
1107
|
+
async notificationPreferencesDelete(requestParameters: NotificationPreferencesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
1108
|
+
const response = await this.notificationPreferencesDeleteRaw(requestParameters, initOverrides);
|
|
1109
|
+
return await response.value();
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* Auto-generated: notificationPreferences.list
|
|
1114
|
+
*/
|
|
1115
|
+
async notificationPreferencesListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationPreferenceResourceArrayResponse>> {
|
|
1116
|
+
const queryParameters: any = {};
|
|
1117
|
+
|
|
1118
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1119
|
+
|
|
1120
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1121
|
+
const token = this.configuration.accessToken;
|
|
1122
|
+
const tokenString = await token("bearerAuth", []);
|
|
1123
|
+
|
|
1124
|
+
if (tokenString) {
|
|
1125
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
let urlPath = `/api/notification-preferences/list`;
|
|
1130
|
+
|
|
1131
|
+
const response = await this.request({
|
|
1132
|
+
path: urlPath,
|
|
1133
|
+
method: 'POST',
|
|
1134
|
+
headers: headerParameters,
|
|
1135
|
+
query: queryParameters,
|
|
1136
|
+
}, initOverrides);
|
|
1137
|
+
|
|
1138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationPreferenceResourceArrayResponseFromJSON(jsonValue));
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* Auto-generated: notificationPreferences.list
|
|
1143
|
+
*/
|
|
1144
|
+
async notificationPreferencesList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationPreferenceResourceArrayResponse> {
|
|
1145
|
+
const response = await this.notificationPreferencesListRaw(initOverrides);
|
|
1146
|
+
return await response.value();
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Auto-generated: notificationPreferences.store
|
|
1151
|
+
*/
|
|
1152
|
+
async notificationPreferencesStoreRaw(requestParameters: NotificationPreferencesStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationPreferenceResource>> {
|
|
1153
|
+
const queryParameters: any = {};
|
|
1154
|
+
|
|
1155
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1156
|
+
|
|
1157
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1158
|
+
|
|
1159
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1160
|
+
const token = this.configuration.accessToken;
|
|
1161
|
+
const tokenString = await token("bearerAuth", []);
|
|
1162
|
+
|
|
1163
|
+
if (tokenString) {
|
|
1164
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
let urlPath = `/api/notification-preferences`;
|
|
1169
|
+
|
|
1170
|
+
const response = await this.request({
|
|
1171
|
+
path: urlPath,
|
|
1172
|
+
method: 'POST',
|
|
1173
|
+
headers: headerParameters,
|
|
1174
|
+
query: queryParameters,
|
|
1175
|
+
body: NotificationPreferencesStoreRequestToJSON(requestParameters['notificationPreferencesStoreRequest']),
|
|
1176
|
+
}, initOverrides);
|
|
1177
|
+
|
|
1178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationPreferenceResourceFromJSON(jsonValue));
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Auto-generated: notificationPreferences.store
|
|
1183
|
+
*/
|
|
1184
|
+
async notificationPreferencesStore(requestParameters: NotificationPreferencesStoreOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationPreferenceResource> {
|
|
1185
|
+
const response = await this.notificationPreferencesStoreRaw(requestParameters, initOverrides);
|
|
1186
|
+
return await response.value();
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* Auto-generated: notificationTypes.list
|
|
1191
|
+
*/
|
|
1192
|
+
async notificationTypesListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationTypeResourceArrayResponse>> {
|
|
1193
|
+
const queryParameters: any = {};
|
|
1194
|
+
|
|
1195
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1196
|
+
|
|
1197
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1198
|
+
const token = this.configuration.accessToken;
|
|
1199
|
+
const tokenString = await token("bearerAuth", []);
|
|
1200
|
+
|
|
1201
|
+
if (tokenString) {
|
|
1202
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
let urlPath = `/api/notification-types/list`;
|
|
1207
|
+
|
|
1208
|
+
const response = await this.request({
|
|
1209
|
+
path: urlPath,
|
|
1210
|
+
method: 'POST',
|
|
1211
|
+
headers: headerParameters,
|
|
1212
|
+
query: queryParameters,
|
|
1213
|
+
}, initOverrides);
|
|
1214
|
+
|
|
1215
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationTypeResourceArrayResponseFromJSON(jsonValue));
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* Auto-generated: notificationTypes.list
|
|
1220
|
+
*/
|
|
1221
|
+
async notificationTypesList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationTypeResourceArrayResponse> {
|
|
1222
|
+
const response = await this.notificationTypesListRaw(initOverrides);
|
|
1223
|
+
return await response.value();
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1047
1226
|
/**
|
|
1048
1227
|
* Auto-generated: registers.create
|
|
1049
1228
|
*/
|
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,6 +80,7 @@ export interface AddressResource {
|
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
83
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
84
85
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
85
86
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
101
102
|
|
|
102
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
104
|
'addressLine1': json['addressLine1'],
|
|
104
|
-
'addressLine2': json['addressLine2']
|
|
105
|
+
'addressLine2': json['addressLine2'],
|
|
105
106
|
'suburb': json['suburb'],
|
|
106
107
|
'city': json['city'],
|
|
107
108
|
'state': json['state'],
|