@digital8/security-registers-backend-ts-sdk 0.0.202 → 0.0.203

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 +6 -3
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +43 -16
  4. package/dist/apis/GeneralApi.js +221 -62
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +3 -1
  7. package/dist/models/IncidentFieldSchemasShowRequest.d.ts +46 -0
  8. package/dist/models/IncidentFieldSchemasShowRequest.js +65 -0
  9. package/dist/models/NotificationPreferenceResource.d.ts +63 -0
  10. package/dist/models/NotificationPreferenceResource.js +67 -0
  11. package/dist/models/NotificationPreferenceResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/NotificationPreferenceResourceArrayResponse.js +50 -0
  13. package/dist/models/NotificationPreferencesStoreRequest.d.ts +55 -0
  14. package/dist/models/NotificationPreferencesStoreRequest.js +68 -0
  15. package/dist/models/NotificationTypeResource.d.ts +38 -0
  16. package/dist/models/NotificationTypeResource.js +55 -0
  17. package/dist/models/NotificationTypeResourceArrayResponse.d.ts +33 -0
  18. package/dist/models/NotificationTypeResourceArrayResponse.js +50 -0
  19. package/dist/models/RegisterListResource.d.ts +3 -3
  20. package/dist/models/RegisterListResource.js +9 -3
  21. package/dist/models/RegisterResource.d.ts +2 -2
  22. package/dist/models/RegisterResource.js +4 -4
  23. package/dist/models/RosterListResource.d.ts +1 -1
  24. package/dist/models/RosterListResource.js +3 -4
  25. package/dist/models/RosterResource.d.ts +1 -1
  26. package/dist/models/RosterResource.js +4 -3
  27. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  28. package/dist/models/SecurityCompanyResource.js +1 -3
  29. package/dist/models/index.d.ts +6 -3
  30. package/dist/models/index.js +6 -3
  31. package/package.json +1 -1
  32. package/src/apis/GeneralApi.ts +191 -64
  33. package/src/models/AddressResource.ts +3 -2
  34. package/src/models/IncidentFieldSchemasShowRequest.ts +83 -0
  35. package/src/models/NotificationPreferenceResource.ts +116 -0
  36. package/src/models/NotificationPreferenceResourceArrayResponse.ts +73 -0
  37. package/src/models/NotificationPreferencesStoreRequest.ts +97 -0
  38. package/src/models/NotificationTypeResource.ts +75 -0
  39. package/src/models/NotificationTypeResourceArrayResponse.ts +73 -0
  40. package/src/models/RegisterListResource.ts +9 -6
  41. package/src/models/RegisterResource.ts +5 -5
  42. package/src/models/RosterListResource.ts +3 -4
  43. package/src/models/RosterResource.ts +4 -3
  44. package/src/models/SecurityCompanyResource.ts +2 -3
  45. package/src/models/index.ts +6 -3
  46. package/dist/models/IncidentResource.d.ts +0 -119
  47. package/dist/models/IncidentResource.js +0 -91
  48. package/dist/models/IncidentResourceArrayResponse.d.ts +0 -33
  49. package/dist/models/IncidentResourceArrayResponse.js +0 -50
  50. package/dist/models/IncidentsStoreRequest.d.ts +0 -38
  51. package/dist/models/IncidentsStoreRequest.js +0 -55
  52. package/src/models/IncidentResource.ts +0 -204
  53. package/src/models/IncidentResourceArrayResponse.ts +0 -73
  54. package/src/models/IncidentsStoreRequest.ts +0 -75
