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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/.openapi-generator/FILES +15 -0
  2. package/README.md +2 -2
  3. package/dist/models/AustralianState.d.ts +31 -0
  4. package/dist/models/AustralianState.js +57 -0
  5. package/dist/models/AuthRegisterGuardRequestLicencesInner.d.ts +3 -11
  6. package/dist/models/AuthRegisterGuardRequestLicencesInner.js +3 -11
  7. package/dist/models/DevicesRegisterRequest.d.ts +3 -10
  8. package/dist/models/DevicesRegisterRequest.js +3 -10
  9. package/dist/models/ExportQueuedResource.d.ts +3 -12
  10. package/dist/models/ExportQueuedResource.js +3 -12
  11. package/dist/models/IncidentFieldSchemaResource.d.ts +6 -21
  12. package/dist/models/IncidentFieldSchemaResource.js +6 -20
  13. package/dist/models/IncidentSchemaType.d.ts +25 -0
  14. package/dist/models/IncidentSchemaType.js +51 -0
  15. package/dist/models/IncidentVideoResource.d.ts +3 -11
  16. package/dist/models/IncidentVideoResource.js +3 -11
  17. package/dist/models/IncidentVideoStatus.d.ts +26 -0
  18. package/dist/models/IncidentVideoStatus.js +52 -0
  19. package/dist/models/LicenceCheckLogResource.d.ts +3 -15
  20. package/dist/models/LicenceCheckLogResource.js +3 -15
  21. package/dist/models/LicenceCheckSource.d.ts +30 -0
  22. package/dist/models/LicenceCheckSource.js +56 -0
  23. package/dist/models/LicenceListResource.d.ts +3 -11
  24. package/dist/models/LicenceListResource.js +3 -11
  25. package/dist/models/LicenceLiteResource.d.ts +3 -11
  26. package/dist/models/LicenceLiteResource.js +3 -11
  27. package/dist/models/LicenceResource.d.ts +3 -11
  28. package/dist/models/LicenceResource.js +3 -11
  29. package/dist/models/LicenceState.d.ts +26 -0
  30. package/dist/models/LicenceState.js +52 -0
  31. package/dist/models/LicencesStoreRequest.d.ts +3 -11
  32. package/dist/models/LicencesStoreRequest.js +3 -11
  33. package/dist/models/LicencesUpdateRequest.d.ts +3 -11
  34. package/dist/models/LicencesUpdateRequest.js +3 -11
  35. package/dist/models/LicencesVerifyRequest.d.ts +3 -11
  36. package/dist/models/LicencesVerifyRequest.js +3 -11
  37. package/dist/models/LoginPlatform.d.ts +25 -0
  38. package/dist/models/LoginPlatform.js +51 -0
  39. package/dist/models/MobileAppConfigRequest.d.ts +3 -10
  40. package/dist/models/MobileAppConfigRequest.js +3 -10
  41. package/dist/models/MobileAppConfigResource.d.ts +3 -10
  42. package/dist/models/MobileAppConfigResource.js +3 -10
  43. package/dist/models/MobileDevicePlatform.d.ts +25 -0
  44. package/dist/models/MobileDevicePlatform.js +51 -0
  45. package/dist/models/MobileDeviceResource.d.ts +3 -10
  46. package/dist/models/MobileDeviceResource.js +3 -10
  47. package/dist/models/NotificationPreferenceResource.d.ts +3 -17
  48. package/dist/models/NotificationPreferenceResource.js +3 -17
  49. package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.d.ts +3 -17
  50. package/dist/models/NotificationPreferencesBulkRequestPreferencesInner.js +3 -17
  51. package/dist/models/NotificationPreferencesStoreRequest.d.ts +3 -17
  52. package/dist/models/NotificationPreferencesStoreRequest.js +3 -17
  53. package/dist/models/NotificationStatus.d.ts +25 -0
  54. package/dist/models/NotificationStatus.js +51 -0
  55. package/dist/models/NotificationType.d.ts +32 -0
  56. package/dist/models/NotificationType.js +58 -0
  57. package/dist/models/PdfExportDownloadType.d.ts +26 -0
  58. package/dist/models/PdfExportDownloadType.js +52 -0
  59. package/dist/models/PdfExportKind.d.ts +28 -0
  60. package/dist/models/PdfExportKind.js +54 -0
  61. package/dist/models/PdfExportResource.d.ts +3 -12
  62. package/dist/models/PdfExportResource.js +3 -12
  63. package/dist/models/PdfExportStatus.d.ts +27 -0
  64. package/dist/models/PdfExportStatus.js +53 -0
  65. package/dist/models/RecordSource.d.ts +28 -0
  66. package/dist/models/RecordSource.js +54 -0
  67. package/dist/models/RegisterListResource.d.ts +3 -11
  68. package/dist/models/RegisterListResource.js +3 -11
  69. package/dist/models/RegisterResource.d.ts +3 -11
  70. package/dist/models/RegisterResource.js +3 -11
  71. package/dist/models/RegistersUpdateRequest.d.ts +3 -11
  72. package/dist/models/RegistersUpdateRequest.js +3 -11
  73. package/dist/models/RosterListResource.d.ts +3 -11
  74. package/dist/models/RosterListResource.js +3 -11
  75. package/dist/models/RosterResource.d.ts +3 -11
  76. package/dist/models/RosterResource.js +3 -11
  77. package/dist/models/RosterWithRegistersResource.d.ts +3 -11
  78. package/dist/models/RosterWithRegistersResource.js +3 -11
  79. package/dist/models/RostersUpdateRequest.d.ts +3 -11
  80. package/dist/models/RostersUpdateRequest.js +3 -11
  81. package/dist/models/SignOffStatus.d.ts +26 -0
  82. package/dist/models/SignOffStatus.js +52 -0
  83. package/dist/models/UserRole.d.ts +29 -0
  84. package/dist/models/UserRole.js +55 -0
  85. package/dist/models/index.d.ts +15 -0
  86. package/dist/models/index.js +15 -0
  87. package/package.json +1 -1
  88. package/src/models/AustralianState.ts +59 -0
  89. package/src/models/AuthRegisterGuardRequestLicencesInner.ts +11 -14
  90. package/src/models/DevicesRegisterRequest.ts +12 -13
  91. package/src/models/ExportQueuedResource.ts +12 -15
  92. package/src/models/IncidentFieldSchemaResource.ts +23 -27
  93. package/src/models/IncidentSchemaType.ts +53 -0
  94. package/src/models/IncidentVideoResource.ts +12 -14
  95. package/src/models/IncidentVideoStatus.ts +54 -0
  96. package/src/models/LicenceCheckLogResource.ts +12 -18
  97. package/src/models/LicenceCheckSource.ts +58 -0
  98. package/src/models/LicenceListResource.ts +11 -14
  99. package/src/models/LicenceLiteResource.ts +12 -14
  100. package/src/models/LicenceResource.ts +11 -14
  101. package/src/models/LicenceState.ts +54 -0
  102. package/src/models/LicencesStoreRequest.ts +11 -14
  103. package/src/models/LicencesUpdateRequest.ts +11 -14
  104. package/src/models/LicencesVerifyRequest.ts +12 -14
  105. package/src/models/LoginPlatform.ts +53 -0
  106. package/src/models/MobileAppConfigRequest.ts +12 -13
  107. package/src/models/MobileAppConfigResource.ts +12 -13
  108. package/src/models/MobileDevicePlatform.ts +53 -0
  109. package/src/models/MobileDeviceResource.ts +12 -13
  110. package/src/models/NotificationPreferenceResource.ts +11 -20
  111. package/src/models/NotificationPreferencesBulkRequestPreferencesInner.ts +12 -20
  112. package/src/models/NotificationPreferencesStoreRequest.ts +12 -20
  113. package/src/models/NotificationStatus.ts +53 -0
  114. package/src/models/NotificationType.ts +60 -0
  115. package/src/models/PdfExportDownloadType.ts +54 -0
  116. package/src/models/PdfExportKind.ts +56 -0
  117. package/src/models/PdfExportResource.ts +12 -15
  118. package/src/models/PdfExportStatus.ts +55 -0
  119. package/src/models/RecordSource.ts +56 -0
  120. package/src/models/RegisterListResource.ts +11 -14
  121. package/src/models/RegisterResource.ts +11 -14
  122. package/src/models/RegistersUpdateRequest.ts +11 -14
  123. package/src/models/RosterListResource.ts +11 -14
  124. package/src/models/RosterResource.ts +11 -14
  125. package/src/models/RosterWithRegistersResource.ts +11 -14
  126. package/src/models/RostersUpdateRequest.ts +12 -14
  127. package/src/models/SignOffStatus.ts +54 -0
  128. package/src/models/UserRole.ts +57 -0
  129. package/src/models/index.ts +15 -0
