@digital8/security-registers-backend-ts-sdk 0.0.218 → 0.0.220

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 (102) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +131 -3
  4. package/dist/apis/GeneralApi.js +758 -93
  5. package/dist/models/AssetResource.d.ts +1 -1
  6. package/dist/models/AssetResource.js +3 -1
  7. package/dist/models/IncidentFieldSchemaResource.d.ts +56 -0
  8. package/dist/models/IncidentFieldSchemaResource.js +62 -0
  9. package/dist/models/IncidentFieldSchemaResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/IncidentFieldSchemaResourceArrayResponse.js +50 -0
  11. package/dist/models/IncidentFieldSchemasShowRequest.d.ts +46 -0
  12. package/dist/models/IncidentFieldSchemasShowRequest.js +65 -0
  13. package/dist/models/LicencesStoreRequest.d.ts +100 -4
  14. package/dist/models/LicencesStoreRequest.js +41 -9
  15. package/dist/models/LicencesUpdateRequest.d.ts +120 -4
  16. package/dist/models/LicencesUpdateRequest.js +56 -8
  17. package/dist/models/NotificationPreferenceResource.d.ts +63 -0
  18. package/dist/models/NotificationPreferenceResource.js +67 -0
  19. package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +33 -0
  20. package/dist/models/NotificationPreferenceResourceArrayResponse.js +50 -0
  21. package/dist/models/NotificationPreferencesStoreRequest.d.ts +55 -0
  22. package/dist/models/NotificationPreferencesStoreRequest.js +68 -0
  23. package/dist/models/NotificationTypeResource.d.ts +38 -0
  24. package/dist/models/NotificationTypeResource.js +55 -0
  25. package/dist/models/NotificationTypeResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/NotificationTypeResourceArrayResponse.js +50 -0
  27. package/dist/models/PaginatedRegisterGroupedByRosterResourceResponse.d.ts +40 -0
  28. package/dist/models/PaginatedRegisterGroupedByRosterResourceResponse.js +57 -0
  29. package/dist/models/PdfExportResource.d.ts +50 -0
  30. package/dist/models/PdfExportResource.js +61 -0
  31. package/dist/models/PdfExportResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/PdfExportResourceArrayResponse.js +50 -0
  33. package/dist/models/RegisterGroupedByRosterResource.d.ts +70 -0
  34. package/dist/models/RegisterGroupedByRosterResource.js +75 -0
  35. package/dist/models/RegisterGroupedByRosterResourceArrayResponse.d.ts +33 -0
  36. package/dist/models/RegisterGroupedByRosterResourceArrayResponse.js +50 -0
  37. package/dist/models/RegisterListResource.d.ts +4 -4
  38. package/dist/models/RegisterListResource.js +4 -7
  39. package/dist/models/RegistersCreateRequest.d.ts +98 -0
  40. package/dist/models/RegistersCreateRequest.js +83 -0
  41. package/dist/models/RegistersUpdateRequest.d.ts +113 -0
  42. package/dist/models/RegistersUpdateRequest.js +82 -0
  43. package/dist/models/RosterLiteResource.d.ts +1 -1
  44. package/dist/models/RosterLiteResource.js +4 -3
  45. package/dist/models/RosterResource.d.ts +1 -1
  46. package/dist/models/RosterResource.js +4 -3
  47. package/dist/models/RostersListAllRequest.d.ts +6 -0
  48. package/dist/models/RostersListAllRequest.js +2 -0
  49. package/dist/models/RostersListRequest.d.ts +6 -0
  50. package/dist/models/RostersListRequest.js +2 -0
  51. package/dist/models/RostersListWithRegistersRequest.d.ts +6 -0
  52. package/dist/models/RostersListWithRegistersRequest.js +2 -0
  53. package/dist/models/RostersUpdateRequest.d.ts +77 -0
  54. package/dist/models/RostersUpdateRequest.js +70 -0
  55. package/dist/models/UpdateUserRequest.d.ts +6 -0
  56. package/dist/models/UpdateUserRequest.js +2 -0
  57. package/dist/models/UserLiteResource.d.ts +7 -0
  58. package/dist/models/UserLiteResource.js +5 -0
  59. package/dist/models/UserResource.d.ts +6 -0
  60. package/dist/models/UserResource.js +4 -0
  61. package/dist/models/UsersCreateWithRoleRequest.d.ts +6 -0
  62. package/dist/models/UsersCreateWithRoleRequest.js +2 -0
  63. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +8 -8
  64. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +9 -9
  65. package/dist/models/VenueResource.d.ts +6 -0
  66. package/dist/models/VenueResource.js +4 -0
  67. package/dist/models/index.d.ts +16 -0
  68. package/dist/models/index.js +16 -0
  69. package/package.json +1 -1
  70. package/src/apis/GeneralApi.ts +593 -6
  71. package/src/models/AssetResource.ts +3 -2
  72. package/src/models/IncidentFieldSchemaResource.ts +99 -0
  73. package/src/models/IncidentFieldSchemaResourceArrayResponse.ts +73 -0
  74. package/src/models/IncidentFieldSchemasShowRequest.ts +83 -0
  75. package/src/models/LicencesStoreRequest.ts +141 -13
  76. package/src/models/LicencesUpdateRequest.ts +165 -12
  77. package/src/models/NotificationPreferenceResource.ts +116 -0
  78. package/src/models/NotificationPreferenceResourceArrayResponse.ts +73 -0
  79. package/src/models/NotificationPreferencesStoreRequest.ts +97 -0
  80. package/src/models/NotificationTypeResource.ts +75 -0
  81. package/src/models/NotificationTypeResourceArrayResponse.ts +73 -0
  82. package/src/models/PaginatedRegisterGroupedByRosterResourceResponse.ts +90 -0
  83. package/src/models/PdfExportResource.ts +92 -0
  84. package/src/models/PdfExportResourceArrayResponse.ts +73 -0
  85. package/src/models/RegisterGroupedByRosterResource.ts +134 -0
  86. package/src/models/RegisterGroupedByRosterResourceArrayResponse.ts +73 -0
  87. package/src/models/RegisterListResource.ts +7 -9
  88. package/src/models/RegistersCreateRequest.ts +159 -0
  89. package/src/models/RegistersUpdateRequest.ts +173 -0
  90. package/src/models/RosterLiteResource.ts +4 -3
  91. package/src/models/RosterResource.ts +4 -3
  92. package/src/models/RostersListAllRequest.ts +8 -0
  93. package/src/models/RostersListRequest.ts +8 -0
  94. package/src/models/RostersListWithRegistersRequest.ts +8 -0
  95. package/src/models/RostersUpdateRequest.ts +125 -0
  96. package/src/models/UpdateUserRequest.ts +8 -0
  97. package/src/models/UserLiteResource.ts +17 -0
  98. package/src/models/UserResource.ts +9 -0
  99. package/src/models/UsersCreateWithRoleRequest.ts +8 -0
  100. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +17 -17
  101. package/src/models/VenueResource.ts +9 -0
  102. package/src/models/index.ts +16 -0
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
19
19
  * @interface LicencesUpdateRequest
