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

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 (66) hide show
  1. package/.openapi-generator/FILES +0 -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/AssetResource.d.ts +1 -1
  8. package/dist/models/AssetResource.js +3 -1
  9. package/dist/models/IncidentImageResource.d.ts +1 -1
  10. package/dist/models/IncidentImageResource.js +1 -3
  11. package/dist/models/IncidentResource.d.ts +0 -7
  12. package/dist/models/IncidentResource.js +0 -5
  13. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  14. package/dist/models/RegisterGroupedByRosterResource.js +4 -3
  15. package/dist/models/RegisterListResource.d.ts +2 -2
  16. package/dist/models/RegisterListResource.js +6 -2
  17. package/dist/models/RegisterResource.d.ts +1 -1
  18. package/dist/models/RegisterResource.js +1 -3
  19. package/dist/models/RosterListResource.d.ts +1 -1
  20. package/dist/models/RosterListResource.js +3 -4
  21. package/dist/models/RosterLiteResource.d.ts +1 -1
  22. package/dist/models/RosterLiteResource.js +3 -4
  23. package/dist/models/RosterResource.d.ts +1 -1
  24. package/dist/models/RosterResource.js +4 -3
  25. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  26. package/dist/models/RosterWithRegistersResource.js +4 -3
  27. package/dist/models/index.d.ts +0 -8
  28. package/dist/models/index.js +0 -8
  29. package/package.json +1 -1
  30. package/src/apis/GeneralApi.ts +0 -344
  31. package/src/models/AddressResource.ts +2 -3
  32. package/src/models/AssetResource.ts +3 -2
  33. package/src/models/IncidentImageResource.ts +2 -3
  34. package/src/models/IncidentResource.ts +0 -16
  35. package/src/models/RegisterGroupedByRosterResource.ts +4 -3
  36. package/src/models/RegisterListResource.ts +6 -4
  37. package/src/models/RegisterResource.ts +2 -3
  38. package/src/models/RosterListResource.ts +3 -4
  39. package/src/models/RosterLiteResource.ts +3 -4
  40. package/src/models/RosterResource.ts +4 -3
  41. package/src/models/RosterWithRegistersResource.ts +4 -3
  42. package/src/models/index.ts +0 -8
  43. package/dist/models/IncidentVideoResource.d.ts +0 -74
  44. package/dist/models/IncidentVideoResource.js +0 -72
  45. package/dist/models/IncidentVideoResourceArrayResponse.d.ts +0 -33
  46. package/dist/models/IncidentVideoResourceArrayResponse.js +0 -50
  47. package/dist/models/IncidentVideoSignedUrlResource.d.ts +0 -32
  48. package/dist/models/IncidentVideoSignedUrlResource.js +0 -51
  49. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +0 -33
  50. package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +0 -50
  51. package/dist/models/IncidentVideoUploadTokenResource.d.ts +0 -50
  52. package/dist/models/IncidentVideoUploadTokenResource.js +0 -63
  53. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +0 -33
  54. package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +0 -50
  55. package/dist/models/IncidentsVideosStoreRequest.d.ts +0 -44
  56. package/dist/models/IncidentsVideosStoreRequest.js +0 -59
  57. package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +0 -44
  58. package/dist/models/IncidentsVideosUploadTokenRequest.js +0 -59
  59. package/src/models/IncidentVideoResource.ts +0 -125
  60. package/src/models/IncidentVideoResourceArrayResponse.ts +0 -73
  61. package/src/models/IncidentVideoSignedUrlResource.ts +0 -66
  62. package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +0 -73
  63. package/src/models/IncidentVideoUploadTokenResource.ts +0 -93
  64. package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +0 -73
  65. package/src/models/IncidentsVideosStoreRequest.ts +0 -84
  66. package/src/models/IncidentsVideosUploadTokenRequest.ts +0 -84
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
36
36
  * @type {Date}