@@ -13,6 +13,14 @@
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
24
  /**
17
25
  *
18
26
  * @export
@@ -21,10 +29,10 @@ import { mapValues } from '../runtime';
21
29
  export interface LicencesVerifyRequest {
22
30
  /**
23
31
  *
24
- * @type {string}
32
+ * @type {LicenceState}
25
33
  * @memberof LicencesVerifyRequest
26
34
  */
27
- state: LicencesVerifyRequestStateEnum;
35
+ state: LicenceState;
28
36
  /**
29
37
  *
30
38
  * @type {string}
@@ -52,16 +60,6 @@ export interface LicencesVerifyRequest {
52
60
  }
53
61
 
54
62
 
55
- /**
56
- * @export
57
- */
58
- export const LicencesVerifyRequestStateEnum = {
59
- Qld: 'QLD',
60
- Nsw: 'NSW',
61
- Vic: 'VIC'
62
- } as const;
63
- export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEnum[keyof typeof LicencesVerifyRequestStateEnum];
64
-
65
63
 
66
64
  /**
67
65
  * Check if a given object implements the LicencesVerifyRequest interface.
@@ -85,7 +83,7 @@ export function LicencesVerifyRequestFromJSONTyped(json: any, ignoreDiscriminato
85
83
  }
86
84
  return {
87
85
 
88
- 'state': json['state'],
86
+ 'state': LicenceStateFromJSON(json['state']),
89
87
  'licenceNumber': json['licence_number'],
90
88
  'givenName': json['given_name'],
91
89
  'lastName': json['last_name'],
@@ -104,7 +102,7 @@ export function LicencesVerifyRequestToJSONTyped(value?: LicencesVerifyRequest |
104
102
 
105
103
  return {
106
104
 
107
- 'state': value['state'],
105
+ 'state': LicenceStateToJSON(value['state']),
108
106
  'licence_number': value['licenceNumber'],
109
107
  'given_name': value['givenName'],
110
108
  'last_name': value['lastName'],
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Security Registers API
5
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const LoginPlatform = {
21
+ App: 'app',
22
+ Web: 'web'
23
+ } as const;
24
+ export type LoginPlatform = typeof LoginPlatform[keyof typeof LoginPlatform];
25
+
26
+
27
+ export function instanceOfLoginPlatform(value: any): boolean {
28
+ for (const key in LoginPlatform) {
29
+ if (Object.prototype.hasOwnProperty.call(LoginPlatform, key)) {
30
+ if (LoginPlatform[key as keyof typeof LoginPlatform] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function LoginPlatformFromJSON(json: any): LoginPlatform {
39
+ return LoginPlatformFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function LoginPlatformFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginPlatform {
43
+ return json as LoginPlatform;
44
+ }
45
+
46
+ export function LoginPlatformToJSON(value?: LoginPlatform | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function LoginPlatformToJSONTyped(value: any, ignoreDiscriminator: boolean): LoginPlatform {
51
+ return value as LoginPlatform;
52
+ }
53
+
@@ -13,6 +13,14 @@
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
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -21,10 +29,10 @@ import { mapValues } from '../runtime';
21
29
  export interface MobileAppConfigRequest {
22
30
  /**
23
31
  *
24
- * @type {string}
32
+ * @type {MobileDevicePlatform}
25
33
  * @memberof MobileAppConfigRequest
26
34
  */
