@digital8/security-registers-backend-ts-sdk 0.0.204 → 0.0.206
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.
- package/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +43 -5
- package/dist/apis/GeneralApi.js +222 -8
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +46 -0
- package/dist/models/IncidentFieldSchemasShowRequest.js +65 -0
- package/dist/models/NotificationPreferenceResource.d.ts +63 -0
- package/dist/models/NotificationPreferenceResource.js +67 -0
- package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +33 -0
- package/dist/models/NotificationPreferenceResourceArrayResponse.js +50 -0
- package/dist/models/NotificationPreferencesStoreRequest.d.ts +55 -0
- package/dist/models/NotificationPreferencesStoreRequest.js +68 -0
- package/dist/models/NotificationTypeResource.d.ts +38 -0
- package/dist/models/NotificationTypeResource.js +55 -0
- package/dist/models/NotificationTypeResourceArrayResponse.d.ts +33 -0
- package/dist/models/NotificationTypeResourceArrayResponse.js +50 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +3 -4
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +3 -1
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +191 -14
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +3 -2
- package/src/models/IncidentFieldSchemasShowRequest.ts +83 -0
- package/src/models/NotificationPreferenceResource.ts +116 -0
- package/src/models/NotificationPreferenceResourceArrayResponse.ts +73 -0
- package/src/models/NotificationPreferencesStoreRequest.ts +97 -0
- package/src/models/NotificationTypeResource.ts +75 -0
- package/src/models/NotificationTypeResourceArrayResponse.ts +73 -0
- package/src/models/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +3 -2
- package/src/models/RosterResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/index.ts +6 -0
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
AssetFileForUploadResource,
|
|
19
19
|
GenericResponse,
|
|
20
20
|
IncidentFieldSchemaResource,
|
|
21
|
+
IncidentFieldSchemasShowRequest,
|
|
21
22
|
IncidentResource,
|
|
22
23
|
IncidentsStoreRequest,
|
|
23
24
|
IndexMinimalUserRequest,
|
|
@@ -30,6 +31,10 @@ import type {
|
|
|
30
31
|
LicencesUpdateRequest,
|
|
31
32
|
LicencesVerifyRequest,
|
|
32
33
|
LoginAuthRequest,
|
|
34
|
+
NotificationPreferenceResource,
|
|
35
|
+
NotificationPreferenceResourceArrayResponse,
|
|
36
|
+
NotificationPreferencesStoreRequest,
|
|
37
|
+
NotificationTypeResourceArrayResponse,
|
|
33
38
|
PaginatedLicenceListResourceResponse,
|
|
34
39
|
PaginatedRegisterGroupedByRosterResourceResponse,
|
|
35
40
|
PaginatedRosterListResourceResponse,
|
|
@@ -89,6 +94,8 @@ import {
|
|
|
89
94
|
GenericResponseToJSON,
|
|
90
95
|
IncidentFieldSchemaResourceFromJSON,
|
|
91
96
|
IncidentFieldSchemaResourceToJSON,
|
|
97
|
+
IncidentFieldSchemasShowRequestFromJSON,
|
|
98
|
+
IncidentFieldSchemasShowRequestToJSON,
|
|
92
99
|
IncidentResourceFromJSON,
|
|
93
100
|
IncidentResourceToJSON,
|
|
94
101
|
IncidentsStoreRequestFromJSON,
|
|
@@ -113,6 +120,14 @@ import {
|
|
|
113
120
|
LicencesVerifyRequestToJSON,
|
|
114
121
|
LoginAuthRequestFromJSON,
|
|
115
122
|
LoginAuthRequestToJSON,
|
|
123
|
+
NotificationPreferenceResourceFromJSON,
|
|
124
|
+
NotificationPreferenceResourceToJSON,
|
|
125
|
+
NotificationPreferenceResourceArrayResponseFromJSON,
|
|
126
|
+
NotificationPreferenceResourceArrayResponseToJSON,
|
|
127
|
+
NotificationPreferencesStoreRequestFromJSON,
|
|
128
|
+
NotificationPreferencesStoreRequestToJSON,
|
|
129
|
+
NotificationTypeResourceArrayResponseFromJSON,
|
|
130
|
+
NotificationTypeResourceArrayResponseToJSON,
|
|
116
131
|
PaginatedLicenceListResourceResponseFromJSON,
|
|
117
132
|
PaginatedLicenceListResourceResponseToJSON,
|
|
118
133
|
PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
|
|
@@ -221,8 +236,8 @@ export interface DestroyUserRequest {
|
|
|
221
236
|
user: number;
|
|
222
237
|
}
|
|
223
238
|
|
|
224
|
-
export interface
|
|
225
|
-
|
|
239
|
+
export interface IncidentFieldSchemasShowOperationRequest {
|
|
240
|
+
incidentFieldSchemasShowRequest?: IncidentFieldSchemasShowRequest;
|
|
226
241
|
}
|
|
227
242
|
|
|
228
243
|
export interface IncidentsStoreOperationRequest {
|
|
@@ -270,6 +285,14 @@ export interface LoginAuthOperationRequest {
|
|
|
270
285
|
loginAuthRequest?: LoginAuthRequest;
|
|
271
286
|
}
|
|
272
287
|
|
|
288
|
+
export interface NotificationPreferencesDeleteRequest {
|
|
289
|
+
notificationPreference: number;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export interface NotificationPreferencesStoreOperationRequest {
|
|
293
|
+
notificationPreferencesStoreRequest?: NotificationPreferencesStoreRequest;
|
|
294
|
+
}
|
|
295
|
+
|
|
273
296
|
export interface RegistersCreateOperationRequest {
|
|
274
297
|
registersCreateRequest?: RegistersCreateRequest;
|
|
275
298
|
}
|
|
@@ -557,18 +580,13 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
557
580
|
/**
|
|
558
581
|
* Auto-generated: incidentFieldSchemas.show
|
|
559
582
|
*/
|
|
560
|
-
async incidentFieldSchemasShowRaw(requestParameters:
|
|
561
|
-
if (requestParameters['state'] == null) {
|
|
562
|
-
throw new runtime.RequiredError(
|
|
563
|
-
'state',
|
|
564
|
-
'Required parameter "state" was null or undefined when calling incidentFieldSchemasShow().'
|
|
565
|
-
);
|
|
566
|
-
}
|
|
567
|
-
|
|
583
|
+
async incidentFieldSchemasShowRaw(requestParameters: IncidentFieldSchemasShowOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentFieldSchemaResource>> {
|
|
568
584
|
const queryParameters: any = {};
|
|
569
585
|
|
|
570
586
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
571
587
|
|
|
588
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
589
|
+
|
|
572
590
|
if (this.configuration && this.configuration.accessToken) {
|
|
573
591
|
const token = this.configuration.accessToken;
|
|
574
592
|
const tokenString = await token("bearerAuth", []);
|
|
@@ -578,14 +596,14 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
578
596
|
}
|
|
579
597
|
}
|
|
580
598
|
|
|
581
|
-
let urlPath = `/api/incident-field-schemas
|
|
582
|
-
urlPath = urlPath.replace(`{${"state"}}`, encodeURIComponent(String(requestParameters['state'])));
|
|
599
|
+
let urlPath = `/api/incident-field-schemas`;
|
|
583
600
|
|
|
584
601
|
const response = await this.request({
|
|
585
602
|
path: urlPath,
|
|
586
|
-
method: '
|
|
603
|
+
method: 'POST',
|
|
587
604
|
headers: headerParameters,
|
|
588
605
|
query: queryParameters,
|
|
606
|
+
body: IncidentFieldSchemasShowRequestToJSON(requestParameters['incidentFieldSchemasShowRequest']),
|
|
589
607
|
}, initOverrides);
|
|
590
608
|
|
|
591
609
|
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentFieldSchemaResourceFromJSON(jsonValue));
|
|
@@ -594,7 +612,7 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
594
612
|
/**
|
|
595
613
|
* Auto-generated: incidentFieldSchemas.show
|
|
596
614
|
*/
|
|
597
|
-
async incidentFieldSchemasShow(requestParameters:
|
|
615
|
+
async incidentFieldSchemasShow(requestParameters: IncidentFieldSchemasShowOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentFieldSchemaResource> {
|
|
598
616
|
const response = await this.incidentFieldSchemasShowRaw(requestParameters, initOverrides);
|
|
599
617
|
return await response.value();
|
|
600
618
|
}
|
|
@@ -1094,6 +1112,165 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1094
1112
|
return await response.value();
|
|
1095
1113
|
}
|
|
1096
1114
|
|
|
1115
|
+
/**
|
|
1116
|
+
* Auto-generated: notificationPreferences.delete
|
|
1117
|
+
*/
|
|
1118
|
+
async notificationPreferencesDeleteRaw(requestParameters: NotificationPreferencesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
1119
|
+
if (requestParameters['notificationPreference'] == null) {
|
|
1120
|
+
throw new runtime.RequiredError(
|
|
1121
|
+
'notificationPreference',
|
|
1122
|
+
'Required parameter "notificationPreference" was null or undefined when calling notificationPreferencesDelete().'
|
|
1123
|
+
);
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
const queryParameters: any = {};
|
|
1127
|
+
|
|
1128
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1129
|
+
|
|
1130
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1131
|
+
const token = this.configuration.accessToken;
|
|
1132
|
+
const tokenString = await token("bearerAuth", []);
|
|
1133
|
+
|
|
1134
|
+
if (tokenString) {
|
|
1135
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
let urlPath = `/api/notification-preferences/{notificationPreference}/delete`;
|
|
1140
|
+
urlPath = urlPath.replace(`{${"notificationPreference"}}`, encodeURIComponent(String(requestParameters['notificationPreference'])));
|
|
1141
|
+
|
|
1142
|
+
const response = await this.request({
|
|
1143
|
+
path: urlPath,
|
|
1144
|
+
method: 'POST',
|
|
1145
|
+
headers: headerParameters,
|
|
1146
|
+
query: queryParameters,
|
|
1147
|
+
}, initOverrides);
|
|
1148
|
+
|
|
1149
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Auto-generated: notificationPreferences.delete
|
|
1154
|
+
*/
|
|
1155
|
+
async notificationPreferencesDelete(requestParameters: NotificationPreferencesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
1156
|
+
const response = await this.notificationPreferencesDeleteRaw(requestParameters, initOverrides);
|
|
1157
|
+
return await response.value();
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Auto-generated: notificationPreferences.list
|
|
1162
|
+
*/
|
|
1163
|
+
async notificationPreferencesListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationPreferenceResourceArrayResponse>> {
|
|
1164
|
+
const queryParameters: any = {};
|
|
1165
|
+
|
|
1166
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1167
|
+
|
|
1168
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1169
|
+
const token = this.configuration.accessToken;
|
|
1170
|
+
const tokenString = await token("bearerAuth", []);
|
|
1171
|
+
|
|
1172
|
+
if (tokenString) {
|
|
1173
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
let urlPath = `/api/notification-preferences/list`;
|
|
1178
|
+
|
|
1179
|
+
const response = await this.request({
|
|
1180
|
+
path: urlPath,
|
|
1181
|
+
method: 'POST',
|
|
1182
|
+
headers: headerParameters,
|
|
1183
|
+
query: queryParameters,
|
|
1184
|
+
}, initOverrides);
|
|
1185
|
+
|
|
1186
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationPreferenceResourceArrayResponseFromJSON(jsonValue));
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* Auto-generated: notificationPreferences.list
|
|
1191
|
+
*/
|
|
1192
|
+
async notificationPreferencesList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationPreferenceResourceArrayResponse> {
|
|
1193
|
+
const response = await this.notificationPreferencesListRaw(initOverrides);
|
|
1194
|
+
return await response.value();
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
* Auto-generated: notificationPreferences.store
|
|
1199
|
+
*/
|
|
1200
|
+
async notificationPreferencesStoreRaw(requestParameters: NotificationPreferencesStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationPreferenceResource>> {
|
|
1201
|
+
const queryParameters: any = {};
|
|
1202
|
+
|
|
1203
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1204
|
+
|
|
1205
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1206
|
+
|
|
1207
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1208
|
+
const token = this.configuration.accessToken;
|
|
1209
|
+
const tokenString = await token("bearerAuth", []);
|
|
1210
|
+
|
|
1211
|
+
if (tokenString) {
|
|
1212
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
let urlPath = `/api/notification-preferences`;
|
|
1217
|
+
|
|
1218
|
+
const response = await this.request({
|
|
1219
|
+
path: urlPath,
|
|
1220
|
+
method: 'POST',
|
|
1221
|
+
headers: headerParameters,
|
|
1222
|
+
query: queryParameters,
|
|
1223
|
+
body: NotificationPreferencesStoreRequestToJSON(requestParameters['notificationPreferencesStoreRequest']),
|
|
1224
|
+
}, initOverrides);
|
|
1225
|
+
|
|
1226
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationPreferenceResourceFromJSON(jsonValue));
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* Auto-generated: notificationPreferences.store
|
|
1231
|
+
*/
|
|
1232
|
+
async notificationPreferencesStore(requestParameters: NotificationPreferencesStoreOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationPreferenceResource> {
|
|
1233
|
+
const response = await this.notificationPreferencesStoreRaw(requestParameters, initOverrides);
|
|
1234
|
+
return await response.value();
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
/**
|
|
1238
|
+
* Auto-generated: notificationTypes.list
|
|
1239
|
+
*/
|
|
1240
|
+
async notificationTypesListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationTypeResourceArrayResponse>> {
|
|
1241
|
+
const queryParameters: any = {};
|
|
1242
|
+
|
|
1243
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1244
|
+
|
|
1245
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1246
|
+
const token = this.configuration.accessToken;
|
|
1247
|
+
const tokenString = await token("bearerAuth", []);
|
|
1248
|
+
|
|
1249
|
+
if (tokenString) {
|
|
1250
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
let urlPath = `/api/notification-types/list`;
|
|
1255
|
+
|
|
1256
|
+
const response = await this.request({
|
|
1257
|
+
path: urlPath,
|
|
1258
|
+
method: 'POST',
|
|
1259
|
+
headers: headerParameters,
|
|
1260
|
+
query: queryParameters,
|
|
1261
|
+
}, initOverrides);
|
|
1262
|
+
|
|
1263
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationTypeResourceArrayResponseFromJSON(jsonValue));
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* Auto-generated: notificationTypes.list
|
|
1268
|
+
*/
|
|
1269
|
+
async notificationTypesList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationTypeResourceArrayResponse> {
|
|
1270
|
+
const response = await this.notificationTypesListRaw(initOverrides);
|
|
1271
|
+
return await response.value();
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1097
1274
|
/**
|
|
1098
1275
|
* Auto-generated: registers.create
|
|
1099
1276
|
*/
|
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,7 +80,6 @@ export interface AddressResource {
|
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
-
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
84
83
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
85
84
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
86
85
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
102
101
|
|
|
103
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
103
|
'addressLine1': json['addressLine1'],
|
|
105
|
-
'addressLine2': json['addressLine2'],
|
|
104
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
106
105
|
'suburb': json['suburb'],
|
|
107
106
|
'city': json['city'],
|
|
108
107
|
'state': json['state'],
|
|
@@ -48,7 +48,7 @@ export interface AssetResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AssetResource
|
|
50
50
|
*/
|
|
51
|
-
altText
|
|
51
|
+
altText: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -71,6 +71,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
71
71
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
72
72
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
73
73
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
74
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
74
75
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
75
76
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
76
77
|
return true;
|
|
@@ -90,7 +91,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
90
91
|
'filePath': json['filePath'],
|
|
91
92
|
'fileName': json['fileName'],
|
|
92
93
|
'mimeType': json['mimeType'],
|
|
93
|
-
'altText': json['altText']
|
|
94
|
+
'altText': json['altText'],
|
|
94
95
|
'index': json['index'],
|
|
95
96
|
'fileId': json['fileId'],
|
|
96
97
|
};
|
|
@@ -0,0 +1,83 @@
|
|
|
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 IncidentFieldSchemasShowRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentFieldSchemasShowRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IncidentFieldSchemasShowRequest
|
|
26
|
+
*/
|
|
27
|
+
state: IncidentFieldSchemasShowRequestStateEnum;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const IncidentFieldSchemasShowRequestStateEnum = {
|
|
35
|
+
Qld: 'QLD',
|
|
36
|
+
Nsw: 'NSW',
|
|
37
|
+
Act: 'ACT',
|
|
38
|
+
Vic: 'VIC',
|
|
39
|
+
Tas: 'TAS',
|
|
40
|
+
Sa: 'SA',
|
|
41
|
+
Wa: 'WA',
|
|
42
|
+
Nt: 'NT'
|
|
43
|
+
} as const;
|
|
44
|
+
export type IncidentFieldSchemasShowRequestStateEnum = typeof IncidentFieldSchemasShowRequestStateEnum[keyof typeof IncidentFieldSchemasShowRequestStateEnum];
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the IncidentFieldSchemasShowRequest interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfIncidentFieldSchemasShowRequest(value: object): value is IncidentFieldSchemasShowRequest {
|
|
51
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function IncidentFieldSchemasShowRequestFromJSON(json: any): IncidentFieldSchemasShowRequest {
|
|
56
|
+
return IncidentFieldSchemasShowRequestFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentFieldSchemasShowRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldSchemasShowRequest {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'state': json['state'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function IncidentFieldSchemasShowRequestToJSON(json: any): IncidentFieldSchemasShowRequest {
|
|
70
|
+
return IncidentFieldSchemasShowRequestToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function IncidentFieldSchemasShowRequestToJSONTyped(value?: IncidentFieldSchemasShowRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'state': value['state'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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
|
+
|