@digital8/security-registers-backend-ts-sdk 0.0.208 → 0.0.210

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 (42) hide show
  1. package/.openapi-generator/FILES +0 -3
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +1 -58
  4. package/dist/apis/GeneralApi.js +0 -286
  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/RegisterListResource.d.ts +4 -4
  10. package/dist/models/RegisterListResource.js +6 -5
  11. package/dist/models/RegisterResource.d.ts +1 -1
  12. package/dist/models/RegisterResource.js +3 -1
  13. package/dist/models/RosterListResource.d.ts +1 -1
  14. package/dist/models/RosterListResource.js +4 -3
  15. package/dist/models/RosterLiteResource.d.ts +1 -1
  16. package/dist/models/RosterLiteResource.js +4 -3
  17. package/dist/models/RosterResource.d.ts +1 -1
  18. package/dist/models/RosterResource.js +3 -4
  19. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  20. package/dist/models/SecurityCompanyResource.js +1 -3
  21. package/dist/models/index.d.ts +0 -3
  22. package/dist/models/index.js +0 -3
  23. package/package.json +1 -1
  24. package/src/apis/GeneralApi.ts +0 -261
  25. package/src/models/AddressResource.ts +2 -3
  26. package/src/models/AssetResource.ts +3 -2
  27. package/src/models/RegisterListResource.ts +8 -8
  28. package/src/models/RegisterResource.ts +3 -2
  29. package/src/models/RosterListResource.ts +4 -3
  30. package/src/models/RosterLiteResource.ts +4 -3
  31. package/src/models/RosterResource.ts +3 -4
  32. package/src/models/SecurityCompanyResource.ts +2 -3
  33. package/src/models/index.ts +0 -3
  34. package/dist/models/IncidentVersionResource.d.ts +0 -69
  35. package/dist/models/IncidentVersionResource.js +0 -72
  36. package/dist/models/IncidentVersionResourceArrayResponse.d.ts +0 -33
  37. package/dist/models/IncidentVersionResourceArrayResponse.js +0 -50
  38. package/dist/models/IncidentsUpdateRequest.d.ts +0 -32
  39. package/dist/models/IncidentsUpdateRequest.js +0 -51
  40. package/src/models/IncidentVersionResource.ts +0 -126
  41. package/src/models/IncidentVersionResourceArrayResponse.ts +0 -73
  42. package/src/models/IncidentsUpdateRequest.ts +0 -66
