@digital8/security-registers-backend-ts-sdk 0.0.727 → 0.0.728

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/.openapi-generator/FILES +4 -3
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +14 -3
  4. package/dist/apis/GeneralApi.js +56 -1
  5. package/dist/models/IncidentVideoListResource.d.ts +63 -0
  6. package/dist/models/{RecentVideoListResource.js → IncidentVideoListResource.js} +13 -13
  7. package/dist/models/IncidentVideoListResourceArrayResponse.d.ts +33 -0
  8. package/dist/models/IncidentVideoListResourceArrayResponse.js +50 -0
  9. package/dist/models/PaginatedIncidentVideoListResourceResponse.d.ts +40 -0
  10. package/dist/models/PaginatedIncidentVideoListResourceResponse.js +57 -0
  11. package/dist/models/StoreUserRequest.d.ts +50 -0
  12. package/dist/models/StoreUserRequest.js +61 -0
  13. package/dist/models/index.d.ts +4 -3
  14. package/dist/models/index.js +4 -3
  15. package/package.json +1 -1
  16. package/src/apis/GeneralApi.ts +53 -6
  17. package/src/models/{RecentVideoListResource.ts → IncidentVideoListResource.ts} +16 -16
  18. package/src/models/IncidentVideoListResourceArrayResponse.ts +73 -0
  19. package/src/models/PaginatedIncidentVideoListResourceResponse.ts +90 -0
  20. package/src/models/StoreUserRequest.ts +92 -0
  21. package/src/models/index.ts +4 -3
  22. package/dist/models/PaginatedRecentVideoListResourceResponse.d.ts +0 -40
  23. package/dist/models/PaginatedRecentVideoListResourceResponse.js +0 -57
  24. package/dist/models/RecentVideoListResource.d.ts +0 -63
  25. package/dist/models/RecentVideoListResourceArrayResponse.d.ts +0 -33
  26. package/dist/models/RecentVideoListResourceArrayResponse.js +0 -50
  27. package/src/models/PaginatedRecentVideoListResourceResponse.ts +0 -90
  28. package/src/models/RecentVideoListResourceArrayResponse.ts +0 -73
@@ -54,6 +54,8 @@ src/models/IncidentResourceArrayResponse.ts
54
54
  src/models/IncidentSchemaType.ts
55
55
  src/models/IncidentVersionResource.ts
56
56
  src/models/IncidentVersionResourceArrayResponse.ts
57
+ src/models/IncidentVideoListResource.ts
58
+ src/models/IncidentVideoListResourceArrayResponse.ts
57
59
  src/models/IncidentVideoResource.ts
58
60
  src/models/IncidentVideoResourceArrayResponse.ts
59
61
  src/models/IncidentVideoSignedUrlResource.ts
@@ -111,10 +113,10 @@ src/models/NotificationType.ts
111
113
  src/models/NotificationTypeResource.ts
112
114
  src/models/NotificationTypeResourceArrayResponse.ts
113
115
  src/models/PaginatedIncidentListResourceResponse.ts
116
+ src/models/PaginatedIncidentVideoListResourceResponse.ts
114
117
  src/models/PaginatedLicenceCheckLogResourceResponse.ts
115
118
  src/models/PaginatedLicenceListResourceResponse.ts
116
119
  src/models/PaginatedLicenceResourceResponse.ts
117
- src/models/PaginatedRecentVideoListResourceResponse.ts
118
120
  src/models/PaginatedRegisterGroupedByRosterResourceResponse.ts
119
121
  src/models/PaginatedRegisterListResourceResponse.ts
120
122
  src/models/PaginatedRegisterResourceResponse.ts
@@ -130,8 +132,6 @@ src/models/PdfExportKind.ts
130
132
  src/models/PdfExportResource.ts
131
133
  src/models/PdfExportResourceArrayResponse.ts
132
134
  src/models/PdfExportStatus.ts
133
- src/models/RecentVideoListResource.ts
134
- src/models/RecentVideoListResourceArrayResponse.ts
135
135
  src/models/RecordSource.ts
136
136
  src/models/RegisterGroupedByRosterResource.ts
137
137
  src/models/RegisterGroupedByRosterResourceArrayResponse.ts
@@ -172,6 +172,7 @@ src/models/SecurityCompanyResource.ts
172
172
  src/models/SecurityCompanyResourceArrayResponse.ts
173
173
  src/models/SettingsLicenceVerificationFallbackUpdateRequest.ts
174
174
  src/models/SignOffStatus.ts
