@digital8/security-registers-backend-ts-sdk 0.0.374 → 0.0.376

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 (131) hide show
  1. package/.openapi-generator/FILES +5 -2
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +35 -5
  4. package/dist/apis/GeneralApi.js +165 -2
  5. package/dist/models/AuthProfileUpdateRequest.d.ts +6 -0
  6. package/dist/models/AuthProfileUpdateRequest.js +2 -0
  7. package/dist/models/AuthRegisterGuardRequestLicence.d.ts +3 -8
  8. package/dist/models/AuthRegisterGuardRequestLicence.js +3 -8
  9. package/dist/models/CurrentRegisterResource.d.ts +22 -5
  10. package/dist/models/CurrentRegisterResource.js +14 -7
  11. package/dist/models/IncidentFieldAuditResource.d.ts +18 -0
  12. package/dist/models/IncidentFieldAuditResource.js +6 -0
  13. package/dist/models/IncidentFieldSchemaResource.d.ts +13 -6
  14. package/dist/models/IncidentFieldSchemaResource.js +9 -0
  15. package/dist/models/IncidentFieldSchemasShowRequest.d.ts +0 -5
  16. package/dist/models/IncidentFieldSchemasShowRequest.js +1 -6
  17. package/dist/models/IncidentImageResource.d.ts +1 -1
  18. package/dist/models/IncidentImageResource.js +1 -3
  19. package/dist/models/IncidentListResource.d.ts +6 -0
  20. package/dist/models/IncidentListResource.js +2 -0
  21. package/dist/models/IncidentResource.d.ts +1 -1
  22. package/dist/models/IncidentVersionResource.d.ts +2 -2
  23. package/dist/models/IncidentVideoResource.d.ts +10 -1
  24. package/dist/models/IncidentVideoResource.js +9 -0
  25. package/dist/models/IncidentsStoreRequest.d.ts +1 -1
  26. package/dist/models/IncidentsUpdateRequest.d.ts +3 -3
  27. package/dist/models/LicenceListResource.d.ts +11 -2
  28. package/dist/models/LicenceListResource.js +9 -0
  29. package/dist/models/LicenceLiteResource.d.ts +11 -2
  30. package/dist/models/LicenceLiteResource.js +9 -0
  31. package/dist/models/LicenceResource.d.ts +11 -2
  32. package/dist/models/LicenceResource.js +9 -0
  33. package/dist/models/LicenceVerificationFallbackSettingResource.d.ts +57 -0
  34. package/dist/models/LicenceVerificationFallbackSettingResource.js +67 -0
  35. package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.js +50 -0
  37. package/dist/models/LicencesStoreRequest.d.ts +3 -8
  38. package/dist/models/LicencesStoreRequest.js +3 -8
  39. package/dist/models/LicencesUpdateRequest.d.ts +3 -8
  40. package/dist/models/LicencesUpdateRequest.js +3 -8
  41. package/dist/models/LicencesVerifyRequest.d.ts +1 -6
  42. package/dist/models/LicencesVerifyRequest.js +1 -6
  43. package/dist/models/MobileDeviceResource.d.ts +9 -1
  44. package/dist/models/MobileDeviceResource.js +8 -0
  45. package/dist/models/NotificationPreferenceResource.d.ts +12 -1
  46. package/dist/models/NotificationPreferenceResource.js +11 -0
  47. package/dist/models/PdfExportQueuedResource.d.ts +11 -1
  48. package/dist/models/PdfExportQueuedResource.js +10 -0
  49. package/dist/models/PdfExportResource.d.ts +11 -1
  50. package/dist/models/PdfExportResource.js +10 -0
  51. package/dist/models/RegisterListResource.d.ts +10 -1
  52. package/dist/models/RegisterListResource.js +9 -0
  53. package/dist/models/RegisterResource.d.ts +13 -4
  54. package/dist/models/RegisterResource.js +15 -4
  55. package/dist/models/RegistersSignOffRequest.d.ts +3 -3
  56. package/dist/models/RegistersSignOffRequest.js +2 -2
  57. package/dist/models/RegistersSignOnRequest.d.ts +3 -3
  58. package/dist/models/RegistersSignOnRequest.js +2 -2
  59. package/dist/models/RosterListResource.d.ts +18 -3
  60. package/dist/models/RosterListResource.js +13 -0
  61. package/dist/models/RosterLiteResource.d.ts +1 -1
  62. package/dist/models/RosterLiteResource.js +4 -3
  63. package/dist/models/RosterResource.d.ts +10 -1
  64. package/dist/models/RosterResource.js +9 -0
  65. package/dist/models/RosterWithRegistersResource.d.ts +10 -1
  66. package/dist/models/RosterWithRegistersResource.js +9 -0
  67. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  68. package/dist/models/SecurityCompanyResource.js +1 -3
  69. package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.d.ts +44 -0
  70. package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.js +53 -0
  71. package/dist/models/UserResource.d.ts +9 -2
  72. package/dist/models/UserResource.js +7 -2
  73. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +3 -8
  74. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +3 -8
  75. package/dist/models/VenueLiteResource.d.ts +6 -0
  76. package/dist/models/VenueLiteResource.js +4 -0
  77. package/dist/models/VenueMobileResource.d.ts +105 -0
  78. package/dist/models/VenueMobileResource.js +96 -0
  79. package/dist/models/VenueMobileResourceArrayResponse.d.ts +33 -0
  80. package/dist/models/VenueMobileResourceArrayResponse.js +50 -0
  81. package/dist/models/index.d.ts +5 -2
  82. package/dist/models/index.js +5 -2
  83. package/package.json +1 -1
  84. package/src/apis/GeneralApi.ts +145 -9
  85. package/src/models/AuthProfileUpdateRequest.ts +8 -0
  86. package/src/models/AuthRegisterGuardRequestLicence.ts +6 -11
  87. package/src/models/CurrentRegisterResource.ts +35 -18
  88. package/src/models/IncidentFieldAuditResource.ts +24 -0
  89. package/src/models/IncidentFieldSchemaResource.ts +16 -4
  90. package/src/models/IncidentFieldSchemasShowRequest.ts +1 -6
  91. package/src/models/IncidentImageResource.ts +2 -3
  92. package/src/models/IncidentListResource.ts +8 -0
  93. package/src/models/IncidentResource.ts +1 -1
  94. package/src/models/IncidentVersionResource.ts +2 -2
  95. package/src/models/IncidentVideoResource.ts +13 -1
  96. package/src/models/IncidentsStoreRequest.ts +1 -1
  97. package/src/models/IncidentsUpdateRequest.ts +3 -3
  98. package/src/models/LicenceListResource.ts +14 -2
  99. package/src/models/LicenceLiteResource.ts +14 -2
  100. package/src/models/LicenceResource.ts +14 -2
  101. package/src/models/LicenceVerificationFallbackSettingResource.ts +109 -0
  102. package/src/models/LicenceVerificationFallbackSettingResourceArrayResponse.ts +73 -0
  103. package/src/models/LicencesStoreRequest.ts +6 -11
  104. package/src/models/LicencesUpdateRequest.ts +6 -11
  105. package/src/models/LicencesVerifyRequest.ts +2 -7
  106. package/src/models/MobileDeviceResource.ts +12 -1
  107. package/src/models/NotificationPreferenceResource.ts +15 -1
  108. package/src/models/PdfExportQueuedResource.ts +14 -1
  109. package/src/models/PdfExportResource.ts +14 -1
  110. package/src/models/RegisterListResource.ts +13 -1
  111. package/src/models/RegisterResource.ts +21 -8
  112. package/src/models/RegistersSignOffRequest.ts +5 -5
  113. package/src/models/RegistersSignOnRequest.ts +5 -5
  114. package/src/models/RosterListResource.ts +24 -3
  115. package/src/models/RosterLiteResource.ts +4 -3
  116. package/src/models/RosterResource.ts +13 -1
  117. package/src/models/RosterWithRegistersResource.ts +13 -1
  118. package/src/models/SecurityCompanyResource.ts +2 -3
  119. package/src/models/SettingsLicenceVerificationFallbackUpdateRequest.ts +81 -0
  120. package/src/models/UserResource.ts +20 -4
  121. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +6 -11
  122. package/src/models/VenueLiteResource.ts +9 -0
  123. package/src/models/VenueMobileResource.ts +180 -0
  124. package/src/models/VenueMobileResourceArrayResponse.ts +73 -0
  125. package/src/models/index.ts +5 -2
  126. package/dist/models/NearbyVenueResource.d.ts +0 -62
  127. package/dist/models/NearbyVenueResource.js +0 -69
  128. package/dist/models/NearbyVenueResourceArrayResponse.d.ts +0 -33
  129. package/dist/models/NearbyVenueResourceArrayResponse.js +0 -50
  130. package/src/models/NearbyVenueResource.ts +0 -110
  131. package/src/models/NearbyVenueResourceArrayResponse.ts +0 -73