27
- platform: MobileAppConfigRequestPlatformEnum;
35
+ platform: MobileDevicePlatform;
28
36
  /**
29
37
  * The app's current version as a semantic version string (e.g. "1.4.2").
30
38
  * @type {string}
@@ -34,15 +42,6 @@ export interface MobileAppConfigRequest {
34
42
  }
35
43
 
36
44
 
37
- /**
38
- * @export
39
- */
40
- export const MobileAppConfigRequestPlatformEnum = {
41
- Ios: 'ios',
42
- Android: 'android'
43
- } as const;
44
- export type MobileAppConfigRequestPlatformEnum = typeof MobileAppConfigRequestPlatformEnum[keyof typeof MobileAppConfigRequestPlatformEnum];
45
-
46
45
 
47
46
  /**
48
47
  * Check if a given object implements the MobileAppConfigRequest interface.
@@ -63,7 +62,7 @@ export function MobileAppConfigRequestFromJSONTyped(json: any, ignoreDiscriminat
63
62
  }
64
63
  return {
65
64
 
66
- 'platform': json['platform'],
65
+ 'platform': MobileDevicePlatformFromJSON(json['platform']),
67
66
  'appVersion': json['app_version'],
68
67
  };
69
68
  }
@@ -79,7 +78,7 @@ export function MobileAppConfigRequestToJSONTyped(value?: MobileAppConfigRequest
79
78
 
80
79
  return {
81
80
 
82
- 'platform': value['platform'],
81
+ 'platform': MobileDevicePlatformToJSON(value['platform']),
83
82
  'app_version': value['appVersion'],
84
83
  };
85
84
  }
@@ -13,6 +13,14 @@
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
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -21,10 +29,10 @@ import { mapValues } from '../runtime';
21
29
  export interface MobileAppConfigResource {
22
30
  /**
23
31
  *
24
- * @type {string}
32
+ * @type {MobileDevicePlatform}
25
33
  * @memberof MobileAppConfigResource
26
34
  */
