@digital8/security-registers-backend-ts-sdk 0.0.228 → 0.0.230

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 (51) hide show
  1. package/.openapi-generator/FILES +2 -8
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +1 -72
  4. package/dist/apis/GeneralApi.js +0 -352
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +1 -3
  7. package/dist/models/IncidentLiteResource.d.ts +38 -0
  8. package/dist/models/IncidentLiteResource.js +54 -0
  9. package/dist/models/IncidentLiteResourceArrayResponse.d.ts +33 -0
  10. package/dist/models/IncidentLiteResourceArrayResponse.js +50 -0
  11. package/dist/models/IncidentResource.d.ts +0 -7
  12. package/dist/models/IncidentResource.js +0 -5
  13. package/dist/models/RegisterListResource.d.ts +4 -3
  14. package/dist/models/RegisterListResource.js +6 -3
  15. package/dist/models/RegisterResource.d.ts +3 -3
  16. package/dist/models/RegisterResource.js +5 -7
  17. package/dist/models/index.d.ts +2 -8
  18. package/dist/models/index.js +2 -8
  19. package/package.json +1 -1
  20. package/src/apis/GeneralApi.ts +0 -344
  21. package/src/models/AddressResource.ts +2 -3
  22. package/src/models/IncidentLiteResource.ts +74 -0
  23. package/src/models/IncidentLiteResourceArrayResponse.ts +73 -0
  24. package/src/models/IncidentResource.ts +0 -16
  25. package/src/models/RegisterListResource.ts +14 -6
  26. package/src/models/RegisterResource.ts +7 -8
  27. package/src/models/index.ts +2 -8
  28. package/dist/models/IncidentVideoResource.d.ts +0 -74
  29. package/dist/models/IncidentVideoResource.js +0 -72
  30. package/dist/models/IncidentVideoResourceArrayResponse.d.ts +0 -33
  31. package/dist/models/IncidentVideoResourceArrayResponse.js +0 -50
  32. package/dist/models/IncidentVideoSignedUrlResource.d.ts +0 -32
  33. package/dist/models/IncidentVideoSignedUrlResource.js +0 -51
  34. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +0 -33
  35. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +0 -50
  36. package/dist/models/IncidentVideoUploadTokenResource.d.ts +0 -50
  37. package/dist/models/IncidentVideoUploadTokenResource.js +0 -63
  38. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +0 -33
  39. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +0 -50
  40. package/dist/models/IncidentsVideosStoreRequest.d.ts +0 -44
  41. package/dist/models/IncidentsVideosStoreRequest.js +0 -59
  42. package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +0 -44
  43. package/dist/models/IncidentsVideosUploadTokenRequest.js +0 -59
  44. package/src/models/IncidentVideoResource.ts +0 -125
  45. package/src/models/IncidentVideoResourceArrayResponse.ts +0 -73
  46. package/src/models/IncidentVideoSignedUrlResource.ts +0 -66
  47. package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +0 -73
  48. package/src/models/IncidentVideoUploadTokenResource.ts +0 -93
  49. package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +0 -73
  50. package/src/models/IncidentsVideosStoreRequest.ts +0 -84
  51. package/src/models/IncidentsVideosUploadTokenRequest.ts +0 -84
