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

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 (135) hide show
  1. package/.openapi-generator/FILES +1 -15
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +5 -4
  4. package/dist/apis/GeneralApi.js +3 -1
  5. package/dist/models/AuthRegisterGuardRequestLicencesInner.d.ts +11 -3
  6. package/dist/models/AuthRegisterGuardRequestLicencesInner.js +11 -3
  7. package/dist/models/DevicesRegisterRequest.d.ts +10 -3
  8. package/dist/models/DevicesRegisterRequest.js +10 -3
  9. package/dist/models/ExportQueuedResource.d.ts +12 -3
  10. package/dist/models/ExportQueuedResource.js +12 -3
  11. package/dist/models/IncidentFieldSchemaResource.d.ts +21 -6
  12. package/dist/models/IncidentFieldSchemaResource.js +20 -6
  13. package/dist/models/IncidentVideoResource.d.ts +11 -3
  14. package/dist/models/IncidentVideoResource.js +11 -3
  15. package/dist/models/LicenceCheckLogResource.d.ts +15 -3
  16. package/dist/models/LicenceCheckLogResource.js +15 -3
  17. package/dist/models/LicenceListResource.d.ts +11 -3
  18. package/dist/models/LicenceListResource.js +11 -3
  19. package/dist/models/LicenceLiteResource.d.ts +11 -3
  20. package/dist/models/LicenceLiteResource.js +11 -3
  21. package/dist/models/LicenceResource.d.ts +11 -3
  22. package/dist/models/LicenceResource.js +11 -3
  23. package/dist/models/LicencesStoreRequest.d.ts +11 -3
  24. package/dist/models/LicencesStoreRequest.js +11 -3
  25. package/dist/models/LicencesUpdateRequest.d.ts +11 -3
  26. package/dist/models/LicencesUpdateRequest.js +11 -3
  27. package/dist/models/LicencesVerifyRequest.d.ts +11 -3
  28. package/dist/models/LicencesVerifyRequest.js +11 -3
  29. package/dist/models/MobileAppConfigRequest.d.ts +10 -3
  30. package/dist/models/MobileAppConfigRequest.js +10 -3
  31. package/dist/models/MobileAppConfigResource.d.ts +10 -3
  32. package/dist/models/MobileAppConfigResource.js +10 -3
  33. package/dist/models/MobileDeviceResource.d.ts +10 -3
  34. package/dist/models/MobileDeviceResource.js +10 -3
  35. package/dist/models/NotificationPreferenceResource.d.ts +17 -3
  36. package/dist/models/NotificationPreferenceResource.js +17 -3
  37. package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.d.ts +17 -3
  38. package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.js +17 -3
  39. package/dist/models/NotificationPreferencesStoreRequest.d.ts +17 -3
  40. package/dist/models/NotificationPreferencesStoreRequest.js +17 -3
  41. package/dist/models/PdfExportResource.d.ts +12 -3
  42. package/dist/models/PdfExportResource.js +12 -3
  43. package/dist/models/RegisterListResource.d.ts +11 -3
  44. package/dist/models/RegisterListResource.js +11 -3
  45. package/dist/models/RegisterResource.d.ts +11 -3
  46. package/dist/models/RegisterResource.js +11 -3
  47. package/dist/models/RegistersUpdateRequest.d.ts +11 -3
  48. package/dist/models/RegistersUpdateRequest.js +11 -3
  49. package/dist/models/RosterListResource.d.ts +11 -3
  50. package/dist/models/RosterListResource.js +11 -3
  51. package/dist/models/RosterResource.d.ts +11 -3
  52. package/dist/models/RosterResource.js +11 -3
  53. package/dist/models/RosterWithRegistersResource.d.ts +11 -3
  54. package/dist/models/RosterWithRegistersResource.js +11 -3
  55. package/dist/models/RostersUpdateRequest.d.ts +11 -3
  56. package/dist/models/RostersUpdateRequest.js +11 -3
  57. package/dist/models/VenuesSignedOnGuardsRequest.d.ts +32 -0
  58. package/dist/models/VenuesSignedOnGuardsRequest.js +49 -0
  59. package/dist/models/index.d.ts +1 -15
  60. package/dist/models/index.js +1 -15
  61. package/package.json +1 -1
  62. package/src/apis/GeneralApi.ts +11 -4
  63. package/src/models/AuthRegisterGuardRequestLicencesInner.ts +14 -11
  64. package/src/models/DevicesRegisterRequest.ts +13 -12
  65. package/src/models/ExportQueuedResource.ts +15 -12
  66. package/src/models/IncidentFieldSchemaResource.ts +27 -23
  67. package/src/models/IncidentVideoResource.ts +14 -12
  68. package/src/models/LicenceCheckLogResource.ts +18 -12
  69. package/src/models/LicenceListResource.ts +14 -11
  70. package/src/models/LicenceLiteResource.ts +14 -12
  71. package/src/models/LicenceResource.ts +14 -11
  72. package/src/models/LicencesStoreRequest.ts +14 -11
  73. package/src/models/LicencesUpdateRequest.ts +14 -11
  74. package/src/models/LicencesVerifyRequest.ts +14 -12
  75. package/src/models/MobileAppConfigRequest.ts +13 -12
  76. package/src/models/MobileAppConfigResource.ts +13 -12
  77. package/src/models/MobileDeviceResource.ts +13 -12
  78. package/src/models/NotificationPreferenceResource.ts +20 -11
  79. package/src/models/NotificationPreferencesBulkRequestPreferencesInner.ts +20 -12
  80. package/src/models/NotificationPreferencesStoreRequest.ts +20 -12
  81. package/src/models/PdfExportResource.ts +15 -12
  82. package/src/models/RegisterListResource.ts +14 -11
  83. package/src/models/RegisterResource.ts +14 -11
  84. package/src/models/RegistersUpdateRequest.ts +14 -11
  85. package/src/models/RosterListResource.ts +14 -11
  86. package/src/models/RosterResource.ts +14 -11
  87. package/src/models/RosterWithRegistersResource.ts +14 -11
  88. package/src/models/RostersUpdateRequest.ts +14 -12
  89. package/src/models/VenuesSignedOnGuardsRequest.ts +65 -0
  90. package/src/models/index.ts +1 -15
  91. package/dist/models/AustralianState.d.ts +0 -31
  92. package/dist/models/AustralianState.js +0 -57
  93. package/dist/models/IncidentSchemaType.d.ts +0 -25
  94. package/dist/models/IncidentSchemaType.js +0 -51
  95. package/dist/models/IncidentVideoStatus.d.ts +0 -26
  96. package/dist/models/IncidentVideoStatus.js +0 -52
  97. package/dist/models/LicenceCheckSource.d.ts +0 -30
  98. package/dist/models/LicenceCheckSource.js +0 -56
  99. package/dist/models/LicenceState.d.ts +0 -26
  100. package/dist/models/LicenceState.js +0 -52
  101. package/dist/models/LoginPlatform.d.ts +0 -25
  102. package/dist/models/LoginPlatform.js +0 -51
  103. package/dist/models/MobileDevicePlatform.d.ts +0 -25
  104. package/dist/models/MobileDevicePlatform.js +0 -51
  105. package/dist/models/NotificationStatus.d.ts +0 -25
  106. package/dist/models/NotificationStatus.js +0 -51
  107. package/dist/models/NotificationType.d.ts +0 -32
  108. package/dist/models/NotificationType.js +0 -58
  109. package/dist/models/PdfExportDownloadType.d.ts +0 -26
  110. package/dist/models/PdfExportDownloadType.js +0 -52
  111. package/dist/models/PdfExportKind.d.ts +0 -28
  112. package/dist/models/PdfExportKind.js +0 -54
  113. package/dist/models/PdfExportStatus.d.ts +0 -27
  114. package/dist/models/PdfExportStatus.js +0 -53
  115. package/dist/models/RecordSource.d.ts +0 -28
  116. package/dist/models/RecordSource.js +0 -54
  117. package/dist/models/SignOffStatus.d.ts +0 -26
  118. package/dist/models/SignOffStatus.js +0 -52
  119. package/dist/models/UserRole.d.ts +0 -29
  120. package/dist/models/UserRole.js +0 -55
  121. package/src/models/AustralianState.ts +0 -59
  122. package/src/models/IncidentSchemaType.ts +0 -53
  123. package/src/models/IncidentVideoStatus.ts +0 -54
  124. package/src/models/LicenceCheckSource.ts +0 -58
  125. package/src/models/LicenceState.ts +0 -54
  126. package/src/models/LoginPlatform.ts +0 -53
  127. package/src/models/MobileDevicePlatform.ts +0 -53
  128. package/src/models/NotificationStatus.ts +0 -53
  129. package/src/models/NotificationType.ts +0 -60
  130. package/src/models/PdfExportDownloadType.ts +0 -54
  131. package/src/models/PdfExportKind.ts +0 -56
  132. package/src/models/PdfExportStatus.ts +0 -55
  133. package/src/models/RecordSource.ts +0 -56
  134. package/src/models/SignOffStatus.ts +0 -54
  135. package/src/models/UserRole.ts +0 -57