@@ -70,7 +70,7 @@ export interface RosterResource {
70
70
  * @type {Date}
71
71
  * @memberof RosterResource
72
72
  */
73
- finishDateTime: Date;
73
+ finishDateTime?: Date | null;
74
74
  /**
75
75
  *
76
76
  * @type {boolean}
@@ -104,7 +104,6 @@ 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;
108
107
  if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
109
108
  if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
110
109
  if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
@@ -126,7 +125,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
126
125
  'venue': VenueLiteResourceFromJSON(json['venue']),
127
126
  'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
128
127
  'startDateTime': (new Date(json['startDateTime'])),
129
- 'finishDateTime': (new Date(json['finishDateTime'])),
128
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
130
129
  'isCompliant': json['isCompliant'],
131
130
  'isComplete': json['isComplete'],
132
131
  'signOffStatus': json['signOffStatus'],
@@ -149,7 +148,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
149
148
  'venue': VenueLiteResourceToJSON(value['venue']),
150
149
  'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
151
150
  'startDateTime': ((value['startDateTime']).toISOString()),
152
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
151
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
153
152
  'isCompliant': value['isCompliant'],
154
153
  'isComplete': value['isComplete'],
155
154
  'signOffStatus': value['signOffStatus'],
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
44
44
  * @type {string}
45
45
  * @memberof SecurityCompanyResource
46
46
  */
47
- email: string;
47
+ email?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {boolean}
@@ -82,7 +82,6 @@ export interface SecurityCompanyResource {
82
82
  */
83
83
  export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
84
84
  if (!('name' in value) || value['name'] === undefined) return false;
85
- if (!('email' in value) || value['email'] === undefined) return false;
86
85
  if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
87
86
  if (!('address' in value) || value['address'] === undefined) return false;
88
87
  if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
101
100
 
102
101
  'id': json['id'] == null ? undefined : json['id'],
103
102
  'name': json['name'],
104
- 'email': json['email'],
103
+ 'email': json['email'] == null ? undefined : json['email'],
105
104
  'isEnabled': json['isEnabled'],
106
105
  'address': AddressResourceFromJSON(json['address']),
107
106
  'licenceNumber': json['licenceNumber'],
@@ -17,10 +17,7 @@ export * from './IncidentFieldSchemasShowRequest';
17
17
  export * from './IncidentFieldsResourceArrayResponse';
18
18
  export * from './IncidentResource';
19
19
  export * from './IncidentResourceArrayResponse';
20
- export * from './IncidentVersionResource';
21
- export * from './IncidentVersionResourceArrayResponse';
22
20
  export * from './IncidentsStoreRequest';
23
- export * from './IncidentsUpdateRequest';
24
21
  export * from './IndexMinimalUserRequest';
25
22
  export * from './IndexUserRequest';
26
23
  export * from './LicenceListResource';
@@ -1,69 +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 { UserLiteResource } from './UserLiteResource';
13
- /**
14
- *
15
- * @export
16
- * @interface IncidentVersionResource
17
- */
18
- export interface IncidentVersionResource {
19
- /**
20
- *
21
- * @type {number}
22
- * @memberof IncidentVersionResource
23
- */
24
- id: number;
25
- /**
26
- *
27
- * @type {number}
28
- * @memberof IncidentVersionResource
29
- */
30
- incidentId?: number | null;
31
- /**
32
- *
33
- * @type {number}
34
- * @memberof IncidentVersionResource
35
- */
36
- versionNumber: number;
37
- /**
38
- *
39
- * @type {number}
40
- * @memberof IncidentVersionResource
41
- */
42
- userId?: number | null;
43
- /**
44
- *
45
- * @type {UserLiteResource}
46
- * @memberof IncidentVersionResource
47
- */
48
- user: UserLiteResource | null;
49
- /**
50
- *
51
- * @type {Array<boolean>}
52
- * @memberof IncidentVersionResource
53
- */
54
- fieldData: Array<boolean>;
55
- /**
56
- *
57
- * @type {Date}
58
- * @memberof IncidentVersionResource
59
- */
60
- createdAt: Date;
61
- }
62
- /**
63
- * Check if a given object implements the IncidentVersionResource interface.
64
- */
65
- export declare function instanceOfIncidentVersionResource(value: object): value is IncidentVersionResource;
66
- export declare function IncidentVersionResourceFromJSON(json: any): IncidentVersionResource;
67
- export declare function IncidentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResource;
68
- export declare function IncidentVersionResourceToJSON(json: any): IncidentVersionResource;
69
- export declare function IncidentVersionResourceToJSONTyped(value?: IncidentVersionResource | 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.instanceOfIncidentVersionResource = instanceOfIncidentVersionResource;
17
- exports.IncidentVersionResourceFromJSON = IncidentVersionResourceFromJSON;
18
- exports.IncidentVersionResourceFromJSONTyped = IncidentVersionResourceFromJSONTyped;
19
- exports.IncidentVersionResourceToJSON = IncidentVersionResourceToJSON;
20
- exports.IncidentVersionResourceToJSONTyped = IncidentVersionResourceToJSONTyped;
21
- var UserLiteResource_1 = require("./UserLiteResource");
22
- /**
23
- * Check if a given object implements the IncidentVersionResource interface.
24
- */
25
- function instanceOfIncidentVersionResource(value) {
26
- if (!('id' in value) || value['id'] === undefined)
27
- return false;
28
- if (!('versionNumber' in value) || value['versionNumber'] === undefined)
29
- return false;
30
- if (!('user' in value) || value['user'] === undefined)
31
- return false;
32
- if (!('fieldData' in value) || value['fieldData'] === undefined)
33
- return false;
34
- if (!('createdAt' in value) || value['createdAt'] === undefined)
35
- return false;
36
- return true;
37
- }
38
- function IncidentVersionResourceFromJSON(json) {
39
- return IncidentVersionResourceFromJSONTyped(json, false);
40
- }
41
- function IncidentVersionResourceFromJSONTyped(json, ignoreDiscriminator) {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
- 'id': json['id'],
47
- 'incidentId': json['incidentId'] == null ? undefined : json['incidentId'],
48
- 'versionNumber': json['versionNumber'],
49
- 'userId': json['userId'] == null ? undefined : json['userId'],
50
- 'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
51
- 'fieldData': json['fieldData'],
52
- 'createdAt': (new Date(json['createdAt'])),
53
- };
54
- }
55
- function IncidentVersionResourceToJSON(json) {
56
- return IncidentVersionResourceToJSONTyped(json, false);
57
- }
58
- function IncidentVersionResourceToJSONTyped(value, ignoreDiscriminator) {
59
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
60
- if (value == null) {
61
- return value;
62
- }
63
- return {
64
- 'id': value['id'],
65
- 'incidentId': value['incidentId'],
66
- 'versionNumber': value['versionNumber'],
67
- 'userId': value['userId'],
68
- 'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
69
- 'fieldData': value['fieldData'],
70
- 'createdAt': ((value['createdAt']).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 { IncidentVersionResource } from './IncidentVersionResource';
13
- /**
14
- *
15
- * @export
16
- * @interface IncidentVersionResourceArrayResponse
17
- */
18
- export interface IncidentVersionResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<IncidentVersionResource>}
22
- * @memberof IncidentVersionResourceArrayResponse
23
- */
24
- data?: Array<IncidentVersionResource>;
25
- }
26
- /**
27
- * Check if a given object implements the IncidentVersionResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfIncidentVersionResourceArrayResponse(value: object): value is IncidentVersionResourceArrayResponse;
30
- export declare function IncidentVersionResourceArrayResponseFromJSON(json: any): IncidentVersionResourceArrayResponse;
31
- export declare function IncidentVersionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResourceArrayResponse;
32
- export declare function IncidentVersionResourceArrayResponseToJSON(json: any): IncidentVersionResourceArrayResponse;
33
- export declare function IncidentVersionResourceArrayResponseToJSONTyped(value?: IncidentVersionResourceArrayResponse | 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.instanceOfIncidentVersionResourceArrayResponse = instanceOfIncidentVersionResourceArrayResponse;
17
- exports.IncidentVersionResourceArrayResponseFromJSON = IncidentVersionResourceArrayResponseFromJSON;
18
- exports.IncidentVersionResourceArrayResponseFromJSONTyped = IncidentVersionResourceArrayResponseFromJSONTyped;
19
- exports.IncidentVersionResourceArrayResponseToJSON = IncidentVersionResourceArrayResponseToJSON;
20
- exports.IncidentVersionResourceArrayResponseToJSONTyped = IncidentVersionResourceArrayResponseToJSONTyped;
21
- var IncidentVersionResource_1 = require("./IncidentVersionResource");
22
- /**
23
- * Check if a given object implements the IncidentVersionResourceArrayResponse interface.
24
- */
25
- function instanceOfIncidentVersionResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function IncidentVersionResourceArrayResponseFromJSON(json) {
29
- return IncidentVersionResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function IncidentVersionResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(IncidentVersionResource_1.IncidentVersionResourceFromJSON)),
37
- };
38
- }
39
- function IncidentVersionResourceArrayResponseToJSON(json) {
40
- return IncidentVersionResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function IncidentVersionResourceArrayResponseToJSONTyped(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(IncidentVersionResource_1.IncidentVersionResourceToJSON)),
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 IncidentsUpdateRequest
16
- */
17
- export interface IncidentsUpdateRequest {
18
- /**
19
- *
20
- * @type {Array<string>}
21
- * @memberof IncidentsUpdateRequest
22
- */
23
- fields: Array<string>;
24
- }
25
- /**
26
- * Check if a given object implements the IncidentsUpdateRequest interface.
27
- */
28
- export declare function instanceOfIncidentsUpdateRequest(value: object): value is IncidentsUpdateRequest;
29
- export declare function IncidentsUpdateRequestFromJSON(json: any): IncidentsUpdateRequest;
30
- export declare function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateRequest;
31
- export declare function IncidentsUpdateRequestToJSON(json: any): IncidentsUpdateRequest;
32
- export declare function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest | 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.instanceOfIncidentsUpdateRequest = instanceOfIncidentsUpdateRequest;
17
- exports.IncidentsUpdateRequestFromJSON = IncidentsUpdateRequestFromJSON;
18
- exports.IncidentsUpdateRequestFromJSONTyped = IncidentsUpdateRequestFromJSONTyped;
19
- exports.IncidentsUpdateRequestToJSON = IncidentsUpdateRequestToJSON;
20
- exports.IncidentsUpdateRequestToJSONTyped = IncidentsUpdateRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the IncidentsUpdateRequest interface.
23
- */
24
- function instanceOfIncidentsUpdateRequest(value) {
25
- if (!('fields' in value) || value['fields'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function IncidentsUpdateRequestFromJSON(json) {
30
- return IncidentsUpdateRequestFromJSONTyped(json, false);
31
- }
32
- function IncidentsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'fields': json['fields'],
38
- };
39
- }
40
- function IncidentsUpdateRequestToJSON(json) {
41
- return IncidentsUpdateRequestToJSONTyped(json, false);
42
- }
43
- function IncidentsUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'fields': value['fields'],
50
- };
51
- }
@@ -1,126 +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 { UserLiteResource } from './UserLiteResource';
17
- import {
18
- UserLiteResourceFromJSON,
19
- UserLiteResourceFromJSONTyped,
20
- UserLiteResourceToJSON,
21
- UserLiteResourceToJSONTyped,
22
- } from './UserLiteResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface IncidentVersionResource
28
- */
29
- export interface IncidentVersionResource {
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof IncidentVersionResource
34
- */
35
- id: number;
36
- /**
37
- *
38
- * @type {number}
39
- * @memberof IncidentVersionResource
40
- */
41
- incidentId?: number | null;
42
- /**
43
- *
44
- * @type {number}
45
- * @memberof IncidentVersionResource
46
- */
47
- versionNumber: number;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof IncidentVersionResource
52
- */
53
- userId?: number | null;
54
- /**
55
- *
56
- * @type {UserLiteResource}
57
- * @memberof IncidentVersionResource
58
- */
59
- user: UserLiteResource | null;
60
- /**
61
- *
62
- * @type {Array<boolean>}
63
- * @memberof IncidentVersionResource
64
- */
65
- fieldData: Array<boolean>;
66
- /**
67
- *
68
- * @type {Date}
69
- * @memberof IncidentVersionResource
70
- */
71
- createdAt: Date;
72
- }
73
-
74
- /**
75
- * Check if a given object implements the IncidentVersionResource interface.
76
- */
77
- export function instanceOfIncidentVersionResource(value: object): value is IncidentVersionResource {
78
- if (!('id' in value) || value['id'] === undefined) return false;
79
- if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
80
- if (!('user' in value) || value['user'] === undefined) return false;
81
- if (!('fieldData' in value) || value['fieldData'] === undefined) return false;
82
- if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
83
- return true;
84
- }
85
-
86
- export function IncidentVersionResourceFromJSON(json: any): IncidentVersionResource {
87
- return IncidentVersionResourceFromJSONTyped(json, false);
88
- }
89
-
90
- export function IncidentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResource {
91
- if (json == null) {
92
- return json;
93
- }
94
- return {
95
-
96
- 'id': json['id'],
97
- 'incidentId': json['incidentId'] == null ? undefined : json['incidentId'],
98
- 'versionNumber': json['versionNumber'],
99
- 'userId': json['userId'] == null ? undefined : json['userId'],
100
- 'user': UserLiteResourceFromJSON(json['user']),
101
- 'fieldData': json['fieldData'],
102
- 'createdAt': (new Date(json['createdAt'])),
103
- };
104
- }
105
-
106
- export function IncidentVersionResourceToJSON(json: any): IncidentVersionResource {
107
- return IncidentVersionResourceToJSONTyped(json, false);
108
- }
109
-
110
- export function IncidentVersionResourceToJSONTyped(value?: IncidentVersionResource | null, ignoreDiscriminator: boolean = false): any {
111
- if (value == null) {
112
- return value;
113
- }
114
-
115
- return {
116
-
117
- 'id': value['id'],
118
- 'incidentId': value['incidentId'],
119
- 'versionNumber': value['versionNumber'],
120
- 'userId': value['userId'],
121
- 'user': UserLiteResourceToJSON(value['user']),
122
- 'fieldData': value['fieldData'],
123
- 'createdAt': ((value['createdAt']).toISOString()),
124
- };
125
- }
126
-
@@ -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 { IncidentVersionResource } from './IncidentVersionResource';
17
- import {
18
- IncidentVersionResourceFromJSON,
19
- IncidentVersionResourceFromJSONTyped,
20
- IncidentVersionResourceToJSON,
21
- IncidentVersionResourceToJSONTyped,
22
- } from './IncidentVersionResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface IncidentVersionResourceArrayResponse
28
- */
29
- export interface IncidentVersionResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<IncidentVersionResource>}
33
- * @memberof IncidentVersionResourceArrayResponse
34
- */
35
- data?: Array<IncidentVersionResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the IncidentVersionResourceArrayResponse interface.
40
- */
41
- export function instanceOfIncidentVersionResourceArrayResponse(value: object): value is IncidentVersionResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function IncidentVersionResourceArrayResponseFromJSON(json: any): IncidentVersionResourceArrayResponse {
46
- return IncidentVersionResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function IncidentVersionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentVersionResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function IncidentVersionResourceArrayResponseToJSON(json: any): IncidentVersionResourceArrayResponse {
60
- return IncidentVersionResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function IncidentVersionResourceArrayResponseToJSONTyped(value?: IncidentVersionResourceArrayResponse | 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(IncidentVersionResourceToJSON)),
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 IncidentsUpdateRequest
20
- */
21
- export interface IncidentsUpdateRequest {
22
- /**
23
- *
24
- * @type {Array<string>}
25
- * @memberof IncidentsUpdateRequest
26
- */
27
- fields: Array<string>;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the IncidentsUpdateRequest interface.
32
- */
33
- export function instanceOfIncidentsUpdateRequest(value: object): value is IncidentsUpdateRequest {
34
- if (!('fields' in value) || value['fields'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function IncidentsUpdateRequestFromJSON(json: any): IncidentsUpdateRequest {
39
- return IncidentsUpdateRequestFromJSONTyped(json, false);
40
- }
41
-
42
- export function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateRequest {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'fields': json['fields'],
49
- };
50
- }
51
-
52
- export function IncidentsUpdateRequestToJSON(json: any): IncidentsUpdateRequest {
53
- return IncidentsUpdateRequestToJSONTyped(json, false);
54
- }
55
-
56
- export function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'fields': value['fields'],
64
- };
65
- }
66
-