175
+ src/models/StoreUserRequest.ts
175
176
  src/models/UserAuthTokenResource.ts
176
177
  src/models/UserAuthTokenResourceArrayResponse.ts
177
178
  src/models/UserLiteResource.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/security-registers-backend-ts-sdk@0.0.727
1
+ ## @digital8/security-registers-backend-ts-sdk@0.0.728
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.727 --save
39
+ npm install @digital8/security-registers-backend-ts-sdk@0.0.728 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AssetFileForUploadResource, AssetsFileStoreRequest, AuthChangePasswordRequest, AuthForgotPasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, AuthResetPasswordRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentVideosRecentRequest, IncidentsApproveRequest, IncidentsEligibleOwnersRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsExportPdfRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsUpdateTitleRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRecentVideoListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SettingsLicenceVerificationFallbackUpdateRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersListAllRequest, UsersListRequest, UsersRegisterVenueManagerRequest, UsersUpdateRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGetVenuesForUserRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesSignedOnGuardsRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
13
+ import type { AssetFileForUploadResource, AssetsFileStoreRequest, AuthChangePasswordRequest, AuthForgotPasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, AuthResetPasswordRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentVideosRecentRequest, IncidentsApproveRequest, IncidentsEligibleOwnersRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsExportPdfRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsUpdateTitleRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedIncidentVideoListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SettingsLicenceVerificationFallbackUpdateRequest, StoreUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersListAllRequest, UsersListRequest, UsersRegisterVenueManagerRequest, UsersUpdateRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGetVenuesForUserRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesSignedOnGuardsRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
14
14
  export interface AssetsFileStoreOperationRequest {
15
15
  assetsFileStoreRequest?: AssetsFileStoreRequest;
16
16
  }
@@ -254,6 +254,9 @@ export interface SecurityCompaniesUpdateOperationRequest {
254
254
  export interface SettingsLicenceVerificationFallbackUpdateOperationRequest {
255
255
  settingsLicenceVerificationFallbackUpdateRequest?: SettingsLicenceVerificationFallbackUpdateRequest;
256
256
  }
257
+ export interface StoreUserOperationRequest {
258
+ storeUserRequest?: StoreUserRequest;
259
+ }
257
260
  export interface UsersAttachSecurityCompaniesOperationRequest {
258
261
  user: number;
259
262
  usersAttachSecurityCompaniesRequest?: UsersAttachSecurityCompaniesRequest;
@@ -477,11 +480,11 @@ export declare class GeneralApi extends runtime.BaseAPI {
477
480
  /**
478
481
  * Auto-generated: incidentVideos.recent
479
482
  */
480
- incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRecentVideoListResourceResponse>>;
483
+ incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIncidentVideoListResourceResponse>>;
481
484
  /**
482
485
  * Auto-generated: incidentVideos.recent
483
486
  */
484
- incidentVideosRecent(requestParameters?: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRecentVideoListResourceResponse>;
487
+ incidentVideosRecent(requestParameters?: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIncidentVideoListResourceResponse>;
485
488
  /**
486
489
  * Auto-generated: incidents.approve
487
490
  */
@@ -1010,6 +1013,14 @@ export declare class GeneralApi extends runtime.BaseAPI {
1010
1013
  * Auto-generated: settings.licenceVerificationFallback.update
1011
1014
  */
1012
1015
  settingsLicenceVerificationFallbackUpdate(requestParameters?: SettingsLicenceVerificationFallbackUpdateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LicenceVerificationFallbackSettingResourceArrayResponse>;
1016
+ /**
1017
+ * Auto-generated: storeUser
1018
+ */
1019
+ storeUserRaw(requestParameters: StoreUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResource>>;
1020
+ /**
1021
+ * Auto-generated: storeUser
1022
+ */
1023
+ storeUser(requestParameters?: StoreUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResource>;
1013
1024
  /**
1014
1025
  * Auto-generated: users.attachSecurityCompanies
1015
1026
  */
@@ -872,7 +872,7 @@ var GeneralApi = /** @class */ (function (_super) {
872
872
  }, initOverrides)];
873
873
  case 3:
874
874
  response = _a.sent();
875
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedRecentVideoListResourceResponseFromJSON)(jsonValue); })];
875
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedIncidentVideoListResourceResponseFromJSON)(jsonValue); })];
876
876
  }
877
877
  });
878
878
  });
@@ -4594,6 +4594,61 @@ var GeneralApi = /** @class */ (function (_super) {
4594
4594
  });
