@digital8/security-registers-backend-ts-sdk 0.0.394 → 0.0.396

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 (169) hide show
  1. package/.openapi-generator/FILES +17 -4
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +162 -9
  4. package/dist/apis/GeneralApi.js +823 -43
  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/ExportQueuedResource.d.ts +54 -0
  12. package/dist/models/{PdfExportQueuedResource.js → ExportQueuedResource.js} +23 -13
  13. package/dist/models/ExportQueuedResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/ExportQueuedResourceArrayResponse.js +50 -0
  15. package/dist/models/IncidentFieldAuditResource.d.ts +17 -2
  16. package/dist/models/IncidentFieldAuditResource.js +7 -0
  17. package/dist/models/IncidentFieldItemLiteResource.d.ts +38 -0
  18. package/dist/models/IncidentFieldItemLiteResource.js +54 -0
  19. package/dist/models/IncidentFieldItemLiteResourceArrayResponse.d.ts +33 -0
  20. package/dist/models/IncidentFieldItemLiteResourceArrayResponse.js +50 -0
  21. package/dist/models/IncidentFieldSchemaResource.d.ts +13 -6
  22. package/dist/models/IncidentFieldSchemaResource.js +9 -0
  23. package/dist/models/IncidentFieldSchemasShowRequest.d.ts +0 -5
  24. package/dist/models/IncidentFieldSchemasShowRequest.js +1 -6
  25. package/dist/models/IncidentListResource.d.ts +6 -0
  26. package/dist/models/IncidentListResource.js +2 -0
  27. package/dist/models/IncidentResource.d.ts +1 -1
  28. package/dist/models/IncidentVersionResource.d.ts +2 -2
  29. package/dist/models/IncidentVideoResource.d.ts +10 -1
  30. package/dist/models/IncidentVideoResource.js +9 -0
  31. package/dist/models/IncidentsExportCsvBulkRequest.d.ts +56 -0
  32. package/dist/models/IncidentsExportCsvBulkRequest.js +63 -0
  33. package/dist/models/IncidentsStoreRequest.d.ts +1 -1
  34. package/dist/models/IncidentsUpdateRequest.d.ts +3 -3
  35. package/dist/models/LicenceCheckLogResource.d.ts +106 -0
  36. package/dist/models/LicenceCheckLogResource.js +100 -0
  37. package/dist/models/LicenceCheckLogResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/LicenceCheckLogResourceArrayResponse.js +50 -0
  39. package/dist/models/LicenceListResource.d.ts +11 -2
  40. package/dist/models/LicenceListResource.js +9 -0
  41. package/dist/models/LicenceLiteResource.d.ts +11 -2
  42. package/dist/models/LicenceLiteResource.js +9 -0
  43. package/dist/models/LicenceResource.d.ts +11 -2
  44. package/dist/models/LicenceResource.js +9 -0
  45. package/dist/models/LicenceVerificationFallbackSettingResource.d.ts +57 -0
  46. package/dist/models/LicenceVerificationFallbackSettingResource.js +67 -0
  47. package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.d.ts +33 -0
  48. package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.js +50 -0
  49. package/dist/models/LicencesCheckLogsListRequest.d.ts +89 -0
  50. package/dist/models/LicencesCheckLogsListRequest.js +77 -0
  51. package/dist/models/LicencesStoreRequest.d.ts +3 -8
  52. package/dist/models/LicencesStoreRequest.js +3 -8
  53. package/dist/models/LicencesUpdateRequest.d.ts +3 -8
  54. package/dist/models/LicencesUpdateRequest.js +3 -8
  55. package/dist/models/LicencesVerifyRequest.d.ts +1 -6
  56. package/dist/models/LicencesVerifyRequest.js +1 -6
  57. package/dist/models/MobileDeviceResource.d.ts +9 -1
  58. package/dist/models/MobileDeviceResource.js +8 -0
  59. package/dist/models/NotificationPreferenceResource.d.ts +13 -1
  60. package/dist/models/NotificationPreferenceResource.js +12 -0
  61. package/dist/models/NotificationPreferencesBulkRequest.d.ts +33 -0
  62. package/dist/models/NotificationPreferencesBulkRequest.js +52 -0
  63. package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.d.ts +56 -0
  64. package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.js +69 -0
  65. package/dist/models/NotificationTypeResource.d.ts +6 -0
  66. package/dist/models/NotificationTypeResource.js +4 -0
  67. package/dist/models/PaginatedLicenceCheckLogResourceResponse.d.ts +40 -0
  68. package/dist/models/PaginatedLicenceCheckLogResourceResponse.js +57 -0
  69. package/dist/models/PdfExportResource.d.ts +11 -1
  70. package/dist/models/PdfExportResource.js +10 -0
  71. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  72. package/dist/models/RegisterGroupedByRosterResource.js +3 -4
  73. package/dist/models/RegisterListResource.d.ts +13 -4
  74. package/dist/models/RegisterListResource.js +13 -3
  75. package/dist/models/RegisterResource.d.ts +13 -4
  76. package/dist/models/RegisterResource.js +20 -9
  77. package/dist/models/RegistersSignOffRequest.d.ts +3 -3
  78. package/dist/models/RegistersSignOffRequest.js +2 -2
  79. package/dist/models/RegistersSignOnRequest.d.ts +3 -3
  80. package/dist/models/RegistersSignOnRequest.js +2 -2
  81. package/dist/models/RosterListResource.d.ts +18 -3
  82. package/dist/models/RosterListResource.js +13 -0
  83. package/dist/models/RosterResource.d.ts +11 -2
  84. package/dist/models/RosterResource.js +13 -3
  85. package/dist/models/RosterWithRegistersResource.d.ts +10 -1
  86. package/dist/models/RosterWithRegistersResource.js +9 -0
  87. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  88. package/dist/models/SecurityCompanyResource.js +3 -1
  89. package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.d.ts +44 -0
  90. package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.js +53 -0
  91. package/dist/models/UserResource.d.ts +9 -2
  92. package/dist/models/UserResource.js +7 -2
  93. package/dist/models/UserVenueResource.d.ts +105 -0
  94. package/dist/models/UserVenueResource.js +96 -0
  95. package/dist/models/UserVenueResourceArrayResponse.d.ts +33 -0
  96. package/dist/models/UserVenueResourceArrayResponse.js +50 -0
  97. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +3 -8
  98. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +3 -8
  99. package/dist/models/VenueLiteResource.d.ts +6 -0
  100. package/dist/models/VenueLiteResource.js +4 -0
  101. package/dist/models/VenuesListForUserRequest.d.ts +32 -0
  102. package/dist/models/VenuesListForUserRequest.js +51 -0
  103. package/dist/models/index.d.ts +17 -4
  104. package/dist/models/index.js +17 -4
  105. package/package.json +1 -1
  106. package/src/apis/GeneralApi.ts +714 -28
  107. package/src/models/AuthProfileUpdateRequest.ts +8 -0
  108. package/src/models/AuthRegisterGuardRequestLicence.ts +6 -11
  109. package/src/models/CurrentRegisterResource.ts +35 -18
  110. package/src/models/ExportQueuedResource.ts +97 -0
  111. package/src/models/ExportQueuedResourceArrayResponse.ts +73 -0
  112. package/src/models/IncidentFieldAuditResource.ts +27 -2
  113. package/src/models/IncidentFieldItemLiteResource.ts +74 -0
  114. package/src/models/IncidentFieldItemLiteResourceArrayResponse.ts +73 -0
  115. package/src/models/IncidentFieldSchemaResource.ts +16 -4
  116. package/src/models/IncidentFieldSchemasShowRequest.ts +1 -6
  117. package/src/models/IncidentListResource.ts +8 -0
  118. package/src/models/IncidentResource.ts +1 -1
  119. package/src/models/IncidentVersionResource.ts +2 -2
  120. package/src/models/IncidentVideoResource.ts +13 -1
  121. package/src/models/IncidentsExportCsvBulkRequest.ts +100 -0
  122. package/src/models/IncidentsStoreRequest.ts +1 -1
  123. package/src/models/IncidentsUpdateRequest.ts +3 -3
  124. package/src/models/LicenceCheckLogResource.ts +170 -0
  125. package/src/models/LicenceCheckLogResourceArrayResponse.ts +73 -0
  126. package/src/models/LicenceListResource.ts +14 -2
  127. package/src/models/LicenceLiteResource.ts +14 -2
  128. package/src/models/LicenceResource.ts +14 -2
  129. package/src/models/LicenceVerificationFallbackSettingResource.ts +109 -0
  130. package/src/models/LicenceVerificationFallbackSettingResourceArrayResponse.ts +73 -0
  131. package/src/models/LicencesCheckLogsListRequest.ts +140 -0
  132. package/src/models/LicencesStoreRequest.ts +6 -11
  133. package/src/models/LicencesUpdateRequest.ts +6 -11
  134. package/src/models/LicencesVerifyRequest.ts +2 -7
  135. package/src/models/MobileDeviceResource.ts +12 -1
  136. package/src/models/NotificationPreferenceResource.ts +16 -1
  137. package/src/models/NotificationPreferencesBulkRequest.ts +74 -0
  138. package/src/models/NotificationPreferencesBulkRequestPreferencesInner.ts +98 -0
  139. package/src/models/NotificationTypeResource.ts +9 -0
  140. package/src/models/PaginatedLicenceCheckLogResourceResponse.ts +90 -0
  141. package/src/models/PdfExportResource.ts +14 -1
  142. package/src/models/RegisterGroupedByRosterResource.ts +3 -4
  143. package/src/models/RegisterListResource.ts +19 -6
  144. package/src/models/RegisterResource.ts +22 -9
  145. package/src/models/RegistersSignOffRequest.ts +5 -5
  146. package/src/models/RegistersSignOnRequest.ts +5 -5
  147. package/src/models/RosterListResource.ts +24 -3
  148. package/src/models/RosterResource.ts +17 -4
  149. package/src/models/RosterWithRegistersResource.ts +13 -1
  150. package/src/models/SecurityCompanyResource.ts +3 -2
  151. package/src/models/SettingsLicenceVerificationFallbackUpdateRequest.ts +81 -0
  152. package/src/models/UserResource.ts +20 -4
  153. package/src/models/UserVenueResource.ts +180 -0
  154. package/src/models/UserVenueResourceArrayResponse.ts +73 -0
  155. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +6 -11
  156. package/src/models/VenueLiteResource.ts +9 -0
  157. package/src/models/VenuesListForUserRequest.ts +66 -0
  158. package/src/models/index.ts +17 -4
  159. package/dist/models/NearbyVenueResource.d.ts +0 -62
  160. package/dist/models/NearbyVenueResource.js +0 -69
  161. package/dist/models/NearbyVenueResourceArrayResponse.d.ts +0 -33
  162. package/dist/models/NearbyVenueResourceArrayResponse.js +0 -50
  163. package/dist/models/PdfExportQueuedResource.d.ts +0 -44
  164. package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +0 -33
  165. package/dist/models/PdfExportQueuedResourceArrayResponse.js +0 -50
  166. package/src/models/NearbyVenueResource.ts +0 -110
  167. package/src/models/NearbyVenueResourceArrayResponse.ts +0 -73
  168. package/src/models/PdfExportQueuedResource.ts +0 -84
  169. package/src/models/PdfExportQueuedResourceArrayResponse.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
  */
