@digital8/security-registers-backend-ts-sdk 0.0.290 → 0.0.292

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 (51) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +50 -12
  4. package/dist/apis/GeneralApi.js +253 -40
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +1 -3
  7. package/dist/models/AuthChangePasswordRequest.d.ts +38 -0
  8. package/dist/models/AuthChangePasswordRequest.js +55 -0
  9. package/dist/models/AuthProfileUpdateRequest.d.ts +56 -0
  10. package/dist/models/AuthProfileUpdateRequest.js +57 -0
  11. package/dist/models/DevicesRegisterRequest.d.ts +76 -0
  12. package/dist/models/DevicesRegisterRequest.js +73 -0
  13. package/dist/models/IncidentImageResource.d.ts +1 -1
  14. package/dist/models/IncidentImageResource.js +3 -1
  15. package/dist/models/MobileDeviceResource.d.ts +92 -0
  16. package/dist/models/MobileDeviceResource.js +86 -0
  17. package/dist/models/MobileDeviceResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/MobileDeviceResourceArrayResponse.js +50 -0
  19. package/dist/models/MobileInitResource.d.ts +47 -0
  20. package/dist/models/MobileInitResource.js +62 -0
  21. package/dist/models/MobileInitResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/MobileInitResourceArrayResponse.js +50 -0
  23. package/dist/models/RegisterListResource.d.ts +1 -1
  24. package/dist/models/RegisterListResource.js +1 -3
  25. package/dist/models/RegisterResource.d.ts +3 -3
  26. package/dist/models/RegisterResource.js +13 -7
  27. package/dist/models/RosterLiteResource.d.ts +1 -1
  28. package/dist/models/RosterLiteResource.js +3 -4
  29. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  30. package/dist/models/RosterWithRegistersResource.js +3 -4
  31. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  32. package/dist/models/SecurityCompanyResource.js +1 -3
  33. package/dist/models/index.d.ts +7 -0
  34. package/dist/models/index.js +7 -0
  35. package/package.json +1 -1
  36. package/src/apis/GeneralApi.ts +217 -45
  37. package/src/models/AddressResource.ts +2 -3
  38. package/src/models/AuthChangePasswordRequest.ts +75 -0
  39. package/src/models/AuthProfileUpdateRequest.ts +97 -0
  40. package/src/models/DevicesRegisterRequest.ts +126 -0
  41. package/src/models/IncidentImageResource.ts +3 -2
  42. package/src/models/MobileDeviceResource.ts +153 -0
  43. package/src/models/MobileDeviceResourceArrayResponse.ts +73 -0
  44. package/src/models/MobileInitResource.ts +106 -0
  45. package/src/models/MobileInitResourceArrayResponse.ts +73 -0
  46. package/src/models/RegisterListResource.ts +2 -3
  47. package/src/models/RegisterResource.ts +10 -7
  48. package/src/models/RosterLiteResource.ts +3 -4
  49. package/src/models/RosterWithRegistersResource.ts +3 -4
  50. package/src/models/SecurityCompanyResource.ts +2 -3
  51. package/src/models/index.ts +7 -0
