@digital8/security-registers-backend-ts-sdk 0.0.358 → 0.0.359

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 (136) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +31 -45
  4. package/dist/apis/GeneralApi.js +163 -223
  5. package/dist/models/AssetLiteResource.d.ts +12 -0
  6. package/dist/models/AssetLiteResource.js +6 -0
  7. package/dist/models/AssetResource.d.ts +13 -1
  8. package/dist/models/AssetResource.js +9 -1
  9. package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -5
  10. package/dist/models/AuthRegisterGuardRequestLicence.js +1 -6
  11. package/dist/models/IncidentFieldAuditResource.d.ts +6 -0
  12. package/dist/models/IncidentFieldAuditResource.js +2 -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/IncidentVersionResource.d.ts +2 -2
  22. package/dist/models/IncidentVideoResource.d.ts +10 -1
  23. package/dist/models/IncidentVideoResource.js +9 -0
  24. package/dist/models/IncidentsUpdateRequest.d.ts +3 -3
  25. package/dist/models/LicenceListResource.d.ts +11 -2
  26. package/dist/models/LicenceListResource.js +9 -0
  27. package/dist/models/LicenceLiteResource.d.ts +11 -2
  28. package/dist/models/LicenceLiteResource.js +9 -0
  29. package/dist/models/LicenceResource.d.ts +11 -2
  30. package/dist/models/LicenceResource.js +9 -0
  31. package/dist/models/LicenceVerificationFallbackSettingResource.d.ts +57 -0
  32. package/dist/models/LicenceVerificationFallbackSettingResource.js +67 -0
  33. package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.js +50 -0
  35. package/dist/models/LicencesStoreRequest.d.ts +0 -5
  36. package/dist/models/LicencesStoreRequest.js +1 -6
  37. package/dist/models/LicencesUpdateRequest.d.ts +0 -5
  38. package/dist/models/LicencesUpdateRequest.js +1 -6
  39. package/dist/models/LicencesVerifyRequest.d.ts +0 -5
  40. package/dist/models/LicencesVerifyRequest.js +1 -6
  41. package/dist/models/MobileDeviceResource.d.ts +9 -1
  42. package/dist/models/MobileDeviceResource.js +8 -0
  43. package/dist/models/NotificationPreferenceResource.d.ts +12 -1
  44. package/dist/models/NotificationPreferenceResource.js +11 -0
  45. package/dist/models/PdfExportQueuedResource.d.ts +11 -1
  46. package/dist/models/PdfExportQueuedResource.js +10 -0
  47. package/dist/models/PdfExportResource.d.ts +11 -1
  48. package/dist/models/PdfExportResource.js +10 -0
  49. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  50. package/dist/models/RegisterGroupedByRosterResource.js +3 -4
  51. package/dist/models/RegisterListResource.d.ts +20 -5
  52. package/dist/models/RegisterListResource.js +17 -7
  53. package/dist/models/RegisterResource.d.ts +19 -4
  54. package/dist/models/RegisterResource.js +15 -8
  55. package/dist/models/RegistersCreateRequest.d.ts +6 -0
  56. package/dist/models/RegistersCreateRequest.js +2 -0
  57. package/dist/models/RegistersSignOnRequest.d.ts +6 -0
  58. package/dist/models/RegistersSignOnRequest.js +2 -0
  59. package/dist/models/RosterListResource.d.ts +11 -2
  60. package/dist/models/RosterListResource.js +12 -4
  61. package/dist/models/RosterLiteResource.d.ts +1 -1
  62. package/dist/models/RosterLiteResource.js +4 -3
  63. package/dist/models/RosterResource.d.ts +11 -2
  64. package/dist/models/RosterResource.js +12 -4
  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/UsersCreateWithRoleRequestLicencesInner.d.ts +0 -5
  72. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +1 -6
  73. package/dist/models/VenueLiteResource.d.ts +6 -0
  74. package/dist/models/VenueLiteResource.js +4 -0
  75. package/dist/models/VenueMobileResource.d.ts +12 -0
  76. package/dist/models/VenueMobileResource.js +8 -0
  77. package/dist/models/VenueResource.d.ts +6 -0
  78. package/dist/models/VenueResource.js +4 -0
  79. package/dist/models/VenuesListAllRequest.d.ts +6 -0
  80. package/dist/models/VenuesListAllRequest.js +2 -0
  81. package/dist/models/VenuesListRequest.d.ts +6 -0
  82. package/dist/models/VenuesListRequest.js +2 -0
  83. package/dist/models/VenuesPublicStoreRequest.d.ts +6 -0
  84. package/dist/models/VenuesPublicStoreRequest.js +2 -0
  85. package/dist/models/VenuesUpdateRequest.d.ts +6 -0
  86. package/dist/models/VenuesUpdateRequest.js +2 -0
  87. package/dist/models/index.d.ts +3 -1
  88. package/dist/models/index.js +3 -1
  89. package/package.json +1 -1
  90. package/src/apis/GeneralApi.ts +136 -194
  91. package/src/models/AssetLiteResource.ts +17 -0
  92. package/src/models/AssetResource.ts +20 -2
  93. package/src/models/AuthRegisterGuardRequestLicence.ts +1 -6
  94. package/src/models/IncidentFieldAuditResource.ts +8 -0
  95. package/src/models/IncidentFieldSchemaResource.ts +16 -4
  96. package/src/models/IncidentFieldSchemasShowRequest.ts +1 -6
  97. package/src/models/IncidentImageResource.ts +2 -3
  98. package/src/models/IncidentListResource.ts +8 -0
  99. package/src/models/IncidentVersionResource.ts +2 -2
  100. package/src/models/IncidentVideoResource.ts +13 -1
  101. package/src/models/IncidentsUpdateRequest.ts +3 -3
  102. package/src/models/LicenceListResource.ts +14 -2
  103. package/src/models/LicenceLiteResource.ts +14 -2
  104. package/src/models/LicenceResource.ts +14 -2
  105. package/src/models/LicenceVerificationFallbackSettingResource.ts +109 -0
  106. package/src/models/LicenceVerificationFallbackSettingResourceArrayResponse.ts +73 -0
  107. package/src/models/LicencesStoreRequest.ts +1 -6
  108. package/src/models/LicencesUpdateRequest.ts +1 -6
  109. package/src/models/LicencesVerifyRequest.ts +1 -6
  110. package/src/models/MobileDeviceResource.ts +12 -1
  111. package/src/models/NotificationPreferenceResource.ts +15 -1
  112. package/src/models/PdfExportQueuedResource.ts +14 -1
  113. package/src/models/PdfExportResource.ts +14 -1
  114. package/src/models/RegisterGroupedByRosterResource.ts +3 -4
  115. package/src/models/RegisterListResource.ts +29 -10
  116. package/src/models/RegisterResource.ts +28 -10
  117. package/src/models/RegistersCreateRequest.ts +8 -0
  118. package/src/models/RegistersSignOnRequest.ts +8 -0
  119. package/src/models/RosterListResource.ts +16 -5
  120. package/src/models/RosterLiteResource.ts +4 -3
  121. package/src/models/RosterResource.ts +16 -5
  122. package/src/models/RosterWithRegistersResource.ts +13 -1
  123. package/src/models/SecurityCompanyResource.ts +2 -3
  124. package/src/models/SettingsLicenceVerificationFallbackUpdateRequest.ts +81 -0
  125. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +1 -6
  126. package/src/models/VenueLiteResource.ts +9 -0
  127. package/src/models/VenueMobileResource.ts +18 -0
  128. package/src/models/VenueResource.ts +9 -0
  129. package/src/models/VenuesListAllRequest.ts +8 -0
  130. package/src/models/VenuesListRequest.ts +8 -0
  131. package/src/models/VenuesPublicStoreRequest.ts +8 -0
  132. package/src/models/VenuesUpdateRequest.ts +8 -0
  133. package/src/models/index.ts +3 -1
  134. package/dist/models/IncidentsExportCsvBulkRequest.d.ts +0 -56
  135. package/dist/models/IncidentsExportCsvBulkRequest.js +0 -63
  136. package/src/models/IncidentsExportCsvBulkRequest.ts +0 -100
