@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
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
13
+ import type { LicenceState } from './LicenceState';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -18,10 +19,10 @@ import type { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAs
18
19
  export interface LicencesUpdateRequest {
19
20
  /**
20
21
  *
21
- * @type {string}
22
+ * @type {LicenceState}
22
23
  * @memberof LicencesUpdateRequest
23
24
  */
24
- state?: LicencesUpdateRequestStateEnum;
25
+ state?: LicenceState;
25
26
  /**
26
27
  *
27
28
  * @type {string}
@@ -71,15 +72,6 @@ export interface LicencesUpdateRequest {
71
72
  */
72
73
  firstAidAsset?: LicencesStoreRequestBackAsset | null;
73
74
  }
74
- /**
75
- * @export
76
- */
77
- export declare const LicencesUpdateRequestStateEnum: {
78
- readonly Qld: "QLD";
79
- readonly Nsw: "NSW";
80
- readonly Vic: "VIC";
81
- };
82
- export type LicencesUpdateRequestStateEnum = typeof LicencesUpdateRequestStateEnum[keyof typeof LicencesUpdateRequestStateEnum];
83
75
  /**
84
76
  * Check if a given object implements the LicencesUpdateRequest interface.
85
77
  */
@@ -13,21 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.LicencesUpdateRequestStateEnum = void 0;
17
16
  exports.instanceOfLicencesUpdateRequest = instanceOfLicencesUpdateRequest;
18
17
  exports.LicencesUpdateRequestFromJSON = LicencesUpdateRequestFromJSON;
19
18
  exports.LicencesUpdateRequestFromJSONTyped = LicencesUpdateRequestFromJSONTyped;
20
19
  exports.LicencesUpdateRequestToJSON = LicencesUpdateRequestToJSON;
21
20
  exports.LicencesUpdateRequestToJSONTyped = LicencesUpdateRequestToJSONTyped;
22
21
  var LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset");
23
- /**
24
- * @export
25
- */
26
- exports.LicencesUpdateRequestStateEnum = {
27
- Qld: 'QLD',
28
- Nsw: 'NSW',
29
- Vic: 'VIC'
30
- };
22
+ var LicenceState_1 = require("./LicenceState");
31
23
  /**
32
24
  * Check if a given object implements the LicencesUpdateRequest interface.
33
25
  */
@@ -42,7 +34,7 @@ function LicencesUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
42
34
  return json;
43
35
  }
44
36
  return {
45
- 'state': json['state'] == null ? undefined : json['state'],
37
+ 'state': json['state'] == null ? undefined : (0, LicenceState_1.LicenceStateFromJSON)(json['state']),
46
38
  'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
47
39
  'firstName': json['first_name'] == null ? undefined : json['first_name'],
48
40
  'lastName': json['last_name'] == null ? undefined : json['last_name'],
@@ -62,7 +54,7 @@ function LicencesUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
62
54
  return value;
63
55
  }
64
56
  return {
65
- 'state': value['state'],
57
+ 'state': (0, LicenceState_1.LicenceStateToJSON)(value['state']),
66
58
  'licence_number': value['licenceNumber'],
67
59
  'first_name': value['firstName'],
68
60
  'last_name': value['lastName'],
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LicenceState } from './LicenceState';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface LicencesVerifyRequest {
18
19
  /**
19
20
  *
20
- * @type {string}
21
+ * @type {LicenceState}
21
22
  * @memberof LicencesVerifyRequest
22
23
  */
23
- state: LicencesVerifyRequestStateEnum;
24
+ state: LicenceState;
24
25
  /**
25
26
  *
26
27
  * @type {string}
@@ -46,15 +47,6 @@ export interface LicencesVerifyRequest {
46
47
  */
47
48
  expiryDate: string;
48
49
  }
49
- /**
50
- * @export
51
- */
52
- export declare const LicencesVerifyRequestStateEnum: {
53
- readonly Qld: "QLD";
54
- readonly Nsw: "NSW";
55
- readonly Vic: "VIC";
56
- };
57
- export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEnum[keyof typeof LicencesVerifyRequestStateEnum];
58
50
  /**
59
51
  * Check if a given object implements the LicencesVerifyRequest interface.
60
52
  */
