@digital8/security-registers-backend-ts-sdk 0.0.461 → 0.0.463

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.
@@ -15,6 +15,7 @@ src/models/AssetLiteResourceArrayResponse.ts
15
15
  src/models/AssetResource.ts
16
16
  src/models/AssetResourceArrayResponse.ts
17
17
  src/models/AuthChangePasswordRequest.ts
18
+ src/models/AuthLoginWebRequest.ts
18
19
  src/models/AuthProfileUpdateRequest.ts
19
20
  src/models/AuthRegisterGuardFileRequest.ts
20
21
  src/models/AuthRegisterGuardRequest.ts
@@ -81,7 +82,6 @@ src/models/LicencesStoreRequest.ts
81
82
  src/models/LicencesStoreRequestBackAsset.ts
82
83
  src/models/LicencesUpdateRequest.ts
83
84
  src/models/LicencesVerifyRequest.ts
84
- src/models/LoginAuthRequest.ts
85
85
  src/models/MobileAppConfigRequest.ts
86
86
  src/models/MobileAppConfigResource.ts
87
87
  src/models/MobileAppConfigResourceArrayResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.461
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.463
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.461 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.463 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,13 +10,19 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, LoginAuthRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, 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, SettingsLicenceVerificationFallbackUpdateRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
13
+ import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, 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, SettingsLicenceVerificationFallbackUpdateRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
14
14
  export interface AuthChangePasswordOperationRequest {
15
15
  authChangePasswordRequest?: AuthChangePasswordRequest;
16
16
  }
17
17
  export interface AuthImpersonateRequest {
18
18
  user: number;
19
19
  }
20
+ export interface AuthLoginAppRequest {
21
+ authLoginWebRequest?: AuthLoginWebRequest;
22
+ }
23
+ export interface AuthLoginWebOperationRequest {
24
+ authLoginWebRequest?: AuthLoginWebRequest;
25
+ }
20
26
  export interface AuthProfileUpdateOperationRequest {
21
27
  authProfileUpdateRequest?: AuthProfileUpdateRequest;
22
28
  }