@@ -0,0 +1,100 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface IncidentsExportCsvBulkRequest
20
+ */
21
+ export interface IncidentsExportCsvBulkRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof IncidentsExportCsvBulkRequest
26
+ */
27
+ venueId: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof IncidentsExportCsvBulkRequest
32
+ */
33
+ securityCompanyId?: number;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof IncidentsExportCsvBulkRequest
38
+ */
39
+ hasApprovedAt?: boolean;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof IncidentsExportCsvBulkRequest
44
+ */
45
+ afterCreatedAt: Date;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof IncidentsExportCsvBulkRequest
50
+ */
51
+ beforeCreatedAt: Date;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the IncidentsExportCsvBulkRequest interface.
56
+ */
57
+ export function instanceOfIncidentsExportCsvBulkRequest(value: object): value is IncidentsExportCsvBulkRequest {
58
+ if (!('venueId' in value) || value['venueId'] === undefined) return false;
59
+ if (!('afterCreatedAt' in value) || value['afterCreatedAt'] === undefined) return false;
60
+ if (!('beforeCreatedAt' in value) || value['beforeCreatedAt'] === undefined) return false;
61
+ return true;
62
+ }
63
+
64
+ export function IncidentsExportCsvBulkRequestFromJSON(json: any): IncidentsExportCsvBulkRequest {
65
+ return IncidentsExportCsvBulkRequestFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function IncidentsExportCsvBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsExportCsvBulkRequest {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'venueId': json['venue_id'],
75
+ 'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
76
+ 'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
77
+ 'afterCreatedAt': (new Date(json['after_created_at'])),
78
+ 'beforeCreatedAt': (new Date(json['before_created_at'])),
79
+ };
80
+ }
81
+
82
+ export function IncidentsExportCsvBulkRequestToJSON(json: any): IncidentsExportCsvBulkRequest {
83
+ return IncidentsExportCsvBulkRequestToJSONTyped(json, false);
84
+ }
85
+
86
+ export function IncidentsExportCsvBulkRequestToJSONTyped(value?: IncidentsExportCsvBulkRequest | null, ignoreDiscriminator: boolean = false): any {
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+
91
+ return {
92
+
93
+ 'venue_id': value['venueId'],
94
+ 'security_company_id': value['securityCompanyId'],
95
+ 'has_approved_at': value['hasApprovedAt'],
96
+ 'after_created_at': ((value['afterCreatedAt']).toISOString()),
97
+ 'before_created_at': ((value['beforeCreatedAt']).toISOString()),
98
+ };
99
+ }
100
+
@@ -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
  /**
@@ -0,0 +1,170 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface LicenceCheckLogResource
20
+ */
21
+ export interface LicenceCheckLogResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof LicenceCheckLogResource
26
+ */
27
+ id?: number | null;
28
+ /**
29
+ *
30
+ * @type {Date}
31
+ * @memberof LicenceCheckLogResource
32
+ */
33
+ createdAt?: Date | null;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof LicenceCheckLogResource
38
+ */
39
+ state: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof LicenceCheckLogResource
44
+ */
45
+ licenceNumber: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof LicenceCheckLogResource
50
+ */
51
+ result: string;
52
+ /**
53
+ *
54
+ * @type {boolean}
55
+ * @memberof LicenceCheckLogResource
56
+ */
57
+ isBypass: boolean;
58
+ /**
59
+ *
60
+ * @type {boolean}
61
+ * @memberof LicenceCheckLogResource
62
+ */
63
+ isExpired: boolean;
64
+ /**
65
+ *
66
+ * @type {boolean}
67
+ * @memberof LicenceCheckLogResource
68
+ */
69
+ isCrowdController: boolean;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof LicenceCheckLogResource
74
+ */
75
+ calledFrom: LicenceCheckLogResourceCalledFromEnum;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof LicenceCheckLogResource
80
+ */
81
+ request: string;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof LicenceCheckLogResource
86
+ */
87
+ response?: string | null;
88
+ }
89
+
90
+
91
+ /**
92
+ * @export
93
+ */
94
+ export const LicenceCheckLogResourceCalledFromEnum = {
95
+ Cron: 'cron',
96
+ SignOn: 'sign_on',
97
+ ManualCreate: 'manual_create',
98
+ ManualUpdate: 'manual_update',
99
+ VerifyEndpoint: 'verify_endpoint',
100
+ Signup: 'signup',
101
+ Webhook: 'webhook',
102
+ Bypass: 'bypass'
103
+ } as const;
104
+ export type LicenceCheckLogResourceCalledFromEnum = typeof LicenceCheckLogResourceCalledFromEnum[keyof typeof LicenceCheckLogResourceCalledFromEnum];
105
+
106
+
107
+ /**
108
+ * Check if a given object implements the LicenceCheckLogResource interface.
109
+ */
110
+ export function instanceOfLicenceCheckLogResource(value: object): value is LicenceCheckLogResource {
111
+ if (!('state' in value) || value['state'] === undefined) return false;
112
+ if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
113
+ if (!('result' in value) || value['result'] === undefined) return false;
114
+ if (!('isBypass' in value) || value['isBypass'] === undefined) return false;
115
+ if (!('isExpired' in value) || value['isExpired'] === undefined) return false;
116
+ if (!('isCrowdController' in value) || value['isCrowdController'] === undefined) return false;
117
+ if (!('calledFrom' in value) || value['calledFrom'] === undefined) return false;
118
+ if (!('request' in value) || value['request'] === undefined) return false;
119
+ return true;
120
+ }
121
+
122
+ export function LicenceCheckLogResourceFromJSON(json: any): LicenceCheckLogResource {
123
+ return LicenceCheckLogResourceFromJSONTyped(json, false);
124
+ }
125
+
126
+ export function LicenceCheckLogResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceCheckLogResource {
127
+ if (json == null) {
128
+ return json;
129
+ }
130
+ return {
131
+
132
+ 'id': json['id'] == null ? undefined : json['id'],
133
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
134
+ 'state': json['state'],
135
+ 'licenceNumber': json['licenceNumber'],
136
+ 'result': json['result'],
137
+ 'isBypass': json['isBypass'],
138
+ 'isExpired': json['isExpired'],
139
+ 'isCrowdController': json['isCrowdController'],
140
+ 'calledFrom': json['calledFrom'],
141
+ 'request': json['request'],
142
+ 'response': json['response'] == null ? undefined : json['response'],
143
+ };
144
+ }
145
+
146
+ export function LicenceCheckLogResourceToJSON(json: any): LicenceCheckLogResource {
147
+ return LicenceCheckLogResourceToJSONTyped(json, false);
148
+ }
149
+
150
+ export function LicenceCheckLogResourceToJSONTyped(value?: LicenceCheckLogResource | null, ignoreDiscriminator: boolean = false): any {
151
+ if (value == null) {
152
+ return value;
153
+ }
154
+
155
+ return {
156
+
157
+ 'id': value['id'],
158
+ 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
159
+ 'state': value['state'],
160
+ 'licenceNumber': value['licenceNumber'],
161
+ 'result': value['result'],
162
+ 'isBypass': value['isBypass'],
163
+ 'isExpired': value['isExpired'],
164
+ 'isCrowdController': value['isCrowdController'],
165
+ 'calledFrom': value['calledFrom'],
166
+ 'request': value['request'],
167
+ 'response': value['response'],
168
+ };
169
+ }
170
+
@@ -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 { LicenceCheckLogResource } from './LicenceCheckLogResource';
17
+ import {
18
+ LicenceCheckLogResourceFromJSON,
19
+ LicenceCheckLogResourceFromJSONTyped,
20
+ LicenceCheckLogResourceToJSON,
21
+ LicenceCheckLogResourceToJSONTyped,
22
+ } from './LicenceCheckLogResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface LicenceCheckLogResourceArrayResponse
28
+ */
29
+ export interface LicenceCheckLogResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<LicenceCheckLogResource>}
33
+ * @memberof LicenceCheckLogResourceArrayResponse
34
+ */
35
+ data?: Array<LicenceCheckLogResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the LicenceCheckLogResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfLicenceCheckLogResourceArrayResponse(value: object): value is LicenceCheckLogResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function LicenceCheckLogResourceArrayResponseFromJSON(json: any): LicenceCheckLogResourceArrayResponse {
46
+ return LicenceCheckLogResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function LicenceCheckLogResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceCheckLogResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LicenceCheckLogResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function LicenceCheckLogResourceArrayResponseToJSON(json: any): LicenceCheckLogResourceArrayResponse {
60
+ return LicenceCheckLogResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function LicenceCheckLogResourceArrayResponseToJSONTyped(value?: LicenceCheckLogResourceArrayResponse | 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(LicenceCheckLogResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -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
+