@digital8/security-registers-backend-ts-sdk 0.0.483 → 0.0.485

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.
Files changed (29) hide show
  1. package/README.md +2 -2
  2. package/dist/models/AddressResource.d.ts +1 -1
  3. package/dist/models/AddressResource.js +3 -1
  4. package/dist/models/AssetResource.d.ts +1 -1
  5. package/dist/models/AssetResource.js +3 -1
  6. package/dist/models/NotificationPreferenceResource.d.ts +2 -0
  7. package/dist/models/NotificationPreferenceResource.js +3 -1
  8. package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.d.ts +2 -0
  9. package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.js +3 -1
  10. package/dist/models/NotificationPreferencesStoreRequest.d.ts +2 -0
  11. package/dist/models/NotificationPreferencesStoreRequest.js +3 -1
  12. package/dist/models/RegisterListResource.d.ts +2 -2
  13. package/dist/models/RegisterListResource.js +2 -6
  14. package/dist/models/RegisterResource.d.ts +1 -1
  15. package/dist/models/RegisterResource.js +3 -1
  16. package/dist/models/UserLiteResource.d.ts +3 -3
  17. package/dist/models/UserLiteResource.js +3 -3
  18. package/dist/models/UserResource.d.ts +3 -2
  19. package/dist/models/UserResource.js +3 -2
  20. package/package.json +1 -1
  21. package/src/models/AddressResource.ts +3 -2
  22. package/src/models/AssetResource.ts +3 -2
  23. package/src/models/NotificationPreferenceResource.ts +3 -1
  24. package/src/models/NotificationPreferencesBulkRequestPreferencesInner.ts +3 -1
  25. package/src/models/NotificationPreferencesStoreRequest.ts +3 -1
  26. package/src/models/RegisterListResource.ts +4 -6
  27. package/src/models/RegisterResource.ts +3 -2
  28. package/src/models/UserLiteResource.ts +10 -10
  29. package/src/models/UserResource.ts +11 -4
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.483
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.485
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.483 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.485 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -32,7 +32,7 @@ export interface AddressResource {
32
32
  * @type {string}
33
33
  * @memberof AddressResource
34
34
  */
35
- addressLine2?: string | null;
35
+ addressLine2: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -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'] == null ? undefined : json['addressLine2'],
53
+ 'addressLine2': json['addressLine2'],
52
54
  'suburb': json['suburb'],
53
55
  'city': json['city'],
54
56
  'state': json['state'],
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText?: string | null;
47
+ altText: string;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,6 +30,8 @@ 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;
33
35
  if (!('index' in value) || value['index'] === undefined)
34
36
  return false;
35
37
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -50,7 +52,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'filePath': json['filePath'],
51
53
  'fileName': json['fileName'],
52
54
  'mimeType': json['mimeType'],
53
- 'altText': json['altText'] == null ? undefined : json['altText'],
55
+ 'altText': json['altText'],
54
56
  'index': json['index'],
55
57
  'fileId': json['fileId'],
56
58
  'isExternal': json['isExternal'],
@@ -63,6 +63,8 @@ export declare const NotificationPreferenceResourceNotificationTypeEnum: {
63
63
  readonly NonSignOn: "non_sign_on";
64
64
  readonly SignOnRejected: "sign_on_rejected";
65
65
  readonly LicenceUpdated: "licence_updated";
66
+ readonly ExportReady: "export_ready";
67
+ readonly ExportFailed: "export_failed";
66
68
  };
67
69
  export type NotificationPreferenceResourceNotificationTypeEnum = typeof NotificationPreferenceResourceNotificationTypeEnum[keyof typeof NotificationPreferenceResourceNotificationTypeEnum];
68
70
  /**
@@ -29,7 +29,9 @@ exports.NotificationPreferenceResourceNotificationTypeEnum = {
29
29
  NonSignOff: 'non_sign_off',
30
30
  NonSignOn: 'non_sign_on',
31
31
  SignOnRejected: 'sign_on_rejected',
32
- LicenceUpdated: 'licence_updated'
32
+ LicenceUpdated: 'licence_updated',
33
+ ExportReady: 'export_ready',
34
+ ExportFailed: 'export_failed'
33
35
  };
34
36
  /**
35
37
  * Check if a given object implements the NotificationPreferenceResource interface.
@@ -44,6 +44,8 @@ export declare const NotificationPreferencesBulkRequestPreferencesInnerNotificat
44
44
  readonly NonSignOn: "non_sign_on";
45
45
  readonly SignOnRejected: "sign_on_rejected";
46
46
  readonly LicenceUpdated: "licence_updated";
47
+ readonly ExportReady: "export_ready";
48
+ readonly ExportFailed: "export_failed";
47
49
  };
48
50
  export type NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum = typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum[keyof typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum];
49
51
  /**
@@ -28,7 +28,9 @@ exports.NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum =
28
28
  NonSignOff: 'non_sign_off',
29
29
  NonSignOn: 'non_sign_on',
30
30
  SignOnRejected: 'sign_on_rejected',
31
- LicenceUpdated: 'licence_updated'
31
+ LicenceUpdated: 'licence_updated',
32
+ ExportReady: 'export_ready',
33
+ ExportFailed: 'export_failed'
32
34
  };
33
35
  /**
34
36
  * Check if a given object implements the NotificationPreferencesBulkRequestPreferencesInner interface.
@@ -44,6 +44,8 @@ export declare const NotificationPreferencesStoreRequestNotificationTypeEnum: {
44
44
  readonly NonSignOn: "non_sign_on";
45
45
  readonly SignOnRejected: "sign_on_rejected";
46
46
  readonly LicenceUpdated: "licence_updated";
47
+ readonly ExportReady: "export_ready";
48
+ readonly ExportFailed: "export_failed";
47
49
  };
48
50
  export type NotificationPreferencesStoreRequestNotificationTypeEnum = typeof NotificationPreferencesStoreRequestNotificationTypeEnum[keyof typeof NotificationPreferencesStoreRequestNotificationTypeEnum];
49
51
  /**
@@ -28,7 +28,9 @@ exports.NotificationPreferencesStoreRequestNotificationTypeEnum = {
28
28
  NonSignOff: 'non_sign_off',
29
29
  NonSignOn: 'non_sign_on',
30
30
  SignOnRejected: 'sign_on_rejected',
31
- LicenceUpdated: 'licence_updated'
31
+ LicenceUpdated: 'licence_updated',
32
+ ExportReady: 'export_ready',
33
+ ExportFailed: 'export_failed'
32
34
  };
33
35
  /**
34
36
  * Check if a given object implements the NotificationPreferencesStoreRequest interface.
@@ -64,7 +64,7 @@ export interface RegisterListResource {
64
64
  * @type {string}
65
65
  * @memberof RegisterListResource
66
66
  */
67
- badgeNumber: string;
67
+ badgeNumber?: string | null;
68
68
  /**
69
69
  *
70
70
  * @type {Date}
@@ -154,7 +154,7 @@ export interface RegisterListResource {
154
154
  * @type {number}
155
155
  * @memberof RegisterListResource
156
156
  */
157
- signOffLong: number;
157
+ signOffLong?: number | null;
158
158
  /**
159
159
  *
160
160
  * @type {boolean}
@@ -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,8 +67,6 @@ function instanceOfRegisterListResource(value) {
69
67
  return false;
70
68
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
71
69
  return false;
72
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
73
- return false;
74
70
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
75
71
  return false;
76
72
  return true;
@@ -90,7 +86,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
90
86
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
91
87
  'shiftLength': json['shiftLength'],
92
88
  'signOffStatus': json['signOffStatus'],
93
- 'badgeNumber': json['badgeNumber'],
89
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
94
90
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
95
91
  'licenceNumber': json['licenceNumber'],
96
92
  'licenceFirstName': json['licenceFirstName'],
@@ -105,7 +101,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
105
101
  'signOnLat': json['signOnLat'],
106
102
  'signOnLong': json['signOnLong'],
107
103
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
108
- 'signOffLong': json['signOffLong'],
104
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
109
105
  'hasIncidents': json['hasIncidents'],
110
106
  };
111
107
  }
@@ -112,7 +112,7 @@ export interface RegisterResource {
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLong?: number | null;
115
+ signOffLong: number;
116
116
  /**
117
117
  *
118
118
  * @type {string}
@@ -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 (!('signOffLong' in value) || value['signOffLong'] === 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)
@@ -90,7 +92,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
90
92
  'signOnLat': json['signOnLat'],
91
93
  'signOnLong': json['signOnLong'],
92
94
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
93
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
95
+ 'signOffLong': json['signOffLong'],
94
96
  'licenceNumber': json['licenceNumber'],
95
97
  'licenceExpiry': json['licenceExpiry'],
96
98
  'licenceFirstName': json['licenceFirstName'],
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { AssetLiteResource } from './AssetLiteResource';
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 {AssetLiteResource}
45
+ * @type {AssetResource}
46
46
  * @memberof UserLiteResource
47
47
  */
48
- signatureAsset: AssetLiteResource | null;
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 AssetLiteResource_1 = require("./AssetLiteResource");
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, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['signatureAsset']),
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, AssetLiteResource_1.AssetLiteResourceToJSON)(value['signatureAsset']),
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 {AssetLiteResource}
78
+ * @type {AssetResource}
78
79
  * @memberof UserResource