20
20
  */
21
21
  export interface LicencesUpdateRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof LicencesUpdateRequest
26
+ */
27
+ state?: LicencesUpdateRequestStateEnum;
22
28
  /**
23
29
  *
24
30
  * @type {string}
@@ -43,32 +49,145 @@ export interface LicencesUpdateRequest {
43
49
  * @memberof LicencesUpdateRequest
44
50
  */
45
51
  expiryDate?: Date;
52
+ /**
53
+ *
54
+ * @type {Array<string>}
55
+ * @memberof LicencesUpdateRequest
56
+ */
57
+ frontAsset?: Array<string>;
46
58
  /**
47
59
  *
48
60
  * @type {number}
49
61
  * @memberof LicencesUpdateRequest
50
62
  */
51
- frontAssetId?: number;
63
+ frontAssetFileId?: number;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof LicencesUpdateRequest
68
+ */
69
+ frontAssetFileName?: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof LicencesUpdateRequest
74
+ */
75
+ frontAssetMimeType?: string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof LicencesUpdateRequest
80
+ */
81
+ frontAssetAltText?: string;
82
+ /**
83
+ *
84
+ * @type {Array<string>}
85
+ * @memberof LicencesUpdateRequest
86
+ */
87
+ backAsset?: Array<string>;
52
88
  /**
53
89
  *
54
90
  * @type {number}
55
91
  * @memberof LicencesUpdateRequest
56
92
  */
