@digital8/security-registers-backend-ts-sdk 0.0.277 → 0.0.279

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 (39) hide show
  1. package/.openapi-generator/FILES +4 -1
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +7 -40
  4. package/dist/apis/GeneralApi.js +8 -176
  5. package/dist/models/IncidentListResource.d.ts +95 -0
  6. package/dist/models/IncidentListResource.js +75 -0
  7. package/dist/models/IncidentListResourceArrayResponse.d.ts +33 -0
  8. package/dist/models/IncidentListResourceArrayResponse.js +50 -0
  9. package/dist/models/IncidentsListRequest.d.ts +151 -0
  10. package/dist/models/IncidentsListRequest.js +99 -0
  11. package/dist/models/PaginatedIncidentListResourceResponse.d.ts +40 -0
  12. package/dist/models/PaginatedIncidentListResourceResponse.js +57 -0
  13. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  14. package/dist/models/RegisterGroupedByRosterResource.js +3 -4
  15. package/dist/models/RegisterResource.d.ts +3 -3
  16. package/dist/models/RegisterResource.js +9 -11
  17. package/dist/models/RosterListResource.d.ts +1 -1
  18. package/dist/models/RosterListResource.js +4 -3
  19. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  20. package/dist/models/RosterWithRegistersResource.js +3 -4
  21. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  22. package/dist/models/SecurityCompanyResource.js +1 -3
  23. package/dist/models/index.d.ts +4 -1
  24. package/dist/models/index.js +4 -1
  25. package/package.json +1 -1
  26. package/src/apis/GeneralApi.ts +16 -160
  27. package/src/models/IncidentListResource.ts +168 -0
  28. package/src/models/IncidentListResourceArrayResponse.ts +73 -0
  29. package/src/models/IncidentsListRequest.ts +222 -0
  30. package/src/models/PaginatedIncidentListResourceResponse.ts +90 -0
  31. package/src/models/RegisterGroupedByRosterResource.ts +3 -4
  32. package/src/models/RegisterResource.ts +8 -9
  33. package/src/models/RosterListResource.ts +4 -3
  34. package/src/models/RosterWithRegistersResource.ts +3 -4
  35. package/src/models/SecurityCompanyResource.ts +2 -3
  36. package/src/models/index.ts +4 -1
  37. package/dist/models/IncidentsExportPdfBulkRequest.d.ts +0 -56
  38. package/dist/models/IncidentsExportPdfBulkRequest.js +0 -63
  39. package/src/models/IncidentsExportPdfBulkRequest.ts +0 -100
@@ -35,6 +35,8 @@ __exportStar(require("./IncidentFieldSchemasShowRequest"), exports);
35
35
  __exportStar(require("./IncidentFieldsResourceArrayResponse"), exports);
36
36
  __exportStar(require("./IncidentImageResource"), exports);
37
37
  __exportStar(require("./IncidentImageResourceArrayResponse"), exports);
38
+ __exportStar(require("./IncidentListResource"), exports);
39
+ __exportStar(require("./IncidentListResourceArrayResponse"), exports);
38
40
  __exportStar(require("./IncidentLiteResource"), exports);
39
41
  __exportStar(require("./IncidentLiteResourceArrayResponse"), exports);
40
42
  __exportStar(require("./IncidentLiteResourceStaff"), exports);
@@ -49,7 +51,7 @@ __exportStar(require("./IncidentVideoSignedUrlResourceArrayResponse"), exports);
49
51
  __exportStar(require("./IncidentVideoUploadTokenResource"), exports);
50
52
  __exportStar(require("./IncidentVideoUploadTokenResourceArrayResponse"), exports);
51
53
  __exportStar(require("./IncidentsApproveRequest"), exports);
52
- __exportStar(require("./IncidentsExportPdfBulkRequest"), exports);
54
+ __exportStar(require("./IncidentsListRequest"), exports);
53
55
  __exportStar(require("./IncidentsStoreRequest"), exports);
54
56
  __exportStar(require("./IncidentsUpdateRequest"), exports);
55
57
  __exportStar(require("./IncidentsVideosStoreRequest"), exports);
