@digital8/security-registers-backend-ts-sdk 0.0.215 → 0.0.217

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 (81) hide show
  1. package/.openapi-generator/FILES +17 -2
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +142 -3
  4. package/dist/apis/GeneralApi.js +694 -1
  5. package/dist/models/IncidentFieldAuditResource.d.ts +56 -0
  6. package/dist/models/IncidentFieldAuditResource.js +67 -0
  7. package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +33 -0
  8. package/dist/models/IncidentFieldAuditResourceArrayResponse.js +50 -0
  9. package/dist/models/IncidentFieldsResourceArrayResponse.d.ts +32 -0
  10. package/dist/models/IncidentFieldsResourceArrayResponse.js +49 -0
  11. package/dist/models/IncidentResource.d.ts +118 -0
  12. package/dist/models/IncidentResource.js +106 -0
  13. package/dist/models/IncidentResourceArrayResponse.d.ts +33 -0
  14. package/dist/models/IncidentResourceArrayResponse.js +50 -0
  15. package/dist/models/IncidentVersionResource.d.ts +57 -0
  16. package/dist/models/IncidentVersionResource.js +68 -0
  17. package/dist/models/IncidentVersionResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/IncidentVersionResourceArrayResponse.js +50 -0
  19. package/dist/models/IncidentVideoResource.d.ts +74 -0
  20. package/dist/models/IncidentVideoResource.js +72 -0
  21. package/dist/models/IncidentVideoResourceArrayResponse.d.ts +33 -0
  22. package/dist/models/IncidentVideoResourceArrayResponse.js +50 -0
  23. package/dist/models/IncidentVideoSignedUrlResource.d.ts +32 -0
  24. package/dist/models/IncidentVideoSignedUrlResource.js +51 -0
  25. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +33 -0
  26. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +50 -0
  27. package/dist/models/IncidentVideoUploadTokenResource.d.ts +50 -0
  28. package/dist/models/IncidentVideoUploadTokenResource.js +63 -0
  29. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +50 -0
  31. package/dist/models/IncidentsStoreRequest.d.ts +38 -0
  32. package/dist/models/IncidentsStoreRequest.js +55 -0
  33. package/dist/models/IncidentsUpdateRequest.d.ts +32 -0
  34. package/dist/models/IncidentsUpdateRequest.js +51 -0
  35. package/dist/models/IncidentsVideosStoreRequest.d.ts +44 -0
  36. package/dist/models/IncidentsVideosStoreRequest.js +59 -0
  37. package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +44 -0
  38. package/dist/models/IncidentsVideosUploadTokenRequest.js +59 -0
  39. package/dist/models/LicencesVerifyRequest.d.ts +3 -21
  40. package/dist/models/LicencesVerifyRequest.js +6 -14
  41. package/dist/models/RegisterListResource.d.ts +3 -3
  42. package/dist/models/RegisterListResource.js +3 -4
  43. package/dist/models/RegisterResource.d.ts +1 -1
  44. package/dist/models/RegisterResource.js +1 -3
  45. package/dist/models/RosterLiteResource.d.ts +1 -1
  46. package/dist/models/RosterLiteResource.js +3 -4
  47. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  48. package/dist/models/RosterWithRegistersResource.js +4 -3
  49. package/dist/models/index.d.ts +17 -2
  50. package/dist/models/index.js +17 -2
  51. package/package.json +1 -1
  52. package/src/apis/GeneralApi.ts +664 -6
  53. package/src/models/IncidentFieldAuditResource.ts +102 -0
  54. package/src/models/IncidentFieldAuditResourceArrayResponse.ts +73 -0
  55. package/src/models/IncidentFieldsResourceArrayResponse.ts +65 -0
  56. package/src/models/IncidentResource.ts +237 -0
  57. package/src/models/IncidentResourceArrayResponse.ts +73 -0
  58. package/src/models/IncidentVersionResource.ts +110 -0
  59. package/src/models/IncidentVersionResourceArrayResponse.ts +73 -0
  60. package/src/models/IncidentVideoResource.ts +125 -0
  61. package/src/models/IncidentVideoResourceArrayResponse.ts +73 -0
  62. package/src/models/IncidentVideoSignedUrlResource.ts +66 -0
  63. package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +73 -0
  64. package/src/models/IncidentVideoUploadTokenResource.ts +93 -0
  65. package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +73 -0
  66. package/src/models/IncidentsStoreRequest.ts +75 -0
  67. package/src/models/IncidentsUpdateRequest.ts +66 -0
  68. package/src/models/IncidentsVideosStoreRequest.ts +84 -0
  69. package/src/models/IncidentsVideosUploadTokenRequest.ts +84 -0
  70. package/src/models/LicencesVerifyRequest.ts +8 -33
  71. package/src/models/RegisterListResource.ts +5 -6
  72. package/src/models/RegisterResource.ts +2 -3
  73. package/src/models/RosterLiteResource.ts +3 -4
  74. package/src/models/RosterWithRegistersResource.ts +4 -3
  75. package/src/models/index.ts +17 -2
  76. package/dist/models/LicenceVerificationResultResource.d.ts +0 -44
  77. package/dist/models/LicenceVerificationResultResource.js +0 -59
  78. package/dist/models/LicenceVerificationResultResourceArrayResponse.d.ts +0 -33
  79. package/dist/models/LicenceVerificationResultResourceArrayResponse.js +0 -50
  80. package/src/models/LicenceVerificationResultResource.ts +0 -84
  81. package/src/models/LicenceVerificationResultResourceArrayResponse.ts +0 -73