79
80
  */
80
- signatureAsset: AssetLiteResource | null;
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, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['signatureAsset']),
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, AssetLiteResource_1.AssetLiteResourceToJSON)(value['signatureAsset']),
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.483",
3
+ "version": "0.0.485",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -36,7 +36,7 @@ export interface AddressResource {
36
36
  * @type {string}
37
37
  * @memberof AddressResource
38
38
  */
39
- addressLine2?: string | null;
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'] == null ? undefined : json['addressLine2'],
105
+ 'addressLine2': json['addressLine2'],
105
106
  'suburb': json['suburb'],
106
107
  'city': json['city'],
107
108
  'state': json['state'],
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText?: string | null;
51
+ altText: string;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -83,6 +83,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
83
83
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
84
84
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
85
85
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
86
+ if (!('altText' in value) || value['altText'] === undefined) return false;
86
87
  if (!('index' in value) || value['index'] === undefined) return false;
87
88
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
88
89
  if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
@@ -103,7 +104,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
103
104
  'filePath': json['filePath'],
104
105
  'fileName': json['fileName'],
105
106
  'mimeType': json['mimeType'],
106
- 'altText': json['altText'] == null ? undefined : json['altText'],
107
+ 'altText': json['altText'],
107
108
  'index': json['index'],
108
109
  'fileId': json['fileId'],
109
110
  'isExternal': json['isExternal'],
@@ -75,7 +75,9 @@ export const NotificationPreferenceResourceNotificationTypeEnum = {
75
75
  NonSignOff: 'non_sign_off',
76
76
  NonSignOn: 'non_sign_on',
77
77
  SignOnRejected: 'sign_on_rejected',
78
- LicenceUpdated: 'licence_updated'
78
+ LicenceUpdated: 'licence_updated',
79
+ ExportReady: 'export_ready',
80
+ ExportFailed: 'export_failed'
79
81
  } as const;
80
82
  export type NotificationPreferenceResourceNotificationTypeEnum = typeof NotificationPreferenceResourceNotificationTypeEnum[keyof typeof NotificationPreferenceResourceNotificationTypeEnum];
81
83
 
@@ -49,7 +49,9 @@ export const NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeE
49
49
  NonSignOff: 'non_sign_off',
50
50
  NonSignOn: 'non_sign_on',
51
51
  SignOnRejected: 'sign_on_rejected',
52
- LicenceUpdated: 'licence_updated'
52
+ LicenceUpdated: 'licence_updated',
53
+ ExportReady: 'export_ready',
54
+ ExportFailed: 'export_failed'
53
55
  } as const;