@@ -25,6 +25,12 @@ export interface IncidentFieldAuditResource {
25
25
  * @memberof IncidentFieldAuditResource
26
26
  */
27
27
  id: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof IncidentFieldAuditResource
32
+ */
33
+ incidentFieldId?: number | null;
28
34
  /**
29
35
  *
30
36
  * @type {string}
@@ -74,6 +80,7 @@ export function IncidentFieldAuditResourceFromJSONTyped(json: any, ignoreDiscrim
74
80
  return {
75
81
 
76
82
  'id': json['id'],
83
+ 'incidentFieldId': json['incidentFieldId'] == null ? undefined : json['incidentFieldId'],
77
84
  'sectionKey': json['sectionKey'],
78
85
  'fieldKey': json['fieldKey'],
79
86
  'previousValue': json['previousValue'],
@@ -93,6 +100,7 @@ export function IncidentFieldAuditResourceToJSONTyped(value?: IncidentFieldAudit
93
100
  return {
94
101
 
95
102
  'id': value['id'],
103
+ 'incidentFieldId': value['incidentFieldId'],
96
104
  'sectionKey': value['sectionKey'],
97
105
  'fieldKey': value['fieldKey'],
98
106
  'previousValue': value['previousValue'],
@@ -27,16 +27,16 @@ export interface IncidentFieldSchemaResource {
27
27
  id?: number | null;
28
28
  /**
29
29
  *
30
- * @type {object}
30
+ * @type {string}
31
31
  * @memberof IncidentFieldSchemaResource
32
32
  */
33
- state: object;
33
+ state: IncidentFieldSchemaResourceStateEnum;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: boolean; }}
36
+ * @type {object}
37
37
  * @memberof IncidentFieldSchemaResource
