@digital8/security-registers-backend-ts-sdk 0.0.537 → 0.0.539

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 (30) 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/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +1 -3
  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 +69 -0
  12. package/dist/models/RecentVideoListResource.js +71 -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 +2 -2
  16. package/dist/models/RegisterListResource.js +2 -6
  17. package/dist/models/RegisterResource.d.ts +2 -2
  18. package/dist/models/RegisterResource.js +4 -4
  19. package/dist/models/index.d.ts +4 -0
  20. package/dist/models/index.js +4 -0
  21. package/package.json +1 -1
  22. package/src/apis/GeneralApi.ts +50 -0
  23. package/src/models/AddressResource.ts +2 -3
  24. package/src/models/IncidentVideosRecentRequest.ts +132 -0
  25. package/src/models/PaginatedRecentVideoListResourceResponse.ts +90 -0
  26. package/src/models/RecentVideoListResource.ts +125 -0
  27. package/src/models/RecentVideoListResourceArrayResponse.ts +73 -0
  28. package/src/models/RegisterListResource.ts +4 -6
  29. package/src/models/RegisterResource.ts +5 -5
  30. 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;
84
+ badgeNumber?: string | null;
85
85
  /**
86
86
  *
87
87
  * @type {Date}
@@ -171,7 +171,7 @@ export interface RegisterListResource {
171
171
  * @type {number}
172
172
  * @memberof RegisterListResource
173
173
  */
174
- signOffLat: number;
174
+ signOffLat?: number | null;
175
175
  /**
176
176
  *
177
177
  * @type {number}
@@ -207,7 +207,6 @@ 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;
211
210
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
212
211
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
213
212
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
@@ -221,7 +220,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
221
220
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
222
221
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
223
222
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
224
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
225
223
  if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
226
224
  return true;
227
225
  }
@@ -243,7 +241,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
243
241
  'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
244
242
  'shiftLength': json['shiftLength'],
245
243
  'signOffStatus': json['signOffStatus'],
246
- 'badgeNumber': json['badgeNumber'],
244
+ 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
247
245
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
248
246
  'licenceNumber': json['licenceNumber'],
249
247
  'licenceFirstName': json['licenceFirstName'],
@@ -258,7 +256,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
258
256
  'firstAid': json['firstAid'],
259
257
  'signOnLat': json['signOnLat'],
260
258
  'signOnLong': json['signOnLong'],
261
- 'signOffLat': json['signOffLat'],
259
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
262
260
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
263
261
  'hasIncidents': json['hasIncidents'],
264
262
  };
@@ -129,7 +129,7 @@ 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}
@@ -165,7 +165,7 @@ export interface RegisterResource {
165
165
  * @type {string}
166
166
  * @memberof RegisterResource
167
167
  */
168
- badgeNumber?: string | null;
168
+ badgeNumber: string;
169
169
  /**
170
170
  *
171
171
  * @type {Date}
@@ -215,12 +215,12 @@ 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;
219
218
  if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
220
219
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
221
220
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
222
221
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
223
222
  if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
223
+ if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
224
224
  return true;
225
225
  }
226
226
 
@@ -249,13 +249,13 @@ 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'],
252
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
253
253
  'signOffLong': json['signOffLong'],
254
254
  'licenceNumber': json['licenceNumber'],
255
255
  'licenceExpiry': json['licenceExpiry'],
256
256
  'licenceFirstName': json['licenceFirstName'],
257
257
  'licenceLastName': json['licenceLastName'],
258
- 'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
258
+ 'badgeNumber': json['badgeNumber'],
259
259
  'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
260
260
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
261
261
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -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';