@@ -30,7 +30,7 @@ export interface IncidentVideoResource {
30
30
  * @type {string}
31
31
  * @memberof IncidentVideoResource
32
32
  */
33
- status: string;
33
+ status: IncidentVideoResourceStatusEnum;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -69,6 +69,18 @@ export interface IncidentVideoResource {
69
69
  updatedAt?: Date | null;
70
70
  }
71
71
 
72
+
73
+ /**
74
+ * @export
75
+ */
76
+ export const IncidentVideoResourceStatusEnum = {
77
+ Processing: 'processing',
78
+ Ready: 'ready',
79
+ Failed: 'failed'
80
+ } as const;
81
+ export type IncidentVideoResourceStatusEnum = typeof IncidentVideoResourceStatusEnum[keyof typeof IncidentVideoResourceStatusEnum];
82
+
83
+
72
84
  /**
73
85
  * Check if a given object implements the IncidentVideoResource interface.
74
86
  */
@@ -26,7 +26,7 @@ export interface IncidentsStoreRequest {
26
26
  */
27
27
  venueId: number;
28
28
  /**
29
- * Dynamic fields keyed by section key. Non-repeatable sections are objects of field_key => value; repeatable sections are arrays of such objects. Shape is driven by the venue state's IncidentFieldSchema.
29
+ * Dynamic fields keyed by section key. Each section is an object of field_key => value. Object fields with repeatable=true are submitted as `{ items: [ { ...subfields } ] }` (no id on create — server assigns one). Shape is driven by the venue state's IncidentFieldSchema.
30
30
  * @type {object}
31
31
  * @memberof IncidentsStoreRequest
32
32
  */
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface IncidentsUpdateRequest {
22
22
  /**
23
- *
24
- * @type {Array<string>}
23
+ * Dynamic fields keyed by section key. Each section is an object of field_key => value. Object fields with repeatable=true are submitted as `{ items: [ { id?, ...subfields } ] }` — existing items must supply their server-issued id; omission from the array soft-deletes the item; entries without an id are created. Shape is driven by the venue state's IncidentFieldSchema.
24
+ * @type {object}
25
25
  * @memberof IncidentsUpdateRequest
26
26
  */
27
- fields: Array<string>;
27
+ fields: object;
28
28
  }
29
29
 
30
30
  /**
@@ -41,10 +41,10 @@ export interface LicenceListResource {
41
41
  user: UserRelationResource | null;
42
42
  /**
43
43
  *
44
- * @type {object}
44
+ * @type {string}
45
45
  * @memberof LicenceListResource
46
46
  */
47
- state: object;
47
+ state: LicenceListResourceStateEnum;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -83,6 +83,18 @@ export interface LicenceListResource {
83
83
  createdAt?: Date | null;
84
84
  }
85
85
 
86
+
87
+ /**
88
+ * @export
89
+ */
90
+ export const LicenceListResourceStateEnum = {
91
+ Qld: 'QLD',
92
+ Nsw: 'NSW',
93
+ Vic: 'VIC'
94
+ } as const;
95
+ export type LicenceListResourceStateEnum = typeof LicenceListResourceStateEnum[keyof typeof LicenceListResourceStateEnum];
96
+
97
+
86
98
  /**
87
99
  * Check if a given object implements the LicenceListResource interface.
88
100
  */
@@ -33,12 +33,24 @@ export interface LicenceLiteResource {
33
33
  licenceNumber: string;
34
34
  /**
35
35
  *
36
- * @type {object}
36
+ * @type {string}
37
37
  * @memberof LicenceLiteResource
38
38
  */
39
- state: object;
39
+ state: LicenceLiteResourceStateEnum;
40
40
  }
41
41
 
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const LicenceLiteResourceStateEnum = {
47
+ Qld: 'QLD',
48
+ Nsw: 'NSW',
49
+ Vic: 'VIC'
50
+ } as const;
51
+ export type LicenceLiteResourceStateEnum = typeof LicenceLiteResourceStateEnum[keyof typeof LicenceLiteResourceStateEnum];
52
+
53
+
42
54
  /**
43
55
  * Check if a given object implements the LicenceLiteResource interface.
44
56
  */
@@ -41,10 +41,10 @@ export interface LicenceResource {
41
41
  user: UserRelationResource | null;
42
42
  /**
43
43
  *
44
- * @type {object}
44
+ * @type {string}
45
45
  * @memberof LicenceResource
46
46
  */
47
- state: object;
47
+ state: LicenceResourceStateEnum;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -113,6 +113,18 @@ export interface LicenceResource {
113
113
  updatedAt?: Date | null;
114
114
  }
115
115
 
116
+
117
+ /**
118
+ * @export
119
+ */
120
+ export const LicenceResourceStateEnum = {
121
+ Qld: 'QLD',
122
+ Nsw: 'NSW',
123
+ Vic: 'VIC'
124
+ } as const;
125
+ export type LicenceResourceStateEnum = typeof LicenceResourceStateEnum[keyof typeof LicenceResourceStateEnum];
126
+
127
+
116
128
  /**
117
129
  * Check if a given object implements the LicenceResource interface.
118
130
  */
@@ -0,0 +1,109 @@
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 { UserLiteResource } from './UserLiteResource';
17
+ import {
18
+ UserLiteResourceFromJSON,
19
+ UserLiteResourceFromJSONTyped,
20
+ UserLiteResourceToJSON,
21
+ UserLiteResourceToJSONTyped,
22
+ } from './UserLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface LicenceVerificationFallbackSettingResource
28
+ */
29
+ export interface LicenceVerificationFallbackSettingResource {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof LicenceVerificationFallbackSettingResource
34
+ */
35
+ id: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof LicenceVerificationFallbackSettingResource
40
+ */
41
+ state: string;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof LicenceVerificationFallbackSettingResource
46
+ */
47
+ enabled: boolean;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof LicenceVerificationFallbackSettingResource
52
+ */
53
+ updatedAt?: Date | null;
54
+ /**
55
+ *
56
+ * @type {UserLiteResource}
57
+ * @memberof LicenceVerificationFallbackSettingResource
58
+ */
59
+ updatedByUser: UserLiteResource | null;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the LicenceVerificationFallbackSettingResource interface.
64
+ */
65
+ export function instanceOfLicenceVerificationFallbackSettingResource(value: object): value is LicenceVerificationFallbackSettingResource {
66
+ if (!('id' in value) || value['id'] === undefined) return false;
67
+ if (!('state' in value) || value['state'] === undefined) return false;
68
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
69
+ if (!('updatedByUser' in value) || value['updatedByUser'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function LicenceVerificationFallbackSettingResourceFromJSON(json: any): LicenceVerificationFallbackSettingResource {
74
+ return LicenceVerificationFallbackSettingResourceFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function LicenceVerificationFallbackSettingResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceVerificationFallbackSettingResource {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'id': json['id'],
84
+ 'state': json['state'],
85
+ 'enabled': json['enabled'],
86
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
87
+ 'updatedByUser': UserLiteResourceFromJSON(json['updatedByUser']),
88
+ };
89
+ }
90
+
91
+ export function LicenceVerificationFallbackSettingResourceToJSON(json: any): LicenceVerificationFallbackSettingResource {
92
+ return LicenceVerificationFallbackSettingResourceToJSONTyped(json, false);
93
+ }
94
+
95
+ export function LicenceVerificationFallbackSettingResourceToJSONTyped(value?: LicenceVerificationFallbackSettingResource | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'id': value['id'],
103
+ 'state': value['state'],
104
+ 'enabled': value['enabled'],
105
+ 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
106
+ 'updatedByUser': UserLiteResourceToJSON(value['updatedByUser']),
107
+ };
108
+ }
109
+
@@ -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 { LicenceVerificationFallbackSettingResource } from './LicenceVerificationFallbackSettingResource';
17
+ import {
18
+ LicenceVerificationFallbackSettingResourceFromJSON,
19
+ LicenceVerificationFallbackSettingResourceFromJSONTyped,
20
+ LicenceVerificationFallbackSettingResourceToJSON,
21
+ LicenceVerificationFallbackSettingResourceToJSONTyped,
22
+ } from './LicenceVerificationFallbackSettingResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface LicenceVerificationFallbackSettingResourceArrayResponse
28
+ */
29
+ export interface LicenceVerificationFallbackSettingResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<LicenceVerificationFallbackSettingResource>}
33
+ * @memberof LicenceVerificationFallbackSettingResourceArrayResponse
34
+ */
35
+ data?: Array<LicenceVerificationFallbackSettingResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the LicenceVerificationFallbackSettingResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfLicenceVerificationFallbackSettingResourceArrayResponse(value: object): value is LicenceVerificationFallbackSettingResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function LicenceVerificationFallbackSettingResourceArrayResponseFromJSON(json: any): LicenceVerificationFallbackSettingResourceArrayResponse {
46
+ return LicenceVerificationFallbackSettingResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function LicenceVerificationFallbackSettingResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceVerificationFallbackSettingResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LicenceVerificationFallbackSettingResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function LicenceVerificationFallbackSettingResourceArrayResponseToJSON(json: any): LicenceVerificationFallbackSettingResourceArrayResponse {
60
+ return LicenceVerificationFallbackSettingResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function LicenceVerificationFallbackSettingResourceArrayResponseToJSONTyped(value?: LicenceVerificationFallbackSettingResourceArrayResponse | 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(LicenceVerificationFallbackSettingResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -65,11 +65,11 @@ export interface LicencesStoreRequest {
65
65
  */
66
66
  lastName: string;
67
67
  /**
68
- *
69
- * @type {Date}
68
+ * ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
69
+ * @type {string}
70
70
  * @memberof LicencesStoreRequest
71
71
  */
72
- expiryDate: Date;
72
+ expiryDate: string;
73
73
  /**
74
74
  *
75
75
  * @type {AuthRegisterGuardRequestProfileSignature}
@@ -103,12 +103,7 @@ export interface LicencesStoreRequest {
103
103
  export const LicencesStoreRequestStateEnum = {
104
104
  Qld: 'QLD',
105
105
  Nsw: 'NSW',
106
- Act: 'ACT',
107
- Vic: 'VIC',
108
- Tas: 'TAS',
109
- Sa: 'SA',
110
- Wa: 'WA',
111
- Nt: 'NT'
106
+ Vic: 'VIC'
112
107
  } as const;
113
108
  export type LicencesStoreRequestStateEnum = typeof LicencesStoreRequestStateEnum[keyof typeof LicencesStoreRequestStateEnum];
114
109
 
@@ -142,7 +137,7 @@ export function LicencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator
142
137
  'licenceNumber': json['licence_number'],
143
138
  'firstName': json['first_name'],
144
139
  'lastName': json['last_name'],
145
- 'expiryDate': (new Date(json['expiry_date'])),
140
+ 'expiryDate': json['expiry_date'],
146
141
  'frontAsset': AuthRegisterGuardRequestProfileSignatureFromJSON(json['front_asset']),
147
142
  'backAsset': json['back_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['back_asset']),
148
143
  'rsaAsset': json['rsa_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['rsa_asset']),
@@ -166,7 +161,7 @@ export function LicencesStoreRequestToJSONTyped(value?: LicencesStoreRequest | n
166
161
  'licence_number': value['licenceNumber'],
167
162
  'first_name': value['firstName'],
168
163
  'last_name': value['lastName'],
169
- 'expiry_date': ((value['expiryDate']).toISOString()),
164
+ 'expiry_date': value['expiryDate'],
170
165
  'front_asset': AuthRegisterGuardRequestProfileSignatureToJSON(value['frontAsset']),
171
166
  'back_asset': LicencesStoreRequestBackAssetToJSON(value['backAsset']),
172
167
  'rsa_asset': LicencesStoreRequestBackAssetToJSON(value['rsaAsset']),
@@ -52,11 +52,11 @@ export interface LicencesUpdateRequest {
52
52
  */
53
53
  lastName?: string;
54
54
  /**
55
- *
56
- * @type {Date}
55
+ * ISO 8601 calendar date (Y-m-d) in the licence state's timezone. Time and timezone offset must be omitted.
56
+ * @type {string}
57
57
  * @memberof LicencesUpdateRequest
58
58
  */
59
- expiryDate?: Date;
59
+ expiryDate?: string;
60
60
  /**
61
61
  *
62
62
  * @type {LicencesStoreRequestBackAsset}
@@ -90,12 +90,7 @@ export interface LicencesUpdateRequest {
90
90
  export const LicencesUpdateRequestStateEnum = {
91
91
  Qld: 'QLD',
92
92
  Nsw: 'NSW',
93
- Act: 'ACT',
94
- Vic: 'VIC',
95
- Tas: 'TAS',
96
- Sa: 'SA',
97
- Wa: 'WA',
98
- Nt: 'NT'
93
+ Vic: 'VIC'
99
94
  } as const;
100
95
  export type LicencesUpdateRequestStateEnum = typeof LicencesUpdateRequestStateEnum[keyof typeof LicencesUpdateRequestStateEnum];
101
96
 
@@ -121,7 +116,7 @@ export function LicencesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminato
121
116
  'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
122
117
  'firstName': json['first_name'] == null ? undefined : json['first_name'],
123
118
  'lastName': json['last_name'] == null ? undefined : json['last_name'],
124
- 'expiryDate': json['expiry_date'] == null ? undefined : (new Date(json['expiry_date'])),
119
+ 'expiryDate': json['expiry_date'] == null ? undefined : json['expiry_date'],
125
120
  'frontAsset': json['front_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['front_asset']),
126
121
  'backAsset': json['back_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['back_asset']),
127
122
  'rsaAsset': json['rsa_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['rsa_asset']),
@@ -144,7 +139,7 @@ export function LicencesUpdateRequestToJSONTyped(value?: LicencesUpdateRequest |
144
139
  'licence_number': value['licenceNumber'],
145
140
  'first_name': value['firstName'],
146
141
  'last_name': value['lastName'],
147
- 'expiry_date': value['expiryDate'] == null ? undefined : ((value['expiryDate']).toISOString()),
142
+ 'expiry_date': value['expiryDate'],
148
143
  'front_asset': LicencesStoreRequestBackAssetToJSON(value['frontAsset']),
149
144
  'back_asset': LicencesStoreRequestBackAssetToJSON(value['backAsset']),
150
145
  'rsa_asset': LicencesStoreRequestBackAssetToJSON(value['rsaAsset']),
@@ -44,7 +44,7 @@ export interface LicencesVerifyRequest {
44
44
  */
45
45
  lastName: string;
46
46
  /**
47
- *
47
+ * ISO 8601 local-with-offset, anchored to 00:00 in the licence state's timezone (e.g. 2026-05-13T00:00:00+11:00). The offset is required so verification against state systems uses the correct wall-clock day.
48
48
  * @type {string}
49
49
  * @memberof LicencesVerifyRequest
50
50
  */
@@ -58,12 +58,7 @@ export interface LicencesVerifyRequest {
58
58
  export const LicencesVerifyRequestStateEnum = {
59
59
  Qld: 'QLD',
60
60
  Nsw: 'NSW',
61
- Act: 'ACT',
62
- Vic: 'VIC',
63
- Tas: 'TAS',
64
- Sa: 'SA',
65
- Wa: 'WA',
66
- Nt: 'NT'
61
+ Vic: 'VIC'
67
62
  } as const;
68
63
  export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEnum[keyof typeof LicencesVerifyRequestStateEnum];
69
64
 
@@ -36,7 +36,7 @@ export interface MobileDeviceResource {
36
36
  * @type {string}
37
37
  * @memberof MobileDeviceResource
38
38
  */
39
- platform: string;
39
+ platform: MobileDeviceResourcePlatformEnum;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -87,6 +87,17 @@ export interface MobileDeviceResource {
87
87
  updatedAt?: Date | null;
88
88
  }
89
89
 
90
+
91
+ /**
92
+ * @export
93
+ */
94
+ export const MobileDeviceResourcePlatformEnum = {
95
+ Ios: 'ios',
96
+ Android: 'android'
97
+ } as const;
98
+ export type MobileDeviceResourcePlatformEnum = typeof MobileDeviceResourcePlatformEnum[keyof typeof MobileDeviceResourcePlatformEnum];
99
+
100
+
90
101
  /**
91
102
  * Check if a given object implements the MobileDeviceResource interface.
92
103
  */
@@ -38,7 +38,7 @@ export interface NotificationPreferenceResource {
38
38
  * @type {string}
39
39
  * @memberof NotificationPreferenceResource
40
40
  */
41
- notificationType: string;
41
+ notificationType: NotificationPreferenceResourceNotificationTypeEnum;
42
42
  /**
43
43
  *
44
44
  * @type {VenueLiteResource}
@@ -65,6 +65,20 @@ export interface NotificationPreferenceResource {
65
65
  updatedAt?: Date | null;
66
66
  }
67
67
 
68
+
69
+ /**
70
+ * @export
71
+ */
72
+ export const NotificationPreferenceResourceNotificationTypeEnum = {
73
+ IncidentAdded: 'incident_added',
74
+ NonSignOff: 'non_sign_off',
75
+ NonSignOn: 'non_sign_on',
76
+ SignOnRejected: 'sign_on_rejected',
77
+ LicenceUpdated: 'licence_updated'
78
+ } as const;
79
+ export type NotificationPreferenceResourceNotificationTypeEnum = typeof NotificationPreferenceResourceNotificationTypeEnum[keyof typeof NotificationPreferenceResourceNotificationTypeEnum];
80
+
81
+
68
82
  /**
69
83
  * Check if a given object implements the NotificationPreferenceResource interface.
70
84
  */
@@ -30,7 +30,7 @@ export interface PdfExportQueuedResource {
30
30
  * @type {string}
31
31
  * @memberof PdfExportQueuedResource
32
32
  */
33
- status: string;
33
+ status: PdfExportQueuedResourceStatusEnum;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -39,6 +39,19 @@ export interface PdfExportQueuedResource {
39
39
  message: string;
40
40
  }
41
41
 
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const PdfExportQueuedResourceStatusEnum = {
47
+ Pending: 'pending',
48
+ Processing: 'processing',
49
+ Completed: 'completed',
50
+ Failed: 'failed'
51
+ } as const;
52
+ export type PdfExportQueuedResourceStatusEnum = typeof PdfExportQueuedResourceStatusEnum[keyof typeof PdfExportQueuedResourceStatusEnum];
53
+
54
+
42
55
  /**
43
56
  * Check if a given object implements the PdfExportQueuedResource interface.
44
57
  */
@@ -30,7 +30,7 @@ export interface PdfExportResource {
30
30
  * @type {string}
31
31
  * @memberof PdfExportResource
32
32
  */
33
- status: string;
33
+ status: PdfExportResourceStatusEnum;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -45,6 +45,19 @@ export interface PdfExportResource {
45
45
  downloadUrl: string;
46
46
  }
47
47
 
48
+
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
+
48
61
  /**
49
62
  * Check if a given object implements the PdfExportResource interface.
50
63
  */
@@ -75,7 +75,7 @@ export interface RegisterListResource {
75
75
  * @type {number}
76
76
  * @memberof RegisterListResource
77
77
  */
78
- signOffStatus: number;
78
+ signOffStatus: RegisterListResourceSignOffStatusEnum;
79
79
  /**
80
80
  *
81
81
  * @type {string}
@@ -180,6 +180,18 @@ export interface RegisterListResource {
180
180
  hasIncidents: boolean;
181
181
  }
182
182
 
183
+
184
+ /**
185
+ * @export
186
+ */
187
+ export const RegisterListResourceSignOffStatusEnum = {
188
+ NUMBER_0: 0,
189
+ NUMBER_1: 1,
190
+ NUMBER_2: 2
191
+ } as const;
192
+ export type RegisterListResourceSignOffStatusEnum = typeof RegisterListResourceSignOffStatusEnum[keyof typeof RegisterListResourceSignOffStatusEnum];
193
+
194
+
183
195
  /**
184
196
  * Check if a given object implements the RegisterListResource interface.
185
197
  */
@@ -69,7 +69,7 @@ export interface RegisterResource {
69
69
  * @type {number}
70
70
  * @memberof RegisterResource
71
71
  */
72
- signOffStatus: number;
72
+ signOffStatus: RegisterResourceSignOffStatusEnum;
73
73
  /**
74
74
  *
75
75
  * @type {object}
@@ -123,13 +123,13 @@ export interface RegisterResource {
123
123
  * @type {number}
124
124
  * @memberof RegisterResource
125
125
  */
126
- signOffLat: number;
126
+ signOffLat?: number | null;
127
127
  /**
128
128
  *
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}
@@ -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}
@@ -180,6 +180,18 @@ export interface RegisterResource {
180
180
  updatedAt?: Date | null;
181
181
  }
182
182
 
183
+
184
+ /**
185
+ * @export
186
+ */
187
+ export const RegisterResourceSignOffStatusEnum = {
188
+ NUMBER_0: 0,
189
+ NUMBER_1: 1,
190
+ NUMBER_2: 2
191
+ } as const;
192
+ export type RegisterResourceSignOffStatusEnum = typeof RegisterResourceSignOffStatusEnum[keyof typeof RegisterResourceSignOffStatusEnum];
193
+
194
+
183
195
  /**
184
196
  * Check if a given object implements the RegisterResource interface.
185
197
  */
@@ -197,11 +209,12 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
197
209
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
198
210
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
199
211
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
200
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
212
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
201
213
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
202
214
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
203
215
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
204
216
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
217
+ if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
205
218
  if (!('rampReadAt' in value) || value['rampReadAt'] === undefined) return false;
206
219
  return true;
207
220
  }
@@ -230,13 +243,13 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
230
243
  'firstAidImage': json['firstAidImage'],
231
244
  'signOnLat': json['signOnLat'],
232
245
  'signOnLong': json['signOnLong'],
233
- 'signOffLat': json['signOffLat'],
234
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
246
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
247
+ 'signOffLong': json['signOffLong'],
235
248
  'licenceNumber': json['licenceNumber'],
236
249
  'licenceExpiry': json['licenceExpiry'],
237
250
  'licenceFirstName': json['licenceFirstName'],
238
251
  'licenceLastName': json['licenceLastName'],
239
- 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
252
+ 'badgeNumber': json['badgeNumber'],
240
253
  'rampReadAt': (new Date(json['rampReadAt'])),
241
254
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
242
255
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),