@digital8/security-registers-backend-ts-sdk 0.0.171 → 0.0.173

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 (54) hide show
  1. package/.openapi-generator/FILES +0 -8
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +23 -80
  4. package/dist/apis/GeneralApi.js +112 -397
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +1 -3
  7. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  8. package/dist/models/RegisterGroupedByRosterResource.js +4 -3
  9. package/dist/models/RegisterListResource.d.ts +4 -4
  10. package/dist/models/RegisterListResource.js +7 -4
  11. package/dist/models/RegisterResource.d.ts +2 -2
  12. package/dist/models/RegisterResource.js +2 -6
  13. package/dist/models/RosterLiteResource.d.ts +1 -1
  14. package/dist/models/RosterLiteResource.js +3 -4
  15. package/dist/models/RosterResource.d.ts +1 -1
  16. package/dist/models/RosterResource.js +4 -3
  17. package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +8 -8
  18. package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +9 -9
  19. package/dist/models/index.d.ts +0 -8
  20. package/dist/models/index.js +0 -8
  21. package/package.json +1 -1
  22. package/src/apis/GeneralApi.ts +98 -363
  23. package/src/models/AddressResource.ts +2 -3
  24. package/src/models/RegisterGroupedByRosterResource.ts +4 -3
  25. package/src/models/RegisterListResource.ts +9 -7
  26. package/src/models/RegisterResource.ts +4 -6
  27. package/src/models/RosterLiteResource.ts +3 -4
  28. package/src/models/RosterResource.ts +4 -3
  29. package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +17 -17
  30. package/src/models/index.ts +0 -8
  31. package/dist/models/IncidentFieldSchemaResource.d.ts +0 -56
  32. package/dist/models/IncidentFieldSchemaResource.js +0 -62
  33. package/dist/models/IncidentFieldSchemaResourceArrayResponse.d.ts +0 -33
  34. package/dist/models/IncidentFieldSchemaResourceArrayResponse.js +0 -50
  35. package/dist/models/IncidentResource.d.ts +0 -125
  36. package/dist/models/IncidentResource.js +0 -95
  37. package/dist/models/IncidentResourceArrayResponse.d.ts +0 -33
  38. package/dist/models/IncidentResourceArrayResponse.js +0 -50
  39. package/dist/models/IncidentVersionResource.d.ts +0 -69
  40. package/dist/models/IncidentVersionResource.js +0 -72
  41. package/dist/models/IncidentVersionResourceArrayResponse.d.ts +0 -33
  42. package/dist/models/IncidentVersionResourceArrayResponse.js +0 -50
  43. package/dist/models/IncidentsStoreRequest.d.ts +0 -38
  44. package/dist/models/IncidentsStoreRequest.js +0 -55
  45. package/dist/models/IncidentsUpdateRequest.d.ts +0 -32
  46. package/dist/models/IncidentsUpdateRequest.js +0 -51
  47. package/src/models/IncidentFieldSchemaResource.ts +0 -99
  48. package/src/models/IncidentFieldSchemaResourceArrayResponse.ts +0 -73
  49. package/src/models/IncidentResource.ts +0 -213
  50. package/src/models/IncidentResourceArrayResponse.ts +0 -73
  51. package/src/models/IncidentVersionResource.ts +0 -126
  52. package/src/models/IncidentVersionResourceArrayResponse.ts +0 -73
  53. package/src/models/IncidentsStoreRequest.ts +0 -75
  54. package/src/models/IncidentsUpdateRequest.ts +0 -66
