@digital8/security-registers-backend-ts-sdk 0.0.317 → 0.0.319
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/README.md +2 -2
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -5
- package/dist/models/AuthRegisterGuardRequestLicence.js +1 -6
- package/dist/models/IncidentFieldSchemaResource.d.ts +0 -5
- package/dist/models/IncidentFieldSchemaResource.js +1 -6
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +0 -5
- package/dist/models/IncidentFieldSchemasShowRequest.js +1 -6
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/LicenceListResource.d.ts +0 -5
- package/dist/models/LicenceListResource.js +1 -6
- package/dist/models/LicenceLiteResource.d.ts +0 -5
- package/dist/models/LicenceLiteResource.js +1 -6
- package/dist/models/LicenceResource.d.ts +0 -5
- package/dist/models/LicenceResource.js +1 -6
- package/dist/models/LicencesStoreRequest.d.ts +0 -5
- package/dist/models/LicencesStoreRequest.js +1 -6
- package/dist/models/LicencesUpdateRequest.d.ts +0 -5
- package/dist/models/LicencesUpdateRequest.js +1 -6
- package/dist/models/LicencesVerifyRequest.d.ts +0 -5
- package/dist/models/LicencesVerifyRequest.js +1 -6
- package/dist/models/RegisterListResource.d.ts +3 -3
- package/dist/models/RegisterListResource.js +3 -4
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +1 -3
- 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 +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +0 -5
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +1 -6
- package/package.json +1 -1
- package/src/models/AuthRegisterGuardRequestLicence.ts +1 -6
- package/src/models/IncidentFieldSchemaResource.ts +1 -6
- package/src/models/IncidentFieldSchemasShowRequest.ts +1 -6
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/LicenceListResource.ts +1 -6
- package/src/models/LicenceLiteResource.ts +1 -6
- package/src/models/LicenceResource.ts +1 -6
- package/src/models/LicencesStoreRequest.ts +1 -6
- package/src/models/LicencesUpdateRequest.ts +1 -6
- package/src/models/LicencesVerifyRequest.ts +1 -6
- package/src/models/RegisterListResource.ts +5 -6
- package/src/models/RegisterResource.ts +2 -3
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +4 -3
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +1 -6
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.319
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.319 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -80,12 +80,7 @@ export interface AuthRegisterGuardRequestLicence {
|
|
|
80
80
|
export declare const AuthRegisterGuardRequestLicenceStateEnum: {
|
|
81
81
|
readonly Qld: "QLD";
|
|
82
82
|
readonly Nsw: "NSW";
|
|
83
|
-
readonly Act: "ACT";
|
|
84
83
|
readonly Vic: "VIC";
|
|
85
|
-
readonly Tas: "TAS";
|
|
86
|
-
readonly Sa: "SA";
|
|
87
|
-
readonly Wa: "WA";
|
|
88
|
-
readonly Nt: "NT";
|
|
89
84
|
};
|
|
90
85
|
export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
|
|
91
86
|
/**
|
|
@@ -29,12 +29,7 @@ var RsaAsset_1 = require("./RsaAsset");
|
|
|
29
29
|
exports.AuthRegisterGuardRequestLicenceStateEnum = {
|
|
30
30
|
Qld: 'QLD',
|
|
31
31
|
Nsw: 'NSW',
|
|
32
|
-
|
|
33
|
-
Vic: 'VIC',
|
|
34
|
-
Tas: 'TAS',
|
|
35
|
-
Sa: 'SA',
|
|
36
|
-
Wa: 'WA',
|
|
37
|
-
Nt: 'NT'
|
|
32
|
+
Vic: 'VIC'
|
|
38
33
|
};
|
|
39
34
|
/**
|
|
40
35
|
* Check if a given object implements the AuthRegisterGuardRequestLicence interface.
|
|
@@ -54,12 +54,7 @@ export interface IncidentFieldSchemaResource {
|
|
|
54
54
|
export declare const IncidentFieldSchemaResourceStateEnum: {
|
|
55
55
|
readonly Qld: "QLD";
|
|
56
56
|
readonly Nsw: "NSW";
|
|
57
|
-
readonly Act: "ACT";
|
|
58
57
|
readonly Vic: "VIC";
|
|
59
|
-
readonly Tas: "TAS";
|
|
60
|
-
readonly Sa: "SA";
|
|
61
|
-
readonly Wa: "WA";
|
|
62
|
-
readonly Nt: "NT";
|
|
63
58
|
};
|
|
64
59
|
export type IncidentFieldSchemaResourceStateEnum = typeof IncidentFieldSchemaResourceStateEnum[keyof typeof IncidentFieldSchemaResourceStateEnum];
|
|
65
60
|
/**
|
|
@@ -25,12 +25,7 @@ exports.IncidentFieldSchemaResourceToJSONTyped = IncidentFieldSchemaResourceToJS
|
|
|
25
25
|
exports.IncidentFieldSchemaResourceStateEnum = {
|
|
26
26
|
Qld: 'QLD',
|
|
27
27
|
Nsw: 'NSW',
|
|
28
|
-
|
|
29
|
-
Vic: 'VIC',
|
|
30
|
-
Tas: 'TAS',
|
|
31
|
-
Sa: 'SA',
|
|
32
|
-
Wa: 'WA',
|
|
33
|
-
Nt: 'NT'
|
|
28
|
+
Vic: 'VIC'
|
|
34
29
|
};
|
|
35
30
|
/**
|
|
36
31
|
* Check if a given object implements the IncidentFieldSchemaResource interface.
|
|
@@ -28,12 +28,7 @@ export interface IncidentFieldSchemasShowRequest {
|
|
|
28
28
|
export declare const IncidentFieldSchemasShowRequestStateEnum: {
|
|
29
29
|
readonly Qld: "QLD";
|
|
30
30
|
readonly Nsw: "NSW";
|
|
31
|
-
readonly Act: "ACT";
|
|
32
31
|
readonly Vic: "VIC";
|
|
33
|
-
readonly Tas: "TAS";
|
|
34
|
-
readonly Sa: "SA";
|
|
35
|
-
readonly Wa: "WA";
|
|
36
|
-
readonly Nt: "NT";
|
|
37
32
|
};
|
|
38
33
|
export type IncidentFieldSchemasShowRequestStateEnum = typeof IncidentFieldSchemasShowRequestStateEnum[keyof typeof IncidentFieldSchemasShowRequestStateEnum];
|
|
39
34
|
/**
|
|
@@ -25,12 +25,7 @@ exports.IncidentFieldSchemasShowRequestToJSONTyped = IncidentFieldSchemasShowReq
|
|
|
25
25
|
exports.IncidentFieldSchemasShowRequestStateEnum = {
|
|
26
26
|
Qld: 'QLD',
|
|
27
27
|
Nsw: 'NSW',
|
|
28
|
-
|
|
29
|
-
Vic: 'VIC',
|
|
30
|
-
Tas: 'TAS',
|
|
31
|
-
Sa: 'SA',
|
|
32
|
-
Wa: 'WA',
|
|
33
|
-
Nt: 'NT'
|
|
28
|
+
Vic: 'VIC'
|
|
34
29
|
};
|
|
35
30
|
/**
|
|
36
31
|
* Check if a given object implements the IncidentFieldSchemasShowRequest interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfIncidentImageResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('altText' in value) || value['altText'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -42,7 +44,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
return {
|
|
43
45
|
'fileId': json['file_id'],
|
|
44
46
|
'mimeType': json['mime_type'],
|
|
45
|
-
'altText': json['alt_text']
|
|
47
|
+
'altText': json['alt_text'],
|
|
46
48
|
'assetId': json['asset_id'],
|
|
47
49
|
'url': json['url'],
|
|
48
50
|
};
|
|
@@ -77,12 +77,7 @@ export interface LicenceListResource {
|
|
|
77
77
|
export declare const LicenceListResourceStateEnum: {
|
|
78
78
|
readonly Qld: "QLD";
|
|
79
79
|
readonly Nsw: "NSW";
|
|
80
|
-
readonly Act: "ACT";
|
|
81
80
|
readonly Vic: "VIC";
|
|
82
|
-
readonly Tas: "TAS";
|
|
83
|
-
readonly Sa: "SA";
|
|
84
|
-
readonly Wa: "WA";
|
|
85
|
-
readonly Nt: "NT";
|
|
86
81
|
};
|
|
87
82
|
export type LicenceListResourceStateEnum = typeof LicenceListResourceStateEnum[keyof typeof LicenceListResourceStateEnum];
|
|
88
83
|
/**
|
|
@@ -26,12 +26,7 @@ var UserRelationResource_1 = require("./UserRelationResource");
|
|
|
26
26
|
exports.LicenceListResourceStateEnum = {
|
|
27
27
|
Qld: 'QLD',
|
|
28
28
|
Nsw: 'NSW',
|
|
29
|
-
|
|
30
|
-
Vic: 'VIC',
|
|
31
|
-
Tas: 'TAS',
|
|
32
|
-
Sa: 'SA',
|
|
33
|
-
Wa: 'WA',
|
|
34
|
-
Nt: 'NT'
|
|
29
|
+
Vic: 'VIC'
|
|
35
30
|
};
|
|
36
31
|
/**
|
|
37
32
|
* Check if a given object implements the LicenceListResource interface.
|
|
@@ -40,12 +40,7 @@ export interface LicenceLiteResource {
|
|
|
40
40
|
export declare const LicenceLiteResourceStateEnum: {
|
|
41
41
|
readonly Qld: "QLD";
|
|
42
42
|
readonly Nsw: "NSW";
|
|
43
|
-
readonly Act: "ACT";
|
|
44
43
|
readonly Vic: "VIC";
|
|
45
|
-
readonly Tas: "TAS";
|
|
46
|
-
readonly Sa: "SA";
|
|
47
|
-
readonly Wa: "WA";
|
|
48
|
-
readonly Nt: "NT";
|
|
49
44
|
};
|
|
50
45
|
export type LicenceLiteResourceStateEnum = typeof LicenceLiteResourceStateEnum[keyof typeof LicenceLiteResourceStateEnum];
|
|
51
46
|
/**
|
|
@@ -25,12 +25,7 @@ exports.LicenceLiteResourceToJSONTyped = LicenceLiteResourceToJSONTyped;
|
|
|
25
25
|
exports.LicenceLiteResourceStateEnum = {
|
|
26
26
|
Qld: 'QLD',
|
|
27
27
|
Nsw: 'NSW',
|
|
28
|
-
|
|
29
|
-
Vic: 'VIC',
|
|
30
|
-
Tas: 'TAS',
|
|
31
|
-
Sa: 'SA',
|
|
32
|
-
Wa: 'WA',
|
|
33
|
-
Nt: 'NT'
|
|
28
|
+
Vic: 'VIC'
|
|
34
29
|
};
|
|
35
30
|
/**
|
|
36
31
|
* Check if a given object implements the LicenceLiteResource interface.
|
|
@@ -107,12 +107,7 @@ export interface LicenceResource {
|
|
|
107
107
|
export declare const LicenceResourceStateEnum: {
|
|
108
108
|
readonly Qld: "QLD";
|
|
109
109
|
readonly Nsw: "NSW";
|
|
110
|
-
readonly Act: "ACT";
|
|
111
110
|
readonly Vic: "VIC";
|
|
112
|
-
readonly Tas: "TAS";
|
|
113
|
-
readonly Sa: "SA";
|
|
114
|
-
readonly Wa: "WA";
|
|
115
|
-
readonly Nt: "NT";
|
|
116
111
|
};
|
|
117
112
|
export type LicenceResourceStateEnum = typeof LicenceResourceStateEnum[keyof typeof LicenceResourceStateEnum];
|
|
118
113
|
/**
|
|
@@ -26,12 +26,7 @@ var UserRelationResource_1 = require("./UserRelationResource");
|
|
|
26
26
|
exports.LicenceResourceStateEnum = {
|
|
27
27
|
Qld: 'QLD',
|
|
28
28
|
Nsw: 'NSW',
|
|
29
|
-
|
|
30
|
-
Vic: 'VIC',
|
|
31
|
-
Tas: 'TAS',
|
|
32
|
-
Sa: 'SA',
|
|
33
|
-
Wa: 'WA',
|
|
34
|
-
Nt: 'NT'
|
|
29
|
+
Vic: 'VIC'
|
|
35
30
|
};
|
|
36
31
|
/**
|
|
37
32
|
* Check if a given object implements the LicenceResource interface.
|
|
@@ -84,12 +84,7 @@ export interface LicencesStoreRequest {
|
|
|
84
84
|
export declare const LicencesStoreRequestStateEnum: {
|
|
85
85
|
readonly Qld: "QLD";
|
|
86
86
|
readonly Nsw: "NSW";
|
|
87
|
-
readonly Act: "ACT";
|
|
88
87
|
readonly Vic: "VIC";
|
|
89
|
-
readonly Tas: "TAS";
|
|
90
|
-
readonly Sa: "SA";
|
|
91
|
-
readonly Wa: "WA";
|
|
92
|
-
readonly Nt: "NT";
|
|
93
88
|
};
|
|
94
89
|
export type LicencesStoreRequestStateEnum = typeof LicencesStoreRequestStateEnum[keyof typeof LicencesStoreRequestStateEnum];
|
|
95
90
|
/**
|
|
@@ -27,12 +27,7 @@ var AuthRegisterGuardRequestProfileSignature_1 = require("./AuthRegisterGuardReq
|
|
|
27
27
|
exports.LicencesStoreRequestStateEnum = {
|
|
28
28
|
Qld: 'QLD',
|
|
29
29
|
Nsw: 'NSW',
|
|
30
|
-
|
|
31
|
-
Vic: 'VIC',
|
|
32
|
-
Tas: 'TAS',
|
|
33
|
-
Sa: 'SA',
|
|
34
|
-
Wa: 'WA',
|
|
35
|
-
Nt: 'NT'
|
|
30
|
+
Vic: 'VIC'
|
|
36
31
|
};
|
|
37
32
|
/**
|
|
38
33
|
* Check if a given object implements the LicencesStoreRequest interface.
|
|
@@ -77,12 +77,7 @@ export interface LicencesUpdateRequest {
|
|
|
77
77
|
export declare const LicencesUpdateRequestStateEnum: {
|
|
78
78
|
readonly Qld: "QLD";
|
|
79
79
|
readonly Nsw: "NSW";
|
|
80
|
-
readonly Act: "ACT";
|
|
81
80
|
readonly Vic: "VIC";
|
|
82
|
-
readonly Tas: "TAS";
|
|
83
|
-
readonly Sa: "SA";
|
|
84
|
-
readonly Wa: "WA";
|
|
85
|
-
readonly Nt: "NT";
|
|
86
81
|
};
|
|
87
82
|
export type LicencesUpdateRequestStateEnum = typeof LicencesUpdateRequestStateEnum[keyof typeof LicencesUpdateRequestStateEnum];
|
|
88
83
|
/**
|
|
@@ -26,12 +26,7 @@ var LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset")
|
|
|
26
26
|
exports.LicencesUpdateRequestStateEnum = {
|
|
27
27
|
Qld: 'QLD',
|
|
28
28
|
Nsw: 'NSW',
|
|
29
|
-
|
|
30
|
-
Vic: 'VIC',
|
|
31
|
-
Tas: 'TAS',
|
|
32
|
-
Sa: 'SA',
|
|
33
|
-
Wa: 'WA',
|
|
34
|
-
Nt: 'NT'
|
|
29
|
+
Vic: 'VIC'
|
|
35
30
|
};
|
|
36
31
|
/**
|
|
37
32
|
* Check if a given object implements the LicencesUpdateRequest interface.
|
|
@@ -52,12 +52,7 @@ export interface LicencesVerifyRequest {
|
|
|
52
52
|
export declare const LicencesVerifyRequestStateEnum: {
|
|
53
53
|
readonly Qld: "QLD";
|
|
54
54
|
readonly Nsw: "NSW";
|
|
55
|
-
readonly Act: "ACT";
|
|
56
55
|
readonly Vic: "VIC";
|
|
57
|
-
readonly Tas: "TAS";
|
|
58
|
-
readonly Sa: "SA";
|
|
59
|
-
readonly Wa: "WA";
|
|
60
|
-
readonly Nt: "NT";
|
|
61
56
|
};
|
|
62
57
|
export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEnum[keyof typeof LicencesVerifyRequestStateEnum];
|
|
63
58
|
/**
|
|
@@ -25,12 +25,7 @@ exports.LicencesVerifyRequestToJSONTyped = LicencesVerifyRequestToJSONTyped;
|
|
|
25
25
|
exports.LicencesVerifyRequestStateEnum = {
|
|
26
26
|
Qld: 'QLD',
|
|
27
27
|
Nsw: 'NSW',
|
|
28
|
-
|
|
29
|
-
Vic: 'VIC',
|
|
30
|
-
Tas: 'TAS',
|
|
31
|
-
Sa: 'SA',
|
|
32
|
-
Wa: 'WA',
|
|
33
|
-
Nt: 'NT'
|
|
28
|
+
Vic: 'VIC'
|
|
34
29
|
};
|
|
35
30
|
/**
|
|
36
31
|
* Check if a given object implements the LicencesVerifyRequest interface.
|
|
@@ -46,13 +46,13 @@ export interface RegisterListResource {
|
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof RegisterListResource
|
|
48
48
|
*/
|
|
49
|
-
finishDateTime
|
|
49
|
+
finishDateTime?: Date | null;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {object}
|
|
53
53
|
* @memberof RegisterListResource
|
|
54
54
|
*/
|
|
55
|
-
shiftLength:
|
|
55
|
+
shiftLength: object;
|
|
56
56
|
/**
|
|
57
57
|
*
|
|
58
58
|
* @type {number}
|
|
@@ -39,8 +39,6 @@ function instanceOfRegisterListResource(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 (!('shiftLength' in value) || value['shiftLength'] === undefined)
|
|
45
43
|
return false;
|
|
46
44
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
@@ -89,7 +87,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
89
87
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
90
88
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
91
89
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
92
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
90
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
93
91
|
'shiftLength': json['shiftLength'],
|
|
94
92
|
'signOffStatus': json['signOffStatus'],
|
|
95
93
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -114,6 +112,7 @@ function RegisterListResourceToJSON(json) {
|
|
|
114
112
|
return RegisterListResourceToJSONTyped(json, false);
|
|
115
113
|
}
|
|
116
114
|
function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
115
|
+
var _a;
|
|
117
116
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
118
117
|
if (value == null) {
|
|
119
118
|
return value;
|
|
@@ -123,7 +122,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
123
122
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
124
123
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
125
124
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
126
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
125
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
127
126
|
'shiftLength': value['shiftLength'],
|
|
128
127
|
'signOffStatus': value['signOffStatus'],
|
|
129
128
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -59,8 +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
62
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
65
63
|
return false;
|
|
66
64
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -93,7 +91,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
93
91
|
'firstAidImage': json['firstAidImage'],
|
|
94
92
|
'signOnLat': json['signOnLat'],
|
|
95
93
|
'signOnLong': json['signOnLong'],
|
|
96
|
-
'signOffLat': json['signOffLat'],
|
|
94
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
97
95
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
98
96
|
'licenceNumber': json['licenceNumber'],
|
|
99
97
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -39,6 +39,8 @@ 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;
|
|
42
44
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
43
45
|
return false;
|
|
44
46
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -63,7 +65,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
65
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
64
66
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
65
67
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
66
|
-
'finishDateTime':
|
|
68
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
67
69
|
'isCompliant': json['isCompliant'],
|
|
68
70
|
'isComplete': json['isComplete'],
|
|
69
71
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -75,7 +77,6 @@ function RosterListResourceToJSON(json) {
|
|
|
75
77
|
return RosterListResourceToJSONTyped(json, false);
|
|
76
78
|
}
|
|
77
79
|
function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
78
|
-
var _a;
|
|
79
80
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
80
81
|
if (value == null) {
|
|
81
82
|
return value;
|
|
@@ -85,7 +86,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
86
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
86
87
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
87
88
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
88
|
-
'finishDateTime':
|
|
89
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
89
90
|
'isCompliant': value['isCompliant'],
|
|
90
91
|
'isComplete': value['isComplete'],
|
|
91
92
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -24,8 +24,6 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfRosterLiteResource(value) {
|
|
25
25
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
function RosterLiteResourceFromJSON(json) {
|
|
@@ -38,13 +36,14 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return {
|
|
39
37
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
38
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
41
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
39
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
function RosterLiteResourceToJSON(json) {
|
|
45
43
|
return RosterLiteResourceToJSONTyped(json, false);
|
|
46
44
|
}
|
|
47
45
|
function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
var _a;
|
|
48
47
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
48
|
if (value == null) {
|
|
50
49
|
return value;
|
|
@@ -52,6 +51,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
51
|
return {
|
|
53
52
|
'id': value['id'],
|
|
54
53
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
55
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
54
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
56
55
|
};
|
|
57
56
|
}
|
|
@@ -40,6 +40,8 @@ function instanceOfRosterResource(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -62,7 +64,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
64
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
63
65
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
64
66
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
65
|
-
'finishDateTime':
|
|
67
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
66
68
|
'isCompliant': json['isCompliant'],
|
|
67
69
|
'isComplete': json['isComplete'],
|
|
68
70
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -73,7 +75,6 @@ function RosterResourceToJSON(json) {
|
|
|
73
75
|
return RosterResourceToJSONTyped(json, false);
|
|
74
76
|
}
|
|
75
77
|
function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
76
|
-
var _a;
|
|
77
78
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
78
79
|
if (value == null) {
|
|
79
80
|
return value;
|
|
@@ -83,7 +84,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
83
84
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
84
85
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
85
86
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
86
|
-
'finishDateTime':
|
|
87
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
87
88
|
'isCompliant': value['isCompliant'],
|
|
88
89
|
'isComplete': value['isComplete'],
|
|
89
90
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -80,12 +80,7 @@ export interface UsersCreateWithRoleRequestLicencesInner {
|
|
|
80
80
|
export declare const UsersCreateWithRoleRequestLicencesInnerStateEnum: {
|
|
81
81
|
readonly Qld: "QLD";
|
|
82
82
|
readonly Nsw: "NSW";
|
|
83
|
-
readonly Act: "ACT";
|
|
84
83
|
readonly Vic: "VIC";
|
|
85
|
-
readonly Tas: "TAS";
|
|
86
|
-
readonly Sa: "SA";
|
|
87
|
-
readonly Wa: "WA";
|
|
88
|
-
readonly Nt: "NT";
|
|
89
84
|
};
|
|
90
85
|
export type UsersCreateWithRoleRequestLicencesInnerStateEnum = typeof UsersCreateWithRoleRequestLicencesInnerStateEnum[keyof typeof UsersCreateWithRoleRequestLicencesInnerStateEnum];
|
|
91
86
|
/**
|
|
@@ -29,12 +29,7 @@ var RsaAsset_1 = require("./RsaAsset");
|
|
|
29
29
|
exports.UsersCreateWithRoleRequestLicencesInnerStateEnum = {
|
|
30
30
|
Qld: 'QLD',
|
|
31
31
|
Nsw: 'NSW',
|
|
32
|
-
|
|
33
|
-
Vic: 'VIC',
|
|
34
|
-
Tas: 'TAS',
|
|
35
|
-
Sa: 'SA',
|
|
36
|
-
Wa: 'WA',
|
|
37
|
-
Nt: 'NT'
|
|
32
|
+
Vic: 'VIC'
|
|
38
33
|
};
|
|
39
34
|
/**
|
|
40
35
|
* Check if a given object implements the UsersCreateWithRoleRequestLicencesInner interface.
|
package/package.json
CHANGED
|
@@ -111,12 +111,7 @@ export interface AuthRegisterGuardRequestLicence {
|
|
|
111
111
|
export const AuthRegisterGuardRequestLicenceStateEnum = {
|
|
112
112
|
Qld: 'QLD',
|
|
113
113
|
Nsw: 'NSW',
|
|
114
|
-
|
|
115
|
-
Vic: 'VIC',
|
|
116
|
-
Tas: 'TAS',
|
|
117
|
-
Sa: 'SA',
|
|
118
|
-
Wa: 'WA',
|
|
119
|
-
Nt: 'NT'
|
|
114
|
+
Vic: 'VIC'
|
|
120
115
|
} as const;
|
|
121
116
|
export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
|
|
122
117
|
|
|
@@ -58,12 +58,7 @@ export interface IncidentFieldSchemaResource {
|
|
|
58
58
|
export const IncidentFieldSchemaResourceStateEnum = {
|
|
59
59
|
Qld: 'QLD',
|
|
60
60
|
Nsw: 'NSW',
|
|
61
|
-
|
|
62
|
-
Vic: 'VIC',
|
|
63
|
-
Tas: 'TAS',
|
|
64
|
-
Sa: 'SA',
|
|
65
|
-
Wa: 'WA',
|
|
66
|
-
Nt: 'NT'
|
|
61
|
+
Vic: 'VIC'
|
|
67
62
|
} as const;
|
|
68
63
|
export type IncidentFieldSchemaResourceStateEnum = typeof IncidentFieldSchemaResourceStateEnum[keyof typeof IncidentFieldSchemaResourceStateEnum];
|
|
69
64
|
|
|
@@ -34,12 +34,7 @@ export interface IncidentFieldSchemasShowRequest {
|
|
|
34
34
|
export const IncidentFieldSchemasShowRequestStateEnum = {
|
|
35
35
|
Qld: 'QLD',
|
|
36
36
|
Nsw: 'NSW',
|
|
37
|
-
|
|
38
|
-
Vic: 'VIC',
|
|
39
|
-
Tas: 'TAS',
|
|
40
|
-
Sa: 'SA',
|
|
41
|
-
Wa: 'WA',
|
|
42
|
-
Nt: 'NT'
|
|
37
|
+
Vic: 'VIC'
|
|
43
38
|
} as const;
|
|
44
39
|
export type IncidentFieldSchemasShowRequestStateEnum = typeof IncidentFieldSchemasShowRequestStateEnum[keyof typeof IncidentFieldSchemasShowRequestStateEnum];
|
|
45
40
|
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,6 +57,7 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
60
61
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
61
62
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
62
63
|
return true;
|
|
@@ -74,7 +75,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
74
75
|
|
|
75
76
|
'fileId': json['file_id'],
|
|
76
77
|
'mimeType': json['mime_type'],
|
|
77
|
-
'altText': json['alt_text']
|
|
78
|
+
'altText': json['alt_text'],
|
|
78
79
|
'assetId': json['asset_id'],
|
|
79
80
|
'url': json['url'],
|
|
80
81
|
};
|
|
@@ -90,12 +90,7 @@ export interface LicenceListResource {
|
|
|
90
90
|
export const LicenceListResourceStateEnum = {
|
|
91
91
|
Qld: 'QLD',
|
|
92
92
|
Nsw: 'NSW',
|
|
93
|
-
|
|
94
|
-
Vic: 'VIC',
|
|
95
|
-
Tas: 'TAS',
|
|
96
|
-
Sa: 'SA',
|
|
97
|
-
Wa: 'WA',
|
|
98
|
-
Nt: 'NT'
|
|
93
|
+
Vic: 'VIC'
|
|
99
94
|
} as const;
|
|
100
95
|
export type LicenceListResourceStateEnum = typeof LicenceListResourceStateEnum[keyof typeof LicenceListResourceStateEnum];
|
|
101
96
|
|
|
@@ -46,12 +46,7 @@ export interface LicenceLiteResource {
|
|
|
46
46
|
export const LicenceLiteResourceStateEnum = {
|
|
47
47
|
Qld: 'QLD',
|
|
48
48
|
Nsw: 'NSW',
|
|
49
|
-
|
|
50
|
-
Vic: 'VIC',
|
|
51
|
-
Tas: 'TAS',
|
|
52
|
-
Sa: 'SA',
|
|
53
|
-
Wa: 'WA',
|
|
54
|
-
Nt: 'NT'
|
|
49
|
+
Vic: 'VIC'
|
|
55
50
|
} as const;
|
|
56
51
|
export type LicenceLiteResourceStateEnum = typeof LicenceLiteResourceStateEnum[keyof typeof LicenceLiteResourceStateEnum];
|
|
57
52
|
|
|
@@ -120,12 +120,7 @@ export interface LicenceResource {
|
|
|
120
120
|
export const LicenceResourceStateEnum = {
|
|
121
121
|
Qld: 'QLD',
|
|
122
122
|
Nsw: 'NSW',
|
|
123
|
-
|
|
124
|
-
Vic: 'VIC',
|
|
125
|
-
Tas: 'TAS',
|
|
126
|
-
Sa: 'SA',
|
|
127
|
-
Wa: 'WA',
|
|
128
|
-
Nt: 'NT'
|
|
123
|
+
Vic: 'VIC'
|
|
129
124
|
} as const;
|
|
130
125
|
export type LicenceResourceStateEnum = typeof LicenceResourceStateEnum[keyof typeof LicenceResourceStateEnum];
|
|
131
126
|
|
|
@@ -103,12 +103,7 @@ export interface LicencesStoreRequest {
|
|
|
103
103
|
export const LicencesStoreRequestStateEnum = {
|
|
104
104
|
Qld: 'QLD',
|
|
105
105
|
Nsw: 'NSW',
|
|
106
|
-
|
|
107
|
-
Vic: 'VIC',
|
|
108
|
-
Tas: 'TAS',
|
|
109
|
-
Sa: 'SA',
|
|
110
|
-
Wa: 'WA',
|
|
111
|
-
Nt: 'NT'
|
|
106
|
+
Vic: 'VIC'
|
|
112
107
|
} as const;
|
|
113
108
|
export type LicencesStoreRequestStateEnum = typeof LicencesStoreRequestStateEnum[keyof typeof LicencesStoreRequestStateEnum];
|
|
114
109
|
|
|
@@ -90,12 +90,7 @@ export interface LicencesUpdateRequest {
|
|
|
90
90
|
export const LicencesUpdateRequestStateEnum = {
|
|
91
91
|
Qld: 'QLD',
|
|
92
92
|
Nsw: 'NSW',
|
|
93
|
-
|
|
94
|
-
Vic: 'VIC',
|
|
95
|
-
Tas: 'TAS',
|
|
96
|
-
Sa: 'SA',
|
|
97
|
-
Wa: 'WA',
|
|
98
|
-
Nt: 'NT'
|
|
93
|
+
Vic: 'VIC'
|
|
99
94
|
} as const;
|
|
100
95
|
export type LicencesUpdateRequestStateEnum = typeof LicencesUpdateRequestStateEnum[keyof typeof LicencesUpdateRequestStateEnum];
|
|
101
96
|
|
|
@@ -58,12 +58,7 @@ export interface LicencesVerifyRequest {
|
|
|
58
58
|
export const LicencesVerifyRequestStateEnum = {
|
|
59
59
|
Qld: 'QLD',
|
|
60
60
|
Nsw: 'NSW',
|
|
61
|
-
|
|
62
|
-
Vic: 'VIC',
|
|
63
|
-
Tas: 'TAS',
|
|
64
|
-
Sa: 'SA',
|
|
65
|
-
Wa: 'WA',
|
|
66
|
-
Nt: 'NT'
|
|
61
|
+
Vic: 'VIC'
|
|
67
62
|
} as const;
|
|
68
63
|
export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEnum[keyof typeof LicencesVerifyRequestStateEnum];
|
|
69
64
|
|
|
@@ -63,13 +63,13 @@ export interface RegisterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {object}
|
|
70
70
|
* @memberof RegisterListResource
|
|
71
71
|
*/
|
|
72
|
-
shiftLength:
|
|
72
|
+
shiftLength: object;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
@@ -193,7 +193,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
193
193
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
194
194
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
195
195
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
196
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
197
196
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
198
197
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
199
198
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -228,7 +227,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
228
227
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
229
228
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
230
229
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
231
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
230
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
232
231
|
'shiftLength': json['shiftLength'],
|
|
233
232
|
'signOffStatus': json['signOffStatus'],
|
|
234
233
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -265,7 +264,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
265
264
|
'user': UserLiteResourceToJSON(value['user']),
|
|
266
265
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
267
266
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
268
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
267
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
269
268
|
'shiftLength': value['shiftLength'],
|
|
270
269
|
'signOffStatus': value['signOffStatus'],
|
|
271
270
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -123,7 +123,7 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat?: number | null;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
@@ -203,7 +203,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
203
203
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
204
204
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
205
205
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
206
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
207
206
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
208
207
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
209
208
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -235,7 +234,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
235
234
|
'firstAidImage': json['firstAidImage'],
|
|
236
235
|
'signOnLat': json['signOnLat'],
|
|
237
236
|
'signOnLong': json['signOnLong'],
|
|
238
|
-
'signOffLat': json['signOffLat'],
|
|
237
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
239
238
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
240
239
|
'licenceNumber': json['licenceNumber'],
|
|
241
240
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -115,6 +115,7 @@ export function instanceOfRosterListResource(value: object): value is RosterList
|
|
|
115
115
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
116
116
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
117
117
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
118
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
118
119
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
119
120
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
120
121
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -137,7 +138,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
137
138
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
138
139
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
139
140
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
140
|
-
'finishDateTime':
|
|
141
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
141
142
|
'isCompliant': json['isCompliant'],
|
|
142
143
|
'isComplete': json['isComplete'],
|
|
143
144
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -161,7 +162,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
161
162
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
162
163
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
163
164
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
164
|
-
'finishDateTime':
|
|
165
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
165
166
|
'isCompliant': value['isCompliant'],
|
|
166
167
|
'isComplete': value['isComplete'],
|
|
167
168
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
|
|
|
36
36
|
* @type {Date}
|
|
37
37
|
* @memberof RosterLiteResource
|
|
38
38
|
*/
|
|
39
|
-
finishDateTime
|
|
39
|
+
finishDateTime?: Date | null;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -44,7 +44,6 @@ export interface RosterLiteResource {
|
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfRosterLiteResource(value: object): value is RosterLiteResource {
|
|
46
46
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
47
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
48
47
|
return true;
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -60,7 +59,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
60
59
|
|
|
61
60
|
'id': json['id'] == null ? undefined : json['id'],
|
|
62
61
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
63
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
62
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
64
63
|
};
|
|
65
64
|
}
|
|
66
65
|
|
|
@@ -77,7 +76,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
|
|
|
77
76
|
|
|
78
77
|
'id': value['id'],
|
|
79
78
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
80
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
79
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
81
80
|
};
|
|
82
81
|
}
|
|
83
82
|
|
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime: Date;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {boolean}
|
|
@@ -116,6 +116,7 @@ export function instanceOfRosterResource(value: object): value is RosterResource
|
|
|
116
116
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
117
117
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
118
118
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
119
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
119
120
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
120
121
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
121
122
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -137,7 +138,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
137
138
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
138
139
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
139
140
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
140
|
-
'finishDateTime':
|
|
141
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
141
142
|
'isCompliant': json['isCompliant'],
|
|
142
143
|
'isComplete': json['isComplete'],
|
|
143
144
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -160,7 +161,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
160
161
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
161
162
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
162
163
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
163
|
-
'finishDateTime':
|
|
164
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
164
165
|
'isCompliant': value['isCompliant'],
|
|
165
166
|
'isComplete': value['isComplete'],
|
|
166
167
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -111,12 +111,7 @@ export interface UsersCreateWithRoleRequestLicencesInner {
|
|
|
111
111
|
export const UsersCreateWithRoleRequestLicencesInnerStateEnum = {
|
|
112
112
|
Qld: 'QLD',
|
|
113
113
|
Nsw: 'NSW',
|
|
114
|
-
|
|
115
|
-
Vic: 'VIC',
|
|
116
|
-
Tas: 'TAS',
|
|
117
|
-
Sa: 'SA',
|
|
118
|
-
Wa: 'WA',
|
|
119
|
-
Nt: 'NT'
|
|
114
|
+
Vic: 'VIC'
|
|
120
115
|
} as const;
|
|
121
116
|
export type UsersCreateWithRoleRequestLicencesInnerStateEnum = typeof UsersCreateWithRoleRequestLicencesInnerStateEnum[keyof typeof UsersCreateWithRoleRequestLicencesInnerStateEnum];
|
|
122
117
|
|