4595
4595
  });
4596
4596
  };
4597
+ /**
4598
+ * Auto-generated: storeUser
4599
+ */
4600
+ GeneralApi.prototype.storeUserRaw = function (requestParameters, initOverrides) {
4601
+ return __awaiter(this, void 0, void 0, function () {
4602
+ var queryParameters, headerParameters, token, tokenString, urlPath, response;
4603
+ return __generator(this, function (_a) {
4604
+ switch (_a.label) {
4605
+ case 0:
4606
+ queryParameters = {};
4607
+ headerParameters = {};
4608
+ headerParameters['Content-Type'] = 'application/json';
4609
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
4610
+ token = this.configuration.accessToken;
4611
+ return [4 /*yield*/, token("bearerAuth", [])];
4612
+ case 1:
4613
+ tokenString = _a.sent();
4614
+ if (tokenString) {
4615
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
4616
+ }
4617
+ _a.label = 2;
4618
+ case 2:
4619
+ urlPath = "/api/auth/register";
4620
+ return [4 /*yield*/, this.request({
4621
+ path: urlPath,
4622
+ method: 'POST',
4623
+ headers: headerParameters,
4624
+ query: queryParameters,
4625
+ body: (0, index_1.StoreUserRequestToJSON)(requestParameters['storeUserRequest']),
4626
+ }, initOverrides)];
4627
+ case 3:
4628
+ response = _a.sent();
4629
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserResourceFromJSON)(jsonValue); })];
4630
+ }
4631
+ });
4632
+ });
4633
+ };
4634
+ /**
4635
+ * Auto-generated: storeUser
4636
+ */
4637
+ GeneralApi.prototype.storeUser = function () {
4638
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
4639
+ var response;
4640
+ if (requestParameters === void 0) { requestParameters = {}; }
4641
+ return __generator(this, function (_a) {
4642
+ switch (_a.label) {
4643
+ case 0: return [4 /*yield*/, this.storeUserRaw(requestParameters, initOverrides)];
4644
+ case 1:
4645
+ response = _a.sent();
4646
+ return [4 /*yield*/, response.value()];
4647
+ case 2: return [2 /*return*/, _a.sent()];
4648
+ }
4649
+ });
4650
+ });
4651
+ };
4597
4652
  /**
4598
4653
  * Auto-generated: users.attachSecurityCompanies
4599
4654
  */
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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
+ import type { VenueLiteResource } from './VenueLiteResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IncidentVideoListResource
17
+ */
18
+ export interface IncidentVideoListResource {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof IncidentVideoListResource
23
+ */
24
+ id?: number | null;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof IncidentVideoListResource
29
+ */
30
+ incidentId?: number | null;
31
+ /**
32
+ *
33
+ * @type {VenueLiteResource}
34
+ * @memberof IncidentVideoListResource
35
+ */
36
+ venue: VenueLiteResource | null;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof IncidentVideoListResource
41
+ */
42
+ originalFilename: string;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof IncidentVideoListResource
47
+ */
48
+ sizeBytes: number;
49
+ /**
50
+ *
51
+ * @type {Date}
52
+ * @memberof IncidentVideoListResource
53
+ */
54
+ createdAt?: Date | null;
55
+ }
56
+ /**
57
+ * Check if a given object implements the IncidentVideoListResource interface.
58
+ */
59
+ export declare function instanceOfIncidentVideoListResource(value: object): value is IncidentVideoListResource;
60
+ export declare function IncidentVideoListResourceFromJSON(json: any): IncidentVideoListResource;
61
+ export declare function IncidentVideoListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoListResource;
62
+ export declare function IncidentVideoListResourceToJSON(json: any): IncidentVideoListResource;
63
+ export declare function IncidentVideoListResourceToJSONTyped(value?: IncidentVideoListResource | null, ignoreDiscriminator?: boolean): any;
@@ -13,16 +13,16 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfRecentVideoListResource = instanceOfRecentVideoListResource;
17
- exports.RecentVideoListResourceFromJSON = RecentVideoListResourceFromJSON;
18
- exports.RecentVideoListResourceFromJSONTyped = RecentVideoListResourceFromJSONTyped;
19
- exports.RecentVideoListResourceToJSON = RecentVideoListResourceToJSON;
20
- exports.RecentVideoListResourceToJSONTyped = RecentVideoListResourceToJSONTyped;
16
+ exports.instanceOfIncidentVideoListResource = instanceOfIncidentVideoListResource;
17
+ exports.IncidentVideoListResourceFromJSON = IncidentVideoListResourceFromJSON;
18
+ exports.IncidentVideoListResourceFromJSONTyped = IncidentVideoListResourceFromJSONTyped;
19
+ exports.IncidentVideoListResourceToJSON = IncidentVideoListResourceToJSON;
20
+ exports.IncidentVideoListResourceToJSONTyped = IncidentVideoListResourceToJSONTyped;
21
21
  var VenueLiteResource_1 = require("./VenueLiteResource");
