@digital8/security-registers-backend-ts-sdk 0.0.538 → 0.0.540

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 (33) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +12 -1
  4. package/dist/apis/GeneralApi.js +55 -0
  5. package/dist/models/AssetResource.d.ts +1 -1
  6. package/dist/models/AssetResource.js +3 -1
  7. package/dist/models/IncidentVideosRecentRequest.d.ts +82 -0
  8. package/dist/models/IncidentVideosRecentRequest.js +71 -0
  9. package/dist/models/PaginatedRecentVideoListResourceResponse.d.ts +40 -0
  10. package/dist/models/PaginatedRecentVideoListResourceResponse.js +57 -0
  11. package/dist/models/RecentVideoListResource.d.ts +63 -0
  12. package/dist/models/RecentVideoListResource.js +67 -0
  13. package/dist/models/RecentVideoListResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/RecentVideoListResourceArrayResponse.js +50 -0
  15. package/dist/models/RegisterListResource.d.ts +3 -3
  16. package/dist/models/RegisterListResource.js +9 -3
  17. package/dist/models/RegisterResource.d.ts +2 -2
  18. package/dist/models/RegisterResource.js +3 -3
  19. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  20. package/dist/models/SecurityCompanyResource.js +1 -3
  21. package/dist/models/index.d.ts +4 -0
  22. package/dist/models/index.js +4 -0
  23. package/package.json +1 -1
  24. package/src/apis/GeneralApi.ts +50 -0
  25. package/src/models/AssetResource.ts +3 -2
  26. package/src/models/IncidentVideosRecentRequest.ts +132 -0
  27. package/src/models/PaginatedRecentVideoListResourceResponse.ts +90 -0
  28. package/src/models/RecentVideoListResource.ts +116 -0
  29. package/src/models/RecentVideoListResourceArrayResponse.ts +73 -0
  30. package/src/models/RegisterListResource.ts +9 -6
  31. package/src/models/RegisterResource.ts +5 -5
  32. package/src/models/SecurityCompanyResource.ts +2 -3
  33. package/src/models/index.ts +4 -0
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
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
+
@@ -81,7 +81,7 @@ export interface RegisterListResource {
81
81
  * @type {string}
82
82
  * @memberof RegisterListResource
83
83
  */
84
- badgeNumber?: string | null;
84
+ badgeNumber: string;
85
85
  /**
86
86
  *
87
87
  * @type {Date}
@@ -171,13 +171,13 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLat?: number | null;
174
+ signOffLat: number;
175
175
  /**
176
176
  *
177
177
  * @type {number}
178
178
  * @memberof RegisterListResource
179
179
  */
180
- signOffLong?: number | null;
180
+ signOffLong: number;
181
181
  /**
182
182
  *
183
183
  * @type {boolean}
@@ -207,6 +207,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
207
207
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
208
208
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
209
209
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
210
+ if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
210
211
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
211
212
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
212
213
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
@@ -220,6 +221,8 @@ export function instanceOfRegisterListResource(value: object): value is Register
220
221
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
221
222
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
222
223
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
224
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
225
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
223
226
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
224
227
  return true;
225
228
  }
@@ -241,7 +244,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
241
244
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
242
245
  'shiftLength': json['shiftLength'],
243
246
  'signOffStatus': json['signOffStatus'],
244
- 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
247
+ 'badgeNumber': json['badgeNumber'],
245
248
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
246
249
  'licenceNumber': json['licenceNumber'],
247
250
  'licenceFirstName': json['licenceFirstName'],
@@ -256,8 +259,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
256
259
  'firstAid': json['firstAid'],
257
260
  'signOnLat': json['signOnLat'],
258
261
  'signOnLong': json['signOnLong'],
259
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
260
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
262
+ 'signOffLat': json['signOffLat'],
263
+ 'signOffLong': json['signOffLong'],
261
264
  'hasIncidents': json['hasIncidents'],
262
265
  };
263
266
  }
@@ -129,13 +129,13 @@ export interface RegisterResource {
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLat: number;
132
+ signOffLat?: number | null;
133
133
  /**
134
134
  *
135
135
  * @type {number}
136
136
  * @memberof RegisterResource
137
137
  */
138
- signOffLong?: number | null;
138
+ signOffLong: number;
139
139
  /**
140
140
  *
141
141
  * @type {string}
@@ -215,7 +215,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
215
215
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
216
216
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
217
217
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
218
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
218
+ if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
219
219
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
220
220
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
221
221
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -249,8 +249,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
249
249
  'firstAidImage': json['firstAidImage'],
250
250
  'signOnLat': json['signOnLat'],
251
251
  'signOnLong': json['signOnLong'],
252
- 'signOffLat': json['signOffLat'],
253
- 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
252
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
253
+ 'signOffLong': json['signOffLong'],
254
254
  'licenceNumber': json['licenceNumber'],
255
255
  'licenceExpiry': json['licenceExpiry'],
256
256
  'licenceFirstName': json['licenceFirstName'],
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
44
44
  * @type {string}
45
45
  * @memberof SecurityCompanyResource
46
46
  */
47
- email: string;
47
+ email?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {boolean}
@@ -82,7 +82,6 @@ export interface SecurityCompanyResource {
82
82
  */
83
83
  export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
84
84
  if (!('name' in value) || value['name'] === undefined) return false;
85
- if (!('email' in value) || value['email'] === undefined) return false;
86
85
  if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
87
86
  if (!('address' in value) || value['address'] === undefined) return false;
88
87
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
101
100
 
102
101
  'id': json['id'] == null ? undefined : json['id'],
103
102
  'name': json['name'],
104
- 'email': json['email'],
103
+ 'email': json['email'] == null ? undefined : json['email'],
105
104
  'isEnabled': json['isEnabled'],
106
105
  'address': AddressResourceFromJSON(json['address']),
107
106
  'licenceNumber': json['licenceNumber'],
@@ -49,6 +49,7 @@ export * from './IncidentVideoSignedUrlResource';
49
49
  export * from './IncidentVideoSignedUrlResourceArrayResponse';
50
50
  export * from './IncidentVideoUploadTokenResource';
51
51
  export * from './IncidentVideoUploadTokenResourceArrayResponse';
52
+ export * from './IncidentVideosRecentRequest';
52
53
  export * from './IncidentsApproveRequest';
53
54
  export * from './IncidentsEligibleOwnersRequest';
54
55
  export * from './IncidentsExportCsvBulkRequest';
@@ -96,6 +97,7 @@ export * from './PaginatedIncidentListResourceResponse';
96
97
  export * from './PaginatedLicenceCheckLogResourceResponse';
97
98
  export * from './PaginatedLicenceListResourceResponse';
98
99
  export * from './PaginatedLicenceResourceResponse';
100
+ export * from './PaginatedRecentVideoListResourceResponse';
99
101
  export * from './PaginatedRegisterGroupedByRosterResourceResponse';
100
102
  export * from './PaginatedRegisterListResourceResponse';
101
103
  export * from './PaginatedRegisterResourceResponse';
@@ -108,6 +110,8 @@ export * from './PaginatedVenueResourceResponse';
108
110
  export * from './PagingMetadata';
109
111
  export * from './PdfExportResource';
110
112
  export * from './PdfExportResourceArrayResponse';
113
+ export * from './RecentVideoListResource';
114
+ export * from './RecentVideoListResourceArrayResponse';
111
115
  export * from './RegisterGroupedByRosterResource';
112
116
  export * from './RegisterGroupedByRosterResourceArrayResponse';
113
117
  export * from './RegisterListResource';