@@ -22,14 +22,9 @@ import type {
22
22
  IncidentResource,
23
23
  IncidentVersionResource,
24
24
  IncidentVersionResourceArrayResponse,
25
- IncidentVideoResource,
26
- IncidentVideoSignedUrlResource,
27
- IncidentVideoUploadTokenResource,
28
25
  IncidentsApproveRequest,
29
26
  IncidentsStoreRequest,
30
27
  IncidentsUpdateRequest,
31
- IncidentsVideosStoreRequest,
32
- IncidentsVideosUploadTokenRequest,
33
28
  IndexMinimalUserRequest,
34
29
  IndexUserRequest,
35
30
  LicenceLiteResourceArrayResponse,
@@ -111,22 +106,12 @@ import {
111
106
  IncidentVersionResourceToJSON,
112
107
  IncidentVersionResourceArrayResponseFromJSON,
113
108
  IncidentVersionResourceArrayResponseToJSON,
114
- IncidentVideoResourceFromJSON,
115
- IncidentVideoResourceToJSON,
116
- IncidentVideoSignedUrlResourceFromJSON,
117
- IncidentVideoSignedUrlResourceToJSON,
118
- IncidentVideoUploadTokenResourceFromJSON,
119
- IncidentVideoUploadTokenResourceToJSON,
120
109
  IncidentsApproveRequestFromJSON,
121
110
  IncidentsApproveRequestToJSON,
122
111
  IncidentsStoreRequestFromJSON,
123
112
  IncidentsStoreRequestToJSON,
124
113
  IncidentsUpdateRequestFromJSON,
125
114
  IncidentsUpdateRequestToJSON,
126
- IncidentsVideosStoreRequestFromJSON,
127
- IncidentsVideosStoreRequestToJSON,
128
- IncidentsVideosUploadTokenRequestFromJSON,
129
- IncidentsVideosUploadTokenRequestToJSON,
130
115
  IndexMinimalUserRequestFromJSON,
131
116
  IndexMinimalUserRequestToJSON,
132
117
  IndexUserRequestFromJSON,
@@ -272,10 +257,6 @@ export interface IncidentsApproveOperationRequest {
272
257
  incidentsApproveRequest?: IncidentsApproveRequest;
273
258
  }
274
259
 
275
- export interface IncidentsShowRequest {
276
- incident: number;
277
- }
278
-
279
260
  export interface IncidentsStoreOperationRequest {
280
261
  incidentsStoreRequest?: IncidentsStoreRequest;
281
262
  }
@@ -298,31 +279,6 @@ export interface IncidentsVersionsShowRequest {
298
279
  version: number;
299
280
  }
300
281
 
301
- export interface IncidentsVideosDestroyRequest {
302
- incident: number;
303
- video: number;
304
- }
305
-
306
- export interface IncidentsVideosRetryRequest {
307
- incident: number;
308
- video: number;
309
- }
310
-
311
- export interface IncidentsVideosSignedUrlRequest {
312
- incident: number;
313
- video: number;
314
- }
315
-
316
- export interface IncidentsVideosStoreOperationRequest {
317
- incident: number;
318
- incidentsVideosStoreRequest?: IncidentsVideosStoreRequest;
319
- }
320
-
321
- export interface IncidentsVideosUploadTokenOperationRequest {
322
- incident: number;
323
- incidentsVideosUploadTokenRequest?: IncidentsVideosUploadTokenRequest;
324
- }
325
-
326
282
  export interface IndexMinimalUserOperationRequest {
327
283
  indexMinimalUserRequest?: IndexMinimalUserRequest;
328
284
  }
@@ -744,51 +700,6 @@ export class GeneralApi extends runtime.BaseAPI {
744
700
  return await response.value();
745
701
  }
746
702
 
747
- /**
748
- * Auto-generated: incidents.show
749
- */
750
- async incidentsShowRaw(requestParameters: IncidentsShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentResource>> {
751
- if (requestParameters['incident'] == null) {
752
- throw new runtime.RequiredError(
753
- 'incident',
754
- 'Required parameter "incident" was null or undefined when calling incidentsShow().'
755
- );
756
- }
757
-
758
- const queryParameters: any = {};
759
-
760
- const headerParameters: runtime.HTTPHeaders = {};
761
-
762
- if (this.configuration && this.configuration.accessToken) {
763
- const token = this.configuration.accessToken;
764
- const tokenString = await token("bearerAuth", []);
765
-
766
- if (tokenString) {
767
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
768
- }
769
- }
770
-
771
- let urlPath = `/api/incidents/{incident}`;
772
- urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
773
-
774
- const response = await this.request({
775
- path: urlPath,
776
- method: 'GET',
777
- headers: headerParameters,
778
- query: queryParameters,
779
- }, initOverrides);
780
-
781
- return new runtime.JSONApiResponse(response, (jsonValue) => IncidentResourceFromJSON(jsonValue));
782
- }
783
-
784
- /**
785
- * Auto-generated: incidents.show
786
- */
787
- async incidentsShow(requestParameters: IncidentsShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentResource> {
788
- const response = await this.incidentsShowRaw(requestParameters, initOverrides);
789
- return await response.value();
790
- }
791
-
792
703
  /**
793
704
  * Auto-generated: incidents.store
794
705
  */
@@ -1020,261 +931,6 @@ export class GeneralApi extends runtime.BaseAPI {
1020
931
  return await response.value();
1021
932
  }
1022
933
 
1023
- /**
1024
- * Auto-generated: incidents.videos.destroy
1025
- */
1026
- async incidentsVideosDestroyRaw(requestParameters: IncidentsVideosDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
1027
- if (requestParameters['incident'] == null) {
1028
- throw new runtime.RequiredError(
1029
- 'incident',
1030
- 'Required parameter "incident" was null or undefined when calling incidentsVideosDestroy().'
1031
- );
1032
- }
1033
-
1034
- if (requestParameters['video'] == null) {
1035
- throw new runtime.RequiredError(
1036
- 'video',
1037
- 'Required parameter "video" was null or undefined when calling incidentsVideosDestroy().'
1038
- );
1039
- }
1040
-
1041
- const queryParameters: any = {};
1042
-
1043
- const headerParameters: runtime.HTTPHeaders = {};
1044
-
1045
- if (this.configuration && this.configuration.accessToken) {
1046
- const token = this.configuration.accessToken;
1047
- const tokenString = await token("bearerAuth", []);
1048
-
1049
- if (tokenString) {
1050
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1051
- }
1052
- }
1053
-
1054
- let urlPath = `/api/incidents/{incident}/videos/{video}`;
1055
- urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
1056
- urlPath = urlPath.replace(`{${"video"}}`, encodeURIComponent(String(requestParameters['video'])));
1057
-
1058
- const response = await this.request({
1059
- path: urlPath,
1060
- method: 'DELETE',
1061
- headers: headerParameters,
1062
- query: queryParameters,
1063
- }, initOverrides);
1064
-
1065
- return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
1066
- }
1067
-
1068
- /**
1069
- * Auto-generated: incidents.videos.destroy
1070
- */
1071
- async incidentsVideosDestroy(requestParameters: IncidentsVideosDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
1072
- const response = await this.incidentsVideosDestroyRaw(requestParameters, initOverrides);
1073
- return await response.value();
1074
- }
1075
-
1076
- /**
1077
- * Auto-generated: incidents.videos.retry
1078
- */
1079
- async incidentsVideosRetryRaw(requestParameters: IncidentsVideosRetryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentVideoResource>> {
1080
- if (requestParameters['incident'] == null) {
1081
- throw new runtime.RequiredError(
1082
- 'incident',
1083
- 'Required parameter "incident" was null or undefined when calling incidentsVideosRetry().'
1084
- );
1085
- }
1086
-
1087
- if (requestParameters['video'] == null) {
1088
- throw new runtime.RequiredError(
1089
- 'video',
1090
- 'Required parameter "video" was null or undefined when calling incidentsVideosRetry().'
1091
- );
1092
- }
1093
-
1094
- const queryParameters: any = {};
1095
-
1096
- const headerParameters: runtime.HTTPHeaders = {};
1097
-
1098
- if (this.configuration && this.configuration.accessToken) {
1099
- const token = this.configuration.accessToken;
1100
- const tokenString = await token("bearerAuth", []);
1101
-
1102
- if (tokenString) {
1103
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1104
- }
1105
- }
1106
-
1107
- let urlPath = `/api/incidents/{incident}/videos/{video}/retry`;
1108
- urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
1109
- urlPath = urlPath.replace(`{${"video"}}`, encodeURIComponent(String(requestParameters['video'])));
1110
-
1111
- const response = await this.request({
1112
- path: urlPath,
1113
- method: 'POST',
1114
- headers: headerParameters,
1115
- query: queryParameters,
1116
- }, initOverrides);
1117
-
1118
- return new runtime.JSONApiResponse(response, (jsonValue) => IncidentVideoResourceFromJSON(jsonValue));
1119
- }
1120
-
1121
- /**
1122
- * Auto-generated: incidents.videos.retry
1123
- */
1124
- async incidentsVideosRetry(requestParameters: IncidentsVideosRetryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentVideoResource> {
1125
- const response = await this.incidentsVideosRetryRaw(requestParameters, initOverrides);
1126
- return await response.value();
1127
- }
1128
-
1129
- /**
1130
- * Auto-generated: incidents.videos.signedUrl
1131
- */
1132
- async incidentsVideosSignedUrlRaw(requestParameters: IncidentsVideosSignedUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentVideoSignedUrlResource>> {
1133
- if (requestParameters['incident'] == null) {
1134
- throw new runtime.RequiredError(
1135
- 'incident',
1136
- 'Required parameter "incident" was null or undefined when calling incidentsVideosSignedUrl().'
1137
- );
1138
- }
1139
-
1140
- if (requestParameters['video'] == null) {
1141
- throw new runtime.RequiredError(
1142
- 'video',
1143
- 'Required parameter "video" was null or undefined when calling incidentsVideosSignedUrl().'
1144
- );
1145
- }
1146
-
1147
- const queryParameters: any = {};
1148
-
1149
- const headerParameters: runtime.HTTPHeaders = {};
1150
-
1151
- if (this.configuration && this.configuration.accessToken) {
1152
- const token = this.configuration.accessToken;
1153
- const tokenString = await token("bearerAuth", []);
1154
-
1155
- if (tokenString) {
1156
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1157
- }
1158
- }
1159
-
1160
- let urlPath = `/api/incidents/{incident}/videos/{video}/signed-url`;
1161
- urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
1162
- urlPath = urlPath.replace(`{${"video"}}`, encodeURIComponent(String(requestParameters['video'])));
1163
-
1164
- const response = await this.request({
1165
- path: urlPath,
1166
- method: 'GET',
1167
- headers: headerParameters,
1168
- query: queryParameters,
1169
- }, initOverrides);
1170
-
1171
- return new runtime.JSONApiResponse(response, (jsonValue) => IncidentVideoSignedUrlResourceFromJSON(jsonValue));
1172
- }
1173
-
1174
- /**
1175
- * Auto-generated: incidents.videos.signedUrl
1176
- */
1177
- async incidentsVideosSignedUrl(requestParameters: IncidentsVideosSignedUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentVideoSignedUrlResource> {
1178
- const response = await this.incidentsVideosSignedUrlRaw(requestParameters, initOverrides);
1179
- return await response.value();
1180
- }
1181
-
1182
- /**
1183
- * Auto-generated: incidents.videos.store
1184
- */
1185
- async incidentsVideosStoreRaw(requestParameters: IncidentsVideosStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentVideoResource>> {
1186
- if (requestParameters['incident'] == null) {
1187
- throw new runtime.RequiredError(
1188
- 'incident',
1189
- 'Required parameter "incident" was null or undefined when calling incidentsVideosStore().'
1190
- );
1191
- }
1192
-
1193
- const queryParameters: any = {};
1194
-
1195
- const headerParameters: runtime.HTTPHeaders = {};
1196
-
1197
- headerParameters['Content-Type'] = 'application/json';
1198
-
1199
- if (this.configuration && this.configuration.accessToken) {
1200
- const token = this.configuration.accessToken;
1201
- const tokenString = await token("bearerAuth", []);
1202
-
1203
- if (tokenString) {
1204
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1205
- }
1206
- }
1207
-
1208
- let urlPath = `/api/incidents/{incident}/videos`;
1209
- urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
1210
-
1211
- const response = await this.request({
1212
- path: urlPath,
1213
- method: 'POST',
1214
- headers: headerParameters,
1215
- query: queryParameters,
1216
- body: IncidentsVideosStoreRequestToJSON(requestParameters['incidentsVideosStoreRequest']),
1217
- }, initOverrides);
1218
-
1219
- return new runtime.JSONApiResponse(response, (jsonValue) => IncidentVideoResourceFromJSON(jsonValue));
1220
- }
1221
-
1222
- /**
1223
- * Auto-generated: incidents.videos.store
1224
- */
1225
- async incidentsVideosStore(requestParameters: IncidentsVideosStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentVideoResource> {
1226
- const response = await this.incidentsVideosStoreRaw(requestParameters, initOverrides);
1227
- return await response.value();
1228
- }
1229
-
1230
- /**
1231
- * Auto-generated: incidents.videos.uploadToken
1232
- */
1233
- async incidentsVideosUploadTokenRaw(requestParameters: IncidentsVideosUploadTokenOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentVideoUploadTokenResource>> {
1234
- if (requestParameters['incident'] == null) {
1235
- throw new runtime.RequiredError(
1236
- 'incident',
1237
- 'Required parameter "incident" was null or undefined when calling incidentsVideosUploadToken().'
1238
- );
1239
- }
1240
-
1241
- const queryParameters: any = {};
1242
-
1243
- const headerParameters: runtime.HTTPHeaders = {};
1244
-
1245
- headerParameters['Content-Type'] = 'application/json';
1246
-
1247
- if (this.configuration && this.configuration.accessToken) {
1248
- const token = this.configuration.accessToken;
1249
- const tokenString = await token("bearerAuth", []);
1250
-
1251
- if (tokenString) {
1252
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1253
- }
1254
- }
1255
-
1256
- let urlPath = `/api/incidents/{incident}/videos/upload-token`;
1257
- urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
1258
-
1259
- const response = await this.request({
1260
- path: urlPath,
1261
- method: 'POST',
1262
- headers: headerParameters,
1263
- query: queryParameters,
1264
- body: IncidentsVideosUploadTokenRequestToJSON(requestParameters['incidentsVideosUploadTokenRequest']),
1265
- }, initOverrides);
1266
-
1267
- return new runtime.JSONApiResponse(response, (jsonValue) => IncidentVideoUploadTokenResourceFromJSON(jsonValue));
1268
- }
1269
-
1270
- /**
1271
- * Auto-generated: incidents.videos.uploadToken
1272
- */
1273
- async incidentsVideosUploadToken(requestParameters: IncidentsVideosUploadTokenOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentVideoUploadTokenResource> {
1274
- const response = await this.incidentsVideosUploadTokenRaw(requestParameters, initOverrides);
1275
- return await response.value();
1276
- }
1277
-
1278
934
  /**
1279
935
  * Auto-generated: indexMinimalUser
1280
936
  */
@@ -36,7 +36,7 @@ export interface AddressResource {
36
36
  * @type {string}
37
37
  * @memberof AddressResource
38
38
  */
39
- addressLine2: string;
39
+ addressLine2?: string | null;
40
40
  /**
41
41
  *
42
42
  * @type {string}
@@ -80,7 +80,6 @@ export interface AddressResource {
80
80
  */
81
81
  export function instanceOfAddressResource(value: object): value is AddressResource {
82
82
  if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
83
- if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
84
83
  if (!('suburb' in value) || value['suburb'] === undefined) return false;
85
84
  if (!('city' in value) || value['city'] === undefined) return false;
86
85
  if (!('state' in value) || value['state'] === undefined) return false;
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
102
101
 
103
102
  'id': json['id'] == null ? undefined : json['id'],
104
103
  'addressLine1': json['addressLine1'],
105
- 'addressLine2': json['addressLine2'],
104
+ 'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
106
105
  'suburb': json['suburb'],
107
106
  'city': json['city'],
108
107
  'state': json['state'],
@@ -0,0 +1,74 @@
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 IncidentLiteResource
20
+ */
21
+ export interface IncidentLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof IncidentLiteResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {Date}
31
+ * @memberof IncidentLiteResource
32
+ */
33
+ approvedAt?: Date | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the IncidentLiteResource interface.
38
+ */
39
+ export function instanceOfIncidentLiteResource(value: object): value is IncidentLiteResource {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function IncidentLiteResourceFromJSON(json: any): IncidentLiteResource {
45
+ return IncidentLiteResourceFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function IncidentLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentLiteResource {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'id': json['id'],
55
+ 'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
56
+ };
57
+ }
58
+
59
+ export function IncidentLiteResourceToJSON(json: any): IncidentLiteResource {
60
+ return IncidentLiteResourceToJSONTyped(json, false);
61
+ }
62
+
63
+ export function IncidentLiteResourceToJSONTyped(value?: IncidentLiteResource | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'id': value['id'],
71
+ 'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
72
+ };
73
+ }
74
+
@@ -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 { IncidentLiteResource } from './IncidentLiteResource';
17
+ import {
18
+ IncidentLiteResourceFromJSON,
19
+ IncidentLiteResourceFromJSONTyped,
20
+ IncidentLiteResourceToJSON,
21
+ IncidentLiteResourceToJSONTyped,
22
+ } from './IncidentLiteResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface IncidentLiteResourceArrayResponse
28
+ */
29
+ export interface IncidentLiteResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<IncidentLiteResource>}
33
+ * @memberof IncidentLiteResourceArrayResponse
34
+ */
35
+ data?: Array<IncidentLiteResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the IncidentLiteResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfIncidentLiteResourceArrayResponse(value: object): value is IncidentLiteResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function IncidentLiteResourceArrayResponseFromJSON(json: any): IncidentLiteResourceArrayResponse {
46
+ return IncidentLiteResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function IncidentLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentLiteResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentLiteResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function IncidentLiteResourceArrayResponseToJSON(json: any): IncidentLiteResourceArrayResponse {
60
+ return IncidentLiteResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function IncidentLiteResourceArrayResponseToJSONTyped(value?: IncidentLiteResourceArrayResponse | 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(IncidentLiteResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -48,13 +48,6 @@ import {
48
48
  SecurityCompanyLiteResourceToJSON,
49
49
  SecurityCompanyLiteResourceToJSONTyped,
50
50
  } from './SecurityCompanyLiteResource';
51
- import type { IncidentVideoResource } from './IncidentVideoResource';
52
- import {
53
- IncidentVideoResourceFromJSON,
54
- IncidentVideoResourceFromJSONTyped,
55
- IncidentVideoResourceToJSON,
56
- IncidentVideoResourceToJSONTyped,
57
- } from './IncidentVideoResource';
58
51
  import type { UserLiteResource } from './UserLiteResource';
59
52
  import {
60
53
  UserLiteResourceFromJSON,
@@ -154,12 +147,6 @@ export interface IncidentResource {
154
147
  * @memberof IncidentResource
155
148
  */
156
149
  fieldAudits: Array<IncidentFieldAuditResource> | null;
157
- /**
158
- *
159
- * @type {Array<IncidentVideoResource>}
160
- * @memberof IncidentResource
161
- */
162
- videos: Array<IncidentVideoResource> | null;
163
150
  }
164
151
 
165
152
  /**
@@ -176,7 +163,6 @@ export function instanceOfIncidentResource(value: object): value is IncidentReso
176
163
  if (!('incidentFieldSchema' in value) || value['incidentFieldSchema'] === undefined) return false;
177
164
  if (!('fields' in value) || value['fields'] === undefined) return false;
178
165
  if (!('fieldAudits' in value) || value['fieldAudits'] === undefined) return false;
179
- if (!('videos' in value) || value['videos'] === undefined) return false;
180
166
  return true;
181
167
  }
182
168
 
@@ -203,7 +189,6 @@ export function IncidentResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
203
189
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
204
190
  'fields': json['fields'],
205
191
  'fieldAudits': (json['fieldAudits'] == null ? null : (json['fieldAudits'] as Array<any>).map(IncidentFieldAuditResourceFromJSON)),
206
- 'videos': (json['videos'] == null ? null : (json['videos'] as Array<any>).map(IncidentVideoResourceFromJSON)),
207
192
  };
208
193
  }
209
194
 
@@ -231,7 +216,6 @@ export function IncidentResourceToJSONTyped(value?: IncidentResource | null, ign
231
216
  'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
232
217
  'fields': value['fields'],
233
218
  'fieldAudits': (value['fieldAudits'] == null ? null : (value['fieldAudits'] as Array<any>).map(IncidentFieldAuditResourceToJSON)),
234
- 'videos': (value['videos'] == null ? null : (value['videos'] as Array<any>).map(IncidentVideoResourceToJSON)),
235
219
  };
236
220
  }
237
221
 
@@ -27,6 +27,13 @@ import {
27
27
  UserLiteResourceToJSON,
28
28
  UserLiteResourceToJSONTyped,
29
29
  } from './UserLiteResource';
30
+ import type { IncidentLiteResource } from './IncidentLiteResource';
31
+ import {
32
+ IncidentLiteResourceFromJSON,
33
+ IncidentLiteResourceFromJSONTyped,
34
+ IncidentLiteResourceToJSON,
35
+ IncidentLiteResourceToJSONTyped,
36
+ } from './IncidentLiteResource';
30
37
 
31
38
  /**
32
39
  *
@@ -159,7 +166,7 @@ export interface RegisterListResource {
159
166
  * @type {number}
160
167
  * @memberof RegisterListResource
161
168
  */
162
- signOffLat?: number | null;
169
+ signOffLat: number;
163
170
  /**
164
171
  *
165
172
  * @type {number}
@@ -168,10 +175,10 @@ export interface RegisterListResource {
168
175
  signOffLong?: number | null;
169
176
  /**
170
177
  *
171
- * @type {Array<boolean>}
178
+ * @type {Array<IncidentLiteResource>}
172
179
  * @memberof RegisterListResource
173
180
  */
174
- incidents: Array<boolean>;
181
+ incidents: Array<IncidentLiteResource> | null;
175
182
  }
176
183
 
177
184
  /**
@@ -196,6 +203,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
196
203
  if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
197
204
  if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
198
205
  if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
206
+ if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
199
207
  if (!('incidents' in value) || value['incidents'] === undefined) return false;
200
208
  return true;
201
209
  }
@@ -230,9 +238,9 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
230
238
  'firstAid': json['firstAid'],
231
239
  'signOnLat': json['signOnLat'],
232
240
  'signOnLong': json['signOnLong'],
233
- 'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
241
+ 'signOffLat': json['signOffLat'],
234
242
  'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
235
- 'incidents': json['incidents'],
243
+ 'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
236
244
  };
237
245
  }
238
246
 
@@ -269,7 +277,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
269
277
  'signOnLong': value['signOnLong'],
270
278
  'signOffLat': value['signOffLat'],
271
279
  'signOffLong': value['signOffLong'],
272
- 'incidents': value['incidents'],
280
+ 'incidents': (value['incidents'] == null ? null : (value['incidents'] as Array<any>).map(IncidentLiteResourceToJSON)),
273
281
  };
274
282
  }
275
283