@digital8/security-registers-backend-ts-sdk 0.0.328 → 0.0.330
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/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AssetLiteResource.d.ts +12 -0
- package/dist/models/AssetLiteResource.js +6 -0
- package/dist/models/AssetResource.d.ts +13 -1
- package/dist/models/AssetResource.js +7 -3
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +1 -3
- package/dist/models/RegisterResource.d.ts +14 -2
- package/dist/models/RegisterResource.js +16 -8
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +4 -3
- package/package.json +1 -1
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AssetLiteResource.ts +17 -0
- package/src/models/AssetResource.ts +19 -3
- package/src/models/RegisterListResource.ts +2 -3
- package/src/models/RegisterResource.ts +24 -6
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +4 -3
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.330
|
|
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.330 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'addressLine1': json['addressLine1'],
|
|
51
|
-
'addressLine2': json['addressLine2']
|
|
53
|
+
'addressLine2': json['addressLine2'],
|
|
52
54
|
'suburb': json['suburb'],
|
|
53
55
|
'city': json['city'],
|
|
54
56
|
'state': json['state'],
|
|
@@ -27,6 +27,18 @@ export interface AssetLiteResource {
|
|
|
27
27
|
* @memberof AssetLiteResource
|
|
28
28
|
*/
|
|
29
29
|
filePath: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof AssetLiteResource
|
|
34
|
+
*/
|
|
35
|
+
isExternal: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AssetLiteResource
|
|
40
|
+
*/
|
|
41
|
+
externalUrl?: string | null;
|
|
30
42
|
}
|
|
31
43
|
/**
|
|
32
44
|
* Check if a given object implements the AssetLiteResource interface.
|
|
@@ -26,6 +26,8 @@ function instanceOfAssetLiteResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('filePath' in value) || value['filePath'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('isExternal' in value) || value['isExternal'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
return true;
|
|
30
32
|
}
|
|
31
33
|
function AssetLiteResourceFromJSON(json) {
|
|
@@ -38,6 +40,8 @@ function AssetLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
40
|
return {
|
|
39
41
|
'id': json['id'],
|
|
40
42
|
'filePath': json['filePath'],
|
|
43
|
+
'isExternal': json['isExternal'],
|
|
44
|
+
'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
|
|
41
45
|
};
|
|
42
46
|
}
|
|
43
47
|
function AssetLiteResourceToJSON(json) {
|
|
@@ -51,5 +55,7 @@ function AssetLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
55
|
return {
|
|
52
56
|
'id': value['id'],
|
|
53
57
|
'filePath': value['filePath'],
|
|
58
|
+
'isExternal': value['isExternal'],
|
|
59
|
+
'externalUrl': value['externalUrl'],
|
|
54
60
|
};
|
|
55
61
|
}
|
|
@@ -44,7 +44,7 @@ export interface AssetResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof AssetResource
|
|
46
46
|
*/
|
|
47
|
-
altText
|
|
47
|
+
altText?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {number}
|
|
@@ -57,6 +57,18 @@ export interface AssetResource {
|
|
|
57
57
|
* @memberof AssetResource
|
|
58
58
|
*/
|
|
59
59
|
fileId: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof AssetResource
|
|
64
|
+
*/
|
|
65
|
+
isExternal: boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AssetResource
|
|
70
|
+
*/
|
|
71
|
+
externalUrl?: string | null;
|
|
60
72
|
}
|
|
61
73
|
/**
|
|
62
74
|
* Check if a given object implements the AssetResource interface.
|
|
@@ -30,12 +30,12 @@ function instanceOfAssetResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('index' in value) || value['index'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
38
36
|
return false;
|
|
37
|
+
if (!('isExternal' in value) || value['isExternal'] === undefined)
|
|
38
|
+
return false;
|
|
39
39
|
return true;
|
|
40
40
|
}
|
|
41
41
|
function AssetResourceFromJSON(json) {
|
|
@@ -50,9 +50,11 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'filePath': json['filePath'],
|
|
51
51
|
'fileName': json['fileName'],
|
|
52
52
|
'mimeType': json['mimeType'],
|
|
53
|
-
'altText': json['altText'],
|
|
53
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
54
54
|
'index': json['index'],
|
|
55
55
|
'fileId': json['fileId'],
|
|
56
|
+
'isExternal': json['isExternal'],
|
|
57
|
+
'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
|
|
56
58
|
};
|
|
57
59
|
}
|
|
58
60
|
function AssetResourceToJSON(json) {
|
|
@@ -71,5 +73,7 @@ function AssetResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
73
|
'altText': value['altText'],
|
|
72
74
|
'index': value['index'],
|
|
73
75
|
'fileId': value['fileId'],
|
|
76
|
+
'isExternal': value['isExternal'],
|
|
77
|
+
'externalUrl': value['externalUrl'],
|
|
74
78
|
};
|
|
75
79
|
}
|
|
@@ -62,8 +62,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
62
62
|
return false;
|
|
63
63
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
64
64
|
return false;
|
|
65
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
66
|
-
return false;
|
|
67
65
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
68
66
|
return false;
|
|
69
67
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
@@ -99,7 +97,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
99
97
|
'firstAid': json['firstAid'],
|
|
100
98
|
'signOnLat': json['signOnLat'],
|
|
101
99
|
'signOnLong': json['signOnLong'],
|
|
102
|
-
'signOffLat': json['signOffLat'],
|
|
100
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
103
101
|
'signOffLong': json['signOffLong'],
|
|
104
102
|
'hasIncidents': json['hasIncidents'],
|
|
105
103
|
};
|
|
@@ -46,7 +46,7 @@ export interface RegisterResource {
|
|
|
46
46
|
* @type {Date}
|
|
47
47
|
* @memberof RegisterResource
|
|
48
48
|
*/
|
|
49
|
-
finishDateTime
|
|
49
|
+
finishDateTime: Date;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
52
|
* @type {number}
|
|
@@ -65,6 +65,18 @@ export interface RegisterResource {
|
|
|
65
65
|
* @memberof RegisterResource
|
|
66
66
|
*/
|
|
67
67
|
signOffSignature: object;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {object}
|
|
71
|
+
* @memberof RegisterResource
|
|
72
|
+
*/
|
|
73
|
+
signOnPhoto: object;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {object}
|
|
77
|
+
* @memberof RegisterResource
|
|
78
|
+
*/
|
|
79
|
+
signOffPhoto: object;
|
|
68
80
|
/**
|
|
69
81
|
*
|
|
70
82
|
* @type {object}
|
|
@@ -142,7 +154,7 @@ export interface RegisterResource {
|
|
|
142
154
|
* @type {string}
|
|
143
155
|
* @memberof RegisterResource
|
|
144
156
|
*/
|
|
145
|
-
badgeNumber
|
|
157
|
+
badgeNumber?: string | null;
|
|
146
158
|
/**
|
|
147
159
|
*
|
|
148
160
|
* @type {Date}
|
|
@@ -30,12 +30,18 @@ function instanceOfRegisterResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined)
|
|
36
38
|
return false;
|
|
37
39
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined)
|
|
38
40
|
return false;
|
|
41
|
+
if (!('signOnPhoto' in value) || value['signOnPhoto'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('signOffPhoto' in value) || value['signOffPhoto'] === undefined)
|
|
44
|
+
return false;
|
|
39
45
|
if (!('licenceFront' in value) || value['licenceFront'] === undefined)
|
|
40
46
|
return false;
|
|
41
47
|
if (!('licenceBack' in value) || value['licenceBack'] === undefined)
|
|
@@ -58,8 +64,6 @@ function instanceOfRegisterResource(value) {
|
|
|
58
64
|
return false;
|
|
59
65
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
60
66
|
return false;
|
|
61
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
62
|
-
return false;
|
|
63
67
|
if (!('rampReadAt' in value) || value['rampReadAt'] === undefined)
|
|
64
68
|
return false;
|
|
65
69
|
return true;
|
|
@@ -76,10 +80,12 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
80
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
77
81
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
78
82
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
79
|
-
'finishDateTime':
|
|
83
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
80
84
|
'signOffStatus': json['signOffStatus'],
|
|
81
85
|
'signOnSignature': json['signOnSignature'],
|
|
82
86
|
'signOffSignature': json['signOffSignature'],
|
|
87
|
+
'signOnPhoto': json['signOnPhoto'],
|
|
88
|
+
'signOffPhoto': json['signOffPhoto'],
|
|
83
89
|
'licenceFront': json['licenceFront'],
|
|
84
90
|
'licenceBack': json['licenceBack'],
|
|
85
91
|
'rsaImage': json['rsaImage'],
|
|
@@ -92,7 +98,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
92
98
|
'licenceExpiry': json['licenceExpiry'],
|
|
93
99
|
'licenceFirstName': json['licenceFirstName'],
|
|
94
100
|
'licenceLastName': json['licenceLastName'],
|
|
95
|
-
'badgeNumber': json['badgeNumber'],
|
|
101
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
96
102
|
'rampReadAt': (new Date(json['rampReadAt'])),
|
|
97
103
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
98
104
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -102,7 +108,7 @@ function RegisterResourceToJSON(json) {
|
|
|
102
108
|
return RegisterResourceToJSONTyped(json, false);
|
|
103
109
|
}
|
|
104
110
|
function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
105
|
-
var _a, _b
|
|
111
|
+
var _a, _b;
|
|
106
112
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
107
113
|
if (value == null) {
|
|
108
114
|
return value;
|
|
@@ -112,10 +118,12 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
112
118
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
113
119
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
114
120
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
115
|
-
'finishDateTime':
|
|
121
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
116
122
|
'signOffStatus': value['signOffStatus'],
|
|
117
123
|
'signOnSignature': value['signOnSignature'],
|
|
118
124
|
'signOffSignature': value['signOffSignature'],
|
|
125
|
+
'signOnPhoto': value['signOnPhoto'],
|
|
126
|
+
'signOffPhoto': value['signOffPhoto'],
|
|
119
127
|
'licenceFront': value['licenceFront'],
|
|
120
128
|
'licenceBack': value['licenceBack'],
|
|
121
129
|
'rsaImage': value['rsaImage'],
|
|
@@ -130,7 +138,7 @@ function RegisterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
130
138
|
'licenceLastName': value['licenceLastName'],
|
|
131
139
|
'badgeNumber': value['badgeNumber'],
|
|
132
140
|
'rampReadAt': ((value['rampReadAt']).toISOString()),
|
|
133
|
-
'createdAt': value['createdAt'] === null ? null : ((
|
|
134
|
-
'updatedAt': value['updatedAt'] === null ? null : ((
|
|
141
|
+
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
142
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
135
143
|
};
|
|
136
144
|
}
|
|
@@ -30,8 +30,6 @@ 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;
|
|
35
33
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -54,7 +52,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
52
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
55
53
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
56
54
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
57
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
55
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
58
56
|
'isCompliant': json['isCompliant'],
|
|
59
57
|
'isComplete': json['isComplete'],
|
|
60
58
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -65,6 +63,7 @@ function RosterListResourceToJSON(json) {
|
|
|
65
63
|
return RosterListResourceToJSONTyped(json, false);
|
|
66
64
|
}
|
|
67
65
|
function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
+
var _a;
|
|
68
67
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
68
|
if (value == null) {
|
|
70
69
|
return value;
|
|
@@ -74,7 +73,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
73
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
75
74
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
76
75
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
77
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
76
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
78
77
|
'isCompliant': value['isCompliant'],
|
|
79
78
|
'isComplete': value['isComplete'],
|
|
80
79
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -24,6 +24,8 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfRosterLiteResource(value) {
|
|
25
25
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
return true;
|
|
28
30
|
}
|
|
29
31
|
function RosterLiteResourceFromJSON(json) {
|
|
@@ -36,14 +38,13 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
38
|
return {
|
|
37
39
|
'id': json['id'] == null ? undefined : json['id'],
|
|
38
40
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
39
|
-
'finishDateTime':
|
|
41
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
function RosterLiteResourceToJSON(json) {
|
|
43
45
|
return RosterLiteResourceToJSONTyped(json, false);
|
|
44
46
|
}
|
|
45
47
|
function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
-
var _a;
|
|
47
48
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
49
|
if (value == null) {
|
|
49
50
|
return value;
|
|
@@ -51,6 +52,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
52
|
return {
|
|
52
53
|
'id': value['id'],
|
|
53
54
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
54
|
-
'finishDateTime':
|
|
55
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
55
56
|
};
|
|
56
57
|
}
|
package/package.json
CHANGED
|
@@ -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'],
|
|
@@ -31,6 +31,18 @@ export interface AssetLiteResource {
|
|
|
31
31
|
* @memberof AssetLiteResource
|
|
32
32
|
*/
|
|
33
33
|
filePath: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof AssetLiteResource
|
|
38
|
+
*/
|
|
39
|
+
isExternal: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AssetLiteResource
|
|
44
|
+
*/
|
|
45
|
+
externalUrl?: string | null;
|
|
34
46
|
}
|
|
35
47
|
|
|
36
48
|
/**
|
|
@@ -39,6 +51,7 @@ export interface AssetLiteResource {
|
|
|
39
51
|
export function instanceOfAssetLiteResource(value: object): value is AssetLiteResource {
|
|
40
52
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
53
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
54
|
+
if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
|
|
42
55
|
return true;
|
|
43
56
|
}
|
|
44
57
|
|
|
@@ -54,6 +67,8 @@ export function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
54
67
|
|
|
55
68
|
'id': json['id'],
|
|
56
69
|
'filePath': json['filePath'],
|
|
70
|
+
'isExternal': json['isExternal'],
|
|
71
|
+
'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
|
|
57
72
|
};
|
|
58
73
|
}
|
|
59
74
|
|
|
@@ -70,6 +85,8 @@ export function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, i
|
|
|
70
85
|
|
|
71
86
|
'id': value['id'],
|
|
72
87
|
'filePath': value['filePath'],
|
|
88
|
+
'isExternal': value['isExternal'],
|
|
89
|
+
'externalUrl': value['externalUrl'],
|
|
73
90
|
};
|
|
74
91
|
}
|
|
75
92
|
|
|
@@ -48,7 +48,7 @@ export interface AssetResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AssetResource
|
|
50
50
|
*/
|
|
51
|
-
altText
|
|
51
|
+
altText?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -61,6 +61,18 @@ export interface AssetResource {
|
|
|
61
61
|
* @memberof AssetResource
|
|
62
62
|
*/
|
|
63
63
|
fileId: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof AssetResource
|
|
68
|
+
*/
|
|
69
|
+
isExternal: boolean;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof AssetResource
|
|
74
|
+
*/
|
|
75
|
+
externalUrl?: string | null;
|
|
64
76
|
}
|
|
65
77
|
|
|
66
78
|
/**
|
|
@@ -71,9 +83,9 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
71
83
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
72
84
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
73
85
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
74
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
75
86
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
76
87
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
88
|
+
if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
|
|
77
89
|
return true;
|
|
78
90
|
}
|
|
79
91
|
|
|
@@ -91,9 +103,11 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
91
103
|
'filePath': json['filePath'],
|
|
92
104
|
'fileName': json['fileName'],
|
|
93
105
|
'mimeType': json['mimeType'],
|
|
94
|
-
'altText': json['altText'],
|
|
106
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
95
107
|
'index': json['index'],
|
|
96
108
|
'fileId': json['fileId'],
|
|
109
|
+
'isExternal': json['isExternal'],
|
|
110
|
+
'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
|
|
97
111
|
};
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -115,6 +129,8 @@ export function AssetResourceToJSONTyped(value?: AssetResource | null, ignoreDis
|
|
|
115
129
|
'altText': value['altText'],
|
|
116
130
|
'index': value['index'],
|
|
117
131
|
'fileId': value['fileId'],
|
|
132
|
+
'isExternal': value['isExternal'],
|
|
133
|
+
'externalUrl': value['externalUrl'],
|
|
118
134
|
};
|
|
119
135
|
}
|
|
120
136
|
|
|
@@ -165,7 +165,7 @@ export interface RegisterListResource {
|
|
|
165
165
|
* @type {number}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLat
|
|
168
|
+
signOffLat?: number | null;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {number}
|
|
@@ -203,7 +203,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
203
203
|
if (!('firstAid' in value) || value['firstAid'] === 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 (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
208
207
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
209
208
|
return true;
|
|
@@ -240,7 +239,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
240
239
|
'firstAid': json['firstAid'],
|
|
241
240
|
'signOnLat': json['signOnLat'],
|
|
242
241
|
'signOnLong': json['signOnLong'],
|
|
243
|
-
'signOffLat': json['signOffLat'],
|
|
242
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
244
243
|
'signOffLong': json['signOffLong'],
|
|
245
244
|
'hasIncidents': json['hasIncidents'],
|
|
246
245
|
};
|
|
@@ -63,7 +63,7 @@ export interface RegisterResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {number}
|
|
@@ -82,6 +82,18 @@ export interface RegisterResource {
|
|
|
82
82
|
* @memberof RegisterResource
|
|
83
83
|
*/
|
|
84
84
|
signOffSignature: object;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {object}
|
|
88
|
+
* @memberof RegisterResource
|
|
89
|
+
*/
|
|
90
|
+
signOnPhoto: object;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {object}
|
|
94
|
+
* @memberof RegisterResource
|
|
95
|
+
*/
|
|
96
|
+
signOffPhoto: object;
|
|
85
97
|
/**
|
|
86
98
|
*
|
|
87
99
|
* @type {object}
|
|
@@ -159,7 +171,7 @@ export interface RegisterResource {
|
|
|
159
171
|
* @type {string}
|
|
160
172
|
* @memberof RegisterResource
|
|
161
173
|
*/
|
|
162
|
-
badgeNumber
|
|
174
|
+
badgeNumber?: string | null;
|
|
163
175
|
/**
|
|
164
176
|
*
|
|
165
177
|
* @type {Date}
|
|
@@ -187,9 +199,12 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
187
199
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
188
200
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
189
201
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
202
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
190
203
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
191
204
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
192
205
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
206
|
+
if (!('signOnPhoto' in value) || value['signOnPhoto'] === undefined) return false;
|
|
207
|
+
if (!('signOffPhoto' in value) || value['signOffPhoto'] === undefined) return false;
|
|
193
208
|
if (!('licenceFront' in value) || value['licenceFront'] === undefined) return false;
|
|
194
209
|
if (!('licenceBack' in value) || value['licenceBack'] === undefined) return false;
|
|
195
210
|
if (!('rsaImage' in value) || value['rsaImage'] === undefined) return false;
|
|
@@ -201,7 +216,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
201
216
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
202
217
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
203
218
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
204
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
205
219
|
if (!('rampReadAt' in value) || value['rampReadAt'] === undefined) return false;
|
|
206
220
|
return true;
|
|
207
221
|
}
|
|
@@ -220,10 +234,12 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
220
234
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
221
235
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
222
236
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
223
|
-
'finishDateTime':
|
|
237
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
224
238
|
'signOffStatus': json['signOffStatus'],
|
|
225
239
|
'signOnSignature': json['signOnSignature'],
|
|
226
240
|
'signOffSignature': json['signOffSignature'],
|
|
241
|
+
'signOnPhoto': json['signOnPhoto'],
|
|
242
|
+
'signOffPhoto': json['signOffPhoto'],
|
|
227
243
|
'licenceFront': json['licenceFront'],
|
|
228
244
|
'licenceBack': json['licenceBack'],
|
|
229
245
|
'rsaImage': json['rsaImage'],
|
|
@@ -236,7 +252,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
236
252
|
'licenceExpiry': json['licenceExpiry'],
|
|
237
253
|
'licenceFirstName': json['licenceFirstName'],
|
|
238
254
|
'licenceLastName': json['licenceLastName'],
|
|
239
|
-
'badgeNumber': json['badgeNumber'],
|
|
255
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
240
256
|
'rampReadAt': (new Date(json['rampReadAt'])),
|
|
241
257
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
242
258
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -258,10 +274,12 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
|
|
|
258
274
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
259
275
|
'user': UserLiteResourceToJSON(value['user']),
|
|
260
276
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
261
|
-
'finishDateTime':
|
|
277
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
262
278
|
'signOffStatus': value['signOffStatus'],
|
|
263
279
|
'signOnSignature': value['signOnSignature'],
|
|
264
280
|
'signOffSignature': value['signOffSignature'],
|
|
281
|
+
'signOnPhoto': value['signOnPhoto'],
|
|
282
|
+
'signOffPhoto': value['signOffPhoto'],
|
|
265
283
|
'licenceFront': value['licenceFront'],
|
|
266
284
|
'licenceBack': value['licenceBack'],
|
|
267
285
|
'rsaImage': value['rsaImage'],
|
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -97,7 +97,6 @@ export function instanceOfRosterListResource(value: object): value is RosterList
|
|
|
97
97
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
98
98
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
99
99
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
100
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
101
100
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
102
101
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
103
102
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -119,7 +118,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
119
118
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
120
119
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
121
120
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
122
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
121
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
123
122
|
'isCompliant': json['isCompliant'],
|
|
124
123
|
'isComplete': json['isComplete'],
|
|
125
124
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -142,7 +141,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
142
141
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
143
142
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
144
143
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
145
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
144
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
146
145
|
'isCompliant': value['isCompliant'],
|
|
147
146
|
'isComplete': value['isComplete'],
|
|
148
147
|
'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;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -44,6 +44,7 @@ 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;
|
|
47
48
|
return true;
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -59,7 +60,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
59
60
|
|
|
60
61
|
'id': json['id'] == null ? undefined : json['id'],
|
|
61
62
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
62
|
-
'finishDateTime':
|
|
63
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -76,7 +77,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
|
|
|
76
77
|
|
|
77
78
|
'id': value['id'],
|
|
78
79
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
79
|
-
'finishDateTime':
|
|
80
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
|