@@ -124,6 +124,7 @@ import type {
124
124
  VenuesListRequest,
125
125
  VenuesNearbyRequest,
126
126
  VenuesPublicStoreRequest,
127
+ VenuesSignedOnGuardsRequest,
127
128
  VenuesUpdateRequest,
128
129
  VerifyLicenceResource,
129
130
  } from '../models/index';
@@ -346,6 +347,8 @@ import {
346
347
  VenuesNearbyRequestToJSON,
347
348
  VenuesPublicStoreRequestFromJSON,
348
349
  VenuesPublicStoreRequestToJSON,
350
+ VenuesSignedOnGuardsRequestFromJSON,
351
+ VenuesSignedOnGuardsRequestToJSON,
349
352
  VenuesUpdateRequestFromJSON,
350
353
  VenuesUpdateRequestToJSON,
351
354
  VerifyLicenceResourceFromJSON,
@@ -795,8 +798,9 @@ export interface VenuesShowRequest {
795
798
  venue: number;
796
799
  }
797
800
 
798
- export interface VenuesSignedOnGuardsRequest {
801
+ export interface VenuesSignedOnGuardsOperationRequest {
799
802
  venue: number;
803
+ venuesSignedOnGuardsRequest?: VenuesSignedOnGuardsRequest;
800
804
  }
801
805
 
802
806
  export interface VenuesStoreRequest {
@@ -5616,7 +5620,7 @@ export class GeneralApi extends runtime.BaseAPI {
5616
5620
  /**
5617
5621
  * Auto-generated: venues.signedOnGuards
5618
5622
  */
5619
- async venuesSignedOnGuardsRaw(requestParameters: VenuesSignedOnGuardsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLiteResourceArrayResponse>> {
5623
+ async venuesSignedOnGuardsRaw(requestParameters: VenuesSignedOnGuardsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLiteResourceArrayResponse>> {
5620
5624
  if (requestParameters['venue'] == null) {
5621
5625
  throw new runtime.RequiredError(
5622
5626
  'venue',
@@ -5628,6 +5632,8 @@ export class GeneralApi extends runtime.BaseAPI {
5628
5632
 
5629
5633
  const headerParameters: runtime.HTTPHeaders = {};
5630
5634
 
5635
+ headerParameters['Content-Type'] = 'application/json';
5636
+
5631
5637
  if (this.configuration && this.configuration.accessToken) {
5632
5638
  const token = this.configuration.accessToken;
5633
5639
  const tokenString = await token("bearerAuth", []);
@@ -5642,9 +5648,10 @@ export class GeneralApi extends runtime.BaseAPI {
5642
5648
 
5643
5649
  const response = await this.request({
5644
5650
  path: urlPath,
5645
- method: 'GET',
5651
+ method: 'POST',
5646
5652
  headers: headerParameters,
5647
5653
  query: queryParameters,
5654
+ body: VenuesSignedOnGuardsRequestToJSON(requestParameters['venuesSignedOnGuardsRequest']),
5648
5655
  }, initOverrides);
5649
5656
 
5650
5657
  return new runtime.JSONApiResponse(response, (jsonValue) => UserLiteResourceArrayResponseFromJSON(jsonValue));
@@ -5653,7 +5660,7 @@ export class GeneralApi extends runtime.BaseAPI {
5653
5660
  /**
5654
5661
  * Auto-generated: venues.signedOnGuards
5655
5662
  */
5656
- async venuesSignedOnGuards(requestParameters: VenuesSignedOnGuardsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLiteResourceArrayResponse> {
5663
+ async venuesSignedOnGuards(requestParameters: VenuesSignedOnGuardsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLiteResourceArrayResponse> {
5657
5664
  const response = await this.venuesSignedOnGuardsRaw(requestParameters, initOverrides);
5658
5665
  return await response.value();
5659
5666
  }
@@ -27,13 +27,6 @@ import {
27
27
  BackAssetToJSON,
28
28
  BackAssetToJSONTyped,
29
29
  } from './BackAsset';
30
- import type { LicenceState } from './LicenceState';
31
- import {
32
- LicenceStateFromJSON,
33
- LicenceStateFromJSONTyped,
34
- LicenceStateToJSON,
35
- LicenceStateToJSONTyped,
36
- } from './LicenceState';
37
30
  import type { FrontAsset } from './FrontAsset';
38
31
  import {
39
32
  FrontAssetFromJSON,
@@ -57,10 +50,10 @@ import {
57
50
  export interface AuthRegisterGuardRequestLicencesInner {
58
51
  /**
59
52
  *
60
- * @type {LicenceState}
53
+ * @type {string}
61
54
  * @memberof AuthRegisterGuardRequestLicencesInner
62
55
  */
63
- state: LicenceState;
56
+ state: AuthRegisterGuardRequestLicencesInnerStateEnum;
64
57
  /**
65
58
  *
66
59
  * @type {string}
@@ -112,6 +105,16 @@ export interface AuthRegisterGuardRequestLicencesInner {
112
105
  }
113
106
 
114
107
 
108
+ /**
109
+ * @export
110
+ */
111
+ export const AuthRegisterGuardRequestLicencesInnerStateEnum = {
112
+ Qld: 'QLD',
113
+ Nsw: 'NSW',
114
+ Vic: 'VIC'
115
+ } as const;
116
+ export type AuthRegisterGuardRequestLicencesInnerStateEnum = typeof AuthRegisterGuardRequestLicencesInnerStateEnum[keyof typeof AuthRegisterGuardRequestLicencesInnerStateEnum];
117
+
115
118
 
116
119
  /**
117
120
  * Check if a given object implements the AuthRegisterGuardRequestLicencesInner interface.
@@ -136,7 +139,7 @@ export function AuthRegisterGuardRequestLicencesInnerFromJSONTyped(json: any, ig
136
139
  }
137
140
  return {
138
141
 
139
- 'state': LicenceStateFromJSON(json['state']),
142
+ 'state': json['state'],
140
143
  'licenceNumber': json['licence_number'],
141
144
  'firstName': json['first_name'],
142
145
  'lastName': json['last_name'],
@@ -159,7 +162,7 @@ export function AuthRegisterGuardRequestLicencesInnerToJSONTyped(value?: AuthReg
159
162
 
160
163
  return {
161
164
 
162
- 'state': LicenceStateToJSON(value['state']),
165
+ 'state': value['state'],
163
166
  'licence_number': value['licenceNumber'],
164
167
  'first_name': value['firstName'],
165
168
  'last_name': value['lastName'],
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { MobileDevicePlatform } from './MobileDevicePlatform';
17
- import {
18
- MobileDevicePlatformFromJSON,
19
- MobileDevicePlatformFromJSONTyped,
20
- MobileDevicePlatformToJSON,
21
- MobileDevicePlatformToJSONTyped,
22
- } from './MobileDevicePlatform';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -35,10 +27,10 @@ export interface DevicesRegisterRequest {
35
27
  deviceId: string;
36
28
  /**
37
29
  *
38
- * @type {MobileDevicePlatform}
30
+ * @type {string}
39
31
  * @memberof DevicesRegisterRequest
40
32
  */
41
- platform: MobileDevicePlatform;
33
+ platform: DevicesRegisterRequestPlatformEnum;
42
34
  /**
43
35
  *
44
36
  * @type {string}
@@ -72,6 +64,15 @@ export interface DevicesRegisterRequest {
72
64
  }
73
65
 
74
66
 
67
+ /**
68
+ * @export
69
+ */
70
+ export const DevicesRegisterRequestPlatformEnum = {
71
+ Ios: 'ios',
72
+ Android: 'android'
73
+ } as const;
74
+ export type DevicesRegisterRequestPlatformEnum = typeof DevicesRegisterRequestPlatformEnum[keyof typeof DevicesRegisterRequestPlatformEnum];
75
+
75
76
 
76
77
  /**
77
78
  * Check if a given object implements the DevicesRegisterRequest interface.
@@ -93,7 +94,7 @@ export function DevicesRegisterRequestFromJSONTyped(json: any, ignoreDiscriminat
93
94
  return {
94
95
 
95
96
  'deviceId': json['device_id'],
96
- 'platform': MobileDevicePlatformFromJSON(json['platform']),
97
+ 'platform': json['platform'],
97
98
  'osVersion': json['os_version'] == null ? undefined : json['os_version'],
98
99
  'appVersion': json['app_version'] == null ? undefined : json['app_version'],
99
100
  'model': json['model'] == null ? undefined : json['model'],
@@ -114,7 +115,7 @@ export function DevicesRegisterRequestToJSONTyped(value?: DevicesRegisterRequest
114
115
  return {
115
116
 
116
117
  'device_id': value['deviceId'],
117
- 'platform': MobileDevicePlatformToJSON(value['platform']),
118
+ 'platform': value['platform'],
118
119
  'os_version': value['osVersion'],
119
120
  'app_version': value['appVersion'],
120
121
  'model': value['model'],
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { PdfExportStatus } from './PdfExportStatus';
17
- import {
18
- PdfExportStatusFromJSON,
19
- PdfExportStatusFromJSONTyped,
20
- PdfExportStatusToJSON,
21
- PdfExportStatusToJSONTyped,
22
- } from './PdfExportStatus';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -35,10 +27,10 @@ export interface ExportQueuedResource {
35
27
  id: number;
36
28
  /**
37
29
  *
38
- * @type {PdfExportStatus}
30
+ * @type {string}
39
31
  * @memberof ExportQueuedResource
40
32
  */
41
- status: PdfExportStatus;
33
+ status: ExportQueuedResourceStatusEnum;
42
34
  /**
43
35
  *
44
36
  * @type {string}
@@ -48,6 +40,17 @@ export interface ExportQueuedResource {
48
40
  }
49
41
 
50
42
 
43
+ /**
44
+ * @export
45
+ */
46
+ export const ExportQueuedResourceStatusEnum = {
47
+ Pending: 'pending',
48
+ Processing: 'processing',
49
+ Completed: 'completed',
50
+ Failed: 'failed'
51
+ } as const;
52
+ export type ExportQueuedResourceStatusEnum = typeof ExportQueuedResourceStatusEnum[keyof typeof ExportQueuedResourceStatusEnum];
53
+
51
54
 
52
55
  /**
53
56
  * Check if a given object implements the ExportQueuedResource interface.
@@ -70,7 +73,7 @@ export function ExportQueuedResourceFromJSONTyped(json: any, ignoreDiscriminator
70
73
  return {
71
74
 
72
75
  'id': json['id'],
73
- 'status': PdfExportStatusFromJSON(json['status']),
76
+ 'status': json['status'],
74
77
  'message': json['message'],
75
78
  };
76
79
  }
@@ -87,7 +90,7 @@ export function ExportQueuedResourceToJSONTyped(value?: ExportQueuedResource | n
87
90
  return {
88
91
 
89
92
  'id': value['id'],
90
- 'status': PdfExportStatusToJSON(value['status']),
93
+ 'status': value['status'],
91
94
  'message': value['message'],
92
95
  };
93
96
  }
@@ -13,21 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { IncidentSchemaType } from './IncidentSchemaType';
17
- import {
18
- IncidentSchemaTypeFromJSON,
19
- IncidentSchemaTypeFromJSONTyped,
20
- IncidentSchemaTypeToJSON,
21
- IncidentSchemaTypeToJSONTyped,
22
- } from './IncidentSchemaType';
23
- import type { LicenceState } from './LicenceState';
24
- import {
25
- LicenceStateFromJSON,
26
- LicenceStateFromJSONTyped,
27
- LicenceStateToJSON,
28
- LicenceStateToJSONTyped,
29
- } from './LicenceState';
30
-
31
16
  /**
32
17
  *
33
18
  * @export
@@ -42,16 +27,16 @@ export interface IncidentFieldSchemaResource {
42
27
  id?: number | null;
43
28
  /**
44
29
  *
45
- * @type {LicenceState}
30
+ * @type {string}
46
31
  * @memberof IncidentFieldSchemaResource
47
32
  */
48
- state: LicenceState;
33
+ state: IncidentFieldSchemaResourceStateEnum;
49
34
  /**
50
35
  *
51
- * @type {IncidentSchemaType}
36
+ * @type {string}
52
37
  * @memberof IncidentFieldSchemaResource
53
38
  */
54
- type: IncidentSchemaType;
39
+ type: IncidentFieldSchemaResourceTypeEnum;
55
40
  /**
56
41
  *
57
42
  * @type {object}
@@ -73,6 +58,25 @@ export interface IncidentFieldSchemaResource {
73
58
  }
74
59
 
75
60
 
61
+ /**
62
+ * @export
63
+ */
64
+ export const IncidentFieldSchemaResourceStateEnum = {
65
+ Qld: 'QLD',
66
+ Nsw: 'NSW',
67
+ Vic: 'VIC'
68
+ } as const;
69
+ export type IncidentFieldSchemaResourceStateEnum = typeof IncidentFieldSchemaResourceStateEnum[keyof typeof IncidentFieldSchemaResourceStateEnum];
70
+
71
+ /**
72
+ * @export
73
+ */
74
+ export const IncidentFieldSchemaResourceTypeEnum = {
75
+ Liquor: 'Liquor',
76
+ Gaming: 'Gaming'
77
+ } as const;
78
+ export type IncidentFieldSchemaResourceTypeEnum = typeof IncidentFieldSchemaResourceTypeEnum[keyof typeof IncidentFieldSchemaResourceTypeEnum];
79
+
76
80
 
77
81
  /**
78
82
  * Check if a given object implements the IncidentFieldSchemaResource interface.
@@ -95,8 +99,8 @@ export function IncidentFieldSchemaResourceFromJSONTyped(json: any, ignoreDiscri
95
99
  return {
96
100
 
97
101
  'id': json['id'] == null ? undefined : json['id'],
98
- 'state': LicenceStateFromJSON(json['state']),
99
- 'type': IncidentSchemaTypeFromJSON(json['type']),
102
+ 'state': json['state'],
103
+ 'type': json['type'],
100
104
  'jsonSchema': json['jsonSchema'],
101
105
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
102
106
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -115,8 +119,8 @@ export function IncidentFieldSchemaResourceToJSONTyped(value?: IncidentFieldSche
115
119
  return {
116
120
 
117
121
  'id': value['id'],
118
- 'state': LicenceStateToJSON(value['state']),
119
- 'type': IncidentSchemaTypeToJSON(value['type']),
122
+ 'state': value['state'],
123
+ 'type': value['type'],
120
124
  'jsonSchema': value['jsonSchema'],
121
125
  'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
122
126
  'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { IncidentVideoStatus } from './IncidentVideoStatus';
17
- import {
18
- IncidentVideoStatusFromJSON,
19
- IncidentVideoStatusFromJSONTyped,
20
- IncidentVideoStatusToJSON,
21
- IncidentVideoStatusToJSONTyped,
22
- } from './IncidentVideoStatus';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -35,10 +27,10 @@ export interface IncidentVideoResource {
35
27
  id: number;
36
28
  /**
37
29
  *
38
- * @type {IncidentVideoStatus}
30
+ * @type {string}
39
31
  * @memberof IncidentVideoResource
40
32
  */
41
- status: IncidentVideoStatus;
33
+ status: IncidentVideoResourceStatusEnum;
42
34
  /**
43
35
  *
44
36
  * @type {string}
@@ -78,6 +70,16 @@ export interface IncidentVideoResource {
78
70
  }
79
71
 
80
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
+
81
83
 
82
84
  /**
83
85
  * Check if a given object implements the IncidentVideoResource interface.
@@ -101,7 +103,7 @@ export function IncidentVideoResourceFromJSONTyped(json: any, ignoreDiscriminato
101
103
  return {
102
104
 
103
105
  'id': json['id'],
104
- 'status': IncidentVideoStatusFromJSON(json['status']),
106
+ 'status': json['status'],
105
107
  'originalFilename': json['originalFilename'],
106
108
  'mimeType': json['mimeType'],
107
109
  'sizeBytes': json['sizeBytes'] == null ? undefined : json['sizeBytes'],
@@ -123,7 +125,7 @@ export function IncidentVideoResourceToJSONTyped(value?: IncidentVideoResource |
123
125
  return {
124
126
 
125
127
  'id': value['id'],
126
- 'status': IncidentVideoStatusToJSON(value['status']),
128
+ 'status': value['status'],
127
129
  'originalFilename': value['originalFilename'],
128
130
  'mimeType': value['mimeType'],
129
131
  'sizeBytes': value['sizeBytes'],
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { LicenceCheckSource } from './LicenceCheckSource';
17
- import {
18
- LicenceCheckSourceFromJSON,
19
- LicenceCheckSourceFromJSONTyped,
20
- LicenceCheckSourceToJSON,
21
- LicenceCheckSourceToJSONTyped,
22
- } from './LicenceCheckSource';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -71,10 +63,10 @@ export interface LicenceCheckLogResource {
71
63
  isCrowdController: boolean;
72
64
  /**
73
65
  *
74
- * @type {LicenceCheckSource}
66
+ * @type {string}
75
67
  * @memberof LicenceCheckLogResource
76
68
  */
77
- calledFrom: LicenceCheckSource;
69
+ calledFrom: LicenceCheckLogResourceCalledFromEnum;
78
70
  /**
79
71
  *
80
72
  * @type {string}
@@ -90,6 +82,20 @@ export interface LicenceCheckLogResource {
90
82
  }
91
83
 
92
84
 
85
+ /**
86
+ * @export
87
+ */
88
+ export const LicenceCheckLogResourceCalledFromEnum = {
89
+ Cron: 'cron',
90
+ SignOn: 'sign_on',
91
+ ManualCreate: 'manual_create',
92
+ ManualUpdate: 'manual_update',
93
+ VerifyEndpoint: 'verify_endpoint',
94
+ Signup: 'signup',
95
+ Webhook: 'webhook'
96
+ } as const;
97
+ export type LicenceCheckLogResourceCalledFromEnum = typeof LicenceCheckLogResourceCalledFromEnum[keyof typeof LicenceCheckLogResourceCalledFromEnum];
98
+
93
99
 
94
100
  /**
95
101
  * Check if a given object implements the LicenceCheckLogResource interface.
@@ -122,7 +128,7 @@ export function LicenceCheckLogResourceFromJSONTyped(json: any, ignoreDiscrimina
122
128
  'result': json['result'],
123
129
  'isExpired': json['isExpired'],
124
130
  'isCrowdController': json['isCrowdController'],
125
- 'calledFrom': LicenceCheckSourceFromJSON(json['calledFrom']),
131
+ 'calledFrom': json['calledFrom'],
126
132
  'request': json['request'],
127
133
  'response': json['response'] == null ? undefined : json['response'],
128
134
  };
@@ -146,7 +152,7 @@ export function LicenceCheckLogResourceToJSONTyped(value?: LicenceCheckLogResour
146
152
  'result': value['result'],
147
153
  'isExpired': value['isExpired'],
148
154
  'isCrowdController': value['isCrowdController'],
149
- 'calledFrom': LicenceCheckSourceToJSON(value['calledFrom']),
155
+ 'calledFrom': value['calledFrom'],
150
156
  'request': value['request'],
151
157
  'response': value['response'],
152
158
  };
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { LicenceState } from './LicenceState';
17
- import {
18
- LicenceStateFromJSON,
19
- LicenceStateFromJSONTyped,
20
- LicenceStateToJSON,
21
- LicenceStateToJSONTyped,
22
- } from './LicenceState';
23
16
  import type { UserRelationResource } from './UserRelationResource';
24
17
  import {
25
18
  UserRelationResourceFromJSON,
@@ -48,10 +41,10 @@ export interface LicenceListResource {
48
41
  user: UserRelationResource | null;
49
42
  /**
50
43
  *
51
- * @type {LicenceState}
44
+ * @type {string}
52
45
  * @memberof LicenceListResource
53
46
  */
54
- state: LicenceState;
47
+ state: LicenceListResourceStateEnum;
55
48
  /**
56
49
  *
57
50
  * @type {string}
@@ -97,6 +90,16 @@ export interface LicenceListResource {
97
90
  }
98
91
 
99
92
 
93
+ /**
94
+ * @export
95
+ */
96
+ export const LicenceListResourceStateEnum = {
97
+ Qld: 'QLD',
98
+ Nsw: 'NSW',
99
+ Vic: 'VIC'
100
+ } as const;
101
+ export type LicenceListResourceStateEnum = typeof LicenceListResourceStateEnum[keyof typeof LicenceListResourceStateEnum];
102
+
100
103
 
101
104
  /**
102
105
  * Check if a given object implements the LicenceListResource interface.
@@ -125,7 +128,7 @@ export function LicenceListResourceFromJSONTyped(json: any, ignoreDiscriminator:
125
128
 
126
129
  'id': json['id'] == null ? undefined : json['id'],
127
130
  'user': UserRelationResourceFromJSON(json['user']),
128
- 'state': LicenceStateFromJSON(json['state']),
131
+ 'state': json['state'],
129
132
  'licenceNumber': json['licenceNumber'],
130
133
  'firstName': json['firstName'],
131
134
  'lastName': json['lastName'],
@@ -149,7 +152,7 @@ export function LicenceListResourceToJSONTyped(value?: LicenceListResource | nul
149
152
 
150
153
  'id': value['id'],
151
154
  'user': UserRelationResourceToJSON(value['user']),
152
- 'state': LicenceStateToJSON(value['state']),
155
+ 'state': value['state'],
153
156
  'licenceNumber': value['licenceNumber'],
154
157
  'firstName': value['firstName'],
155
158
  'lastName': value['lastName'],
@@ -13,14 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { LicenceState } from './LicenceState';
17
- import {
18
- LicenceStateFromJSON,
19
- LicenceStateFromJSONTyped,
20
- LicenceStateToJSON,
21
- LicenceStateToJSONTyped,
22
- } from './LicenceState';
23
-
24
16
  /**
25
17
  *
26
18
  * @export
@@ -41,13 +33,23 @@ export interface LicenceLiteResource {
41
33
  licenceNumber: string;
42
34
  /**
43
35
  *
44
- * @type {LicenceState}
36
+ * @type {string}
45
37
  * @memberof LicenceLiteResource
46
38
  */
47
- state: LicenceState;
39
+ state: LicenceLiteResourceStateEnum;
48
40
  }
49
41
 
50
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
+
51
53
 
52
54
  /**
53
55
  * Check if a given object implements the LicenceLiteResource interface.
@@ -70,7 +72,7 @@ export function LicenceLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
70
72
 
71
73
  'id': json['id'] == null ? undefined : json['id'],
72
74
  'licenceNumber': json['licenceNumber'],
73
- 'state': LicenceStateFromJSON(json['state']),
75
+ 'state': json['state'],
74
76
  };
75
77
  }
76
78
 
@@ -87,7 +89,7 @@ export function LicenceLiteResourceToJSONTyped(value?: LicenceLiteResource | nul
87
89
 
88
90
  'id': value['id'],
89
91
  'licenceNumber': value['licenceNumber'],
90
- 'state': LicenceStateToJSON(value['state']),
92
+ 'state': value['state'],
91
93
  };
92
94
  }
93
95
 
@@ -13,13 +13,6 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { LicenceState } from './LicenceState';
17
- import {
18
- LicenceStateFromJSON,
19
- LicenceStateFromJSONTyped,
20
- LicenceStateToJSON,
21
- LicenceStateToJSONTyped,
22
- } from './LicenceState';
23
16
  import type { UserRelationResource } from './UserRelationResource';
24
17
  import {
25
18
  UserRelationResourceFromJSON,
@@ -48,10 +41,10 @@ export interface LicenceResource {
48
41
  user: UserRelationResource | null;
49
42
  /**
50
43
  *
51
- * @type {LicenceState}
44
+ * @type {string}
52
45
  * @memberof LicenceResource
53
46
  */
54
- state: LicenceState;
47
+ state: LicenceResourceStateEnum;
55
48
  /**
56
49
  *
57
50
  * @type {string}
@@ -121,6 +114,16 @@ export interface LicenceResource {
121
114
  }
122
115
 
123
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
+
124
127
 
125
128
  /**
126
129
  * Check if a given object implements the LicenceResource interface.
@@ -152,7 +155,7 @@ export function LicenceResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
152
155
 
153
156
  'id': json['id'] == null ? undefined : json['id'],
154
157
  'user': UserRelationResourceFromJSON(json['user']),
155
- 'state': LicenceStateFromJSON(json['state']),
158
+ 'state': json['state'],
156
159
  'licenceNumber': json['licenceNumber'],
157
160
  'firstName': json['firstName'],
158
161
  'lastName': json['lastName'],
@@ -180,7 +183,7 @@ export function LicenceResourceToJSONTyped(value?: LicenceResource | null, ignor
180
183
 
181
184
  'id': value['id'],
182
185
  'user': UserRelationResourceToJSON(value['user']),
183
- 'state': LicenceStateToJSON(value['state']),
186
+ 'state': value['state'],
184
187
  'licenceNumber': value['licenceNumber'],
185
188
  'firstName': value['firstName'],
186
189
  'lastName': value['lastName'],