@agentic-ui-experience/ui-arcgis 0.0.1-beta.4 → 0.0.1-beta.5
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 +4 -4
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
|
-
|
|
1
|
+
(function(_0x7ad3f,_0x1fb8e3){const _0x1aacdd=_0x21bf,_0xbe417b=_0x7ad3f();while(!![]){try{const _0x45e69d=parseInt(_0x1aacdd(0x113))/0x1+-parseInt(_0x1aacdd(0x10c))/0x2+-parseInt(_0x1aacdd(0x10e))/0x3*(-parseInt(_0x1aacdd(0x110))/0x4)+-parseInt(_0x1aacdd(0x10f))/0x5+parseInt(_0x1aacdd(0x112))/0x6+parseInt(_0x1aacdd(0x111))/0x7+-parseInt(_0x1aacdd(0x10d))/0x8;if(_0x45e69d===_0x1fb8e3)break;else _0xbe417b['push'](_0xbe417b['shift']());}catch(_0x3f7396){_0xbe417b['push'](_0xbe417b['shift']());}}}(_0x5756,0x6a3c4));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 _0x5756(){const _0x59cd5f=['401440EnPUqR','4772bbIyER','5446469xOnhOR','3112266nxwFPD','59390VVOkBg','692922bpjjIN','7600040BJLPSF','1146XEokcE'];_0x5756=function(){return _0x59cd5f;};return _0x5756();}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});function _0x21bf(_0x32d158,_0xc37823){_0x32d158=_0x32d158-0x10c;const _0x5756b8=_0x5756();let _0x21bfe3=_0x5756b8[_0x32d158];return _0x21bfe3;}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 _0xf99253=_0x3fa8;(function(_0x160a44,_0x5bfff2){const _0x2e1af3=_0x3fa8,_0x3ee17f=_0x160a44();while(!![]){try{const _0x4aa88e=parseInt(_0x2e1af3(0x1b1))/0x1+-parseInt(_0x2e1af3(0x1a4))/0x2+parseInt(_0x2e1af3(0x1b8))/0x3*(parseInt(_0x2e1af3(0x1a7))/0x4)+parseInt(_0x2e1af3(0x1c2))/0x5+-parseInt(_0x2e1af3(0x1b7))/0x6+parseInt(_0x2e1af3(0x1c4))/0x7*(parseInt(_0x2e1af3(0x1b2))/0x8)+-parseInt(_0x2e1af3(0x1c6))/0x9*(parseInt(_0x2e1af3(0x1ba))/0xa);if(_0x4aa88e===_0x5bfff2)break;else _0x3ee17f['push'](_0x3ee17f['shift']());}catch(_0x463602){_0x3ee17f['push'](_0x3ee17f['shift']());}}}(_0x1a00,0x48113));import{z}from'zod';const FiniteNumberSchema=z[_0xf99253(0x1af)]()[_0xf99253(0x1b4)](),ArcGISMapCenterSchema=z[_0xf99253(0x1ac)]({'longitude':FiniteNumberSchema[_0xf99253(0x1ab)](-0xb4)[_0xf99253(0x1b6)](0xb4),'latitude':FiniteNumberSchema[_0xf99253(0x1ab)](-0x5a)[_0xf99253(0x1b6)](0x5a)})[_0xf99253(0x1b0)](),ArcGISMapLayerSnapshotSchema=z['object']({'id':z['string']()[_0xf99253(0x1ab)](0x1),'title':z['string'](),'type':z['string'](),'visible':z['boolean']()})['strict'](),ArcGISMapSnapshotSchema=z[_0xf99253(0x1ac)]({'map':z[_0xf99253(0x1ac)]({'itemId':z[_0xf99253(0x1b5)]()['min'](0x1)[_0xf99253(0x1ae)](),'title':z[_0xf99253(0x1b5)]()['min'](0x1)['optional']()})[_0xf99253(0x1b0)](),'viewpoint':z['object']({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema[_0xf99253(0x1ab)](0x0)[_0xf99253(0x1b6)](0x17),'scale':FiniteNumberSchema[_0xf99253(0x1a3)]()})['strict'](),'layers':z[_0xf99253(0x1a8)](ArcGISMapLayerSnapshotSchema),'capabilities':z[_0xf99253(0x1ac)]({'goTo':z[_0xf99253(0x1bb)](),'setLayerVisibility':z['boolean']()})[_0xf99253(0x1b0)]()})[_0xf99253(0x1b0)](),ArcGISGoToCommandSchema=z[_0xf99253(0x1ac)]({'type':z['literal']('goTo'),'target':z[_0xf99253(0x1ac)]({'center':ArcGISMapCenterSchema,'zoom':FiniteNumberSchema[_0xf99253(0x1ab)](0x0)['max'](0x17)['optional']()})['strict']()})[_0xf99253(0x1b0)](),ArcGISSetLayerVisibilityCommandSchema=z[_0xf99253(0x1ac)]({'type':z[_0xf99253(0x1c0)](_0xf99253(0x1bd)),'layerId':z[_0xf99253(0x1b5)]()['min'](0x1),'visible':z[_0xf99253(0x1bb)]()})['strict'](),ArcGISMapCommandSchema=z[_0xf99253(0x1c3)]('type',[ArcGISGoToCommandSchema,ArcGISSetLayerVisibilityCommandSchema]),ArcGISMapOperationOriginIdSchema=z[_0xf99253(0x1b5)]()['trim']()['min'](0x1)[_0xf99253(0x1b6)](0x80),ArcGISMapOperationOriginSchema=z['object']({'transactionId':ArcGISMapOperationOriginIdSchema,'operationId':ArcGISMapOperationOriginIdSchema})['strict'](),ArcGISMapSnapshotNotificationSchema=z[_0xf99253(0x1ac)]({'snapshot':ArcGISMapSnapshotSchema,'operationOrigins':z[_0xf99253(0x1a8)](ArcGISMapOperationOriginSchema)['max'](0x10),'hasExternalChanges':z['boolean']()})[_0xf99253(0x1b0)]()['superRefine']((_0x33b4e9,_0x539fd7)=>{const _0x3d2a82=_0xf99253;_0x33b4e9[_0x3d2a82(0x1a6)]['length']===0x0&&!_0x33b4e9[_0x3d2a82(0x1b9)]&&_0x539fd7['addIssue']({'code':_0x3d2a82(0x1aa),'path':[_0x3d2a82(0x1a6)],'message':_0x3d2a82(0x1c5)});const _0x35bfad=_0x33b4e9['operationOrigins'][_0x3d2a82(0x1bf)](({transactionId:_0x220397,operationId:_0x154f53})=>_0x220397+'\x00'+_0x154f53);new Set(_0x35bfad)['size']!==_0x35bfad['length']&&_0x539fd7['addIssue']({'code':'custom','path':[_0x3d2a82(0x1a6)],'message':_0x3d2a82(0x1ad)});}),ArcGISMapCommandErrorCodes=[_0xf99253(0x1a5),_0xf99253(0x1c1),'invalid-target',_0xf99253(0x1be),'execution-failed',_0xf99253(0x1b3),'stale-controller'],ArcGISMapCommandErrorCodeSchema=z[_0xf99253(0x1a9)](ArcGISMapCommandErrorCodes),ArcGISMapCommandSuccessSchema=z[_0xf99253(0x1ac)]({'ok':z['literal'](!![]),'command':ArcGISMapCommandSchema,'snapshot':ArcGISMapSnapshotSchema})['strict'](),ArcGISMapCommandFailureSchema=z['object']({'ok':z[_0xf99253(0x1c0)](![]),'command':z['union']([ArcGISMapCommandSchema,z[_0xf99253(0x1bc)](z['unknown']())]),'code':ArcGISMapCommandErrorCodeSchema,'message':z['string']()[_0xf99253(0x1ab)](0x1),'snapshot':ArcGISMapSnapshotSchema['optional']()})[_0xf99253(0x1b0)](),ArcGISMapCommandResultSchema=z[_0xf99253(0x1c3)]('ok',[ArcGISMapCommandSuccessSchema,ArcGISMapCommandFailureSchema]);function _0x3fa8(_0x3dce62,_0x23de0c){_0x3dce62=_0x3dce62-0x1a3;const _0x1a00b3=_0x1a00();let _0x3fa801=_0x1a00b3[_0x3dce62];return _0x3fa801;}function _0x1a00(){const _0x4eaaea=['hasExternalChanges','340hKcqUR','boolean','record','setLayerVisibility','unsupported-command','map','literal','layer-not-found','2366935glxEcx','discriminatedUnion','112sXDZuL','A\x20map\x20notification\x20requires\x20an\x20operation\x20origin\x20or\x20an\x20external-change\x20marker.','254574xjUkID','positive','39606nDEOcW','map-not-ready','operationOrigins','656Audnkf','array','enum','custom','min','object','Map\x20notification\x20operation\x20origins\x20must\x20be\x20unique.','optional','number','strict','482238daYgUm','149336DOyVcp','cancelled','finite','string','max','2509506rUuSHQ','8061qtnEfJ'];_0x1a00=function(){return _0x4eaaea;};return _0x1a00();}export{ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapOperationOriginSchema,ArcGISMapSnapshotNotificationSchema,ArcGISMapSnapshotSchema};
|