@@ -144,9 +150,6 @@ export interface LicencesUpdateOperationRequest {
144
150
  export interface LicencesVerifyOperationRequest {
145
151
  licencesVerifyRequest?: LicencesVerifyRequest;
146
152
  }
147
- export interface LoginAuthOperationRequest {
148
- loginAuthRequest?: LoginAuthRequest;
149
- }
150
153
  export interface MobileAppConfigOperationRequest {
151
154
  mobileAppConfigRequest?: MobileAppConfigRequest;
152
155
  }
@@ -359,6 +362,22 @@ export declare class GeneralApi extends runtime.BaseAPI {
359
362
  * Auto-generated: auth.impersonate
360
363
  */
361
364
  authImpersonate(requestParameters: AuthImpersonateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource>;
365
+ /**
366
+ * Auto-generated: auth.login.app
367
+ */
368
+ authLoginAppRaw(requestParameters: AuthLoginAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>>;
369
+ /**
370
+ * Auto-generated: auth.login.app
371
+ */
372
+ authLoginApp(requestParameters?: AuthLoginAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource>;
373
+ /**
374
+ * Auto-generated: auth.login.web
375
+ */
376
+ authLoginWebRaw(requestParameters: AuthLoginWebOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>>;
377
+ /**
378
+ * Auto-generated: auth.login.web
379
+ */
380
+ authLoginWeb(requestParameters?: AuthLoginWebOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource>;
362
381
  /**
363
382
  * Auto-generated: auth.profile.update
364
383
  */
@@ -679,14 +698,6 @@ export declare class GeneralApi extends runtime.BaseAPI {
679
698
  * Auto-generated: licences.verify
680
699
  */
681
700
  licencesVerify(requestParameters?: LicencesVerifyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VerifyLicenceResource>;
682
- /**
683
- * Auto-generated: loginAuth
684
- */
685
- loginAuthRaw(requestParameters: LoginAuthOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>>;
686
- /**
687
- * Auto-generated: loginAuth
688
- */
689
- loginAuth(requestParameters?: LoginAuthOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource>;
690
701
  /**
691
702
  * Auto-generated: logoutAuth
692
703
  */
@@ -186,6 +186,116 @@ var GeneralApi = /** @class */ (function (_super) {
186
186
  });
187
187
  });
188
188
  };
189
+ /**
190
+ * Auto-generated: auth.login.app
191
+ */
192
+ GeneralApi.prototype.authLoginAppRaw = function (requestParameters, initOverrides) {
193
+ return __awaiter(this, void 0, void 0, function () {
194
+ var queryParameters, headerParameters, token, tokenString, urlPath, response;
195
+ return __generator(this, function (_a) {
196
+ switch (_a.label) {
197
+ case 0:
198
+ queryParameters = {};
199
+ headerParameters = {};
200
+ headerParameters['Content-Type'] = 'application/json';
201
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
202
+ token = this.configuration.accessToken;
203
+ return [4 /*yield*/, token("bearerAuth", [])];
204
+ case 1:
205
+ tokenString = _a.sent();
206
+ if (tokenString) {
207
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
208
+ }
209
+ _a.label = 2;
210
+ case 2:
211
+ urlPath = "/api/auth/login/app";
212
+ return [4 /*yield*/, this.request({
213
+ path: urlPath,
214
+ method: 'POST',
215
+ headers: headerParameters,
216
+ query: queryParameters,
217
+ body: (0, index_1.AuthLoginWebRequestToJSON)(requestParameters['authLoginWebRequest']),
218
+ }, initOverrides)];
219
+ case 3:
220
+ response = _a.sent();
221
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserAuthTokenResourceFromJSON)(jsonValue); })];
222
+ }
223
+ });
224
+ });
225
+ };
226
+ /**
227
+ * Auto-generated: auth.login.app
228
+ */
229
+ GeneralApi.prototype.authLoginApp = function () {
230
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
231
+ var response;
232
+ if (requestParameters === void 0) { requestParameters = {}; }
233
+ return __generator(this, function (_a) {
234
+ switch (_a.label) {
235
+ case 0: return [4 /*yield*/, this.authLoginAppRaw(requestParameters, initOverrides)];
236
+ case 1:
237
+ response = _a.sent();
238
+ return [4 /*yield*/, response.value()];
239
+ case 2: return [2 /*return*/, _a.sent()];
240
+ }
241
+ });
242
+ });
243
+ };
244
+ /**
245
+ * Auto-generated: auth.login.web
246
+ */
247
+ GeneralApi.prototype.authLoginWebRaw = function (requestParameters, initOverrides) {
248
+ return __awaiter(this, void 0, void 0, function () {
249
+ var queryParameters, headerParameters, token, tokenString, urlPath, response;
250
+ return __generator(this, function (_a) {
251
+ switch (_a.label) {
252
+ case 0:
253
+ queryParameters = {};
254
+ headerParameters = {};
255
+ headerParameters['Content-Type'] = 'application/json';
256
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
257
+ token = this.configuration.accessToken;
258
+ return [4 /*yield*/, token("bearerAuth", [])];
259
+ case 1:
260
+ tokenString = _a.sent();
261
+ if (tokenString) {
262
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
263
+ }
264
+ _a.label = 2;
265
+ case 2:
266
+ urlPath = "/api/auth/login/web";
267
+ return [4 /*yield*/, this.request({
268
+ path: urlPath,
269
+ method: 'POST',
270
+ headers: headerParameters,
271
+ query: queryParameters,
272
+ body: (0, index_1.AuthLoginWebRequestToJSON)(requestParameters['authLoginWebRequest']),
273
+ }, initOverrides)];
274
+ case 3:
275
+ response = _a.sent();
276
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserAuthTokenResourceFromJSON)(jsonValue); })];
277
+ }
278
+ });
279
+ });
280
+ };
281
+ /**
282
+ * Auto-generated: auth.login.web
283
+ */
284
+ GeneralApi.prototype.authLoginWeb = function () {
285
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
286
+ var response;
287
+ if (requestParameters === void 0) { requestParameters = {}; }
288
+ return __generator(this, function (_a) {
289
+ switch (_a.label) {
290
+ case 0: return [4 /*yield*/, this.authLoginWebRaw(requestParameters, initOverrides)];
291
+ case 1:
292
+ response = _a.sent();
293
+ return [4 /*yield*/, response.value()];
294
+ case 2: return [2 /*return*/, _a.sent()];
295
+ }
296
+ });
297
+ });
298
+ };
189
299
  /**
190
300
  * Auto-generated: auth.profile.update
191
301
  */
@@ -2435,61 +2545,6 @@ var GeneralApi = /** @class */ (function (_super) {
2435
2545
  });
2436
2546
  });
2437
2547
  };