54
56
  export type NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum = typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum[keyof typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum];
55
57
 
@@ -49,7 +49,9 @@ export const NotificationPreferencesStoreRequestNotificationTypeEnum = {
49
49
  NonSignOff: 'non_sign_off',
50
50
  NonSignOn: 'non_sign_on',
51
51
  SignOnRejected: 'sign_on_rejected',
52
- LicenceUpdated: 'licence_updated'
52
+ LicenceUpdated: 'licence_updated',
53
+ ExportReady: 'export_ready',
54
+ ExportFailed: 'export_failed'
53
55
  } as const;
54
56
  export type NotificationPreferencesStoreRequestNotificationTypeEnum = typeof NotificationPreferencesStoreRequestNotificationTypeEnum[keyof typeof NotificationPreferencesStoreRequestNotificationTypeEnum];
55
57
 
@@ -81,7 +81,7 @@ export interface RegisterListResource {
81
81
  * @type {string}
82
82
  * @memberof RegisterListResource
83
83
  */
84
- badgeNumber: string;
84
+ badgeNumber?: string | null;
85
85
  /**
86
86
  *
87
87
  * @type {Date}
@@ -171,7 +171,7 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLong: number;
174
+ signOffLong?: number | null;
175
175
  /**
176
176
  *
177
177
  * @type {boolean}
@@ -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,7 +213,6 @@ 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;
217
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
218
216
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
219
217
  return true;
220
218
  }
@@ -236,7 +234,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
236
234
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
237
235
  'shiftLength': json['shiftLength'],
238
236
  'signOffStatus': json['signOffStatus'],
239
- 'badgeNumber': json['badgeNumber'],
237
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
240
238
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
241
239
  'licenceNumber': json['licenceNumber'],
242
240
  'licenceFirstName': json['licenceFirstName'],
@@ -251,7 +249,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
251
249
  'signOnLat': json['signOnLat'],
252
250
  'signOnLong': json['signOnLong'],
253
251
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
254
- 'signOffLong': json['signOffLong'],
252
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
255
253
  'hasIncidents': json['hasIncidents'],
256
254
  };
257
255
  }
@@ -129,7 +129,7 @@ export interface RegisterResource {
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLong?: number | null;
132
+ signOffLong: number;
133
133
  /**
134
134
  *
135
135
  * @type {string}
@@ -208,6 +208,7 @@ 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 (!('signOffLong' in value) || value['signOffLong'] === 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;
@@ -240,7 +241,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
240
241
  'signOnLat': json['signOnLat'],
241
242
  'signOnLong': json['signOnLong'],
242
243
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
243
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
244
+ 'signOffLong': json['signOffLong'],
244
245
  'licenceNumber': json['licenceNumber'],
245
246
  'licenceExpiry': json['licenceExpiry'],
246
247
  'licenceFirstName': json['licenceFirstName'],
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { AssetLiteResource } from './AssetLiteResource';
16
+ import type { AssetResource } from './AssetResource';
17
17
  import {
18
- AssetLiteResourceFromJSON,
19
- AssetLiteResourceFromJSONTyped,
20
- AssetLiteResourceToJSON,
21
- AssetLiteResourceToJSONTyped,
22
- } from './AssetLiteResource';
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 {AssetLiteResource}
56
+ * @type {AssetResource}
57
57
  * @memberof UserLiteResource
58
58
  */
59
- signatureAsset: AssetLiteResource | null;
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': AssetLiteResourceFromJSON(json['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': AssetLiteResourceToJSON(value['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 {AssetLiteResource}
107
+ * @type {AssetResource}
101
108
  * @memberof UserResource
102
109
  */
103
- signatureAsset: AssetLiteResource | null;
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': AssetLiteResourceFromJSON(json['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': AssetLiteResourceToJSON(value['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']),