@digital8/security-registers-backend-ts-sdk 0.0.255 → 0.0.256

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 (54) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +72 -1
  4. package/dist/apis/GeneralApi.js +352 -0
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +1 -3
  7. package/dist/models/IncidentImageResource.d.ts +1 -1
  8. package/dist/models/IncidentImageResource.js +1 -3
  9. package/dist/models/IncidentResource.d.ts +13 -0
  10. package/dist/models/IncidentResource.js +7 -0
  11. package/dist/models/IncidentVideoResource.d.ts +74 -0
  12. package/dist/models/IncidentVideoResource.js +72 -0
  13. package/dist/models/IncidentVideoResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/IncidentVideoResourceArrayResponse.js +50 -0
  15. package/dist/models/IncidentVideoSignedUrlResource.d.ts +32 -0
  16. package/dist/models/IncidentVideoSignedUrlResource.js +51 -0
  17. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +50 -0
  19. package/dist/models/IncidentVideoUploadTokenResource.d.ts +50 -0
  20. package/dist/models/IncidentVideoUploadTokenResource.js +63 -0
  21. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +50 -0
  23. package/dist/models/IncidentsVideosStoreRequest.d.ts +44 -0
  24. package/dist/models/IncidentsVideosStoreRequest.js +59 -0
  25. package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +44 -0
  26. package/dist/models/IncidentsVideosUploadTokenRequest.js +59 -0
  27. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  28. package/dist/models/RegisterGroupedByRosterResource.js +4 -3
  29. package/dist/models/RegisterListResource.d.ts +5 -5
  30. package/dist/models/RegisterListResource.js +9 -6
  31. package/dist/models/RegisterResource.d.ts +2 -2
  32. package/dist/models/RegisterResource.js +3 -3
  33. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  34. package/dist/models/RosterWithRegistersResource.js +4 -3
  35. package/dist/models/index.d.ts +8 -0
  36. package/dist/models/index.js +8 -0
  37. package/package.json +1 -1
  38. package/src/apis/GeneralApi.ts +344 -0
  39. package/src/models/AddressResource.ts +2 -3
  40. package/src/models/IncidentImageResource.ts +2 -3
  41. package/src/models/IncidentResource.ts +24 -0
  42. package/src/models/IncidentVideoResource.ts +125 -0
  43. package/src/models/IncidentVideoResourceArrayResponse.ts +73 -0
  44. package/src/models/IncidentVideoSignedUrlResource.ts +66 -0
  45. package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +73 -0
  46. package/src/models/IncidentVideoUploadTokenResource.ts +93 -0
  47. package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +73 -0
  48. package/src/models/IncidentsVideosStoreRequest.ts +84 -0
  49. package/src/models/IncidentsVideosUploadTokenRequest.ts +84 -0
  50. package/src/models/RegisterGroupedByRosterResource.ts +4 -3
  51. package/src/models/RegisterListResource.ts +11 -10
  52. package/src/models/RegisterResource.ts +5 -5
  53. package/src/models/RosterWithRegistersResource.ts +4 -3
  54. package/src/models/index.ts +8 -0
@@ -123,13 +123,13 @@ export interface RegisterResource {
123
123
  * @type {number}
124
124
  * @memberof RegisterResource
125
125
  */
126
- signOffLat?: number | null;
126
+ signOffLat: number;
127
127
  /**
128
128
  *
129
129
  * @type {number}
130
130
  * @memberof RegisterResource
131
131
  */
132
- signOffLong: number;
132
+ signOffLong?: number | null;
133
133
  /**
134
134
  *
135
135
  * @type {string}
@@ -190,7 +190,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
190
190
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
191
191
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
192
192
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
193
- if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
193
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
194
194
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
195
195
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
196
196
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -223,8 +223,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
223
223
  'firstAidImage': json['firstAidImage'],
224
224
  'signOnLat': json['signOnLat'],
225
225
  'signOnLong': json['signOnLong'],
226
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
227
- 'signOffLong': json['signOffLong'],
226
+ 'signOffLat': json['signOffLat'],
227
+ 'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
228
228
  'licenceNumber': json['licenceNumber'],
229
229
  'licenceExpiry': json['licenceExpiry'],
230
230
  'licenceFirstName': json['licenceFirstName'],
@@ -76,7 +76,7 @@ export interface RosterWithRegistersResource {
76
76
  * @type {Date}
77
77
  * @memberof RosterWithRegistersResource
78
78
  */
79
- finishDateTime?: Date | null;
79
+ finishDateTime: Date;
80
80
  /**
81
81
  *
82
82
  * @type {boolean}
@@ -111,6 +111,7 @@ export function instanceOfRosterWithRegistersResource(value: object): value is R
111
111
  if (!('state' in value) || value['state'] === undefined) return false;
112
112
  if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
113
113
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
114
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
114
115
  if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
115
116
  if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
116
117
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
@@ -133,7 +134,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
133
134
  'state': json['state'],
134
135
  'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
135
136
  'startDateTime': (new Date(json['startDateTime'])),
136
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
137
+ 'finishDateTime': (new Date(json['finishDateTime'])),
137
138
  'isCompliant': json['isCompliant'],
138
139
  'isComplete': json['isComplete'],
139
140
  'signOffStatus': json['signOffStatus'],
@@ -157,7 +158,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
157
158
  'state': value['state'],
158
159
  'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
159
160
  'startDateTime': ((value['startDateTime']).toISOString()),
160
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
161
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
161
162
  'isCompliant': value['isCompliant'],
162
163
  'isComplete': value['isComplete'],
163
164
  'signOffStatus': value['signOffStatus'],
@@ -26,9 +26,17 @@ export * from './IncidentResource';
26
26
  export * from './IncidentResourceArrayResponse';
27
27
  export * from './IncidentVersionResource';
28
28
  export * from './IncidentVersionResourceArrayResponse';
29
+ export * from './IncidentVideoResource';
30
+ export * from './IncidentVideoResourceArrayResponse';
31
+ export * from './IncidentVideoSignedUrlResource';
32
+ export * from './IncidentVideoSignedUrlResourceArrayResponse';
33
+ export * from './IncidentVideoUploadTokenResource';
34
+ export * from './IncidentVideoUploadTokenResourceArrayResponse';
29
35
  export * from './IncidentsApproveRequest';
30
36
  export * from './IncidentsStoreRequest';
31
37
  export * from './IncidentsUpdateRequest';
38
+ export * from './IncidentsVideosStoreRequest';
39
+ export * from './IncidentsVideosUploadTokenRequest';
32
40
  export * from './IndexMinimalUserRequest';
33
41
  export * from './IndexUserRequest';
34
42
  export * from './LicenceListResource';