@@ -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,38 +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 IncidentsStoreRequest
16
- */
17
- export interface IncidentsStoreRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof IncidentsStoreRequest
22
- */
23
- venueId: number;
24
- /**
25
- *
26
- * @type {Array<string>}
27
- * @memberof IncidentsStoreRequest
28
- */
29
- fields: Array<string>;
30
- }
31
- /**
32
- * Check if a given object implements the IncidentsStoreRequest interface.
33
- */
34
- export declare function instanceOfIncidentsStoreRequest(value: object): value is IncidentsStoreRequest;
35
- export declare function IncidentsStoreRequestFromJSON(json: any): IncidentsStoreRequest;
36
- export declare function IncidentsStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsStoreRequest;
37
- export declare function IncidentsStoreRequestToJSON(json: any): IncidentsStoreRequest;
38
- export declare function IncidentsStoreRequestToJSONTyped(value?: IncidentsStoreRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +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.instanceOfIncidentsStoreRequest = instanceOfIncidentsStoreRequest;
17
- exports.IncidentsStoreRequestFromJSON = IncidentsStoreRequestFromJSON;
18
- exports.IncidentsStoreRequestFromJSONTyped = IncidentsStoreRequestFromJSONTyped;
19
- exports.IncidentsStoreRequestToJSON = IncidentsStoreRequestToJSON;
20
- exports.IncidentsStoreRequestToJSONTyped = IncidentsStoreRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the IncidentsStoreRequest interface.
23
- */
24
- function instanceOfIncidentsStoreRequest(value) {
25
- if (!('venueId' in value) || value['venueId'] === undefined)
26
- return false;
27
- if (!('fields' in value) || value['fields'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function IncidentsStoreRequestFromJSON(json) {
32
- return IncidentsStoreRequestFromJSONTyped(json, false);
33
- }
34
- function IncidentsStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'venueId': json['venue_id'],
40
- 'fields': json['fields'],
41
- };
42
- }
43
- function IncidentsStoreRequestToJSON(json) {
44
- return IncidentsStoreRequestToJSONTyped(json, false);
45
- }
46
- function IncidentsStoreRequestToJSONTyped(value, ignoreDiscriminator) {
47
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'venue_id': value['venueId'],
53
- 'fields': value['fields'],
54
- };
55
- }
@@ -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,99 +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 IncidentFieldSchemaResource
20
- */
21
- export interface IncidentFieldSchemaResource {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof IncidentFieldSchemaResource
26
- */
27
- id?: number | null;
28
- /**
29
- *
30
- * @type {object}
31
- * @memberof IncidentFieldSchemaResource
32
- */
33
- state: object;
34
- /**
35
- *
36
- * @type {Array<boolean>}
37
- * @memberof IncidentFieldSchemaResource
38
- */
39
- jsonSchema: Array<boolean>;
40
- /**
41
- *
42
- * @type {Date}
43
- * @memberof IncidentFieldSchemaResource
44
- */
45
- createdAt?: Date | null;
46
- /**
47
- *
48
- * @type {Date}
49
- * @memberof IncidentFieldSchemaResource
50
- */
51
- updatedAt?: Date | null;
52
- }
53
-
54
- /**
55
- * Check if a given object implements the IncidentFieldSchemaResource interface.
56
- */
57
- export function instanceOfIncidentFieldSchemaResource(value: object): value is IncidentFieldSchemaResource {
58
- if (!('state' in value) || value['state'] === undefined) return false;
59
- if (!('jsonSchema' in value) || value['jsonSchema'] === undefined) return false;
60
- return true;
61
- }
62
-
63
- export function IncidentFieldSchemaResourceFromJSON(json: any): IncidentFieldSchemaResource {
64
- return IncidentFieldSchemaResourceFromJSONTyped(json, false);
65
- }
66
-
67
- export function IncidentFieldSchemaResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldSchemaResource {
68
- if (json == null) {
69
- return json;
70
- }
71
- return {
72
-
73
- 'id': json['id'] == null ? undefined : json['id'],
74
- 'state': json['state'],
75
- 'jsonSchema': json['jsonSchema'],
76
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
77
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
78
- };
79
- }
80
-
81
- export function IncidentFieldSchemaResourceToJSON(json: any): IncidentFieldSchemaResource {
82
- return IncidentFieldSchemaResourceToJSONTyped(json, false);
83
- }
84
-
85
- export function IncidentFieldSchemaResourceToJSONTyped(value?: IncidentFieldSchemaResource | null, ignoreDiscriminator: boolean = false): any {
86
- if (value == null) {
87
- return value;
88
- }
89
-
90
- return {
91
-
92
- 'id': value['id'],
93
- 'state': value['state'],
94
- 'jsonSchema': value['jsonSchema'],
95
- 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
96
- 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
97
- };
98
- }
99
-
@@ -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 { IncidentFieldSchemaResource } from './IncidentFieldSchemaResource';
17
- import {
18
- IncidentFieldSchemaResourceFromJSON,
19
- IncidentFieldSchemaResourceFromJSONTyped,
20
- IncidentFieldSchemaResourceToJSON,
21
- IncidentFieldSchemaResourceToJSONTyped,
22
- } from './IncidentFieldSchemaResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface IncidentFieldSchemaResourceArrayResponse
28
- */
29
- export interface IncidentFieldSchemaResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<IncidentFieldSchemaResource>}
33
- * @memberof IncidentFieldSchemaResourceArrayResponse
34
- */
35
- data?: Array<IncidentFieldSchemaResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the IncidentFieldSchemaResourceArrayResponse interface.
40
- */
41
- export function instanceOfIncidentFieldSchemaResourceArrayResponse(value: object): value is IncidentFieldSchemaResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function IncidentFieldSchemaResourceArrayResponseFromJSON(json: any): IncidentFieldSchemaResourceArrayResponse {
46
- return IncidentFieldSchemaResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function IncidentFieldSchemaResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldSchemaResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentFieldSchemaResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function IncidentFieldSchemaResourceArrayResponseToJSON(json: any): IncidentFieldSchemaResourceArrayResponse {
60
- return IncidentFieldSchemaResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function IncidentFieldSchemaResourceArrayResponseToJSONTyped(value?: IncidentFieldSchemaResourceArrayResponse | 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(IncidentFieldSchemaResourceToJSON)),
71
- };
72
- }
73
-