@seamapi/types 1.587.0 → 1.588.0
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.
- package/dist/connect.cjs +83 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +175 -0
- package/dist/index.cjs +83 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/customer/customer-data.d.ts +34 -0
- package/lib/seam/connect/models/customer/customer-data.js +5 -1
- package/lib/seam/connect/models/customer/customer-data.js.map +1 -1
- package/lib/seam/connect/models/customer/customer-portal.d.ts +14 -0
- package/lib/seam/connect/models/customer/location-resources.d.ts +46 -0
- package/lib/seam/connect/models/customer/location-resources.js +17 -0
- package/lib/seam/connect/models/customer/location-resources.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +144 -0
- package/lib/seam/connect/openapi.js +83 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +31 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/customer/customer-data.ts +5 -0
- package/src/lib/seam/connect/models/customer/location-resources.ts +19 -0
- package/src/lib/seam/connect/openapi.ts +89 -0
- package/src/lib/seam/connect/route-types.ts +37 -0
|
@@ -12,6 +12,17 @@ export declare const customer_data: z.ZodObject<{
|
|
|
12
12
|
name: string;
|
|
13
13
|
space_key: string;
|
|
14
14
|
}>, "many">>;
|
|
15
|
+
sites: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
} & {
|
|
18
|
+
site_key: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
name: string;
|
|
21
|
+
site_key: string;
|
|
22
|
+
}, {
|
|
23
|
+
name: string;
|
|
24
|
+
site_key: string;
|
|
25
|
+
}>, "many">>;
|
|
15
26
|
properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
16
27
|
name: z.ZodString;
|
|
17
28
|
} & {
|
|
@@ -27,34 +38,43 @@ export declare const customer_data: z.ZodObject<{
|
|
|
27
38
|
name: z.ZodString;
|
|
28
39
|
} & {
|
|
29
40
|
room_key: z.ZodString;
|
|
41
|
+
parent_site_key: z.ZodOptional<z.ZodString>;
|
|
30
42
|
}, "strip", z.ZodTypeAny, {
|
|
31
43
|
name: string;
|
|
32
44
|
room_key: string;
|
|
45
|
+
parent_site_key?: string | undefined;
|
|
33
46
|
}, {
|
|
34
47
|
name: string;
|
|
35
48
|
room_key: string;
|
|
49
|
+
parent_site_key?: string | undefined;
|
|
36
50
|
}>, "many">>;
|
|
37
51
|
common_areas: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
52
|
name: z.ZodString;
|
|
39
53
|
} & {
|
|
40
54
|
common_area_key: z.ZodString;
|
|
55
|
+
parent_site_key: z.ZodOptional<z.ZodString>;
|
|
41
56
|
}, "strip", z.ZodTypeAny, {
|
|
42
57
|
name: string;
|
|
43
58
|
common_area_key: string;
|
|
59
|
+
parent_site_key?: string | undefined;
|
|
44
60
|
}, {
|
|
45
61
|
name: string;
|
|
46
62
|
common_area_key: string;
|
|
63
|
+
parent_site_key?: string | undefined;
|
|
47
64
|
}>, "many">>;
|
|
48
65
|
units: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
66
|
name: z.ZodString;
|
|
50
67
|
} & {
|
|
51
68
|
unit_key: z.ZodString;
|
|
69
|
+
parent_site_key: z.ZodOptional<z.ZodString>;
|
|
52
70
|
}, "strip", z.ZodTypeAny, {
|
|
53
71
|
name: string;
|
|
54
72
|
unit_key: string;
|
|
73
|
+
parent_site_key?: string | undefined;
|
|
55
74
|
}, {
|
|
56
75
|
name: string;
|
|
57
76
|
unit_key: string;
|
|
77
|
+
parent_site_key?: string | undefined;
|
|
58
78
|
}>, "many">>;
|
|
59
79
|
facilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
80
|
name: z.ZodString;
|
|
@@ -370,6 +390,10 @@ export declare const customer_data: z.ZodObject<{
|
|
|
370
390
|
}>, "many">>;
|
|
371
391
|
}, "strip", z.ZodTypeAny, {
|
|
372
392
|
customer_key: string;
|
|
393
|
+
sites?: {
|
|
394
|
+
name: string;
|
|
395
|
+
site_key: string;
|
|
396
|
+
}[] | undefined;
|
|
373
397
|
properties?: {
|
|
374
398
|
name: string;
|
|
375
399
|
property_key: string;
|
|
@@ -407,14 +431,17 @@ export declare const customer_data: z.ZodObject<{
|
|
|
407
431
|
rooms?: {
|
|
408
432
|
name: string;
|
|
409
433
|
room_key: string;
|
|
434
|
+
parent_site_key?: string | undefined;
|
|
410
435
|
}[] | undefined;
|
|
411
436
|
common_areas?: {
|
|
412
437
|
name: string;
|
|
413
438
|
common_area_key: string;
|
|
439
|
+
parent_site_key?: string | undefined;
|
|
414
440
|
}[] | undefined;
|
|
415
441
|
units?: {
|
|
416
442
|
name: string;
|
|
417
443
|
unit_key: string;
|
|
444
|
+
parent_site_key?: string | undefined;
|
|
418
445
|
}[] | undefined;
|
|
419
446
|
facilities?: {
|
|
420
447
|
name: string;
|
|
@@ -498,6 +525,10 @@ export declare const customer_data: z.ZodObject<{
|
|
|
498
525
|
}[] | undefined;
|
|
499
526
|
}, {
|
|
500
527
|
customer_key: string;
|
|
528
|
+
sites?: {
|
|
529
|
+
name: string;
|
|
530
|
+
site_key: string;
|
|
531
|
+
}[] | undefined;
|
|
501
532
|
properties?: {
|
|
502
533
|
name: string;
|
|
503
534
|
property_key: string;
|
|
@@ -535,14 +566,17 @@ export declare const customer_data: z.ZodObject<{
|
|
|
535
566
|
rooms?: {
|
|
536
567
|
name: string;
|
|
537
568
|
room_key: string;
|
|
569
|
+
parent_site_key?: string | undefined;
|
|
538
570
|
}[] | undefined;
|
|
539
571
|
common_areas?: {
|
|
540
572
|
name: string;
|
|
541
573
|
common_area_key: string;
|
|
574
|
+
parent_site_key?: string | undefined;
|
|
542
575
|
}[] | undefined;
|
|
543
576
|
units?: {
|
|
544
577
|
name: string;
|
|
545
578
|
unit_key: string;
|
|
579
|
+
parent_site_key?: string | undefined;
|
|
546
580
|
}[] | undefined;
|
|
547
581
|
facilities?: {
|
|
548
582
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { access_grant_resource, booking_resource, reservation_resource, } from './access-grant-resources.js';
|
|
3
|
-
import { building_resource, common_area_resource, facility_resource, listing_resource, neutral_resource, property_listing_resource, property_resource, room_resource, unit_resource, } from './location-resources.js';
|
|
3
|
+
import { building_resource, common_area_resource, facility_resource, listing_resource, neutral_resource, property_listing_resource, property_resource, room_resource, site_resource, unit_resource, } from './location-resources.js';
|
|
4
4
|
import { guest_resource, resident_resource, tenant_resource, user_identity_resource, user_resource, } from './user-identity-resources.js';
|
|
5
5
|
export const customer_data = z.object({
|
|
6
6
|
customer_key: z.string().describe('Your unique identifier for the customer.'),
|
|
@@ -9,6 +9,10 @@ export const customer_data = z.object({
|
|
|
9
9
|
.array(neutral_resource)
|
|
10
10
|
.optional()
|
|
11
11
|
.describe('List of general spaces or areas.'),
|
|
12
|
+
sites: z
|
|
13
|
+
.array(site_resource)
|
|
14
|
+
.optional()
|
|
15
|
+
.describe('List of general sites or areas.'),
|
|
12
16
|
properties: z
|
|
13
17
|
.array(property_resource)
|
|
14
18
|
.optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-data.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/customer-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,GACd,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,cAAc,EACd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,8BAA8B,CAAA"}
|
|
@@ -129,6 +129,12 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
129
129
|
property_listing_key: string;
|
|
130
130
|
}, {
|
|
131
131
|
property_listing_key: string;
|
|
132
|
+
}>, z.ZodObject<{
|
|
133
|
+
site_key: z.ZodString;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
site_key: string;
|
|
136
|
+
}, {
|
|
137
|
+
site_key: string;
|
|
132
138
|
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
133
139
|
reservation_key: z.ZodString;
|
|
134
140
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -173,6 +179,8 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
173
179
|
listing_key: string;
|
|
174
180
|
} | {
|
|
175
181
|
property_listing_key: string;
|
|
182
|
+
} | {
|
|
183
|
+
site_key: string;
|
|
176
184
|
} | undefined;
|
|
177
185
|
}, {
|
|
178
186
|
manage?: {
|
|
@@ -199,6 +207,8 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
199
207
|
listing_key: string;
|
|
200
208
|
} | {
|
|
201
209
|
property_listing_key: string;
|
|
210
|
+
} | {
|
|
211
|
+
site_key: string;
|
|
202
212
|
} | undefined;
|
|
203
213
|
}>>;
|
|
204
214
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -245,6 +255,8 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
245
255
|
listing_key: string;
|
|
246
256
|
} | {
|
|
247
257
|
property_listing_key: string;
|
|
258
|
+
} | {
|
|
259
|
+
site_key: string;
|
|
248
260
|
} | undefined;
|
|
249
261
|
} | undefined;
|
|
250
262
|
}, {
|
|
@@ -291,6 +303,8 @@ export declare const portal_configuration: z.ZodDefault<z.ZodObject<{
|
|
|
291
303
|
listing_key: string;
|
|
292
304
|
} | {
|
|
293
305
|
property_listing_key: string;
|
|
306
|
+
} | {
|
|
307
|
+
site_key: string;
|
|
294
308
|
} | undefined;
|
|
295
309
|
} | undefined;
|
|
296
310
|
}>>;
|
|
@@ -25,34 +25,43 @@ export declare const room_resource: z.ZodObject<{
|
|
|
25
25
|
name: z.ZodString;
|
|
26
26
|
} & {
|
|
27
27
|
room_key: z.ZodString;
|
|
28
|
+
parent_site_key: z.ZodOptional<z.ZodString>;
|
|
28
29
|
}, "strip", z.ZodTypeAny, {
|
|
29
30
|
name: string;
|
|
30
31
|
room_key: string;
|
|
32
|
+
parent_site_key?: string | undefined;
|
|
31
33
|
}, {
|
|
32
34
|
name: string;
|
|
33
35
|
room_key: string;
|
|
36
|
+
parent_site_key?: string | undefined;
|
|
34
37
|
}>;
|
|
35
38
|
export declare const common_area_resource: z.ZodObject<{
|
|
36
39
|
name: z.ZodString;
|
|
37
40
|
} & {
|
|
38
41
|
common_area_key: z.ZodString;
|
|
42
|
+
parent_site_key: z.ZodOptional<z.ZodString>;
|
|
39
43
|
}, "strip", z.ZodTypeAny, {
|
|
40
44
|
name: string;
|
|
41
45
|
common_area_key: string;
|
|
46
|
+
parent_site_key?: string | undefined;
|
|
42
47
|
}, {
|
|
43
48
|
name: string;
|
|
44
49
|
common_area_key: string;
|
|
50
|
+
parent_site_key?: string | undefined;
|
|
45
51
|
}>;
|
|
46
52
|
export declare const unit_resource: z.ZodObject<{
|
|
47
53
|
name: z.ZodString;
|
|
48
54
|
} & {
|
|
49
55
|
unit_key: z.ZodString;
|
|
56
|
+
parent_site_key: z.ZodOptional<z.ZodString>;
|
|
50
57
|
}, "strip", z.ZodTypeAny, {
|
|
51
58
|
name: string;
|
|
52
59
|
unit_key: string;
|
|
60
|
+
parent_site_key?: string | undefined;
|
|
53
61
|
}, {
|
|
54
62
|
name: string;
|
|
55
63
|
unit_key: string;
|
|
64
|
+
parent_site_key?: string | undefined;
|
|
56
65
|
}>;
|
|
57
66
|
export declare const facility_resource: z.ZodObject<{
|
|
58
67
|
name: z.ZodString;
|
|
@@ -98,6 +107,17 @@ export declare const property_listing_resource: z.ZodObject<{
|
|
|
98
107
|
name: string;
|
|
99
108
|
property_listing_key: string;
|
|
100
109
|
}>;
|
|
110
|
+
export declare const site_resource: z.ZodObject<{
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
} & {
|
|
113
|
+
site_key: z.ZodString;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
name: string;
|
|
116
|
+
site_key: string;
|
|
117
|
+
}, {
|
|
118
|
+
name: string;
|
|
119
|
+
site_key: string;
|
|
120
|
+
}>;
|
|
101
121
|
export declare const location_resource: z.ZodUnion<[z.ZodObject<{
|
|
102
122
|
name: z.ZodString;
|
|
103
123
|
} & {
|
|
@@ -122,32 +142,41 @@ export declare const location_resource: z.ZodUnion<[z.ZodObject<{
|
|
|
122
142
|
name: z.ZodString;
|
|
123
143
|
} & {
|
|
124
144
|
room_key: z.ZodString;
|
|
145
|
+
parent_site_key: z.ZodOptional<z.ZodString>;
|
|
125
146
|
}, "strip", z.ZodTypeAny, {
|
|
126
147
|
name: string;
|
|
127
148
|
room_key: string;
|
|
149
|
+
parent_site_key?: string | undefined;
|
|
128
150
|
}, {
|
|
129
151
|
name: string;
|
|
130
152
|
room_key: string;
|
|
153
|
+
parent_site_key?: string | undefined;
|
|
131
154
|
}>, z.ZodObject<{
|
|
132
155
|
name: z.ZodString;
|
|
133
156
|
} & {
|
|
134
157
|
common_area_key: z.ZodString;
|
|
158
|
+
parent_site_key: z.ZodOptional<z.ZodString>;
|
|
135
159
|
}, "strip", z.ZodTypeAny, {
|
|
136
160
|
name: string;
|
|
137
161
|
common_area_key: string;
|
|
162
|
+
parent_site_key?: string | undefined;
|
|
138
163
|
}, {
|
|
139
164
|
name: string;
|
|
140
165
|
common_area_key: string;
|
|
166
|
+
parent_site_key?: string | undefined;
|
|
141
167
|
}>, z.ZodObject<{
|
|
142
168
|
name: z.ZodString;
|
|
143
169
|
} & {
|
|
144
170
|
unit_key: z.ZodString;
|
|
171
|
+
parent_site_key: z.ZodOptional<z.ZodString>;
|
|
145
172
|
}, "strip", z.ZodTypeAny, {
|
|
146
173
|
name: string;
|
|
147
174
|
unit_key: string;
|
|
175
|
+
parent_site_key?: string | undefined;
|
|
148
176
|
}, {
|
|
149
177
|
name: string;
|
|
150
178
|
unit_key: string;
|
|
179
|
+
parent_site_key?: string | undefined;
|
|
151
180
|
}>, z.ZodObject<{
|
|
152
181
|
name: z.ZodString;
|
|
153
182
|
} & {
|
|
@@ -188,6 +217,16 @@ export declare const location_resource: z.ZodUnion<[z.ZodObject<{
|
|
|
188
217
|
}, {
|
|
189
218
|
name: string;
|
|
190
219
|
property_listing_key: string;
|
|
220
|
+
}>, z.ZodObject<{
|
|
221
|
+
name: z.ZodString;
|
|
222
|
+
} & {
|
|
223
|
+
site_key: z.ZodString;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
name: string;
|
|
226
|
+
site_key: string;
|
|
227
|
+
}, {
|
|
228
|
+
name: string;
|
|
229
|
+
site_key: string;
|
|
191
230
|
}>]>;
|
|
192
231
|
export declare const location_key_aliases: z.ZodUnion<[z.ZodObject<{
|
|
193
232
|
space_key: z.ZodString;
|
|
@@ -243,6 +282,12 @@ export declare const location_key_aliases: z.ZodUnion<[z.ZodObject<{
|
|
|
243
282
|
property_listing_key: string;
|
|
244
283
|
}, {
|
|
245
284
|
property_listing_key: string;
|
|
285
|
+
}>, z.ZodObject<{
|
|
286
|
+
site_key: z.ZodString;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
site_key: string;
|
|
289
|
+
}, {
|
|
290
|
+
site_key: string;
|
|
246
291
|
}>]>;
|
|
247
292
|
export type NeutralResource = z.infer<typeof neutral_resource>;
|
|
248
293
|
export type PropertyResource = z.infer<typeof property_resource>;
|
|
@@ -255,3 +300,4 @@ export type ListingResource = z.infer<typeof listing_resource>;
|
|
|
255
300
|
export type PropertyListingResource = z.infer<typeof property_listing_resource>;
|
|
256
301
|
export type LocationResource = z.infer<typeof location_resource>;
|
|
257
302
|
export type LocationKeyAliases = z.infer<typeof location_key_aliases>;
|
|
303
|
+
export type SiteResource = z.infer<typeof site_resource>;
|
|
@@ -12,14 +12,26 @@ export const property_resource = base_location_resource.extend({
|
|
|
12
12
|
});
|
|
13
13
|
export const room_resource = base_location_resource.extend({
|
|
14
14
|
room_key: z.string().describe('Your unique identifier for the room.'),
|
|
15
|
+
parent_site_key: z
|
|
16
|
+
.string()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('Your unique identifier for the site.'),
|
|
15
19
|
});
|
|
16
20
|
export const common_area_resource = base_location_resource.extend({
|
|
17
21
|
common_area_key: z
|
|
18
22
|
.string()
|
|
19
23
|
.describe('Your unique identifier for the common area.'),
|
|
24
|
+
parent_site_key: z
|
|
25
|
+
.string()
|
|
26
|
+
.optional()
|
|
27
|
+
.describe('Your unique identifier for the site.'),
|
|
20
28
|
});
|
|
21
29
|
export const unit_resource = base_location_resource.extend({
|
|
22
30
|
unit_key: z.string().describe('Your unique identifier for the unit.'),
|
|
31
|
+
parent_site_key: z
|
|
32
|
+
.string()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe('Your unique identifier for the site.'),
|
|
23
35
|
});
|
|
24
36
|
export const facility_resource = base_location_resource.extend({
|
|
25
37
|
facility_key: z.string().describe('Your unique identifier for the facility.'),
|
|
@@ -35,6 +47,9 @@ export const property_listing_resource = base_location_resource.extend({
|
|
|
35
47
|
.string()
|
|
36
48
|
.describe('Your unique identifier for the property listing.'),
|
|
37
49
|
});
|
|
50
|
+
export const site_resource = base_location_resource.extend({
|
|
51
|
+
site_key: z.string().describe('Your unique identifier for the site.'),
|
|
52
|
+
});
|
|
38
53
|
// Union of all location resource types
|
|
39
54
|
export const location_resource = z.union([
|
|
40
55
|
neutral_resource,
|
|
@@ -46,6 +61,7 @@ export const location_resource = z.union([
|
|
|
46
61
|
building_resource,
|
|
47
62
|
listing_resource,
|
|
48
63
|
property_listing_resource,
|
|
64
|
+
site_resource,
|
|
49
65
|
]);
|
|
50
66
|
// All location key aliases for use in references
|
|
51
67
|
export const location_key_aliases = z.union([
|
|
@@ -58,5 +74,6 @@ export const location_key_aliases = z.union([
|
|
|
58
74
|
z.object({ building_key: z.string() }),
|
|
59
75
|
z.object({ listing_key: z.string() }),
|
|
60
76
|
z.object({ property_listing_key: z.string() }),
|
|
77
|
+
z.object({ site_key: z.string() }),
|
|
61
78
|
]);
|
|
62
79
|
//# sourceMappingURL=location-resources.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location-resources.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/location-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,4CAA4C;AAC5C,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;CAC3E,CAAC,CAAA;AAEF,iDAAiD;AACjD,MAAM,CAAC,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,MAAM,CAAC;IAC5D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;CACxE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,MAAM,CAAC;IAC7D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0CAA0C,CAAC;CAC9E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,sBAAsB,CAAC,MAAM,CAAC;IACzD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"location-resources.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/customer/location-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KA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