@digital8/security-registers-backend-ts-sdk 0.0.196 → 0.0.197
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 +5 -3
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +29 -35
- package/dist/apis/GeneralApi.js +118 -126
- 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 +5 -5
- package/dist/models/RegisterListResource.js +6 -9
- package/dist/models/RegisterResource.d.ts +4 -4
- package/dist/models/RegisterResource.js +13 -9
- package/dist/models/RegistersUpdateRequest.d.ts +0 -12
- package/dist/models/RegistersUpdateRequest.js +0 -4
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/UpdateUserRequest.d.ts +0 -6
- package/dist/models/UpdateUserRequest.js +0 -2
- package/dist/models/UserLiteResource.d.ts +0 -7
- package/dist/models/UserLiteResource.js +0 -5
- package/dist/models/UserResource.d.ts +0 -6
- package/dist/models/UserResource.js +0 -4
- package/dist/models/UsersCreateWithRoleRequest.d.ts +0 -6
- package/dist/models/UsersCreateWithRoleRequest.js +0 -2
- package/dist/models/index.d.ts +5 -3
- package/dist/models/index.js +5 -3
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +112 -130
- 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 +10 -11
- package/src/models/RegisterResource.ts +12 -10
- package/src/models/RegistersUpdateRequest.ts +0 -16
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/UpdateUserRequest.ts +0 -8
- package/src/models/UserLiteResource.ts +0 -17
- package/src/models/UserResource.ts +0 -9
- package/src/models/UsersCreateWithRoleRequest.ts +0 -8
- package/src/models/index.ts +5 -3
- package/dist/models/PdfExportResource.d.ts +0 -50
- package/dist/models/PdfExportResource.js +0 -61
- package/dist/models/PdfExportResourceArrayResponse.d.ts +0 -33
- package/dist/models/PdfExportResourceArrayResponse.js +0 -50
- package/dist/models/RegistersCreateRequest.d.ts +0 -98
- package/dist/models/RegistersCreateRequest.js +0 -83
- package/src/models/PdfExportResource.ts +0 -92
- package/src/models/PdfExportResourceArrayResponse.ts +0 -73
- package/src/models/RegistersCreateRequest.ts +0 -159
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -28,6 +28,10 @@ import type {
|
|
|
28
28
|
LicencesUpdateRequest,
|
|
29
29
|
LicencesVerifyRequest,
|
|
30
30
|
LoginAuthRequest,
|
|
31
|
+
NotificationPreferenceResource,
|
|
32
|
+
NotificationPreferenceResourceArrayResponse,
|
|
33
|
+
NotificationPreferencesStoreRequest,
|
|
34
|
+
NotificationTypeResourceArrayResponse,
|
|
31
35
|
PaginatedLicenceListResourceResponse,
|
|
32
36
|
PaginatedRegisterGroupedByRosterResourceResponse,
|
|
33
37
|
PaginatedRosterListResourceResponse,
|
|
@@ -35,10 +39,8 @@ import type {
|
|
|
35
39
|
PaginatedSecurityCompanyResourceResponse,
|
|
36
40
|
PaginatedUserResourceResponse,
|
|
37
41
|
PaginatedVenueResourceResponse,
|
|
38
|
-
PdfExportResource,
|
|
39
42
|
RegisterLiteResourceArrayResponse,
|
|
40
43
|
RegisterResource,
|
|
41
|
-
RegistersCreateRequest,
|
|
42
44
|
RegistersListAllRequest,
|
|
43
45
|
RegistersListRequest,
|
|
44
46
|
RegistersSignOffRequest,
|
|
@@ -107,6 +109,14 @@ import {
|
|
|
107
109
|
LicencesVerifyRequestToJSON,
|
|
108
110
|
LoginAuthRequestFromJSON,
|
|
109
111
|
LoginAuthRequestToJSON,
|
|
112
|
+
NotificationPreferenceResourceFromJSON,
|
|
113
|
+
NotificationPreferenceResourceToJSON,
|
|
114
|
+
NotificationPreferenceResourceArrayResponseFromJSON,
|
|
115
|
+
NotificationPreferenceResourceArrayResponseToJSON,
|
|
116
|
+
NotificationPreferencesStoreRequestFromJSON,
|
|
117
|
+
NotificationPreferencesStoreRequestToJSON,
|
|
118
|
+
NotificationTypeResourceArrayResponseFromJSON,
|
|
119
|
+
NotificationTypeResourceArrayResponseToJSON,
|
|
110
120
|
PaginatedLicenceListResourceResponseFromJSON,
|
|
111
121
|
PaginatedLicenceListResourceResponseToJSON,
|
|
112
122
|
PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
|
|
@@ -121,14 +131,10 @@ import {
|
|
|
121
131
|
PaginatedUserResourceResponseToJSON,
|
|
122
132
|
PaginatedVenueResourceResponseFromJSON,
|
|
123
133
|
PaginatedVenueResourceResponseToJSON,
|
|
124
|
-
PdfExportResourceFromJSON,
|
|
125
|
-
PdfExportResourceToJSON,
|
|
126
134
|
RegisterLiteResourceArrayResponseFromJSON,
|
|
127
135
|
RegisterLiteResourceArrayResponseToJSON,
|
|
128
136
|
RegisterResourceFromJSON,
|
|
129
137
|
RegisterResourceToJSON,
|
|
130
|
-
RegistersCreateRequestFromJSON,
|
|
131
|
-
RegistersCreateRequestToJSON,
|
|
132
138
|
RegistersListAllRequestFromJSON,
|
|
133
139
|
RegistersListAllRequestToJSON,
|
|
134
140
|
RegistersListRequestFromJSON,
|
|
@@ -260,12 +266,12 @@ export interface LoginAuthOperationRequest {
|
|
|
260
266
|
loginAuthRequest?: LoginAuthRequest;
|
|
261
267
|
}
|
|
262
268
|
|
|
263
|
-
export interface
|
|
264
|
-
|
|
269
|
+
export interface NotificationPreferencesDeleteRequest {
|
|
270
|
+
notificationPreference: number;
|
|
265
271
|
}
|
|
266
272
|
|
|
267
|
-
export interface
|
|
268
|
-
|
|
273
|
+
export interface NotificationPreferencesStoreOperationRequest {
|
|
274
|
+
notificationPreferencesStoreRequest?: NotificationPreferencesStoreRequest;
|
|
269
275
|
}
|
|
270
276
|
|
|
271
277
|
export interface RegistersListOperationRequest {
|
|
@@ -301,14 +307,6 @@ export interface RostersExportPdfOperationRequest {
|
|
|
301
307
|
rostersExportPdfRequest?: RostersExportPdfRequest;
|
|
302
308
|
}
|
|
303
309
|
|
|
304
|
-
export interface RostersExportPdfDownloadRequest {
|
|
305
|
-
pdfExport: number;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
export interface RostersExportPdfStatusRequest {
|
|
309
|
-
pdfExport: number;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
310
|
export interface RostersListOperationRequest {
|
|
313
311
|
rostersListRequest?: RostersListRequest;
|
|
314
312
|
}
|
|
@@ -1045,14 +1043,57 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1045
1043
|
}
|
|
1046
1044
|
|
|
1047
1045
|
/**
|
|
1048
|
-
* Auto-generated:
|
|
1046
|
+
* Auto-generated: notificationPreferences.delete
|
|
1049
1047
|
*/
|
|
1050
|
-
async
|
|
1048
|
+
async notificationPreferencesDeleteRaw(requestParameters: NotificationPreferencesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
1049
|
+
if (requestParameters['notificationPreference'] == null) {
|
|
1050
|
+
throw new runtime.RequiredError(
|
|
1051
|
+
'notificationPreference',
|
|
1052
|
+
'Required parameter "notificationPreference" was null or undefined when calling notificationPreferencesDelete().'
|
|
1053
|
+
);
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1051
1056
|
const queryParameters: any = {};
|
|
1052
1057
|
|
|
1053
1058
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1054
1059
|
|
|
1055
|
-
|
|
1060
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1061
|
+
const token = this.configuration.accessToken;
|
|
1062
|
+
const tokenString = await token("bearerAuth", []);
|
|
1063
|
+
|
|
1064
|
+
if (tokenString) {
|
|
1065
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
let urlPath = `/api/notification-preferences/{notificationPreference}/delete`;
|
|
1070
|
+
urlPath = urlPath.replace(`{${"notificationPreference"}}`, encodeURIComponent(String(requestParameters['notificationPreference'])));
|
|
1071
|
+
|
|
1072
|
+
const response = await this.request({
|
|
1073
|
+
path: urlPath,
|
|
1074
|
+
method: 'POST',
|
|
1075
|
+
headers: headerParameters,
|
|
1076
|
+
query: queryParameters,
|
|
1077
|
+
}, initOverrides);
|
|
1078
|
+
|
|
1079
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Auto-generated: notificationPreferences.delete
|
|
1084
|
+
*/
|
|
1085
|
+
async notificationPreferencesDelete(requestParameters: NotificationPreferencesDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
1086
|
+
const response = await this.notificationPreferencesDeleteRaw(requestParameters, initOverrides);
|
|
1087
|
+
return await response.value();
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Auto-generated: notificationPreferences.list
|
|
1092
|
+
*/
|
|
1093
|
+
async notificationPreferencesListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationPreferenceResourceArrayResponse>> {
|
|
1094
|
+
const queryParameters: any = {};
|
|
1095
|
+
|
|
1096
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1056
1097
|
|
|
1057
1098
|
if (this.configuration && this.configuration.accessToken) {
|
|
1058
1099
|
const token = this.configuration.accessToken;
|
|
@@ -1063,38 +1104,70 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1063
1104
|
}
|
|
1064
1105
|
}
|
|
1065
1106
|
|
|
1066
|
-
let urlPath = `/api/
|
|
1107
|
+
let urlPath = `/api/notification-preferences/list`;
|
|
1067
1108
|
|
|
1068
1109
|
const response = await this.request({
|
|
1069
1110
|
path: urlPath,
|
|
1070
1111
|
method: 'POST',
|
|
1071
1112
|
headers: headerParameters,
|
|
1072
1113
|
query: queryParameters,
|
|
1073
|
-
body: RegistersCreateRequestToJSON(requestParameters['registersCreateRequest']),
|
|
1074
1114
|
}, initOverrides);
|
|
1075
1115
|
|
|
1076
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1116
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationPreferenceResourceArrayResponseFromJSON(jsonValue));
|
|
1077
1117
|
}
|
|
1078
1118
|
|
|
1079
1119
|
/**
|
|
1080
|
-
* Auto-generated:
|
|
1120
|
+
* Auto-generated: notificationPreferences.list
|
|
1081
1121
|
*/
|
|
1082
|
-
async
|
|
1083
|
-
const response = await this.
|
|
1122
|
+
async notificationPreferencesList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationPreferenceResourceArrayResponse> {
|
|
1123
|
+
const response = await this.notificationPreferencesListRaw(initOverrides);
|
|
1084
1124
|
return await response.value();
|
|
1085
1125
|
}
|
|
1086
1126
|
|
|
1087
1127
|
/**
|
|
1088
|
-
* Auto-generated:
|
|
1128
|
+
* Auto-generated: notificationPreferences.store
|
|
1089
1129
|
*/
|
|
1090
|
-
async
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1130
|
+
async notificationPreferencesStoreRaw(requestParameters: NotificationPreferencesStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationPreferenceResource>> {
|
|
1131
|
+
const queryParameters: any = {};
|
|
1132
|
+
|
|
1133
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1134
|
+
|
|
1135
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1136
|
+
|
|
1137
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1138
|
+
const token = this.configuration.accessToken;
|
|
1139
|
+
const tokenString = await token("bearerAuth", []);
|
|
1140
|
+
|
|
1141
|
+
if (tokenString) {
|
|
1142
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1143
|
+
}
|
|
1096
1144
|
}
|
|
1097
1145
|
|
|
1146
|
+
let urlPath = `/api/notification-preferences`;
|
|
1147
|
+
|
|
1148
|
+
const response = await this.request({
|
|
1149
|
+
path: urlPath,
|
|
1150
|
+
method: 'POST',
|
|
1151
|
+
headers: headerParameters,
|
|
1152
|
+
query: queryParameters,
|
|
1153
|
+
body: NotificationPreferencesStoreRequestToJSON(requestParameters['notificationPreferencesStoreRequest']),
|
|
1154
|
+
}, initOverrides);
|
|
1155
|
+
|
|
1156
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationPreferenceResourceFromJSON(jsonValue));
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* Auto-generated: notificationPreferences.store
|
|
1161
|
+
*/
|
|
1162
|
+
async notificationPreferencesStore(requestParameters: NotificationPreferencesStoreOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationPreferenceResource> {
|
|
1163
|
+
const response = await this.notificationPreferencesStoreRaw(requestParameters, initOverrides);
|
|
1164
|
+
return await response.value();
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Auto-generated: notificationTypes.list
|
|
1169
|
+
*/
|
|
1170
|
+
async notificationTypesListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationTypeResourceArrayResponse>> {
|
|
1098
1171
|
const queryParameters: any = {};
|
|
1099
1172
|
|
|
1100
1173
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -1108,8 +1181,7 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1108
1181
|
}
|
|
1109
1182
|
}
|
|
1110
1183
|
|
|
1111
|
-
let urlPath = `/api/
|
|
1112
|
-
urlPath = urlPath.replace(`{${"register"}}`, encodeURIComponent(String(requestParameters['register'])));
|
|
1184
|
+
let urlPath = `/api/notification-types/list`;
|
|
1113
1185
|
|
|
1114
1186
|
const response = await this.request({
|
|
1115
1187
|
path: urlPath,
|
|
@@ -1118,14 +1190,14 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1118
1190
|
query: queryParameters,
|
|
1119
1191
|
}, initOverrides);
|
|
1120
1192
|
|
|
1121
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotificationTypeResourceArrayResponseFromJSON(jsonValue));
|
|
1122
1194
|
}
|
|
1123
1195
|
|
|
1124
1196
|
/**
|
|
1125
|
-
* Auto-generated:
|
|
1197
|
+
* Auto-generated: notificationTypes.list
|
|
1126
1198
|
*/
|
|
1127
|
-
async
|
|
1128
|
-
const response = await this.
|
|
1199
|
+
async notificationTypesList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationTypeResourceArrayResponse> {
|
|
1200
|
+
const response = await this.notificationTypesListRaw(initOverrides);
|
|
1129
1201
|
return await response.value();
|
|
1130
1202
|
}
|
|
1131
1203
|
|
|
@@ -1462,96 +1534,6 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1462
1534
|
return await response.value();
|
|
1463
1535
|
}
|
|
1464
1536
|
|
|
1465
|
-
/**
|
|
1466
|
-
* Auto-generated: rosters.exportPdf.download
|
|
1467
|
-
*/
|
|
1468
|
-
async rostersExportPdfDownloadRaw(requestParameters: RostersExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
1469
|
-
if (requestParameters['pdfExport'] == null) {
|
|
1470
|
-
throw new runtime.RequiredError(
|
|
1471
|
-
'pdfExport',
|
|
1472
|
-
'Required parameter "pdfExport" was null or undefined when calling rostersExportPdfDownload().'
|
|
1473
|
-
);
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
const queryParameters: any = {};
|
|
1477
|
-
|
|
1478
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1479
|
-
|
|
1480
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1481
|
-
const token = this.configuration.accessToken;
|
|
1482
|
-
const tokenString = await token("bearerAuth", []);
|
|
1483
|
-
|
|
1484
|
-
if (tokenString) {
|
|
1485
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1486
|
-
}
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
|
-
let urlPath = `/api/rosters/export-pdf/{pdfExport}/download`;
|
|
1490
|
-
urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
1491
|
-
|
|
1492
|
-
const response = await this.request({
|
|
1493
|
-
path: urlPath,
|
|
1494
|
-
method: 'GET',
|
|
1495
|
-
headers: headerParameters,
|
|
1496
|
-
query: queryParameters,
|
|
1497
|
-
}, initOverrides);
|
|
1498
|
-
|
|
1499
|
-
return new runtime.BlobApiResponse(response);
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
/**
|
|
1503
|
-
* Auto-generated: rosters.exportPdf.download
|
|
1504
|
-
*/
|
|
1505
|
-
async rostersExportPdfDownload(requestParameters: RostersExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
1506
|
-
const response = await this.rostersExportPdfDownloadRaw(requestParameters, initOverrides);
|
|
1507
|
-
return await response.value();
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
/**
|
|
1511
|
-
* Auto-generated: rosters.exportPdf.status
|
|
1512
|
-
*/
|
|
1513
|
-
async rostersExportPdfStatusRaw(requestParameters: RostersExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportResource>> {
|
|
1514
|
-
if (requestParameters['pdfExport'] == null) {
|
|
1515
|
-
throw new runtime.RequiredError(
|
|
1516
|
-
'pdfExport',
|
|
1517
|
-
'Required parameter "pdfExport" was null or undefined when calling rostersExportPdfStatus().'
|
|
1518
|
-
);
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
const queryParameters: any = {};
|
|
1522
|
-
|
|
1523
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1524
|
-
|
|
1525
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1526
|
-
const token = this.configuration.accessToken;
|
|
1527
|
-
const tokenString = await token("bearerAuth", []);
|
|
1528
|
-
|
|
1529
|
-
if (tokenString) {
|
|
1530
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
let urlPath = `/api/rosters/export-pdf/{pdfExport}/status`;
|
|
1535
|
-
urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
1536
|
-
|
|
1537
|
-
const response = await this.request({
|
|
1538
|
-
path: urlPath,
|
|
1539
|
-
method: 'POST',
|
|
1540
|
-
headers: headerParameters,
|
|
1541
|
-
query: queryParameters,
|
|
1542
|
-
}, initOverrides);
|
|
1543
|
-
|
|
1544
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportResourceFromJSON(jsonValue));
|
|
1545
|
-
}
|
|
1546
|
-
|
|
1547
|
-
/**
|
|
1548
|
-
* Auto-generated: rosters.exportPdf.status
|
|
1549
|
-
*/
|
|
1550
|
-
async rostersExportPdfStatus(requestParameters: RostersExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportResource> {
|
|
1551
|
-
const response = await this.rostersExportPdfStatusRaw(requestParameters, initOverrides);
|
|
1552
|
-
return await response.value();
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
1537
|
/**
|
|
1556
1538
|
* Auto-generated: rosters.list
|
|
1557
1539
|
*/
|
|
@@ -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
|
+
|