@digital8/security-registers-backend-ts-sdk 0.0.251 → 0.0.253

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 (63) hide show
  1. package/.openapi-generator/FILES +0 -12
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +1 -83
  4. package/dist/apis/GeneralApi.js +0 -407
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +3 -1
  7. package/dist/models/IncidentResource.d.ts +0 -13
  8. package/dist/models/IncidentResource.js +0 -7
  9. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  10. package/dist/models/RegisterGroupedByRosterResource.js +4 -3
  11. package/dist/models/RegisterListResource.d.ts +3 -3
  12. package/dist/models/RegisterListResource.js +7 -5
  13. package/dist/models/RegisterResource.d.ts +2 -2
  14. package/dist/models/RegisterResource.js +3 -3
  15. package/dist/models/RosterListResource.d.ts +1 -1
  16. package/dist/models/RosterListResource.js +4 -3
  17. package/dist/models/index.d.ts +0 -12
  18. package/dist/models/index.js +0 -12
  19. package/package.json +1 -1
  20. package/src/apis/GeneralApi.ts +0 -394
  21. package/src/models/AddressResource.ts +3 -2
  22. package/src/models/IncidentResource.ts +0 -24
  23. package/src/models/RegisterGroupedByRosterResource.ts +4 -3
  24. package/src/models/RegisterListResource.ts +8 -7
  25. package/src/models/RegisterResource.ts +5 -5
  26. package/src/models/RosterListResource.ts +4 -3
  27. package/src/models/index.ts +0 -12
  28. package/dist/models/IncidentListResource.d.ts +0 -95
  29. package/dist/models/IncidentListResource.js +0 -75
  30. package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
  31. package/dist/models/IncidentListResourceArrayResponse.js +0 -50
  32. package/dist/models/IncidentVideoResource.d.ts +0 -74
  33. package/dist/models/IncidentVideoResource.js +0 -72
  34. package/dist/models/IncidentVideoResourceArrayResponse.d.ts +0 -33
  35. package/dist/models/IncidentVideoResourceArrayResponse.js +0 -50
  36. package/dist/models/IncidentVideoSignedUrlResource.d.ts +0 -32
  37. package/dist/models/IncidentVideoSignedUrlResource.js +0 -51
  38. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +0 -33
  39. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +0 -50
  40. package/dist/models/IncidentVideoUploadTokenResource.d.ts +0 -50
  41. package/dist/models/IncidentVideoUploadTokenResource.js +0 -63
  42. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +0 -33
  43. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +0 -50
  44. package/dist/models/IncidentsListRequest.d.ts +0 -151
  45. package/dist/models/IncidentsListRequest.js +0 -99
  46. package/dist/models/IncidentsVideosStoreRequest.d.ts +0 -44
  47. package/dist/models/IncidentsVideosStoreRequest.js +0 -59
  48. package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +0 -44
  49. package/dist/models/IncidentsVideosUploadTokenRequest.js +0 -59
  50. package/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
  51. package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
  52. package/src/models/IncidentListResource.ts +0 -168
  53. package/src/models/IncidentListResourceArrayResponse.ts +0 -73
  54. package/src/models/IncidentVideoResource.ts +0 -125
  55. package/src/models/IncidentVideoResourceArrayResponse.ts +0 -73
  56. package/src/models/IncidentVideoSignedUrlResource.ts +0 -66
  57. package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +0 -73
  58. package/src/models/IncidentVideoUploadTokenResource.ts +0 -93
  59. package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +0 -73
  60. package/src/models/IncidentsListRequest.ts +0 -222
  61. package/src/models/IncidentsVideosStoreRequest.ts +0 -84
  62. package/src/models/IncidentsVideosUploadTokenRequest.ts +0 -84
  63. package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
