@digital8/security-registers-backend-ts-sdk 0.0.293 → 0.0.295
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 +1 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +23 -1
- package/dist/apis/GeneralApi.js +111 -0
- package/dist/models/AuthRegisterGuardRequest.d.ts +256 -0
- package/dist/models/AuthRegisterGuardRequest.js +159 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +5 -5
- package/dist/models/RegisterListResource.js +10 -5
- package/dist/models/RegisterResource.d.ts +3 -3
- package/dist/models/RegisterResource.js +9 -11
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +96 -0
- package/src/models/AuthRegisterGuardRequest.ts +375 -0
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +12 -9
- package/src/models/RegisterResource.ts +8 -9
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -16,6 +16,7 @@ src/models/AssetResource.ts
|
|
|
16
16
|
src/models/AssetResourceArrayResponse.ts
|
|
17
17
|
src/models/AuthChangePasswordRequest.ts
|
|
18
18
|
src/models/AuthProfileUpdateRequest.ts
|
|
19
|
+
src/models/AuthRegisterGuardRequest.ts
|
|
19
20
|
src/models/CurrentRegisterResource.ts
|
|
20
21
|
src/models/CurrentRegisterResourceArrayResponse.ts
|
|
21
22
|
src/models/DevicesRegisterRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.295
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.295 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthProfileUpdateRequest, DevicesRegisterRequest, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, LoginAuthRequest, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportQueuedResource, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, ResetPasswordAuthRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesListAllRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
|
|
13
|
+
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthProfileUpdateRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, LoginAuthRequest, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportQueuedResource, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, ResetPasswordAuthRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesListAllRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
|
|
14
14
|
export interface AuthChangePasswordOperationRequest {
|
|
15
15
|
authChangePasswordRequest?: AuthChangePasswordRequest;
|
|
16
16
|
}
|
|
17
17
|
export interface AuthProfileUpdateOperationRequest {
|
|
18
18
|
authProfileUpdateRequest?: AuthProfileUpdateRequest;
|
|
19
19
|
}
|
|
20
|
+
export interface AuthRegisterGuardOperationRequest {
|
|
21
|
+
authRegisterGuardRequest?: AuthRegisterGuardRequest;
|
|
22
|
+
}
|
|
20
23
|
export interface DestroyUserRequest {
|
|
21
24
|
user: number;
|
|
22
25
|
}
|
|
@@ -30,6 +33,9 @@ export interface IncidentsApproveOperationRequest {
|
|
|
30
33
|
incident: number;
|
|
31
34
|
incidentsApproveRequest?: IncidentsApproveRequest;
|
|
32
35
|
}
|
|
36
|
+
export interface IncidentsDestroyRequest {
|
|
37
|
+
incident: number;
|
|
38
|
+
}
|
|
33
39
|
export interface IncidentsExportPdfRequest {
|
|
34
40
|
incident: number;
|
|
35
41
|
}
|
|
@@ -296,6 +302,14 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
296
302
|
* Auto-generated: auth.profile.update
|
|
297
303
|
*/
|
|
298
304
|
authProfileUpdate(requestParameters?: AuthProfileUpdateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResource>;
|
|
305
|
+
/**
|
|
306
|
+
* Auto-generated: auth.registerGuard
|
|
307
|
+
*/
|
|
308
|
+
authRegisterGuardRaw(requestParameters: AuthRegisterGuardOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>>;
|
|
309
|
+
/**
|
|
310
|
+
* Auto-generated: auth.registerGuard
|
|
311
|
+
*/
|
|
312
|
+
authRegisterGuard(requestParameters?: AuthRegisterGuardOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource>;
|
|
299
313
|
/**
|
|
300
314
|
* Auto-generated: destroyUser
|
|
301
315
|
*/
|
|
@@ -336,6 +350,14 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
336
350
|
* Auto-generated: incidents.approve
|
|
337
351
|
*/
|
|
338
352
|
incidentsApprove(requestParameters: IncidentsApproveOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentResource>;
|
|
353
|
+
/**
|
|
354
|
+
* Auto-generated: incidents.destroy
|
|
355
|
+
*/
|
|
356
|
+
incidentsDestroyRaw(requestParameters: IncidentsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
357
|
+
/**
|
|
358
|
+
* Auto-generated: incidents.destroy
|
|
359
|
+
*/
|
|
360
|
+
incidentsDestroy(requestParameters: IncidentsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
339
361
|
/**
|
|
340
362
|
* Auto-generated: incidents.exportPdf
|
|
341
363
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -185,6 +185,61 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
187
|
};
|
|
188
|
+
/**
|
|
189
|
+
* Auto-generated: auth.registerGuard
|
|
190
|
+
*/
|
|
191
|
+
GeneralApi.prototype.authRegisterGuardRaw = function (requestParameters, initOverrides) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
193
|
+
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
194
|
+
return __generator(this, function (_a) {
|
|
195
|
+
switch (_a.label) {
|
|
196
|
+
case 0:
|
|
197
|
+
queryParameters = {};
|
|
198
|
+
headerParameters = {};
|
|
199
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
200
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
201
|
+
token = this.configuration.accessToken;
|
|
202
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
203
|
+
case 1:
|
|
204
|
+
tokenString = _a.sent();
|
|
205
|
+
if (tokenString) {
|
|
206
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
207
|
+
}
|
|
208
|
+
_a.label = 2;
|
|
209
|
+
case 2:
|
|
210
|
+
urlPath = "/api/auth/register-guard";
|
|
211
|
+
return [4 /*yield*/, this.request({
|
|
212
|
+
path: urlPath,
|
|
213
|
+
method: 'POST',
|
|
214
|
+
headers: headerParameters,
|
|
215
|
+
query: queryParameters,
|
|
216
|
+
body: (0, index_1.AuthRegisterGuardRequestToJSON)(requestParameters['authRegisterGuardRequest']),
|
|
217
|
+
}, initOverrides)];
|
|
218
|
+
case 3:
|
|
219
|
+
response = _a.sent();
|
|
220
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserAuthTokenResourceFromJSON)(jsonValue); })];
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Auto-generated: auth.registerGuard
|
|
227
|
+
*/
|
|
228
|
+
GeneralApi.prototype.authRegisterGuard = function () {
|
|
229
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
230
|
+
var response;
|
|
231
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
232
|
+
return __generator(this, function (_a) {
|
|
233
|
+
switch (_a.label) {
|
|
234
|
+
case 0: return [4 /*yield*/, this.authRegisterGuardRaw(requestParameters, initOverrides)];
|
|
235
|
+
case 1:
|
|
236
|
+
response = _a.sent();
|
|
237
|
+
return [4 /*yield*/, response.value()];
|
|
238
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
};
|
|
188
243
|
/**
|
|
189
244
|
* Auto-generated: destroyUser
|
|
190
245
|
*/
|
|
@@ -461,6 +516,62 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
461
516
|
});
|
|
462
517
|
});
|
|
463
518
|
};
|
|
519
|
+
/**
|
|
520
|
+
* Auto-generated: incidents.destroy
|
|
521
|
+
*/
|
|
522
|
+
GeneralApi.prototype.incidentsDestroyRaw = function (requestParameters, initOverrides) {
|
|
523
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
524
|
+
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
525
|
+
return __generator(this, function (_a) {
|
|
526
|
+
switch (_a.label) {
|
|
527
|
+
case 0:
|
|
528
|
+
if (requestParameters['incident'] == null) {
|
|
529
|
+
throw new runtime.RequiredError('incident', 'Required parameter "incident" was null or undefined when calling incidentsDestroy().');
|
|
530
|
+
}
|
|
531
|
+
queryParameters = {};
|
|
532
|
+
headerParameters = {};
|
|
533
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
534
|
+
token = this.configuration.accessToken;
|
|
535
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
536
|
+
case 1:
|
|
537
|
+
tokenString = _a.sent();
|
|
538
|
+
if (tokenString) {
|
|
539
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
540
|
+
}
|
|
541
|
+
_a.label = 2;
|
|
542
|
+
case 2:
|
|
543
|
+
urlPath = "/api/incidents/{incident}/delete";
|
|
544
|
+
urlPath = urlPath.replace("{".concat("incident", "}"), encodeURIComponent(String(requestParameters['incident'])));
|
|
545
|
+
return [4 /*yield*/, this.request({
|
|
546
|
+
path: urlPath,
|
|
547
|
+
method: 'POST',
|
|
548
|
+
headers: headerParameters,
|
|
549
|
+
query: queryParameters,
|
|
550
|
+
}, initOverrides)];
|
|
551
|
+
case 3:
|
|
552
|
+
response = _a.sent();
|
|
553
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
});
|
|
557
|
+
};
|
|
558
|
+
/**
|
|
559
|
+
* Auto-generated: incidents.destroy
|
|
560
|
+
*/
|
|
561
|
+
GeneralApi.prototype.incidentsDestroy = function (requestParameters, initOverrides) {
|
|
562
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
563
|
+
var response;
|
|
564
|
+
return __generator(this, function (_a) {
|
|
565
|
+
switch (_a.label) {
|
|
566
|
+
case 0: return [4 /*yield*/, this.incidentsDestroyRaw(requestParameters, initOverrides)];
|
|
567
|
+
case 1:
|
|
568
|
+
response = _a.sent();
|
|
569
|
+
return [4 /*yield*/, response.value()];
|
|
570
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
});
|
|
574
|
+
};
|
|
464
575
|
/**
|
|
465
576
|
* Auto-generated: incidents.exportPdf
|
|
466
577
|
*/
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
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
|
+
* @interface AuthRegisterGuardRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthRegisterGuardRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AuthRegisterGuardRequest
|
|
22
|
+
*/
|
|
23
|
+
firstName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthRegisterGuardRequest
|
|
28
|
+
*/
|
|
29
|
+
lastName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuthRegisterGuardRequest
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AuthRegisterGuardRequest
|
|
40
|
+
*/
|
|
41
|
+
mobile: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AuthRegisterGuardRequest
|
|
46
|
+
*/
|
|
47
|
+
password: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof AuthRegisterGuardRequest
|
|
52
|
+
*/
|
|
53
|
+
profileSignature: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof AuthRegisterGuardRequest
|
|
58
|
+
*/
|
|
59
|
+
profileSignatureFileId?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AuthRegisterGuardRequest
|
|
64
|
+
*/
|
|
65
|
+
profileSignatureFileName?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AuthRegisterGuardRequest
|
|
70
|
+
*/
|
|
71
|
+
profileSignatureMimeType?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AuthRegisterGuardRequest
|
|
76
|
+
*/
|
|
77
|
+
profileSignatureAltText?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof AuthRegisterGuardRequest
|
|
82
|
+
*/
|
|
83
|
+
licence: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof AuthRegisterGuardRequest
|
|
88
|
+
*/
|
|
89
|
+
licenceState: AuthRegisterGuardRequestLicenceStateEnum;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof AuthRegisterGuardRequest
|
|
94
|
+
*/
|
|
95
|
+
licenceLicenceNumber: string;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof AuthRegisterGuardRequest
|
|
100
|
+
*/
|
|
101
|
+
licenceFirstName: string;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof AuthRegisterGuardRequest
|
|
106
|
+
*/
|
|
107
|
+
licenceLastName: string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {Date}
|
|
111
|
+
* @memberof AuthRegisterGuardRequest
|
|
112
|
+
*/
|
|
113
|
+
licenceExpiryDate: Date;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {Array<string>}
|
|
117
|
+
* @memberof AuthRegisterGuardRequest
|
|
118
|
+
*/
|
|
119
|
+
licenceFrontAsset: Array<string>;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof AuthRegisterGuardRequest
|
|
124
|
+
*/
|
|
125
|
+
licenceFrontAssetFileId?: number;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof AuthRegisterGuardRequest
|
|
130
|
+
*/
|
|
131
|
+
licenceFrontAssetFileName?: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof AuthRegisterGuardRequest
|
|
136
|
+
*/
|
|
137
|
+
licenceFrontAssetMimeType?: string;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof AuthRegisterGuardRequest
|
|
142
|
+
*/
|
|
143
|
+
licenceFrontAssetAltText?: string;
|
|
144
|
+
/**
|
|
145
|
+
*
|
|
146
|
+
* @type {Array<string>}
|
|
147
|
+
* @memberof AuthRegisterGuardRequest
|
|
148
|
+
*/
|
|
149
|
+
licenceBackAsset?: Array<string>;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {number}
|
|
153
|
+
* @memberof AuthRegisterGuardRequest
|
|
154
|
+
*/
|
|
155
|
+
licenceBackAssetFileId?: number;
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @type {string}
|
|
159
|
+
* @memberof AuthRegisterGuardRequest
|
|
160
|
+
*/
|
|
161
|
+
licenceBackAssetFileName?: string;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof AuthRegisterGuardRequest
|
|
166
|
+
*/
|
|
167
|
+
licenceBackAssetMimeType?: string;
|
|
168
|
+
/**
|
|
169
|
+
*
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof AuthRegisterGuardRequest
|
|
172
|
+
*/
|
|
173
|
+
licenceBackAssetAltText?: string;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
* @type {Array<string>}
|
|
177
|
+
* @memberof AuthRegisterGuardRequest
|
|
178
|
+
*/
|
|
179
|
+
licenceRsaAsset?: Array<string>;
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @type {number}
|
|
183
|
+
* @memberof AuthRegisterGuardRequest
|
|
184
|
+
*/
|
|
185
|
+
licenceRsaAssetFileId?: number;
|
|
186
|
+
/**
|
|
187
|
+
*
|
|
188
|
+
* @type {string}
|
|
189
|
+
* @memberof AuthRegisterGuardRequest
|
|
190
|
+
*/
|
|
191
|
+
licenceRsaAssetFileName?: string;
|
|
192
|
+
/**
|
|
193
|
+
*
|
|
194
|
+
* @type {string}
|
|
195
|
+
* @memberof AuthRegisterGuardRequest
|
|
196
|
+
*/
|
|
197
|
+
licenceRsaAssetMimeType?: string;
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @memberof AuthRegisterGuardRequest
|
|
202
|
+
*/
|
|
203
|
+
licenceRsaAssetAltText?: string;
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @type {Array<string>}
|
|
207
|
+
* @memberof AuthRegisterGuardRequest
|
|
208
|
+
*/
|
|
209
|
+
licenceFirstAidAsset?: Array<string>;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @type {number}
|
|
213
|
+
* @memberof AuthRegisterGuardRequest
|
|
214
|
+
*/
|
|
215
|
+
licenceFirstAidAssetFileId?: number;
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @memberof AuthRegisterGuardRequest
|
|
220
|
+
*/
|
|
221
|
+
licenceFirstAidAssetFileName?: string;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
* @type {string}
|
|
225
|
+
* @memberof AuthRegisterGuardRequest
|
|
226
|
+
*/
|
|
227
|
+
licenceFirstAidAssetMimeType?: string;
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @type {string}
|
|
231
|
+
* @memberof AuthRegisterGuardRequest
|
|
232
|
+
*/
|
|
233
|
+
licenceFirstAidAssetAltText?: string;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* @export
|
|
237
|
+
*/
|
|
238
|
+
export declare const AuthRegisterGuardRequestLicenceStateEnum: {
|
|
239
|
+
readonly Qld: "QLD";
|
|
240
|
+
readonly Nsw: "NSW";
|
|
241
|
+
readonly Act: "ACT";
|
|
242
|
+
readonly Vic: "VIC";
|
|
243
|
+
readonly Tas: "TAS";
|
|
244
|
+
readonly Sa: "SA";
|
|
245
|
+
readonly Wa: "WA";
|
|
246
|
+
readonly Nt: "NT";
|
|
247
|
+
};
|
|
248
|
+
export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
|
|
249
|
+
/**
|
|
250
|
+
* Check if a given object implements the AuthRegisterGuardRequest interface.
|
|
251
|
+
*/
|
|
252
|
+
export declare function instanceOfAuthRegisterGuardRequest(value: object): value is AuthRegisterGuardRequest;
|
|
253
|
+
export declare function AuthRegisterGuardRequestFromJSON(json: any): AuthRegisterGuardRequest;
|
|
254
|
+
export declare function AuthRegisterGuardRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthRegisterGuardRequest;
|
|
255
|
+
export declare function AuthRegisterGuardRequestToJSON(json: any): AuthRegisterGuardRequest;
|
|
256
|
+
export declare function AuthRegisterGuardRequestToJSONTyped(value?: AuthRegisterGuardRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
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.AuthRegisterGuardRequestLicenceStateEnum = void 0;
|
|
17
|
+
exports.instanceOfAuthRegisterGuardRequest = instanceOfAuthRegisterGuardRequest;
|
|
18
|
+
exports.AuthRegisterGuardRequestFromJSON = AuthRegisterGuardRequestFromJSON;
|
|
19
|
+
exports.AuthRegisterGuardRequestFromJSONTyped = AuthRegisterGuardRequestFromJSONTyped;
|
|
20
|
+
exports.AuthRegisterGuardRequestToJSON = AuthRegisterGuardRequestToJSON;
|
|
21
|
+
exports.AuthRegisterGuardRequestToJSONTyped = AuthRegisterGuardRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AuthRegisterGuardRequestLicenceStateEnum = {
|
|
26
|
+
Qld: 'QLD',
|
|
27
|
+
Nsw: 'NSW',
|
|
28
|
+
Act: 'ACT',
|
|
29
|
+
Vic: 'VIC',
|
|
30
|
+
Tas: 'TAS',
|
|
31
|
+
Sa: 'SA',
|
|
32
|
+
Wa: 'WA',
|
|
33
|
+
Nt: 'NT'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the AuthRegisterGuardRequest interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfAuthRegisterGuardRequest(value) {
|
|
39
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('mobile' in value) || value['mobile'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('profileSignature' in value) || value['profileSignature'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('licence' in value) || value['licence'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('licenceState' in value) || value['licenceState'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('licenceLicenceNumber' in value) || value['licenceLicenceNumber'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('licenceExpiryDate' in value) || value['licenceExpiryDate'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('licenceFrontAsset' in value) || value['licenceFrontAsset'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
function AuthRegisterGuardRequestFromJSON(json) {
|
|
68
|
+
return AuthRegisterGuardRequestFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function AuthRegisterGuardRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'firstName': json['first_name'],
|
|
76
|
+
'lastName': json['last_name'],
|
|
77
|
+
'email': json['email'],
|
|
78
|
+
'mobile': json['mobile'],
|
|
79
|
+
'password': json['password'],
|
|
80
|
+
'profileSignature': json['profile_signature'],
|
|
81
|
+
'profileSignatureFileId': json['profile_signature.file_id'] == null ? undefined : json['profile_signature.file_id'],
|
|
82
|
+
'profileSignatureFileName': json['profile_signature.file_name'] == null ? undefined : json['profile_signature.file_name'],
|
|
83
|
+
'profileSignatureMimeType': json['profile_signature.mime_type'] == null ? undefined : json['profile_signature.mime_type'],
|
|
84
|
+
'profileSignatureAltText': json['profile_signature.alt_text'] == null ? undefined : json['profile_signature.alt_text'],
|
|
85
|
+
'licence': json['licence'],
|
|
86
|
+
'licenceState': json['licence.state'],
|
|
87
|
+
'licenceLicenceNumber': json['licence.licence_number'],
|
|
88
|
+
'licenceFirstName': json['licence.first_name'],
|
|
89
|
+
'licenceLastName': json['licence.last_name'],
|
|
90
|
+
'licenceExpiryDate': (new Date(json['licence.expiry_date'])),
|
|
91
|
+
'licenceFrontAsset': json['licence.front_asset'],
|
|
92
|
+
'licenceFrontAssetFileId': json['licence.front_asset.file_id'] == null ? undefined : json['licence.front_asset.file_id'],
|
|
93
|
+
'licenceFrontAssetFileName': json['licence.front_asset.file_name'] == null ? undefined : json['licence.front_asset.file_name'],
|
|
94
|
+
'licenceFrontAssetMimeType': json['licence.front_asset.mime_type'] == null ? undefined : json['licence.front_asset.mime_type'],
|
|
95
|
+
'licenceFrontAssetAltText': json['licence.front_asset.alt_text'] == null ? undefined : json['licence.front_asset.alt_text'],
|
|
96
|
+
'licenceBackAsset': json['licence.back_asset'] == null ? undefined : json['licence.back_asset'],
|
|
97
|
+
'licenceBackAssetFileId': json['licence.back_asset.file_id'] == null ? undefined : json['licence.back_asset.file_id'],
|
|
98
|
+
'licenceBackAssetFileName': json['licence.back_asset.file_name'] == null ? undefined : json['licence.back_asset.file_name'],
|
|
99
|
+
'licenceBackAssetMimeType': json['licence.back_asset.mime_type'] == null ? undefined : json['licence.back_asset.mime_type'],
|
|
100
|
+
'licenceBackAssetAltText': json['licence.back_asset.alt_text'] == null ? undefined : json['licence.back_asset.alt_text'],
|
|
101
|
+
'licenceRsaAsset': json['licence.rsa_asset'] == null ? undefined : json['licence.rsa_asset'],
|
|
102
|
+
'licenceRsaAssetFileId': json['licence.rsa_asset.file_id'] == null ? undefined : json['licence.rsa_asset.file_id'],
|
|
103
|
+
'licenceRsaAssetFileName': json['licence.rsa_asset.file_name'] == null ? undefined : json['licence.rsa_asset.file_name'],
|
|
104
|
+
'licenceRsaAssetMimeType': json['licence.rsa_asset.mime_type'] == null ? undefined : json['licence.rsa_asset.mime_type'],
|
|
105
|
+
'licenceRsaAssetAltText': json['licence.rsa_asset.alt_text'] == null ? undefined : json['licence.rsa_asset.alt_text'],
|
|
106
|
+
'licenceFirstAidAsset': json['licence.first_aid_asset'] == null ? undefined : json['licence.first_aid_asset'],
|
|
107
|
+
'licenceFirstAidAssetFileId': json['licence.first_aid_asset.file_id'] == null ? undefined : json['licence.first_aid_asset.file_id'],
|
|
108
|
+
'licenceFirstAidAssetFileName': json['licence.first_aid_asset.file_name'] == null ? undefined : json['licence.first_aid_asset.file_name'],
|
|
109
|
+
'licenceFirstAidAssetMimeType': json['licence.first_aid_asset.mime_type'] == null ? undefined : json['licence.first_aid_asset.mime_type'],
|
|
110
|
+
'licenceFirstAidAssetAltText': json['licence.first_aid_asset.alt_text'] == null ? undefined : json['licence.first_aid_asset.alt_text'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
function AuthRegisterGuardRequestToJSON(json) {
|
|
114
|
+
return AuthRegisterGuardRequestToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
function AuthRegisterGuardRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
117
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
'first_name': value['firstName'],
|
|
123
|
+
'last_name': value['lastName'],
|
|
124
|
+
'email': value['email'],
|
|
125
|
+
'mobile': value['mobile'],
|
|
126
|
+
'password': value['password'],
|
|
127
|
+
'profile_signature': value['profileSignature'],
|
|
128
|
+
'profile_signature.file_id': value['profileSignatureFileId'],
|
|
129
|
+
'profile_signature.file_name': value['profileSignatureFileName'],
|
|
130
|
+
'profile_signature.mime_type': value['profileSignatureMimeType'],
|
|
131
|
+
'profile_signature.alt_text': value['profileSignatureAltText'],
|
|
132
|
+
'licence': value['licence'],
|
|
133
|
+
'licence.state': value['licenceState'],
|
|
134
|
+
'licence.licence_number': value['licenceLicenceNumber'],
|
|
135
|
+
'licence.first_name': value['licenceFirstName'],
|
|
136
|
+
'licence.last_name': value['licenceLastName'],
|
|
137
|
+
'licence.expiry_date': ((value['licenceExpiryDate']).toISOString()),
|
|
138
|
+
'licence.front_asset': value['licenceFrontAsset'],
|
|
139
|
+
'licence.front_asset.file_id': value['licenceFrontAssetFileId'],
|
|
140
|
+
'licence.front_asset.file_name': value['licenceFrontAssetFileName'],
|
|
141
|
+
'licence.front_asset.mime_type': value['licenceFrontAssetMimeType'],
|
|
142
|
+
'licence.front_asset.alt_text': value['licenceFrontAssetAltText'],
|
|
143
|
+
'licence.back_asset': value['licenceBackAsset'],
|
|
144
|
+
'licence.back_asset.file_id': value['licenceBackAssetFileId'],
|
|
145
|
+
'licence.back_asset.file_name': value['licenceBackAssetFileName'],
|
|
146
|
+
'licence.back_asset.mime_type': value['licenceBackAssetMimeType'],
|
|
147
|
+
'licence.back_asset.alt_text': value['licenceBackAssetAltText'],
|
|
148
|
+
'licence.rsa_asset': value['licenceRsaAsset'],
|
|
149
|
+
'licence.rsa_asset.file_id': value['licenceRsaAssetFileId'],
|
|
150
|
+
'licence.rsa_asset.file_name': value['licenceRsaAssetFileName'],
|
|
151
|
+
'licence.rsa_asset.mime_type': value['licenceRsaAssetMimeType'],
|
|
152
|
+
'licence.rsa_asset.alt_text': value['licenceRsaAssetAltText'],
|
|
153
|
+
'licence.first_aid_asset': value['licenceFirstAidAsset'],
|
|
154
|
+
'licence.first_aid_asset.file_id': value['licenceFirstAidAssetFileId'],
|
|
155
|
+
'licence.first_aid_asset.file_name': value['licenceFirstAidAssetFileName'],
|
|
156
|
+
'licence.first_aid_asset.mime_type': value['licenceFirstAidAssetMimeType'],
|
|
157
|
+
'licence.first_aid_asset.alt_text': value['licenceFirstAidAssetAltText'],
|
|
158
|
+
};
|
|
159
|
+
}
|
|
@@ -32,6 +32,8 @@ function instanceOfRegisterGroupedByRosterResource(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
36
|
+
return false;
|
|
35
37
|
if (!('registers' in value) || value['registers'] === undefined)
|
|
36
38
|
return false;
|
|
37
39
|
return true;
|
|
@@ -49,7 +51,7 @@ function RegisterGroupedByRosterResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
49
51
|
'timezone': json['timezone'],
|
|
50
52
|
'state': json['state'],
|
|
51
53
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
52
|
-
'finishDateTime':
|
|
54
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
53
55
|
'registers': (json['registers'] == null ? null : json['registers'].map(RegisterListResource_1.RegisterListResourceFromJSON)),
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -57,7 +59,6 @@ function RegisterGroupedByRosterResourceToJSON(json) {
|
|
|
57
59
|
return RegisterGroupedByRosterResourceToJSONTyped(json, false);
|
|
58
60
|
}
|
|
59
61
|
function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
-
var _a;
|
|
61
62
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
63
|
if (value == null) {
|
|
63
64
|
return value;
|
|
@@ -68,7 +69,7 @@ function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
68
69
|
'timezone': value['timezone'],
|
|
69
70
|
'state': value['state'],
|
|
70
71
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
71
|
-
'finishDateTime':
|
|
72
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
72
73
|
'registers': (value['registers'] == null ? null : value['registers'].map(RegisterListResource_1.RegisterListResourceToJSON)),
|
|
73
74
|
};
|
|
74
75
|
}
|