27
- platform: MobileAppConfigResourcePlatformEnum;
35
+ platform: MobileDevicePlatform;
28
36
  /**
29
37
  *
30
38
  * @type {boolean}
@@ -46,15 +54,6 @@ export interface MobileAppConfigResource {
46
54
  }
47
55
 
48
56
 
49
- /**
50
- * @export
51
- */
52
- export const MobileAppConfigResourcePlatformEnum = {
53
- Ios: 'ios',
54
- Android: 'android'
55
- } as const;
56
- export type MobileAppConfigResourcePlatformEnum = typeof MobileAppConfigResourcePlatformEnum[keyof typeof MobileAppConfigResourcePlatformEnum];
57
-
58
57
 
59
58
  /**
60
59
  * Check if a given object implements the MobileAppConfigResource interface.
@@ -76,7 +75,7 @@ export function MobileAppConfigResourceFromJSONTyped(json: any, ignoreDiscrimina
76
75
  }
77
76
  return {
78
77
 
79
- 'platform': json['platform'],
78
+ 'platform': MobileDevicePlatformFromJSON(json['platform']),
80
79
  'forceUpdate': json['forceUpdate'],
81
80
  'updateUrl': json['updateUrl'],
82
81
  'message': json['message'] == null ? undefined : json['message'],
@@ -94,7 +93,7 @@ export function MobileAppConfigResourceToJSONTyped(value?: MobileAppConfigResour
94
93
 
95
94
  return {
96
95
 
97
- 'platform': value['platform'],
96
+ 'platform': MobileDevicePlatformToJSON(value['platform']),
98
97
  'forceUpdate': value['forceUpdate'],
99
98
  'updateUrl': value['updateUrl'],
100
99
  'message': value['message'],
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Security Registers API
5
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const MobileDevicePlatform = {
21
+ Ios: 'ios',
22
+ Android: 'android'
23
+ } as const;
24
+ export type MobileDevicePlatform = typeof MobileDevicePlatform[keyof typeof MobileDevicePlatform];
25
+
26
+
27
+ export function instanceOfMobileDevicePlatform(value: any): boolean {
28
+ for (const key in MobileDevicePlatform) {
29
+ if (Object.prototype.hasOwnProperty.call(MobileDevicePlatform, key)) {
30
+ if (MobileDevicePlatform[key as keyof typeof MobileDevicePlatform] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function MobileDevicePlatformFromJSON(json: any): MobileDevicePlatform {
39
+ return MobileDevicePlatformFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function MobileDevicePlatformFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileDevicePlatform {
43
+ return json as MobileDevicePlatform;
44
+ }
45
+
46
+ export function MobileDevicePlatformToJSON(value?: MobileDevicePlatform | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function MobileDevicePlatformToJSONTyped(value: any, ignoreDiscriminator: boolean): MobileDevicePlatform {
51
+ return value as MobileDevicePlatform;
52
+ }
53
+
@@ -13,6 +13,14 @@
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
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -33,10 +41,10 @@ export interface MobileDeviceResource {
33
41
  deviceId: string;
34
42
  /**
35
43
  *
36
- * @type {string}
44
+ * @type {MobileDevicePlatform}
37
45
  * @memberof MobileDeviceResource
38
46
  */