@@ -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.instanceOfIncidentsVideosUploadTokenRequest = instanceOfIncidentsVideosUploadTokenRequest;
17
- exports.IncidentsVideosUploadTokenRequestFromJSON = IncidentsVideosUploadTokenRequestFromJSON;
18
- exports.IncidentsVideosUploadTokenRequestFromJSONTyped = IncidentsVideosUploadTokenRequestFromJSONTyped;
19
- exports.IncidentsVideosUploadTokenRequestToJSON = IncidentsVideosUploadTokenRequestToJSON;
20
- exports.IncidentsVideosUploadTokenRequestToJSONTyped = IncidentsVideosUploadTokenRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
23
- */
24
- function instanceOfIncidentsVideosUploadTokenRequest(value) {
25
- if (!('filename' in value) || value['filename'] === undefined)
26
- return false;
27
- if (!('mimeType' in value) || value['mimeType'] === undefined)
28
- return false;
29
- if (!('sizeBytes' in value) || value['sizeBytes'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function IncidentsVideosUploadTokenRequestFromJSON(json) {
34
- return IncidentsVideosUploadTokenRequestFromJSONTyped(json, false);
35
- }
36
- function IncidentsVideosUploadTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'filename': json['filename'],
42
- 'mimeType': json['mime_type'],
43
- 'sizeBytes': json['size_bytes'],
44
- };
45
- }
46
- function IncidentsVideosUploadTokenRequestToJSON(json) {
47
- return IncidentsVideosUploadTokenRequestToJSONTyped(json, false);
48
- }
49
- function IncidentsVideosUploadTokenRequestToJSONTyped(value, ignoreDiscriminator) {
50
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
- if (value == null) {
52
- return value;
53
- }
54
- return {
55
- 'filename': value['filename'],
56
- 'mime_type': value['mimeType'],
57
- 'size_bytes': value['sizeBytes'],
58
- };
59
- }
@@ -1,40 +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 { PagingMetadata } from './PagingMetadata';
13
- import type { IncidentListResource } from './IncidentListResource';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedIncidentListResourceResponse
18
- */
19
- export interface PaginatedIncidentListResourceResponse {
20
- /**
21
- *
22
- * @type {Array<IncidentListResource>}
23
- * @memberof PaginatedIncidentListResourceResponse
24
- */
25
- data: Array<IncidentListResource>;
26
- /**
27
- *
28
- * @type {PagingMetadata}
29
- * @memberof PaginatedIncidentListResourceResponse
30
- */
31
- meta: PagingMetadata;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedIncidentListResourceResponse interface.
35
- */
36
- export declare function instanceOfPaginatedIncidentListResourceResponse(value: object): value is PaginatedIncidentListResourceResponse;
37
- export declare function PaginatedIncidentListResourceResponseFromJSON(json: any): PaginatedIncidentListResourceResponse;
38
- export declare function PaginatedIncidentListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedIncidentListResourceResponse;
39
- export declare function PaginatedIncidentListResourceResponseToJSON(json: any): PaginatedIncidentListResourceResponse;
40
- export declare function PaginatedIncidentListResourceResponseToJSONTyped(value?: PaginatedIncidentListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +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.instanceOfPaginatedIncidentListResourceResponse = instanceOfPaginatedIncidentListResourceResponse;
17
- exports.PaginatedIncidentListResourceResponseFromJSON = PaginatedIncidentListResourceResponseFromJSON;
18
- exports.PaginatedIncidentListResourceResponseFromJSONTyped = PaginatedIncidentListResourceResponseFromJSONTyped;
19
- exports.PaginatedIncidentListResourceResponseToJSON = PaginatedIncidentListResourceResponseToJSON;
20
- exports.PaginatedIncidentListResourceResponseToJSONTyped = PaginatedIncidentListResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var IncidentListResource_1 = require("./IncidentListResource");
23
- /**
24
- * Check if a given object implements the PaginatedIncidentListResourceResponse interface.
25
- */
26
- function instanceOfPaginatedIncidentListResourceResponse(value) {
27
- if (!('data' in value) || value['data'] === undefined)
28
- return false;
29
- if (!('meta' in value) || value['meta'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function PaginatedIncidentListResourceResponseFromJSON(json) {
34
- return PaginatedIncidentListResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedIncidentListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(IncidentListResource_1.IncidentListResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedIncidentListResourceResponseToJSON(json) {
46
- return PaginatedIncidentListResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedIncidentListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(IncidentListResource_1.IncidentListResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -1,168 +0,0 @@
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
-
@@ -1,73 +0,0 @@
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
-
@@ -1,125 +0,0 @@
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 IncidentVideoResource
20
- */
21
- export interface IncidentVideoResource {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof IncidentVideoResource
26
- */
27
- id: number;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof IncidentVideoResource
32
- */
33
- status: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof IncidentVideoResource
38
- */
39
- originalFilename: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof IncidentVideoResource
44
- */
45
- mimeType: string;
46
- /**
47
- *
48
- * @type {number}
49
- * @memberof IncidentVideoResource
50
- */
51
- sizeBytes?: number | null;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof IncidentVideoResource
56
- */
57
- failureReason?: string | null;
58
- /**
59
- *
60
- * @type {Date}
61
- * @memberof IncidentVideoResource
62
- */
63
- createdAt?: Date | null;
64
- /**
65
- *
66
- * @type {Date}
67
- * @memberof IncidentVideoResource
68
- */
69
- updatedAt?: Date | null;
70
- }
71
-
72
- /**
73
- * Check if a given object implements the IncidentVideoResource interface.
74
- */
75
- export function instanceOfIncidentVideoResource(value: object): value is IncidentVideoResource {
76
- if (!('id' in value) || value['id'] === undefined) return false;
77
- if (!('status' in value) || value['status'] === undefined) return false;
78
- if (!('originalFilename' in value) || value['originalFilename'] === undefined) return false;
79
- if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
80
- return true;
81
- }
82
-
83
- export function IncidentVideoResourceFromJSON(json: any): IncidentVideoResource {
84
- return IncidentVideoResourceFromJSONTyped(json, false);
85
- }
86
-
87
- export function IncidentVideoResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoResource {
88
- if (json == null) {
89
- return json;
90
- }
91
- return {
92
-
93
- 'id': json['id'],
94
- 'status': json['status'],
95
- 'originalFilename': json['originalFilename'],
96
- 'mimeType': json['mimeType'],
97
- 'sizeBytes': json['sizeBytes'] == null ? undefined : json['sizeBytes'],
98
- 'failureReason': json['failureReason'] == null ? undefined : json['failureReason'],
99
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
100
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
101
- };
102
- }
103
-
104
- export function IncidentVideoResourceToJSON(json: any): IncidentVideoResource {
105
- return IncidentVideoResourceToJSONTyped(json, false);
106
- }
107
-
108
- export function IncidentVideoResourceToJSONTyped(value?: IncidentVideoResource | null, ignoreDiscriminator: boolean = false): any {
109
- if (value == null) {
110
- return value;
111
- }
112
-
113
- return {
114
-
115
- 'id': value['id'],
116
- 'status': value['status'],
117
- 'originalFilename': value['originalFilename'],
118
- 'mimeType': value['mimeType'],
119
- 'sizeBytes': value['sizeBytes'],
120
- 'failureReason': value['failureReason'],
121
- 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
122
- 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
123
- };
124
- }
125
-
@@ -1,73 +0,0 @@
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 { IncidentVideoResource } from './IncidentVideoResource';
17
- import {
18
- IncidentVideoResourceFromJSON,
19
- IncidentVideoResourceFromJSONTyped,
20
- IncidentVideoResourceToJSON,
21
- IncidentVideoResourceToJSONTyped,
22
- } from './IncidentVideoResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface IncidentVideoResourceArrayResponse
28
- */
29
- export interface IncidentVideoResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<IncidentVideoResource>}
33
- * @memberof IncidentVideoResourceArrayResponse
34
- */
35
- data?: Array<IncidentVideoResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the IncidentVideoResourceArrayResponse interface.
40
- */
41
- export function instanceOfIncidentVideoResourceArrayResponse(value: object): value is IncidentVideoResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function IncidentVideoResourceArrayResponseFromJSON(json: any): IncidentVideoResourceArrayResponse {
46
- return IncidentVideoResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function IncidentVideoResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentVideoResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function IncidentVideoResourceArrayResponseToJSON(json: any): IncidentVideoResourceArrayResponse {
60
- return IncidentVideoResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function IncidentVideoResourceArrayResponseToJSONTyped(value?: IncidentVideoResourceArrayResponse | 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(IncidentVideoResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,66 +0,0 @@
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 IncidentVideoSignedUrlResource
20
- */
21
- export interface IncidentVideoSignedUrlResource {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof IncidentVideoSignedUrlResource
26
- */
27
- url: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the IncidentVideoSignedUrlResource interface.
32
- */
33
- export function instanceOfIncidentVideoSignedUrlResource(value: object): value is IncidentVideoSignedUrlResource {
34
- if (!('url' in value) || value['url'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function IncidentVideoSignedUrlResourceFromJSON(json: any): IncidentVideoSignedUrlResource {
39
- return IncidentVideoSignedUrlResourceFromJSONTyped(json, false);
40
- }
41
-
42
- export function IncidentVideoSignedUrlResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoSignedUrlResource {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'url': json['url'],
49
- };
50
- }
51
-
52
- export function IncidentVideoSignedUrlResourceToJSON(json: any): IncidentVideoSignedUrlResource {
53
- return IncidentVideoSignedUrlResourceToJSONTyped(json, false);
54
- }
55
-
56
- export function IncidentVideoSignedUrlResourceToJSONTyped(value?: IncidentVideoSignedUrlResource | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'url': value['url'],
64
- };
65
- }
66
-