@digital8/security-registers-backend-ts-sdk 0.0.439 → 0.0.441
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 +12 -1
- package/dist/apis/GeneralApi.js +55 -0
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/AuthRegisterGuardRequest.d.ts +3 -3
- package/dist/models/AuthRegisterGuardRequest.js +4 -4
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +93 -0
- package/dist/models/{AuthRegisterGuardRequestLicencesInner.js → AuthRegisterGuardRequestLicence.js} +17 -17
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/MobileAppConfigRequest.d.ts +46 -0
- package/dist/models/MobileAppConfigRequest.js +63 -0
- package/dist/models/MobileAppConfigResource.d.ts +58 -0
- package/dist/models/MobileAppConfigResource.js +69 -0
- package/dist/models/MobileAppConfigResourceArrayResponse.d.ts +33 -0
- package/dist/models/MobileAppConfigResourceArrayResponse.js +50 -0
- package/dist/models/MobileInitResource.d.ts +7 -0
- package/dist/models/MobileInitResource.js +5 -0
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +2 -6
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +2 -6
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/UserResource.d.ts +0 -7
- package/dist/models/UserResource.js +0 -5
- package/dist/models/UsersCreateWithRoleRequest.d.ts +3 -3
- package/dist/models/UsersCreateWithRoleRequest.js +3 -3
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +93 -0
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +90 -0
- 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 +50 -0
- package/src/models/AssetResource.ts +2 -3
- package/src/models/AuthRegisterGuardRequest.ts +11 -11
- package/src/models/{AuthRegisterGuardRequestLicencesInner.ts → AuthRegisterGuardRequestLicence.ts} +29 -29
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/MobileAppConfigRequest.ts +86 -0
- package/src/models/MobileAppConfigResource.ts +103 -0
- package/src/models/MobileAppConfigResourceArrayResponse.ts +73 -0
- package/src/models/MobileInitResource.ts +16 -0
- package/src/models/RegisterListResource.ts +4 -6
- package/src/models/RegisterResource.ts +4 -6
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/UserResource.ts +0 -16
- package/src/models/UsersCreateWithRoleRequest.ts +10 -10
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +176 -0
- package/src/models/index.ts +5 -1
- package/dist/models/AuthRegisterGuardRequestLicencesInner.d.ts +0 -93
|
@@ -0,0 +1,69 @@
|
|
|
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.MobileAppConfigResourcePlatformEnum = void 0;
|
|
17
|
+
exports.instanceOfMobileAppConfigResource = instanceOfMobileAppConfigResource;
|
|
18
|
+
exports.MobileAppConfigResourceFromJSON = MobileAppConfigResourceFromJSON;
|
|
19
|
+
exports.MobileAppConfigResourceFromJSONTyped = MobileAppConfigResourceFromJSONTyped;
|
|
20
|
+
exports.MobileAppConfigResourceToJSON = MobileAppConfigResourceToJSON;
|
|
21
|
+
exports.MobileAppConfigResourceToJSONTyped = MobileAppConfigResourceToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.MobileAppConfigResourcePlatformEnum = {
|
|
26
|
+
Ios: 'ios',
|
|
27
|
+
Android: 'android'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the MobileAppConfigResource interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfMobileAppConfigResource(value) {
|
|
33
|
+
if (!('platform' in value) || value['platform'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('forceUpdate' in value) || value['forceUpdate'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('updateUrl' in value) || value['updateUrl'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function MobileAppConfigResourceFromJSON(json) {
|
|
42
|
+
return MobileAppConfigResourceFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function MobileAppConfigResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'platform': json['platform'],
|
|
50
|
+
'forceUpdate': json['forceUpdate'],
|
|
51
|
+
'updateUrl': json['updateUrl'],
|
|
52
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function MobileAppConfigResourceToJSON(json) {
|
|
56
|
+
return MobileAppConfigResourceToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function MobileAppConfigResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'platform': value['platform'],
|
|
65
|
+
'forceUpdate': value['forceUpdate'],
|
|
66
|
+
'updateUrl': value['updateUrl'],
|
|
67
|
+
'message': value['message'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -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 { MobileAppConfigResource } from './MobileAppConfigResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MobileAppConfigResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface MobileAppConfigResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<MobileAppConfigResource>}
|
|
22
|
+
* @memberof MobileAppConfigResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<MobileAppConfigResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the MobileAppConfigResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfMobileAppConfigResourceArrayResponse(value: object): value is MobileAppConfigResourceArrayResponse;
|
|
30
|
+
export declare function MobileAppConfigResourceArrayResponseFromJSON(json: any): MobileAppConfigResourceArrayResponse;
|
|
31
|
+
export declare function MobileAppConfigResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileAppConfigResourceArrayResponse;
|
|
32
|
+
export declare function MobileAppConfigResourceArrayResponseToJSON(json: any): MobileAppConfigResourceArrayResponse;
|
|
33
|
+
export declare function MobileAppConfigResourceArrayResponseToJSONTyped(value?: MobileAppConfigResourceArrayResponse | 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.instanceOfMobileAppConfigResourceArrayResponse = instanceOfMobileAppConfigResourceArrayResponse;
|
|
17
|
+
exports.MobileAppConfigResourceArrayResponseFromJSON = MobileAppConfigResourceArrayResponseFromJSON;
|
|
18
|
+
exports.MobileAppConfigResourceArrayResponseFromJSONTyped = MobileAppConfigResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.MobileAppConfigResourceArrayResponseToJSON = MobileAppConfigResourceArrayResponseToJSON;
|
|
20
|
+
exports.MobileAppConfigResourceArrayResponseToJSONTyped = MobileAppConfigResourceArrayResponseToJSONTyped;
|
|
21
|
+
var MobileAppConfigResource_1 = require("./MobileAppConfigResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the MobileAppConfigResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfMobileAppConfigResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function MobileAppConfigResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return MobileAppConfigResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function MobileAppConfigResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(MobileAppConfigResource_1.MobileAppConfigResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function MobileAppConfigResourceArrayResponseToJSON(json) {
|
|
40
|
+
return MobileAppConfigResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function MobileAppConfigResourceArrayResponseToJSONTyped(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(MobileAppConfigResource_1.MobileAppConfigResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { NotificationPreferenceResource } from './NotificationPreferenceResource';
|
|
12
13
|
import type { UserResource } from './UserResource';
|
|
13
14
|
import type { RosterListResource } from './RosterListResource';
|
|
14
15
|
/**
|
|
@@ -29,6 +30,12 @@ export interface MobileInitResource {
|
|
|
29
30
|
* @memberof MobileInitResource
|
|
30
31
|
*/
|
|
31
32
|
rosters: Array<RosterListResource> | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<NotificationPreferenceResource>}
|
|
36
|
+
* @memberof MobileInitResource
|
|
37
|
+
*/
|
|
38
|
+
notificationPreferences: Array<NotificationPreferenceResource> | null;
|
|
32
39
|
}
|
|
33
40
|
/**
|
|
34
41
|
* Check if a given object implements the MobileInitResource interface.
|
|
@@ -18,6 +18,7 @@ exports.MobileInitResourceFromJSON = MobileInitResourceFromJSON;
|
|
|
18
18
|
exports.MobileInitResourceFromJSONTyped = MobileInitResourceFromJSONTyped;
|
|
19
19
|
exports.MobileInitResourceToJSON = MobileInitResourceToJSON;
|
|
20
20
|
exports.MobileInitResourceToJSONTyped = MobileInitResourceToJSONTyped;
|
|
21
|
+
var NotificationPreferenceResource_1 = require("./NotificationPreferenceResource");
|
|
21
22
|
var UserResource_1 = require("./UserResource");
|
|
22
23
|
var RosterListResource_1 = require("./RosterListResource");
|
|
23
24
|
/**
|
|
@@ -28,6 +29,8 @@ function instanceOfMobileInitResource(value) {
|
|
|
28
29
|
return false;
|
|
29
30
|
if (!('rosters' in value) || value['rosters'] === undefined)
|
|
30
31
|
return false;
|
|
32
|
+
if (!('notificationPreferences' in value) || value['notificationPreferences'] === undefined)
|
|
33
|
+
return false;
|
|
31
34
|
return true;
|
|
32
35
|
}
|
|
33
36
|
function MobileInitResourceFromJSON(json) {
|
|
@@ -40,6 +43,7 @@ function MobileInitResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
43
|
return {
|
|
41
44
|
'user': (0, UserResource_1.UserResourceFromJSON)(json['user']),
|
|
42
45
|
'rosters': (json['rosters'] == null ? null : json['rosters'].map(RosterListResource_1.RosterListResourceFromJSON)),
|
|
46
|
+
'notificationPreferences': (json['notificationPreferences'] == null ? null : json['notificationPreferences'].map(NotificationPreferenceResource_1.NotificationPreferenceResourceFromJSON)),
|
|
43
47
|
};
|
|
44
48
|
}
|
|
45
49
|
function MobileInitResourceToJSON(json) {
|
|
@@ -53,5 +57,6 @@ function MobileInitResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
53
57
|
return {
|
|
54
58
|
'user': (0, UserResource_1.UserResourceToJSON)(value['user']),
|
|
55
59
|
'rosters': (value['rosters'] == null ? null : value['rosters'].map(RosterListResource_1.RosterListResourceToJSON)),
|
|
60
|
+
'notificationPreferences': (value['notificationPreferences'] == null ? null : value['notificationPreferences'].map(NotificationPreferenceResource_1.NotificationPreferenceResourceToJSON)),
|
|
56
61
|
};
|
|
57
62
|
}
|
|
@@ -64,7 +64,7 @@ export interface RegisterListResource {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof RegisterListResource
|
|
66
66
|
*/
|
|
67
|
-
badgeNumber
|
|
67
|
+
badgeNumber?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {Date}
|
|
@@ -154,7 +154,7 @@ export interface RegisterListResource {
|
|
|
154
154
|
* @type {number}
|
|
155
155
|
* @memberof RegisterListResource
|
|
156
156
|
*/
|
|
157
|
-
signOffLong
|
|
157
|
+
signOffLong?: number | null;
|
|
158
158
|
/**
|
|
159
159
|
*
|
|
160
160
|
* @type {boolean}
|
|
@@ -45,8 +45,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
45
45
|
return false;
|
|
46
46
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
47
47
|
return false;
|
|
48
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
49
|
-
return false;
|
|
50
48
|
if (!('rampReadAt' in value) || value['rampReadAt'] === undefined)
|
|
51
49
|
return false;
|
|
52
50
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -75,8 +73,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
75
73
|
return false;
|
|
76
74
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
77
75
|
return false;
|
|
78
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
79
|
-
return false;
|
|
80
76
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
81
77
|
return false;
|
|
82
78
|
return true;
|
|
@@ -96,7 +92,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
96
92
|
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
97
93
|
'shiftLength': json['shiftLength'],
|
|
98
94
|
'signOffStatus': json['signOffStatus'],
|
|
99
|
-
'badgeNumber': json['badgeNumber'],
|
|
95
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
100
96
|
'rampReadAt': (new Date(json['rampReadAt'])),
|
|
101
97
|
'licenceNumber': json['licenceNumber'],
|
|
102
98
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -111,7 +107,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
111
107
|
'signOnLat': json['signOnLat'],
|
|
112
108
|
'signOnLong': json['signOnLong'],
|
|
113
109
|
'signOffLat': json['signOffLat'],
|
|
114
|
-
'signOffLong': json['signOffLong'],
|
|
110
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
115
111
|
'hasIncidents': json['hasIncidents'],
|
|
116
112
|
};
|
|
117
113
|
}
|
|
@@ -106,13 +106,13 @@ export interface RegisterResource {
|
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof RegisterResource
|
|
108
108
|
*/
|
|
109
|
-
signOffLat
|
|
109
|
+
signOffLat?: number | null;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof RegisterResource
|
|
114
114
|
*/
|
|
115
|
-
signOffLong
|
|
115
|
+
signOffLong?: number | null;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {string}
|
|
@@ -59,10 +59,6 @@ function instanceOfRegisterResource(value) {
|
|
|
59
59
|
return false;
|
|
60
60
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
61
61
|
return false;
|
|
62
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
63
|
-
return false;
|
|
64
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
65
|
-
return false;
|
|
66
62
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
67
63
|
return false;
|
|
68
64
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -97,8 +93,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
93
|
'firstAidImage': json['firstAidImage'],
|
|
98
94
|
'signOnLat': json['signOnLat'],
|
|
99
95
|
'signOnLong': json['signOnLong'],
|
|
100
|
-
'signOffLat': json['signOffLat'],
|
|
101
|
-
'signOffLong': json['signOffLong'],
|
|
96
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
97
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
102
98
|
'licenceNumber': json['licenceNumber'],
|
|
103
99
|
'licenceExpiry': json['licenceExpiry'],
|
|
104
100
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -39,8 +39,6 @@ function instanceOfRosterListResource(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
43
|
-
return false;
|
|
44
42
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
45
43
|
return false;
|
|
46
44
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -65,7 +63,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
63
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
66
64
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
67
65
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
68
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
66
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
69
67
|
'isCompliant': json['isCompliant'],
|
|
70
68
|
'isComplete': json['isComplete'],
|
|
71
69
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -77,6 +75,7 @@ function RosterListResourceToJSON(json) {
|
|
|
77
75
|
return RosterListResourceToJSONTyped(json, false);
|
|
78
76
|
}
|
|
79
77
|
function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
78
|
+
var _a;
|
|
80
79
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
81
80
|
if (value == null) {
|
|
82
81
|
return value;
|
|
@@ -86,7 +85,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
86
85
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
87
86
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
88
87
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
89
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
88
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
90
89
|
'isCompliant': value['isCompliant'],
|
|
91
90
|
'isComplete': value['isComplete'],
|
|
92
91
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { LicenceResource } from './LicenceResource';
|
|
13
12
|
import type { AssetLiteResource } from './AssetLiteResource';
|
|
14
13
|
import type { CurrentRegisterResource } from './CurrentRegisterResource';
|
|
15
14
|
/**
|
|
@@ -84,12 +83,6 @@ export interface UserResource {
|
|
|
84
83
|
* @memberof UserResource
|
|
85
84
|
*/
|
|
86
85
|
profileImage: AssetLiteResource | null;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {Array<LicenceResource>}
|
|
90
|
-
* @memberof UserResource
|
|
91
|
-
*/
|
|
92
|
-
licences: Array<LicenceResource> | null;
|
|
93
86
|
/**
|
|
94
87
|
*
|
|
95
88
|
* @type {CurrentRegisterResource}
|
|
@@ -18,7 +18,6 @@ exports.UserResourceFromJSON = UserResourceFromJSON;
|
|
|
18
18
|
exports.UserResourceFromJSONTyped = UserResourceFromJSONTyped;
|
|
19
19
|
exports.UserResourceToJSON = UserResourceToJSON;
|
|
20
20
|
exports.UserResourceToJSONTyped = UserResourceToJSONTyped;
|
|
21
|
-
var LicenceResource_1 = require("./LicenceResource");
|
|
22
21
|
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
23
22
|
var CurrentRegisterResource_1 = require("./CurrentRegisterResource");
|
|
24
23
|
/**
|
|
@@ -47,8 +46,6 @@ function instanceOfUserResource(value) {
|
|
|
47
46
|
return false;
|
|
48
47
|
if (!('profileImage' in value) || value['profileImage'] === undefined)
|
|
49
48
|
return false;
|
|
50
|
-
if (!('licences' in value) || value['licences'] === undefined)
|
|
51
|
-
return false;
|
|
52
49
|
if (!('currentRegister' in value) || value['currentRegister'] === undefined)
|
|
53
50
|
return false;
|
|
54
51
|
return true;
|
|
@@ -72,7 +69,6 @@ function UserResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
69
|
'assets': (json['assets'] == null ? null : json['assets'].map(AssetLiteResource_1.AssetLiteResourceFromJSON)),
|
|
73
70
|
'signatureAsset': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['signatureAsset']),
|
|
74
71
|
'profileImage': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['profileImage']),
|
|
75
|
-
'licences': (json['licences'] == null ? null : json['licences'].map(LicenceResource_1.LicenceResourceFromJSON)),
|
|
76
72
|
'currentRegister': (0, CurrentRegisterResource_1.CurrentRegisterResourceFromJSON)(json['currentRegister']),
|
|
77
73
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
78
74
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -99,7 +95,6 @@ function UserResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
99
95
|
'assets': (value['assets'] == null ? null : value['assets'].map(AssetLiteResource_1.AssetLiteResourceToJSON)),
|
|
100
96
|
'signatureAsset': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['signatureAsset']),
|
|
101
97
|
'profileImage': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['profileImage']),
|
|
102
|
-
'licences': (value['licences'] == null ? null : value['licences'].map(LicenceResource_1.LicenceResourceToJSON)),
|
|
103
98
|
'currentRegister': (0, CurrentRegisterResource_1.CurrentRegisterResourceToJSON)(value['currentRegister']),
|
|
104
99
|
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
105
100
|
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { UsersCreateWithRoleRequestLicencesInner } from './UsersCreateWithRoleRequestLicencesInner';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -66,10 +66,10 @@ export interface UsersCreateWithRoleRequest {
|
|
|
66
66
|
securityCompanyIds?: Array<number>;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {Array<
|
|
69
|
+
* @type {Array<UsersCreateWithRoleRequestLicencesInner>}
|
|
70
70
|
* @memberof UsersCreateWithRoleRequest
|
|
71
71
|
*/
|
|
72
|
-
licences?: Array<
|
|
72
|
+
licences?: Array<UsersCreateWithRoleRequestLicencesInner>;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
@@ -19,7 +19,7 @@ exports.UsersCreateWithRoleRequestFromJSON = UsersCreateWithRoleRequestFromJSON;
|
|
|
19
19
|
exports.UsersCreateWithRoleRequestFromJSONTyped = UsersCreateWithRoleRequestFromJSONTyped;
|
|
20
20
|
exports.UsersCreateWithRoleRequestToJSON = UsersCreateWithRoleRequestToJSON;
|
|
21
21
|
exports.UsersCreateWithRoleRequestToJSONTyped = UsersCreateWithRoleRequestToJSONTyped;
|
|
22
|
-
var
|
|
22
|
+
var UsersCreateWithRoleRequestLicencesInner_1 = require("./UsersCreateWithRoleRequestLicencesInner");
|
|
23
23
|
/**
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
@@ -64,7 +64,7 @@ function UsersCreateWithRoleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'role': json['role'],
|
|
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
|
-
'licences': json['licences'] == null ? undefined : (json['licences'].map(
|
|
67
|
+
'licences': json['licences'] == null ? undefined : (json['licences'].map(UsersCreateWithRoleRequestLicencesInner_1.UsersCreateWithRoleRequestLicencesInnerFromJSON)),
|
|
68
68
|
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
@@ -85,7 +85,7 @@ function UsersCreateWithRoleRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
85
|
'role': value['role'],
|
|
86
86
|
'venue_ids': value['venueIds'],
|
|
87
87
|
'security_company_ids': value['securityCompanyIds'],
|
|
88
|
-
'licences': value['licences'] == null ? undefined : (value['licences'].map(
|
|
88
|
+
'licences': value['licences'] == null ? undefined : (value['licences'].map(UsersCreateWithRoleRequestLicencesInner_1.UsersCreateWithRoleRequestLicencesInnerToJSON)),
|
|
89
89
|
'signature_asset_id': value['signatureAssetId'],
|
|
90
90
|
};
|
|
91
91
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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 { FirstAidAsset } from './FirstAidAsset';
|
|
13
|
+
import type { BackAsset } from './BackAsset';
|
|
14
|
+
import type { FrontAsset } from './FrontAsset';
|
|
15
|
+
import type { RsaAsset } from './RsaAsset';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UsersCreateWithRoleRequestLicencesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface UsersCreateWithRoleRequestLicencesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
26
|
+
*/
|
|
27
|
+
state: UsersCreateWithRoleRequestLicencesInnerStateEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
32
|
+
*/
|
|
33
|
+
licenceNumber: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
38
|
+
*/
|
|
39
|
+
firstName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
44
|
+
*/
|
|
45
|
+
lastName: string;
|
|
46
|
+
/**
|
|
47
|
+
* ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
50
|
+
*/
|
|
51
|
+
expiryDate: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {FrontAsset}
|
|
55
|
+
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
56
|
+
*/
|
|
57
|
+
frontAsset: FrontAsset;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {BackAsset}
|
|
61
|
+
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
62
|
+
*/
|
|
63
|
+
backAsset?: BackAsset | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {RsaAsset}
|
|
67
|
+
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
68
|
+
*/
|
|
69
|
+
rsaAsset?: RsaAsset | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {FirstAidAsset}
|
|
73
|
+
* @memberof UsersCreateWithRoleRequestLicencesInner
|
|
74
|
+
*/
|
|
75
|
+
firstAidAsset?: FirstAidAsset | null;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* @export
|
|
79
|
+
*/
|
|
80
|
+
export declare const UsersCreateWithRoleRequestLicencesInnerStateEnum: {
|
|
81
|
+
readonly Qld: "QLD";
|
|
82
|
+
readonly Nsw: "NSW";
|
|
83
|
+
readonly Vic: "VIC";
|
|
84
|
+
};
|
|
85
|
+
export type UsersCreateWithRoleRequestLicencesInnerStateEnum = typeof UsersCreateWithRoleRequestLicencesInnerStateEnum[keyof typeof UsersCreateWithRoleRequestLicencesInnerStateEnum];
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the UsersCreateWithRoleRequestLicencesInner interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfUsersCreateWithRoleRequestLicencesInner(value: object): value is UsersCreateWithRoleRequestLicencesInner;
|
|
90
|
+
export declare function UsersCreateWithRoleRequestLicencesInnerFromJSON(json: any): UsersCreateWithRoleRequestLicencesInner;
|
|
91
|
+
export declare function UsersCreateWithRoleRequestLicencesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsersCreateWithRoleRequestLicencesInner;
|
|
92
|
+
export declare function UsersCreateWithRoleRequestLicencesInnerToJSON(json: any): UsersCreateWithRoleRequestLicencesInner;
|
|
93
|
+
export declare function UsersCreateWithRoleRequestLicencesInnerToJSONTyped(value?: UsersCreateWithRoleRequestLicencesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,90 @@
|
|
|
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.UsersCreateWithRoleRequestLicencesInnerStateEnum = void 0;
|
|
17
|
+
exports.instanceOfUsersCreateWithRoleRequestLicencesInner = instanceOfUsersCreateWithRoleRequestLicencesInner;
|
|
18
|
+
exports.UsersCreateWithRoleRequestLicencesInnerFromJSON = UsersCreateWithRoleRequestLicencesInnerFromJSON;
|
|
19
|
+
exports.UsersCreateWithRoleRequestLicencesInnerFromJSONTyped = UsersCreateWithRoleRequestLicencesInnerFromJSONTyped;
|
|
20
|
+
exports.UsersCreateWithRoleRequestLicencesInnerToJSON = UsersCreateWithRoleRequestLicencesInnerToJSON;
|
|
21
|
+
exports.UsersCreateWithRoleRequestLicencesInnerToJSONTyped = UsersCreateWithRoleRequestLicencesInnerToJSONTyped;
|
|
22
|
+
var FirstAidAsset_1 = require("./FirstAidAsset");
|
|
23
|
+
var BackAsset_1 = require("./BackAsset");
|
|
24
|
+
var FrontAsset_1 = require("./FrontAsset");
|
|
25
|
+
var RsaAsset_1 = require("./RsaAsset");
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
exports.UsersCreateWithRoleRequestLicencesInnerStateEnum = {
|
|
30
|
+
Qld: 'QLD',
|
|
31
|
+
Nsw: 'NSW',
|
|
32
|
+
Vic: 'VIC'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the UsersCreateWithRoleRequestLicencesInner interface.
|
|
36
|
+
*/
|
|
37
|
+
function instanceOfUsersCreateWithRoleRequestLicencesInner(value) {
|
|
38
|
+
if (!('state' in value) || value['state'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('expiryDate' in value) || value['expiryDate'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('frontAsset' in value) || value['frontAsset'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function UsersCreateWithRoleRequestLicencesInnerFromJSON(json) {
|
|
53
|
+
return UsersCreateWithRoleRequestLicencesInnerFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function UsersCreateWithRoleRequestLicencesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'state': json['state'],
|
|
61
|
+
'licenceNumber': json['licence_number'],
|
|
62
|
+
'firstName': json['first_name'],
|
|
63
|
+
'lastName': json['last_name'],
|
|
64
|
+
'expiryDate': json['expiry_date'],
|
|
65
|
+
'frontAsset': (0, FrontAsset_1.FrontAssetFromJSON)(json['front_asset']),
|
|
66
|
+
'backAsset': json['back_asset'] == null ? undefined : (0, BackAsset_1.BackAssetFromJSON)(json['back_asset']),
|
|
67
|
+
'rsaAsset': json['rsa_asset'] == null ? undefined : (0, RsaAsset_1.RsaAssetFromJSON)(json['rsa_asset']),
|
|
68
|
+
'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0, FirstAidAsset_1.FirstAidAssetFromJSON)(json['first_aid_asset']),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function UsersCreateWithRoleRequestLicencesInnerToJSON(json) {
|
|
72
|
+
return UsersCreateWithRoleRequestLicencesInnerToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function UsersCreateWithRoleRequestLicencesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
75
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'state': value['state'],
|
|
81
|
+
'licence_number': value['licenceNumber'],
|
|
82
|
+
'first_name': value['firstName'],
|
|
83
|
+
'last_name': value['lastName'],
|
|
84
|
+
'expiry_date': value['expiryDate'],
|
|
85
|
+
'front_asset': (0, FrontAsset_1.FrontAssetToJSON)(value['frontAsset']),
|
|
86
|
+
'back_asset': (0, BackAsset_1.BackAssetToJSON)(value['backAsset']),
|
|
87
|
+
'rsa_asset': (0, RsaAsset_1.RsaAssetToJSON)(value['rsaAsset']),
|
|
88
|
+
'first_aid_asset': (0, FirstAidAsset_1.FirstAidAssetToJSON)(value['firstAidAsset']),
|
|
89
|
+
};
|
|
90
|
+
}
|