57
- backAssetId?: number;
93
+ backAssetFileId?: number;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof LicencesUpdateRequest
98
+ */
99
+ backAssetFileName?: string;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof LicencesUpdateRequest
104
+ */
105
+ backAssetMimeType?: string;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof LicencesUpdateRequest
110
+ */
111
+ backAssetAltText?: string;
112
+ /**
113
+ *
114
+ * @type {Array<string>}
115
+ * @memberof LicencesUpdateRequest
116
+ */
117
+ rsaAsset?: Array<string>;
58
118
  /**
59
119
  *
60
120
  * @type {number}
61
121
  * @memberof LicencesUpdateRequest
62
122
  */
63
- rsaAssetId?: number;
123
+ rsaAssetFileId?: number;
124
+ /**
125
+ *
126
+ * @type {string}
127
+ * @memberof LicencesUpdateRequest
128
+ */
129
+ rsaAssetFileName?: string;
130
+ /**
131
+ *
132
+ * @type {string}
133
+ * @memberof LicencesUpdateRequest
134
+ */
135
+ rsaAssetMimeType?: string;
136
+ /**
137
+ *
138
+ * @type {string}
139
+ * @memberof LicencesUpdateRequest
140
+ */
141
+ rsaAssetAltText?: string;
142
+ /**
143
+ *
144
+ * @type {Array<string>}
145
+ * @memberof LicencesUpdateRequest
146
+ */
147
+ firstAidAsset?: Array<string>;
64
148
  /**
65
149
  *
66
150
  * @type {number}
67
151
  * @memberof LicencesUpdateRequest
68
152
  */
69
- firstAidAssetId?: number;
153
+ firstAidAssetFileId?: number;
154
+ /**
155
+ *
156
+ * @type {string}
157
+ * @memberof LicencesUpdateRequest
158
+ */
159
+ firstAidAssetFileName?: string;
160
+ /**
161
+ *
162
+ * @type {string}
163
+ * @memberof LicencesUpdateRequest
164
+ */
165
+ firstAidAssetMimeType?: string;
166
+ /**
167
+ *
168
+ * @type {string}
169
+ * @memberof LicencesUpdateRequest
170
+ */
171
+ firstAidAssetAltText?: string;
70
172
  }
71
173
 
174
+
175
+ /**
176
+ * @export
177
+ */
178
+ export const LicencesUpdateRequestStateEnum = {
179
+ Qld: 'QLD',
180
+ Nsw: 'NSW',
181
+ Act: 'ACT',
182
+ Vic: 'VIC',
183
+ Tas: 'TAS',
184
+ Sa: 'SA',
185
+ Wa: 'WA',
186
+ Nt: 'NT'
187
+ } as const;
188
+ export type LicencesUpdateRequestStateEnum = typeof LicencesUpdateRequestStateEnum[keyof typeof LicencesUpdateRequestStateEnum];
189
+
190
+
72
191
  /**
73
192
  * Check if a given object implements the LicencesUpdateRequest interface.
74
193
  */
@@ -86,14 +205,31 @@ export function LicencesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminato
86
205
  }