@@ -13,20 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.LicencesVerifyRequestStateEnum = void 0;
17
16
  exports.instanceOfLicencesVerifyRequest = instanceOfLicencesVerifyRequest;
18
17
  exports.LicencesVerifyRequestFromJSON = LicencesVerifyRequestFromJSON;
19
18
  exports.LicencesVerifyRequestFromJSONTyped = LicencesVerifyRequestFromJSONTyped;
20
19
  exports.LicencesVerifyRequestToJSON = LicencesVerifyRequestToJSON;
21
20
  exports.LicencesVerifyRequestToJSONTyped = LicencesVerifyRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.LicencesVerifyRequestStateEnum = {
26
- Qld: 'QLD',
27
- Nsw: 'NSW',
28
- Vic: 'VIC'
29
- };
21
+ var LicenceState_1 = require("./LicenceState");
30
22
  /**
31
23
  * Check if a given object implements the LicencesVerifyRequest interface.
32
24
  */
@@ -51,7 +43,7 @@ function LicencesVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
51
43
  return json;
52
44
  }
53
45
  return {
54
- 'state': json['state'],
46
+ 'state': (0, LicenceState_1.LicenceStateFromJSON)(json['state']),
55
47
  'licenceNumber': json['licence_number'],
56
48
  'givenName': json['given_name'],
57
49
  'lastName': json['last_name'],
@@ -67,7 +59,7 @@ function LicencesVerifyRequestToJSONTyped(value, ignoreDiscriminator) {
67
59
  return value;
68
60
  }
69
61
  return {
70
- 'state': value['state'],
62
+ 'state': (0, LicenceState_1.LicenceStateToJSON)(value['state']),
71
63
  'licence_number': value['licenceNumber'],
72
64
  'given_name': value['givenName'],
73
65
  'last_name': value['lastName'],
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const LoginPlatform: {
17
+ readonly App: "app";
18
+ readonly Web: "web";
19
+ };
20
+ export type LoginPlatform = typeof LoginPlatform[keyof typeof LoginPlatform];
21
+ export declare function instanceOfLoginPlatform(value: any): boolean;
22
+ export declare function LoginPlatformFromJSON(json: any): LoginPlatform;
23
+ export declare function LoginPlatformFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginPlatform;
24
+ export declare function LoginPlatformToJSON(value?: LoginPlatform | null): any;
25
+ export declare function LoginPlatformToJSONTyped(value: any, ignoreDiscriminator: boolean): LoginPlatform;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.LoginPlatform = void 0;
17
+ exports.instanceOfLoginPlatform = instanceOfLoginPlatform;
18
+ exports.LoginPlatformFromJSON = LoginPlatformFromJSON;
19
+ exports.LoginPlatformFromJSONTyped = LoginPlatformFromJSONTyped;
20
+ exports.LoginPlatformToJSON = LoginPlatformToJSON;
21
+ exports.LoginPlatformToJSONTyped = LoginPlatformToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.LoginPlatform = {
27
+ App: 'app',
28
+ Web: 'web'
29
+ };
30
+ function instanceOfLoginPlatform(value) {
31
+ for (var key in exports.LoginPlatform) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.LoginPlatform, key)) {
33
+ if (exports.LoginPlatform[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function LoginPlatformFromJSON(json) {
41
+ return LoginPlatformFromJSONTyped(json, false);
42
+ }
43
+ function LoginPlatformFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function LoginPlatformToJSON(value) {
47
+ return value;
48
+ }
49
+ function LoginPlatformToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { MobileDevicePlatform } from './MobileDevicePlatform';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface MobileAppConfigRequest {
18
19
  /**
19
20
  *
20
- * @type {string}
21
+ * @type {MobileDevicePlatform}
21
22
  * @memberof MobileAppConfigRequest
22
23
  */
23
- platform: MobileAppConfigRequestPlatformEnum;
24
+ platform: MobileDevicePlatform;
24
25
  /**
25
26
  * The app's current version as a semantic version string (e.g. "1.4.2").
26
27
  * @type {string}
@@ -28,14 +29,6 @@ export interface MobileAppConfigRequest {
28
29
  */
29
30
  appVersion: string;
30
31
  }
31
- /**
32
- * @export
33
- */
34
- export declare const MobileAppConfigRequestPlatformEnum: {
35
- readonly Ios: "ios";
36
- readonly Android: "android";
37
- };
38
- export type MobileAppConfigRequestPlatformEnum = typeof MobileAppConfigRequestPlatformEnum[keyof typeof MobileAppConfigRequestPlatformEnum];
39
32
  /**
40
33
  * Check if a given object implements the MobileAppConfigRequest interface.
41
34
  */
@@ -13,19 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MobileAppConfigRequestPlatformEnum = void 0;
17
16
  exports.instanceOfMobileAppConfigRequest = instanceOfMobileAppConfigRequest;
18
17
  exports.MobileAppConfigRequestFromJSON = MobileAppConfigRequestFromJSON;
19
18
  exports.MobileAppConfigRequestFromJSONTyped = MobileAppConfigRequestFromJSONTyped;
20
19
  exports.MobileAppConfigRequestToJSON = MobileAppConfigRequestToJSON;
21
20
  exports.MobileAppConfigRequestToJSONTyped = MobileAppConfigRequestToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.MobileAppConfigRequestPlatformEnum = {
26
- Ios: 'ios',
27
- Android: 'android'
28
- };
21
+ var MobileDevicePlatform_1 = require("./MobileDevicePlatform");
29
22
  /**
30
23
  * Check if a given object implements the MobileAppConfigRequest interface.
31
24
  */
@@ -44,7 +37,7 @@ function MobileAppConfigRequestFromJSONTyped(json, ignoreDiscriminator) {
44
37
  return json;
45
38
  }
46
39
  return {
47
- 'platform': json['platform'],
40
+ 'platform': (0, MobileDevicePlatform_1.MobileDevicePlatformFromJSON)(json['platform']),
48
41
  'appVersion': json['app_version'],
49
42
  };
50
43
  }
@@ -57,7 +50,7 @@ function MobileAppConfigRequestToJSONTyped(value, ignoreDiscriminator) {
57
50
  return value;
58
51
  }
59
52
  return {
60
- 'platform': value['platform'],
53
+ 'platform': (0, MobileDevicePlatform_1.MobileDevicePlatformToJSON)(value['platform']),
61
54
  'app_version': value['appVersion'],
62
55
  };
63
56
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { MobileDevicePlatform } from './MobileDevicePlatform';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface MobileAppConfigResource {
18
19
  /**
19
20
  *
20
- * @type {string}
21
+ * @type {MobileDevicePlatform}
21
22
  * @memberof MobileAppConfigResource
22
23
  */
23
- platform: MobileAppConfigResourcePlatformEnum;
24
+ platform: MobileDevicePlatform;
24
25
  /**
25
26
  *
26
27
  * @type {boolean}
@@ -40,14 +41,6 @@ export interface MobileAppConfigResource {
40
41
  */
41
42
  message?: string | null;
42
43
  }
43
- /**
44
- * @export
45
- */
46
- export declare const MobileAppConfigResourcePlatformEnum: {
47
- readonly Ios: "ios";
48
- readonly Android: "android";
49
- };
50
- export type MobileAppConfigResourcePlatformEnum = typeof MobileAppConfigResourcePlatformEnum[keyof typeof MobileAppConfigResourcePlatformEnum];
51
44
  /**
52
45
  * Check if a given object implements the MobileAppConfigResource interface.
53
46
  */
@@ -13,19 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MobileAppConfigResourcePlatformEnum = void 0;
17
16
  exports.instanceOfMobileAppConfigResource = instanceOfMobileAppConfigResource;
18
17
  exports.MobileAppConfigResourceFromJSON = MobileAppConfigResourceFromJSON;
19
18
  exports.MobileAppConfigResourceFromJSONTyped = MobileAppConfigResourceFromJSONTyped;
20
19
  exports.MobileAppConfigResourceToJSON = MobileAppConfigResourceToJSON;
21
20
  exports.MobileAppConfigResourceToJSONTyped = MobileAppConfigResourceToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.MobileAppConfigResourcePlatformEnum = {
26
- Ios: 'ios',
27
- Android: 'android'
28
- };
21
+ var MobileDevicePlatform_1 = require("./MobileDevicePlatform");
29
22
  /**
30
23
  * Check if a given object implements the MobileAppConfigResource interface.
31
24
  */
@@ -46,7 +39,7 @@ function MobileAppConfigResourceFromJSONTyped(json, ignoreDiscriminator) {
46
39
  return json;
47
40
  }
48
41
  return {
49
- 'platform': json['platform'],
42
+ 'platform': (0, MobileDevicePlatform_1.MobileDevicePlatformFromJSON)(json['platform']),
50
43
  'forceUpdate': json['forceUpdate'],
51
44
  'updateUrl': json['updateUrl'],
52
45
  'message': json['message'] == null ? undefined : json['message'],
@@ -61,7 +54,7 @@ function MobileAppConfigResourceToJSONTyped(value, ignoreDiscriminator) {
61
54
  return value;
62
55
  }
63
56
  return {
64
- 'platform': value['platform'],
57
+ 'platform': (0, MobileDevicePlatform_1.MobileDevicePlatformToJSON)(value['platform']),
65
58
  'forceUpdate': value['forceUpdate'],
66
59
  'updateUrl': value['updateUrl'],
67
60
  'message': value['message'],
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const MobileDevicePlatform: {
17
+ readonly Ios: "ios";
18
+ readonly Android: "android";
19
+ };
20
+ export type MobileDevicePlatform = typeof MobileDevicePlatform[keyof typeof MobileDevicePlatform];
21
+ export declare function instanceOfMobileDevicePlatform(value: any): boolean;
22
+ export declare function MobileDevicePlatformFromJSON(json: any): MobileDevicePlatform;
23
+ export declare function MobileDevicePlatformFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileDevicePlatform;
24
+ export declare function MobileDevicePlatformToJSON(value?: MobileDevicePlatform | null): any;
25
+ export declare function MobileDevicePlatformToJSONTyped(value: any, ignoreDiscriminator: boolean): MobileDevicePlatform;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MobileDevicePlatform = void 0;
17
+ exports.instanceOfMobileDevicePlatform = instanceOfMobileDevicePlatform;
18
+ exports.MobileDevicePlatformFromJSON = MobileDevicePlatformFromJSON;
19
+ exports.MobileDevicePlatformFromJSONTyped = MobileDevicePlatformFromJSONTyped;
20
+ exports.MobileDevicePlatformToJSON = MobileDevicePlatformToJSON;
21
+ exports.MobileDevicePlatformToJSONTyped = MobileDevicePlatformToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.MobileDevicePlatform = {
27
+ Ios: 'ios',
28
+ Android: 'android'
29
+ };
30
+ function instanceOfMobileDevicePlatform(value) {
31
+ for (var key in exports.MobileDevicePlatform) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.MobileDevicePlatform, key)) {
33
+ if (exports.MobileDevicePlatform[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function MobileDevicePlatformFromJSON(json) {
41
+ return MobileDevicePlatformFromJSONTyped(json, false);
42
+ }
43
+ function MobileDevicePlatformFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function MobileDevicePlatformToJSON(value) {
47
+ return value;
48
+ }
49
+ function MobileDevicePlatformToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { MobileDevicePlatform } from './MobileDevicePlatform';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -29,10 +30,10 @@ export interface MobileDeviceResource {
29
30
  deviceId: string;
30
31
  /**
31
32
  *
32
- * @type {string}
33
+ * @type {MobileDevicePlatform}
33
34
  * @memberof MobileDeviceResource
34
35
  */
35
- platform: MobileDeviceResourcePlatformEnum;
36
+ platform: MobileDevicePlatform;
36
37
  /**
37
38
  *
38
39
  * @type {string}
@@ -82,14 +83,6 @@ export interface MobileDeviceResource {
82
83
  */
83
84
  updatedAt?: Date | null;
84
85
  }
85
- /**
86
- * @export
87
- */
88
- export declare const MobileDeviceResourcePlatformEnum: {
89
- readonly Ios: "ios";
90
- readonly Android: "android";
91
- };
92
- export type MobileDeviceResourcePlatformEnum = typeof MobileDeviceResourcePlatformEnum[keyof typeof MobileDeviceResourcePlatformEnum];
93
86
  /**
94
87
  * Check if a given object implements the MobileDeviceResource interface.
95
88
  */
@@ -13,19 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MobileDeviceResourcePlatformEnum = void 0;
17
16
  exports.instanceOfMobileDeviceResource = instanceOfMobileDeviceResource;
18
17
  exports.MobileDeviceResourceFromJSON = MobileDeviceResourceFromJSON;
19
18
  exports.MobileDeviceResourceFromJSONTyped = MobileDeviceResourceFromJSONTyped;
20
19
  exports.MobileDeviceResourceToJSON = MobileDeviceResourceToJSON;
21
20
  exports.MobileDeviceResourceToJSONTyped = MobileDeviceResourceToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.MobileDeviceResourcePlatformEnum = {
26
- Ios: 'ios',
27
- Android: 'android'
28
- };
21
+ var MobileDevicePlatform_1 = require("./MobileDevicePlatform");
29
22
  /**
30
23
  * Check if a given object implements the MobileDeviceResource interface.
31
24
  */
@@ -56,7 +49,7 @@ function MobileDeviceResourceFromJSONTyped(json, ignoreDiscriminator) {
56
49
  return {
57
50
  'id': json['id'] == null ? undefined : json['id'],
58
51
  'deviceId': json['deviceId'],
59
- 'platform': json['platform'],
52
+ 'platform': (0, MobileDevicePlatform_1.MobileDevicePlatformFromJSON)(json['platform']),
60
53
  'osVersion': json['osVersion'],
61
54
  'appVersion': json['appVersion'],
62
55
  'model': json['model'],
@@ -79,7 +72,7 @@ function MobileDeviceResourceToJSONTyped(value, ignoreDiscriminator) {
79
72
  return {
80
73
  'id': value['id'],
81
74
  'deviceId': value['deviceId'],
82
- 'platform': value['platform'],
75
+ 'platform': (0, MobileDevicePlatform_1.MobileDevicePlatformToJSON)(value['platform']),
83
76
  'osVersion': value['osVersion'],
84
77
  'appVersion': value['appVersion'],
85
78
  'model': value['model'],
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { VenueLiteResource } from './VenueLiteResource';
13
+ import type { NotificationType } from './NotificationType';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -24,10 +25,10 @@ export interface NotificationPreferenceResource {
24
25
  id?: number | null;
25
26
  /**
26
27
  *
27
- * @type {string}
28
+ * @type {NotificationType}
28
29
  * @memberof NotificationPreferenceResource
29
30
  */
30
- notificationType: NotificationPreferenceResourceNotificationTypeEnum;
31
+ notificationType: NotificationType;
31
32
  /**
32
33
  *
33
34
  * @type {VenueLiteResource}
@@ -53,21 +54,6 @@ export interface NotificationPreferenceResource {
53
54
  */
54
55
  updatedAt?: Date | null;
55
56
  }
56
- /**
57
- * @export
58
- */
59
- export declare const NotificationPreferenceResourceNotificationTypeEnum: {
60
- readonly IncidentAdded: "incident_added";
61
- readonly IncidentPendingReminder: "incident_pending_reminder";
62
- readonly NonSignOff: "non_sign_off";
63
- readonly NonSignOn: "non_sign_on";
64
- readonly SignOnRejected: "sign_on_rejected";
65
- readonly LicenceUpdated: "licence_updated";
66
- readonly LicenceExpiringSoon: "licence_expiring_soon";
67
- readonly ExportReady: "export_ready";
68
- readonly ExportFailed: "export_failed";
69
- };
70
- export type NotificationPreferenceResourceNotificationTypeEnum = typeof NotificationPreferenceResourceNotificationTypeEnum[keyof typeof NotificationPreferenceResourceNotificationTypeEnum];
71
57
  /**
72
58
  * Check if a given object implements the NotificationPreferenceResource interface.
73
59
  */
@@ -13,27 +13,13 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.NotificationPreferenceResourceNotificationTypeEnum = void 0;
17
16
  exports.instanceOfNotificationPreferenceResource = instanceOfNotificationPreferenceResource;
18
17
  exports.NotificationPreferenceResourceFromJSON = NotificationPreferenceResourceFromJSON;
19
18
  exports.NotificationPreferenceResourceFromJSONTyped = NotificationPreferenceResourceFromJSONTyped;
20
19
  exports.NotificationPreferenceResourceToJSON = NotificationPreferenceResourceToJSON;
21
20
  exports.NotificationPreferenceResourceToJSONTyped = NotificationPreferenceResourceToJSONTyped;
22
21
  var VenueLiteResource_1 = require("./VenueLiteResource");
23
- /**
24
- * @export
25
- */
26
- exports.NotificationPreferenceResourceNotificationTypeEnum = {
27
- IncidentAdded: 'incident_added',
28
- IncidentPendingReminder: 'incident_pending_reminder',
29
- NonSignOff: 'non_sign_off',
30
- NonSignOn: 'non_sign_on',
31
- SignOnRejected: 'sign_on_rejected',
32
- LicenceUpdated: 'licence_updated',
33
- LicenceExpiringSoon: 'licence_expiring_soon',
34
- ExportReady: 'export_ready',
35
- ExportFailed: 'export_failed'
36
- };
22
+ var NotificationType_1 = require("./NotificationType");
37
23
  /**
38
24
  * Check if a given object implements the NotificationPreferenceResource interface.
39
25
  */
@@ -55,7 +41,7 @@ function NotificationPreferenceResourceFromJSONTyped(json, ignoreDiscriminator)
55
41
  }
56
42
  return {
57
43
  'id': json['id'] == null ? undefined : json['id'],
58
- 'notificationType': json['notificationType'],
44
+ 'notificationType': (0, NotificationType_1.NotificationTypeFromJSON)(json['notificationType']),
59
45
  'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
60
46
  'enabled': json['enabled'],
61
47
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
@@ -73,7 +59,7 @@ function NotificationPreferenceResourceToJSONTyped(value, ignoreDiscriminator) {
73
59
  }
74
60
  return {
75
61
  'id': value['id'],
76
- 'notificationType': value['notificationType'],
62
+ 'notificationType': (0, NotificationType_1.NotificationTypeToJSON)(value['notificationType']),
77
63
  'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
78
64
  'enabled': value['enabled'],
79
65
  'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { NotificationType } from './NotificationType';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface NotificationPreferencesBulkRequestPreferencesInner {
18
19
  /**
19
20
  *
20
- * @type {string}
21
+ * @type {NotificationType}
21
22
  * @memberof NotificationPreferencesBulkRequestPreferencesInner
22
23
  */
23
- notificationType: NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum;
24
+ notificationType: NotificationType;
24
25
  /**
25
26
  *
26
27
  * @type {number}
@@ -34,21 +35,6 @@ export interface NotificationPreferencesBulkRequestPreferencesInner {
34
35
  */
35
36
  enabled: boolean;
36
37
  }
37
- /**
38
- * @export
39
- */
40
- export declare const NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum: {
41
- readonly IncidentAdded: "incident_added";
42
- readonly IncidentPendingReminder: "incident_pending_reminder";
43
- readonly NonSignOff: "non_sign_off";
44
- readonly NonSignOn: "non_sign_on";
45
- readonly SignOnRejected: "sign_on_rejected";
46
- readonly LicenceUpdated: "licence_updated";
47
- readonly LicenceExpiringSoon: "licence_expiring_soon";
48
- readonly ExportReady: "export_ready";
49
- readonly ExportFailed: "export_failed";
50
- };
51
- export type NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum = typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum[keyof typeof NotificationPreferencesBulkRequestPreferencesInnerNotificationTypeEnum];
52
38
  /**
53
39
  * Check if a given object implements the NotificationPreferencesBulkRequestPreferencesInner interface.
54
40
  */