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

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/RegisterListResource.d.ts +5 -5
  10. package/dist/models/RegisterListResource.js +8 -7
  11. package/dist/models/RegisterResource.d.ts +1 -1
  12. package/dist/models/RegisterResource.js +7 -5
  13. package/dist/models/RosterLiteResource.d.ts +1 -1
  14. package/dist/models/RosterLiteResource.js +4 -3
  15. package/dist/models/RosterResource.d.ts +1 -1
  16. package/dist/models/RosterResource.js +3 -4
  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/RegisterListResource.ts +11 -10
  24. package/src/models/RegisterResource.ts +4 -3
  25. package/src/models/RosterLiteResource.ts +4 -3
  26. package/src/models/RosterResource.ts +3 -4
  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,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
-
@@ -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 { IncidentVideoSignedUrlResource } from './IncidentVideoSignedUrlResource';
17
- import {
18
- IncidentVideoSignedUrlResourceFromJSON,
19
- IncidentVideoSignedUrlResourceFromJSONTyped,
20
- IncidentVideoSignedUrlResourceToJSON,
21
- IncidentVideoSignedUrlResourceToJSONTyped,
22
- } from './IncidentVideoSignedUrlResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface IncidentVideoSignedUrlResourceArrayResponse
28
- */
29
- export interface IncidentVideoSignedUrlResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<IncidentVideoSignedUrlResource>}
33
- * @memberof IncidentVideoSignedUrlResourceArrayResponse
34
- */
35
- data?: Array<IncidentVideoSignedUrlResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the IncidentVideoSignedUrlResourceArrayResponse interface.
40
- */
41
- export function instanceOfIncidentVideoSignedUrlResourceArrayResponse(value: object): value is IncidentVideoSignedUrlResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function IncidentVideoSignedUrlResourceArrayResponseFromJSON(json: any): IncidentVideoSignedUrlResourceArrayResponse {
46
- return IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoSignedUrlResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentVideoSignedUrlResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function IncidentVideoSignedUrlResourceArrayResponseToJSON(json: any): IncidentVideoSignedUrlResourceArrayResponse {
60
- return IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(value?: IncidentVideoSignedUrlResourceArrayResponse | 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(IncidentVideoSignedUrlResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,93 +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 IncidentVideoUploadTokenResource
20
- */
21
- export interface IncidentVideoUploadTokenResource {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof IncidentVideoUploadTokenResource
26
- */
27
- url: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof IncidentVideoUploadTokenResource
32
- */
33
- rawBlobPath: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof IncidentVideoUploadTokenResource
38
- */
39
- containerName: string;
40
- /**
41
- *
42
- * @type {Array<string>}
43
- * @memberof IncidentVideoUploadTokenResource
44
- */
45
- headers: Array<string>;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the IncidentVideoUploadTokenResource interface.
50
- */
51
- export function instanceOfIncidentVideoUploadTokenResource(value: object): value is IncidentVideoUploadTokenResource {
52
- if (!('url' in value) || value['url'] === undefined) return false;
53
- if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined) return false;
54
- if (!('containerName' in value) || value['containerName'] === undefined) return false;
55
- if (!('headers' in value) || value['headers'] === undefined) return false;
56
- return true;
57
- }
58
-
59
- export function IncidentVideoUploadTokenResourceFromJSON(json: any): IncidentVideoUploadTokenResource {
60
- return IncidentVideoUploadTokenResourceFromJSONTyped(json, false);
61
- }
62
-
63
- export function IncidentVideoUploadTokenResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoUploadTokenResource {
64
- if (json == null) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'url': json['url'],
70
- 'rawBlobPath': json['rawBlobPath'],
71
- 'containerName': json['containerName'],
72
- 'headers': json['headers'],
73
- };
74
- }
75
-
76
- export function IncidentVideoUploadTokenResourceToJSON(json: any): IncidentVideoUploadTokenResource {
77
- return IncidentVideoUploadTokenResourceToJSONTyped(json, false);
78
- }
79
-
80
- export function IncidentVideoUploadTokenResourceToJSONTyped(value?: IncidentVideoUploadTokenResource | null, ignoreDiscriminator: boolean = false): any {
81
- if (value == null) {
82
- return value;
83
- }
84
-
85
- return {
86
-
87
- 'url': value['url'],
88
- 'rawBlobPath': value['rawBlobPath'],
89
- 'containerName': value['containerName'],
90
- 'headers': value['headers'],
91
- };
92
- }
93
-
@@ -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 { IncidentVideoUploadTokenResource } from './IncidentVideoUploadTokenResource';
17
- import {
18
- IncidentVideoUploadTokenResourceFromJSON,
19
- IncidentVideoUploadTokenResourceFromJSONTyped,
20
- IncidentVideoUploadTokenResourceToJSON,
21
- IncidentVideoUploadTokenResourceToJSONTyped,
22
- } from './IncidentVideoUploadTokenResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface IncidentVideoUploadTokenResourceArrayResponse
28
- */
29
- export interface IncidentVideoUploadTokenResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<IncidentVideoUploadTokenResource>}
33
- * @memberof IncidentVideoUploadTokenResourceArrayResponse
34
- */
35
- data?: Array<IncidentVideoUploadTokenResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the IncidentVideoUploadTokenResourceArrayResponse interface.
40
- */
41
- export function instanceOfIncidentVideoUploadTokenResourceArrayResponse(value: object): value is IncidentVideoUploadTokenResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function IncidentVideoUploadTokenResourceArrayResponseFromJSON(json: any): IncidentVideoUploadTokenResourceArrayResponse {
46
- return IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoUploadTokenResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentVideoUploadTokenResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function IncidentVideoUploadTokenResourceArrayResponseToJSON(json: any): IncidentVideoUploadTokenResourceArrayResponse {
60
- return IncidentVideoUploadTokenResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function IncidentVideoUploadTokenResourceArrayResponseToJSONTyped(value?: IncidentVideoUploadTokenResourceArrayResponse | 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(IncidentVideoUploadTokenResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,222 +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 IncidentsListRequest
20
- */
21
- export interface IncidentsListRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof IncidentsListRequest
26
- */
27
- search?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof IncidentsListRequest
32
- */
33
- sortBy?: IncidentsListRequestSortByEnum;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof IncidentsListRequest
38
- */
39
- sortDirection?: IncidentsListRequestSortDirectionEnum;
40
- /**
41
- *
42
- * @type {number}
43
- * @memberof IncidentsListRequest
44
- */
45
- perPage?: number;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof IncidentsListRequest
50
- */
51
- page?: string;
52
- /**
53
- *
54
- * @type {Array<string>}
55
- * @memberof IncidentsListRequest
56
- */
57
- venueId?: Array<string>;
58
- /**
59
- *
60
- * @type {Array<string>}
61
- * @memberof IncidentsListRequest
62
- */
63
- securityCompanyId?: Array<string>;
64
- /**
65
- *
66
- * @type {Array<string>}
67
- * @memberof IncidentsListRequest
68
- */
69
- rosterId?: Array<string>;
70
- /**
71
- *
72
- * @type {Array<string>}
73
- * @memberof IncidentsListRequest
74
- */
75
- userId?: Array<string>;
76
- /**
77
- *
78
- * @type {Array<string>}
79
- * @memberof IncidentsListRequest
80
- */
81
- approvedByUserId?: Array<string>;
82
- /**
83
- *
84
- * @type {Array<string>}
85
- * @memberof IncidentsListRequest
86
- */
87
- hasApprovedAt?: Array<string>;
88
- /**
89
- *
90
- * @type {Date}
91
- * @memberof IncidentsListRequest
92
- */
93
- beforeApprovedAt?: Date;
94
- /**
95
- *
96
- * @type {Date}
97
- * @memberof IncidentsListRequest
98
- */
99
- afterApprovedAt?: Date;
100
- /**
101
- *
102
- * @type {Date}
103
- * @memberof IncidentsListRequest
104
- */
105
- beforeCreatedAt?: Date;
106
- /**
107
- *
108
- * @type {Date}
109
- * @memberof IncidentsListRequest
110
- */
111
- afterCreatedAt?: Date;
112
- /**
113
- *
114
- * @type {number}
115
- * @memberof IncidentsListRequest
116
- */
117
- relatedId?: number;
118
- /**
119
- *
120
- * @type {string}
121
- * @memberof IncidentsListRequest
122
- */
123
- relatedType?: string;
124
- /**
125
- *
126
- * @type {boolean}
127
- * @memberof IncidentsListRequest
128
- */
129
- includesRelations?: boolean;
130
- }
131
-
132
-
133
- /**
134
- * @export
135
- */
136
- export const IncidentsListRequestSortByEnum = {
137
- Id: 'id',
138
- CreatedAt: 'created_at',
139
- ApprovedAt: 'approved_at'
140
- } as const;
141
- export type IncidentsListRequestSortByEnum = typeof IncidentsListRequestSortByEnum[keyof typeof IncidentsListRequestSortByEnum];
142
-
143
- /**
144
- * @export
145
- */
146
- export const IncidentsListRequestSortDirectionEnum = {
147
- Asc: 'asc',
148
- Desc: 'desc'
149
- } as const;
150
- export type IncidentsListRequestSortDirectionEnum = typeof IncidentsListRequestSortDirectionEnum[keyof typeof IncidentsListRequestSortDirectionEnum];
151
-
152
-
153
- /**
154
- * Check if a given object implements the IncidentsListRequest interface.
155
- */
156
- export function instanceOfIncidentsListRequest(value: object): value is IncidentsListRequest {
157
- return true;
158
- }
159
-
160
- export function IncidentsListRequestFromJSON(json: any): IncidentsListRequest {
161
- return IncidentsListRequestFromJSONTyped(json, false);
162
- }
163
-
164
- export function IncidentsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsListRequest {
165
- if (json == null) {
166
- return json;
167
- }
168
- return {
169
-
170
- 'search': json['search'] == null ? undefined : json['search'],
171
- 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
172
- 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
173
- 'perPage': json['per_page'] == null ? undefined : json['per_page'],
174
- 'page': json['page'] == null ? undefined : json['page'],
175
- 'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
176
- 'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
177
- 'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
178
- 'userId': json['user_id'] == null ? undefined : json['user_id'],
179
- 'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
180
- 'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
181
- 'beforeApprovedAt': json['before_approved_at'] == null ? undefined : (new Date(json['before_approved_at'])),
182
- 'afterApprovedAt': json['after_approved_at'] == null ? undefined : (new Date(json['after_approved_at'])),
183
- 'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
184
- 'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
185
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
186
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
187
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
188
- };
189
- }
190
-
191
- export function IncidentsListRequestToJSON(json: any): IncidentsListRequest {
192
- return IncidentsListRequestToJSONTyped(json, false);
193
- }
194
-
195
- export function IncidentsListRequestToJSONTyped(value?: IncidentsListRequest | null, ignoreDiscriminator: boolean = false): any {
196
- if (value == null) {
197
- return value;
198
- }
199
-
200
- return {
201
-
202
- 'search': value['search'],
203
- 'sort_by': value['sortBy'],
204
- 'sort_direction': value['sortDirection'],
205
- 'per_page': value['perPage'],
206
- 'page': value['page'],
207
- 'venue_id': value['venueId'],
208
- 'security_company_id': value['securityCompanyId'],
209
- 'roster_id': value['rosterId'],
210
- 'user_id': value['userId'],
211
- 'approved_by_user_id': value['approvedByUserId'],
212
- 'has_approved_at': value['hasApprovedAt'],
213
- 'before_approved_at': value['beforeApprovedAt'] == null ? undefined : ((value['beforeApprovedAt']).toISOString()),
214
- 'after_approved_at': value['afterApprovedAt'] == null ? undefined : ((value['afterApprovedAt']).toISOString()),
215
- 'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
216
- 'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
217
- 'related_id': value['relatedId'],
218
- 'related_type': value['relatedType'],
219
- 'includes_relations': value['includesRelations'],
220
- };
221
- }
222
-
@@ -1,84 +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 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
-