@digital8/security-registers-backend-ts-sdk 0.0.711 → 0.0.712

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 (129) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/dist/models/AustralianState.d.ts +31 -0
  4. package/dist/models/AustralianState.js +57 -0
  5. package/dist/models/AuthRegisterGuardRequestLicencesInner.d.ts +3 -11
  6. package/dist/models/AuthRegisterGuardRequestLicencesInner.js +3 -11
  7. package/dist/models/DevicesRegisterRequest.d.ts +3 -10
  8. package/dist/models/DevicesRegisterRequest.js +3 -10
  9. package/dist/models/ExportQueuedResource.d.ts +3 -12
  10. package/dist/models/ExportQueuedResource.js +3 -12
  11. package/dist/models/IncidentFieldSchemaResource.d.ts +6 -21
  12. package/dist/models/IncidentFieldSchemaResource.js +6 -20
  13. package/dist/models/IncidentSchemaType.d.ts +25 -0
  14. package/dist/models/IncidentSchemaType.js +51 -0
  15. package/dist/models/IncidentVideoResource.d.ts +3 -11
  16. package/dist/models/IncidentVideoResource.js +3 -11
  17. package/dist/models/IncidentVideoStatus.d.ts +26 -0
  18. package/dist/models/IncidentVideoStatus.js +52 -0
  19. package/dist/models/LicenceCheckLogResource.d.ts +3 -15
  20. package/dist/models/LicenceCheckLogResource.js +3 -15
  21. package/dist/models/LicenceCheckSource.d.ts +30 -0
  22. package/dist/models/LicenceCheckSource.js +56 -0
  23. package/dist/models/LicenceListResource.d.ts +3 -11
  24. package/dist/models/LicenceListResource.js +3 -11
  25. package/dist/models/LicenceLiteResource.d.ts +3 -11
  26. package/dist/models/LicenceLiteResource.js +3 -11
  27. package/dist/models/LicenceResource.d.ts +3 -11
  28. package/dist/models/LicenceResource.js +3 -11
  29. package/dist/models/LicenceState.d.ts +26 -0
  30. package/dist/models/LicenceState.js +52 -0
  31. package/dist/models/LicencesStoreRequest.d.ts +3 -11
  32. package/dist/models/LicencesStoreRequest.js +3 -11
  33. package/dist/models/LicencesUpdateRequest.d.ts +3 -11
  34. package/dist/models/LicencesUpdateRequest.js +3 -11
  35. package/dist/models/LicencesVerifyRequest.d.ts +3 -11
  36. package/dist/models/LicencesVerifyRequest.js +3 -11
  37. package/dist/models/LoginPlatform.d.ts +25 -0
  38. package/dist/models/LoginPlatform.js +51 -0
  39. package/dist/models/MobileAppConfigRequest.d.ts +3 -10
  40. package/dist/models/MobileAppConfigRequest.js +3 -10
  41. package/dist/models/MobileAppConfigResource.d.ts +3 -10
  42. package/dist/models/MobileAppConfigResource.js +3 -10
  43. package/dist/models/MobileDevicePlatform.d.ts +25 -0
  44. package/dist/models/MobileDevicePlatform.js +51 -0
  45. package/dist/models/MobileDeviceResource.d.ts +3 -10
  46. package/dist/models/MobileDeviceResource.js +3 -10
  47. package/dist/models/NotificationPreferenceResource.d.ts +3 -17
  48. package/dist/models/NotificationPreferenceResource.js +3 -17
  49. package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.d.ts +3 -17
  50. package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.js +3 -17
  51. package/dist/models/NotificationPreferencesStoreRequest.d.ts +3 -17
  52. package/dist/models/NotificationPreferencesStoreRequest.js +3 -17
  53. package/dist/models/NotificationStatus.d.ts +25 -0
  54. package/dist/models/NotificationStatus.js +51 -0
  55. package/dist/models/NotificationType.d.ts +32 -0
  56. package/dist/models/NotificationType.js +58 -0
  57. package/dist/models/PdfExportDownloadType.d.ts +26 -0
  58. package/dist/models/PdfExportDownloadType.js +52 -0
  59. package/dist/models/PdfExportKind.d.ts +28 -0
  60. package/dist/models/PdfExportKind.js +54 -0
  61. package/dist/models/PdfExportResource.d.ts +3 -12
  62. package/dist/models/PdfExportResource.js +3 -12
  63. package/dist/models/PdfExportStatus.d.ts +27 -0
  64. package/dist/models/PdfExportStatus.js +53 -0
  65. package/dist/models/RecordSource.d.ts +28 -0
  66. package/dist/models/RecordSource.js +54 -0
  67. package/dist/models/RegisterListResource.d.ts +3 -11
  68. package/dist/models/RegisterListResource.js +3 -11
  69. package/dist/models/RegisterResource.d.ts +3 -11
  70. package/dist/models/RegisterResource.js +3 -11
  71. package/dist/models/RegistersUpdateRequest.d.ts +3 -11
  72. package/dist/models/RegistersUpdateRequest.js +3 -11
  73. package/dist/models/RosterListResource.d.ts +3 -11
  74. package/dist/models/RosterListResource.js +3 -11
  75. package/dist/models/RosterResource.d.ts +3 -11
  76. package/dist/models/RosterResource.js +3 -11
  77. package/dist/models/RosterWithRegistersResource.d.ts +3 -11
  78. package/dist/models/RosterWithRegistersResource.js +3 -11
  79. package/dist/models/RostersUpdateRequest.d.ts +3 -11
  80. package/dist/models/RostersUpdateRequest.js +3 -11
  81. package/dist/models/SignOffStatus.d.ts +26 -0
  82. package/dist/models/SignOffStatus.js +52 -0
  83. package/dist/models/UserRole.d.ts +29 -0
  84. package/dist/models/UserRole.js +55 -0
  85. package/dist/models/index.d.ts +15 -0
  86. package/dist/models/index.js +15 -0
  87. package/package.json +1 -1
  88. package/src/models/AustralianState.ts +59 -0
  89. package/src/models/AuthRegisterGuardRequestLicencesInner.ts +11 -14
  90. package/src/models/DevicesRegisterRequest.ts +12 -13
  91. package/src/models/ExportQueuedResource.ts +12 -15
  92. package/src/models/IncidentFieldSchemaResource.ts +23 -27
  93. package/src/models/IncidentSchemaType.ts +53 -0
  94. package/src/models/IncidentVideoResource.ts +12 -14
  95. package/src/models/IncidentVideoStatus.ts +54 -0
  96. package/src/models/LicenceCheckLogResource.ts +12 -18
  97. package/src/models/LicenceCheckSource.ts +58 -0
  98. package/src/models/LicenceListResource.ts +11 -14
  99. package/src/models/LicenceLiteResource.ts +12 -14
  100. package/src/models/LicenceResource.ts +11 -14
  101. package/src/models/LicenceState.ts +54 -0
  102. package/src/models/LicencesStoreRequest.ts +11 -14
  103. package/src/models/LicencesUpdateRequest.ts +11 -14
  104. package/src/models/LicencesVerifyRequest.ts +12 -14
  105. package/src/models/LoginPlatform.ts +53 -0
  106. package/src/models/MobileAppConfigRequest.ts +12 -13
  107. package/src/models/MobileAppConfigResource.ts +12 -13
  108. package/src/models/MobileDevicePlatform.ts +53 -0
  109. package/src/models/MobileDeviceResource.ts +12 -13
  110. package/src/models/NotificationPreferenceResource.ts +11 -20
  111. package/src/models/NotificationPreferencesBulkRequestPreferencesInner.ts +12 -20
  112. package/src/models/NotificationPreferencesStoreRequest.ts +12 -20
  113. package/src/models/NotificationStatus.ts +53 -0
  114. package/src/models/NotificationType.ts +60 -0
  115. package/src/models/PdfExportDownloadType.ts +54 -0
  116. package/src/models/PdfExportKind.ts +56 -0
  117. package/src/models/PdfExportResource.ts +12 -15
  118. package/src/models/PdfExportStatus.ts +55 -0
  119. package/src/models/RecordSource.ts +56 -0
  120. package/src/models/RegisterListResource.ts +11 -14
  121. package/src/models/RegisterResource.ts +11 -14
  122. package/src/models/RegistersUpdateRequest.ts +11 -14
  123. package/src/models/RosterListResource.ts +11 -14
  124. package/src/models/RosterResource.ts +11 -14
  125. package/src/models/RosterWithRegistersResource.ts +11 -14
  126. package/src/models/RostersUpdateRequest.ts +12 -14
  127. package/src/models/SignOffStatus.ts +54 -0
  128. package/src/models/UserRole.ts +57 -0
  129. package/src/models/index.ts +15 -0
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Security Registers API
5
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const PdfExportDownloadType = {
21
+ Redirect: 'redirect',
22
+ Stream: 'stream',
23
+ Error: 'error'
24
+ } as const;
25
+ export type PdfExportDownloadType = typeof PdfExportDownloadType[keyof typeof PdfExportDownloadType];
26
+
27
+
28
+ export function instanceOfPdfExportDownloadType(value: any): boolean {
29
+ for (const key in PdfExportDownloadType) {
30
+ if (Object.prototype.hasOwnProperty.call(PdfExportDownloadType, key)) {
31
+ if (PdfExportDownloadType[key as keyof typeof PdfExportDownloadType] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function PdfExportDownloadTypeFromJSON(json: any): PdfExportDownloadType {
40
+ return PdfExportDownloadTypeFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function PdfExportDownloadTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PdfExportDownloadType {
44
+ return json as PdfExportDownloadType;
45
+ }
46
+
47
+ export function PdfExportDownloadTypeToJSON(value?: PdfExportDownloadType | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function PdfExportDownloadTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): PdfExportDownloadType {
52
+ return value as PdfExportDownloadType;
53
+ }
54
+
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Security Registers API
5
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const PdfExportKind = {
21
+ Roster: 'roster',
22
+ IncidentSingle: 'incident_single',
23
+ IncidentBulk: 'incident_bulk',
24
+ IncidentCsvSingle: 'incident_csv_single',
25
+ IncidentCsvBulk: 'incident_csv_bulk'
26
+ } as const;
27
+ export type PdfExportKind = typeof PdfExportKind[keyof typeof PdfExportKind];
28
+
29
+
30
+ export function instanceOfPdfExportKind(value: any): boolean {
31
+ for (const key in PdfExportKind) {
32
+ if (Object.prototype.hasOwnProperty.call(PdfExportKind, key)) {
33
+ if (PdfExportKind[key as keyof typeof PdfExportKind] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+
41
+ export function PdfExportKindFromJSON(json: any): PdfExportKind {
42
+ return PdfExportKindFromJSONTyped(json, false);
43
+ }
44
+
45
+ export function PdfExportKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): PdfExportKind {
46
+ return json as PdfExportKind;
47
+ }
48
+
49
+ export function PdfExportKindToJSON(value?: PdfExportKind | null): any {
50
+ return value as any;
51
+ }
52
+
53
+ export function PdfExportKindToJSONTyped(value: any, ignoreDiscriminator: boolean): PdfExportKind {
54
+ return value as PdfExportKind;
55
+ }
56
+
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { PdfExportStatus } from './PdfExportStatus';
17
+ import {
18
+ PdfExportStatusFromJSON,
19
+ PdfExportStatusFromJSONTyped,
20
+ PdfExportStatusToJSON,
21
+ PdfExportStatusToJSONTyped,
22
+ } from './PdfExportStatus';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -27,10 +35,10 @@ export interface PdfExportResource {
27
35
  id: number;
28
36
  /**
29
37
  *
30
- * @type {string}
38
+ * @type {PdfExportStatus}
31
39
  * @memberof PdfExportResource
32
40
  */
33
- status: PdfExportResourceStatusEnum;
41
+ status: PdfExportStatus;
34
42
  /**
35
43
  *
36
44
  * @type {string}
@@ -46,17 +54,6 @@ export interface PdfExportResource {
46
54
  }
47
55
 
48
56
 
49
- /**
50
- * @export
51
- */
52
- export const PdfExportResourceStatusEnum = {
53
- Pending: 'pending',
54
- Processing: 'processing',
55
- Completed: 'completed',
56
- Failed: 'failed'
57
- } as const;
58
- export type PdfExportResourceStatusEnum = typeof PdfExportResourceStatusEnum[keyof typeof PdfExportResourceStatusEnum];
59
-
60
57
 
61
58
  /**
62
59
  * Check if a given object implements the PdfExportResource interface.
@@ -78,7 +75,7 @@ export function PdfExportResourceFromJSONTyped(json: any, ignoreDiscriminator: b
78
75
  return {
79
76
 
80
77
  'id': json['id'],
81
- 'status': json['status'],
78
+ 'status': PdfExportStatusFromJSON(json['status']),
82
79
  'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
83
80
  'downloadUrl': json['downloadUrl'] == null ? undefined : json['downloadUrl'],
84
81
  };
@@ -96,7 +93,7 @@ export function PdfExportResourceToJSONTyped(value?: PdfExportResource | null, i
96
93
  return {
97
94
 
98
95
  'id': value['id'],
99
- 'status': value['status'],
96
+ 'status': PdfExportStatusToJSON(value['status']),
100
97
  'errorMessage': value['errorMessage'],
101
98
  'downloadUrl': value['downloadUrl'],
102
99
  };
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Security Registers API
5
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const PdfExportStatus = {
21
+ Pending: 'pending',
22
+ Processing: 'processing',
23
+ Completed: 'completed',
24
+ Failed: 'failed'
25
+ } as const;
26
+ export type PdfExportStatus = typeof PdfExportStatus[keyof typeof PdfExportStatus];
27
+
28
+
29
+ export function instanceOfPdfExportStatus(value: any): boolean {
30
+ for (const key in PdfExportStatus) {
31
+ if (Object.prototype.hasOwnProperty.call(PdfExportStatus, key)) {
32
+ if (PdfExportStatus[key as keyof typeof PdfExportStatus] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function PdfExportStatusFromJSON(json: any): PdfExportStatus {
41
+ return PdfExportStatusFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function PdfExportStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PdfExportStatus {
45
+ return json as PdfExportStatus;
46
+ }
47
+
48
+ export function PdfExportStatusToJSON(value?: PdfExportStatus | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function PdfExportStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PdfExportStatus {
53
+ return value as PdfExportStatus;
54
+ }
55
+
@@ -0,0 +1,56 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Security Registers API
5
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const RecordSource = {
21
+ Mobile: 'mobile',
22
+ Web: 'web',
23
+ Manual: 'manual',
24
+ Guardhouse: 'guardhouse',
25
+ Legacy: 'legacy'
26
+ } as const;
27
+ export type RecordSource = typeof RecordSource[keyof typeof RecordSource];
28
+
29
+
30
+ export function instanceOfRecordSource(value: any): boolean {
31
+ for (const key in RecordSource) {
32
+ if (Object.prototype.hasOwnProperty.call(RecordSource, key)) {
33
+ if (RecordSource[key as keyof typeof RecordSource] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+
41
+ export function RecordSourceFromJSON(json: any): RecordSource {
42
+ return RecordSourceFromJSONTyped(json, false);
43
+ }
44
+
45
+ export function RecordSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecordSource {
46
+ return json as RecordSource;
47
+ }
48
+
49
+ export function RecordSourceToJSON(value?: RecordSource | null): any {
50
+ return value as any;
51
+ }
52
+
53
+ export function RecordSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): RecordSource {
54
+ return value as RecordSource;
55
+ }
56
+
@@ -27,6 +27,13 @@ import {
27
27
  UserLiteResourceToJSON,
28
28
  UserLiteResourceToJSONTyped,
29
29
  } from './UserLiteResource';
30
+ import type { SignOffStatus } from './SignOffStatus';
31
+ import {
32
+ SignOffStatusFromJSON,
33
+ SignOffStatusFromJSONTyped,
34
+ SignOffStatusToJSON,
35
+ SignOffStatusToJSONTyped,
36
+ } from './SignOffStatus';
30
37
 
31
38
  /**
32
39
  *
@@ -72,10 +79,10 @@ export interface RegisterListResource {
72
79
  shiftLength: object;
73
80
  /**
74
81
  *
75
- * @type {number}
82
+ * @type {SignOffStatus}
76
83
  * @memberof RegisterListResource
77
84
  */
78
- signOffStatus: RegisterListResourceSignOffStatusEnum;
85
+ signOffStatus: SignOffStatus;
79
86
  /**
80
87
  *
81
88
  * @type {string}
@@ -187,16 +194,6 @@ export interface RegisterListResource {
187
194
  }
188
195
 
189
196
 
190
- /**
191
- * @export
192
- */
193
- export const RegisterListResourceSignOffStatusEnum = {
194
- NUMBER_0: 0,
195
- NUMBER_1: 1,
196
- NUMBER_2: 2
197
- } as const;
198
- export type RegisterListResourceSignOffStatusEnum = typeof RegisterListResourceSignOffStatusEnum[keyof typeof RegisterListResourceSignOffStatusEnum];
199
-
200
197
 
201
198
  /**
202
199
  * Check if a given object implements the RegisterListResource interface.
@@ -240,7 +237,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
240
237
  'startDateTime': (new Date(json['startDateTime'])),
241
238
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
242
239
  'shiftLength': json['shiftLength'],
243
- 'signOffStatus': json['signOffStatus'],
240
+ 'signOffStatus': SignOffStatusFromJSON(json['signOffStatus']),
244
241
  'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
245
242
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
246
243
  'licenceNumber': json['licenceNumber'],
@@ -279,7 +276,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
279
276
  'startDateTime': ((value['startDateTime']).toISOString()),
280
277
  'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
281
278
  'shiftLength': value['shiftLength'],
282
- 'signOffStatus': value['signOffStatus'],
279
+ 'signOffStatus': SignOffStatusToJSON(value['signOffStatus']),
283
280
  'badgeNumber': value['badgeNumber'],
284
281
  'rampReadAt': value['rampReadAt'] === null ? null : ((value['rampReadAt'] as any)?.toISOString()),
285
282
  'licenceNumber': value['licenceNumber'],
@@ -27,6 +27,13 @@ import {
27
27
  UserLiteResourceToJSON,
28
28
  UserLiteResourceToJSONTyped,
29
29
  } from './UserLiteResource';
30
+ import type { SignOffStatus } from './SignOffStatus';
31
+ import {
32
+ SignOffStatusFromJSON,
33
+ SignOffStatusFromJSONTyped,
34
+ SignOffStatusToJSON,
35
+ SignOffStatusToJSONTyped,
36
+ } from './SignOffStatus';
30
37
 
31
38
  /**
32
39
  *
@@ -66,10 +73,10 @@ export interface RegisterResource {
66
73
  finishDateTime?: Date | null;
67
74
  /**
68
75
  *
69
- * @type {number}
76
+ * @type {SignOffStatus}
70
77
  * @memberof RegisterResource
71
78
  */
72
- signOffStatus: RegisterResourceSignOffStatusEnum;
79
+ signOffStatus: SignOffStatus;
73
80
  /**
74
81
  *
75
82
  * @type {object}
@@ -187,16 +194,6 @@ export interface RegisterResource {
187
194
  }
188
195
 
189
196
 
190
- /**
191
- * @export
192
- */
193
- export const RegisterResourceSignOffStatusEnum = {
194
- NUMBER_0: 0,
195
- NUMBER_1: 1,
196
- NUMBER_2: 2
197
- } as const;
198
- export type RegisterResourceSignOffStatusEnum = typeof RegisterResourceSignOffStatusEnum[keyof typeof RegisterResourceSignOffStatusEnum];
199
-
200
197
 
201
198
  /**
202
199
  * Check if a given object implements the RegisterResource interface.
@@ -237,7 +234,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
237
234
  'user': UserLiteResourceFromJSON(json['user']),
238
235
  'startDateTime': (new Date(json['startDateTime'])),
239
236
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
240
- 'signOffStatus': json['signOffStatus'],
237
+ 'signOffStatus': SignOffStatusFromJSON(json['signOffStatus']),
241
238
  'signOnSignature': json['signOnSignature'],
242
239
  'signOffSignature': json['signOffSignature'],
243
240
  'rampReadSignature': json['rampReadSignature'],
@@ -276,7 +273,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
276
273
  'user': UserLiteResourceToJSON(value['user']),
277
274
  'startDateTime': ((value['startDateTime']).toISOString()),
278
275
  'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
279
- 'signOffStatus': value['signOffStatus'],
276
+ 'signOffStatus': SignOffStatusToJSON(value['signOffStatus']),
280
277
  'signOnSignature': value['signOnSignature'],
281
278
  'signOffSignature': value['signOffSignature'],
282
279
  'rampReadSignature': value['rampReadSignature'],
@@ -20,6 +20,13 @@ import {
20
20
  LicencesStoreRequestBackAssetToJSON,
21
21
  LicencesStoreRequestBackAssetToJSONTyped,
22
22
  } from './LicencesStoreRequestBackAsset';
23
+ import type { SignOffStatus } from './SignOffStatus';
24
+ import {
25
+ SignOffStatusFromJSON,
26
+ SignOffStatusFromJSONTyped,
27
+ SignOffStatusToJSON,
28
+ SignOffStatusToJSONTyped,
29
+ } from './SignOffStatus';
23
30
 
24
31
  /**
25
32
  *
@@ -53,10 +60,10 @@ export interface RegistersUpdateRequest {
53
60
  finishDateTime?: Date;
54
61
  /**
55
62
  *
56
- * @type {string}
63
+ * @type {SignOffStatus}
57
64
  * @memberof RegistersUpdateRequest
58
65
  */
59
- signOffStatus?: RegistersUpdateRequestSignOffStatusEnum;
66
+ signOffStatus?: SignOffStatus;
60
67
  /**
61
68
  *
62
69
  * @type {string}
@@ -108,16 +115,6 @@ export interface RegistersUpdateRequest {
108
115
  }
109
116
 
110
117
 
111
- /**
112
- * @export
113
- */
114
- export const RegistersUpdateRequestSignOffStatusEnum = {
115
- _0: '0',
116
- _1: '1',
117
- _2: '2'
118
- } as const;
119
- export type RegistersUpdateRequestSignOffStatusEnum = typeof RegistersUpdateRequestSignOffStatusEnum[keyof typeof RegistersUpdateRequestSignOffStatusEnum];
120
-
121
118
 
122
119
  /**
123
120
  * Check if a given object implements the RegistersUpdateRequest interface.
@@ -140,7 +137,7 @@ export function RegistersUpdateRequestFromJSONTyped(json: any, ignoreDiscriminat
140
137
  'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
141
138
  'startDateTime': json['start_date_time'] == null ? undefined : (new Date(json['start_date_time'])),
142
139
  'finishDateTime': json['finish_date_time'] == null ? undefined : (new Date(json['finish_date_time'])),
143
- 'signOffStatus': json['sign_off_status'] == null ? undefined : json['sign_off_status'],
140
+ 'signOffStatus': json['sign_off_status'] == null ? undefined : SignOffStatusFromJSON(json['sign_off_status']),
144
141
  'badgeNumber': json['badge_number'] == null ? undefined : json['badge_number'],
145
142
  'signOnLat': json['sign_on_lat'] == null ? undefined : json['sign_on_lat'],
146
143
  'signOnLong': json['sign_on_long'] == null ? undefined : json['sign_on_long'],
@@ -167,7 +164,7 @@ export function RegistersUpdateRequestToJSONTyped(value?: RegistersUpdateRequest
167
164
  'venue_id': value['venueId'],
168
165
  'start_date_time': value['startDateTime'] == null ? undefined : ((value['startDateTime']).toISOString()),
169
166
  'finish_date_time': value['finishDateTime'] == null ? undefined : ((value['finishDateTime']).toISOString()),
170
- 'sign_off_status': value['signOffStatus'],
167
+ 'sign_off_status': SignOffStatusToJSON(value['signOffStatus']),
171
168
  'badge_number': value['badgeNumber'],
172
169
  'sign_on_lat': value['signOnLat'],
173
170
  'sign_on_long': value['signOnLong'],
@@ -27,6 +27,13 @@ import {
27
27
  SecurityCompanyLiteResourceToJSON,
28
28
  SecurityCompanyLiteResourceToJSONTyped,
29
29
  } from './SecurityCompanyLiteResource';
30
+ import type { SignOffStatus } from './SignOffStatus';
31
+ import {
32
+ SignOffStatusFromJSON,
33
+ SignOffStatusFromJSONTyped,
34
+ SignOffStatusToJSON,
35
+ SignOffStatusToJSONTyped,
36
+ } from './SignOffStatus';
30
37
 
31
38
  /**
32
39
  *
@@ -78,10 +85,10 @@ export interface RosterListResource {
78
85
  isComplete: boolean;
79
86
  /**
80
87
  *
81
- * @type {number}
88
+ * @type {SignOffStatus}
82
89
  * @memberof RosterListResource
83
90
  */
84
- signOffStatus: RosterListResourceSignOffStatusEnum;
91
+ signOffStatus: SignOffStatus;
85
92
  /**
86
93
  *
87
94
  * @type {number}
@@ -97,16 +104,6 @@ export interface RosterListResource {
97
104
  }
98
105
 
99
106
 
100
- /**
101
- * @export
102
- */
103
- export const RosterListResourceSignOffStatusEnum = {
104
- NUMBER_0: 0,
105
- NUMBER_1: 1,
106
- NUMBER_2: 2
107
- } as const;
108
- export type RosterListResourceSignOffStatusEnum = typeof RosterListResourceSignOffStatusEnum[keyof typeof RosterListResourceSignOffStatusEnum];
109
-
110
107
 
111
108
  /**
112
109
  * Check if a given object implements the RosterListResource interface.
@@ -140,7 +137,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
140
137
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
141
138
  'isCompliant': json['isCompliant'],
142
139
  'isComplete': json['isComplete'],
143
- 'signOffStatus': json['signOffStatus'],
140
+ 'signOffStatus': SignOffStatusFromJSON(json['signOffStatus']),
144
141
  'registerCount': json['registerCount'],
145
142
  'incidentCount': json['incidentCount'],
146
143
  };
@@ -164,7 +161,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
164
161
  'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
165
162
  'isCompliant': value['isCompliant'],
166
163
  'isComplete': value['isComplete'],
167
- 'signOffStatus': value['signOffStatus'],
164
+ 'signOffStatus': SignOffStatusToJSON(value['signOffStatus']),
168
165
  'registerCount': value['registerCount'],
169
166
  'incidentCount': value['incidentCount'],
170
167
  };
@@ -34,6 +34,13 @@ import {
34
34
  RegisterResourceToJSON,
35
35
  RegisterResourceToJSONTyped,
36
36
  } from './RegisterResource';
37
+ import type { SignOffStatus } from './SignOffStatus';
38
+ import {
39
+ SignOffStatusFromJSON,
40
+ SignOffStatusFromJSONTyped,
41
+ SignOffStatusToJSON,
42
+ SignOffStatusToJSONTyped,
43
+ } from './SignOffStatus';
37
44
 
38
45
  /**
39
46
  *
@@ -85,10 +92,10 @@ export interface RosterResource {
85
92
  isComplete: boolean;
86
93
  /**
87
94
  *
88
- * @type {number}
95
+ * @type {SignOffStatus}
89
96
  * @memberof RosterResource
90
97
  */
91
- signOffStatus: RosterResourceSignOffStatusEnum;
98
+ signOffStatus: SignOffStatus;
92
99
  /**
93
100
  *
94
101
  * @type {Array<RegisterResource>}
@@ -98,16 +105,6 @@ export interface RosterResource {
98
105
  }
99
106
 
100
107
 
101
- /**
102
- * @export
103
- */
104
- export const RosterResourceSignOffStatusEnum = {
105
- NUMBER_0: 0,
106
- NUMBER_1: 1,
107
- NUMBER_2: 2
108
- } as const;
109
- export type RosterResourceSignOffStatusEnum = typeof RosterResourceSignOffStatusEnum[keyof typeof RosterResourceSignOffStatusEnum];
110
-
111
108
 
112
109
  /**
113
110
  * Check if a given object implements the RosterResource interface.
@@ -140,7 +137,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
140
137
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
141
138
  'isCompliant': json['isCompliant'],
142
139
  'isComplete': json['isComplete'],
143
- 'signOffStatus': json['signOffStatus'],
140
+ 'signOffStatus': SignOffStatusFromJSON(json['signOffStatus']),
144
141
  'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterResourceFromJSON)),
145
142
  };
146
143
  }
@@ -163,7 +160,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
163
160
  'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
164
161
  'isCompliant': value['isCompliant'],
165
162
  'isComplete': value['isComplete'],
166
- 'signOffStatus': value['signOffStatus'],
163
+ 'signOffStatus': SignOffStatusToJSON(value['signOffStatus']),
167
164
  'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterResourceToJSON)),
168
165
  };
169
166
  }
@@ -34,6 +34,13 @@ import {
34
34
  RegisterListResourceToJSON,
35
35
  RegisterListResourceToJSONTyped,
36
36
  } from './RegisterListResource';
37
+ import type { SignOffStatus } from './SignOffStatus';
38
+ import {
39
+ SignOffStatusFromJSON,
40
+ SignOffStatusFromJSONTyped,
41
+ SignOffStatusToJSON,
42
+ SignOffStatusToJSONTyped,
43
+ } from './SignOffStatus';
37
44
 
38
45
  /**
39
46
  *
@@ -91,10 +98,10 @@ export interface RosterWithRegistersResource {
91
98
  isComplete: boolean;
92
99
  /**
93
100
  *
94
- * @type {number}
101
+ * @type {SignOffStatus}
95
102
  * @memberof RosterWithRegistersResource
96
103
  */
97
- signOffStatus: RosterWithRegistersResourceSignOffStatusEnum;
104
+ signOffStatus: SignOffStatus;
98
105
  /**
99
106
  *
100
107
  * @type {Array<RegisterListResource>}
@@ -104,16 +111,6 @@ export interface RosterWithRegistersResource {
104
111
  }
105
112
 
106
113
 
107
- /**
108
- * @export
109
- */
110
- export const RosterWithRegistersResourceSignOffStatusEnum = {
111
- NUMBER_0: 0,
112
- NUMBER_1: 1,
113
- NUMBER_2: 2
114
- } as const;
115
- export type RosterWithRegistersResourceSignOffStatusEnum = typeof RosterWithRegistersResourceSignOffStatusEnum[keyof typeof RosterWithRegistersResourceSignOffStatusEnum];
116
-
117
114
 
118
115
  /**
119
116
  * Check if a given object implements the RosterWithRegistersResource interface.
@@ -148,7 +145,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
148
145
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
149
146
  'isCompliant': json['isCompliant'],
150
147
  'isComplete': json['isComplete'],
151
- 'signOffStatus': json['signOffStatus'],
148
+ 'signOffStatus': SignOffStatusFromJSON(json['signOffStatus']),
152
149
  'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
153
150
  };
154
151
  }
@@ -172,7 +169,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
172
169
  'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
173
170
  'isCompliant': value['isCompliant'],
174
171
  'isComplete': value['isComplete'],
175
- 'signOffStatus': value['signOffStatus'],
172
+ 'signOffStatus': SignOffStatusToJSON(value['signOffStatus']),
176
173
  'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
177
174
  };
178
175
  }