37
37
  * @memberof RosterLiteResource
38
38
  */
39
- finishDateTime: Date;
39
+ finishDateTime?: Date | null;
40
40
  }
41
41
 
42
42
  /**
@@ -44,7 +44,6 @@ export interface RosterLiteResource {
44
44
  */
45
45
  export function instanceOfRosterLiteResource(value: object): value is RosterLiteResource {
46
46
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
47
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
48
47
  return true;
49
48
  }
50
49
 
@@ -60,7 +59,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
60
59
 
61
60
  'id': json['id'] == null ? undefined : json['id'],
62
61
  'startDateTime': (new Date(json['startDateTime'])),
63
- 'finishDateTime': (new Date(json['finishDateTime'])),
62
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
64
63
  };
65
64
  }
66
65
 
@@ -77,7 +76,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
77
76
 
78
77
  'id': value['id'],
79
78
  'startDateTime': ((value['startDateTime']).toISOString()),
80
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
79
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
81
80
  };
82
81
  }
83
82
 
@@ -70,7 +70,7 @@ export interface RosterResource {
70
70
  * @type {Date}
71
71
  * @memberof RosterResource
72
72
  */
73
- finishDateTime?: Date | null;
73
+ finishDateTime: Date;
74
74
  /**
75
75
  *
76
76
  * @type {boolean}
@@ -104,6 +104,7 @@ export function instanceOfRosterResource(value: object): value is RosterResource
104
104
  if (!('venue' in value) || value['venue'] === undefined) return false;
105
105
  if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
106
106
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
107
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
107
108
  if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
108
109
  if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
109
110
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
@@ -125,7 +126,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
125
126
  'venue': VenueLiteResourceFromJSON(json['venue']),
126
127
  'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
127
128
  'startDateTime': (new Date(json['startDateTime'])),
128
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
129
+ 'finishDateTime': (new Date(json['finishDateTime'])),
129
130
  'isCompliant': json['isCompliant'],
130
131
  'isComplete': json['isComplete'],
131
132
  'signOffStatus': json['signOffStatus'],
@@ -148,7 +149,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
148
149
  'venue': VenueLiteResourceToJSON(value['venue']),
149
150
  'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
150
151
  'startDateTime': ((value['startDateTime']).toISOString()),
151
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
152
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
152
153
  'isCompliant': value['isCompliant'],
153
154
  'isComplete': value['isComplete'],
154
155
  'signOffStatus': value['signOffStatus'],
@@ -76,7 +76,7 @@ export interface RosterWithRegistersResource {
76
76
  * @type {Date}
77
77
  * @memberof RosterWithRegistersResource
78
78
  */
79
- finishDateTime?: Date | null;
79
+ finishDateTime: Date;
80
80
  /**
81
81
  *
82
82
  * @type {boolean}
@@ -111,6 +111,7 @@ export function instanceOfRosterWithRegistersResource(value: object): value is R
111
111
  if (!('state' in value) || value['state'] === undefined) return false;
112
112
  if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
113
113
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
114
+ if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
114
115
  if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
115
116
  if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
116
117
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
@@ -133,7 +134,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
133
134
  'state': json['state'],
134
135
  'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
135
136
  'startDateTime': (new Date(json['startDateTime'])),
136
- 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
137
+ 'finishDateTime': (new Date(json['finishDateTime'])),
137
138
  'isCompliant': json['isCompliant'],
138
139
  'isComplete': json['isComplete'],
139
140
  'signOffStatus': json['signOffStatus'],
@@ -157,7 +158,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
157
158
  'state': value['state'],
158
159
  'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
159
160
  'startDateTime': ((value['startDateTime']).toISOString()),
160
- 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
161
+ 'finishDateTime': ((value['finishDateTime']).toISOString()),
161
162
  'isCompliant': value['isCompliant'],
162
163
  'isComplete': value['isComplete'],
163
164
  'signOffStatus': value['signOffStatus'],
@@ -23,17 +23,9 @@ export * from './IncidentResource';
23
23
  export * from './IncidentResourceArrayResponse';
24
24
  export * from './IncidentVersionResource';
25
25
  export * from './IncidentVersionResourceArrayResponse';
26
- export * from './IncidentVideoResource';
27
- export * from './IncidentVideoResourceArrayResponse';
28
- export * from './IncidentVideoSignedUrlResource';
29
- export * from './IncidentVideoSignedUrlResourceArrayResponse';
30
- export * from './IncidentVideoUploadTokenResource';
31
- export * from './IncidentVideoUploadTokenResourceArrayResponse';
32
26
  export * from './IncidentsApproveRequest';
33
27
  export * from './IncidentsStoreRequest';
34
28
  export * from './IncidentsUpdateRequest';
35
- export * from './IncidentsVideosStoreRequest';
36
- export * from './IncidentsVideosUploadTokenRequest';
37
29
  export * from './IndexMinimalUserRequest';
38
30
  export * from './IndexUserRequest';
39
31
  export * from './LicenceListResource';
@@ -1,74 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface IncidentVideoResource
16
- */
17
- export interface IncidentVideoResource {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof IncidentVideoResource
22
- */
23
- id: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof IncidentVideoResource
28
- */
29
- status: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof IncidentVideoResource
34
- */
35
- originalFilename: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof IncidentVideoResource
40
- */
41
- mimeType: string;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof IncidentVideoResource
46
- */
47
- sizeBytes?: number | null;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof IncidentVideoResource
52
- */
53
- failureReason?: string | null;
54
- /**
55
- *
56
- * @type {Date}
57
- * @memberof IncidentVideoResource
58
- */
59
- createdAt?: Date | null;
60
- /**
61
- *
62
- * @type {Date}
63
- * @memberof IncidentVideoResource
64
- */
65
- updatedAt?: Date | null;
66
- }
67
- /**
68
- * Check if a given object implements the IncidentVideoResource interface.
69
- */
70
- export declare function instanceOfIncidentVideoResource(value: object): value is IncidentVideoResource;
71
- export declare function IncidentVideoResourceFromJSON(json: any): IncidentVideoResource;
72
- export declare function IncidentVideoResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoResource;
73
- export declare function IncidentVideoResourceToJSON(json: any): IncidentVideoResource;
74
- export declare function IncidentVideoResourceToJSONTyped(value?: IncidentVideoResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,72 +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.instanceOfIncidentVideoResource = instanceOfIncidentVideoResource;
17
- exports.IncidentVideoResourceFromJSON = IncidentVideoResourceFromJSON;
18
- exports.IncidentVideoResourceFromJSONTyped = IncidentVideoResourceFromJSONTyped;
19
- exports.IncidentVideoResourceToJSON = IncidentVideoResourceToJSON;
20
- exports.IncidentVideoResourceToJSONTyped = IncidentVideoResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the IncidentVideoResource interface.
23
- */
24
- function instanceOfIncidentVideoResource(value) {
25
- if (!('id' in value) || value['id'] === undefined)
26
- return false;
27
- if (!('status' in value) || value['status'] === undefined)
28
- return false;
29
- if (!('originalFilename' in value) || value['originalFilename'] === undefined)
30
- return false;
31
- if (!('mimeType' in value) || value['mimeType'] === undefined)
32
- return false;
33
- return true;
34
- }
35
- function IncidentVideoResourceFromJSON(json) {
36
- return IncidentVideoResourceFromJSONTyped(json, false);
37
- }
38
- function IncidentVideoResourceFromJSONTyped(json, ignoreDiscriminator) {
39
- if (json == null) {
40
- return json;
41
- }
42
- return {
43
- 'id': json['id'],
44
- 'status': json['status'],
45
- 'originalFilename': json['originalFilename'],
46
- 'mimeType': json['mimeType'],
47
- 'sizeBytes': json['sizeBytes'] == null ? undefined : json['sizeBytes'],
48
- 'failureReason': json['failureReason'] == null ? undefined : json['failureReason'],
49
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
50
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
51
- };
52
- }
53
- function IncidentVideoResourceToJSON(json) {
54
- return IncidentVideoResourceToJSONTyped(json, false);
55
- }
56
- function IncidentVideoResourceToJSONTyped(value, ignoreDiscriminator) {
57
- var _a, _b;
58
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
59
- if (value == null) {
60
- return value;
61
- }
62
- return {
63
- 'id': value['id'],
64
- 'status': value['status'],
65
- 'originalFilename': value['originalFilename'],
66
- 'mimeType': value['mimeType'],
67
- 'sizeBytes': value['sizeBytes'],
68
- 'failureReason': value['failureReason'],
69
- 'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
70
- 'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
71
- };
72
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { IncidentVideoResource } from './IncidentVideoResource';
13
- /**
14
- *
15
- * @export
16
- * @interface IncidentVideoResourceArrayResponse
17
- */
18
- export interface IncidentVideoResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<IncidentVideoResource>}
22
- * @memberof IncidentVideoResourceArrayResponse
23
- */
24
- data?: Array<IncidentVideoResource>;
25
- }
26
- /**
27
- * Check if a given object implements the IncidentVideoResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfIncidentVideoResourceArrayResponse(value: object): value is IncidentVideoResourceArrayResponse;
30
- export declare function IncidentVideoResourceArrayResponseFromJSON(json: any): IncidentVideoResourceArrayResponse;
31
- export declare function IncidentVideoResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoResourceArrayResponse;
32
- export declare function IncidentVideoResourceArrayResponseToJSON(json: any): IncidentVideoResourceArrayResponse;
33
- export declare function IncidentVideoResourceArrayResponseToJSONTyped(value?: IncidentVideoResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +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.instanceOfIncidentVideoResourceArrayResponse = instanceOfIncidentVideoResourceArrayResponse;
17
- exports.IncidentVideoResourceArrayResponseFromJSON = IncidentVideoResourceArrayResponseFromJSON;
18
- exports.IncidentVideoResourceArrayResponseFromJSONTyped = IncidentVideoResourceArrayResponseFromJSONTyped;
19
- exports.IncidentVideoResourceArrayResponseToJSON = IncidentVideoResourceArrayResponseToJSON;
20
- exports.IncidentVideoResourceArrayResponseToJSONTyped = IncidentVideoResourceArrayResponseToJSONTyped;
21
- var IncidentVideoResource_1 = require("./IncidentVideoResource");
22
- /**
23
- * Check if a given object implements the IncidentVideoResourceArrayResponse interface.
24
- */
25
- function instanceOfIncidentVideoResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function IncidentVideoResourceArrayResponseFromJSON(json) {
29
- return IncidentVideoResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function IncidentVideoResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(IncidentVideoResource_1.IncidentVideoResourceFromJSON)),
37
- };
38
- }
39
- function IncidentVideoResourceArrayResponseToJSON(json) {
40
- return IncidentVideoResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function IncidentVideoResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(IncidentVideoResource_1.IncidentVideoResourceToJSON)),
49
- };
50
- }
@@ -1,32 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface IncidentVideoSignedUrlResource
16
- */
17
- export interface IncidentVideoSignedUrlResource {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof IncidentVideoSignedUrlResource
22
- */
23
- url: string;
24
- }
25
- /**
26
- * Check if a given object implements the IncidentVideoSignedUrlResource interface.
27
- */
28
- export declare function instanceOfIncidentVideoSignedUrlResource(value: object): value is IncidentVideoSignedUrlResource;
29
- export declare function IncidentVideoSignedUrlResourceFromJSON(json: any): IncidentVideoSignedUrlResource;
30
- export declare function IncidentVideoSignedUrlResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoSignedUrlResource;
31
- export declare function IncidentVideoSignedUrlResourceToJSON(json: any): IncidentVideoSignedUrlResource;
32
- export declare function IncidentVideoSignedUrlResourceToJSONTyped(value?: IncidentVideoSignedUrlResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,51 +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.instanceOfIncidentVideoSignedUrlResource = instanceOfIncidentVideoSignedUrlResource;
17
- exports.IncidentVideoSignedUrlResourceFromJSON = IncidentVideoSignedUrlResourceFromJSON;
18
- exports.IncidentVideoSignedUrlResourceFromJSONTyped = IncidentVideoSignedUrlResourceFromJSONTyped;
19
- exports.IncidentVideoSignedUrlResourceToJSON = IncidentVideoSignedUrlResourceToJSON;
20
- exports.IncidentVideoSignedUrlResourceToJSONTyped = IncidentVideoSignedUrlResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the IncidentVideoSignedUrlResource interface.
23
- */
24
- function instanceOfIncidentVideoSignedUrlResource(value) {
25
- if (!('url' in value) || value['url'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function IncidentVideoSignedUrlResourceFromJSON(json) {
30
- return IncidentVideoSignedUrlResourceFromJSONTyped(json, false);
31
- }
32
- function IncidentVideoSignedUrlResourceFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'url': json['url'],
38
- };
39
- }
40
- function IncidentVideoSignedUrlResourceToJSON(json) {
41
- return IncidentVideoSignedUrlResourceToJSONTyped(json, false);
42
- }
43
- function IncidentVideoSignedUrlResourceToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'url': value['url'],
50
- };
51
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { IncidentVideoSignedUrlResource } from './IncidentVideoSignedUrlResource';
13
- /**
14
- *
15
- * @export
16
- * @interface IncidentVideoSignedUrlResourceArrayResponse
17
- */
18
- export interface IncidentVideoSignedUrlResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<IncidentVideoSignedUrlResource>}
22
- * @memberof IncidentVideoSignedUrlResourceArrayResponse
23
- */
24
- data?: Array<IncidentVideoSignedUrlResource>;
25
- }
26
- /**
27
- * Check if a given object implements the IncidentVideoSignedUrlResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfIncidentVideoSignedUrlResourceArrayResponse(value: object): value is IncidentVideoSignedUrlResourceArrayResponse;
30
- export declare function IncidentVideoSignedUrlResourceArrayResponseFromJSON(json: any): IncidentVideoSignedUrlResourceArrayResponse;
31
- export declare function IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoSignedUrlResourceArrayResponse;
32
- export declare function IncidentVideoSignedUrlResourceArrayResponseToJSON(json: any): IncidentVideoSignedUrlResourceArrayResponse;
33
- export declare function IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(value?: IncidentVideoSignedUrlResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +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.instanceOfIncidentVideoSignedUrlResourceArrayResponse = instanceOfIncidentVideoSignedUrlResourceArrayResponse;
17
- exports.IncidentVideoSignedUrlResourceArrayResponseFromJSON = IncidentVideoSignedUrlResourceArrayResponseFromJSON;
18
- exports.IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped = IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped;
19
- exports.IncidentVideoSignedUrlResourceArrayResponseToJSON = IncidentVideoSignedUrlResourceArrayResponseToJSON;
20
- exports.IncidentVideoSignedUrlResourceArrayResponseToJSONTyped = IncidentVideoSignedUrlResourceArrayResponseToJSONTyped;
21
- var IncidentVideoSignedUrlResource_1 = require("./IncidentVideoSignedUrlResource");
22
- /**
23
- * Check if a given object implements the IncidentVideoSignedUrlResourceArrayResponse interface.
24
- */
25
- function instanceOfIncidentVideoSignedUrlResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function IncidentVideoSignedUrlResourceArrayResponseFromJSON(json) {
29
- return IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(IncidentVideoSignedUrlResource_1.IncidentVideoSignedUrlResourceFromJSON)),
37
- };
38
- }
39
- function IncidentVideoSignedUrlResourceArrayResponseToJSON(json) {
40
- return IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(IncidentVideoSignedUrlResource_1.IncidentVideoSignedUrlResourceToJSON)),
49
- };
50
- }
@@ -1,50 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface IncidentVideoUploadTokenResource
16
- */
17
- export interface IncidentVideoUploadTokenResource {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof IncidentVideoUploadTokenResource
22
- */
23
- url: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof IncidentVideoUploadTokenResource
28
- */
29
- rawBlobPath: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof IncidentVideoUploadTokenResource
34
- */
35
- containerName: string;
36
- /**
37
- *
38
- * @type {Array<string>}
39
- * @memberof IncidentVideoUploadTokenResource
40
- */
41
- headers: Array<string>;
42
- }
43
- /**
44
- * Check if a given object implements the IncidentVideoUploadTokenResource interface.
45
- */
46
- export declare function instanceOfIncidentVideoUploadTokenResource(value: object): value is IncidentVideoUploadTokenResource;
47
- export declare function IncidentVideoUploadTokenResourceFromJSON(json: any): IncidentVideoUploadTokenResource;
48
- export declare function IncidentVideoUploadTokenResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoUploadTokenResource;
49
- export declare function IncidentVideoUploadTokenResourceToJSON(json: any): IncidentVideoUploadTokenResource;
50
- export declare function IncidentVideoUploadTokenResourceToJSONTyped(value?: IncidentVideoUploadTokenResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,63 +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.instanceOfIncidentVideoUploadTokenResource = instanceOfIncidentVideoUploadTokenResource;
17
- exports.IncidentVideoUploadTokenResourceFromJSON = IncidentVideoUploadTokenResourceFromJSON;
18
- exports.IncidentVideoUploadTokenResourceFromJSONTyped = IncidentVideoUploadTokenResourceFromJSONTyped;
19
- exports.IncidentVideoUploadTokenResourceToJSON = IncidentVideoUploadTokenResourceToJSON;
20
- exports.IncidentVideoUploadTokenResourceToJSONTyped = IncidentVideoUploadTokenResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the IncidentVideoUploadTokenResource interface.
23
- */
24
- function instanceOfIncidentVideoUploadTokenResource(value) {
25
- if (!('url' in value) || value['url'] === undefined)
26
- return false;
27
- if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined)
28
- return false;
29
- if (!('containerName' in value) || value['containerName'] === undefined)
30
- return false;
31
- if (!('headers' in value) || value['headers'] === undefined)
32
- return false;
33
- return true;
34
- }
35
- function IncidentVideoUploadTokenResourceFromJSON(json) {
36
- return IncidentVideoUploadTokenResourceFromJSONTyped(json, false);
37
- }
38
- function IncidentVideoUploadTokenResourceFromJSONTyped(json, ignoreDiscriminator) {
39
- if (json == null) {
40
- return json;
41
- }
42
- return {
43
- 'url': json['url'],
44
- 'rawBlobPath': json['rawBlobPath'],
45
- 'containerName': json['containerName'],
46
- 'headers': json['headers'],
47
- };
48
- }
49
- function IncidentVideoUploadTokenResourceToJSON(json) {
50
- return IncidentVideoUploadTokenResourceToJSONTyped(json, false);
51
- }
52
- function IncidentVideoUploadTokenResourceToJSONTyped(value, ignoreDiscriminator) {
53
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
- if (value == null) {
55
- return value;
56
- }
57
- return {
58
- 'url': value['url'],
59
- 'rawBlobPath': value['rawBlobPath'],
60
- 'containerName': value['containerName'],
61
- 'headers': value['headers'],
62
- };
63
- }