@feltmaps/js-sdk 1.5.0-next.19 → 1.5.0-next.20
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/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/handler.cjs +1 -1
- package/dist/handler.d.cts +7 -15
- package/dist/handler.d.ts +7 -15
- package/dist/handler.js +1 -1
- package/dist/{types-BQxcl9Qq.d.cts → types-DWW9xTjP.d.cts} +114 -24
- package/dist/{types-BQxcl9Qq.d.ts → types-DWW9xTjP.d.ts} +114 -24
- package/handler.d.ts +7 -15
- package/handler.js +1 -1
- package/package.json +1 -1
- package/{types-BQxcl9Qq.d.ts → types-DWW9xTjP.d.ts} +114 -24
|
@@ -1109,13 +1109,12 @@ declare const TextCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1109
1109
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1110
1110
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
1111
1111
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1112
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
1113
1112
|
text: z.ZodOptional<z.ZodString>;
|
|
1114
1113
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1115
1114
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
1116
1115
|
name: z.ZodOptional<z.ZodString>;
|
|
1117
1116
|
type: z.ZodOptional<z.ZodLiteral<"Text">>;
|
|
1118
|
-
}, "type" | "
|
|
1117
|
+
}, "type" | "id" | "name">, {
|
|
1119
1118
|
type: z.ZodLiteral<"Text">;
|
|
1120
1119
|
text: z.ZodString;
|
|
1121
1120
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1158,14 +1157,13 @@ declare const NoteCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1158
1157
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1159
1158
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
1160
1159
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1161
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
1162
1160
|
text: z.ZodOptional<z.ZodString>;
|
|
1163
1161
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1164
1162
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
1165
1163
|
name: z.ZodOptional<z.ZodString>;
|
|
1166
1164
|
type: z.ZodOptional<z.ZodLiteral<"Note">>;
|
|
1167
1165
|
widthScale: z.ZodOptional<z.ZodNumber>;
|
|
1168
|
-
}, "type" | "
|
|
1166
|
+
}, "type" | "id" | "name">, {
|
|
1169
1167
|
type: z.ZodLiteral<"Note">;
|
|
1170
1168
|
text: z.ZodString;
|
|
1171
1169
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -2104,7 +2102,7 @@ declare const HighlighterReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
2104
2102
|
renderHoles: boolean;
|
|
2105
2103
|
interaction?: "default" | "locked" | undefined;
|
|
2106
2104
|
}>;
|
|
2107
|
-
declare const TextReadSchema: z.ZodObject<
|
|
2105
|
+
declare const TextReadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2108
2106
|
/**
|
|
2109
2107
|
* The unique identifier for the element.
|
|
2110
2108
|
*/
|
|
@@ -2169,12 +2167,31 @@ declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2169
2167
|
*/
|
|
2170
2168
|
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
2171
2169
|
}, {
|
|
2170
|
+
/**
|
|
2171
|
+
* The geographical position of the center of the element.
|
|
2172
|
+
*/
|
|
2172
2173
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
2174
|
+
/**
|
|
2175
|
+
* The rotation of the element in degrees.
|
|
2176
|
+
*
|
|
2177
|
+
* @default 0
|
|
2178
|
+
*/
|
|
2173
2179
|
rotation: z.ZodNumber;
|
|
2180
|
+
/**
|
|
2181
|
+
* The relative scale of the element from the default size. This is combined
|
|
2182
|
+
* with the `zoom` to determine the actual size of the element.
|
|
2183
|
+
*
|
|
2184
|
+
* @default 1
|
|
2185
|
+
*/
|
|
2174
2186
|
scale: z.ZodNumber;
|
|
2187
|
+
/**
|
|
2188
|
+
* The zoom level at which the element was created. This is combined with
|
|
2189
|
+
* the `scale` to determine the actual size of the element.
|
|
2190
|
+
*
|
|
2191
|
+
* When creating an element, if you don't supply this value it defaults to
|
|
2192
|
+
* the current zoom of the map when you call `createElement`.
|
|
2193
|
+
*/
|
|
2175
2194
|
zoom: z.ZodNumber;
|
|
2176
|
-
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
2177
|
-
}>, {
|
|
2178
2195
|
/**
|
|
2179
2196
|
* The text in the element.
|
|
2180
2197
|
*/
|
|
@@ -2200,7 +2217,7 @@ declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2200
2217
|
name: z.ZodString;
|
|
2201
2218
|
}>, {
|
|
2202
2219
|
type: z.ZodLiteral<"Text">;
|
|
2203
|
-
}>, "
|
|
2220
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2204
2221
|
type: "Text";
|
|
2205
2222
|
id: string;
|
|
2206
2223
|
groupId: string | null;
|
|
@@ -2233,7 +2250,7 @@ declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2233
2250
|
style: "italic" | "light" | "regular" | "caps";
|
|
2234
2251
|
interaction?: "default" | "locked" | undefined;
|
|
2235
2252
|
}>;
|
|
2236
|
-
declare const NoteReadSchema: z.ZodObject<
|
|
2253
|
+
declare const NoteReadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2237
2254
|
/**
|
|
2238
2255
|
* The unique identifier for the element.
|
|
2239
2256
|
*/
|
|
@@ -2298,12 +2315,31 @@ declare const NoteReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2298
2315
|
*/
|
|
2299
2316
|
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
2300
2317
|
}, {
|
|
2318
|
+
/**
|
|
2319
|
+
* The geographical position of the center of the element.
|
|
2320
|
+
*/
|
|
2301
2321
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
2322
|
+
/**
|
|
2323
|
+
* The rotation of the element in degrees.
|
|
2324
|
+
*
|
|
2325
|
+
* @default 0
|
|
2326
|
+
*/
|
|
2302
2327
|
rotation: z.ZodNumber;
|
|
2328
|
+
/**
|
|
2329
|
+
* The relative scale of the element from the default size. This is combined
|
|
2330
|
+
* with the `zoom` to determine the actual size of the element.
|
|
2331
|
+
*
|
|
2332
|
+
* @default 1
|
|
2333
|
+
*/
|
|
2303
2334
|
scale: z.ZodNumber;
|
|
2335
|
+
/**
|
|
2336
|
+
* The zoom level at which the element was created. This is combined with
|
|
2337
|
+
* the `scale` to determine the actual size of the element.
|
|
2338
|
+
*
|
|
2339
|
+
* When creating an element, if you don't supply this value it defaults to
|
|
2340
|
+
* the current zoom of the map when you call `createElement`.
|
|
2341
|
+
*/
|
|
2304
2342
|
zoom: z.ZodNumber;
|
|
2305
|
-
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
2306
|
-
}>, {
|
|
2307
2343
|
/**
|
|
2308
2344
|
* The text in the element.
|
|
2309
2345
|
*/
|
|
@@ -2330,7 +2366,7 @@ declare const NoteReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2330
2366
|
}>, {
|
|
2331
2367
|
type: z.ZodLiteral<"Note">;
|
|
2332
2368
|
widthScale: z.ZodNumber;
|
|
2333
|
-
}>, "
|
|
2369
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2334
2370
|
type: "Note";
|
|
2335
2371
|
id: string;
|
|
2336
2372
|
groupId: string | null;
|
|
@@ -3461,13 +3497,12 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3461
3497
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
3462
3498
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
3463
3499
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
3464
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
3465
3500
|
text: z.ZodOptional<z.ZodString>;
|
|
3466
3501
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
3467
3502
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
3468
3503
|
name: z.ZodOptional<z.ZodString>;
|
|
3469
3504
|
type: z.ZodOptional<z.ZodLiteral<"Text">>;
|
|
3470
|
-
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<
|
|
3505
|
+
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3471
3506
|
/**
|
|
3472
3507
|
* The unique identifier for the element.
|
|
3473
3508
|
*/
|
|
@@ -3532,12 +3567,31 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3532
3567
|
*/
|
|
3533
3568
|
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
3534
3569
|
}, {
|
|
3570
|
+
/**
|
|
3571
|
+
* The geographical position of the center of the element.
|
|
3572
|
+
*/
|
|
3535
3573
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
3574
|
+
/**
|
|
3575
|
+
* The rotation of the element in degrees.
|
|
3576
|
+
*
|
|
3577
|
+
* @default 0
|
|
3578
|
+
*/
|
|
3536
3579
|
rotation: z.ZodNumber;
|
|
3580
|
+
/**
|
|
3581
|
+
* The relative scale of the element from the default size. This is combined
|
|
3582
|
+
* with the `zoom` to determine the actual size of the element.
|
|
3583
|
+
*
|
|
3584
|
+
* @default 1
|
|
3585
|
+
*/
|
|
3537
3586
|
scale: z.ZodNumber;
|
|
3587
|
+
/**
|
|
3588
|
+
* The zoom level at which the element was created. This is combined with
|
|
3589
|
+
* the `scale` to determine the actual size of the element.
|
|
3590
|
+
*
|
|
3591
|
+
* When creating an element, if you don't supply this value it defaults to
|
|
3592
|
+
* the current zoom of the map when you call `createElement`.
|
|
3593
|
+
*/
|
|
3538
3594
|
zoom: z.ZodNumber;
|
|
3539
|
-
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
3540
|
-
}>, {
|
|
3541
3595
|
/**
|
|
3542
3596
|
* The text in the element.
|
|
3543
3597
|
*/
|
|
@@ -3563,7 +3617,7 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3563
3617
|
name: z.ZodString;
|
|
3564
3618
|
}>, {
|
|
3565
3619
|
type: z.ZodLiteral<"Text">;
|
|
3566
|
-
}>, "type" | "id">>, "
|
|
3620
|
+
}>, "type" | "id">>, "name">, "strip", z.ZodTypeAny, {
|
|
3567
3621
|
type: "Text";
|
|
3568
3622
|
id: string;
|
|
3569
3623
|
groupId?: string | null | undefined;
|
|
@@ -3605,14 +3659,13 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3605
3659
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
3606
3660
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
3607
3661
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
3608
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
3609
3662
|
text: z.ZodOptional<z.ZodString>;
|
|
3610
3663
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
3611
3664
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
3612
3665
|
name: z.ZodOptional<z.ZodString>;
|
|
3613
3666
|
type: z.ZodOptional<z.ZodLiteral<"Note">>;
|
|
3614
3667
|
widthScale: z.ZodOptional<z.ZodNumber>;
|
|
3615
|
-
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<
|
|
3668
|
+
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3616
3669
|
/**
|
|
3617
3670
|
* The unique identifier for the element.
|
|
3618
3671
|
*/
|
|
@@ -3677,12 +3730,31 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3677
3730
|
*/
|
|
3678
3731
|
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
3679
3732
|
}, {
|
|
3733
|
+
/**
|
|
3734
|
+
* The geographical position of the center of the element.
|
|
3735
|
+
*/
|
|
3680
3736
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
3737
|
+
/**
|
|
3738
|
+
* The rotation of the element in degrees.
|
|
3739
|
+
*
|
|
3740
|
+
* @default 0
|
|
3741
|
+
*/
|
|
3681
3742
|
rotation: z.ZodNumber;
|
|
3743
|
+
/**
|
|
3744
|
+
* The relative scale of the element from the default size. This is combined
|
|
3745
|
+
* with the `zoom` to determine the actual size of the element.
|
|
3746
|
+
*
|
|
3747
|
+
* @default 1
|
|
3748
|
+
*/
|
|
3682
3749
|
scale: z.ZodNumber;
|
|
3750
|
+
/**
|
|
3751
|
+
* The zoom level at which the element was created. This is combined with
|
|
3752
|
+
* the `scale` to determine the actual size of the element.
|
|
3753
|
+
*
|
|
3754
|
+
* When creating an element, if you don't supply this value it defaults to
|
|
3755
|
+
* the current zoom of the map when you call `createElement`.
|
|
3756
|
+
*/
|
|
3683
3757
|
zoom: z.ZodNumber;
|
|
3684
|
-
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
3685
|
-
}>, {
|
|
3686
3758
|
/**
|
|
3687
3759
|
* The text in the element.
|
|
3688
3760
|
*/
|
|
@@ -3709,7 +3781,7 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3709
3781
|
}>, {
|
|
3710
3782
|
type: z.ZodLiteral<"Note">;
|
|
3711
3783
|
widthScale: z.ZodNumber;
|
|
3712
|
-
}>, "type" | "id">>, "
|
|
3784
|
+
}>, "type" | "id">>, "name">, "strip", z.ZodTypeAny, {
|
|
3713
3785
|
type: "Note";
|
|
3714
3786
|
id: string;
|
|
3715
3787
|
groupId?: string | null | undefined;
|
|
@@ -3872,10 +3944,22 @@ interface HighlighterElementCreate extends zInfer<typeof HighlighterCreateSchema
|
|
|
3872
3944
|
coordinates: LngLatTuple[][][];
|
|
3873
3945
|
}
|
|
3874
3946
|
interface TextElementCreate extends zInfer<typeof TextCreateSchema> {
|
|
3875
|
-
|
|
3947
|
+
/**
|
|
3948
|
+
* The geographical position of the center of the text element.
|
|
3949
|
+
*
|
|
3950
|
+
* If this is omitted, the text will be placed at the center of the current
|
|
3951
|
+
* viewport.
|
|
3952
|
+
*/
|
|
3953
|
+
position?: LngLatTuple;
|
|
3876
3954
|
}
|
|
3877
3955
|
interface NoteElementCreate extends zInfer<typeof NoteCreateSchema> {
|
|
3878
|
-
|
|
3956
|
+
/**
|
|
3957
|
+
* The geographical position of the center of the note element.
|
|
3958
|
+
*
|
|
3959
|
+
* If this is omitted, the note will be placed at the center of the current
|
|
3960
|
+
* viewport.
|
|
3961
|
+
*/
|
|
3962
|
+
position?: LngLatTuple;
|
|
3879
3963
|
}
|
|
3880
3964
|
interface ImageElementCreate extends zInfer<typeof ImageCreateSchema> {
|
|
3881
3965
|
}
|
|
@@ -3894,9 +3978,15 @@ interface MarkerElementRead extends zInfer<typeof MarkerReadSchema> {
|
|
|
3894
3978
|
interface HighlighterElementRead extends zInfer<typeof HighlighterReadSchema> {
|
|
3895
3979
|
}
|
|
3896
3980
|
interface TextElementRead extends zInfer<typeof TextReadSchema> {
|
|
3981
|
+
/**
|
|
3982
|
+
* The geographical position of the center of the text element.
|
|
3983
|
+
*/
|
|
3897
3984
|
position: LngLatTuple;
|
|
3898
3985
|
}
|
|
3899
3986
|
interface NoteElementRead extends zInfer<typeof NoteReadSchema> {
|
|
3987
|
+
/**
|
|
3988
|
+
* The geographical position of the center of the note element.
|
|
3989
|
+
*/
|
|
3900
3990
|
position: LngLatTuple;
|
|
3901
3991
|
}
|
|
3902
3992
|
interface ImageElementRead extends zInfer<typeof ImageReadSchema> {
|
|
@@ -1109,13 +1109,12 @@ declare const TextCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1109
1109
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1110
1110
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
1111
1111
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1112
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
1113
1112
|
text: z.ZodOptional<z.ZodString>;
|
|
1114
1113
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1115
1114
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
1116
1115
|
name: z.ZodOptional<z.ZodString>;
|
|
1117
1116
|
type: z.ZodOptional<z.ZodLiteral<"Text">>;
|
|
1118
|
-
}, "type" | "
|
|
1117
|
+
}, "type" | "id" | "name">, {
|
|
1119
1118
|
type: z.ZodLiteral<"Text">;
|
|
1120
1119
|
text: z.ZodString;
|
|
1121
1120
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -1158,14 +1157,13 @@ declare const NoteCreateSchema: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
1158
1157
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
1159
1158
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
1160
1159
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
1161
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
1162
1160
|
text: z.ZodOptional<z.ZodString>;
|
|
1163
1161
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
1164
1162
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
1165
1163
|
name: z.ZodOptional<z.ZodString>;
|
|
1166
1164
|
type: z.ZodOptional<z.ZodLiteral<"Note">>;
|
|
1167
1165
|
widthScale: z.ZodOptional<z.ZodNumber>;
|
|
1168
|
-
}, "type" | "
|
|
1166
|
+
}, "type" | "id" | "name">, {
|
|
1169
1167
|
type: z.ZodLiteral<"Note">;
|
|
1170
1168
|
text: z.ZodString;
|
|
1171
1169
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -2104,7 +2102,7 @@ declare const HighlighterReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
2104
2102
|
renderHoles: boolean;
|
|
2105
2103
|
interaction?: "default" | "locked" | undefined;
|
|
2106
2104
|
}>;
|
|
2107
|
-
declare const TextReadSchema: z.ZodObject<
|
|
2105
|
+
declare const TextReadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2108
2106
|
/**
|
|
2109
2107
|
* The unique identifier for the element.
|
|
2110
2108
|
*/
|
|
@@ -2169,12 +2167,31 @@ declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2169
2167
|
*/
|
|
2170
2168
|
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
2171
2169
|
}, {
|
|
2170
|
+
/**
|
|
2171
|
+
* The geographical position of the center of the element.
|
|
2172
|
+
*/
|
|
2172
2173
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
2174
|
+
/**
|
|
2175
|
+
* The rotation of the element in degrees.
|
|
2176
|
+
*
|
|
2177
|
+
* @default 0
|
|
2178
|
+
*/
|
|
2173
2179
|
rotation: z.ZodNumber;
|
|
2180
|
+
/**
|
|
2181
|
+
* The relative scale of the element from the default size. This is combined
|
|
2182
|
+
* with the `zoom` to determine the actual size of the element.
|
|
2183
|
+
*
|
|
2184
|
+
* @default 1
|
|
2185
|
+
*/
|
|
2174
2186
|
scale: z.ZodNumber;
|
|
2187
|
+
/**
|
|
2188
|
+
* The zoom level at which the element was created. This is combined with
|
|
2189
|
+
* the `scale` to determine the actual size of the element.
|
|
2190
|
+
*
|
|
2191
|
+
* When creating an element, if you don't supply this value it defaults to
|
|
2192
|
+
* the current zoom of the map when you call `createElement`.
|
|
2193
|
+
*/
|
|
2175
2194
|
zoom: z.ZodNumber;
|
|
2176
|
-
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
2177
|
-
}>, {
|
|
2178
2195
|
/**
|
|
2179
2196
|
* The text in the element.
|
|
2180
2197
|
*/
|
|
@@ -2200,7 +2217,7 @@ declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2200
2217
|
name: z.ZodString;
|
|
2201
2218
|
}>, {
|
|
2202
2219
|
type: z.ZodLiteral<"Text">;
|
|
2203
|
-
}>, "
|
|
2220
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2204
2221
|
type: "Text";
|
|
2205
2222
|
id: string;
|
|
2206
2223
|
groupId: string | null;
|
|
@@ -2233,7 +2250,7 @@ declare const TextReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2233
2250
|
style: "italic" | "light" | "regular" | "caps";
|
|
2234
2251
|
interaction?: "default" | "locked" | undefined;
|
|
2235
2252
|
}>;
|
|
2236
|
-
declare const NoteReadSchema: z.ZodObject<
|
|
2253
|
+
declare const NoteReadSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2237
2254
|
/**
|
|
2238
2255
|
* The unique identifier for the element.
|
|
2239
2256
|
*/
|
|
@@ -2298,12 +2315,31 @@ declare const NoteReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2298
2315
|
*/
|
|
2299
2316
|
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
2300
2317
|
}, {
|
|
2318
|
+
/**
|
|
2319
|
+
* The geographical position of the center of the element.
|
|
2320
|
+
*/
|
|
2301
2321
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
2322
|
+
/**
|
|
2323
|
+
* The rotation of the element in degrees.
|
|
2324
|
+
*
|
|
2325
|
+
* @default 0
|
|
2326
|
+
*/
|
|
2302
2327
|
rotation: z.ZodNumber;
|
|
2328
|
+
/**
|
|
2329
|
+
* The relative scale of the element from the default size. This is combined
|
|
2330
|
+
* with the `zoom` to determine the actual size of the element.
|
|
2331
|
+
*
|
|
2332
|
+
* @default 1
|
|
2333
|
+
*/
|
|
2303
2334
|
scale: z.ZodNumber;
|
|
2335
|
+
/**
|
|
2336
|
+
* The zoom level at which the element was created. This is combined with
|
|
2337
|
+
* the `scale` to determine the actual size of the element.
|
|
2338
|
+
*
|
|
2339
|
+
* When creating an element, if you don't supply this value it defaults to
|
|
2340
|
+
* the current zoom of the map when you call `createElement`.
|
|
2341
|
+
*/
|
|
2304
2342
|
zoom: z.ZodNumber;
|
|
2305
|
-
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
2306
|
-
}>, {
|
|
2307
2343
|
/**
|
|
2308
2344
|
* The text in the element.
|
|
2309
2345
|
*/
|
|
@@ -2330,7 +2366,7 @@ declare const NoteReadSchema: z.ZodObject<Omit<z.objectUtil.extendShape<z.object
|
|
|
2330
2366
|
}>, {
|
|
2331
2367
|
type: z.ZodLiteral<"Note">;
|
|
2332
2368
|
widthScale: z.ZodNumber;
|
|
2333
|
-
}>, "
|
|
2369
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2334
2370
|
type: "Note";
|
|
2335
2371
|
id: string;
|
|
2336
2372
|
groupId: string | null;
|
|
@@ -3461,13 +3497,12 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3461
3497
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
3462
3498
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
3463
3499
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
3464
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
3465
3500
|
text: z.ZodOptional<z.ZodString>;
|
|
3466
3501
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
3467
3502
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
3468
3503
|
name: z.ZodOptional<z.ZodString>;
|
|
3469
3504
|
type: z.ZodOptional<z.ZodLiteral<"Text">>;
|
|
3470
|
-
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<
|
|
3505
|
+
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3471
3506
|
/**
|
|
3472
3507
|
* The unique identifier for the element.
|
|
3473
3508
|
*/
|
|
@@ -3532,12 +3567,31 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3532
3567
|
*/
|
|
3533
3568
|
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
3534
3569
|
}, {
|
|
3570
|
+
/**
|
|
3571
|
+
* The geographical position of the center of the element.
|
|
3572
|
+
*/
|
|
3535
3573
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
3574
|
+
/**
|
|
3575
|
+
* The rotation of the element in degrees.
|
|
3576
|
+
*
|
|
3577
|
+
* @default 0
|
|
3578
|
+
*/
|
|
3536
3579
|
rotation: z.ZodNumber;
|
|
3580
|
+
/**
|
|
3581
|
+
* The relative scale of the element from the default size. This is combined
|
|
3582
|
+
* with the `zoom` to determine the actual size of the element.
|
|
3583
|
+
*
|
|
3584
|
+
* @default 1
|
|
3585
|
+
*/
|
|
3537
3586
|
scale: z.ZodNumber;
|
|
3587
|
+
/**
|
|
3588
|
+
* The zoom level at which the element was created. This is combined with
|
|
3589
|
+
* the `scale` to determine the actual size of the element.
|
|
3590
|
+
*
|
|
3591
|
+
* When creating an element, if you don't supply this value it defaults to
|
|
3592
|
+
* the current zoom of the map when you call `createElement`.
|
|
3593
|
+
*/
|
|
3538
3594
|
zoom: z.ZodNumber;
|
|
3539
|
-
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
3540
|
-
}>, {
|
|
3541
3595
|
/**
|
|
3542
3596
|
* The text in the element.
|
|
3543
3597
|
*/
|
|
@@ -3563,7 +3617,7 @@ declare const TextUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3563
3617
|
name: z.ZodString;
|
|
3564
3618
|
}>, {
|
|
3565
3619
|
type: z.ZodLiteral<"Text">;
|
|
3566
|
-
}>, "type" | "id">>, "
|
|
3620
|
+
}>, "type" | "id">>, "name">, "strip", z.ZodTypeAny, {
|
|
3567
3621
|
type: "Text";
|
|
3568
3622
|
id: string;
|
|
3569
3623
|
groupId?: string | null | undefined;
|
|
@@ -3605,14 +3659,13 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3605
3659
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
3606
3660
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
3607
3661
|
zoom: z.ZodOptional<z.ZodNumber>;
|
|
3608
|
-
coordinates: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">>;
|
|
3609
3662
|
text: z.ZodOptional<z.ZodString>;
|
|
3610
3663
|
align: z.ZodOptional<z.ZodEnum<["left", "center", "right"]>>;
|
|
3611
3664
|
style: z.ZodOptional<z.ZodEnum<["italic", "light", "regular", "caps"]>>;
|
|
3612
3665
|
name: z.ZodOptional<z.ZodString>;
|
|
3613
3666
|
type: z.ZodOptional<z.ZodLiteral<"Note">>;
|
|
3614
3667
|
widthScale: z.ZodOptional<z.ZodNumber>;
|
|
3615
|
-
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<
|
|
3668
|
+
}, Pick<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3616
3669
|
/**
|
|
3617
3670
|
* The unique identifier for the element.
|
|
3618
3671
|
*/
|
|
@@ -3677,12 +3730,31 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3677
3730
|
*/
|
|
3678
3731
|
interaction: z.ZodOptional<z.ZodEnum<["default", "locked"]>>;
|
|
3679
3732
|
}, {
|
|
3733
|
+
/**
|
|
3734
|
+
* The geographical position of the center of the element.
|
|
3735
|
+
*/
|
|
3680
3736
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
3737
|
+
/**
|
|
3738
|
+
* The rotation of the element in degrees.
|
|
3739
|
+
*
|
|
3740
|
+
* @default 0
|
|
3741
|
+
*/
|
|
3681
3742
|
rotation: z.ZodNumber;
|
|
3743
|
+
/**
|
|
3744
|
+
* The relative scale of the element from the default size. This is combined
|
|
3745
|
+
* with the `zoom` to determine the actual size of the element.
|
|
3746
|
+
*
|
|
3747
|
+
* @default 1
|
|
3748
|
+
*/
|
|
3682
3749
|
scale: z.ZodNumber;
|
|
3750
|
+
/**
|
|
3751
|
+
* The zoom level at which the element was created. This is combined with
|
|
3752
|
+
* the `scale` to determine the actual size of the element.
|
|
3753
|
+
*
|
|
3754
|
+
* When creating an element, if you don't supply this value it defaults to
|
|
3755
|
+
* the current zoom of the map when you call `createElement`.
|
|
3756
|
+
*/
|
|
3683
3757
|
zoom: z.ZodNumber;
|
|
3684
|
-
coordinates: z.ZodArray<z.ZodEffects<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>, "many">, [number, number][], [number, number][]>, "many">;
|
|
3685
|
-
}>, {
|
|
3686
3758
|
/**
|
|
3687
3759
|
* The text in the element.
|
|
3688
3760
|
*/
|
|
@@ -3709,7 +3781,7 @@ declare const NoteUpdateSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
|
|
|
3709
3781
|
}>, {
|
|
3710
3782
|
type: z.ZodLiteral<"Note">;
|
|
3711
3783
|
widthScale: z.ZodNumber;
|
|
3712
|
-
}>, "type" | "id">>, "
|
|
3784
|
+
}>, "type" | "id">>, "name">, "strip", z.ZodTypeAny, {
|
|
3713
3785
|
type: "Note";
|
|
3714
3786
|
id: string;
|
|
3715
3787
|
groupId?: string | null | undefined;
|
|
@@ -3872,10 +3944,22 @@ interface HighlighterElementCreate extends zInfer<typeof HighlighterCreateSchema
|
|
|
3872
3944
|
coordinates: LngLatTuple[][][];
|
|
3873
3945
|
}
|
|
3874
3946
|
interface TextElementCreate extends zInfer<typeof TextCreateSchema> {
|
|
3875
|
-
|
|
3947
|
+
/**
|
|
3948
|
+
* The geographical position of the center of the text element.
|
|
3949
|
+
*
|
|
3950
|
+
* If this is omitted, the text will be placed at the center of the current
|
|
3951
|
+
* viewport.
|
|
3952
|
+
*/
|
|
3953
|
+
position?: LngLatTuple;
|
|
3876
3954
|
}
|
|
3877
3955
|
interface NoteElementCreate extends zInfer<typeof NoteCreateSchema> {
|
|
3878
|
-
|
|
3956
|
+
/**
|
|
3957
|
+
* The geographical position of the center of the note element.
|
|
3958
|
+
*
|
|
3959
|
+
* If this is omitted, the note will be placed at the center of the current
|
|
3960
|
+
* viewport.
|
|
3961
|
+
*/
|
|
3962
|
+
position?: LngLatTuple;
|
|
3879
3963
|
}
|
|
3880
3964
|
interface ImageElementCreate extends zInfer<typeof ImageCreateSchema> {
|
|
3881
3965
|
}
|
|
@@ -3894,9 +3978,15 @@ interface MarkerElementRead extends zInfer<typeof MarkerReadSchema> {
|
|
|
3894
3978
|
interface HighlighterElementRead extends zInfer<typeof HighlighterReadSchema> {
|
|
3895
3979
|
}
|
|
3896
3980
|
interface TextElementRead extends zInfer<typeof TextReadSchema> {
|
|
3981
|
+
/**
|
|
3982
|
+
* The geographical position of the center of the text element.
|
|
3983
|
+
*/
|
|
3897
3984
|
position: LngLatTuple;
|
|
3898
3985
|
}
|
|
3899
3986
|
interface NoteElementRead extends zInfer<typeof NoteReadSchema> {
|
|
3987
|
+
/**
|
|
3988
|
+
* The geographical position of the center of the note element.
|
|
3989
|
+
*/
|
|
3900
3990
|
position: LngLatTuple;
|
|
3901
3991
|
}
|
|
3902
3992
|
interface ImageElementRead extends zInfer<typeof ImageReadSchema> {
|