2438
- /**
2439
- * Auto-generated: loginAuth
2440
- */
2441
- GeneralApi.prototype.loginAuthRaw = function (requestParameters, initOverrides) {
2442
- return __awaiter(this, void 0, void 0, function () {
2443
- var queryParameters, headerParameters, token, tokenString, urlPath, response;
2444
- return __generator(this, function (_a) {
2445
- switch (_a.label) {
2446
- case 0:
2447
- queryParameters = {};
2448
- headerParameters = {};
2449
- headerParameters['Content-Type'] = 'application/json';
2450
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
2451
- token = this.configuration.accessToken;
2452
- return [4 /*yield*/, token("bearerAuth", [])];
2453
- case 1:
2454
- tokenString = _a.sent();
2455
- if (tokenString) {
2456
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
2457
- }
2458
- _a.label = 2;
2459
- case 2:
2460
- urlPath = "/api/auth/login";
2461
- return [4 /*yield*/, this.request({
2462
- path: urlPath,
2463
- method: 'POST',
2464
- headers: headerParameters,
2465
- query: queryParameters,
2466
- body: (0, index_1.LoginAuthRequestToJSON)(requestParameters['loginAuthRequest']),
2467
- }, initOverrides)];
2468
- case 3:
2469
- response = _a.sent();
2470
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserAuthTokenResourceFromJSON)(jsonValue); })];
2471
- }
2472
- });
2473
- });
2474
- };
2475
- /**
2476
- * Auto-generated: loginAuth
2477
- */
2478
- GeneralApi.prototype.loginAuth = function () {
2479
- return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
2480
- var response;
2481
- if (requestParameters === void 0) { requestParameters = {}; }
2482
- return __generator(this, function (_a) {
2483
- switch (_a.label) {
2484
- case 0: return [4 /*yield*/, this.loginAuthRaw(requestParameters, initOverrides)];
2485
- case 1:
2486
- response = _a.sent();
2487
- return [4 /*yield*/, response.value()];
2488
- case 2: return [2 /*return*/, _a.sent()];
2489
- }
2490
- });
2491
- });
2492
- };
2493
2548
  /**
2494
2549
  * Auto-generated: logoutAuth
2495
2550
  */