87
206
  return {
88
207
 
208
+ 'state': json['state'] == null ? undefined : json['state'],
89
209
  'licenceNumber': json['licence_number'] == null ? undefined : json['licence_number'],
90
210
  'firstName': json['first_name'] == null ? undefined : json['first_name'],
91
211
  'lastName': json['last_name'] == null ? undefined : json['last_name'],
92
212
  'expiryDate': json['expiry_date'] == null ? undefined : (new Date(json['expiry_date'])),
93
- 'frontAssetId': json['front_asset_id'] == null ? undefined : json['front_asset_id'],
94
- 'backAssetId': json['back_asset_id'] == null ? undefined : json['back_asset_id'],
95
- 'rsaAssetId': json['rsa_asset_id'] == null ? undefined : json['rsa_asset_id'],
96
- 'firstAidAssetId': json['first_aid_asset_id'] == null ? undefined : json['first_aid_asset_id'],
213
+ 'frontAsset': json['front_asset'] == null ? undefined : json['front_asset'],
214
+ 'frontAssetFileId': json['front_asset.file_id'] == null ? undefined : json['front_asset.file_id'],
215
+ 'frontAssetFileName': json['front_asset.file_name'] == null ? undefined : json['front_asset.file_name'],
216
+ 'frontAssetMimeType': json['front_asset.mime_type'] == null ? undefined : json['front_asset.mime_type'],
217
+ 'frontAssetAltText': json['front_asset.alt_text'] == null ? undefined : json['front_asset.alt_text'],
218
+ 'backAsset': json['back_asset'] == null ? undefined : json['back_asset'],
219
+ 'backAssetFileId': json['back_asset.file_id'] == null ? undefined : json['back_asset.file_id'],
220
+ 'backAssetFileName': json['back_asset.file_name'] == null ? undefined : json['back_asset.file_name'],
221
+ 'backAssetMimeType': json['back_asset.mime_type'] == null ? undefined : json['back_asset.mime_type'],
222
+ 'backAssetAltText': json['back_asset.alt_text'] == null ? undefined : json['back_asset.alt_text'],
223
+ 'rsaAsset': json['rsa_asset'] == null ? undefined : json['rsa_asset'],
224
+ 'rsaAssetFileId': json['rsa_asset.file_id'] == null ? undefined : json['rsa_asset.file_id'],
225
+ 'rsaAssetFileName': json['rsa_asset.file_name'] == null ? undefined : json['rsa_asset.file_name'],
226
+ 'rsaAssetMimeType': json['rsa_asset.mime_type'] == null ? undefined : json['rsa_asset.mime_type'],
227
+ 'rsaAssetAltText': json['rsa_asset.alt_text'] == null ? undefined : json['rsa_asset.alt_text'],
228
+ 'firstAidAsset': json['first_aid_asset'] == null ? undefined : json['first_aid_asset'],
229
+ 'firstAidAssetFileId': json['first_aid_asset.file_id'] == null ? undefined : json['first_aid_asset.file_id'],
230
+ 'firstAidAssetFileName': json['first_aid_asset.file_name'] == null ? undefined : json['first_aid_asset.file_name'],
231
+ 'firstAidAssetMimeType': json['first_aid_asset.mime_type'] == null ? undefined : json['first_aid_asset.mime_type'],
232
+ 'firstAidAssetAltText': json['first_aid_asset.alt_text'] == null ? undefined : json['first_aid_asset.alt_text'],
97
233
  };
98
234
  }
99
235
 
@@ -108,14 +244,31 @@ export function LicencesUpdateRequestToJSONTyped(value?: LicencesUpdateRequest |
108
244
 
109
245
  return {
110
246
 
247
+ 'state': value['state'],
111
248
  'licence_number': value['licenceNumber'],
112
249
  'first_name': value['firstName'],
113
250
  'last_name': value['lastName'],
114
251
  'expiry_date': value['expiryDate'] == null ? undefined : ((value['expiryDate']).toISOString()),
115
- 'front_asset_id': value['frontAssetId'],
116
- 'back_asset_id': value['backAssetId'],
117
- 'rsa_asset_id': value['rsaAssetId'],
118
- 'first_aid_asset_id': value['firstAidAssetId'],
252
+ 'front_asset': value['frontAsset'],
253
+ 'front_asset.file_id': value['frontAssetFileId'],
254
+ 'front_asset.file_name': value['frontAssetFileName'],
255
+ 'front_asset.mime_type': value['frontAssetMimeType'],
256
+ 'front_asset.alt_text': value['frontAssetAltText'],
257
+ 'back_asset': value['backAsset'],
258
+ 'back_asset.file_id': value['backAssetFileId'],
259
+ 'back_asset.file_name': value['backAssetFileName'],
260
+ 'back_asset.mime_type': value['backAssetMimeType'],
261
+ 'back_asset.alt_text': value['backAssetAltText'],
262
+ 'rsa_asset': value['rsaAsset'],
263
+ 'rsa_asset.file_id': value['rsaAssetFileId'],
264
+ 'rsa_asset.file_name': value['rsaAssetFileName'],
265
+ 'rsa_asset.mime_type': value['rsaAssetMimeType'],
266
+ 'rsa_asset.alt_text': value['rsaAssetAltText'],
267
+ 'first_aid_asset': value['firstAidAsset'],
268
+ 'first_aid_asset.file_id': value['firstAidAssetFileId'],
269
+ 'first_aid_asset.file_name': value['firstAidAssetFileName'],
270
+ 'first_aid_asset.mime_type': value['firstAidAssetMimeType'],
271
+ 'first_aid_asset.alt_text': value['firstAidAssetAltText'],
119
272
  };
120
273
  }
121
274
 