@@ -1,91 +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.instanceOfIncidentResource = instanceOfIncidentResource;
17
- exports.IncidentResourceFromJSON = IncidentResourceFromJSON;
18
- exports.IncidentResourceFromJSONTyped = IncidentResourceFromJSONTyped;
19
- exports.IncidentResourceToJSON = IncidentResourceToJSON;
20
- exports.IncidentResourceToJSONTyped = IncidentResourceToJSONTyped;
21
- var VenueLiteResource_1 = require("./VenueLiteResource");
22
- var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
23
- var UserLiteResource_1 = require("./UserLiteResource");
24
- /**
25
- * Check if a given object implements the IncidentResource interface.
26
- */
27
- function instanceOfIncidentResource(value) {
28
- if (!('id' in value) || value['id'] === undefined)
29
- return false;
30
- if (!('venue' in value) || value['venue'] === undefined)
31
- return false;
32
- if (!('securityCompany' in value) || value['securityCompany'] === undefined)
33
- return false;
34
- if (!('user' in value) || value['user'] === undefined)
35
- return false;
36
- if (!('fields' in value) || value['fields'] === undefined)
37
- return false;
38
- return true;
39
- }
40
- function IncidentResourceFromJSON(json) {
41
- return IncidentResourceFromJSONTyped(json, false);
42
- }
43
- function IncidentResourceFromJSONTyped(json, ignoreDiscriminator) {
44
- if (json == null) {
45
- return json;
46
- }
47
- return {
48
- 'id': json['id'],
49
- 'venueId': json['venueId'] == null ? undefined : json['venueId'],
50
- 'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
51
- 'securityCompanyId': json['securityCompanyId'] == null ? undefined : json['securityCompanyId'],
52
- 'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
53
- 'rosterId': json['rosterId'] == null ? undefined : json['rosterId'],
54
- 'registerId': json['registerId'] == null ? undefined : json['registerId'],
55
- 'userId': json['userId'] == null ? undefined : json['userId'],
56
- 'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
57
- 'incidentFieldSchemaId': json['incidentFieldSchemaId'] == null ? undefined : json['incidentFieldSchemaId'],
58
- 'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
59
- 'approvedByUserId': json['approvedByUserId'] == null ? undefined : json['approvedByUserId'],
60
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
61
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
62
- 'fields': json['fields'],
63
- };
64
- }
65
- function IncidentResourceToJSON(json) {
66
- return IncidentResourceToJSONTyped(json, false);
67
- }
68
- function IncidentResourceToJSONTyped(value, ignoreDiscriminator) {
69
- var _a, _b, _c;
70
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
71
- if (value == null) {
72
- return value;
73
- }
74
- return {
75
- 'id': value['id'],
76
- 'venueId': value['venueId'],
77
- 'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
78
- 'securityCompanyId': value['securityCompanyId'],
79
- 'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
80
- 'rosterId': value['rosterId'],
81
- 'registerId': value['registerId'],
82
- 'userId': value['userId'],
83
- 'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
84
- 'incidentFieldSchemaId': value['incidentFieldSchemaId'],
85
- 'approvedAt': value['approvedAt'] === null ? null : ((_a = value['approvedAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
86
- 'approvedByUserId': value['approvedByUserId'],
87
- 'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
88
- 'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
89
- 'fields': value['fields'],
90
- };
91
- }
@@ -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 { IncidentResource } from './IncidentResource';
13
- /**
14
- *
15
- * @export
16
- * @interface IncidentResourceArrayResponse
17
- */
18
- export interface IncidentResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<IncidentResource>}
22
- * @memberof IncidentResourceArrayResponse
23
- */
24
- data?: Array<IncidentResource>;
25
- }
26
- /**
27
- * Check if a given object implements the IncidentResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfIncidentResourceArrayResponse(value: object): value is IncidentResourceArrayResponse;
30
- export declare function IncidentResourceArrayResponseFromJSON(json: any): IncidentResourceArrayResponse;
31
- export declare function IncidentResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentResourceArrayResponse;
32
- export declare function IncidentResourceArrayResponseToJSON(json: any): IncidentResourceArrayResponse;
33
- export declare function IncidentResourceArrayResponseToJSONTyped(value?: IncidentResourceArrayResponse | 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.instanceOfIncidentResourceArrayResponse = instanceOfIncidentResourceArrayResponse;
17
- exports.IncidentResourceArrayResponseFromJSON = IncidentResourceArrayResponseFromJSON;
18
- exports.IncidentResourceArrayResponseFromJSONTyped = IncidentResourceArrayResponseFromJSONTyped;
19
- exports.IncidentResourceArrayResponseToJSON = IncidentResourceArrayResponseToJSON;
20
- exports.IncidentResourceArrayResponseToJSONTyped = IncidentResourceArrayResponseToJSONTyped;
21
- var IncidentResource_1 = require("./IncidentResource");
22
- /**
23
- * Check if a given object implements the IncidentResourceArrayResponse interface.
24
- */
25
- function instanceOfIncidentResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function IncidentResourceArrayResponseFromJSON(json) {
29
- return IncidentResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function IncidentResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(IncidentResource_1.IncidentResourceFromJSON)),
37
- };
38
- }
39
- function IncidentResourceArrayResponseToJSON(json) {
40
- return IncidentResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function IncidentResourceArrayResponseToJSONTyped(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(IncidentResource_1.IncidentResourceToJSON)),
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
- * Dynamic fields keyed by section key. Non-repeatable sections are objects of field_key => value; repeatable sections are arrays of such objects. Shape is driven by the venue state's IncidentFieldSchema.
26
- * @type {object}
27
- * @memberof IncidentsStoreRequest
28
- */
29
- fields: object;
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,204 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { VenueLiteResource } from './VenueLiteResource';
17
- import {
18
- VenueLiteResourceFromJSON,
19
- VenueLiteResourceFromJSONTyped,
20
- VenueLiteResourceToJSON,
21
- VenueLiteResourceToJSONTyped,
22
- } from './VenueLiteResource';
23
- import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
24
- import {
25
- SecurityCompanyLiteResourceFromJSON,
26
- SecurityCompanyLiteResourceFromJSONTyped,
27
- SecurityCompanyLiteResourceToJSON,
28
- SecurityCompanyLiteResourceToJSONTyped,
29
- } from './SecurityCompanyLiteResource';
30
- import type { UserLiteResource } from './UserLiteResource';
31
- import {
32
- UserLiteResourceFromJSON,
33
- UserLiteResourceFromJSONTyped,
34
- UserLiteResourceToJSON,
35
- UserLiteResourceToJSONTyped,
36
- } from './UserLiteResource';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface IncidentResource
42
- */
43
- export interface IncidentResource {
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof IncidentResource
48
- */
49
- id: number;
50
- /**
51
- *
52
- * @type {number}
53
- * @memberof IncidentResource
54
- */
55
- venueId?: number | null;
56
- /**
57
- *
58
- * @type {VenueLiteResource}
59
- * @memberof IncidentResource
60
- */
61
- venue: VenueLiteResource | null;
62
- /**
63
- *
64
- * @type {number}
65
- * @memberof IncidentResource
66
- */
67
- securityCompanyId?: number | null;
68
- /**
69
- *
70
- * @type {SecurityCompanyLiteResource}
71
- * @memberof IncidentResource
72
- */
73
- securityCompany: SecurityCompanyLiteResource | null;
74
- /**
75
- *
76
- * @type {number}
77
- * @memberof IncidentResource
78
- */
79
- rosterId?: number | null;
80
- /**
81
- *
82
- * @type {number}
83
- * @memberof IncidentResource
84
- */
85
- registerId?: number | null;
86
- /**
87
- *
88
- * @type {number}
89
- * @memberof IncidentResource
90
- */
91
- userId?: number | null;
92
- /**
93
- *
94
- * @type {UserLiteResource}
95
- * @memberof IncidentResource
96
- */
97
- user: UserLiteResource | null;
98
- /**
99
- *
100
- * @type {number}
101
- * @memberof IncidentResource
102
- */
103
- incidentFieldSchemaId?: number | null;
104
- /**
105
- *
106
- * @type {Date}
107
- * @memberof IncidentResource
108
- */
109
- approvedAt?: Date | null;
110
- /**
111
- *
112
- * @type {number}
113
- * @memberof IncidentResource
114
- */
115
- approvedByUserId?: number | null;
116
- /**
117
- *
118
- * @type {Date}
119
- * @memberof IncidentResource
120
- */
121
- createdAt?: Date | null;
122
- /**
123
- *
124
- * @type {Date}
125
- * @memberof IncidentResource
126
- */
127
- updatedAt?: Date | null;
128
- /**
129
- *
130
- * @type {Array<object>}
131
- * @memberof IncidentResource
132
- */
133
- fields: Array<object>;
134
- }
135
-
136
- /**
137
- * Check if a given object implements the IncidentResource interface.
138
- */
139
- export function instanceOfIncidentResource(value: object): value is IncidentResource {
140
- if (!('id' in value) || value['id'] === undefined) return false;
141
- if (!('venue' in value) || value['venue'] === undefined) return false;
142
- if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
143
- if (!('user' in value) || value['user'] === undefined) return false;
144
- if (!('fields' in value) || value['fields'] === undefined) return false;
145
- return true;
146
- }
147
-
148
- export function IncidentResourceFromJSON(json: any): IncidentResource {
149
- return IncidentResourceFromJSONTyped(json, false);
150
- }
151
-
152
- export function IncidentResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentResource {
153
- if (json == null) {
154
- return json;
155
- }
156
- return {
157
-
158
- 'id': json['id'],
159
- 'venueId': json['venueId'] == null ? undefined : json['venueId'],
160
- 'venue': VenueLiteResourceFromJSON(json['venue']),
161
- 'securityCompanyId': json['securityCompanyId'] == null ? undefined : json['securityCompanyId'],
162
- 'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
163
- 'rosterId': json['rosterId'] == null ? undefined : json['rosterId'],
164
- 'registerId': json['registerId'] == null ? undefined : json['registerId'],
165
- 'userId': json['userId'] == null ? undefined : json['userId'],
166
- 'user': UserLiteResourceFromJSON(json['user']),
167
- 'incidentFieldSchemaId': json['incidentFieldSchemaId'] == null ? undefined : json['incidentFieldSchemaId'],
168
- 'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
169
- 'approvedByUserId': json['approvedByUserId'] == null ? undefined : json['approvedByUserId'],
170
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
171
- 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
172
- 'fields': json['fields'],
173
- };
174
- }
175
-
176
- export function IncidentResourceToJSON(json: any): IncidentResource {
177
- return IncidentResourceToJSONTyped(json, false);
178
- }
179
-
180
- export function IncidentResourceToJSONTyped(value?: IncidentResource | null, ignoreDiscriminator: boolean = false): any {
181
- if (value == null) {
182
- return value;
183
- }
184
-
185
- return {
186
-
187
- 'id': value['id'],
188
- 'venueId': value['venueId'],
189
- 'venue': VenueLiteResourceToJSON(value['venue']),
190
- 'securityCompanyId': value['securityCompanyId'],
191
- 'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
192
- 'rosterId': value['rosterId'],
193
- 'registerId': value['registerId'],
194
- 'userId': value['userId'],
195
- 'user': UserLiteResourceToJSON(value['user']),
196
- 'incidentFieldSchemaId': value['incidentFieldSchemaId'],
197
- 'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
198
- 'approvedByUserId': value['approvedByUserId'],
199
- 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
200
- 'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
201
- 'fields': value['fields'],
202
- };
203
- }
204
-
@@ -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 { IncidentResource } from './IncidentResource';
17
- import {
18
- IncidentResourceFromJSON,
19
- IncidentResourceFromJSONTyped,
20
- IncidentResourceToJSON,
21
- IncidentResourceToJSONTyped,
22
- } from './IncidentResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface IncidentResourceArrayResponse
28
- */
29
- export interface IncidentResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<IncidentResource>}
33
- * @memberof IncidentResourceArrayResponse
34
- */
35
- data?: Array<IncidentResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the IncidentResourceArrayResponse interface.
40
- */
41
- export function instanceOfIncidentResourceArrayResponse(value: object): value is IncidentResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function IncidentResourceArrayResponseFromJSON(json: any): IncidentResourceArrayResponse {
46
- return IncidentResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function IncidentResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function IncidentResourceArrayResponseToJSON(json: any): IncidentResourceArrayResponse {
60
- return IncidentResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function IncidentResourceArrayResponseToJSONTyped(value?: IncidentResourceArrayResponse | 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(IncidentResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,75 +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 IncidentsStoreRequest
20
- */
21
- export interface IncidentsStoreRequest {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof IncidentsStoreRequest
26
- */
27
- venueId: number;
28
- /**
29
- * Dynamic fields keyed by section key. Non-repeatable sections are objects of field_key => value; repeatable sections are arrays of such objects. Shape is driven by the venue state's IncidentFieldSchema.
30
- * @type {object}
31
- * @memberof IncidentsStoreRequest
32
- */
33
- fields: object;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the IncidentsStoreRequest interface.
38
- */
39
- export function instanceOfIncidentsStoreRequest(value: object): value is IncidentsStoreRequest {
40
- if (!('venueId' in value) || value['venueId'] === undefined) return false;
41
- if (!('fields' in value) || value['fields'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function IncidentsStoreRequestFromJSON(json: any): IncidentsStoreRequest {
46
- return IncidentsStoreRequestFromJSONTyped(json, false);
47
- }
48
-
49
- export function IncidentsStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsStoreRequest {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'venueId': json['venue_id'],
56
- 'fields': json['fields'],
57
- };
58
- }
59
-
60
- export function IncidentsStoreRequestToJSON(json: any): IncidentsStoreRequest {
61
- return IncidentsStoreRequestToJSONTyped(json, false);
62
- }
63
-
64
- export function IncidentsStoreRequestToJSONTyped(value?: IncidentsStoreRequest | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'venue_id': value['venueId'],
72
- 'fields': value['fields'],
73
- };
74
- }
75
-