39
- platform: MobileDeviceResourcePlatformEnum;
47
+ platform: MobileDevicePlatform;
40
48
  /**
41
49
  *
42
50
  * @type {string}
@@ -88,15 +96,6 @@ export interface MobileDeviceResource {
88
96
  }
89
97
 
90
98
 
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
99
 
101
100
  /**
102
101
  * Check if a given object implements the MobileDeviceResource interface.
@@ -124,7 +123,7 @@ export function MobileDeviceResourceFromJSONTyped(json: any, ignoreDiscriminator
124
123
 
125
124
  'id': json['id'] == null ? undefined : json['id'],
126
125
  'deviceId': json['deviceId'],
127
- 'platform': json['platform'],
126
+ 'platform': MobileDevicePlatformFromJSON(json['platform']),
128
127
  'osVersion': json['osVersion'],
129
128
  'appVersion': json['appVersion'],
130
129
  'model': json['model'],
@@ -149,7 +148,7 @@ export function MobileDeviceResourceToJSONTyped(value?: MobileDeviceResource | n
149
148
 
150
149
  'id': value['id'],
151
150
  'deviceId': value['deviceId'],
152
- 'platform': value['platform'],
151
+ 'platform': MobileDevicePlatformToJSON(value['platform']),
153
152
  'osVersion': value['osVersion'],
154
153
  'appVersion': value['appVersion'],
155
154
  'model': value['model'],
@@ -20,6 +20,13 @@ import {
20
20
  VenueLiteResourceToJSON,
21
21
  VenueLiteResourceToJSONTyped,
22
22
  } from './VenueLiteResource';
23
+ import type { NotificationType } from './NotificationType';
24
+ import {
25
+ NotificationTypeFromJSON,
26
+ NotificationTypeFromJSONTyped,
27
+ NotificationTypeToJSON,
28
+ NotificationTypeToJSONTyped,
29
+ } from './NotificationType';
23
30
 
24
31
  /**
25
32
  *
@@ -35,10 +42,10 @@ export interface NotificationPreferenceResource {
35
42
  id?: number | null;
36
43
  /**
37
44
  *
38
- * @type {string}
45
+ * @type {NotificationType}
39
46
  * @memberof NotificationPreferenceResource
40
47
  */
41
- notificationType: NotificationPreferenceResourceNotificationTypeEnum;
48
+ notificationType: NotificationType;
42
49
  /**
43
50
  *
44
51
  * @type {VenueLiteResource}
@@ -66,22 +73,6 @@ export interface NotificationPreferenceResource {
66
73
  }
67
74
 
68
75
 
69
- /**
70
- * @export
71
- */
72
- export const NotificationPreferenceResourceNotificationTypeEnum = {
73
- IncidentAdded: 'incident_added',
74
- IncidentPendingReminder: 'incident_pending_reminder',
75
- NonSignOff: 'non_sign_off',
76
- NonSignOn: 'non_sign_on',
77
- SignOnRejected: 'sign_on_rejected',
78
- LicenceUpdated: 'licence_updated',
79
- LicenceExpiringSoon: 'licence_expiring_soon',
80
- ExportReady: 'export_ready',
81
- ExportFailed: 'export_failed'
82
- } as const;
83
- export type NotificationPreferenceResourceNotificationTypeEnum = typeof NotificationPreferenceResourceNotificationTypeEnum[keyof typeof NotificationPreferenceResourceNotificationTypeEnum];
84
-
85
76
 