22
22
  /**
23
- * Check if a given object implements the RecentVideoListResource interface.
23
+ * Check if a given object implements the IncidentVideoListResource interface.
24
24
  */
25
- function instanceOfRecentVideoListResource(value) {
25
+ function instanceOfIncidentVideoListResource(value) {
26
26
  if (!('venue' in value) || value['venue'] === undefined)
27
27
  return false;
28
28
  if (!('originalFilename' in value) || value['originalFilename'] === undefined)
@@ -31,10 +31,10 @@ function instanceOfRecentVideoListResource(value) {
31
31
  return false;
32
32
  return true;
33
33
  }
34
- function RecentVideoListResourceFromJSON(json) {
35
- return RecentVideoListResourceFromJSONTyped(json, false);
34
+ function IncidentVideoListResourceFromJSON(json) {
35
+ return IncidentVideoListResourceFromJSONTyped(json, false);
36
36
  }
37
- function RecentVideoListResourceFromJSONTyped(json, ignoreDiscriminator) {
37
+ function IncidentVideoListResourceFromJSONTyped(json, ignoreDiscriminator) {
38
38
  if (json == null) {
39
39
  return json;
40
40
  }
@@ -47,10 +47,10 @@ function RecentVideoListResourceFromJSONTyped(json, ignoreDiscriminator) {
47
47
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
48
48
  };
49
49
  }
50
- function RecentVideoListResourceToJSON(json) {
51
- return RecentVideoListResourceToJSONTyped(json, false);
50
+ function IncidentVideoListResourceToJSON(json) {
51
+ return IncidentVideoListResourceToJSONTyped(json, false);
52
52
  }
53
- function RecentVideoListResourceToJSONTyped(value, ignoreDiscriminator) {
53
+ function IncidentVideoListResourceToJSONTyped(value, ignoreDiscriminator) {
54
54
  var _a;
55
55
  if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
56
  if (value == null) {
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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
+ import type { IncidentVideoListResource } from './IncidentVideoListResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface IncidentVideoListResourceArrayResponse
17
+ */
18
+ export interface IncidentVideoListResourceArrayResponse {
19
+ /**
20
+ *
21
+ * @type {Array<IncidentVideoListResource>}
22
+ * @memberof IncidentVideoListResourceArrayResponse
23
+ */
24
+ data?: Array<IncidentVideoListResource>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the IncidentVideoListResourceArrayResponse interface.
28
+ */
29
+ export declare function instanceOfIncidentVideoListResourceArrayResponse(value: object): value is IncidentVideoListResourceArrayResponse;
30
+ export declare function IncidentVideoListResourceArrayResponseFromJSON(json: any): IncidentVideoListResourceArrayResponse;
31
+ export declare function IncidentVideoListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoListResourceArrayResponse;
32
+ export declare function IncidentVideoListResourceArrayResponseToJSON(json: any): IncidentVideoListResourceArrayResponse;
33
+ export declare function IncidentVideoListResourceArrayResponseToJSONTyped(value?: IncidentVideoListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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.instanceOfIncidentVideoListResourceArrayResponse = instanceOfIncidentVideoListResourceArrayResponse;
17
+ exports.IncidentVideoListResourceArrayResponseFromJSON = IncidentVideoListResourceArrayResponseFromJSON;
18
+ exports.IncidentVideoListResourceArrayResponseFromJSONTyped = IncidentVideoListResourceArrayResponseFromJSONTyped;
19
+ exports.IncidentVideoListResourceArrayResponseToJSON = IncidentVideoListResourceArrayResponseToJSON;
20
+ exports.IncidentVideoListResourceArrayResponseToJSONTyped = IncidentVideoListResourceArrayResponseToJSONTyped;
21
+ var IncidentVideoListResource_1 = require("./IncidentVideoListResource");
22
+ /**
23
+ * Check if a given object implements the IncidentVideoListResourceArrayResponse interface.
24
+ */
25
+ function instanceOfIncidentVideoListResourceArrayResponse(value) {
26
+ return true;
27
+ }
28
+ function IncidentVideoListResourceArrayResponseFromJSON(json) {
29
+ return IncidentVideoListResourceArrayResponseFromJSONTyped(json, false);
30
+ }
31
+ function IncidentVideoListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'data': json['data'] == null ? undefined : (json['data'].map(IncidentVideoListResource_1.IncidentVideoListResourceFromJSON)),
37
+ };
38
+ }
39
+ function IncidentVideoListResourceArrayResponseToJSON(json) {
40
+ return IncidentVideoListResourceArrayResponseToJSONTyped(json, false);
41
+ }
42
+ function IncidentVideoListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'data': value['data'] == null ? undefined : (value['data'].map(IncidentVideoListResource_1.IncidentVideoListResourceToJSON)),
49
+ };
50
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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
+ import type { PagingMetadata } from './PagingMetadata';
13
+ import type { IncidentVideoListResource } from './IncidentVideoListResource';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedIncidentVideoListResourceResponse
18
+ */
19
+ export interface PaginatedIncidentVideoListResourceResponse {
20
+ /**
21
+ *
22
+ * @type {Array<IncidentVideoListResource>}
23
+ * @memberof PaginatedIncidentVideoListResourceResponse
24
+ */
25
+ data: Array<IncidentVideoListResource>;
26
+ /**
27
+ *
28
+ * @type {PagingMetadata}
29
+ * @memberof PaginatedIncidentVideoListResourceResponse
30
+ */
31
+ meta: PagingMetadata;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedIncidentVideoListResourceResponse interface.
35
+ */
36
+ export declare function instanceOfPaginatedIncidentVideoListResourceResponse(value: object): value is PaginatedIncidentVideoListResourceResponse;
37
+ export declare function PaginatedIncidentVideoListResourceResponseFromJSON(json: any): PaginatedIncidentVideoListResourceResponse;
38
+ export declare function PaginatedIncidentVideoListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedIncidentVideoListResourceResponse;
39
+ export declare function PaginatedIncidentVideoListResourceResponseToJSON(json: any): PaginatedIncidentVideoListResourceResponse;
40
+ export declare function PaginatedIncidentVideoListResourceResponseToJSONTyped(value?: PaginatedIncidentVideoListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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.instanceOfPaginatedIncidentVideoListResourceResponse = instanceOfPaginatedIncidentVideoListResourceResponse;
17
+ exports.PaginatedIncidentVideoListResourceResponseFromJSON = PaginatedIncidentVideoListResourceResponseFromJSON;
18
+ exports.PaginatedIncidentVideoListResourceResponseFromJSONTyped = PaginatedIncidentVideoListResourceResponseFromJSONTyped;
19
+ exports.PaginatedIncidentVideoListResourceResponseToJSON = PaginatedIncidentVideoListResourceResponseToJSON;
20
+ exports.PaginatedIncidentVideoListResourceResponseToJSONTyped = PaginatedIncidentVideoListResourceResponseToJSONTyped;
21
+ var PagingMetadata_1 = require("./PagingMetadata");
22
+ var IncidentVideoListResource_1 = require("./IncidentVideoListResource");
23
+ /**
24
+ * Check if a given object implements the PaginatedIncidentVideoListResourceResponse interface.
25
+ */
26
+ function instanceOfPaginatedIncidentVideoListResourceResponse(value) {
27
+ if (!('data' in value) || value['data'] === undefined)
28
+ return false;
29
+ if (!('meta' in value) || value['meta'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaginatedIncidentVideoListResourceResponseFromJSON(json) {
34
+ return PaginatedIncidentVideoListResourceResponseFromJSONTyped(json, false);
35
+ }
36
+ function PaginatedIncidentVideoListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'data': (json['data'].map(IncidentVideoListResource_1.IncidentVideoListResourceFromJSON)),
42
+ 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
+ };
44
+ }
45
+ function PaginatedIncidentVideoListResourceResponseToJSON(json) {
46
+ return PaginatedIncidentVideoListResourceResponseToJSONTyped(json, false);
47
+ }
48
+ function PaginatedIncidentVideoListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'data': (value['data'].map(IncidentVideoListResource_1.IncidentVideoListResourceToJSON)),
55
+ 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
+ };
57
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Security Registers API
3
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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 StoreUserRequest
16
+ */
17
+ export interface StoreUserRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StoreUserRequest
22
+ */
23
+ firstName: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof StoreUserRequest
28
+ */
29
+ lastName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof StoreUserRequest
34
+ */
35
+ email: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof StoreUserRequest
40
+ */
41
+ mobile?: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the StoreUserRequest interface.
45
+ */
46
+ export declare function instanceOfStoreUserRequest(value: object): value is StoreUserRequest;
47
+ export declare function StoreUserRequestFromJSON(json: any): StoreUserRequest;
48
+ export declare function StoreUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreUserRequest;
49
+ export declare function StoreUserRequestToJSON(json: any): StoreUserRequest;
50
+ export declare function StoreUserRequestToJSONTyped(value?: StoreUserRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Security Registers API
6
+ * API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
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.instanceOfStoreUserRequest = instanceOfStoreUserRequest;
17
+ exports.StoreUserRequestFromJSON = StoreUserRequestFromJSON;
18
+ exports.StoreUserRequestFromJSONTyped = StoreUserRequestFromJSONTyped;
19
+ exports.StoreUserRequestToJSON = StoreUserRequestToJSON;
20
+ exports.StoreUserRequestToJSONTyped = StoreUserRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StoreUserRequest interface.
23
+ */
24
+ function instanceOfStoreUserRequest(value) {
25
+ if (!('firstName' in value) || value['firstName'] === undefined)
26
+ return false;
27
+ if (!('lastName' in value) || value['lastName'] === undefined)
28
+ return false;
29
+ if (!('email' in value) || value['email'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function StoreUserRequestFromJSON(json) {
34
+ return StoreUserRequestFromJSONTyped(json, false);
35
+ }
36
+ function StoreUserRequestFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'firstName': json['first_name'],
42
+ 'lastName': json['last_name'],
43
+ 'email': json['email'],
44
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
45
+ };
46
+ }
47
+ function StoreUserRequestToJSON(json) {
48
+ return StoreUserRequestToJSONTyped(json, false);
49
+ }
50
+ function StoreUserRequestToJSONTyped(value, ignoreDiscriminator) {
51
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'first_name': value['firstName'],
57
+ 'last_name': value['lastName'],
58
+ 'email': value['email'],
59
+ 'mobile': value['mobile'],
60
+ };
61
+ }
@@ -46,6 +46,8 @@ export * from './IncidentResourceArrayResponse';
46
46
  export * from './IncidentSchemaType';
47
47
  export * from './IncidentVersionResource';
48
48
  export * from './IncidentVersionResourceArrayResponse';
49
+ export * from './IncidentVideoListResource';
50
+ export * from './IncidentVideoListResourceArrayResponse';
49
51
  export * from './IncidentVideoResource';
50
52
  export * from './IncidentVideoResourceArrayResponse';
51
53
  export * from './IncidentVideoSignedUrlResource';
@@ -103,10 +105,10 @@ export * from './NotificationType';
103
105
  export * from './NotificationTypeResource';
104
106
  export * from './NotificationTypeResourceArrayResponse';
105
107
  export * from './PaginatedIncidentListResourceResponse';
108
+ export * from './PaginatedIncidentVideoListResourceResponse';
106
109
  export * from './PaginatedLicenceCheckLogResourceResponse';
107
110
  export * from './PaginatedLicenceListResourceResponse';
108
111
  export * from './PaginatedLicenceResourceResponse';
109
- export * from './PaginatedRecentVideoListResourceResponse';
110
112
  export * from './PaginatedRegisterGroupedByRosterResourceResponse';
111
113
  export * from './PaginatedRegisterListResourceResponse';
112
114
  export * from './PaginatedRegisterResourceResponse';
@@ -122,8 +124,6 @@ export * from './PdfExportKind';
122
124
  export * from './PdfExportResource';
123
125
  export * from './PdfExportResourceArrayResponse';
124
126
  export * from './PdfExportStatus';
125
- export * from './RecentVideoListResource';
126
- export * from './RecentVideoListResourceArrayResponse';
127
127
  export * from './RecordSource';
128
128
  export * from './RegisterGroupedByRosterResource';
129
129
  export * from './RegisterGroupedByRosterResourceArrayResponse';
@@ -164,6 +164,7 @@ export * from './SecurityCompanyResource';
164
164
  export * from './SecurityCompanyResourceArrayResponse';
165
165
  export * from './SettingsLicenceVerificationFallbackUpdateRequest';
166
166
  export * from './SignOffStatus';
167
+ export * from './StoreUserRequest';
167
168
  export * from './UserAuthTokenResource';
168
169
  export * from './UserAuthTokenResourceArrayResponse';
169
170
  export * from './UserLiteResource';