@@ -0,0 +1,126 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DevicesRegisterRequest
20
+ */
21
+ export interface DevicesRegisterRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof DevicesRegisterRequest
26
+ */
27
+ deviceId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof DevicesRegisterRequest
32
+ */
33
+ platform: DevicesRegisterRequestPlatformEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof DevicesRegisterRequest
38
+ */
39
+ osVersion?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof DevicesRegisterRequest
44
+ */
45
+ appVersion?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof DevicesRegisterRequest
50
+ */
51
+ model?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof DevicesRegisterRequest
56
+ */
57
+ name?: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof DevicesRegisterRequest
62
+ */
63
+ pushToken?: string;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const DevicesRegisterRequestPlatformEnum = {
71
+ Ios: 'ios',
72
+ Android: 'android'
73
+ } as const;
74
+ export type DevicesRegisterRequestPlatformEnum = typeof DevicesRegisterRequestPlatformEnum[keyof typeof DevicesRegisterRequestPlatformEnum];
75
+
76
+
77
+ /**
78
+ * Check if a given object implements the DevicesRegisterRequest interface.
79
+ */
80
+ export function instanceOfDevicesRegisterRequest(value: object): value is DevicesRegisterRequest {
81
+ if (!('deviceId' in value) || value['deviceId'] === undefined) return false;
82
+ if (!('platform' in value) || value['platform'] === undefined) return false;
83
+ return true;
84
+ }
85
+
86
+ export function DevicesRegisterRequestFromJSON(json: any): DevicesRegisterRequest {
87
+ return DevicesRegisterRequestFromJSONTyped(json, false);
88
+ }
89
+
90
+ export function DevicesRegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DevicesRegisterRequest {
91
+ if (json == null) {
92
+ return json;
93
+ }
94
+ return {
95
+
96
+ 'deviceId': json['device_id'],
97
+ 'platform': json['platform'],
98
+ 'osVersion': json['os_version'] == null ? undefined : json['os_version'],
99
+ 'appVersion': json['app_version'] == null ? undefined : json['app_version'],
100
+ 'model': json['model'] == null ? undefined : json['model'],
101
+ 'name': json['name'] == null ? undefined : json['name'],
102
+ 'pushToken': json['push_token'] == null ? undefined : json['push_token'],
103
+ };
104
+ }
105
+
106
+ export function DevicesRegisterRequestToJSON(json: any): DevicesRegisterRequest {
107
+ return DevicesRegisterRequestToJSONTyped(json, false);
108
+ }
109
+
110
+ export function DevicesRegisterRequestToJSONTyped(value?: DevicesRegisterRequest | null, ignoreDiscriminator: boolean = false): any {
111
+ if (value == null) {
112
+ return value;
113
+ }
114
+
115
+ return {
116
+
117
+ 'device_id': value['deviceId'],
118
+ 'platform': value['platform'],
119
+ 'os_version': value['osVersion'],
120
+ 'app_version': value['appVersion'],
121
+ 'model': value['model'],
122
+ 'name': value['name'],
123
+ 'push_token': value['pushToken'],
124
+ };
125
+ }
126
+
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
36
36
  * @type {string}
37
37
  * @memberof IncidentImageResource
38
38
  */
39
- altText?: string | null;
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'] == null ? undefined : json['alt_text'],
78
+ 'altText': json['alt_text'],
78
79
  'assetId': json['asset_id'],
79
80
  'url': json['url'],
80
81
  };