86
77
  /**
87
78
  * Check if a given object implements the NotificationPreferenceResource interface.
@@ -104,7 +95,7 @@ export function NotificationPreferenceResourceFromJSONTyped(json: any, ignoreDis
104
95
  return {
105
96
 
106
97
  'id': json['id'] == null ? undefined : json['id'],
107
- 'notificationType': json['notificationType'],
98
+ 'notificationType': NotificationTypeFromJSON(json['notificationType']),
108
99
  'venue': VenueLiteResourceFromJSON(json['venue']),
109
100
  'enabled': json['enabled'],
110
101
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -124,7 +115,7 @@ export function NotificationPreferenceResourceToJSONTyped(value?: NotificationPr
124
115
  return {
125
116
 
126
117
  'id': value['id'],
127
- 'notificationType': value['notificationType'],
118
+ 'notificationType': NotificationTypeToJSON(value['notificationType']),
128
119
  'venue': VenueLiteResourceToJSON(value['venue']),
129
120
  'enabled': value['enabled'],
130
121
  'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { NotificationType } from './NotificationType';
17
+ import {
18
+ NotificationTypeFromJSON,
19
+ NotificationTypeFromJSONTyped,
20
+ NotificationTypeToJSON,
21
+ NotificationTypeToJSONTyped,
22
+ } from './NotificationType';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -21,10 +29,10 @@ import { mapValues } from '../runtime';
21
29
  export interface NotificationPreferencesBulkRequestPreferencesInner {
22
30
  /**
23
31
  *
24
- * @type {string}
32
+ * @type {NotificationType}
25
33
  * @memberof NotificationPreferencesBulkRequestPreferencesInner
26
34
  */
27
- notificationType: NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum;
35
+ notificationType: NotificationType;
28
36
  /**
29
37
  *
30
38
  * @type {number}
@@ -40,22 +48,6 @@ export interface NotificationPreferencesBulkRequestPreferencesInner {
40
48
  }
41
49
 
42
50
 
43
- /**
44
- * @export
45
- */
46
- export const NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum = {
47
- IncidentAdded: 'incident_added',
48
- IncidentPendingReminder: 'incident_pending_reminder',
49
- NonSignOff: 'non_sign_off',
50
- NonSignOn: 'non_sign_on',
51
- SignOnRejected: 'sign_on_rejected',
52
- LicenceUpdated: 'licence_updated',
53
- LicenceExpiringSoon: 'licence_expiring_soon',
54
- ExportReady: 'export_ready',
55
- ExportFailed: 'export_failed'
56
- } as const;
57
- export type NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum = typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum[keyof typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum];
58
-
59
51
 
60
52
  /**
61
53
  * Check if a given object implements the NotificationPreferencesBulkRequestPreferencesInner interface.
@@ -76,7 +68,7 @@ export function NotificationPreferencesBulkRequestPreferencesInnerFromJSONTyped(
76
68
  }
77
69
  return {
78
70
 
79
- 'notificationType': json['notification_type'],
71
+ 'notificationType': NotificationTypeFromJSON(json['notification_type']),
80
72
  'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
81
73
  'enabled': json['enabled'],
82
74
  };
@@ -93,7 +85,7 @@ export function NotificationPreferencesBulkRequestPreferencesInnerToJSONTyped(va
93
85
 
94
86
  return {
95
87
 
96
- 'notification_type': value['notificationType'],
88
+ 'notification_type': NotificationTypeToJSON(value['notificationType']),
97
89
  'venue_id': value['venueId'],
98
90
  'enabled': value['enabled'],
99
91
  };
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { NotificationType } from './NotificationType';
17
+ import {
18
+ NotificationTypeFromJSON,
19
+ NotificationTypeFromJSONTyped,
20
+ NotificationTypeToJSON,
21
+ NotificationTypeToJSONTyped,
22
+ } from './NotificationType';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -21,10 +29,10 @@ import { mapValues } from '../runtime';
21
29
  export interface NotificationPreferencesStoreRequest {
22
30
  /**
23
31
  *
24
- * @type {string}
32
+ * @type {NotificationType}
25
33
  * @memberof NotificationPreferencesStoreRequest
26
34
  */
