@digital8/security-registers-backend-ts-sdk 0.0.730 → 0.0.732
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 +3 -3
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +3 -3
- package/dist/apis/GeneralApi.js +1 -1
- package/dist/models/PaginatedRecentVideoListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedRecentVideoListResourceResponse.js +57 -0
- package/dist/models/RecentVideoListResource.d.ts +63 -0
- package/dist/models/{IncidentVideoListResource.js → RecentVideoListResource.js} +13 -13
- package/dist/models/RecentVideoListResourceArrayResponse.d.ts +33 -0
- package/dist/models/RecentVideoListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +3 -3
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +6 -6
- package/src/models/PaginatedRecentVideoListResourceResponse.ts +90 -0
- package/src/models/{IncidentVideoListResource.ts → RecentVideoListResource.ts} +16 -16
- package/src/models/RecentVideoListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +3 -3
- package/dist/models/IncidentVideoListResource.d.ts +0 -63
- package/dist/models/IncidentVideoListResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVideoListResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedIncidentVideoListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedIncidentVideoListResourceResponse.js +0 -57
- package/src/models/IncidentVideoListResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedIncidentVideoListResourceResponse.ts +0 -90
package/.openapi-generator/FILES
CHANGED
|
@@ -54,8 +54,6 @@ 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
|
|
59
57
|
src/models/IncidentVideoResource.ts
|
|
60
58
|
src/models/IncidentVideoResourceArrayResponse.ts
|
|
61
59
|
src/models/IncidentVideoSignedUrlResource.ts
|
|
@@ -113,10 +111,10 @@ src/models/NotificationType.ts
|
|
|
113
111
|
src/models/NotificationTypeResource.ts
|
|
114
112
|
src/models/NotificationTypeResourceArrayResponse.ts
|
|
115
113
|
src/models/PaginatedIncidentListResourceResponse.ts
|
|
116
|
-
src/models/PaginatedIncidentVideoListResourceResponse.ts
|
|
117
114
|
src/models/PaginatedLicenceCheckLogResourceResponse.ts
|
|
118
115
|
src/models/PaginatedLicenceListResourceResponse.ts
|
|
119
116
|
src/models/PaginatedLicenceResourceResponse.ts
|
|
117
|
+
src/models/PaginatedRecentVideoListResourceResponse.ts
|
|
120
118
|
src/models/PaginatedRegisterGroupedByRosterResourceResponse.ts
|
|
121
119
|
src/models/PaginatedRegisterListResourceResponse.ts
|
|
122
120
|
src/models/PaginatedRegisterResourceResponse.ts
|
|
@@ -132,6 +130,8 @@ src/models/PdfExportKind.ts
|
|
|
132
130
|
src/models/PdfExportResource.ts
|
|
133
131
|
src/models/PdfExportResourceArrayResponse.ts
|
|
134
132
|
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
|
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.732
|
|
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.732 --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,
|
|
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, 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
|
}
|
|
@@ -480,11 +480,11 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
480
480
|
/**
|
|
481
481
|
* Auto-generated: incidentVideos.recent
|
|
482
482
|
*/
|
|
483
|
-
incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
483
|
+
incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRecentVideoListResourceResponse>>;
|
|
484
484
|
/**
|
|
485
485
|
* Auto-generated: incidentVideos.recent
|
|
486
486
|
*/
|
|
487
|
-
incidentVideosRecent(requestParameters?: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
487
|
+
incidentVideosRecent(requestParameters?: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRecentVideoListResourceResponse>;
|
|
488
488
|
/**
|
|
489
489
|
* Auto-generated: incidents.approve
|
|
490
490
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -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.
|
|
875
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedRecentVideoListResourceResponseFromJSON)(jsonValue); })];
|
|
876
876
|
}
|
|
877
877
|
});
|
|
878
878
|
});
|
|
@@ -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 { RecentVideoListResource } from './RecentVideoListResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedRecentVideoListResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedRecentVideoListResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<RecentVideoListResource>}
|
|
23
|
+
* @memberof PaginatedRecentVideoListResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<RecentVideoListResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedRecentVideoListResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedRecentVideoListResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedRecentVideoListResourceResponse(value: object): value is PaginatedRecentVideoListResourceResponse;
|
|
37
|
+
export declare function PaginatedRecentVideoListResourceResponseFromJSON(json: any): PaginatedRecentVideoListResourceResponse;
|
|
38
|
+
export declare function PaginatedRecentVideoListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecentVideoListResourceResponse;
|
|
39
|
+
export declare function PaginatedRecentVideoListResourceResponseToJSON(json: any): PaginatedRecentVideoListResourceResponse;
|
|
40
|
+
export declare function PaginatedRecentVideoListResourceResponseToJSONTyped(value?: PaginatedRecentVideoListResourceResponse | 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.instanceOfPaginatedRecentVideoListResourceResponse = instanceOfPaginatedRecentVideoListResourceResponse;
|
|
17
|
+
exports.PaginatedRecentVideoListResourceResponseFromJSON = PaginatedRecentVideoListResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedRecentVideoListResourceResponseFromJSONTyped = PaginatedRecentVideoListResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedRecentVideoListResourceResponseToJSON = PaginatedRecentVideoListResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedRecentVideoListResourceResponseToJSONTyped = PaginatedRecentVideoListResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var RecentVideoListResource_1 = require("./RecentVideoListResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedRecentVideoListResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedRecentVideoListResourceResponse(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 PaginatedRecentVideoListResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedRecentVideoListResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedRecentVideoListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(RecentVideoListResource_1.RecentVideoListResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedRecentVideoListResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedRecentVideoListResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedRecentVideoListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(RecentVideoListResource_1.RecentVideoListResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -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 RecentVideoListResource
|
|
17
|
+
*/
|
|
18
|
+
export interface RecentVideoListResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof RecentVideoListResource
|
|
23
|
+
*/
|
|
24
|
+
id?: number | null;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof RecentVideoListResource
|
|
29
|
+
*/
|
|
30
|
+
incidentId?: number | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {VenueLiteResource}
|
|
34
|
+
* @memberof RecentVideoListResource
|
|
35
|
+
*/
|
|
36
|
+
venue: VenueLiteResource | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof RecentVideoListResource
|
|
41
|
+
*/
|
|
42
|
+
originalFilename: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof RecentVideoListResource
|
|
47
|
+
*/
|
|
48
|
+
sizeBytes: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof RecentVideoListResource
|
|
53
|
+
*/
|
|
54
|
+
createdAt?: Date | null;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the RecentVideoListResource interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfRecentVideoListResource(value: object): value is RecentVideoListResource;
|
|
60
|
+
export declare function RecentVideoListResourceFromJSON(json: any): RecentVideoListResource;
|
|
61
|
+
export declare function RecentVideoListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentVideoListResource;
|
|
62
|
+
export declare function RecentVideoListResourceToJSON(json: any): RecentVideoListResource;
|
|
63
|
+
export declare function RecentVideoListResourceToJSONTyped(value?: RecentVideoListResource | 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.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfRecentVideoListResource = instanceOfRecentVideoListResource;
|
|
17
|
+
exports.RecentVideoListResourceFromJSON = RecentVideoListResourceFromJSON;
|
|
18
|
+
exports.RecentVideoListResourceFromJSONTyped = RecentVideoListResourceFromJSONTyped;
|
|
19
|
+
exports.RecentVideoListResourceToJSON = RecentVideoListResourceToJSON;
|
|
20
|
+
exports.RecentVideoListResourceToJSONTyped = RecentVideoListResourceToJSONTyped;
|
|
21
21
|
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
22
|
/**
|
|
23
|
-
* Check if a given object implements the
|
|
23
|
+
* Check if a given object implements the RecentVideoListResource interface.
|
|
24
24
|
*/
|
|
25
|
-
function
|
|
25
|
+
function instanceOfRecentVideoListResource(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 instanceOfIncidentVideoListResource(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
return true;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return
|
|
34
|
+
function RecentVideoListResourceFromJSON(json) {
|
|
35
|
+
return RecentVideoListResourceFromJSONTyped(json, false);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function RecentVideoListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
38
|
if (json == null) {
|
|
39
39
|
return json;
|
|
40
40
|
}
|
|
@@ -47,10 +47,10 @@ function IncidentVideoListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function RecentVideoListResourceToJSON(json) {
|
|
51
|
+
return RecentVideoListResourceToJSONTyped(json, false);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function RecentVideoListResourceToJSONTyped(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 { RecentVideoListResource } from './RecentVideoListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface RecentVideoListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface RecentVideoListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<RecentVideoListResource>}
|
|
22
|
+
* @memberof RecentVideoListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<RecentVideoListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the RecentVideoListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfRecentVideoListResourceArrayResponse(value: object): value is RecentVideoListResourceArrayResponse;
|
|
30
|
+
export declare function RecentVideoListResourceArrayResponseFromJSON(json: any): RecentVideoListResourceArrayResponse;
|
|
31
|
+
export declare function RecentVideoListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentVideoListResourceArrayResponse;
|
|
32
|
+
export declare function RecentVideoListResourceArrayResponseToJSON(json: any): RecentVideoListResourceArrayResponse;
|
|
33
|
+
export declare function RecentVideoListResourceArrayResponseToJSONTyped(value?: RecentVideoListResourceArrayResponse | 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.instanceOfRecentVideoListResourceArrayResponse = instanceOfRecentVideoListResourceArrayResponse;
|
|
17
|
+
exports.RecentVideoListResourceArrayResponseFromJSON = RecentVideoListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.RecentVideoListResourceArrayResponseFromJSONTyped = RecentVideoListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.RecentVideoListResourceArrayResponseToJSON = RecentVideoListResourceArrayResponseToJSON;
|
|
20
|
+
exports.RecentVideoListResourceArrayResponseToJSONTyped = RecentVideoListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var RecentVideoListResource_1 = require("./RecentVideoListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the RecentVideoListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfRecentVideoListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function RecentVideoListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return RecentVideoListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function RecentVideoListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(RecentVideoListResource_1.RecentVideoListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function RecentVideoListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return RecentVideoListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function RecentVideoListResourceArrayResponseToJSONTyped(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(RecentVideoListResource_1.RecentVideoListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -46,8 +46,6 @@ 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';
|
|
51
49
|
export * from './IncidentVideoResource';
|
|
52
50
|
export * from './IncidentVideoResourceArrayResponse';
|
|
53
51
|
export * from './IncidentVideoSignedUrlResource';
|
|
@@ -105,10 +103,10 @@ export * from './NotificationType';
|
|
|
105
103
|
export * from './NotificationTypeResource';
|
|
106
104
|
export * from './NotificationTypeResourceArrayResponse';
|
|
107
105
|
export * from './PaginatedIncidentListResourceResponse';
|
|
108
|
-
export * from './PaginatedIncidentVideoListResourceResponse';
|
|
109
106
|
export * from './PaginatedLicenceCheckLogResourceResponse';
|
|
110
107
|
export * from './PaginatedLicenceListResourceResponse';
|
|
111
108
|
export * from './PaginatedLicenceResourceResponse';
|
|
109
|
+
export * from './PaginatedRecentVideoListResourceResponse';
|
|
112
110
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
|
113
111
|
export * from './PaginatedRegisterListResourceResponse';
|
|
114
112
|
export * from './PaginatedRegisterResourceResponse';
|
|
@@ -124,6 +122,8 @@ export * from './PdfExportKind';
|
|
|
124
122
|
export * from './PdfExportResource';
|
|
125
123
|
export * from './PdfExportResourceArrayResponse';
|
|
126
124
|
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';
|
package/dist/models/index.js
CHANGED
|
@@ -64,8 +64,6 @@ __exportStar(require("./IncidentResourceArrayResponse"), exports);
|
|
|
64
64
|
__exportStar(require("./IncidentSchemaType"), exports);
|
|
65
65
|
__exportStar(require("./IncidentVersionResource"), exports);
|
|
66
66
|
__exportStar(require("./IncidentVersionResourceArrayResponse"), exports);
|
|
67
|
-
__exportStar(require("./IncidentVideoListResource"), exports);
|
|
68
|
-
__exportStar(require("./IncidentVideoListResourceArrayResponse"), exports);
|
|
69
67
|
__exportStar(require("./IncidentVideoResource"), exports);
|
|
70
68
|
__exportStar(require("./IncidentVideoResourceArrayResponse"), exports);
|
|
71
69
|
__exportStar(require("./IncidentVideoSignedUrlResource"), exports);
|
|
@@ -123,10 +121,10 @@ __exportStar(require("./NotificationType"), exports);
|
|
|
123
121
|
__exportStar(require("./NotificationTypeResource"), exports);
|
|
124
122
|
__exportStar(require("./NotificationTypeResourceArrayResponse"), exports);
|
|
125
123
|
__exportStar(require("./PaginatedIncidentListResourceResponse"), exports);
|
|
126
|
-
__exportStar(require("./PaginatedIncidentVideoListResourceResponse"), exports);
|
|
127
124
|
__exportStar(require("./PaginatedLicenceCheckLogResourceResponse"), exports);
|
|
128
125
|
__exportStar(require("./PaginatedLicenceListResourceResponse"), exports);
|
|
129
126
|
__exportStar(require("./PaginatedLicenceResourceResponse"), exports);
|
|
127
|
+
__exportStar(require("./PaginatedRecentVideoListResourceResponse"), exports);
|
|
130
128
|
__exportStar(require("./PaginatedRegisterGroupedByRosterResourceResponse"), exports);
|
|
131
129
|
__exportStar(require("./PaginatedRegisterListResourceResponse"), exports);
|
|
132
130
|
__exportStar(require("./PaginatedRegisterResourceResponse"), exports);
|
|
@@ -142,6 +140,8 @@ __exportStar(require("./PdfExportKind"), exports);
|
|
|
142
140
|
__exportStar(require("./PdfExportResource"), exports);
|
|
143
141
|
__exportStar(require("./PdfExportResourceArrayResponse"), exports);
|
|
144
142
|
__exportStar(require("./PdfExportStatus"), exports);
|
|
143
|
+
__exportStar(require("./RecentVideoListResource"), exports);
|
|
144
|
+
__exportStar(require("./RecentVideoListResourceArrayResponse"), exports);
|
|
145
145
|
__exportStar(require("./RecordSource"), exports);
|
|
146
146
|
__exportStar(require("./RegisterGroupedByRosterResource"), exports);
|
|
147
147
|
__exportStar(require("./RegisterGroupedByRosterResourceArrayResponse"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -67,9 +67,9 @@ import type {
|
|
|
67
67
|
NotificationPreferencesStoreRequest,
|
|
68
68
|
NotificationTypeResourceArrayResponse,
|
|
69
69
|
PaginatedIncidentListResourceResponse,
|
|
70
|
-
PaginatedIncidentVideoListResourceResponse,
|
|
71
70
|
PaginatedLicenceCheckLogResourceResponse,
|
|
72
71
|
PaginatedLicenceListResourceResponse,
|
|
72
|
+
PaginatedRecentVideoListResourceResponse,
|
|
73
73
|
PaginatedRegisterGroupedByRosterResourceResponse,
|
|
74
74
|
PaginatedRosterListResourceResponse,
|
|
75
75
|
PaginatedRosterWithRegistersResourceResponse,
|
|
@@ -233,12 +233,12 @@ import {
|
|
|
233
233
|
NotificationTypeResourceArrayResponseToJSON,
|
|
234
234
|
PaginatedIncidentListResourceResponseFromJSON,
|
|
235
235
|
PaginatedIncidentListResourceResponseToJSON,
|
|
236
|
-
PaginatedIncidentVideoListResourceResponseFromJSON,
|
|
237
|
-
PaginatedIncidentVideoListResourceResponseToJSON,
|
|
238
236
|
PaginatedLicenceCheckLogResourceResponseFromJSON,
|
|
239
237
|
PaginatedLicenceCheckLogResourceResponseToJSON,
|
|
240
238
|
PaginatedLicenceListResourceResponseFromJSON,
|
|
241
239
|
PaginatedLicenceListResourceResponseToJSON,
|
|
240
|
+
PaginatedRecentVideoListResourceResponseFromJSON,
|
|
241
|
+
PaginatedRecentVideoListResourceResponseToJSON,
|
|
242
242
|
PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
|
|
243
243
|
PaginatedRegisterGroupedByRosterResourceResponseToJSON,
|
|
244
244
|
PaginatedRosterListResourceResponseFromJSON,
|
|
@@ -1379,7 +1379,7 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1379
1379
|
/**
|
|
1380
1380
|
* Auto-generated: incidentVideos.recent
|
|
1381
1381
|
*/
|
|
1382
|
-
async incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
1382
|
+
async incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRecentVideoListResourceResponse>> {
|
|
1383
1383
|
const queryParameters: any = {};
|
|
1384
1384
|
|
|
1385
1385
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -1405,13 +1405,13 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1405
1405
|
body: IncidentVideosRecentRequestToJSON(requestParameters['incidentVideosRecentRequest']),
|
|
1406
1406
|
}, initOverrides);
|
|
1407
1407
|
|
|
1408
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1408
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRecentVideoListResourceResponseFromJSON(jsonValue));
|
|
1409
1409
|
}
|
|
1410
1410
|
|
|
1411
1411
|
/**
|
|
1412
1412
|
* Auto-generated: incidentVideos.recent
|
|
1413
1413
|
*/
|
|
1414
|
-
async incidentVideosRecent(requestParameters: IncidentVideosRecentOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
1414
|
+
async incidentVideosRecent(requestParameters: IncidentVideosRecentOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRecentVideoListResourceResponse> {
|
|
1415
1415
|
const response = await this.incidentVideosRecentRaw(requestParameters, initOverrides);
|
|
1416
1416
|
return await response.value();
|
|
1417
1417
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Security Registers API
|
|
5
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { RecentVideoListResource } from './RecentVideoListResource';
|
|
24
|
+
import {
|
|
25
|
+
RecentVideoListResourceFromJSON,
|
|
26
|
+
RecentVideoListResourceFromJSONTyped,
|
|
27
|
+
RecentVideoListResourceToJSON,
|
|
28
|
+
RecentVideoListResourceToJSONTyped,
|
|
29
|
+
} from './RecentVideoListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedRecentVideoListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedRecentVideoListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<RecentVideoListResource>}
|
|
40
|
+
* @memberof PaginatedRecentVideoListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<RecentVideoListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedRecentVideoListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedRecentVideoListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedRecentVideoListResourceResponse(value: object): value is PaginatedRecentVideoListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedRecentVideoListResourceResponseFromJSON(json: any): PaginatedRecentVideoListResourceResponse {
|
|
61
|
+
return PaginatedRecentVideoListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedRecentVideoListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecentVideoListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(RecentVideoListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedRecentVideoListResourceResponseToJSON(json: any): PaginatedRecentVideoListResourceResponse {
|
|
76
|
+
return PaginatedRecentVideoListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedRecentVideoListResourceResponseToJSONTyped(value?: PaginatedRecentVideoListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(RecentVideoListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -24,62 +24,62 @@ import {
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @export
|
|
27
|
-
* @interface
|
|
27
|
+
* @interface RecentVideoListResource
|
|
28
28
|
*/
|
|
29
|
-
export interface
|
|
29
|
+
export interface RecentVideoListResource {
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {number}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof RecentVideoListResource
|
|
34
34
|
*/
|
|
35
35
|
id?: number | null;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {number}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof RecentVideoListResource
|
|
40
40
|
*/
|
|
41
41
|
incidentId?: number | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {VenueLiteResource}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof RecentVideoListResource
|
|
46
46
|
*/
|
|
47
47
|
venue: VenueLiteResource | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof RecentVideoListResource
|
|
52
52
|
*/
|
|
53
53
|
originalFilename: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {number}
|
|
57
|
-
* @memberof
|
|
57
|
+
* @memberof RecentVideoListResource
|
|
58
58
|
*/
|
|
59
59
|
sizeBytes: number;
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
62
62
|
* @type {Date}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof RecentVideoListResource
|
|
64
64
|
*/
|
|
65
65
|
createdAt?: Date | null;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Check if a given object implements the
|
|
69
|
+
* Check if a given object implements the RecentVideoListResource interface.
|
|
70
70
|
*/
|
|
71
|
-
export function
|
|
71
|
+
export function instanceOfRecentVideoListResource(value: object): value is RecentVideoListResource {
|
|
72
72
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
73
73
|
if (!('originalFilename' in value) || value['originalFilename'] === undefined) return false;
|
|
74
74
|
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined) return false;
|
|
75
75
|
return true;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export function
|
|
79
|
-
return
|
|
78
|
+
export function RecentVideoListResourceFromJSON(json: any): RecentVideoListResource {
|
|
79
|
+
return RecentVideoListResourceFromJSONTyped(json, false);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
export function
|
|
82
|
+
export function RecentVideoListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentVideoListResource {
|
|
83
83
|
if (json == null) {
|
|
84
84
|
return json;
|
|
85
85
|
}
|
|
@@ -94,11 +94,11 @@ export function IncidentVideoListResourceFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
export function
|
|
98
|
-
return
|
|
97
|
+
export function RecentVideoListResourceToJSON(json: any): RecentVideoListResource {
|
|
98
|
+
return RecentVideoListResourceToJSONTyped(json, false);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
export function
|
|
101
|
+
export function RecentVideoListResourceToJSONTyped(value?: RecentVideoListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
102
102
|
if (value == null) {
|
|
103
103
|
return value;
|
|
104
104
|
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Security Registers API
|
|
5
|
+
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RecentVideoListResource } from './RecentVideoListResource';
|
|
17
|
+
import {
|
|
18
|
+
RecentVideoListResourceFromJSON,
|
|
19
|
+
RecentVideoListResourceFromJSONTyped,
|
|
20
|
+
RecentVideoListResourceToJSON,
|
|
21
|
+
RecentVideoListResourceToJSONTyped,
|
|
22
|
+
} from './RecentVideoListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RecentVideoListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface RecentVideoListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<RecentVideoListResource>}
|
|
33
|
+
* @memberof RecentVideoListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<RecentVideoListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the RecentVideoListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfRecentVideoListResourceArrayResponse(value: object): value is RecentVideoListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function RecentVideoListResourceArrayResponseFromJSON(json: any): RecentVideoListResourceArrayResponse {
|
|
46
|
+
return RecentVideoListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RecentVideoListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentVideoListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(RecentVideoListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function RecentVideoListResourceArrayResponseToJSON(json: any): RecentVideoListResourceArrayResponse {
|
|
60
|
+
return RecentVideoListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function RecentVideoListResourceArrayResponseToJSONTyped(value?: RecentVideoListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(RecentVideoListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -48,8 +48,6 @@ export * from './IncidentResourceArrayResponse';
|
|
|
48
48
|
export * from './IncidentSchemaType';
|
|
49
49
|
export * from './IncidentVersionResource';
|
|
50
50
|
export * from './IncidentVersionResourceArrayResponse';
|
|
51
|
-
export * from './IncidentVideoListResource';
|
|
52
|
-
export * from './IncidentVideoListResourceArrayResponse';
|
|
53
51
|
export * from './IncidentVideoResource';
|
|
54
52
|
export * from './IncidentVideoResourceArrayResponse';
|
|
55
53
|
export * from './IncidentVideoSignedUrlResource';
|
|
@@ -107,10 +105,10 @@ export * from './NotificationType';
|
|
|
107
105
|
export * from './NotificationTypeResource';
|
|
108
106
|
export * from './NotificationTypeResourceArrayResponse';
|
|
109
107
|
export * from './PaginatedIncidentListResourceResponse';
|
|
110
|
-
export * from './PaginatedIncidentVideoListResourceResponse';
|
|
111
108
|
export * from './PaginatedLicenceCheckLogResourceResponse';
|
|
112
109
|
export * from './PaginatedLicenceListResourceResponse';
|
|
113
110
|
export * from './PaginatedLicenceResourceResponse';
|
|
111
|
+
export * from './PaginatedRecentVideoListResourceResponse';
|
|
114
112
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
|
115
113
|
export * from './PaginatedRegisterListResourceResponse';
|
|
116
114
|
export * from './PaginatedRegisterResourceResponse';
|
|
@@ -126,6 +124,8 @@ export * from './PdfExportKind';
|
|
|
126
124
|
export * from './PdfExportResource';
|
|
127
125
|
export * from './PdfExportResourceArrayResponse';
|
|
128
126
|
export * from './PdfExportStatus';
|
|
127
|
+
export * from './RecentVideoListResource';
|
|
128
|
+
export * from './RecentVideoListResourceArrayResponse';
|
|
129
129
|
export * from './RecordSource';
|
|
130
130
|
export * from './RegisterGroupedByRosterResource';
|
|
131
131
|
export * from './RegisterGroupedByRosterResourceArrayResponse';
|
|
@@ -1,63 +0,0 @@
|
|
|
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;
|
|
@@ -1,33 +0,0 @@
|
|
|
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;
|
|
@@ -1,50 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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;
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Security Registers API
|
|
5
|
-
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { IncidentVideoListResource } from './IncidentVideoListResource';
|
|
17
|
-
import {
|
|
18
|
-
IncidentVideoListResourceFromJSON,
|
|
19
|
-
IncidentVideoListResourceFromJSONTyped,
|
|
20
|
-
IncidentVideoListResourceToJSON,
|
|
21
|
-
IncidentVideoListResourceToJSONTyped,
|
|
22
|
-
} from './IncidentVideoListResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface IncidentVideoListResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface IncidentVideoListResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<IncidentVideoListResource>}
|
|
33
|
-
* @memberof IncidentVideoListResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<IncidentVideoListResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the IncidentVideoListResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfIncidentVideoListResourceArrayResponse(value: object): value is IncidentVideoListResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function IncidentVideoListResourceArrayResponseFromJSON(json: any): IncidentVideoListResourceArrayResponse {
|
|
46
|
-
return IncidentVideoListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function IncidentVideoListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoListResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentVideoListResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function IncidentVideoListResourceArrayResponseToJSON(json: any): IncidentVideoListResourceArrayResponse {
|
|
60
|
-
return IncidentVideoListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function IncidentVideoListResourceArrayResponseToJSONTyped(value?: IncidentVideoListResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(IncidentVideoListResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Security Registers API
|
|
5
|
-
* API for the Security Registers compliance platform: guard rosters, sign-on/off registers, incidents, and licence verification.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
-
import {
|
|
18
|
-
PagingMetadataFromJSON,
|
|
19
|
-
PagingMetadataFromJSONTyped,
|
|
20
|
-
PagingMetadataToJSON,
|
|
21
|
-
PagingMetadataToJSONTyped,
|
|
22
|
-
} from './PagingMetadata';
|
|
23
|
-
import type { IncidentVideoListResource } from './IncidentVideoListResource';
|
|
24
|
-
import {
|
|
25
|
-
IncidentVideoListResourceFromJSON,
|
|
26
|
-
IncidentVideoListResourceFromJSONTyped,
|
|
27
|
-
IncidentVideoListResourceToJSON,
|
|
28
|
-
IncidentVideoListResourceToJSONTyped,
|
|
29
|
-
} from './IncidentVideoListResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedIncidentVideoListResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedIncidentVideoListResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<IncidentVideoListResource>}
|
|
40
|
-
* @memberof PaginatedIncidentVideoListResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<IncidentVideoListResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedIncidentVideoListResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedIncidentVideoListResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedIncidentVideoListResourceResponse(value: object): value is PaginatedIncidentVideoListResourceResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PaginatedIncidentVideoListResourceResponseFromJSON(json: any): PaginatedIncidentVideoListResourceResponse {
|
|
61
|
-
return PaginatedIncidentVideoListResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedIncidentVideoListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedIncidentVideoListResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(IncidentVideoListResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedIncidentVideoListResourceResponseToJSON(json: any): PaginatedIncidentVideoListResourceResponse {
|
|
76
|
-
return PaginatedIncidentVideoListResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedIncidentVideoListResourceResponseToJSONTyped(value?: PaginatedIncidentVideoListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': ((value['data'] as Array<any>).map(IncidentVideoListResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|