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

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 +4 -3
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +14 -3
  4. package/dist/apis/GeneralApi.js +56 -1
  5. package/dist/models/PaginatedRecentVideoListResourceResponse.d.ts +40 -0
  6. package/dist/models/PaginatedRecentVideoListResourceResponse.js +57 -0
  7. package/dist/models/RecentVideoListResource.d.ts +63 -0
  8. package/dist/models/{IncidentVideoListResource.js → RecentVideoListResource.js} +13 -13
  9. package/dist/models/RecentVideoListResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/RecentVideoListResourceArrayResponse.js +50 -0
  11. package/dist/models/StoreUserRequest.d.ts +50 -0
  12. package/dist/models/StoreUserRequest.js +61 -0
  13. package/dist/models/VenuesUpdateRequest.d.ts +2 -2
  14. package/dist/models/VenuesUpdateRequest.js +6 -2
  15. package/dist/models/index.d.ts +4 -3
  16. package/dist/models/index.js +4 -3
  17. package/package.json +1 -1
  18. package/src/apis/GeneralApi.ts +53 -6
  19. package/src/models/PaginatedRecentVideoListResourceResponse.ts +90 -0
  20. package/src/models/{IncidentVideoListResource.ts → RecentVideoListResource.ts} +16 -16
  21. package/src/models/RecentVideoListResourceArrayResponse.ts +73 -0
  22. package/src/models/StoreUserRequest.ts +92 -0
  23. package/src/models/VenuesUpdateRequest.ts +6 -4
  24. package/src/models/index.ts +4 -3
  25. package/dist/models/IncidentVideoListResource.d.ts +0 -63
  26. package/dist/models/IncidentVideoListResourceArrayResponse.d.ts +0 -33
  27. package/dist/models/IncidentVideoListResourceArrayResponse.js +0 -50
  28. package/dist/models/PaginatedIncidentVideoListResourceResponse.d.ts +0 -40
  29. package/dist/models/PaginatedIncidentVideoListResourceResponse.js +0 -57
  30. package/src/models/IncidentVideoListResourceArrayResponse.ts +0 -73
  31. package/src/models/PaginatedIncidentVideoListResourceResponse.ts +0 -90
@@ -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';
@@ -164,6 +164,7 @@ export * from './SecurityCompanyResource';
164
164
  export * from './SecurityCompanyResourceArrayResponse';
165
165
  export * from './SettingsLicenceVerificationFallbackUpdateRequest';
166
166
  export * from './SignOffStatus';
167
+ export * from './StoreUserRequest';
167
168
  export * from './UserAuthTokenResource';
168
169
  export * from './UserAuthTokenResourceArrayResponse';
169
170
  export * from './UserLiteResource';
@@ -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);
@@ -182,6 +182,7 @@ __exportStar(require("./SecurityCompanyResource"), exports);
182
182
  __exportStar(require("./SecurityCompanyResourceArrayResponse"), exports);
183
183
  __exportStar(require("./SettingsLicenceVerificationFallbackUpdateRequest"), exports);
184
184
  __exportStar(require("./SignOffStatus"), exports);
185
+ __exportStar(require("./StoreUserRequest"), exports);
185
186
  __exportStar(require("./UserAuthTokenResource"), exports);
186
187
  __exportStar(require("./UserAuthTokenResourceArrayResponse"), exports);