38
38
  */
39
- jsonSchema: { [key: string]: boolean; };
39
+ jsonSchema: object;
40
40
  /**
41
41
  *
42
42
  * @type {Date}
@@ -51,6 +51,18 @@ export interface IncidentFieldSchemaResource {
51
51
  updatedAt?: Date | null;
52
52
  }
53
53
 
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const IncidentFieldSchemaResourceStateEnum = {
59
+ Qld: 'QLD',
60
+ Nsw: 'NSW',
61
+ Vic: 'VIC'
62
+ } as const;
63
+ export type IncidentFieldSchemaResourceStateEnum = typeof IncidentFieldSchemaResourceStateEnum[keyof typeof IncidentFieldSchemaResourceStateEnum];
64
+
65
+
54
66
  /**
55
67
  * Check if a given object implements the IncidentFieldSchemaResource interface.
56
68
  */
@@ -34,12 +34,7 @@ export interface IncidentFieldSchemasShowRequest {
34
34
  export const IncidentFieldSchemasShowRequestStateEnum = {
35
35
  Qld: 'QLD',
36
36
  Nsw: 'NSW',
37
- Act: 'ACT',
38
- Vic: 'VIC',
39
- Tas: 'TAS',
40
- Sa: 'SA',
41
- Wa: 'WA',
42
- Nt: 'NT'
37
+ Vic: 'VIC'
43
38
  } as const;
44
39
  export type IncidentFieldSchemasShowRequestStateEnum = typeof IncidentFieldSchemasShowRequestStateEnum[keyof typeof IncidentFieldSchemasShowRequestStateEnum];
45
40
 
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
36
36
  * @type {string}
37
37
  * @memberof IncidentImageResource
38
38
  */
39
- altText: string;
39
+ altText?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {number}
@@ -57,7 +57,6 @@ 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;
61
60
  if (!('assetId' in value) || value['assetId'] === undefined) return false;
62
61
  if (!('url' in value) || value['url'] === undefined) return false;
63
62
  return true;
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
75
74
 
76
75
  'fileId': json['file_id'],
77
76
  'mimeType': json['mime_type'],
78
- 'altText': json['alt_text'],
77
+ 'altText': json['alt_text'] == null ? undefined : json['alt_text'],
79
78
  'assetId': json['asset_id'],
80
79
  'url': json['url'],
81
80
  };
