@digital8/security-registers-backend-ts-sdk 0.0.738 → 0.0.739

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 (31) hide show
  1. package/.openapi-generator/FILES +3 -4
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +3 -14
  4. package/dist/apis/GeneralApi.js +1 -56
  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/VenuesUpdateRequest.d.ts +2 -2
  12. package/dist/models/VenuesUpdateRequest.js +2 -6
  13. package/dist/models/index.d.ts +3 -4
  14. package/dist/models/index.js +3 -4
  15. package/package.json +1 -1
  16. package/src/apis/GeneralApi.ts +6 -53
  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/VenuesUpdateRequest.ts +4 -6
  21. package/src/models/index.ts +3 -4
  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/dist/models/StoreUserRequest.d.ts +0 -50
  28. package/dist/models/StoreUserRequest.js +0 -61
  29. package/src/models/PaginatedRecentVideoListResourceResponse.ts +0 -90
  30. package/src/models/RecentVideoListResourceArrayResponse.ts +0 -73
  31. package/src/models/StoreUserRequest.ts +0 -92
@@ -67,9 +67,9 @@ import type {
67
67
  NotificationPreferencesStoreRequest,
68
68
  NotificationTypeResourceArrayResponse,
69
69
  PaginatedIncidentListResourceResponse,
70
+ PaginatedIncidentVideoListResourceResponse,
70
71
  PaginatedLicenceCheckLogResourceResponse,
71
72
  PaginatedLicenceListResourceResponse,
72
- PaginatedRecentVideoListResourceResponse,
73
73
  PaginatedRegisterGroupedByRosterResourceResponse,
74
74
  PaginatedRosterListResourceResponse,
75
75
  PaginatedRosterWithRegistersResourceResponse,
@@ -100,7 +100,6 @@ import type {
100
100
  SecurityCompanyLiteResourceArrayResponse,
101
101
  SecurityCompanyResource,
102
102
  SettingsLicenceVerificationFallbackUpdateRequest,
103
- StoreUserRequest,
104
103
  UserAuthTokenResource,
105
104
  UserLiteResourceArrayResponse,
106
105
  UserResource,
@@ -233,12 +232,12 @@ import {
233
232
  NotificationTypeResourceArrayResponseToJSON,
234
233
  PaginatedIncidentListResourceResponseFromJSON,
235
234
  PaginatedIncidentListResourceResponseToJSON,
235
+ PaginatedIncidentVideoListResourceResponseFromJSON,
236
+ PaginatedIncidentVideoListResourceResponseToJSON,
236
237
  PaginatedLicenceCheckLogResourceResponseFromJSON,
237
238
  PaginatedLicenceCheckLogResourceResponseToJSON,
238
239
  PaginatedLicenceListResourceResponseFromJSON,
239
240
  PaginatedLicenceListResourceResponseToJSON,
240
- PaginatedRecentVideoListResourceResponseFromJSON,
241
- PaginatedRecentVideoListResourceResponseToJSON,
242
241
  PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
243
242
  PaginatedRegisterGroupedByRosterResourceResponseToJSON,
244
243
  PaginatedRosterListResourceResponseFromJSON,
@@ -299,8 +298,6 @@ import {
299
298
  SecurityCompanyResourceToJSON,
300
299
  SettingsLicenceVerificationFallbackUpdateRequestFromJSON,
301
300
  SettingsLicenceVerificationFallbackUpdateRequestToJSON,
302
- StoreUserRequestFromJSON,
303
- StoreUserRequestToJSON,
304
301
  UserAuthTokenResourceFromJSON,
305
302
  UserAuthTokenResourceToJSON,
306
303
  UserLiteResourceArrayResponseFromJSON,
@@ -673,10 +670,6 @@ export interface SettingsLicenceVerificationFallbackUpdateOperationRequest {
673
670
  settingsLicenceVerificationFallbackUpdateRequest?: SettingsLicenceVerificationFallbackUpdateRequest;
674
671
  }
675
672
 
676
- export interface StoreUserOperationRequest {
677
- storeUserRequest?: StoreUserRequest;
678
- }
679
-
680
673
  export interface UsersAttachSecurityCompaniesOperationRequest {
681
674
  user: number;
682
675
  usersAttachSecurityCompaniesRequest?: UsersAttachSecurityCompaniesRequest;
@@ -1379,7 +1372,7 @@ export class GeneralApi extends runtime.BaseAPI {
1379
1372
  /**
1380
1373
  * Auto-generated: incidentVideos.recent
1381
1374
  */
1382
- async incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRecentVideoListResourceResponse>> {
1375
+ async incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIncidentVideoListResourceResponse>> {
1383
1376
  const queryParameters: any = {};
1384
1377
 
1385
1378
  const headerParameters: runtime.HTTPHeaders = {};
@@ -1405,13 +1398,13 @@ export class GeneralApi extends runtime.BaseAPI {
1405
1398
  body: IncidentVideosRecentRequestToJSON(requestParameters['incidentVideosRecentRequest']),
1406
1399
  }, initOverrides);
1407
1400
 
1408
- return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRecentVideoListResourceResponseFromJSON(jsonValue));
1401
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedIncidentVideoListResourceResponseFromJSON(jsonValue));
1409
1402
  }
1410
1403
 
1411
1404
  /**
1412
1405
  * Auto-generated: incidentVideos.recent
1413
1406
  */
1414
- async incidentVideosRecent(requestParameters: IncidentVideosRecentOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRecentVideoListResourceResponse> {
1407
+ async incidentVideosRecent(requestParameters: IncidentVideosRecentOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIncidentVideoListResourceResponse> {
1415
1408
  const response = await this.incidentVideosRecentRaw(requestParameters, initOverrides);
1416
1409
  return await response.value();
1417
1410
  }
@@ -4303,46 +4296,6 @@ export class GeneralApi extends runtime.BaseAPI {
4303
4296
  return await response.value();
4304
4297
  }
4305
4298
 
4306
- /**
4307
- * Auto-generated: storeUser
4308
- */
4309
- async storeUserRaw(requestParameters: StoreUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResource>> {
4310
- const queryParameters: any = {};
4311
-
4312
- const headerParameters: runtime.HTTPHeaders = {};
4313
-
4314
- headerParameters['Content-Type'] = 'application/json';
4315
-
4316
- if (this.configuration && this.configuration.accessToken) {
4317
- const token = this.configuration.accessToken;
4318
- const tokenString = await token("bearerAuth", []);
4319
-
4320
- if (tokenString) {
4321
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
4322
- }
4323
- }
4324
-
4325
- let urlPath = `/api/auth/register`;
4326
-
4327
- const response = await this.request({
4328
- path: urlPath,
4329
- method: 'POST',
4330
- headers: headerParameters,
4331
- query: queryParameters,
4332
- body: StoreUserRequestToJSON(requestParameters['storeUserRequest']),
4333
- }, initOverrides);
4334
-
4335
- return new runtime.JSONApiResponse(response, (jsonValue) => UserResourceFromJSON(jsonValue));
4336
- }
4337
-
4338
- /**
4339
- * Auto-generated: storeUser
4340
- */
4341
- async storeUser(requestParameters: StoreUserOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResource> {
4342
- const response = await this.storeUserRaw(requestParameters, initOverrides);
4343
- return await response.value();
4344
- }
4345
-
4346
4299
  /**
4347
4300
  * Auto-generated: users.attachSecurityCompanies
4348
4301
  */
@@ -24,62 +24,62 @@ import {
24
24
  /**
25
25
  *
26
26
  * @export
27
- * @interface RecentVideoListResource
27
+ * @interface IncidentVideoListResource
28
28
  */
29
- export interface RecentVideoListResource {
29
+ export interface IncidentVideoListResource {
30
30
  /**
31
31
  *
32
32
  * @type {number}
33
- * @memberof RecentVideoListResource
33
+ * @memberof IncidentVideoListResource
34
34
  */
35
35
  id?: number | null;
36
36
  /**
37
37
  *
38
38
  * @type {number}
39
- * @memberof RecentVideoListResource
39
+ * @memberof IncidentVideoListResource
40
40
  */
41
41
  incidentId?: number | null;
42
42
  /**
43
43
  *
44
44
  * @type {VenueLiteResource}
45
- * @memberof RecentVideoListResource
45
+ * @memberof IncidentVideoListResource
46
46
  */
47
47
  venue: VenueLiteResource | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
51
- * @memberof RecentVideoListResource
51
+ * @memberof IncidentVideoListResource
52
52
  */
53
53
  originalFilename: string;
54
54
  /**
55
55
  *
56
56
  * @type {number}
57
- * @memberof RecentVideoListResource
57
+ * @memberof IncidentVideoListResource
58
58
  */
59
59
  sizeBytes: number;
60
60
  /**
61
61
  *
62
62
  * @type {Date}
63
- * @memberof RecentVideoListResource
63
+ * @memberof IncidentVideoListResource
64
64
  */
65
65
  createdAt?: Date | null;
66
66
  }
67
67
 
68
68
  /**
69
- * Check if a given object implements the RecentVideoListResource interface.
69
+ * Check if a given object implements the IncidentVideoListResource interface.
70
70
  */
71
- export function instanceOfRecentVideoListResource(value: object): value is RecentVideoListResource {
71
+ export function instanceOfIncidentVideoListResource(value: object): value is IncidentVideoListResource {
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 RecentVideoListResourceFromJSON(json: any): RecentVideoListResource {
79
- return RecentVideoListResourceFromJSONTyped(json, false);
78
+ export function IncidentVideoListResourceFromJSON(json: any): IncidentVideoListResource {
79
+ return IncidentVideoListResourceFromJSONTyped(json, false);
80
80
  }
81
81
 
82
- export function RecentVideoListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentVideoListResource {
82
+ export function IncidentVideoListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoListResource {
83
83
  if (json == null) {
84
84
  return json;
85
85
  }
@@ -94,11 +94,11 @@ export function RecentVideoListResourceFromJSONTyped(json: any, ignoreDiscrimina
94
94
  };
95
95
  }
96
96
 
97
- export function RecentVideoListResourceToJSON(json: any): RecentVideoListResource {
98
- return RecentVideoListResourceToJSONTyped(json, false);
97
+ export function IncidentVideoListResourceToJSON(json: any): IncidentVideoListResource {
98
+ return IncidentVideoListResourceToJSONTyped(json, false);
99
99
  }
100
100
 
101
- export function RecentVideoListResourceToJSONTyped(value?: RecentVideoListResource | null, ignoreDiscriminator: boolean = false): any {
101
+ export function IncidentVideoListResourceToJSONTyped(value?: IncidentVideoListResource | 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 { 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
+
@@ -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 { 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
+
@@ -84,13 +84,13 @@ export interface VenuesUpdateRequest {
84
84
  * @type {number}
85
85
  * @memberof VenuesUpdateRequest
86
86
  */
87
- latitude: number;
87
+ latitude?: number;
88
88
  /**
89
89
  *
90
90
  * @type {number}
91
91
  * @memberof VenuesUpdateRequest
92
92
  */
93
- longitude: number;
93
+ longitude?: number;
94
94
  /**
95
95
  *
96
96
  * @type {string}
@@ -156,8 +156,6 @@ export type VenuesUpdateRequestStateEnum = typeof VenuesUpdateRequestStateEnum[k
156
156
  * Check if a given object implements the VenuesUpdateRequest interface.
157
157
  */
158
158
  export function instanceOfVenuesUpdateRequest(value: object): value is VenuesUpdateRequest {
159
- if (!('latitude' in value) || value['latitude'] === undefined) return false;
160
- if (!('longitude' in value) || value['longitude'] === undefined) return false;
161
159
  return true;
162
160
  }
163
161
 
@@ -181,8 +179,8 @@ export function VenuesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator:
181
179
  'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
182
180
  'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
183
181
  'geofenceRadius': json['geofence_radius'] == null ? undefined : json['geofence_radius'],
184
- 'latitude': json['latitude'],
185
- 'longitude': json['longitude'],
182
+ 'latitude': json['latitude'] == null ? undefined : json['latitude'],
183
+ 'longitude': json['longitude'] == null ? undefined : json['longitude'],
186
184
  'addressLine1': json['address_line_1'] == null ? undefined : json['address_line_1'],
187
185
  'addressLine2': json['address_line_2'] == null ? undefined : json['address_line_2'],
188
186
  'suburb': json['suburb'] == null ? undefined : json['suburb'],
@@ -48,6 +48,8 @@ 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';
51
53
  export * from './IncidentVideoResource';
52
54
  export * from './IncidentVideoResourceArrayResponse';
53
55
  export * from './IncidentVideoSignedUrlResource';
@@ -105,10 +107,10 @@ export * from './NotificationType';
105
107
  export * from './NotificationTypeResource';
106
108
  export * from './NotificationTypeResourceArrayResponse';
107
109
  export * from './PaginatedIncidentListResourceResponse';
110
+ export * from './PaginatedIncidentVideoListResourceResponse';
108
111
  export * from './PaginatedLicenceCheckLogResourceResponse';
109
112
  export * from './PaginatedLicenceListResourceResponse';
110
113
  export * from './PaginatedLicenceResourceResponse';
111
- export * from './PaginatedRecentVideoListResourceResponse';
112
114
  export * from './PaginatedRegisterGroupedByRosterResourceResponse';
113
115
  export * from './PaginatedRegisterListResourceResponse';
114
116
  export * from './PaginatedRegisterResourceResponse';
@@ -124,8 +126,6 @@ export * from './PdfExportKind';
124
126
  export * from './PdfExportResource';
125
127
  export * from './PdfExportResourceArrayResponse';
126
128
  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';
@@ -166,7 +166,6 @@ export * from './SecurityCompanyResource';
166
166
  export * from './SecurityCompanyResourceArrayResponse';
167
167
  export * from './SettingsLicenceVerificationFallbackUpdateRequest';
168
168
  export * from './SignOffStatus';
169
- export * from './StoreUserRequest';
170
169
  export * from './UserAuthTokenResource';
171
170
  export * from './UserAuthTokenResourceArrayResponse';
172
171
  export * from './UserLiteResource';
@@ -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 { 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;
@@ -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.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
- }
@@ -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 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;
@@ -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 { 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;