@@ -44,7 +44,7 @@ export interface AssetResource {
44
44
  * @type {string}
45
45
  * @memberof AssetResource
46
46
  */
47
- altText: string;
47
+ altText?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {number}
@@ -30,8 +30,6 @@ function instanceOfAssetResource(value) {
30
30
  return false;
31
31
  if (!('mimeType' in value) || value['mimeType'] === undefined)
32
32
  return false;
33
- if (!('altText' in value) || value['altText'] === undefined)
34
- return false;
35
33
  if (!('index' in value) || value['index'] === undefined)
36
34
  return false;
37
35
  if (!('fileId' in value) || value['fileId'] === undefined)
@@ -52,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
52
50
  'filePath': json['filePath'],
53
51
  'fileName': json['fileName'],
54
52
  'mimeType': json['mimeType'],
55
- 'altText': json['altText'],
53
+ 'altText': json['altText'] == null ? undefined : json['altText'],
56
54
  'index': json['index'],
57
55
  'fileId': json['fileId'],
58
56
  'isExternal': json['isExternal'],
@@ -0,0 +1,38 @@
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 AuthLoginWebRequest
16
+ */
17
+ export interface AuthLoginWebRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AuthLoginWebRequest
22
+ */
23
+ email: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AuthLoginWebRequest
28
+ */
29
+ password: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AuthLoginWebRequest interface.
33
+ */
34
+ export declare function instanceOfAuthLoginWebRequest(value: object): value is AuthLoginWebRequest;
35
+ export declare function AuthLoginWebRequestFromJSON(json: any): AuthLoginWebRequest;
36
+ export declare function AuthLoginWebRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthLoginWebRequest;
37
+ export declare function AuthLoginWebRequestToJSON(json: any): AuthLoginWebRequest;
38
+ export declare function AuthLoginWebRequestToJSONTyped(value?: AuthLoginWebRequest | null, ignoreDiscriminator?: boolean): any;
@@ -13,25 +13,25 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfLoginAuthRequest = instanceOfLoginAuthRequest;
17
- exports.LoginAuthRequestFromJSON = LoginAuthRequestFromJSON;
18
- exports.LoginAuthRequestFromJSONTyped = LoginAuthRequestFromJSONTyped;
19
- exports.LoginAuthRequestToJSON = LoginAuthRequestToJSON;
20
- exports.LoginAuthRequestToJSONTyped = LoginAuthRequestToJSONTyped;
16
+ exports.instanceOfAuthLoginWebRequest = instanceOfAuthLoginWebRequest;
17
+ exports.AuthLoginWebRequestFromJSON = AuthLoginWebRequestFromJSON;
18
+ exports.AuthLoginWebRequestFromJSONTyped = AuthLoginWebRequestFromJSONTyped;
19
+ exports.AuthLoginWebRequestToJSON = AuthLoginWebRequestToJSON;
20
+ exports.AuthLoginWebRequestToJSONTyped = AuthLoginWebRequestToJSONTyped;
21
21
  /**
22
- * Check if a given object implements the LoginAuthRequest interface.
22
+ * Check if a given object implements the AuthLoginWebRequest interface.
23
23
  */
24
- function instanceOfLoginAuthRequest(value) {
24
+ function instanceOfAuthLoginWebRequest(value) {
25
25
  if (!('email' in value) || value['email'] === undefined)
26
26
  return false;
27
27
  if (!('password' in value) || value['password'] === undefined)
28
28
  return false;
29
29
  return true;
30
30
  }
31
- function LoginAuthRequestFromJSON(json) {
32
- return LoginAuthRequestFromJSONTyped(json, false);
31
+ function AuthLoginWebRequestFromJSON(json) {
32
+ return AuthLoginWebRequestFromJSONTyped(json, false);
33
33
  }
34
- function LoginAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ function AuthLoginWebRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  if (json == null) {
36
36
  return json;
37
37
  }
@@ -40,10 +40,10 @@ function LoginAuthRequestFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'password': json['password'],
41
41
  };
42
42
  }
43
- function LoginAuthRequestToJSON(json) {
44
- return LoginAuthRequestToJSONTyped(json, false);
43
+ function AuthLoginWebRequestToJSON(json) {
44
+ return AuthLoginWebRequestToJSONTyped(json, false);
45
45
  }
46
- function LoginAuthRequestToJSONTyped(value, ignoreDiscriminator) {
46
+ function AuthLoginWebRequestToJSONTyped(value, ignoreDiscriminator) {
47
47
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
48
  if (value == null) {
49
49
  return value;
@@ -47,6 +47,12 @@ export interface AuthRegisterGuardRequest {
47
47
  * @memberof AuthRegisterGuardRequest
48
48
  */
49
49
  password: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof AuthRegisterGuardRequest
54
+ */
55
+ passwordConfirmation: string;
50
56
  /**
51
57
  *
52
58
  * @type {AuthRegisterGuardRequestProfileSignature}
@@ -34,6 +34,8 @@ function instanceOfAuthRegisterGuardRequest(value) {
34
34
  return false;
35
35
  if (!('password' in value) || value['password'] === undefined)
36
36
  return false;
37
+ if (!('passwordConfirmation' in value) || value['passwordConfirmation'] === undefined)
38
+ return false;
37
39
  if (!('profileSignature' in value) || value['profileSignature'] === undefined)
38
40
  return false;
39
41
  if (!('licences' in value) || value['licences'] === undefined)
@@ -53,6 +55,7 @@ function AuthRegisterGuardRequestFromJSONTyped(json, ignoreDiscriminator) {
53
55
  'email': json['email'],
54
56
  'mobile': json['mobile'],
55
57
  'password': json['password'],
58
+ 'passwordConfirmation': json['password_confirmation'],
56
59
  'profileSignature': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureFromJSON)(json['profile_signature']),
57
60
  'licences': (json['licences'].map(AuthRegisterGuardRequestLicencesInner_1.AuthRegisterGuardRequestLicencesInnerFromJSON)),
58
61
  };
@@ -71,6 +74,7 @@ function AuthRegisterGuardRequestToJSONTyped(value, ignoreDiscriminator) {
71
74
  'email': value['email'],
72
75
  'mobile': value['mobile'],
73
76
  'password': value['password'],
77
+ 'password_confirmation': value['passwordConfirmation'],
74
78
  'profile_signature': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureToJSON)(value['profileSignature']),
75
79
  'licences': (value['licences'].map(AuthRegisterGuardRequestLicencesInner_1.AuthRegisterGuardRequestLicencesInnerToJSON)),
76
80
  };
@@ -64,7 +64,7 @@ export interface RegisterListResource {
64
64
  * @type {string}
65
65
  * @memberof RegisterListResource
66
66
  */
67
- badgeNumber: string;
67
+ badgeNumber?: string | null;
68
68
  /**
69
69
  *
70
70
  * @type {Date}
@@ -43,8 +43,6 @@ function instanceOfRegisterListResource(value) {
43
43
  return false;
44
44
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
45
45
  return false;
46
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
47
- return false;
48
46
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
49
47
  return false;
50
48
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
@@ -90,7 +88,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
90
88
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
91
89
  'shiftLength': json['shiftLength'],
92
90
  'signOffStatus': json['signOffStatus'],
93
- 'badgeNumber': json['badgeNumber'],
91
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
94
92
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
95
93
  'licenceNumber': json['licenceNumber'],
96
94
  'licenceFirstName': json['licenceFirstName'],
@@ -112,7 +112,7 @@ export interface RegisterResource {
112
112
  * @type {number}
113
113
  * @memberof RegisterResource
114
114
  */
115
- signOffLong: number;
115
+ signOffLong?: number | null;
116
116
  /**
117
117
  *
118
118
  * @type {string}
@@ -142,7 +142,7 @@ export interface RegisterResource {
142
142
  * @type {string}
143
143
  * @memberof RegisterResource
144
144
  */
145
- badgeNumber: string;
145
+ badgeNumber?: string | null;
146
146
  /**
147
147
  *
148
148
  * @type {Date}
@@ -57,8 +57,6 @@ function instanceOfRegisterResource(value) {
57
57
  return false;
58
58
  if (!('signOnLong' in value) || value['signOnLong'] === undefined)
59
59
  return false;
60
- if (!('signOffLong' in value) || value['signOffLong'] === undefined)
61
- return false;
62
60
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
63
61
  return false;
64
62
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
@@ -67,8 +65,6 @@ function instanceOfRegisterResource(value) {
67
65
  return false;
68
66
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
69
67
  return false;
70
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
71
- return false;
72
68
  return true;
73
69
  }
74
70
  function RegisterResourceFromJSON(json) {
@@ -94,12 +90,12 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
94
90
  'signOnLat': json['signOnLat'],
95
91
  'signOnLong': json['signOnLong'],
96
92
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
97
- 'signOffLong': json['signOffLong'],
93
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
98
94
  'licenceNumber': json['licenceNumber'],
99
95
  'licenceExpiry': json['licenceExpiry'],
100
96
  'licenceFirstName': json['licenceFirstName'],
101
97
  'licenceLastName': json['licenceLastName'],
102
- 'badgeNumber': json['badgeNumber'],
98
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
103
99
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
104
100
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
105
101
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -7,6 +7,7 @@ export * from './AssetLiteResourceArrayResponse';
7
7
  export * from './AssetResource';
8
8
  export * from './AssetResourceArrayResponse';
9
9
  export * from './AuthChangePasswordRequest';
10
+ export * from './AuthLoginWebRequest';
10
11
  export * from './AuthProfileUpdateRequest';
11
12
  export * from './AuthRegisterGuardFileRequest';
12
13
  export * from './AuthRegisterGuardRequest';
@@ -73,7 +74,6 @@ export * from './LicencesStoreRequest';
73
74
  export * from './LicencesStoreRequestBackAsset';
74
75
  export * from './LicencesUpdateRequest';
75
76
  export * from './LicencesVerifyRequest';
76
- export * from './LoginAuthRequest';
77
77
  export * from './MobileAppConfigRequest';
78
78
  export * from './MobileAppConfigResource';
79
79
  export * from './MobileAppConfigResourceArrayResponse';
@@ -25,6 +25,7 @@ __exportStar(require("./AssetLiteResourceArrayResponse"), exports);
25
25
  __exportStar(require("./AssetResource"), exports);
26
26
  __exportStar(require("./AssetResourceArrayResponse"), exports);
27
27
  __exportStar(require("./AuthChangePasswordRequest"), exports);
28
+ __exportStar(require("./AuthLoginWebRequest"), exports);
28
29
  __exportStar(require("./AuthProfileUpdateRequest"), exports);
29
30
  __exportStar(require("./AuthRegisterGuardFileRequest"), exports);
30
31
  __exportStar(require("./AuthRegisterGuardRequest"), exports);
@@ -91,7 +92,6 @@ __exportStar(require("./LicencesStoreRequest"), exports);
91
92
  __exportStar(require("./LicencesStoreRequestBackAsset"), exports);
92
93
  __exportStar(require("./LicencesUpdateRequest"), exports);
93
94
  __exportStar(require("./LicencesVerifyRequest"), exports);
94
- __exportStar(require("./LoginAuthRequest"), exports);
95
95
  __exportStar(require("./MobileAppConfigRequest"), exports);
96
96
  __exportStar(require("./MobileAppConfigResource"), exports);
97
97
  __exportStar(require("./MobileAppConfigResourceArrayResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.461",
3
+ "version": "0.0.463",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  AssetFileForUploadResource,
19
19
  AuthChangePasswordRequest,
20
+ AuthLoginWebRequest,
20
21
  AuthProfileUpdateRequest,
21
22
  AuthRegisterGuardFileRequest,
22
23
  AuthRegisterGuardRequest,
@@ -51,7 +52,6 @@ import type {
51
52
  LicencesStoreRequest,
52
53
  LicencesUpdateRequest,
53
54
  LicencesVerifyRequest,
54
- LoginAuthRequest,
55
55
  MobileAppConfigRequest,
56
56
  MobileAppConfigResource,
57
57
  MobileDeviceResource,
@@ -126,6 +126,8 @@ import {
126
126
  AssetFileForUploadResourceToJSON,
127
127
  AuthChangePasswordRequestFromJSON,
128
128
  AuthChangePasswordRequestToJSON,
129
+ AuthLoginWebRequestFromJSON,
130
+ AuthLoginWebRequestToJSON,
129
131
  AuthProfileUpdateRequestFromJSON,
130
132
  AuthProfileUpdateRequestToJSON,
131
133
  AuthRegisterGuardFileRequestFromJSON,
@@ -194,8 +196,6 @@ import {
194
196
  LicencesUpdateRequestToJSON,
195
197
  LicencesVerifyRequestFromJSON,
196
198
  LicencesVerifyRequestToJSON,
197
- LoginAuthRequestFromJSON,
198
- LoginAuthRequestToJSON,
199
199
  MobileAppConfigRequestFromJSON,
200
200
  MobileAppConfigRequestToJSON,
201
201
  MobileAppConfigResourceFromJSON,
@@ -342,6 +342,14 @@ export interface AuthImpersonateRequest {
342
342
  user: number;
343
343
  }
344
344
 
345
+ export interface AuthLoginAppRequest {
346
+ authLoginWebRequest?: AuthLoginWebRequest;
347
+ }
348
+
349
+ export interface AuthLoginWebOperationRequest {
350
+ authLoginWebRequest?: AuthLoginWebRequest;
351
+ }
352
+
345
353
  export interface AuthProfileUpdateOperationRequest {
346
354
  authProfileUpdateRequest?: AuthProfileUpdateRequest;
347
355
  }
@@ -508,10 +516,6 @@ export interface LicencesVerifyOperationRequest {
508
516
  licencesVerifyRequest?: LicencesVerifyRequest;
509
517
  }
510
518
 
511
- export interface LoginAuthOperationRequest {
512
- loginAuthRequest?: LoginAuthRequest;
513
- }
514
-
515
519
  export interface MobileAppConfigOperationRequest {
516
520
  mobileAppConfigRequest?: MobileAppConfigRequest;
517
521
  }
@@ -853,6 +857,86 @@ export class GeneralApi extends runtime.BaseAPI {
853
857
  return await response.value();
854
858
  }
855
859
 
860
+ /**
861
+ * Auto-generated: auth.login.app
862
+ */
863
+ async authLoginAppRaw(requestParameters: AuthLoginAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>> {
864
+ const queryParameters: any = {};
865
+
866
+ const headerParameters: runtime.HTTPHeaders = {};
867
+
868
+ headerParameters['Content-Type'] = 'application/json';
869
+
870
+ if (this.configuration && this.configuration.accessToken) {
871
+ const token = this.configuration.accessToken;
872
+ const tokenString = await token("bearerAuth", []);
873
+
874
+ if (tokenString) {
875
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
876
+ }
877
+ }
878
+
879
+ let urlPath = `/api/auth/login/app`;
880
+
881
+ const response = await this.request({
882
+ path: urlPath,
883
+ method: 'POST',
884
+ headers: headerParameters,
885
+ query: queryParameters,
886
+ body: AuthLoginWebRequestToJSON(requestParameters['authLoginWebRequest']),
887
+ }, initOverrides);
888
+
889
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserAuthTokenResourceFromJSON(jsonValue));
890
+ }
891
+
892
+ /**
893
+ * Auto-generated: auth.login.app
894
+ */
895
+ async authLoginApp(requestParameters: AuthLoginAppRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource> {
896
+ const response = await this.authLoginAppRaw(requestParameters, initOverrides);
897
+ return await response.value();
898
+ }
899
+
900
+ /**
901
+ * Auto-generated: auth.login.web
902
+ */
903
+ async authLoginWebRaw(requestParameters: AuthLoginWebOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>> {
904
+ const queryParameters: any = {};
905
+
906
+ const headerParameters: runtime.HTTPHeaders = {};
907
+
908
+ headerParameters['Content-Type'] = 'application/json';
909
+
910
+ if (this.configuration && this.configuration.accessToken) {
911
+ const token = this.configuration.accessToken;
912
+ const tokenString = await token("bearerAuth", []);
913
+
914
+ if (tokenString) {
915
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
916
+ }
917
+ }
918
+
919
+ let urlPath = `/api/auth/login/web`;
920
+
921
+ const response = await this.request({
922
+ path: urlPath,
923
+ method: 'POST',
924
+ headers: headerParameters,
925
+ query: queryParameters,
926
+ body: AuthLoginWebRequestToJSON(requestParameters['authLoginWebRequest']),
927
+ }, initOverrides);
928
+
929
+ return new runtime.JSONApiResponse(response, (jsonValue) => UserAuthTokenResourceFromJSON(jsonValue));
930
+ }
931
+
932
+ /**
933
+ * Auto-generated: auth.login.web
934
+ */
935
+ async authLoginWeb(requestParameters: AuthLoginWebOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource> {
936
+ const response = await this.authLoginWebRaw(requestParameters, initOverrides);
937
+ return await response.value();
938
+ }
939
+
856
940
  /**
857
941
  * Auto-generated: auth.profile.update
858
942
  */
@@ -2620,46 +2704,6 @@ export class GeneralApi extends runtime.BaseAPI {
2620
2704
  return await response.value();
2621
2705
  }
2622
2706
 
2623
- /**
2624
- * Auto-generated: loginAuth
2625
- */
2626
- async loginAuthRaw(requestParameters: LoginAuthOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>> {
2627
- const queryParameters: any = {};
2628
-
2629
- const headerParameters: runtime.HTTPHeaders = {};
2630
-
2631
- headerParameters['Content-Type'] = 'application/json';
2632
-
2633
- if (this.configuration && this.configuration.accessToken) {
2634
- const token = this.configuration.accessToken;
2635
- const tokenString = await token("bearerAuth", []);
2636
-
2637
- if (tokenString) {
2638
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
2639
- }
2640
- }
2641
-
2642
- let urlPath = `/api/auth/login`;
2643
-
2644
- const response = await this.request({
2645
- path: urlPath,
2646
- method: 'POST',
2647
- headers: headerParameters,
2648
- query: queryParameters,
2649
- body: LoginAuthRequestToJSON(requestParameters['loginAuthRequest']),
2650
- }, initOverrides);
2651
-
2652
- return new runtime.JSONApiResponse(response, (jsonValue) => UserAuthTokenResourceFromJSON(jsonValue));
2653
- }
2654
-
2655
- /**
2656
- * Auto-generated: loginAuth
2657
- */
2658
- async loginAuth(requestParameters: LoginAuthOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource> {
2659
- const response = await this.loginAuthRaw(requestParameters, initOverrides);
2660
- return await response.value();
2661
- }
2662
-
2663
2707
  /**
2664
2708
  * Auto-generated: logoutAuth
2665
2709
  */
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText: string;
51
+ altText?: string | null;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -83,7 +83,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
83
83
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
84
84
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
85
85
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
86
- if (!('altText' in value) || value['altText'] === undefined) return false;
87
86
  if (!('index' in value) || value['index'] === undefined) return false;
88
87
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
89
88
  if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
@@ -104,7 +103,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
104
103
  'filePath': json['filePath'],
105
104
  'fileName': json['fileName'],
106
105
  'mimeType': json['mimeType'],
107
- 'altText': json['altText'],
106
+ 'altText': json['altText'] == null ? undefined : json['altText'],
108
107
  'index': json['index'],
109
108
  'fileId': json['fileId'],
110
109
  'isExternal': json['isExternal'],
@@ -16,37 +16,37 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface LoginAuthRequest
19
+ * @interface AuthLoginWebRequest
20
20
  */
21
- export interface LoginAuthRequest {
21
+ export interface AuthLoginWebRequest {
22
22
  /**
23
23
  *
24
24
  * @type {string}
25
- * @memberof LoginAuthRequest
25
+ * @memberof AuthLoginWebRequest
26
26
  */
27
27
  email: string;
28
28
  /**
29
29
  *
30
30
  * @type {string}
31
- * @memberof LoginAuthRequest
31
+ * @memberof AuthLoginWebRequest
32
32
  */
33
33
  password: string;
34
34
  }
35
35
 
36
36
  /**
37
- * Check if a given object implements the LoginAuthRequest interface.
37
+ * Check if a given object implements the AuthLoginWebRequest interface.
38
38
  */
39
- export function instanceOfLoginAuthRequest(value: object): value is LoginAuthRequest {
39
+ export function instanceOfAuthLoginWebRequest(value: object): value is AuthLoginWebRequest {
40
40
  if (!('email' in value) || value['email'] === undefined) return false;
41
41
  if (!('password' in value) || value['password'] === undefined) return false;
42
42
  return true;
43
43
  }
44
44
 
45
- export function LoginAuthRequestFromJSON(json: any): LoginAuthRequest {
46
- return LoginAuthRequestFromJSONTyped(json, false);
45
+ export function AuthLoginWebRequestFromJSON(json: any): AuthLoginWebRequest {
46
+ return AuthLoginWebRequestFromJSONTyped(json, false);
47
47
  }
48
48
 
49
- export function LoginAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAuthRequest {
49
+ export function AuthLoginWebRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthLoginWebRequest {
50
50
  if (json == null) {
51
51
  return json;
52
52
  }
@@ -57,11 +57,11 @@ export function LoginAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
57
57
  };
58
58
  }
59
59
 
60
- export function LoginAuthRequestToJSON(json: any): LoginAuthRequest {
61
- return LoginAuthRequestToJSONTyped(json, false);
60
+ export function AuthLoginWebRequestToJSON(json: any): AuthLoginWebRequest {
61
+ return AuthLoginWebRequestToJSONTyped(json, false);
62
62
  }
63
63
 
64
- export function LoginAuthRequestToJSONTyped(value?: LoginAuthRequest | null, ignoreDiscriminator: boolean = false): any {
64
+ export function AuthLoginWebRequestToJSONTyped(value?: AuthLoginWebRequest | null, ignoreDiscriminator: boolean = false): any {
65
65
  if (value == null) {
66
66
  return value;
67
67
  }
@@ -64,6 +64,12 @@ export interface AuthRegisterGuardRequest {
64
64
  * @memberof AuthRegisterGuardRequest
65
65
  */
66
66
  password: string;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof AuthRegisterGuardRequest
71
+ */
72
+ passwordConfirmation: string;
67
73
  /**
68
74
  *
69
75
  * @type {AuthRegisterGuardRequestProfileSignature}
@@ -87,6 +93,7 @@ export function instanceOfAuthRegisterGuardRequest(value: object): value is Auth
87
93
  if (!('email' in value) || value['email'] === undefined) return false;
88
94
  if (!('mobile' in value) || value['mobile'] === undefined) return false;
89
95
  if (!('password' in value) || value['password'] === undefined) return false;
96
+ if (!('passwordConfirmation' in value) || value['passwordConfirmation'] === undefined) return false;
90
97
  if (!('profileSignature' in value) || value['profileSignature'] === undefined) return false;
91
98
  if (!('licences' in value) || value['licences'] === undefined) return false;
92
99
  return true;
@@ -107,6 +114,7 @@ export function AuthRegisterGuardRequestFromJSONTyped(json: any, ignoreDiscrimin
107
114
  'email': json['email'],
108
115
  'mobile': json['mobile'],
109
116
  'password': json['password'],
117
+ 'passwordConfirmation': json['password_confirmation'],
110
118
  'profileSignature': AuthRegisterGuardRequestProfileSignatureFromJSON(json['profile_signature']),
111
119
  'licences': ((json['licences'] as Array<any>).map(AuthRegisterGuardRequestLicencesInnerFromJSON)),
112
120
  };
@@ -128,6 +136,7 @@ export function AuthRegisterGuardRequestToJSONTyped(value?: AuthRegisterGuardReq
128
136
  'email': value['email'],
129
137
  'mobile': value['mobile'],
130
138
  'password': value['password'],
139
+ 'password_confirmation': value['passwordConfirmation'],
131
140
  'profile_signature': AuthRegisterGuardRequestProfileSignatureToJSON(value['profileSignature']),
132
141
  'licences': ((value['licences'] as Array<any>).map(AuthRegisterGuardRequestLicencesInnerToJSON)),
133
142
  };
@@ -81,7 +81,7 @@ export interface RegisterListResource {
81
81
  * @type {string}
82
82
  * @memberof RegisterListResource
83
83
  */
84
- badgeNumber: string;
84
+ badgeNumber?: string | null;
85
85
  /**
86
86
  *
87
87
  * @type {Date}
@@ -201,7 +201,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
201
201
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
202
202
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
203
203
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
204
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
205
204
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
206
205
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
207
206
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
@@ -236,7 +235,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
236
235
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
237
236
  'shiftLength': json['shiftLength'],
238
237
  'signOffStatus': json['signOffStatus'],
239
- 'badgeNumber': json['badgeNumber'],
238
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
240
239
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
241
240
  'licenceNumber': json['licenceNumber'],
242
241
  'licenceFirstName': json['licenceFirstName'],
@@ -129,7 +129,7 @@ export interface RegisterResource {
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLong: number;
132
+ signOffLong?: number | null;
133
133
  /**
134
134
  *
135
135
  * @type {string}
@@ -159,7 +159,7 @@ export interface RegisterResource {
159
159
  * @type {string}
160
160
  * @memberof RegisterResource
161
161
  */
162
- badgeNumber: string;
162
+ badgeNumber?: string | null;
163
163
  /**
164
164
  *
165
165
  * @type {Date}
@@ -208,12 +208,10 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
208
208
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
209
209
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
210
210
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
211
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
212
211
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
213
212
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
214
213
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
215
214
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
216
- if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
217
215
  return true;
218
216
  }
219
217
 
@@ -242,12 +240,12 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
242
240
  'signOnLat': json['signOnLat'],
243
241
  'signOnLong': json['signOnLong'],
244
242
  'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
245
- 'signOffLong': json['signOffLong'],
243
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
246
244
  'licenceNumber': json['licenceNumber'],
247
245
  'licenceExpiry': json['licenceExpiry'],
248
246
  'licenceFirstName': json['licenceFirstName'],
249
247
  'licenceLastName': json['licenceLastName'],
250
- 'badgeNumber': json['badgeNumber'],
248
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
251
249
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
252
250
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
253
251
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -9,6 +9,7 @@ export * from './AssetLiteResourceArrayResponse';
9
9
  export * from './AssetResource';
10
10
  export * from './AssetResourceArrayResponse';
11
11
  export * from './AuthChangePasswordRequest';
12
+ export * from './AuthLoginWebRequest';
12
13
  export * from './AuthProfileUpdateRequest';
13
14
  export * from './AuthRegisterGuardFileRequest';
14
15
  export * from './AuthRegisterGuardRequest';
@@ -75,7 +76,6 @@ export * from './LicencesStoreRequest';
75
76
  export * from './LicencesStoreRequestBackAsset';
76
77
  export * from './LicencesUpdateRequest';
77
78
  export * from './LicencesVerifyRequest';
78
- export * from './LoginAuthRequest';
79
79
  export * from './MobileAppConfigRequest';
80
80
  export * from './MobileAppConfigResource';
81
81
  export * from './MobileAppConfigResourceArrayResponse';
@@ -1,38 +0,0 @@
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 LoginAuthRequest
16
- */
17
- export interface LoginAuthRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof LoginAuthRequest
22
- */
23
- email: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof LoginAuthRequest
28
- */
29
- password: string;
30
- }
31
- /**
32
- * Check if a given object implements the LoginAuthRequest interface.
33
- */
34
- export declare function instanceOfLoginAuthRequest(value: object): value is LoginAuthRequest;
35
- export declare function LoginAuthRequestFromJSON(json: any): LoginAuthRequest;
36
- export declare function LoginAuthRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginAuthRequest;
37
- export declare function LoginAuthRequestToJSON(json: any): LoginAuthRequest;
38
- export declare function LoginAuthRequestToJSONTyped(value?: LoginAuthRequest | null, ignoreDiscriminator?: boolean): any;