@@ -73,6 +75,7 @@ __exportStar(require("./NotificationPreferenceResourceArrayResponse"), exports);
73
75
  __exportStar(require("./NotificationPreferencesStoreRequest"), exports);
74
76
  __exportStar(require("./NotificationTypeResource"), exports);
75
77
  __exportStar(require("./NotificationTypeResourceArrayResponse"), exports);
78
+ __exportStar(require("./PaginatedIncidentListResourceResponse"), exports);
76
79
  __exportStar(require("./PaginatedLicenceListResourceResponse"), exports);
77
80
  __exportStar(require("./PaginatedLicenceResourceResponse"), exports);
78
81
  __exportStar(require("./PaginatedRegisterGroupedByRosterResourceResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digital8/security-registers-backend-ts-sdk",
3
- "version": "0.0.277",
3
+ "version": "0.0.279",
4
4
  "description": "OpenAPI client for @digital8/security-registers-backend-ts-sdk",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -26,7 +26,7 @@ import type {
26
26
  IncidentVideoSignedUrlResource,
27
27
  IncidentVideoUploadTokenResource,
28
28
  IncidentsApproveRequest,
29
- IncidentsExportPdfBulkRequest,
29
+ IncidentsListRequest,
30
30
  IncidentsStoreRequest,
31
31
  IncidentsUpdateRequest,
32
32
  IncidentsVideosStoreRequest,
@@ -45,6 +45,7 @@ import type {
45
45
  NotificationPreferenceResourceArrayResponse,
46
46
  NotificationPreferencesStoreRequest,
47
47
  NotificationTypeResourceArrayResponse,
48
+ PaginatedIncidentListResourceResponse,
48
49
  PaginatedLicenceListResourceResponse,
49
50
  PaginatedRegisterGroupedByRosterResourceResponse,
50
51
  PaginatedRosterListResourceResponse,
@@ -121,8 +122,8 @@ import {
121
122
  IncidentVideoUploadTokenResourceToJSON,
122
123
  IncidentsApproveRequestFromJSON,
123
124
  IncidentsApproveRequestToJSON,
124
- IncidentsExportPdfBulkRequestFromJSON,
125
- IncidentsExportPdfBulkRequestToJSON,
125
+ IncidentsListRequestFromJSON,
126
+ IncidentsListRequestToJSON,
126
127
  IncidentsStoreRequestFromJSON,
127
128
  IncidentsStoreRequestToJSON,
128
129
  IncidentsUpdateRequestFromJSON,
@@ -159,6 +160,8 @@ import {
159
160
  NotificationPreferencesStoreRequestToJSON,
160
161
  NotificationTypeResourceArrayResponseFromJSON,
161
162
  NotificationTypeResourceArrayResponseToJSON,
163
+ PaginatedIncidentListResourceResponseFromJSON,
164
+ PaginatedIncidentListResourceResponseToJSON,
162
165
  PaginatedLicenceListResourceResponseFromJSON,
163
166
  PaginatedLicenceListResourceResponseToJSON,
164
167
  PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
@@ -278,20 +281,8 @@ export interface IncidentsApproveOperationRequest {
278
281
  incidentsApproveRequest?: IncidentsApproveRequest;
279
282
  }
280
283
 
281
- export interface IncidentsExportPdfRequest {
282
- incident: number;
283
- }
284
-
285
- export interface IncidentsExportPdfBulkOperationRequest {
286
- incidentsExportPdfBulkRequest?: IncidentsExportPdfBulkRequest;
287
- }
288
-
289
- export interface IncidentsExportPdfDownloadRequest {
290
- pdfExport: number;
291
- }
292
-
293
- export interface IncidentsExportPdfStatusRequest {
294
- pdfExport: number;
284
+ export interface IncidentsListOperationRequest {
285
+ incidentsListRequest?: IncidentsListRequest;
295
286
  }
296
287
 
297
288
  export interface IncidentsShowRequest {
@@ -771,54 +762,9 @@ export class GeneralApi extends runtime.BaseAPI {
771
762
  }
772
763
 
773
764
  /**
774
- * Auto-generated: incidents.exportPdf
775
- */
776
- async incidentsExportPdfRaw(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
777
- if (requestParameters['incident'] == null) {
778
- throw new runtime.RequiredError(
779
- 'incident',
780
- 'Required parameter "incident" was null or undefined when calling incidentsExportPdf().'
781
- );
782
- }
783
-
784
- const queryParameters: any = {};
785
-
786
- const headerParameters: runtime.HTTPHeaders = {};
787
-
788
- if (this.configuration && this.configuration.accessToken) {
789
- const token = this.configuration.accessToken;
790
- const tokenString = await token("bearerAuth", []);
791
-
792
- if (tokenString) {
793
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
794
- }
795
- }
796
-
797
- let urlPath = `/api/incidents/{incident}/export-pdf`;
798
- urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
799
-
800
- const response = await this.request({
801
- path: urlPath,
802
- method: 'POST',
803
- headers: headerParameters,
804
- query: queryParameters,
805
- }, initOverrides);
806
-
807
- return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
808
- }
809
-
810
- /**
811
- * Auto-generated: incidents.exportPdf
812
- */
813
- async incidentsExportPdf(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
814
- const response = await this.incidentsExportPdfRaw(requestParameters, initOverrides);
815
- return await response.value();
816
- }
817
-
818
- /**
819
- * Auto-generated: incidents.exportPdf.bulk
765
+ * Auto-generated: incidents.list
820
766
  */
821
- async incidentsExportPdfBulkRaw(requestParameters: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
767
+ async incidentsListRaw(requestParameters: IncidentsListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIncidentListResourceResponse>> {
822
768
  const queryParameters: any = {};
823
769
 
824
770
  const headerParameters: runtime.HTTPHeaders = {};
@@ -834,114 +780,24 @@ export class GeneralApi extends runtime.BaseAPI {
834
780
  }
835
781
  }
836
782
 
837
- let urlPath = `/api/incidents/export-pdf/bulk`;
838
-
839
- const response = await this.request({
840
- path: urlPath,
841
- method: 'POST',
842
- headers: headerParameters,
843
- query: queryParameters,
844
- body: IncidentsExportPdfBulkRequestToJSON(requestParameters['incidentsExportPdfBulkRequest']),
845
- }, initOverrides);
846
-
847
- return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
848
- }
849
-
850
- /**
851
- * Auto-generated: incidents.exportPdf.bulk
852
- */
853
- async incidentsExportPdfBulk(requestParameters: IncidentsExportPdfBulkOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
854
- const response = await this.incidentsExportPdfBulkRaw(requestParameters, initOverrides);
855
- return await response.value();
856
- }
857
-
858
- /**
859
- * Auto-generated: incidents.exportPdf.download
860
- */
861
- async incidentsExportPdfDownloadRaw(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
862
- if (requestParameters['pdfExport'] == null) {
863
- throw new runtime.RequiredError(
864
- 'pdfExport',
865
- 'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfDownload().'
866
- );
867
- }
868
-
869
- const queryParameters: any = {};
870
-
871
- const headerParameters: runtime.HTTPHeaders = {};
872
-
873
- if (this.configuration && this.configuration.accessToken) {
874
- const token = this.configuration.accessToken;
875
- const tokenString = await token("bearerAuth", []);
876
-
877
- if (tokenString) {
878
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
879
- }
880
- }
881
-
882
- let urlPath = `/api/incidents/export-pdf/{pdfExport}/download`;
883
- urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
884
-
885
- const response = await this.request({
886
- path: urlPath,
887
- method: 'GET',
888
- headers: headerParameters,
889
- query: queryParameters,
890
- }, initOverrides);
891
-
892
- return new runtime.BlobApiResponse(response);
893
- }
894
-
895
- /**
896
- * Auto-generated: incidents.exportPdf.download
897
- */
898
- async incidentsExportPdfDownload(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
899
- const response = await this.incidentsExportPdfDownloadRaw(requestParameters, initOverrides);
900
- return await response.value();
901
- }
902
-
903
- /**
904
- * Auto-generated: incidents.exportPdf.status
905
- */
906
- async incidentsExportPdfStatusRaw(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportResource>> {
907
- if (requestParameters['pdfExport'] == null) {
908
- throw new runtime.RequiredError(
909
- 'pdfExport',
910
- 'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfStatus().'
911
- );
912
- }
913
-
914
- const queryParameters: any = {};
915
-
916
- const headerParameters: runtime.HTTPHeaders = {};
917
-
918
- if (this.configuration && this.configuration.accessToken) {
919
- const token = this.configuration.accessToken;
920
- const tokenString = await token("bearerAuth", []);
921
-
922
- if (tokenString) {
923
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
924
- }
925
- }
926
-
927
- let urlPath = `/api/incidents/export-pdf/{pdfExport}/status`;
928
- urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
783
+ let urlPath = `/api/incidents/list`;
929
784
 
930
785
  const response = await this.request({
931
786
  path: urlPath,
932
787
  method: 'POST',
933
788
  headers: headerParameters,
934
789
  query: queryParameters,
790
+ body: IncidentsListRequestToJSON(requestParameters['incidentsListRequest']),
935
791
  }, initOverrides);
936
792
 
937
- return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportResourceFromJSON(jsonValue));
793
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedIncidentListResourceResponseFromJSON(jsonValue));
938
794
  }
939
795
 
940
796
  /**
941
- * Auto-generated: incidents.exportPdf.status
797
+ * Auto-generated: incidents.list
942
798
  */
943
- async incidentsExportPdfStatus(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportResource> {
944
- const response = await this.incidentsExportPdfStatusRaw(requestParameters, initOverrides);
799
+ async incidentsList(requestParameters: IncidentsListOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIncidentListResourceResponse> {
800
+ const response = await this.incidentsListRaw(requestParameters, initOverrides);
945
801
  return await response.value();
946
802
  }
947
803
 
@@ -0,0 +1,168 @@
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 { VenueLiteResource } from './VenueLiteResource';
17
+ import {
18
+ VenueLiteResourceFromJSON,
19
+ VenueLiteResourceFromJSONTyped,
20
+ VenueLiteResourceToJSON,
21
+ VenueLiteResourceToJSONTyped,
22
+ } from './VenueLiteResource';
23
+ import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
24
+ import {
25
+ SecurityCompanyLiteResourceFromJSON,
26
+ SecurityCompanyLiteResourceFromJSONTyped,
27
+ SecurityCompanyLiteResourceToJSON,
28
+ SecurityCompanyLiteResourceToJSONTyped,
29
+ } from './SecurityCompanyLiteResource';
30
+ import type { UserLiteResource } from './UserLiteResource';
31
+ import {
32
+ UserLiteResourceFromJSON,
33
+ UserLiteResourceFromJSONTyped,
34
+ UserLiteResourceToJSON,
35
+ UserLiteResourceToJSONTyped,
36
+ } from './UserLiteResource';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface IncidentListResource
42
+ */
43
+ export interface IncidentListResource {
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof IncidentListResource
48
+ */
49
+ id: number;
50
+ /**
51
+ *
52
+ * @type {VenueLiteResource}
53
+ * @memberof IncidentListResource
54
+ */
55
+ venue?: VenueLiteResource;
56
+ /**
57
+ *
58
+ * @type {SecurityCompanyLiteResource}
59
+ * @memberof IncidentListResource
60
+ */
61
+ securityCompany?: SecurityCompanyLiteResource;
62
+ /**
63
+ *
64
+ * @type {UserLiteResource}
65
+ * @memberof IncidentListResource
66
+ */
67
+ user?: UserLiteResource;
68
+ /**
69
+ *
70
+ * @type {UserLiteResource}
71
+ * @memberof IncidentListResource
72
+ */
73
+ approvedByUser?: UserLiteResource;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof IncidentListResource
78
+ */
79
+ title?: string | null;
80
+ /**
81
+ *
82
+ * @type {Date}
83
+ * @memberof IncidentListResource
84
+ */
85
+ incidentDateTime?: Date | null;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof IncidentListResource
90
+ */
91
+ state?: string | null;
92
+ /**
93
+ *
94
+ * @type {Date}
95
+ * @memberof IncidentListResource
96
+ */
97
+ approvedAt?: Date | null;
98
+ /**
99
+ *
100
+ * @type {Date}
101
+ * @memberof IncidentListResource
102
+ */
103
+ createdAt?: Date | null;
104
+ /**
105
+ *
106
+ * @type {Date}
107
+ * @memberof IncidentListResource
108
+ */
109
+ updatedAt?: Date | null;
110
+ }
111
+
112
+ /**
113
+ * Check if a given object implements the IncidentListResource interface.
114
+ */
115
+ export function instanceOfIncidentListResource(value: object): value is IncidentListResource {
116
+ if (!('id' in value) || value['id'] === undefined) return false;
117
+ return true;
118
+ }
119
+
120
+ export function IncidentListResourceFromJSON(json: any): IncidentListResource {
121
+ return IncidentListResourceFromJSONTyped(json, false);
122
+ }
123
+
124
+ export function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResource {
125
+ if (json == null) {
126
+ return json;
127
+ }
128
+ return {
129
+
130
+ 'id': json['id'],
131
+ 'venue': json['venue'] == null ? undefined : VenueLiteResourceFromJSON(json['venue']),
132
+ 'securityCompany': json['securityCompany'] == null ? undefined : SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
133
+ 'user': json['user'] == null ? undefined : UserLiteResourceFromJSON(json['user']),
134
+ 'approvedByUser': json['approvedByUser'] == null ? undefined : UserLiteResourceFromJSON(json['approvedByUser']),
135
+ 'title': json['title'] == null ? undefined : json['title'],
136
+ 'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
137
+ 'state': json['state'] == null ? undefined : json['state'],
138
+ 'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
139
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
140
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
141
+ };
142
+ }
143
+
144
+ export function IncidentListResourceToJSON(json: any): IncidentListResource {
145
+ return IncidentListResourceToJSONTyped(json, false);
146
+ }
147
+
148
+ export function IncidentListResourceToJSONTyped(value?: IncidentListResource | null, ignoreDiscriminator: boolean = false): any {
149
+ if (value == null) {
150
+ return value;
151
+ }
152
+
153
+ return {
154
+
155
+ 'id': value['id'],
156
+ 'venue': VenueLiteResourceToJSON(value['venue']),
157
+ 'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
158
+ 'user': UserLiteResourceToJSON(value['user']),
159
+ 'approvedByUser': UserLiteResourceToJSON(value['approvedByUser']),
160
+ 'title': value['title'],
161
+ 'incidentDateTime': value['incidentDateTime'] === null ? null : ((value['incidentDateTime'] as any)?.toISOString()),
162
+ 'state': value['state'],
163
+ 'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
164
+ 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
165
+ 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
166
+ };
167
+ }
168
+
@@ -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 { IncidentListResource } from './IncidentListResource';
17
+ import {
18
+ IncidentListResourceFromJSON,
19
+ IncidentListResourceFromJSONTyped,
20
+ IncidentListResourceToJSON,
21
+ IncidentListResourceToJSONTyped,
22
+ } from './IncidentListResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface IncidentListResourceArrayResponse
28
+ */
29
+ export interface IncidentListResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<IncidentListResource>}
33
+ * @memberof IncidentListResourceArrayResponse
34
+ */
35
+ data?: Array<IncidentListResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the IncidentListResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfIncidentListResourceArrayResponse(value: object): value is IncidentListResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function IncidentListResourceArrayResponseFromJSON(json: any): IncidentListResourceArrayResponse {
46
+ return IncidentListResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function IncidentListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentListResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function IncidentListResourceArrayResponseToJSON(json: any): IncidentListResourceArrayResponse {
60
+ return IncidentListResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function IncidentListResourceArrayResponseToJSONTyped(value?: IncidentListResourceArrayResponse | 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(IncidentListResourceToJSON)),
71
+ };
72
+ }
73
+