27
- notificationType: NotificationPreferencesStoreRequestNotificationTypeEnum;
35
+ notificationType: NotificationType;
28
36
  /**
29
37
  *
30
38
  * @type {number}
@@ -40,22 +48,6 @@ export interface NotificationPreferencesStoreRequest {
40
48
  }
41
49
 
42
50
 
43
- /**
44
- * @export
45
- */
46
- export const NotificationPreferencesStoreRequestNotificationTypeEnum = {
47
- IncidentAdded: 'incident_added',
48
- IncidentPendingReminder: 'incident_pending_reminder',
49
- NonSignOff: 'non_sign_off',
50
- NonSignOn: 'non_sign_on',
51
- SignOnRejected: 'sign_on_rejected',
52
- LicenceUpdated: 'licence_updated',
53
- LicenceExpiringSoon: 'licence_expiring_soon',
54
- ExportReady: 'export_ready',
55
- ExportFailed: 'export_failed'
56
- } as const;
57
- export type NotificationPreferencesStoreRequestNotificationTypeEnum = typeof NotificationPreferencesStoreRequestNotificationTypeEnum[keyof typeof NotificationPreferencesStoreRequestNotificationTypeEnum];
58
-
59
51
 
60
52
  /**
61
53
  * Check if a given object implements the NotificationPreferencesStoreRequest interface.
@@ -76,7 +68,7 @@ export function NotificationPreferencesStoreRequestFromJSONTyped(json: any, igno
76
68
  }
77
69
  return {
78
70
 
79
- 'notificationType': json['notification_type'],
71
+ 'notificationType': NotificationTypeFromJSON(json['notification_type']),
80
72
  'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
81
73
  'enabled': json['enabled'],
82
74
  };
@@ -93,7 +85,7 @@ export function NotificationPreferencesStoreRequestToJSONTyped(value?: Notificat
93
85
 
94
86
  return {
95
87
 
96
- 'notification_type': value['notificationType'],
88
+ 'notification_type': NotificationTypeToJSON(value['notificationType']),
97
89
  'venue_id': value['venueId'],
98
90
  'enabled': value['enabled'],
99
91
  };
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Security Registers API
5
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const NotificationStatus = {
21
+ Sent: 'sent',
22
+ Failed: 'failed'
23
+ } as const;
24
+ export type NotificationStatus = typeof NotificationStatus[keyof typeof NotificationStatus];
25
+
26
+
27
+ export function instanceOfNotificationStatus(value: any): boolean {
28
+ for (const key in NotificationStatus) {
29
+ if (Object.prototype.hasOwnProperty.call(NotificationStatus, key)) {
30
+ if (NotificationStatus[key as keyof typeof NotificationStatus] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function NotificationStatusFromJSON(json: any): NotificationStatus {
39
+ return NotificationStatusFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function NotificationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationStatus {
43
+ return json as NotificationStatus;
44
+ }
45
+
46
+ export function NotificationStatusToJSON(value?: NotificationStatus | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function NotificationStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationStatus {
51
+ return value as NotificationStatus;
52
+ }
53
+
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Security Registers API
5
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const NotificationType = {
21
+ IncidentAdded: 'incident_added',
22
+ IncidentPendingReminder: 'incident_pending_reminder',
23
+ NonSignOff: 'non_sign_off',
24
+ NonSignOn: 'non_sign_on',
25
+ SignOnRejected: 'sign_on_rejected',
26
+ LicenceUpdated: 'licence_updated',
27
+ LicenceExpiringSoon: 'licence_expiring_soon',
28
+ ExportReady: 'export_ready',
29
+ ExportFailed: 'export_failed'
30
+ } as const;
31
+ export type NotificationType = typeof NotificationType[keyof typeof NotificationType];
32
+
33
+
34
+ export function instanceOfNotificationType(value: any): boolean {
35
+ for (const key in NotificationType) {
36
+ if (Object.prototype.hasOwnProperty.call(NotificationType, key)) {
37
+ if (NotificationType[key as keyof typeof NotificationType] === value) {
38
+ return true;
39
+ }
40
+ }
41
+ }
42
+ return false;
43
+ }
44
+
45
+ export function NotificationTypeFromJSON(json: any): NotificationType {
46
+ return NotificationTypeFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function NotificationTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationType {
50
+ return json as NotificationType;
51
+ }
52
+
53
+ export function NotificationTypeToJSON(value?: NotificationType | null): any {
54
+ return value as any;
55
+ }
56
+
57
+ export function NotificationTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationType {
58
+ return value as NotificationType;
59
+ }
60
+