@@ -0,0 +1,153 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface MobileDeviceResource
20
+ */
21
+ export interface MobileDeviceResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof MobileDeviceResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof MobileDeviceResource
32
+ */
33
+ deviceId: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof MobileDeviceResource
38
+ */
39
+ platform: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof MobileDeviceResource
44
+ */
45
+ osVersion: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof MobileDeviceResource
50
+ */
51
+ appVersion: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof MobileDeviceResource
56
+ */
57
+ model: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof MobileDeviceResource
62
+ */
63
+ name: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof MobileDeviceResource
68
+ */
69
+ pushToken: string;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof MobileDeviceResource
74
+ */
75
+ lastSeenAt: Date;
76
+ /**
77
+ *
78
+ * @type {Date}
79
+ * @memberof MobileDeviceResource
80
+ */
81
+ createdAt?: Date | null;
82
+ /**
83
+ *
84
+ * @type {Date}
85
+ * @memberof MobileDeviceResource
86
+ */
87
+ updatedAt?: Date | null;
88
+ }
89
+
90
+ /**
91
+ * Check if a given object implements the MobileDeviceResource interface.
92
+ */
93
+ export function instanceOfMobileDeviceResource(value: object): value is MobileDeviceResource {
94
+ if (!('deviceId' in value) || value['deviceId'] === undefined) return false;
95
+ if (!('platform' in value) || value['platform'] === undefined) return false;
96
+ if (!('osVersion' in value) || value['osVersion'] === undefined) return false;
97
+ if (!('appVersion' in value) || value['appVersion'] === undefined) return false;
98
+ if (!('model' in value) || value['model'] === undefined) return false;
99
+ if (!('name' in value) || value['name'] === undefined) return false;
100
+ if (!('pushToken' in value) || value['pushToken'] === undefined) return false;
101
+ if (!('lastSeenAt' in value) || value['lastSeenAt'] === undefined) return false;
102
+ return true;
103
+ }
104
+
105
+ export function MobileDeviceResourceFromJSON(json: any): MobileDeviceResource {
106
+ return MobileDeviceResourceFromJSONTyped(json, false);
107
+ }
108
+
109
+ export function MobileDeviceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileDeviceResource {
110
+ if (json == null) {
111
+ return json;
112
+ }
113
+ return {
114
+
115
+ 'id': json['id'] == null ? undefined : json['id'],
116
+ 'deviceId': json['deviceId'],
117
+ 'platform': json['platform'],
118
+ 'osVersion': json['osVersion'],
119
+ 'appVersion': json['appVersion'],
120
+ 'model': json['model'],
121
+ 'name': json['name'],
122
+ 'pushToken': json['pushToken'],
123
+ 'lastSeenAt': (new Date(json['lastSeenAt'])),
124
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
125
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
126
+ };
127
+ }
128
+
129
+ export function MobileDeviceResourceToJSON(json: any): MobileDeviceResource {
130
+ return MobileDeviceResourceToJSONTyped(json, false);
131
+ }
132
+
133
+ export function MobileDeviceResourceToJSONTyped(value?: MobileDeviceResource | null, ignoreDiscriminator: boolean = false): any {
134
+ if (value == null) {
135
+ return value;
136
+ }
137
+
138
+ return {
139
+
140
+ 'id': value['id'],
141
+ 'deviceId': value['deviceId'],
142
+ 'platform': value['platform'],
143
+ 'osVersion': value['osVersion'],
144
+ 'appVersion': value['appVersion'],
145
+ 'model': value['model'],
146
+ 'name': value['name'],
147
+ 'pushToken': value['pushToken'],
148
+ 'lastSeenAt': ((value['lastSeenAt']).toISOString()),
149
+ 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
150
+ 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
151
+ };
152
+ }
153
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { MobileDeviceResource } from './MobileDeviceResource';
17
+ import {
18
+ MobileDeviceResourceFromJSON,
19
+ MobileDeviceResourceFromJSONTyped,
20
+ MobileDeviceResourceToJSON,
21
+ MobileDeviceResourceToJSONTyped,
22
+ } from './MobileDeviceResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface MobileDeviceResourceArrayResponse
28
+ */
29
+ export interface MobileDeviceResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<MobileDeviceResource>}
33
+ * @memberof MobileDeviceResourceArrayResponse
34
+ */
35
+ data?: Array<MobileDeviceResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the MobileDeviceResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfMobileDeviceResourceArrayResponse(value: object): value is MobileDeviceResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function MobileDeviceResourceArrayResponseFromJSON(json: any): MobileDeviceResourceArrayResponse {
46
+ return MobileDeviceResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function MobileDeviceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileDeviceResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(MobileDeviceResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function MobileDeviceResourceArrayResponseToJSON(json: any): MobileDeviceResourceArrayResponse {
60
+ return MobileDeviceResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function MobileDeviceResourceArrayResponseToJSONTyped(value?: MobileDeviceResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(MobileDeviceResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,106 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { NotificationPreferenceResource } from './NotificationPreferenceResource';
17
+ import {
18
+ NotificationPreferenceResourceFromJSON,
19
+ NotificationPreferenceResourceFromJSONTyped,
20
+ NotificationPreferenceResourceToJSON,
21
+ NotificationPreferenceResourceToJSONTyped,
22
+ } from './NotificationPreferenceResource';
23
+ import type { UserResource } from './UserResource';
24
+ import {
25
+ UserResourceFromJSON,
26
+ UserResourceFromJSONTyped,
27
+ UserResourceToJSON,
28
+ UserResourceToJSONTyped,
29
+ } from './UserResource';
30
+ import type { RosterListResource } from './RosterListResource';
31
+ import {
32
+ RosterListResourceFromJSON,
33
+ RosterListResourceFromJSONTyped,
34
+ RosterListResourceToJSON,
35
+ RosterListResourceToJSONTyped,
36
+ } from './RosterListResource';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface MobileInitResource
42
+ */
43
+ export interface MobileInitResource {
44
+ /**
45
+ *
46
+ * @type {UserResource}
47
+ * @memberof MobileInitResource
48
+ */
49
+ user: UserResource | null;
50
+ /**
51
+ *
52
+ * @type {Array<RosterListResource>}
53
+ * @memberof MobileInitResource
54
+ */
55
+ rosters: Array<RosterListResource> | null;
56
+ /**
57
+ *
58
+ * @type {Array<NotificationPreferenceResource>}
59
+ * @memberof MobileInitResource
60
+ */
61
+ notificationPreferences: Array<NotificationPreferenceResource> | null;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the MobileInitResource interface.
66
+ */
67
+ export function instanceOfMobileInitResource(value: object): value is MobileInitResource {
68
+ if (!('user' in value) || value['user'] === undefined) return false;
69
+ if (!('rosters' in value) || value['rosters'] === undefined) return false;
70
+ if (!('notificationPreferences' in value) || value['notificationPreferences'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function MobileInitResourceFromJSON(json: any): MobileInitResource {
75
+ return MobileInitResourceFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function MobileInitResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileInitResource {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'user': UserResourceFromJSON(json['user']),
85
+ 'rosters': (json['rosters'] == null ? null : (json['rosters'] as Array<any>).map(RosterListResourceFromJSON)),
86
+ 'notificationPreferences': (json['notificationPreferences'] == null ? null : (json['notificationPreferences'] as Array<any>).map(NotificationPreferenceResourceFromJSON)),
87
+ };
88
+ }
89
+
90
+ export function MobileInitResourceToJSON(json: any): MobileInitResource {
91
+ return MobileInitResourceToJSONTyped(json, false);
92
+ }
93
+
94
+ export function MobileInitResourceToJSONTyped(value?: MobileInitResource | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'user': UserResourceToJSON(value['user']),
102
+ 'rosters': (value['rosters'] == null ? null : (value['rosters'] as Array<any>).map(RosterListResourceToJSON)),
103
+ 'notificationPreferences': (value['notificationPreferences'] == null ? null : (value['notificationPreferences'] as Array<any>).map(NotificationPreferenceResourceToJSON)),
104
+ };
105
+ }
106
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { MobileInitResource } from './MobileInitResource';
17
+ import {
18
+ MobileInitResourceFromJSON,
19
+ MobileInitResourceFromJSONTyped,
20
+ MobileInitResourceToJSON,
21
+ MobileInitResourceToJSONTyped,
22
+ } from './MobileInitResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface MobileInitResourceArrayResponse
28
+ */
29
+ export interface MobileInitResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<MobileInitResource>}
33
+ * @memberof MobileInitResourceArrayResponse
34
+ */
35
+ data?: Array<MobileInitResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the MobileInitResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfMobileInitResourceArrayResponse(value: object): value is MobileInitResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function MobileInitResourceArrayResponseFromJSON(json: any): MobileInitResourceArrayResponse {
46
+ return MobileInitResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function MobileInitResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileInitResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(MobileInitResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function MobileInitResourceArrayResponseToJSON(json: any): MobileInitResourceArrayResponse {
60
+ return MobileInitResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function MobileInitResourceArrayResponseToJSONTyped(value?: MobileInitResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(MobileInitResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -88,7 +88,7 @@ export interface RegisterListResource {
88
88
  * @type {string}
89
89
  * @memberof RegisterListResource
90
90
  */
91
- badgeNumber: string;
91
+ badgeNumber?: string | null;
92
92
  /**
93
93
  *
94
94
  * @type {string}
@@ -191,7 +191,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
191
191
  if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
192
192
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
193
193
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
194
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
195
194
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
196
195
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
197
196
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
@@ -225,7 +224,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
225
224
  'finishDateTime': (new Date(json['finishDateTime'])),
226
225
  'shiftLength': json['shiftLength'],
227
226
  'signOffStatus': json['signOffStatus'],
228
- 'badgeNumber': json['badgeNumber'],
227
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
229
228
  'licenceNumber': json['licenceNumber'],
230
229
  'licenceFirstName': json['licenceFirstName'],
231
230
  'licenceLastName': json['licenceLastName'],
@@ -63,7 +63,7 @@ export interface RegisterResource {
63
63
  * @type {Date}
64
64
  * @memberof RegisterResource
65
65
  */
66
- finishDateTime?: Date | null;
66
+ finishDateTime: Date;
67
67
  /**
68
68
  *
69
69
  * @type {number}
@@ -123,7 +123,7 @@ export interface RegisterResource {
123
123
  * @type {number}
124
124
  * @memberof RegisterResource
125
125
  */
126
- signOffLat?: number | null;
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?: string | null;
162
+ badgeNumber: string;
163
163
  /**
164
164
  *
165
165
  * @type {Date}
@@ -181,6 +181,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
181
181
  if (!('venue' in value) || value['venue'] === undefined) return false;
182
182
  if (!('user' in value) || value['user'] === undefined) return false;
183
183
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
184
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
184
185
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
185
186
  if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
186
187
  if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
@@ -190,11 +191,13 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
190
191
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
191
192
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
192
193
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
194
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
193
195
  if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
194
196
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
195
197
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
196
198
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
197
199
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
200
+ if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
198
201
  return true;
199
202
  }
200
203
 
@@ -212,7 +215,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
212
215
  'venue': VenueLiteResourceFromJSON(json['venue']),
213
216
  'user': UserLiteResourceFromJSON(json['user']),
214
217
  'startDateTime': (new Date(json['startDateTime'])),
215
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
218
+ 'finishDateTime': (new Date(json['finishDateTime'])),
216
219
  'signOffStatus': json['signOffStatus'],
217
220
  'signOnSignature': json['signOnSignature'],
218
221
  'signOffSignature': json['signOffSignature'],
@@ -222,13 +225,13 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
222
225
  'firstAidImage': json['firstAidImage'],
223
226
  'signOnLat': json['signOnLat'],
224
227
  'signOnLong': json['signOnLong'],
225
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
228
+ 'signOffLat': json['signOffLat'],
226
229
  'signOffLong': json['signOffLong'],
227
230
  'licenceNumber': json['licenceNumber'],
228
231
  'licenceExpiry': json['licenceExpiry'],
229
232
  'licenceFirstName': json['licenceFirstName'],
230
233
  'licenceLastName': json['licenceLastName'],
231
- 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
234
+ 'badgeNumber': json['badgeNumber'],
232
235
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
233
236
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
234
237
  };
@@ -249,7 +252,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
249
252
  'venue': VenueLiteResourceToJSON(value['venue']),
250
253
  'user': UserLiteResourceToJSON(value['user']),
251
254
  'startDateTime': ((value['startDateTime']).toISOString()),
252
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
255
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
253
256
  'signOffStatus': value['signOffStatus'],
254
257
  'signOnSignature': value['signOnSignature'],
255
258
  'signOffSignature': value['signOffSignature'],