@@ -0,0 +1,116 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { VenueLiteResource } from './VenueLiteResource';
17
+ import {
18
+ VenueLiteResourceFromJSON,
19
+ VenueLiteResourceFromJSONTyped,
20
+ VenueLiteResourceToJSON,
21
+ VenueLiteResourceToJSONTyped,
22
+ } from './VenueLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface NotificationPreferenceResource
28
+ */
29
+ export interface NotificationPreferenceResource {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof NotificationPreferenceResource
34
+ */
35
+ id?: number | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof NotificationPreferenceResource
40
+ */
41
+ notificationType: string;
42
+ /**
43
+ *
44
+ * @type {VenueLiteResource}
45
+ * @memberof NotificationPreferenceResource
46
+ */
47
+ venue: VenueLiteResource | null;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof NotificationPreferenceResource
52
+ */
53
+ enabled: boolean;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof NotificationPreferenceResource
58
+ */
59
+ createdAt?: Date | null;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof NotificationPreferenceResource
64
+ */
65
+ updatedAt?: Date | null;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the NotificationPreferenceResource interface.
70
+ */
71
+ export function instanceOfNotificationPreferenceResource(value: object): value is NotificationPreferenceResource {
72
+ if (!('notificationType' in value) || value['notificationType'] === undefined) return false;
73
+ if (!('venue' in value) || value['venue'] === undefined) return false;
74
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
75
+ return true;
76
+ }
77
+
78
+ export function NotificationPreferenceResourceFromJSON(json: any): NotificationPreferenceResource {
79
+ return NotificationPreferenceResourceFromJSONTyped(json, false);
80
+ }
81
+
82
+ export function NotificationPreferenceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResource {
83
+ if (json == null) {
84
+ return json;
85
+ }
86
+ return {
87
+
88
+ 'id': json['id'] == null ? undefined : json['id'],
89
+ 'notificationType': json['notificationType'],
90
+ 'venue': VenueLiteResourceFromJSON(json['venue']),
91
+ 'enabled': json['enabled'],
92
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
93
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
94
+ };
95
+ }
96
+
97
+ export function NotificationPreferenceResourceToJSON(json: any): NotificationPreferenceResource {
98
+ return NotificationPreferenceResourceToJSONTyped(json, false);
99
+ }
100
+
101
+ export function NotificationPreferenceResourceToJSONTyped(value?: NotificationPreferenceResource | null, ignoreDiscriminator: boolean = false): any {
102
+ if (value == null) {
103
+ return value;
104
+ }
105
+
106
+ return {
107
+
108
+ 'id': value['id'],
109
+ 'notificationType': value['notificationType'],
110
+ 'venue': VenueLiteResourceToJSON(value['venue']),
111
+ 'enabled': value['enabled'],
112
+ 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
113
+ 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
114
+ };
115
+ }
116
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { NotificationPreferenceResource } from './NotificationPreferenceResource';
17
+ import {
18
+ NotificationPreferenceResourceFromJSON,
19
+ NotificationPreferenceResourceFromJSONTyped,
20
+ NotificationPreferenceResourceToJSON,
21
+ NotificationPreferenceResourceToJSONTyped,
22
+ } from './NotificationPreferenceResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface NotificationPreferenceResourceArrayResponse
28
+ */
29
+ export interface NotificationPreferenceResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<NotificationPreferenceResource>}
33
+ * @memberof NotificationPreferenceResourceArrayResponse
34
+ */
35
+ data?: Array<NotificationPreferenceResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the NotificationPreferenceResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfNotificationPreferenceResourceArrayResponse(value: object): value is NotificationPreferenceResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function NotificationPreferenceResourceArrayResponseFromJSON(json: any): NotificationPreferenceResourceArrayResponse {
46
+ return NotificationPreferenceResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function NotificationPreferenceResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferenceResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NotificationPreferenceResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function NotificationPreferenceResourceArrayResponseToJSON(json: any): NotificationPreferenceResourceArrayResponse {
60
+ return NotificationPreferenceResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function NotificationPreferenceResourceArrayResponseToJSONTyped(value?: NotificationPreferenceResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(NotificationPreferenceResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -0,0 +1,97 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface NotificationPreferencesStoreRequest
20
+ */
21
+ export interface NotificationPreferencesStoreRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof NotificationPreferencesStoreRequest
26
+ */
27
+ notificationType: NotificationPreferencesStoreRequestNotificationTypeEnum;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof NotificationPreferencesStoreRequest
32
+ */
33
+ venueId?: number;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof NotificationPreferencesStoreRequest
38
+ */
39
+ enabled: boolean;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const NotificationPreferencesStoreRequestNotificationTypeEnum = {
47
+ IncidentAdded: 'incident_added',
48
+ NonSignOff: 'non_sign_off',
49
+ NonSignOn: 'non_sign_on',
50
+ SignOnRejected: 'sign_on_rejected',
51
+ LicenceUpdated: 'licence_updated'
52
+ } as const;
53
+ export type NotificationPreferencesStoreRequestNotificationTypeEnum = typeof NotificationPreferencesStoreRequestNotificationTypeEnum[keyof typeof NotificationPreferencesStoreRequestNotificationTypeEnum];
54
+
55
+
56
+ /**
57
+ * Check if a given object implements the NotificationPreferencesStoreRequest interface.
58
+ */
59
+ export function instanceOfNotificationPreferencesStoreRequest(value: object): value is NotificationPreferencesStoreRequest {
60
+ if (!('notificationType' in value) || value['notificationType'] === undefined) return false;
61
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
62
+ return true;
63
+ }
64
+
65
+ export function NotificationPreferencesStoreRequestFromJSON(json: any): NotificationPreferencesStoreRequest {
66
+ return NotificationPreferencesStoreRequestFromJSONTyped(json, false);
67
+ }
68
+
69
+ export function NotificationPreferencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationPreferencesStoreRequest {
70
+ if (json == null) {
71
+ return json;
72
+ }
73
+ return {
74
+
75
+ 'notificationType': json['notification_type'],
76
+ 'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
77
+ 'enabled': json['enabled'],
78
+ };
79
+ }
80
+
81
+ export function NotificationPreferencesStoreRequestToJSON(json: any): NotificationPreferencesStoreRequest {
82
+ return NotificationPreferencesStoreRequestToJSONTyped(json, false);
83
+ }
84
+
85
+ export function NotificationPreferencesStoreRequestToJSONTyped(value?: NotificationPreferencesStoreRequest | null, ignoreDiscriminator: boolean = false): any {
86
+ if (value == null) {
87
+ return value;
88
+ }
89
+
90
+ return {
91
+
92
+ 'notification_type': value['notificationType'],
93
+ 'venue_id': value['venueId'],
94
+ 'enabled': value['enabled'],
95
+ };
96
+ }
97
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface NotificationTypeResource
20
+ */
21
+ export interface NotificationTypeResource {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof NotificationTypeResource
26
+ */
27
+ value: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof NotificationTypeResource
32
+ */
33
+ label: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the NotificationTypeResource interface.
38
+ */
39
+ export function instanceOfNotificationTypeResource(value: object): value is NotificationTypeResource {
40
+ if (!('value' in value) || value['value'] === undefined) return false;
41
+ if (!('label' in value) || value['label'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function NotificationTypeResourceFromJSON(json: any): NotificationTypeResource {
46
+ return NotificationTypeResourceFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function NotificationTypeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResource {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'value': json['value'],
56
+ 'label': json['label'],
57
+ };
58
+ }
59
+
60
+ export function NotificationTypeResourceToJSON(json: any): NotificationTypeResource {
61
+ return NotificationTypeResourceToJSONTyped(json, false);
62
+ }
63
+
64
+ export function NotificationTypeResourceToJSONTyped(value?: NotificationTypeResource | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'value': value['value'],
72
+ 'label': value['label'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { NotificationTypeResource } from './NotificationTypeResource';
17
+ import {
18
+ NotificationTypeResourceFromJSON,
19
+ NotificationTypeResourceFromJSONTyped,
20
+ NotificationTypeResourceToJSON,
21
+ NotificationTypeResourceToJSONTyped,
22
+ } from './NotificationTypeResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface NotificationTypeResourceArrayResponse
28
+ */
29
+ export interface NotificationTypeResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<NotificationTypeResource>}
33
+ * @memberof NotificationTypeResourceArrayResponse
34
+ */
35
+ data?: Array<NotificationTypeResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the NotificationTypeResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfNotificationTypeResourceArrayResponse(value: object): value is NotificationTypeResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function NotificationTypeResourceArrayResponseFromJSON(json: any): NotificationTypeResourceArrayResponse {
46
+ return NotificationTypeResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function NotificationTypeResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationTypeResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(NotificationTypeResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function NotificationTypeResourceArrayResponseToJSON(json: any): NotificationTypeResourceArrayResponse {
60
+ return NotificationTypeResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function NotificationTypeResourceArrayResponseToJSONTyped(value?: NotificationTypeResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(NotificationTypeResourceToJSON)),
71
+ };
72
+ }
73
+