@@ -0,0 +1,66 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface IncidentsUpdateRequest
20
+ */
21
+ export interface IncidentsUpdateRequest {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof IncidentsUpdateRequest
26
+ */
27
+ fields: Array<string>;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the IncidentsUpdateRequest interface.
32
+ */
33
+ export function instanceOfIncidentsUpdateRequest(value: object): value is IncidentsUpdateRequest {
34
+ if (!('fields' in value) || value['fields'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function IncidentsUpdateRequestFromJSON(json: any): IncidentsUpdateRequest {
39
+ return IncidentsUpdateRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'fields': json['fields'],
49
+ };
50
+ }
51
+
52
+ export function IncidentsUpdateRequestToJSON(json: any): IncidentsUpdateRequest {
53
+ return IncidentsUpdateRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'fields': value['fields'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,84 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface IncidentsVideosStoreRequest
20
+ */
21
+ export interface IncidentsVideosStoreRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof IncidentsVideosStoreRequest
26
+ */
27
+ rawBlobPath: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof IncidentsVideosStoreRequest
32
+ */
33
+ originalFilename: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof IncidentsVideosStoreRequest
38
+ */
39
+ mimeType: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the IncidentsVideosStoreRequest interface.
44
+ */
45
+ export function instanceOfIncidentsVideosStoreRequest(value: object): value is IncidentsVideosStoreRequest {
46
+ if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined) return false;
47
+ if (!('originalFilename' in value) || value['originalFilename'] === undefined) return false;
48
+ if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function IncidentsVideosStoreRequestFromJSON(json: any): IncidentsVideosStoreRequest {
53
+ return IncidentsVideosStoreRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function IncidentsVideosStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosStoreRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'rawBlobPath': json['raw_blob_path'],
63
+ 'originalFilename': json['original_filename'],
64
+ 'mimeType': json['mime_type'],
65
+ };
66
+ }
67
+
68
+ export function IncidentsVideosStoreRequestToJSON(json: any): IncidentsVideosStoreRequest {
69
+ return IncidentsVideosStoreRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function IncidentsVideosStoreRequestToJSONTyped(value?: IncidentsVideosStoreRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'raw_blob_path': value['rawBlobPath'],
80
+ 'original_filename': value['originalFilename'],
81
+ 'mime_type': value['mimeType'],
82
+ };
83
+ }
84
+
@@ -0,0 +1,84 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface IncidentsVideosUploadTokenRequest
20
+ */
21
+ export interface IncidentsVideosUploadTokenRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof IncidentsVideosUploadTokenRequest
26
+ */
27
+ filename: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof IncidentsVideosUploadTokenRequest
32
+ */
33
+ mimeType: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof IncidentsVideosUploadTokenRequest
38
+ */
39
+ sizeBytes: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
44
+ */
45
+ export function instanceOfIncidentsVideosUploadTokenRequest(value: object): value is IncidentsVideosUploadTokenRequest {
46
+ if (!('filename' in value) || value['filename'] === undefined) return false;
47
+ if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
48
+ if (!('sizeBytes' in value) || value['sizeBytes'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function IncidentsVideosUploadTokenRequestFromJSON(json: any): IncidentsVideosUploadTokenRequest {
53
+ return IncidentsVideosUploadTokenRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function IncidentsVideosUploadTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosUploadTokenRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'filename': json['filename'],
63
+ 'mimeType': json['mime_type'],
64
+ 'sizeBytes': json['size_bytes'],
65
+ };
66
+ }
67
+
68
+ export function IncidentsVideosUploadTokenRequestToJSON(json: any): IncidentsVideosUploadTokenRequest {
69
+ return IncidentsVideosUploadTokenRequestToJSONTyped(json, false);
70
+ }
71
+
72
+ export function IncidentsVideosUploadTokenRequestToJSONTyped(value?: IncidentsVideosUploadTokenRequest | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'filename': value['filename'],
80
+ 'mime_type': value['mimeType'],
81
+ 'size_bytes': value['sizeBytes'],
82
+ };
83
+ }
84
+
@@ -25,18 +25,6 @@ export interface LicencesVerifyRequest {
25
25
  * @memberof LicencesVerifyRequest
26
26
  */
27
27
  state: LicencesVerifyRequestStateEnum;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof LicencesVerifyRequest
32
- */
33
- userId?: number;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof LicencesVerifyRequest
38
- */
39
- licenceId?: number;
40
28
  /**
41
29
  *
42
30
  * @type {string}
@@ -45,22 +33,16 @@ export interface LicencesVerifyRequest {
45
33
  licenceNumber: string;
46
34
  /**
47
35
  *
48
- * @type {string}
49
- * @memberof LicencesVerifyRequest
50
- */
51
- givenName: string;
52
- /**
53
- *
54
- * @type {string}
36
+ * @type {Date}
55
37
  * @memberof LicencesVerifyRequest
56
38
  */
57
- lastName: string;
39
+ expiryDate: Date;
58
40
  /**
59
41
  *
60
42
  * @type {string}
61
43
  * @memberof LicencesVerifyRequest
62
44
  */
63
- expiryDate: string;
45
+ name: string;
64
46
  }
65
47
 
66
48
 
@@ -86,9 +68,8 @@ export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEn
86
68
  export function instanceOfLicencesVerifyRequest(value: object): value is LicencesVerifyRequest {
87
69
  if (!('state' in value) || value['state'] === undefined) return false;
88
70
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
89
- if (!('givenName' in value) || value['givenName'] === undefined) return false;
90
- if (!('lastName' in value) || value['lastName'] === undefined) return false;
91
71
  if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
72
+ if (!('name' in value) || value['name'] === undefined) return false;
92
73
  return true;
93
74
  }
94
75
 
@@ -103,12 +84,9 @@ export function LicencesVerifyRequestFromJSONTyped(json: any, ignoreDiscriminato
103
84
  return {
104
85
 
105
86
  'state': json['state'],
106
- 'userId': json['user_id'] == null ? undefined : json['user_id'],
107
- 'licenceId': json['licence_id'] == null ? undefined : json['licence_id'],
108
87
  'licenceNumber': json['licence_number'],
109
- 'givenName': json['given_name'],
110
- 'lastName': json['last_name'],
111
- 'expiryDate': json['expiry_date'],
88
+ 'expiryDate': (new Date(json['expiry_date'])),
89
+ 'name': json['name'],
112
90
  };
113
91
  }
114
92
 
@@ -124,12 +102,9 @@ export function LicencesVerifyRequestToJSONTyped(value?: LicencesVerifyRequest |
124
102
  return {
125
103
 
126
104
  'state': value['state'],
127
- 'user_id': value['userId'],
128
- 'licence_id': value['licenceId'],
129
105
  'licence_number': value['licenceNumber'],
130
- 'given_name': value['givenName'],
131
- 'last_name': value['lastName'],
132
- 'expiry_date': value['expiryDate'],
106
+ 'expiry_date': ((value['expiryDate']).toISOString()),
107
+ 'name': value['name'],
133
108
  };
134
109
  }
135
110
 
@@ -63,13 +63,13 @@ export interface RegisterListResource {
63
63
  * @type {Date}
64
64
  * @memberof RegisterListResource
65
65
  */
66
- finishDateTime: Date;
66
+ finishDateTime?: Date | null;
67
67
  /**
68
68
  *
69
- * @type {string}
69
+ * @type {object}
70
70
  * @memberof RegisterListResource
71
71
  */
72
- shiftLength: string;
72
+ shiftLength: object;
73
73
  /**
74
74
  *
75
75
  * @type {number}
@@ -181,7 +181,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
181
181
  if (!('user' in value) || value['user'] === undefined) return false;
182
182
  if (!('venue' in value) || value['venue'] === undefined) return false;
183
183
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
184
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
185
184
  if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
186
185
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
187
186
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
@@ -215,7 +214,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
215
214
  'user': UserLiteResourceFromJSON(json['user']),
216
215
  'venue': VenueLiteResourceFromJSON(json['venue']),
217
216
  'startDateTime': (new Date(json['startDateTime'])),
218
- 'finishDateTime': (new Date(json['finishDateTime'])),
217
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
219
218
  'shiftLength': json['shiftLength'],
220
219
  'signOffStatus': json['signOffStatus'],
221
220
  'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
@@ -252,7 +251,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
252
251
  'user': UserLiteResourceToJSON(value['user']),
253
252
  'venue': VenueLiteResourceToJSON(value['venue']),
254
253
  'startDateTime': ((value['startDateTime']).toISOString()),
255
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
254
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
256
255
  'shiftLength': value['shiftLength'],
257
256
  'signOffStatus': value['signOffStatus'],
258
257
  'badgeNumber': value['badgeNumber'],
@@ -123,7 +123,7 @@ export interface RegisterResource {
123
123
  * @type {number}
124
124
  * @memberof RegisterResource
125
125
  */
126
- signOffLat: number;
126
+ signOffLat?: number | null;
127
127
  /**
128
128
  *
129
129
  * @type {number}
@@ -191,7 +191,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
191
191
  if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
192
192
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
193
193
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
194
- if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
195
194
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
196
195
  if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
197
196
  if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
@@ -223,7 +222,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
223
222
  'firstAidImage': json['firstAidImage'],
224
223
  'signOnLat': json['signOnLat'],
225
224
  'signOnLong': json['signOnLong'],
226
- 'signOffLat': json['signOffLat'],
225
+ 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
227
226
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
228
227
  'licenceNumber': json['licenceNumber'],
229
228
  'licenceExpiry': json['licenceExpiry'],
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
36
36
  * @type {Date}
37
37
  * @memberof RosterLiteResource
38
38
  */
39
- finishDateTime: Date;
39
+ finishDateTime?: Date | null;
40
40
  }
41
41
 
42
42
  /**
@@ -44,7 +44,6 @@ export interface RosterLiteResource {
44
44
  */
45
45
  export function instanceOfRosterLiteResource(value: object): value is RosterLiteResource {
46
46
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
47
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
48
47
  return true;
49
48
  }
50
49
 
@@ -60,7 +59,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
60
59
 
61
60
  'id': json['id'] == null ? undefined : json['id'],
62
61
  'startDateTime': (new Date(json['startDateTime'])),
63
- 'finishDateTime': (new Date(json['finishDateTime'])),
62
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
64
63
  };
65
64
  }
66
65
 
@@ -77,7 +76,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
77
76
 
78
77
  'id': value['id'],
79
78
  'startDateTime': ((value['startDateTime']).toISOString()),
80
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
79
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
81
80
  };
82
81
  }
83
82
 
@@ -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'],
@@ -11,9 +11,26 @@ export * from './AssetResourceArrayResponse';
11
11
  export * from './CurrentRegisterResource';
12
12
  export * from './CurrentRegisterResourceArrayResponse';
13
13
  export * from './GenericResponse';
14
+ export * from './IncidentFieldAuditResource';
15
+ export * from './IncidentFieldAuditResourceArrayResponse';
14
16
  export * from './IncidentFieldSchemaResource';
15
17
  export * from './IncidentFieldSchemaResourceArrayResponse';
16
18
  export * from './IncidentFieldSchemasShowRequest';
19
+ export * from './IncidentFieldsResourceArrayResponse';
20
+ export * from './IncidentResource';
21
+ export * from './IncidentResourceArrayResponse';
22
+ export * from './IncidentVersionResource';
23
+ export * from './IncidentVersionResourceArrayResponse';
24
+ export * from './IncidentVideoResource';
25
+ export * from './IncidentVideoResourceArrayResponse';
26
+ export * from './IncidentVideoSignedUrlResource';
27
+ export * from './IncidentVideoSignedUrlResourceArrayResponse';
28
+ export * from './IncidentVideoUploadTokenResource';
29
+ export * from './IncidentVideoUploadTokenResourceArrayResponse';
30
+ export * from './IncidentsStoreRequest';
31
+ export * from './IncidentsUpdateRequest';
32
+ export * from './IncidentsVideosStoreRequest';
33
+ export * from './IncidentsVideosUploadTokenRequest';
17
34
  export * from './IndexMinimalUserRequest';
18
35
  export * from './IndexUserRequest';
19
36
  export * from './LicenceListResource';
@@ -22,8 +39,6 @@ export * from './LicenceLiteResource';
22
39
  export * from './LicenceLiteResourceArrayResponse';
23
40
  export * from './LicenceResource';
24
41
  export * from './LicenceResourceArrayResponse';
25
- export * from './LicenceVerificationResultResource';
26
- export * from './LicenceVerificationResultResourceArrayResponse';
27
42
  export * from './LicencesListAllRequest';
28
43
  export * from './LicencesListRequest';
29
44
  export * from './LicencesStoreRequest';
@@ -1,44 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
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
- /**
13
- *
14
- * @export
15
- * @interface LicenceVerificationResultResource
16
- */
17
- export interface LicenceVerificationResultResource {
18
- /**
19
- *
20
- * @type {boolean}
21
- * @memberof LicenceVerificationResultResource
22
- */
23
- verified: boolean;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof LicenceVerificationResultResource
28
- */
29
- message: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof LicenceVerificationResultResource
34
- */
35
- result: string;
36
- }
37
- /**
38
- * Check if a given object implements the LicenceVerificationResultResource interface.
39
- */
40
- export declare function instanceOfLicenceVerificationResultResource(value: object): value is LicenceVerificationResultResource;
41
- export declare function LicenceVerificationResultResourceFromJSON(json: any): LicenceVerificationResultResource;
42
- export declare function LicenceVerificationResultResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceVerificationResultResource;
43
- export declare function LicenceVerificationResultResourceToJSON(json: any): LicenceVerificationResultResource;
44
- export declare function LicenceVerificationResultResourceToJSONTyped(value?: LicenceVerificationResultResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,59 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
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.instanceOfLicenceVerificationResultResource = instanceOfLicenceVerificationResultResource;
17
- exports.LicenceVerificationResultResourceFromJSON = LicenceVerificationResultResourceFromJSON;
18
- exports.LicenceVerificationResultResourceFromJSONTyped = LicenceVerificationResultResourceFromJSONTyped;
19
- exports.LicenceVerificationResultResourceToJSON = LicenceVerificationResultResourceToJSON;
20
- exports.LicenceVerificationResultResourceToJSONTyped = LicenceVerificationResultResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the LicenceVerificationResultResource interface.
23
- */
24
- function instanceOfLicenceVerificationResultResource(value) {
25
- if (!('verified' in value) || value['verified'] === undefined)
26
- return false;
27
- if (!('message' in value) || value['message'] === undefined)
28
- return false;
29
- if (!('result' in value) || value['result'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function LicenceVerificationResultResourceFromJSON(json) {
34
- return LicenceVerificationResultResourceFromJSONTyped(json, false);
35
- }
36
- function LicenceVerificationResultResourceFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'verified': json['verified'],
42
- 'message': json['message'],
43
- 'result': json['result'],
44
- };
45
- }
46
- function LicenceVerificationResultResourceToJSON(json) {
47
- return LicenceVerificationResultResourceToJSONTyped(json, false);
48
- }
49
- function LicenceVerificationResultResourceToJSONTyped(value, ignoreDiscriminator) {
50
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
- if (value == null) {
52
- return value;
53
- }
54
- return {
55
- 'verified': value['verified'],
56
- 'message': value['message'],
57
- 'result': value['result'],
58
- };
59
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
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 { LicenceVerificationResultResource } from './LicenceVerificationResultResource';
13
- /**
14
- *
15
- * @export
16
- * @interface LicenceVerificationResultResourceArrayResponse
17
- */
18
- export interface LicenceVerificationResultResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<LicenceVerificationResultResource>}
22
- * @memberof LicenceVerificationResultResourceArrayResponse
23
- */
24
- data?: Array<LicenceVerificationResultResource>;
25
- }
26
- /**
27
- * Check if a given object implements the LicenceVerificationResultResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfLicenceVerificationResultResourceArrayResponse(value: object): value is LicenceVerificationResultResourceArrayResponse;
30
- export declare function LicenceVerificationResultResourceArrayResponseFromJSON(json: any): LicenceVerificationResultResourceArrayResponse;
31
- export declare function LicenceVerificationResultResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceVerificationResultResourceArrayResponse;
32
- export declare function LicenceVerificationResultResourceArrayResponseToJSON(json: any): LicenceVerificationResultResourceArrayResponse;
33
- export declare function LicenceVerificationResultResourceArrayResponseToJSONTyped(value?: LicenceVerificationResultResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;