@agentic-ui-experience/ui-arcgis 0.0.1-beta.4 → 0.0.1-beta.6
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/README.md +65 -2
- package/dist/ArcGISMapGraphicsController.d.ts +44 -0
- package/dist/ArcGISMapGraphicsController.js +1 -0
- package/dist/ArcGISMapView.d.ts +17 -2
- package/dist/ArcGISMapView.js +1 -1
- package/dist/api.d.ts +549 -0
- package/dist/api.js +1 -1
- package/dist/catalog.d.ts +324 -0
- package/dist/catalog.js +1 -1
- package/dist/controller/api.d.ts +30 -30
- package/dist/controller/api.js +1 -1
- package/dist/controller/createArcGISMapController.js +1 -1
- package/dist/controller/featureFilter.d.ts +8 -8
- package/dist/controller/featureFilter.js +1 -1
- package/dist/controller/featureFilterExpression.js +1 -1
- package/dist/controller/featureFilterRuntime.js +1 -1
- package/dist/controller/featureQuery.d.ts +4 -4
- package/dist/controller/featureQuery.js +1 -1
- package/dist/controller/featureQueryExpression.js +1 -1
- package/dist/controller/featureQueryRuntime.js +1 -1
- package/dist/controller/useArcGISMapController.js +1 -1
- package/dist/graphics.d.ts +38 -0
- package/dist/graphics.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/prompt.js +1 -1
- package/package.json +5 -5
package/dist/catalog.d.ts
CHANGED
|
@@ -411,6 +411,124 @@ export declare const arcgisComponentApis: readonly [{
|
|
|
411
411
|
args: Record<string, any>;
|
|
412
412
|
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
413
413
|
}>]>>;
|
|
414
|
+
graphics: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
415
|
+
geometry: import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
|
|
416
|
+
type: import("zod").ZodLiteral<"point">;
|
|
417
|
+
coordinates: import("zod").ZodObject<{
|
|
418
|
+
longitude: import("zod").ZodNumber;
|
|
419
|
+
latitude: import("zod").ZodNumber;
|
|
420
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
421
|
+
latitude: number;
|
|
422
|
+
longitude: number;
|
|
423
|
+
}, {
|
|
424
|
+
latitude: number;
|
|
425
|
+
longitude: number;
|
|
426
|
+
}>;
|
|
427
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
428
|
+
type: "point";
|
|
429
|
+
coordinates: {
|
|
430
|
+
latitude: number;
|
|
431
|
+
longitude: number;
|
|
432
|
+
};
|
|
433
|
+
}, {
|
|
434
|
+
type: "point";
|
|
435
|
+
coordinates: {
|
|
436
|
+
latitude: number;
|
|
437
|
+
longitude: number;
|
|
438
|
+
};
|
|
439
|
+
}>, import("zod").ZodObject<{
|
|
440
|
+
type: import("zod").ZodLiteral<"polyline">;
|
|
441
|
+
coordinates: import("zod").ZodArray<import("zod").ZodObject<{
|
|
442
|
+
longitude: import("zod").ZodNumber;
|
|
443
|
+
latitude: import("zod").ZodNumber;
|
|
444
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
445
|
+
latitude: number;
|
|
446
|
+
longitude: number;
|
|
447
|
+
}, {
|
|
448
|
+
latitude: number;
|
|
449
|
+
longitude: number;
|
|
450
|
+
}>, "many">;
|
|
451
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
452
|
+
type: "polyline";
|
|
453
|
+
coordinates: {
|
|
454
|
+
latitude: number;
|
|
455
|
+
longitude: number;
|
|
456
|
+
}[];
|
|
457
|
+
}, {
|
|
458
|
+
type: "polyline";
|
|
459
|
+
coordinates: {
|
|
460
|
+
latitude: number;
|
|
461
|
+
longitude: number;
|
|
462
|
+
}[];
|
|
463
|
+
}>, import("zod").ZodObject<{
|
|
464
|
+
type: import("zod").ZodLiteral<"polygon">;
|
|
465
|
+
coordinates: import("zod").ZodArray<import("zod").ZodObject<{
|
|
466
|
+
longitude: import("zod").ZodNumber;
|
|
467
|
+
latitude: import("zod").ZodNumber;
|
|
468
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
469
|
+
latitude: number;
|
|
470
|
+
longitude: number;
|
|
471
|
+
}, {
|
|
472
|
+
latitude: number;
|
|
473
|
+
longitude: number;
|
|
474
|
+
}>, "many">;
|
|
475
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
476
|
+
type: "polygon";
|
|
477
|
+
coordinates: {
|
|
478
|
+
latitude: number;
|
|
479
|
+
longitude: number;
|
|
480
|
+
}[];
|
|
481
|
+
}, {
|
|
482
|
+
type: "polygon";
|
|
483
|
+
coordinates: {
|
|
484
|
+
latitude: number;
|
|
485
|
+
longitude: number;
|
|
486
|
+
}[];
|
|
487
|
+
}>]>;
|
|
488
|
+
style: import("zod").ZodOptional<import("zod").ZodEnum<["primary", "success", "warning", "danger", "neutral"]>>;
|
|
489
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
490
|
+
geometry: {
|
|
491
|
+
type: "point";
|
|
492
|
+
coordinates: {
|
|
493
|
+
latitude: number;
|
|
494
|
+
longitude: number;
|
|
495
|
+
};
|
|
496
|
+
} | {
|
|
497
|
+
type: "polyline";
|
|
498
|
+
coordinates: {
|
|
499
|
+
latitude: number;
|
|
500
|
+
longitude: number;
|
|
501
|
+
}[];
|
|
502
|
+
} | {
|
|
503
|
+
type: "polygon";
|
|
504
|
+
coordinates: {
|
|
505
|
+
latitude: number;
|
|
506
|
+
longitude: number;
|
|
507
|
+
}[];
|
|
508
|
+
};
|
|
509
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
510
|
+
}, {
|
|
511
|
+
geometry: {
|
|
512
|
+
type: "point";
|
|
513
|
+
coordinates: {
|
|
514
|
+
latitude: number;
|
|
515
|
+
longitude: number;
|
|
516
|
+
};
|
|
517
|
+
} | {
|
|
518
|
+
type: "polyline";
|
|
519
|
+
coordinates: {
|
|
520
|
+
latitude: number;
|
|
521
|
+
longitude: number;
|
|
522
|
+
}[];
|
|
523
|
+
} | {
|
|
524
|
+
type: "polygon";
|
|
525
|
+
coordinates: {
|
|
526
|
+
latitude: number;
|
|
527
|
+
longitude: number;
|
|
528
|
+
}[];
|
|
529
|
+
};
|
|
530
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
531
|
+
}>, "many">>;
|
|
414
532
|
}, "strict", import("zod").ZodTypeAny, {
|
|
415
533
|
source: {
|
|
416
534
|
type: "webmap";
|
|
@@ -506,6 +624,28 @@ export declare const arcgisComponentApis: readonly [{
|
|
|
506
624
|
args: Record<string, any>;
|
|
507
625
|
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
508
626
|
} | undefined;
|
|
627
|
+
graphics?: {
|
|
628
|
+
geometry: {
|
|
629
|
+
type: "point";
|
|
630
|
+
coordinates: {
|
|
631
|
+
latitude: number;
|
|
632
|
+
longitude: number;
|
|
633
|
+
};
|
|
634
|
+
} | {
|
|
635
|
+
type: "polyline";
|
|
636
|
+
coordinates: {
|
|
637
|
+
latitude: number;
|
|
638
|
+
longitude: number;
|
|
639
|
+
}[];
|
|
640
|
+
} | {
|
|
641
|
+
type: "polygon";
|
|
642
|
+
coordinates: {
|
|
643
|
+
latitude: number;
|
|
644
|
+
longitude: number;
|
|
645
|
+
}[];
|
|
646
|
+
};
|
|
647
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
648
|
+
}[] | undefined;
|
|
509
649
|
}, {
|
|
510
650
|
source: {
|
|
511
651
|
type: "webmap";
|
|
@@ -601,6 +741,28 @@ export declare const arcgisComponentApis: readonly [{
|
|
|
601
741
|
args: Record<string, any>;
|
|
602
742
|
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
603
743
|
} | undefined;
|
|
744
|
+
graphics?: {
|
|
745
|
+
geometry: {
|
|
746
|
+
type: "point";
|
|
747
|
+
coordinates: {
|
|
748
|
+
latitude: number;
|
|
749
|
+
longitude: number;
|
|
750
|
+
};
|
|
751
|
+
} | {
|
|
752
|
+
type: "polyline";
|
|
753
|
+
coordinates: {
|
|
754
|
+
latitude: number;
|
|
755
|
+
longitude: number;
|
|
756
|
+
}[];
|
|
757
|
+
} | {
|
|
758
|
+
type: "polygon";
|
|
759
|
+
coordinates: {
|
|
760
|
+
latitude: number;
|
|
761
|
+
longitude: number;
|
|
762
|
+
}[];
|
|
763
|
+
};
|
|
764
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
765
|
+
}[] | undefined;
|
|
604
766
|
}>;
|
|
605
767
|
}];
|
|
606
768
|
export declare const arcgisComponents: readonly [import("@agentic-ui-experience/ui-react").ReactComponentImplementation];
|
|
@@ -1016,6 +1178,124 @@ export declare const arcgisRuntimeCatalog: import("@agentic-ui-experience/ui-run
|
|
|
1016
1178
|
args: Record<string, any>;
|
|
1017
1179
|
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
1018
1180
|
}>]>>;
|
|
1181
|
+
graphics: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1182
|
+
geometry: import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
|
|
1183
|
+
type: import("zod").ZodLiteral<"point">;
|
|
1184
|
+
coordinates: import("zod").ZodObject<{
|
|
1185
|
+
longitude: import("zod").ZodNumber;
|
|
1186
|
+
latitude: import("zod").ZodNumber;
|
|
1187
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
1188
|
+
latitude: number;
|
|
1189
|
+
longitude: number;
|
|
1190
|
+
}, {
|
|
1191
|
+
latitude: number;
|
|
1192
|
+
longitude: number;
|
|
1193
|
+
}>;
|
|
1194
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
1195
|
+
type: "point";
|
|
1196
|
+
coordinates: {
|
|
1197
|
+
latitude: number;
|
|
1198
|
+
longitude: number;
|
|
1199
|
+
};
|
|
1200
|
+
}, {
|
|
1201
|
+
type: "point";
|
|
1202
|
+
coordinates: {
|
|
1203
|
+
latitude: number;
|
|
1204
|
+
longitude: number;
|
|
1205
|
+
};
|
|
1206
|
+
}>, import("zod").ZodObject<{
|
|
1207
|
+
type: import("zod").ZodLiteral<"polyline">;
|
|
1208
|
+
coordinates: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1209
|
+
longitude: import("zod").ZodNumber;
|
|
1210
|
+
latitude: import("zod").ZodNumber;
|
|
1211
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
1212
|
+
latitude: number;
|
|
1213
|
+
longitude: number;
|
|
1214
|
+
}, {
|
|
1215
|
+
latitude: number;
|
|
1216
|
+
longitude: number;
|
|
1217
|
+
}>, "many">;
|
|
1218
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
1219
|
+
type: "polyline";
|
|
1220
|
+
coordinates: {
|
|
1221
|
+
latitude: number;
|
|
1222
|
+
longitude: number;
|
|
1223
|
+
}[];
|
|
1224
|
+
}, {
|
|
1225
|
+
type: "polyline";
|
|
1226
|
+
coordinates: {
|
|
1227
|
+
latitude: number;
|
|
1228
|
+
longitude: number;
|
|
1229
|
+
}[];
|
|
1230
|
+
}>, import("zod").ZodObject<{
|
|
1231
|
+
type: import("zod").ZodLiteral<"polygon">;
|
|
1232
|
+
coordinates: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1233
|
+
longitude: import("zod").ZodNumber;
|
|
1234
|
+
latitude: import("zod").ZodNumber;
|
|
1235
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
1236
|
+
latitude: number;
|
|
1237
|
+
longitude: number;
|
|
1238
|
+
}, {
|
|
1239
|
+
latitude: number;
|
|
1240
|
+
longitude: number;
|
|
1241
|
+
}>, "many">;
|
|
1242
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
1243
|
+
type: "polygon";
|
|
1244
|
+
coordinates: {
|
|
1245
|
+
latitude: number;
|
|
1246
|
+
longitude: number;
|
|
1247
|
+
}[];
|
|
1248
|
+
}, {
|
|
1249
|
+
type: "polygon";
|
|
1250
|
+
coordinates: {
|
|
1251
|
+
latitude: number;
|
|
1252
|
+
longitude: number;
|
|
1253
|
+
}[];
|
|
1254
|
+
}>]>;
|
|
1255
|
+
style: import("zod").ZodOptional<import("zod").ZodEnum<["primary", "success", "warning", "danger", "neutral"]>>;
|
|
1256
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
1257
|
+
geometry: {
|
|
1258
|
+
type: "point";
|
|
1259
|
+
coordinates: {
|
|
1260
|
+
latitude: number;
|
|
1261
|
+
longitude: number;
|
|
1262
|
+
};
|
|
1263
|
+
} | {
|
|
1264
|
+
type: "polyline";
|
|
1265
|
+
coordinates: {
|
|
1266
|
+
latitude: number;
|
|
1267
|
+
longitude: number;
|
|
1268
|
+
}[];
|
|
1269
|
+
} | {
|
|
1270
|
+
type: "polygon";
|
|
1271
|
+
coordinates: {
|
|
1272
|
+
latitude: number;
|
|
1273
|
+
longitude: number;
|
|
1274
|
+
}[];
|
|
1275
|
+
};
|
|
1276
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1277
|
+
}, {
|
|
1278
|
+
geometry: {
|
|
1279
|
+
type: "point";
|
|
1280
|
+
coordinates: {
|
|
1281
|
+
latitude: number;
|
|
1282
|
+
longitude: number;
|
|
1283
|
+
};
|
|
1284
|
+
} | {
|
|
1285
|
+
type: "polyline";
|
|
1286
|
+
coordinates: {
|
|
1287
|
+
latitude: number;
|
|
1288
|
+
longitude: number;
|
|
1289
|
+
}[];
|
|
1290
|
+
} | {
|
|
1291
|
+
type: "polygon";
|
|
1292
|
+
coordinates: {
|
|
1293
|
+
latitude: number;
|
|
1294
|
+
longitude: number;
|
|
1295
|
+
}[];
|
|
1296
|
+
};
|
|
1297
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1298
|
+
}>, "many">>;
|
|
1019
1299
|
}, "strict", import("zod").ZodTypeAny, {
|
|
1020
1300
|
source: {
|
|
1021
1301
|
type: "webmap";
|
|
@@ -1111,6 +1391,28 @@ export declare const arcgisRuntimeCatalog: import("@agentic-ui-experience/ui-run
|
|
|
1111
1391
|
args: Record<string, any>;
|
|
1112
1392
|
returnType: "string" | "number" | "boolean" | "object" | "array" | "void" | "any";
|
|
1113
1393
|
} | undefined;
|
|
1394
|
+
graphics?: {
|
|
1395
|
+
geometry: {
|
|
1396
|
+
type: "point";
|
|
1397
|
+
coordinates: {
|
|
1398
|
+
latitude: number;
|
|
1399
|
+
longitude: number;
|
|
1400
|
+
};
|
|
1401
|
+
} | {
|
|
1402
|
+
type: "polyline";
|
|
1403
|
+
coordinates: {
|
|
1404
|
+
latitude: number;
|
|
1405
|
+
longitude: number;
|
|
1406
|
+
}[];
|
|
1407
|
+
} | {
|
|
1408
|
+
type: "polygon";
|
|
1409
|
+
coordinates: {
|
|
1410
|
+
latitude: number;
|
|
1411
|
+
longitude: number;
|
|
1412
|
+
}[];
|
|
1413
|
+
};
|
|
1414
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1415
|
+
}[] | undefined;
|
|
1114
1416
|
}, {
|
|
1115
1417
|
source: {
|
|
1116
1418
|
type: "webmap";
|
|
@@ -1206,6 +1508,28 @@ export declare const arcgisRuntimeCatalog: import("@agentic-ui-experience/ui-run
|
|
|
1206
1508
|
args: Record<string, any>;
|
|
1207
1509
|
returnType?: "string" | "number" | "boolean" | "object" | "array" | "void" | "any" | undefined;
|
|
1208
1510
|
} | undefined;
|
|
1511
|
+
graphics?: {
|
|
1512
|
+
geometry: {
|
|
1513
|
+
type: "point";
|
|
1514
|
+
coordinates: {
|
|
1515
|
+
latitude: number;
|
|
1516
|
+
longitude: number;
|
|
1517
|
+
};
|
|
1518
|
+
} | {
|
|
1519
|
+
type: "polyline";
|
|
1520
|
+
coordinates: {
|
|
1521
|
+
latitude: number;
|
|
1522
|
+
longitude: number;
|
|
1523
|
+
}[];
|
|
1524
|
+
} | {
|
|
1525
|
+
type: "polygon";
|
|
1526
|
+
coordinates: {
|
|
1527
|
+
latitude: number;
|
|
1528
|
+
longitude: number;
|
|
1529
|
+
}[];
|
|
1530
|
+
};
|
|
1531
|
+
style?: "primary" | "success" | "warning" | "danger" | "neutral" | undefined;
|
|
1532
|
+
}[] | undefined;
|
|
1209
1533
|
}>;
|
|
1210
1534
|
}>;
|
|
1211
1535
|
export declare const arcgisReactCatalog: import("@agentic-ui-experience/ui-runtime").Catalog<import("@agentic-ui-experience/ui-react").ReactComponentImplementation>;
|
package/dist/catalog.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3c72(){const _0x58a423=['3547490oJcQiZ','8198260hAevhr','4MWhDQh','6168126HtQOrN','1131709GketbE','6230052WHlnlo','10073nELhVa','9yKfTLj','51026mIIVXC','104BlbFox'];_0x3c72=function(){return _0x58a423;};return _0x3c72();}(function(_0x4a63bb,_0x524213){const _0x13fbf1=_0x3851,_0x1b4d36=_0x4a63bb();while(!![]){try{const _0x1e6fab=parseInt(_0x13fbf1(0x1c6))/0x1+-parseInt(_0x13fbf1(0x1ca))/0x2*(parseInt(_0x13fbf1(0x1c9))/0x3)+-parseInt(_0x13fbf1(0x1c4))/0x4*(-parseInt(_0x13fbf1(0x1c2))/0x5)+-parseInt(_0x13fbf1(0x1c5))/0x6+parseInt(_0x13fbf1(0x1c8))/0x7*(-parseInt(_0x13fbf1(0x1c1))/0x8)+parseInt(_0x13fbf1(0x1c7))/0x9+-parseInt(_0x13fbf1(0x1c3))/0xa;if(_0x1e6fab===_0x524213)break;else _0x1b4d36['push'](_0x1b4d36['shift']());}catch(_0x4a0c1a){_0x1b4d36['push'](_0x1b4d36['shift']());}}}(_0x3c72,0x90206));import{defineCatalogPromptDescriptor}from'@agentic-ui-experience/ui-core';import{defineCatalog}from'@agentic-ui-experience/ui-runtime';import{defineReactCatalog}from'@agentic-ui-experience/ui-react';import{ArcGISMapViewApi}from'./api.js';import{ArcGISMapView}from'./ArcGISMapView.js';import{arcgisStyleGuide,arcGISMapViewDescription}from'./prompt.js';function _0x3851(_0x29ca23,_0x52ddbc){_0x29ca23=_0x29ca23-0x1c1;const _0x3c7263=_0x3c72();let _0x385166=_0x3c7263[_0x29ca23];return _0x385166;}const ARCGIS_CATALOG_ID='com.agentic-ui-experience.arcgis.v1',arcgisComponentApis=[ArcGISMapViewApi],arcgisComponents=[ArcGISMapView],arcgisPromptDescriptor=defineCatalogPromptDescriptor({'id':ARCGIS_CATALOG_ID,'components':arcgisComponentApis,'descriptions':{'ArcGISMapView':arcGISMapViewDescription},'styleGuide':arcgisStyleGuide}),arcgisRuntimeCatalog=defineCatalog({'id':ARCGIS_CATALOG_ID,'components':arcgisComponentApis}),arcgisReactCatalog=defineReactCatalog({'id':ARCGIS_CATALOG_ID,'components':arcgisComponents});export{ARCGIS_CATALOG_ID,arcgisComponentApis,arcgisComponents,arcgisPromptDescriptor,arcgisReactCatalog,arcgisRuntimeCatalog};
|
package/dist/controller/api.d.ts
CHANGED
|
@@ -49,13 +49,13 @@ export declare const ArcGISMapSnapshotSchema: z.ZodObject<{
|
|
|
49
49
|
}, "strict", z.ZodTypeAny, {
|
|
50
50
|
type: string;
|
|
51
51
|
title: string;
|
|
52
|
-
visible: boolean;
|
|
53
52
|
id: string;
|
|
53
|
+
visible: boolean;
|
|
54
54
|
}, {
|
|
55
55
|
type: string;
|
|
56
56
|
title: string;
|
|
57
|
-
visible: boolean;
|
|
58
57
|
id: string;
|
|
58
|
+
visible: boolean;
|
|
59
59
|
}>, "many">;
|
|
60
60
|
capabilities: z.ZodObject<{
|
|
61
61
|
goTo: z.ZodBoolean;
|
|
@@ -83,8 +83,8 @@ export declare const ArcGISMapSnapshotSchema: z.ZodObject<{
|
|
|
83
83
|
layers: {
|
|
84
84
|
type: string;
|
|
85
85
|
title: string;
|
|
86
|
-
visible: boolean;
|
|
87
86
|
id: string;
|
|
87
|
+
visible: boolean;
|
|
88
88
|
}[];
|
|
89
89
|
capabilities: {
|
|
90
90
|
goTo: boolean;
|
|
@@ -106,8 +106,8 @@ export declare const ArcGISMapSnapshotSchema: z.ZodObject<{
|
|
|
106
106
|
layers: {
|
|
107
107
|
type: string;
|
|
108
108
|
title: string;
|
|
109
|
-
visible: boolean;
|
|
110
109
|
id: string;
|
|
110
|
+
visible: boolean;
|
|
111
111
|
}[];
|
|
112
112
|
capabilities: {
|
|
113
113
|
goTo: boolean;
|
|
@@ -230,13 +230,13 @@ export declare const ArcGISMapSnapshotNotificationSchema: z.ZodEffects<z.ZodObje
|
|
|
230
230
|
}, "strict", z.ZodTypeAny, {
|
|
231
231
|
type: string;
|
|
232
232
|
title: string;
|
|
233
|
-
visible: boolean;
|
|
234
233
|
id: string;
|
|
234
|
+
visible: boolean;
|
|
235
235
|
}, {
|
|
236
236
|
type: string;
|
|
237
237
|
title: string;
|
|
238
|
-
visible: boolean;
|
|
239
238
|
id: string;
|
|
239
|
+
visible: boolean;
|
|
240
240
|
}>, "many">;
|
|
241
241
|
capabilities: z.ZodObject<{
|
|
242
242
|
goTo: z.ZodBoolean;
|
|
@@ -264,8 +264,8 @@ export declare const ArcGISMapSnapshotNotificationSchema: z.ZodEffects<z.ZodObje
|
|
|
264
264
|
layers: {
|
|
265
265
|
type: string;
|
|
266
266
|
title: string;
|
|
267
|
-
visible: boolean;
|
|
268
267
|
id: string;
|
|
268
|
+
visible: boolean;
|
|
269
269
|
}[];
|
|
270
270
|
capabilities: {
|
|
271
271
|
goTo: boolean;
|
|
@@ -287,8 +287,8 @@ export declare const ArcGISMapSnapshotNotificationSchema: z.ZodEffects<z.ZodObje
|
|
|
287
287
|
layers: {
|
|
288
288
|
type: string;
|
|
289
289
|
title: string;
|
|
290
|
-
visible: boolean;
|
|
291
290
|
id: string;
|
|
291
|
+
visible: boolean;
|
|
292
292
|
}[];
|
|
293
293
|
capabilities: {
|
|
294
294
|
goTo: boolean;
|
|
@@ -323,8 +323,8 @@ export declare const ArcGISMapSnapshotNotificationSchema: z.ZodEffects<z.ZodObje
|
|
|
323
323
|
layers: {
|
|
324
324
|
type: string;
|
|
325
325
|
title: string;
|
|
326
|
-
visible: boolean;
|
|
327
326
|
id: string;
|
|
327
|
+
visible: boolean;
|
|
328
328
|
}[];
|
|
329
329
|
capabilities: {
|
|
330
330
|
goTo: boolean;
|
|
@@ -353,8 +353,8 @@ export declare const ArcGISMapSnapshotNotificationSchema: z.ZodEffects<z.ZodObje
|
|
|
353
353
|
layers: {
|
|
354
354
|
type: string;
|
|
355
355
|
title: string;
|
|
356
|
-
visible: boolean;
|
|
357
356
|
id: string;
|
|
357
|
+
visible: boolean;
|
|
358
358
|
}[];
|
|
359
359
|
capabilities: {
|
|
360
360
|
goTo: boolean;
|
|
@@ -383,8 +383,8 @@ export declare const ArcGISMapSnapshotNotificationSchema: z.ZodEffects<z.ZodObje
|
|
|
383
383
|
layers: {
|
|
384
384
|
type: string;
|
|
385
385
|
title: string;
|
|
386
|
-
visible: boolean;
|
|
387
386
|
id: string;
|
|
387
|
+
visible: boolean;
|
|
388
388
|
}[];
|
|
389
389
|
capabilities: {
|
|
390
390
|
goTo: boolean;
|
|
@@ -413,8 +413,8 @@ export declare const ArcGISMapSnapshotNotificationSchema: z.ZodEffects<z.ZodObje
|
|
|
413
413
|
layers: {
|
|
414
414
|
type: string;
|
|
415
415
|
title: string;
|
|
416
|
-
visible: boolean;
|
|
417
416
|
id: string;
|
|
417
|
+
visible: boolean;
|
|
418
418
|
}[];
|
|
419
419
|
capabilities: {
|
|
420
420
|
goTo: boolean;
|
|
@@ -535,13 +535,13 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
535
535
|
}, "strict", z.ZodTypeAny, {
|
|
536
536
|
type: string;
|
|
537
537
|
title: string;
|
|
538
|
-
visible: boolean;
|
|
539
538
|
id: string;
|
|
539
|
+
visible: boolean;
|
|
540
540
|
}, {
|
|
541
541
|
type: string;
|
|
542
542
|
title: string;
|
|
543
|
-
visible: boolean;
|
|
544
543
|
id: string;
|
|
544
|
+
visible: boolean;
|
|
545
545
|
}>, "many">;
|
|
546
546
|
capabilities: z.ZodObject<{
|
|
547
547
|
goTo: z.ZodBoolean;
|
|
@@ -569,8 +569,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
569
569
|
layers: {
|
|
570
570
|
type: string;
|
|
571
571
|
title: string;
|
|
572
|
-
visible: boolean;
|
|
573
572
|
id: string;
|
|
573
|
+
visible: boolean;
|
|
574
574
|
}[];
|
|
575
575
|
capabilities: {
|
|
576
576
|
goTo: boolean;
|
|
@@ -592,8 +592,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
592
592
|
layers: {
|
|
593
593
|
type: string;
|
|
594
594
|
title: string;
|
|
595
|
-
visible: boolean;
|
|
596
595
|
id: string;
|
|
596
|
+
visible: boolean;
|
|
597
597
|
}[];
|
|
598
598
|
capabilities: {
|
|
599
599
|
goTo: boolean;
|
|
@@ -618,8 +618,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
618
618
|
layers: {
|
|
619
619
|
type: string;
|
|
620
620
|
title: string;
|
|
621
|
-
visible: boolean;
|
|
622
621
|
id: string;
|
|
622
|
+
visible: boolean;
|
|
623
623
|
}[];
|
|
624
624
|
capabilities: {
|
|
625
625
|
goTo: boolean;
|
|
@@ -658,8 +658,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
658
658
|
layers: {
|
|
659
659
|
type: string;
|
|
660
660
|
title: string;
|
|
661
|
-
visible: boolean;
|
|
662
661
|
id: string;
|
|
662
|
+
visible: boolean;
|
|
663
663
|
}[];
|
|
664
664
|
capabilities: {
|
|
665
665
|
goTo: boolean;
|
|
@@ -789,13 +789,13 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
789
789
|
}, "strict", z.ZodTypeAny, {
|
|
790
790
|
type: string;
|
|
791
791
|
title: string;
|
|
792
|
-
visible: boolean;
|
|
793
792
|
id: string;
|
|
793
|
+
visible: boolean;
|
|
794
794
|
}, {
|
|
795
795
|
type: string;
|
|
796
796
|
title: string;
|
|
797
|
-
visible: boolean;
|
|
798
797
|
id: string;
|
|
798
|
+
visible: boolean;
|
|
799
799
|
}>, "many">;
|
|
800
800
|
capabilities: z.ZodObject<{
|
|
801
801
|
goTo: z.ZodBoolean;
|
|
@@ -823,8 +823,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
823
823
|
layers: {
|
|
824
824
|
type: string;
|
|
825
825
|
title: string;
|
|
826
|
-
visible: boolean;
|
|
827
826
|
id: string;
|
|
827
|
+
visible: boolean;
|
|
828
828
|
}[];
|
|
829
829
|
capabilities: {
|
|
830
830
|
goTo: boolean;
|
|
@@ -846,8 +846,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
846
846
|
layers: {
|
|
847
847
|
type: string;
|
|
848
848
|
title: string;
|
|
849
|
-
visible: boolean;
|
|
850
849
|
id: string;
|
|
850
|
+
visible: boolean;
|
|
851
851
|
}[];
|
|
852
852
|
capabilities: {
|
|
853
853
|
goTo: boolean;
|
|
@@ -855,10 +855,10 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
855
855
|
};
|
|
856
856
|
}>>;
|
|
857
857
|
}, "strict", z.ZodTypeAny, {
|
|
858
|
-
code: "map-not-ready" | "layer-not-found" | "
|
|
858
|
+
code: "cancelled" | "map-not-ready" | "layer-not-found" | "stale-controller" | "invalid-target" | "unsupported-command" | "execution-failed";
|
|
859
859
|
message: string;
|
|
860
860
|
ok: false;
|
|
861
|
-
command: {
|
|
861
|
+
command: Record<string, unknown> | {
|
|
862
862
|
type: "goTo";
|
|
863
863
|
target: {
|
|
864
864
|
center: {
|
|
@@ -871,7 +871,7 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
871
871
|
type: "setLayerVisibility";
|
|
872
872
|
visible: boolean;
|
|
873
873
|
layerId: string;
|
|
874
|
-
}
|
|
874
|
+
};
|
|
875
875
|
snapshot?: {
|
|
876
876
|
map: {
|
|
877
877
|
itemId?: string | undefined;
|
|
@@ -888,8 +888,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
888
888
|
layers: {
|
|
889
889
|
type: string;
|
|
890
890
|
title: string;
|
|
891
|
-
visible: boolean;
|
|
892
891
|
id: string;
|
|
892
|
+
visible: boolean;
|
|
893
893
|
}[];
|
|
894
894
|
capabilities: {
|
|
895
895
|
goTo: boolean;
|
|
@@ -897,10 +897,10 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
897
897
|
};
|
|
898
898
|
} | undefined;
|
|
899
899
|
}, {
|
|
900
|
-
code: "map-not-ready" | "layer-not-found" | "
|
|
900
|
+
code: "cancelled" | "map-not-ready" | "layer-not-found" | "stale-controller" | "invalid-target" | "unsupported-command" | "execution-failed";
|
|
901
901
|
message: string;
|
|
902
902
|
ok: false;
|
|
903
|
-
command: {
|
|
903
|
+
command: Record<string, unknown> | {
|
|
904
904
|
type: "goTo";
|
|
905
905
|
target: {
|
|
906
906
|
center: {
|
|
@@ -913,7 +913,7 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
913
913
|
type: "setLayerVisibility";
|
|
914
914
|
visible: boolean;
|
|
915
915
|
layerId: string;
|
|
916
|
-
}
|
|
916
|
+
};
|
|
917
917
|
snapshot?: {
|
|
918
918
|
map: {
|
|
919
919
|
itemId?: string | undefined;
|
|
@@ -930,8 +930,8 @@ export declare const ArcGISMapCommandResultSchema: z.ZodDiscriminatedUnion<"ok",
|
|
|
930
930
|
layers: {
|
|
931
931
|
type: string;
|
|
932
932
|
title: string;
|
|
933
|
-
visible: boolean;
|
|
934
933
|
id: string;
|
|
934
|
+
visible: boolean;
|
|
935
935
|
}[];
|
|
936
936
|
capabilities: {
|
|
937
937
|
goTo: boolean;
|
package/dist/controller/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5c0875=_0x2eef;(function(_0x1a4434,_0x1d086){const _0xa8d2e0=_0x2eef,_0x2f9e19=_0x1a4434();while(!![]){try{const _0x350a95=-parseInt(_0xa8d2e0(0x87))/0x1*(parseInt(_0xa8d2e0(0x85))/0x2)+parseInt(_0xa8d2e0(0x86))/0x3*(-parseInt(_0xa8d2e0(0x7c))/0x4)+parseInt(_0xa8d2e0(0x71))/0x5+-parseInt(_0xa8d2e0(0x7a))/0x6*(-parseInt(_0xa8d2e0(0x6d))/0x7)+-parseInt(_0xa8d2e0(0x8d))/0x8*(parseInt(_0xa8d2e0(0x72))/0x9)+-parseInt(_0xa8d2e0(0x73))/0xa+-parseInt(_0xa8d2e0(0x81))/0xb*(-parseInt(_0xa8d2e0(0x75))/0xc);if(_0x350a95===_0x1d086)break;else _0x2f9e19['push'](_0x2f9e19['shift']());}catch(_0x57a47d){_0x2f9e19['push'](_0x2f9e19['shift']());}}}(_0xbccf,0x5e3f6));function _0x2eef(_0xd513e4,_0x31d82b){_0xd513e4=_0xd513e4-0x6d;const _0xbccf9a=_0xbccf();let _0x2eef8c=_0xbccf9a[_0xd513e4];return _0x2eef8c;}function _0xbccf(){const _0x59667f=['optional','4781rrQYHD','enum','A\x20map\x20notification\x20requires\x20an\x20operation\x20origin\x20or\x20an\x20external-change\x20marker.','unsupported-command','543685QKdtzr','1089vIgvwg','6755480IIcwlp','max','24gqNQaj','unknown','object','finite','trim','4518DbBWMp','Map\x20notification\x20operation\x20origins\x20must\x20be\x20unique.','342308dPTlMd','strict','positive','length','literal','7370770hYOWDA','cancelled','invalid-target','addIssue','2psNiIL','12LNxBeV','450503fZekVk','boolean','min','operationOrigins','array','type','7192NntkbW','map','goTo','string'];_0xbccf=function(){return _0x59667f;};return _0xbccf();}import{z}from'zod';const FiniteNumberSchema=z['number']()[_0x5c0875(0x78)](),ArcGISMapCenterSchema=z[_0x5c0875(0x77)]({'longitude':FiniteNumberSchema[_0x5c0875(0x89)](-0xb4)[_0x5c0875(0x74)](0xb4),'latitude':FiniteNumberSchema['min'](-0x5a)['max'](0x5a)})['strict'](),ArcGISMapLayerSnapshotSchema=z['object']({'id':z[_0x5c0875(0x90)]()['min'](0x1),'title':z[_0x5c0875(0x90)](),'type':z['string'](),'visible':z['boolean']()})[_0x5c0875(0x7d)](),ArcGISMapSnapshotSchema=z['object']({'map':z[_0x5c0875(0x77)]({'itemId':z[_0x5c0875(0x90)]()['min'](0x1)['optional'](),'title':z[_0x5c0875(0x90)]()['min'](0x1)[_0x5c0875(0x91)]()})['strict'](),'viewpoint':z['object']({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema['min'](0x0)['max'](0x17),'scale':FiniteNumberSchema[_0x5c0875(0x7e)]()})['strict'](),'layers':z[_0x5c0875(0x8b)](ArcGISMapLayerSnapshotSchema),'capabilities':z[_0x5c0875(0x77)]({'goTo':z['boolean'](),'setLayerVisibility':z['boolean']()})[_0x5c0875(0x7d)]()})['strict'](),ArcGISGoToCommandSchema=z[_0x5c0875(0x77)]({'type':z[_0x5c0875(0x80)](_0x5c0875(0x8f)),'target':z['object']({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema[_0x5c0875(0x89)](0x0)['max'](0x17)['optional']()})['strict']()})['strict'](),ArcGISSetLayerVisibilityCommandSchema=z[_0x5c0875(0x77)]({'type':z['literal']('setLayerVisibility'),'layerId':z[_0x5c0875(0x90)]()[_0x5c0875(0x89)](0x1),'visible':z[_0x5c0875(0x88)]()})[_0x5c0875(0x7d)](),ArcGISMapCommandSchema=z['discriminatedUnion'](_0x5c0875(0x8c),[ArcGISGoToCommandSchema,ArcGISSetLayerVisibilityCommandSchema]),ArcGISMapOperationOriginIdSchema=z['string']()[_0x5c0875(0x79)]()[_0x5c0875(0x89)](0x1)['max'](0x80),ArcGISMapOperationOriginSchema=z[_0x5c0875(0x77)]({'transactionId':ArcGISMapOperationOriginIdSchema,'operationId':ArcGISMapOperationOriginIdSchema})['strict'](),ArcGISMapSnapshotNotificationSchema=z['object']({'snapshot':ArcGISMapSnapshotSchema,'operationOrigins':z['array'](ArcGISMapOperationOriginSchema)[_0x5c0875(0x74)](0x10),'hasExternalChanges':z['boolean']()})['strict']()['superRefine']((_0x31e192,_0x5dbd24)=>{const _0x1b48c4=_0x5c0875;_0x31e192['operationOrigins']['length']===0x0&&!_0x31e192['hasExternalChanges']&&_0x5dbd24[_0x1b48c4(0x84)]({'code':'custom','path':['operationOrigins'],'message':_0x1b48c4(0x6f)});const _0x52bfc0=_0x31e192[_0x1b48c4(0x8a)][_0x1b48c4(0x8e)](({transactionId:_0x120e5c,operationId:_0x5ad360})=>_0x120e5c+'\x00'+_0x5ad360);new Set(_0x52bfc0)['size']!==_0x52bfc0[_0x1b48c4(0x7f)]&&_0x5dbd24[_0x1b48c4(0x84)]({'code':'custom','path':['operationOrigins'],'message':_0x1b48c4(0x7b)});}),ArcGISMapCommandErrorCodes=['map-not-ready','layer-not-found',_0x5c0875(0x83),_0x5c0875(0x70),'execution-failed',_0x5c0875(0x82),'stale-controller'],ArcGISMapCommandErrorCodeSchema=z[_0x5c0875(0x6e)](ArcGISMapCommandErrorCodes),ArcGISMapCommandSuccessSchema=z['object']({'ok':z['literal'](!![]),'command':ArcGISMapCommandSchema,'snapshot':ArcGISMapSnapshotSchema})[_0x5c0875(0x7d)](),ArcGISMapCommandFailureSchema=z['object']({'ok':z[_0x5c0875(0x80)](![]),'command':z['union']([ArcGISMapCommandSchema,z['record'](z[_0x5c0875(0x76)]())]),'code':ArcGISMapCommandErrorCodeSchema,'message':z[_0x5c0875(0x90)]()[_0x5c0875(0x89)](0x1),'snapshot':ArcGISMapSnapshotSchema[_0x5c0875(0x91)]()})[_0x5c0875(0x7d)](),ArcGISMapCommandResultSchema=z['discriminatedUnion']('ok',[ArcGISMapCommandSuccessSchema,ArcGISMapCommandFailureSchema]);export{ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapOperationOriginSchema,ArcGISMapSnapshotNotificationSchema,ArcGISMapSnapshotSchema};
|