@digital8/security-registers-backend-ts-sdk 0.0.483 → 0.0.484
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/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +4 -4
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +6 -2
- package/dist/models/UserLiteResource.d.ts +3 -3
- package/dist/models/UserLiteResource.js +3 -3
- package/dist/models/UserResource.d.ts +3 -2
- package/dist/models/UserResource.js +3 -2
- package/package.json +1 -1
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +6 -4
- package/src/models/UserLiteResource.ts +10 -10
- package/src/models/UserResource.ts +11 -4
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.484
|
|
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.484 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -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
|
};
|
|
@@ -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}
|
|
@@ -148,7 +148,7 @@ export interface RegisterListResource {
|
|
|
148
148
|
* @type {number}
|
|
149
149
|
* @memberof RegisterListResource
|
|
150
150
|
*/
|
|
151
|
-
signOffLat
|
|
151
|
+
signOffLat: number;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {number}
|
|
@@ -43,8 +43,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
43
43
|
return false;
|
|
44
44
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
45
45
|
return false;
|
|
46
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
47
|
-
return false;
|
|
48
46
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
49
47
|
return false;
|
|
50
48
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -69,6 +67,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
69
67
|
return false;
|
|
70
68
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
71
69
|
return false;
|
|
70
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
71
|
+
return false;
|
|
72
72
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
73
73
|
return false;
|
|
74
74
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
@@ -90,7 +90,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
90
90
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
91
91
|
'shiftLength': json['shiftLength'],
|
|
92
92
|
'signOffStatus': json['signOffStatus'],
|
|
93
|
-
'badgeNumber': json['badgeNumber'],
|
|
93
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
94
94
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
95
95
|
'licenceNumber': json['licenceNumber'],
|
|
96
96
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -104,7 +104,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
104
104
|
'firstAid': json['firstAid'],
|
|
105
105
|
'signOnLat': json['signOnLat'],
|
|
106
106
|
'signOnLong': json['signOnLong'],
|
|
107
|
-
'signOffLat': json['signOffLat']
|
|
107
|
+
'signOffLat': json['signOffLat'],
|
|
108
108
|
'signOffLong': json['signOffLong'],
|
|
109
109
|
'hasIncidents': json['hasIncidents'],
|
|
110
110
|
};
|
|
@@ -106,7 +106,7 @@ export interface RegisterResource {
|
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof RegisterResource
|
|
108
108
|
*/
|
|
109
|
-
signOffLat
|
|
109
|
+
signOffLat: number;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @type {number}
|
|
@@ -142,7 +142,7 @@ export interface RegisterResource {
|
|
|
142
142
|
* @type {string}
|
|
143
143
|
* @memberof RegisterResource
|
|
144
144
|
*/
|
|
145
|
-
badgeNumber
|
|
145
|
+
badgeNumber: string;
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
148
|
* @type {Date}
|
|
@@ -57,6 +57,8 @@ function instanceOfRegisterResource(value) {
|
|
|
57
57
|
return false;
|
|
58
58
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
59
59
|
return false;
|
|
60
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
61
|
+
return false;
|
|
60
62
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
61
63
|
return false;
|
|
62
64
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -65,6 +67,8 @@ function instanceOfRegisterResource(value) {
|
|
|
65
67
|
return false;
|
|
66
68
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
67
69
|
return false;
|
|
70
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
71
|
+
return false;
|
|
68
72
|
return true;
|
|
69
73
|
}
|
|
70
74
|
function RegisterResourceFromJSON(json) {
|
|
@@ -89,13 +93,13 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
89
93
|
'firstAidImage': json['firstAidImage'],
|
|
90
94
|
'signOnLat': json['signOnLat'],
|
|
91
95
|
'signOnLong': json['signOnLong'],
|
|
92
|
-
'signOffLat': json['signOffLat']
|
|
96
|
+
'signOffLat': json['signOffLat'],
|
|
93
97
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
94
98
|
'licenceNumber': json['licenceNumber'],
|
|
95
99
|
'licenceExpiry': json['licenceExpiry'],
|
|
96
100
|
'licenceFirstName': json['licenceFirstName'],
|
|
97
101
|
'licenceLastName': json['licenceLastName'],
|
|
98
|
-
'badgeNumber': json['badgeNumber']
|
|
102
|
+
'badgeNumber': json['badgeNumber'],
|
|
99
103
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
100
104
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
101
105
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -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 { AssetResource } from './AssetResource';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -42,10 +42,10 @@ export interface UserLiteResource {
|
|
|
42
42
|
fullName: string;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {
|
|
45
|
+
* @type {AssetResource}
|
|
46
46
|
* @memberof UserLiteResource
|
|
47
47
|
*/
|
|
48
|
-
signatureAsset:
|
|
48
|
+
signatureAsset: AssetResource | null;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Check if a given object implements the UserLiteResource interface.
|
|
@@ -18,7 +18,7 @@ exports.UserLiteResourceFromJSON = UserLiteResourceFromJSON;
|
|
|
18
18
|
exports.UserLiteResourceFromJSONTyped = UserLiteResourceFromJSONTyped;
|
|
19
19
|
exports.UserLiteResourceToJSON = UserLiteResourceToJSON;
|
|
20
20
|
exports.UserLiteResourceToJSONTyped = UserLiteResourceToJSONTyped;
|
|
21
|
-
var
|
|
21
|
+
var AssetResource_1 = require("./AssetResource");
|
|
22
22
|
/**
|
|
23
23
|
* Check if a given object implements the UserLiteResource interface.
|
|
24
24
|
*/
|
|
@@ -47,7 +47,7 @@ function UserLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'firstName': json['firstName'],
|
|
48
48
|
'lastName': json['lastName'],
|
|
49
49
|
'fullName': json['fullName'],
|
|
50
|
-
'signatureAsset': (0,
|
|
50
|
+
'signatureAsset': (0, AssetResource_1.AssetResourceFromJSON)(json['signatureAsset']),
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
function UserLiteResourceToJSON(json) {
|
|
@@ -63,6 +63,6 @@ function UserLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
63
63
|
'firstName': value['firstName'],
|
|
64
64
|
'lastName': value['lastName'],
|
|
65
65
|
'fullName': value['fullName'],
|
|
66
|
-
'signatureAsset': (0,
|
|
66
|
+
'signatureAsset': (0, AssetResource_1.AssetResourceToJSON)(value['signatureAsset']),
|
|
67
67
|
};
|
|
68
68
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { LicenceResource } from './LicenceResource';
|
|
13
13
|
import type { AssetLiteResource } from './AssetLiteResource';
|
|
14
14
|
import type { CurrentRegisterResource } from './CurrentRegisterResource';
|
|
15
|
+
import type { AssetResource } from './AssetResource';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -74,10 +75,10 @@ export interface UserResource {
|
|
|
74
75
|
assets: Array<AssetLiteResource> | null;
|
|
75
76
|
/**
|
|
76
77
|
*
|
|
77
|
-
* @type {
|
|
78
|
+
* @type {AssetResource}
|
|
78
79
|
* @memberof UserResource
|
|
79
80
|
*/
|
|
80
|
-
signatureAsset:
|
|
81
|
+
signatureAsset: AssetResource | null;
|
|
81
82
|
/**
|
|
82
83
|
*
|
|
83
84
|
* @type {AssetLiteResource}
|
|
@@ -21,6 +21,7 @@ exports.UserResourceToJSONTyped = UserResourceToJSONTyped;
|
|
|
21
21
|
var LicenceResource_1 = require("./LicenceResource");
|
|
22
22
|
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
23
23
|
var CurrentRegisterResource_1 = require("./CurrentRegisterResource");
|
|
24
|
+
var AssetResource_1 = require("./AssetResource");
|
|
24
25
|
/**
|
|
25
26
|
* Check if a given object implements the UserResource interface.
|
|
26
27
|
*/
|
|
@@ -70,7 +71,7 @@ function UserResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
70
71
|
'roles': json['roles'],
|
|
71
72
|
'hasVenues': json['hasVenues'],
|
|
72
73
|
'assets': (json['assets'] == null ? null : json['assets'].map(AssetLiteResource_1.AssetLiteResourceFromJSON)),
|
|
73
|
-
'signatureAsset': (0,
|
|
74
|
+
'signatureAsset': (0, AssetResource_1.AssetResourceFromJSON)(json['signatureAsset']),
|
|
74
75
|
'profileImage': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['profileImage']),
|
|
75
76
|
'licences': (json['licences'] == null ? null : json['licences'].map(LicenceResource_1.LicenceResourceFromJSON)),
|
|
76
77
|
'currentRegister': (0, CurrentRegisterResource_1.CurrentRegisterResourceFromJSON)(json['currentRegister']),
|
|
@@ -97,7 +98,7 @@ function UserResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
97
98
|
'roles': value['roles'],
|
|
98
99
|
'hasVenues': value['hasVenues'],
|
|
99
100
|
'assets': (value['assets'] == null ? null : value['assets'].map(AssetLiteResource_1.AssetLiteResourceToJSON)),
|
|
100
|
-
'signatureAsset': (0,
|
|
101
|
+
'signatureAsset': (0, AssetResource_1.AssetResourceToJSON)(value['signatureAsset']),
|
|
101
102
|
'profileImage': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['profileImage']),
|
|
102
103
|
'licences': (value['licences'] == null ? null : value['licences'].map(LicenceResource_1.LicenceResourceToJSON)),
|
|
103
104
|
'currentRegister': (0, CurrentRegisterResource_1.CurrentRegisterResourceToJSON)(value['currentRegister']),
|
package/package.json
CHANGED
|
@@ -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
|
};
|
|
@@ -81,7 +81,7 @@ export interface RegisterListResource {
|
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof RegisterListResource
|
|
83
83
|
*/
|
|
84
|
-
badgeNumber
|
|
84
|
+
badgeNumber?: string | null;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {Date}
|
|
@@ -165,7 +165,7 @@ export interface RegisterListResource {
|
|
|
165
165
|
* @type {number}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLat
|
|
168
|
+
signOffLat: number;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {number}
|
|
@@ -201,7 +201,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
201
201
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
202
202
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
203
203
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
204
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
205
204
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
206
205
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
207
206
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -214,6 +213,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
214
213
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
215
214
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
216
215
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
216
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
217
217
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
218
218
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
219
219
|
return true;
|
|
@@ -236,7 +236,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
236
236
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
237
237
|
'shiftLength': json['shiftLength'],
|
|
238
238
|
'signOffStatus': json['signOffStatus'],
|
|
239
|
-
'badgeNumber': json['badgeNumber'],
|
|
239
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
240
240
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
241
241
|
'licenceNumber': json['licenceNumber'],
|
|
242
242
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -250,7 +250,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
250
250
|
'firstAid': json['firstAid'],
|
|
251
251
|
'signOnLat': json['signOnLat'],
|
|
252
252
|
'signOnLong': json['signOnLong'],
|
|
253
|
-
'signOffLat': json['signOffLat']
|
|
253
|
+
'signOffLat': json['signOffLat'],
|
|
254
254
|
'signOffLong': json['signOffLong'],
|
|
255
255
|
'hasIncidents': json['hasIncidents'],
|
|
256
256
|
};
|
|
@@ -123,7 +123,7 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat: number;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
@@ -159,7 +159,7 @@ export interface RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber: string;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -208,10 +208,12 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
208
208
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
209
209
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
210
210
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
211
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
211
212
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
212
213
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
213
214
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
214
215
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
216
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
215
217
|
return true;
|
|
216
218
|
}
|
|
217
219
|
|
|
@@ -239,13 +241,13 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
239
241
|
'firstAidImage': json['firstAidImage'],
|
|
240
242
|
'signOnLat': json['signOnLat'],
|
|
241
243
|
'signOnLong': json['signOnLong'],
|
|
242
|
-
'signOffLat': json['signOffLat']
|
|
244
|
+
'signOffLat': json['signOffLat'],
|
|
243
245
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
244
246
|
'licenceNumber': json['licenceNumber'],
|
|
245
247
|
'licenceExpiry': json['licenceExpiry'],
|
|
246
248
|
'licenceFirstName': json['licenceFirstName'],
|
|
247
249
|
'licenceLastName': json['licenceLastName'],
|
|
248
|
-
'badgeNumber': json['badgeNumber']
|
|
250
|
+
'badgeNumber': json['badgeNumber'],
|
|
249
251
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
250
252
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
251
253
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AssetResource } from './AssetResource';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
AssetResourceFromJSON,
|
|
19
|
+
AssetResourceFromJSONTyped,
|
|
20
|
+
AssetResourceToJSON,
|
|
21
|
+
AssetResourceToJSONTyped,
|
|
22
|
+
} from './AssetResource';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -53,10 +53,10 @@ export interface UserLiteResource {
|
|
|
53
53
|
fullName: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {AssetResource}
|
|
57
57
|
* @memberof UserLiteResource
|
|
58
58
|
*/
|
|
59
|
-
signatureAsset:
|
|
59
|
+
signatureAsset: AssetResource | null;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -85,7 +85,7 @@ export function UserLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
85
85
|
'firstName': json['firstName'],
|
|
86
86
|
'lastName': json['lastName'],
|
|
87
87
|
'fullName': json['fullName'],
|
|
88
|
-
'signatureAsset':
|
|
88
|
+
'signatureAsset': AssetResourceFromJSON(json['signatureAsset']),
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -104,7 +104,7 @@ export function UserLiteResourceToJSONTyped(value?: UserLiteResource | null, ign
|
|
|
104
104
|
'firstName': value['firstName'],
|
|
105
105
|
'lastName': value['lastName'],
|
|
106
106
|
'fullName': value['fullName'],
|
|
107
|
-
'signatureAsset':
|
|
107
|
+
'signatureAsset': AssetResourceToJSON(value['signatureAsset']),
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
CurrentRegisterResourceToJSON,
|
|
35
35
|
CurrentRegisterResourceToJSONTyped,
|
|
36
36
|
} from './CurrentRegisterResource';
|
|
37
|
+
import type { AssetResource } from './AssetResource';
|
|
38
|
+
import {
|
|
39
|
+
AssetResourceFromJSON,
|
|
40
|
+
AssetResourceFromJSONTyped,
|
|
41
|
+
AssetResourceToJSON,
|
|
42
|
+
AssetResourceToJSONTyped,
|
|
43
|
+
} from './AssetResource';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
@@ -97,10 +104,10 @@ export interface UserResource {
|
|
|
97
104
|
assets: Array<AssetLiteResource> | null;
|
|
98
105
|
/**
|
|
99
106
|
*
|
|
100
|
-
* @type {
|
|
107
|
+
* @type {AssetResource}
|
|
101
108
|
* @memberof UserResource
|
|
102
109
|
*/
|
|
103
|
-
signatureAsset:
|
|
110
|
+
signatureAsset: AssetResource | null;
|
|
104
111
|
/**
|
|
105
112
|
*
|
|
106
113
|
* @type {AssetLiteResource}
|
|
@@ -172,7 +179,7 @@ export function UserResourceFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
172
179
|
'roles': json['roles'],
|
|
173
180
|
'hasVenues': json['hasVenues'],
|
|
174
181
|
'assets': (json['assets'] == null ? null : (json['assets'] as Array<any>).map(AssetLiteResourceFromJSON)),
|
|
175
|
-
'signatureAsset':
|
|
182
|
+
'signatureAsset': AssetResourceFromJSON(json['signatureAsset']),
|
|
176
183
|
'profileImage': AssetLiteResourceFromJSON(json['profileImage']),
|
|
177
184
|
'licences': (json['licences'] == null ? null : (json['licences'] as Array<any>).map(LicenceResourceFromJSON)),
|
|
178
185
|
'currentRegister': CurrentRegisterResourceFromJSON(json['currentRegister']),
|
|
@@ -201,7 +208,7 @@ export function UserResourceToJSONTyped(value?: UserResource | null, ignoreDiscr
|
|
|
201
208
|
'roles': value['roles'],
|
|
202
209
|
'hasVenues': value['hasVenues'],
|
|
203
210
|
'assets': (value['assets'] == null ? null : (value['assets'] as Array<any>).map(AssetLiteResourceToJSON)),
|
|
204
|
-
'signatureAsset':
|
|
211
|
+
'signatureAsset': AssetResourceToJSON(value['signatureAsset']),
|
|
205
212
|
'profileImage': AssetLiteResourceToJSON(value['profileImage']),
|
|
206
213
|
'licences': (value['licences'] == null ? null : (value['licences'] as Array<any>).map(LicenceResourceToJSON)),
|
|
207
214
|
'currentRegister': CurrentRegisterResourceToJSON(value['currentRegister']),
|