@@ -101,6 +101,12 @@ export interface IncidentListResource {
101
101
  * @memberof IncidentListResource
102
102
  */
103
103
  submittedByGuard: boolean;
104
+ /**
105
+ *
106
+ * @type {number}
107
+ * @memberof IncidentListResource
108
+ */
109
+ videosCount?: number;
104
110
  /**
105
111
  *
106
112
  * @type {Date}
@@ -150,6 +156,7 @@ export function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator
150
156
  'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
151
157
  'state': json['state'] == null ? undefined : json['state'],
152
158
  'submittedByGuard': json['submittedByGuard'],
159
+ 'videosCount': json['videosCount'] == null ? undefined : json['videosCount'],
153
160
  'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
154
161
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
155
162
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -177,6 +184,7 @@ export function IncidentListResourceToJSONTyped(value?: IncidentListResource | n
177
184
  'incidentDateTime': value['incidentDateTime'] === null ? null : ((value['incidentDateTime'] as any)?.toISOString()),
178
185
  'state': value['state'],
179
186
  'submittedByGuard': value['submittedByGuard'],
187
+ 'videosCount': value['videosCount'],
180
188
  'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
181
189
  'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
182
190
  'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
@@ -47,10 +47,10 @@ export interface IncidentVersionResource {
47
47
  user: UserLiteResource | null;
48
48
  /**
49
49
  *
50
- * @type {Array<boolean>}
50
+ * @type {object}
51
51
  * @memberof IncidentVersionResource
52
52
  */
53
- fieldData: Array<boolean>;
53
+ fieldData: object;
54
54
  /**
55
55
  *
56
56
  * @type {Date}
@@ -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
  */
@@ -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. 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.
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
+
@@ -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
 
@@ -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
 
@@ -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
  */
@@ -69,7 +69,7 @@ export interface RegisterGroupedByRosterResource {
69
69
  * @type {Date}
70
70
  * @memberof RegisterGroupedByRosterResource
71
71
  */
72
- finishDateTime: Date;
72
+ finishDateTime?: Date | null;
73
73
  /**
74
74
  *
75
75
  * @type {Array<RegisterListResource>}
@@ -86,7 +86,6 @@ export function instanceOfRegisterGroupedByRosterResource(value: object): value
86
86
  if (!('timezone' in value) || value['timezone'] === undefined) return false;
87
87
  if (!('state' in value) || value['state'] === undefined) return false;
88
88
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
89
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
90
89
  if (!('registers' in value) || value['registers'] === undefined) return false;
91
90
  return true;
92
91
  }
@@ -106,7 +105,7 @@ export function RegisterGroupedByRosterResourceFromJSONTyped(json: any, ignoreDi
106
105
  'timezone': json['timezone'],
107
106
  'state': json['state'],
108
107
  'startDateTime': (new Date(json['startDateTime'])),
109
- 'finishDateTime': (new Date(json['finishDateTime'])),
108
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
110
109
  'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
111
110
  };
112
111
  }
@@ -127,7 +126,7 @@ export function RegisterGroupedByRosterResourceToJSONTyped(value?: RegisterGroup
127
126
  'timezone': value['timezone'],
128
127
  'state': value['state'],
129
128
  'startDateTime': ((value['startDateTime']).toISOString()),
130
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
129
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
131
130
  'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
132
131
  };
133
132
  }