187
188
  __exportStar(require("./UserLiteResource"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.739",
3
+ "version": "0.0.741",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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,
@@ -100,6 +100,7 @@ import type {
100
100
  SecurityCompanyLiteResourceArrayResponse,
101
101
  SecurityCompanyResource,
102
102
  SettingsLicenceVerificationFallbackUpdateRequest,
103
+ StoreUserRequest,
103
104
  UserAuthTokenResource,
104
105
  UserLiteResourceArrayResponse,
105
106
  UserResource,
@@ -232,12 +233,12 @@ import {
232
233
  NotificationTypeResourceArrayResponseToJSON,
233
234
  PaginatedIncidentListResourceResponseFromJSON,
234
235
  PaginatedIncidentListResourceResponseToJSON,
235
- PaginatedIncidentVideoListResourceResponseFromJSON,
236
- PaginatedIncidentVideoListResourceResponseToJSON,
237
236
  PaginatedLicenceCheckLogResourceResponseFromJSON,
238
237
  PaginatedLicenceCheckLogResourceResponseToJSON,
239
238
  PaginatedLicenceListResourceResponseFromJSON,
240
239
  PaginatedLicenceListResourceResponseToJSON,
240
+ PaginatedRecentVideoListResourceResponseFromJSON,
241
+ PaginatedRecentVideoListResourceResponseToJSON,
241
242
  PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
242
243
  PaginatedRegisterGroupedByRosterResourceResponseToJSON,
243
244
  PaginatedRosterListResourceResponseFromJSON,
@@ -298,6 +299,8 @@ import {
298
299
  SecurityCompanyResourceToJSON,
299
300
  SettingsLicenceVerificationFallbackUpdateRequestFromJSON,
300
301
  SettingsLicenceVerificationFallbackUpdateRequestToJSON,
302
+ StoreUserRequestFromJSON,
303
+ StoreUserRequestToJSON,
301
304
  UserAuthTokenResourceFromJSON,
302
305
  UserAuthTokenResourceToJSON,
303
306
  UserLiteResourceArrayResponseFromJSON,
@@ -670,6 +673,10 @@ export interface SettingsLicenceVerificationFallbackUpdateOperationRequest {
670
673
  settingsLicenceVerificationFallbackUpdateRequest?: SettingsLicenceVerificationFallbackUpdateRequest;
671
674
  }
672
675
 
676
+ export interface StoreUserOperationRequest {
677
+ storeUserRequest?: StoreUserRequest;
678
+ }
679
+
673
680
  export interface UsersAttachSecurityCompaniesOperationRequest {
674
681
  user: number;
675
682
  usersAttachSecurityCompaniesRequest?: UsersAttachSecurityCompaniesRequest;
@@ -1372,7 +1379,7 @@ export class GeneralApi extends runtime.BaseAPI {
1372
1379
  /**
1373
1380
  * Auto-generated: incidentVideos.recent
1374
1381
  */
1375
- async incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIncidentVideoListResourceResponse>> {
1382
+ async incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRecentVideoListResourceResponse>> {
1376
1383
  const queryParameters: any = {};
1377
1384
 
1378
1385
  const headerParameters: runtime.HTTPHeaders = {};
@@ -1398,13 +1405,13 @@ export class GeneralApi extends runtime.BaseAPI {
1398
1405
  body: IncidentVideosRecentRequestToJSON(requestParameters['incidentVideosRecentRequest']),
1399
1406
  }, initOverrides);
1400
1407
 
1401
- return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedIncidentVideoListResourceResponseFromJSON(jsonValue));
1408
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRecentVideoListResourceResponseFromJSON(jsonValue));
1402
1409
  }
1403
1410
 
1404
1411
  /**
1405
1412
  * Auto-generated: incidentVideos.recent
1406
1413
  */
1407
- async incidentVideosRecent(requestParameters: IncidentVideosRecentOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIncidentVideoListResourceResponse> {
1414
+ async incidentVideosRecent(requestParameters: IncidentVideosRecentOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRecentVideoListResourceResponse> {
1408
1415
  const response = await this.incidentVideosRecentRaw(requestParameters, initOverrides);
1409
1416
  return await response.value();
1410
1417
  }
@@ -4296,6 +4303,46 @@ export class GeneralApi extends runtime.BaseAPI {
4296
4303
  return await response.value();
4297
4304
  }
4298
4305
 
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
+
4299
4346
  /**
4300
4347
  * Auto-generated: users.attachSecurityCompanies
4301
4348
  */
@@ -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 IncidentVideoListResource
27
+ * @interface RecentVideoListResource
28
28
  */
29
- export interface IncidentVideoListResource {
29
+ export interface RecentVideoListResource {
30
30
  /**
31
31
  *
32
32
  * @type {number}
33
- * @memberof IncidentVideoListResource
33
+ * @memberof RecentVideoListResource
34
34
  */
35
35
  id?: number | null;
36
36
  /**
37
37
  *
38
38
  * @type {number}
39
- * @memberof IncidentVideoListResource
39
+ * @memberof RecentVideoListResource
40
40
  */
41
41
  incidentId?: number | null;
42
42
  /**
43
43
  *
44
44
  * @type {VenueLiteResource}
45
- * @memberof IncidentVideoListResource
45
+ * @memberof RecentVideoListResource
46
46
  */
47
47
  venue: VenueLiteResource | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
51
- * @memberof IncidentVideoListResource
51
+ * @memberof RecentVideoListResource
52
52
  */
53
53
  originalFilename: string;
54
54
  /**
55
55
  *
56
56
  * @type {number}
57
- * @memberof IncidentVideoListResource
57
+ * @memberof RecentVideoListResource
58
58
  */
59
59
  sizeBytes: number;
60
60
  /**
61
61
  *
62
62
  * @type {Date}
63
- * @memberof IncidentVideoListResource
63
+ * @memberof RecentVideoListResource
64
64
  */
65
65
  createdAt?: Date | null;
66
66
  }
67
67
 
68
68
  /**
69
- * Check if a given object implements the IncidentVideoListResource interface.
69
+ * Check if a given object implements the RecentVideoListResource interface.
70
70
  */
71
- export function instanceOfIncidentVideoListResource(value: object): value is IncidentVideoListResource {
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 IncidentVideoListResourceFromJSON(json: any): IncidentVideoListResource {
79
- return IncidentVideoListResourceFromJSONTyped(json, false);
78
+ export function RecentVideoListResourceFromJSON(json: any): RecentVideoListResource {
79
+ return RecentVideoListResourceFromJSONTyped(json, false);
80
80
  }
81
81
 
82
- export function IncidentVideoListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoListResource {
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 IncidentVideoListResourceToJSON(json: any): IncidentVideoListResource {
98
- return IncidentVideoListResourceToJSONTyped(json, false);
97
+ export function RecentVideoListResourceToJSON(json: any): RecentVideoListResource {
98
+ return RecentVideoListResourceToJSONTyped(json, false);
99
99
  }
100
100
 
101
- export function IncidentVideoListResourceToJSONTyped(value?: IncidentVideoListResource | null, ignoreDiscriminator: boolean = false): any {
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
+
@@ -0,0 +1,92 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface StoreUserRequest
20
+ */
21
+ export interface StoreUserRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof StoreUserRequest
26
+ */
27
+ firstName: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof StoreUserRequest
32
+ */
33
+ lastName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof StoreUserRequest
38
+ */
39
+ email: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof StoreUserRequest
44
+ */
45
+ mobile?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the StoreUserRequest interface.
50
+ */
51
+ export function instanceOfStoreUserRequest(value: object): value is StoreUserRequest {
52
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
53
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
54
+ if (!('email' in value) || value['email'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function StoreUserRequestFromJSON(json: any): StoreUserRequest {
59
+ return StoreUserRequestFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function StoreUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreUserRequest {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'firstName': json['first_name'],
69
+ 'lastName': json['last_name'],
70
+ 'email': json['email'],
71
+ 'mobile': json['mobile'] == null ? undefined : json['mobile'],
72
+ };
73
+ }
74
+
75
+ export function StoreUserRequestToJSON(json: any): StoreUserRequest {
76
+ return StoreUserRequestToJSONTyped(json, false);
77
+ }
78
+
79
+ export function StoreUserRequestToJSONTyped(value?: StoreUserRequest | null, ignoreDiscriminator: boolean = false): any {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+
84
+ return {
85
+
86
+ 'first_name': value['firstName'],
87
+ 'last_name': value['lastName'],
88
+ 'email': value['email'],
89
+ 'mobile': value['mobile'],
90
+ };
91
+ }
92
+
@@ -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,6 +156,8 @@ 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;
159
161
  return true;
160
162
  }
161
163
 
@@ -179,8 +181,8 @@ export function VenuesUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator:
179
181
  'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
180
182
  'isEnabled': json['is_enabled'] == null ? undefined : json['is_enabled'],
181
183
  'geofenceRadius': json['geofence_radius'] == null ? undefined : json['geofence_radius'],
182
- 'latitude': json['latitude'] == null ? undefined : json['latitude'],
183
- 'longitude': json['longitude'] == null ? undefined : json['longitude'],
184
+ 'latitude': json['latitude'],
185
+ 'longitude': json['longitude'],
184
186
  'addressLine1': json['address_line_1'] == null ? undefined : json['address_line_1'],
185
187
  'addressLine2': json['address_line_2'] == null ? undefined : json['address_line_2'],
186
188
  'suburb': json['suburb'] == null ? undefined : json['suburb'],
@@ -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';
@@ -166,6 +166,7 @@ export * from './SecurityCompanyResource';
166
166
  export * from './SecurityCompanyResourceArrayResponse';
167
167
  export * from './SettingsLicenceVerificationFallbackUpdateRequest';
168
168
  export * from './SignOffStatus';
169
+ export * from './StoreUserRequest';
169
170
  export * from './UserAuthTokenResource';
170
171
  export * from './UserAuthTokenResourceArrayResponse';
171
172
  export * from './UserLiteResource';