@agentic-ui-experience/ui-arcgis 0.0.1-beta.3 → 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.
@@ -0,0 +1,275 @@
1
+ import { z } from "zod";
2
+ export declare const ArcGISFeatureStatisticTypes: readonly ["count", "sum", "min", "max", "avg"];
3
+ export declare const ArcGISFeatureQueryRequestSchema: z.ZodEffects<z.ZodObject<{
4
+ layerId: z.ZodString;
5
+ mode: z.ZodEnum<["features", "count", "statistics"]>;
6
+ logic: z.ZodEnum<["and", "or"]>;
7
+ predicates: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
8
+ fieldName: z.ZodString;
9
+ operator: z.ZodEnum<["eq", "ne", "gt", "gte", "lt", "lte", "between", "in", "contains", "starts_with", "is_null", "is_not_null"]>;
10
+ values: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
11
+ }, "strict", z.ZodTypeAny, {
12
+ values: (string | number)[];
13
+ fieldName: string;
14
+ operator: "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "between" | "in" | "starts_with" | "is_null" | "is_not_null";
15
+ }, {
16
+ values: (string | number)[];
17
+ fieldName: string;
18
+ operator: "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "between" | "in" | "starts_with" | "is_null" | "is_not_null";
19
+ }>, {
20
+ values: (string | number)[];
21
+ fieldName: string;
22
+ operator: "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "between" | "in" | "starts_with" | "is_null" | "is_not_null";
23
+ }, {
24
+ values: (string | number)[];
25
+ fieldName: string;
26
+ operator: "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "between" | "in" | "starts_with" | "is_null" | "is_not_null";
27
+ }>, {
28
+ values: (string | number)[];
29
+ fieldName: string;
30
+ operator: "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "between" | "in" | "starts_with" | "is_null" | "is_not_null";
31
+ }, {
32
+ values: (string | number)[];
33
+ fieldName: string;
34
+ operator: "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "between" | "in" | "starts_with" | "is_null" | "is_not_null";
35
+ }>, "many">;
36
+ outFields: z.ZodArray<z.ZodString, "many">;
37
+ groupByFields: z.ZodArray<z.ZodString, "many">;
38
+ statistics: z.ZodArray<z.ZodObject<{
39
+ fieldName: z.ZodNullable<z.ZodString>;
40
+ statisticType: z.ZodEnum<["count", "sum", "min", "max", "avg"]>;
41
+ outputName: z.ZodString;
42
+ }, "strict", z.ZodTypeAny, {
43
+ fieldName: string | null;
44
+ statisticType: "count" | "sum" | "min" | "max" | "avg";
45
+ outputName: string;
46
+ }, {
47
+ fieldName: string | null;
48
+ statisticType: "count" | "sum" | "min" | "max" | "avg";
49
+ outputName: string;
50
+ }>, "many">;
51
+ orderBy: z.ZodArray<z.ZodObject<{
52
+ fieldName: z.ZodString;
53
+ direction: z.ZodEnum<["asc", "desc"]>;
54
+ }, "strict", z.ZodTypeAny, {
55
+ fieldName: string;
56
+ direction: "desc" | "asc";
57
+ }, {
58
+ fieldName: string;
59
+ direction: "desc" | "asc";
60
+ }>, "many">;
61
+ resultLimit: z.ZodNumber;
62
+ }, "strict", z.ZodTypeAny, {
63
+ layerId: string;
64
+ logic: "and" | "or";
65
+ predicates: {
66
+ values: (string | number)[];
67
+ fieldName: string;
68
+ operator: "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "between" | "in" | "starts_with" | "is_null" | "is_not_null";
69
+ }[];
70
+ mode: "count" | "features" | "statistics";
71
+ statistics: {
72
+ fieldName: string | null;
73
+ statisticType: "count" | "sum" | "min" | "max" | "avg";
74
+ outputName: string;
75
+ }[];
76
+ outFields: string[];
77
+ groupByFields: string[];
78
+ orderBy: {
79
+ fieldName: string;
80
+ direction: "desc" | "asc";
81
+ }[];
82
+ resultLimit: number;
83
+ }, {
84
+ layerId: string;
85
+ logic: "and" | "or";
86
+ predicates: {
87
+ values: (string | number)[];
88
+ fieldName: string;
89
+ operator: "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "between" | "in" | "starts_with" | "is_null" | "is_not_null";
90
+ }[];
91
+ mode: "count" | "features" | "statistics";
92
+ statistics: {
93
+ fieldName: string | null;
94
+ statisticType: "count" | "sum" | "min" | "max" | "avg";
95
+ outputName: string;
96
+ }[];
97
+ outFields: string[];
98
+ groupByFields: string[];
99
+ orderBy: {
100
+ fieldName: string;
101
+ direction: "desc" | "asc";
102
+ }[];
103
+ resultLimit: number;
104
+ }>, {
105
+ layerId: string;
106
+ logic: "and" | "or";
107
+ predicates: {
108
+ values: (string | number)[];
109
+ fieldName: string;
110
+ operator: "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "between" | "in" | "starts_with" | "is_null" | "is_not_null";
111
+ }[];
112
+ mode: "count" | "features" | "statistics";
113
+ statistics: {
114
+ fieldName: string | null;
115
+ statisticType: "count" | "sum" | "min" | "max" | "avg";
116
+ outputName: string;
117
+ }[];
118
+ outFields: string[];
119
+ groupByFields: string[];
120
+ orderBy: {
121
+ fieldName: string;
122
+ direction: "desc" | "asc";
123
+ }[];
124
+ resultLimit: number;
125
+ }, {
126
+ layerId: string;
127
+ logic: "and" | "or";
128
+ predicates: {
129
+ values: (string | number)[];
130
+ fieldName: string;
131
+ operator: "contains" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "between" | "in" | "starts_with" | "is_null" | "is_not_null";
132
+ }[];
133
+ mode: "count" | "features" | "statistics";
134
+ statistics: {
135
+ fieldName: string | null;
136
+ statisticType: "count" | "sum" | "min" | "max" | "avg";
137
+ outputName: string;
138
+ }[];
139
+ outFields: string[];
140
+ groupByFields: string[];
141
+ orderBy: {
142
+ fieldName: string;
143
+ direction: "desc" | "asc";
144
+ }[];
145
+ resultLimit: number;
146
+ }>;
147
+ export type ArcGISFeatureQueryRequest = z.infer<typeof ArcGISFeatureQueryRequestSchema>;
148
+ export declare const ArcGISFeatureQueryErrorCodes: readonly ["map-not-ready", "layer-not-found", "unsupported-layer", "field-not-found", "invalid-predicate", "query-failed", "cancelled", "stale-controller"];
149
+ export type ArcGISFeatureQueryErrorCode = (typeof ArcGISFeatureQueryErrorCodes)[number];
150
+ export declare const ArcGISFeatureQueryResultSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
151
+ ok: z.ZodLiteral<true>;
152
+ operation: z.ZodLiteral<"queryFeatureLayer">;
153
+ layer: z.ZodObject<{
154
+ id: z.ZodString;
155
+ title: z.ZodString;
156
+ }, "strict", z.ZodTypeAny, {
157
+ title: string;
158
+ id: string;
159
+ }, {
160
+ title: string;
161
+ id: string;
162
+ }>;
163
+ mode: z.ZodEnum<["features", "count", "statistics"]>;
164
+ columns: z.ZodArray<z.ZodObject<{
165
+ name: z.ZodString;
166
+ alias: z.ZodString;
167
+ type: z.ZodString;
168
+ }, "strict", z.ZodTypeAny, {
169
+ type: string;
170
+ name: string;
171
+ alias: string;
172
+ }, {
173
+ type: string;
174
+ name: string;
175
+ alias: string;
176
+ }>, "many">;
177
+ rows: z.ZodArray<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>, "many">;
178
+ count: z.ZodNullable<z.ZodNumber>;
179
+ truncated: z.ZodBoolean;
180
+ }, "strict", z.ZodTypeAny, {
181
+ ok: true;
182
+ operation: "queryFeatureLayer";
183
+ layer: {
184
+ title: string;
185
+ id: string;
186
+ };
187
+ count: number | null;
188
+ mode: "count" | "features" | "statistics";
189
+ columns: {
190
+ type: string;
191
+ name: string;
192
+ alias: string;
193
+ }[];
194
+ rows: Record<string, string | number | boolean | null>[];
195
+ truncated: boolean;
196
+ }, {
197
+ ok: true;
198
+ operation: "queryFeatureLayer";
199
+ layer: {
200
+ title: string;
201
+ id: string;
202
+ };
203
+ count: number | null;
204
+ mode: "count" | "features" | "statistics";
205
+ columns: {
206
+ type: string;
207
+ name: string;
208
+ alias: string;
209
+ }[];
210
+ rows: Record<string, string | number | boolean | null>[];
211
+ truncated: boolean;
212
+ }>, z.ZodObject<{
213
+ ok: z.ZodLiteral<false>;
214
+ operation: z.ZodLiteral<"queryFeatureLayer">;
215
+ layerId: z.ZodString;
216
+ code: z.ZodEnum<["map-not-ready", "layer-not-found", "unsupported-layer", "field-not-found", "invalid-predicate", "query-failed", "cancelled", "stale-controller"]>;
217
+ message: z.ZodString;
218
+ }, "strict", z.ZodTypeAny, {
219
+ code: "cancelled" | "map-not-ready" | "layer-not-found" | "unsupported-layer" | "field-not-found" | "invalid-predicate" | "query-failed" | "stale-controller";
220
+ message: string;
221
+ layerId: string;
222
+ ok: false;
223
+ operation: "queryFeatureLayer";
224
+ }, {
225
+ code: "cancelled" | "map-not-ready" | "layer-not-found" | "unsupported-layer" | "field-not-found" | "invalid-predicate" | "query-failed" | "stale-controller";
226
+ message: string;
227
+ layerId: string;
228
+ ok: false;
229
+ operation: "queryFeatureLayer";
230
+ }>]>, {
231
+ ok: true;
232
+ operation: "queryFeatureLayer";
233
+ layer: {
234
+ title: string;
235
+ id: string;
236
+ };
237
+ count: number | null;
238
+ mode: "count" | "features" | "statistics";
239
+ columns: {
240
+ type: string;
241
+ name: string;
242
+ alias: string;
243
+ }[];
244
+ rows: Record<string, string | number | boolean | null>[];
245
+ truncated: boolean;
246
+ } | {
247
+ code: "cancelled" | "map-not-ready" | "layer-not-found" | "unsupported-layer" | "field-not-found" | "invalid-predicate" | "query-failed" | "stale-controller";
248
+ message: string;
249
+ layerId: string;
250
+ ok: false;
251
+ operation: "queryFeatureLayer";
252
+ }, {
253
+ ok: true;
254
+ operation: "queryFeatureLayer";
255
+ layer: {
256
+ title: string;
257
+ id: string;
258
+ };
259
+ count: number | null;
260
+ mode: "count" | "features" | "statistics";
261
+ columns: {
262
+ type: string;
263
+ name: string;
264
+ alias: string;
265
+ }[];
266
+ rows: Record<string, string | number | boolean | null>[];
267
+ truncated: boolean;
268
+ } | {
269
+ code: "cancelled" | "map-not-ready" | "layer-not-found" | "unsupported-layer" | "field-not-found" | "invalid-predicate" | "query-failed" | "stale-controller";
270
+ message: string;
271
+ layerId: string;
272
+ ok: false;
273
+ operation: "queryFeatureLayer";
274
+ }>;
275
+ export type ArcGISFeatureQueryResult = z.infer<typeof ArcGISFeatureQueryResultSchema>;
@@ -0,0 +1 @@
1
+ const _0x4865c9=_0x5d84;(function(_0x2d9210,_0x4f8a46){const _0xe7c326=_0x5d84,_0x5a6d67=_0x2d9210();while(!![]){try{const _0x292ae5=-parseInt(_0xe7c326(0x1e8))/0x1*(-parseInt(_0xe7c326(0x1db))/0x2)+-parseInt(_0xe7c326(0x1e9))/0x3+parseInt(_0xe7c326(0x1f8))/0x4*(-parseInt(_0xe7c326(0x1de))/0x5)+-parseInt(_0xe7c326(0x1e6))/0x6+-parseInt(_0xe7c326(0x217))/0x7+parseInt(_0xe7c326(0x216))/0x8+parseInt(_0xe7c326(0x200))/0x9;if(_0x292ae5===_0x4f8a46)break;else _0x5a6d67['push'](_0x5a6d67['shift']());}catch(_0x58ef5f){_0x5a6d67['push'](_0x5a6d67['shift']());}}}(_0x42c2,0xa3b98));import{z}from'zod';import{ArcGISFeaturePredicateSchema}from'./featureFilter.js';const MAX_IDENTIFIER_LENGTH=0x100,MAX_TEXT_LENGTH=0x3e8,MAX_COLUMNS=0x14,MAX_ROWS=0x1f4,FeatureQueryIdentifierSchema=z['string']()[_0x4865c9(0x210)](0x1)[_0x4865c9(0x207)](MAX_IDENTIFIER_LENGTH),ArcGISFeatureQueryPredicateSchema=ArcGISFeaturePredicateSchema['refine'](_0xa9f227=>_0xa9f227['fieldName']['length']<=MAX_IDENTIFIER_LENGTH,{'path':['fieldName'],'message':_0x4865c9(0x204)+MAX_IDENTIFIER_LENGTH+_0x4865c9(0x203)}),ArcGISFeatureStatisticTypes=[_0x4865c9(0x1fe),_0x4865c9(0x201),'min',_0x4865c9(0x207),_0x4865c9(0x212)],ArcGISFeatureStatisticTypeSchema=z['enum'](ArcGISFeatureStatisticTypes),ArcGISFeatureQueryStatisticSchema=z['object']({'fieldName':FeatureQueryIdentifierSchema[_0x4865c9(0x1e4)](),'statisticType':ArcGISFeatureStatisticTypeSchema,'outputName':z[_0x4865c9(0x1e7)]()[_0x4865c9(0x208)](/^[A-Za-z][A-Za-z0-9_]{0,63}$/)})[_0x4865c9(0x1f1)](),ArcGISFeatureQueryOrderSchema=z[_0x4865c9(0x1e1)]({'fieldName':FeatureQueryIdentifierSchema,'direction':z['enum'](['asc','desc'])})['strict']();function _0x5d84(_0x5488af,_0x2a7b39){_0x5488af=_0x5488af-0x1db;const _0x42c28a=_0x42c2();let _0x5d84b8=_0x42c28a[_0x5488af];return _0x5d84b8;}function _0x42c2(){const _0x2eb7dd=['int','custom','statisticType','superRefine','fieldName','truncated','strict','Rows\x20may\x20contain\x20at\x20most\x20','enum','columns','and','addIssue','features','1080mDAsol','forEach','Row\x20results\x20require\x20at\x20least\x20one\x20column.','some','queryFeatureLayer','has','count','literal','21709080NXOaWN','sum','toLocaleLowerCase','\x20characters.','Field\x20names\x20must\x20contain\x20at\x20most\x20','invalid-predicate','number','max','regex','Row\x20results\x20must\x20use\x20a\x20null\x20count\x20value.','nonnegative','groupByFields','length','statistics','map','Count\x20queries\x20require\x20this\x20collection\x20to\x20be\x20empty.','min','stale-controller','avg','Count\x20results\x20cannot\x20contain\x20columns\x20or\x20rows.','Statistics\x20queries\x20require\x20a\x20statistic.','Only\x20count\x20statistics\x20may\x20use\x20a\x20null\x20field\x20name.','6808992pdppuq','162505oNtcuC','record','array','Feature\x20queries\x20cannot\x20calculate\x20statistics.','2dfUJvu','boolean','orderBy','10170dcVSuu','keys','Count\x20results\x20require\x20a\x20count\x20value.','object','finite','Statistics\x20queries\x20derive\x20output\x20columns\x20from\x20groupByFields\x20and\x20statistics.','nullable','mode','7812390WgbWeg','string','260783xcTKDm','2936853MfhPpI','outFields'];_0x42c2=function(){return _0x2eb7dd;};return _0x42c2();}function addIssue(_0x39f926,_0x4c8eb6,_0x36d6ce){const _0x336b97=_0x4865c9;_0x39f926[_0x336b97(0x1f6)]({'code':_0x336b97(0x1ec),'path':_0x4c8eb6,'message':_0x36d6ce});}function findDuplicate(_0x3f109b){const _0x332eeb=_0x4865c9,_0x5de131=new Set();for(const _0x355e88 of _0x3f109b){const _0x2ded07=_0x355e88[_0x332eeb(0x202)]('en-US');if(_0x5de131[_0x332eeb(0x1fd)](_0x2ded07))return _0x355e88;_0x5de131['add'](_0x2ded07);}return null;}const ArcGISFeatureQueryRequestSchema=z[_0x4865c9(0x1e1)]({'layerId':FeatureQueryIdentifierSchema,'mode':z['enum'](['features',_0x4865c9(0x1fe),'statistics']),'logic':z['enum']([_0x4865c9(0x1f5),'or']),'predicates':z[_0x4865c9(0x219)](ArcGISFeatureQueryPredicateSchema)['max'](0x8),'outFields':z['array'](FeatureQueryIdentifierSchema)[_0x4865c9(0x207)](MAX_COLUMNS),'groupByFields':z['array'](FeatureQueryIdentifierSchema)[_0x4865c9(0x207)](0x4),'statistics':z[_0x4865c9(0x219)](ArcGISFeatureQueryStatisticSchema)[_0x4865c9(0x207)](0x8),'orderBy':z[_0x4865c9(0x219)](ArcGISFeatureQueryOrderSchema)[_0x4865c9(0x207)](0x8),'resultLimit':z[_0x4865c9(0x206)]()[_0x4865c9(0x1eb)]()['min'](0x1)['max'](MAX_ROWS)})['strict']()[_0x4865c9(0x1ee)]((_0x4a9253,_0x3c54af)=>{const _0x50c79d=_0x4865c9;if(_0x4a9253[_0x50c79d(0x1e5)]===_0x50c79d(0x1f7))_0x4a9253[_0x50c79d(0x1ea)][_0x50c79d(0x20c)]===0x0&&addIssue(_0x3c54af,[_0x50c79d(0x1ea)],'Feature\x20queries\x20require\x20an\x20output\x20field.'),_0x4a9253[_0x50c79d(0x20b)][_0x50c79d(0x20c)]!==0x0&&addIssue(_0x3c54af,['groupByFields'],'Feature\x20queries\x20cannot\x20group\x20results.'),_0x4a9253[_0x50c79d(0x20d)][_0x50c79d(0x20c)]!==0x0&&addIssue(_0x3c54af,['statistics'],_0x50c79d(0x21a));else{if(_0x4a9253['mode']===_0x50c79d(0x1fe))for(const _0x51fff5 of['outFields','groupByFields','statistics','orderBy']){_0x4a9253[_0x51fff5][_0x50c79d(0x20c)]!==0x0&&addIssue(_0x3c54af,[_0x51fff5],_0x50c79d(0x20f));}else _0x4a9253['outFields'][_0x50c79d(0x20c)]!==0x0&&addIssue(_0x3c54af,[_0x50c79d(0x1ea)],_0x50c79d(0x1e3)),_0x4a9253['statistics'][_0x50c79d(0x20c)]===0x0&&addIssue(_0x3c54af,[_0x50c79d(0x20d)],_0x50c79d(0x214));}_0x4a9253[_0x50c79d(0x20d)][_0x50c79d(0x1f9)]((_0x531c69,_0x50fdf9)=>{const _0x5a2fb4=_0x50c79d;_0x531c69[_0x5a2fb4(0x1ed)]!=='count'&&_0x531c69['fieldName']===null&&addIssue(_0x3c54af,['statistics',_0x50fdf9,_0x5a2fb4(0x1ef)],_0x5a2fb4(0x215));});for(const [_0x1b6da1,_0x30f411]of[[_0x50c79d(0x1ea),_0x4a9253['outFields']],[_0x50c79d(0x20b),_0x4a9253[_0x50c79d(0x20b)]],[_0x50c79d(0x1dd),_0x4a9253[_0x50c79d(0x1dd)][_0x50c79d(0x20e)](({fieldName:_0x3f7c6d})=>_0x3f7c6d)]]){const _0x57a9e5=findDuplicate(_0x30f411);_0x57a9e5!==null&&addIssue(_0x3c54af,[_0x1b6da1],'Duplicate\x20field\x20name\x20'+_0x57a9e5+'.');}const _0x2f8912=[..._0x4a9253['outFields'],..._0x4a9253['groupByFields'],..._0x4a9253[_0x50c79d(0x20d)][_0x50c79d(0x20e)](({outputName:_0x5168f7})=>_0x5168f7)],_0x69dfd=findDuplicate(_0x2f8912);_0x69dfd!==null&&addIssue(_0x3c54af,[_0x50c79d(0x20d)],'Ambiguous\x20output\x20name\x20'+_0x69dfd+'.');if(_0x4a9253[_0x50c79d(0x1e5)]===_0x50c79d(0x20d)){const _0x58e6d4=new Set(_0x4a9253['groupByFields']);_0x4a9253[_0x50c79d(0x1dd)]['forEach'](({fieldName:_0x309596},_0x1ccab0)=>{const _0x40818e=_0x50c79d;!_0x58e6d4[_0x40818e(0x1fd)](_0x309596)&&addIssue(_0x3c54af,['orderBy',_0x1ccab0,_0x40818e(0x1ef)],'Statistics\x20queries\x20may\x20order\x20only\x20by\x20a\x20group\x20field.');});}}),ArcGISFeatureQueryErrorCodes=['map-not-ready','layer-not-found','unsupported-layer','field-not-found',_0x4865c9(0x205),'query-failed','cancelled',_0x4865c9(0x211)],ArcGISFeatureQueryErrorCodeSchema=z[_0x4865c9(0x1f3)](ArcGISFeatureQueryErrorCodes),ArcGISFeatureQueryColumnSchema=z['object']({'name':FeatureQueryIdentifierSchema,'alias':z[_0x4865c9(0x1e7)]()[_0x4865c9(0x207)](0x200),'type':z['string']()['min'](0x1)['max'](0x80)})['strict'](),ArcGISFeatureQueryRowValueSchema=z['union']([z[_0x4865c9(0x1e7)](),z[_0x4865c9(0x206)]()[_0x4865c9(0x1e2)](),z[_0x4865c9(0x1dc)](),z['null']()]),ArcGISFeatureQueryRowSchema=z[_0x4865c9(0x218)](ArcGISFeatureQueryRowValueSchema)['superRefine']((_0x57f207,_0x264e54)=>{const _0x49c66f=_0x4865c9;Object[_0x49c66f(0x1df)](_0x57f207)['length']>MAX_COLUMNS&&addIssue(_0x264e54,[],_0x49c66f(0x1f2)+MAX_COLUMNS+'\x20values.');}),ArcGISFeatureQuerySuccessSchema=z['object']({'ok':z[_0x4865c9(0x1ff)](!![]),'operation':z['literal'](_0x4865c9(0x1fc)),'layer':z['object']({'id':FeatureQueryIdentifierSchema,'title':z['string']()['max'](0x200)})['strict'](),'mode':z['enum']([_0x4865c9(0x1f7),'count','statistics']),'columns':z['array'](ArcGISFeatureQueryColumnSchema)['max'](MAX_COLUMNS),'rows':z['array'](ArcGISFeatureQueryRowSchema)[_0x4865c9(0x207)](MAX_ROWS),'count':z[_0x4865c9(0x206)]()[_0x4865c9(0x1eb)]()[_0x4865c9(0x20a)]()['nullable'](),'truncated':z[_0x4865c9(0x1dc)]()})[_0x4865c9(0x1f1)](),ArcGISFeatureQueryFailureSchema=z['object']({'ok':z[_0x4865c9(0x1ff)](![]),'operation':z['literal']('queryFeatureLayer'),'layerId':FeatureQueryIdentifierSchema,'code':ArcGISFeatureQueryErrorCodeSchema,'message':z[_0x4865c9(0x1e7)]()[_0x4865c9(0x210)](0x1)[_0x4865c9(0x207)](MAX_TEXT_LENGTH)})[_0x4865c9(0x1f1)](),ArcGISFeatureQueryResultSchema=z['discriminatedUnion']('ok',[ArcGISFeatureQuerySuccessSchema,ArcGISFeatureQueryFailureSchema])['superRefine']((_0x18ecd1,_0x5c8aa1)=>{const _0x130317=_0x4865c9;if(!_0x18ecd1['ok'])return;if(_0x18ecd1[_0x130317(0x1e5)]==='count'){(_0x18ecd1['columns']['length']!==0x0||_0x18ecd1['rows'][_0x130317(0x20c)]!==0x0)&&addIssue(_0x5c8aa1,[_0x130317(0x1e5)],_0x130317(0x213));_0x18ecd1['count']===null&&addIssue(_0x5c8aa1,['count'],_0x130317(0x1e0));_0x18ecd1[_0x130317(0x1f0)]&&addIssue(_0x5c8aa1,[_0x130317(0x1f0)],'Count\x20results\x20cannot\x20be\x20truncated.');return;}_0x18ecd1['count']!==null&&addIssue(_0x5c8aa1,[_0x130317(0x1fe)],_0x130317(0x209));if(_0x18ecd1[_0x130317(0x1f4)][_0x130317(0x20c)]===0x0){addIssue(_0x5c8aa1,['columns'],_0x130317(0x1fa));return;}const _0x355a57=_0x18ecd1[_0x130317(0x1f4)]['map'](({name:_0xbad91e})=>_0xbad91e),_0x1b8f98=findDuplicate(_0x355a57);_0x1b8f98!==null&&addIssue(_0x5c8aa1,['columns'],'Duplicate\x20result\x20column\x20'+_0x1b8f98+'.');const _0x59f5be=new Set(_0x355a57);_0x18ecd1['rows'][_0x130317(0x1f9)]((_0x53a3f2,_0x2d66f8)=>{const _0x529a41=_0x130317,_0x4fd65c=Object[_0x529a41(0x1df)](_0x53a3f2);(_0x4fd65c[_0x529a41(0x20c)]!==_0x59f5be['size']||_0x4fd65c[_0x529a41(0x1fb)](_0x3c47ab=>!_0x59f5be['has'](_0x3c47ab)))&&addIssue(_0x5c8aa1,['rows',_0x2d66f8],'Row\x20keys\x20must\x20exactly\x20match\x20the\x20declared\x20result\x20columns.');});});export{ArcGISFeatureQueryErrorCodes,ArcGISFeatureQueryRequestSchema,ArcGISFeatureQueryResultSchema,ArcGISFeatureStatisticTypes};
@@ -0,0 +1,16 @@
1
+ import type { StatisticDefinitionProperties } from "@arcgis/core/rest/support/StatisticDefinition.js";
2
+ import { type ArcGISFeatureQueryRequest } from "./featureQuery.js";
3
+ import { type FeatureFilterFieldMetadata } from "./featureFilterExpression.js";
4
+ export declare class FeatureQueryExpressionError extends Error {
5
+ constructor(message: string);
6
+ }
7
+ export interface CompiledFeatureQueryProperties {
8
+ where: string;
9
+ outFields: string[];
10
+ orderByFields: string[];
11
+ groupByFieldsForStatistics: string[];
12
+ outStatistics: StatisticDefinitionProperties[];
13
+ returnGeometry: false;
14
+ num: number;
15
+ }
16
+ export declare function compileFeatureQueryProperties(request: ArcGISFeatureQueryRequest, fields: readonly FeatureFilterFieldMetadata[]): CompiledFeatureQueryProperties;
@@ -0,0 +1 @@
1
+ function _0xadc5(){const _0x39a292=['4408140ixoQVV','statistics','issues','1777458hFsjku','fieldName','safeParse','unknown\x20validation\x20error','name','138NhDcDU','map','success','statisticType','outFields','Invalid\x20feature\x20query\x20request:\x20','8658685GGiONa','orderBy','408597OFTPWo','1084420mSbUtY','32486736BkYQQr','resultLimit','7486200jtYaWx','Field\x20','get','FeatureQueryExpressionError','data'];_0xadc5=function(){return _0x39a292;};return _0xadc5();}(function(_0x378322,_0xdc3095){const _0x467420=_0xe663,_0x5d16f7=_0x378322();while(!![]){try{const _0x1da981=-parseInt(_0x467420(0xcb))/0x1+-parseInt(_0x467420(0xc0))/0x2+parseInt(_0x467420(0xc8))/0x3+-parseInt(_0x467420(0xc3))/0x4+-parseInt(_0x467420(0xd6))/0x5+-parseInt(_0x467420(0xd0))/0x6*(-parseInt(_0x467420(0xbf))/0x7)+parseInt(_0x467420(0xc1))/0x8;if(_0x1da981===_0xdc3095)break;else _0x5d16f7['push'](_0x5d16f7['shift']());}catch(_0xb7a1a6){_0x5d16f7['push'](_0x5d16f7['shift']());}}}(_0xadc5,0xe7e28));import{sqlName}from'@arcgis/core/core/sql.js';import{ArcGISFeatureQueryRequestSchema}from'./featureQuery.js';import{compileFeaturePredicateWhere}from'./featureFilterExpression.js';class FeatureQueryExpressionError extends Error{constructor(_0x253575){const _0x1580d9=_0xe663;super(_0x253575),this[_0x1580d9(0xcf)]=_0x1580d9(0xc6);}}function createExactFieldIndex(_0x5745b8){const _0x18a9f6=_0xe663,_0x5a5466=new Map();for(const _0x5642f5 of _0x5745b8){if(_0x5a5466['has'](_0x5642f5[_0x18a9f6(0xcf)]))throw new FeatureQueryExpressionError('Live\x20field\x20metadata\x20is\x20ambiguous\x20for\x20'+_0x5642f5['name']+'.');_0x5a5466['set'](_0x5642f5[_0x18a9f6(0xcf)],_0x5642f5);}return _0x5a5466;}function requireExactField(_0xd9162a,_0xe66fb8){const _0x3e56d7=_0xe663,_0x3be369=_0xe66fb8[_0x3e56d7(0xc5)](_0xd9162a);if(!_0x3be369)throw new FeatureQueryExpressionError(_0x3e56d7(0xc4)+_0xd9162a+'\x20was\x20not\x20found\x20with\x20an\x20exact\x20live-schema\x20match.');return _0x3be369;}function quoteIdentifier(_0x11dcae,_0x9858e9){return sqlName(requireExactField(_0x11dcae,_0x9858e9)['name']);}function toStatisticDefinition(_0x1566c5,_0x2e3b16){const _0x4f46f4=_0xe663,_0x207f94=_0x1566c5['fieldName']===null?'*':requireExactField(_0x1566c5[_0x4f46f4(0xcc)],_0x2e3b16)['name'];return{'onStatisticField':_0x207f94,'outStatisticFieldName':_0x1566c5['outputName'],'statisticType':_0x1566c5[_0x4f46f4(0xd3)]};}function compileFeatureQueryProperties(_0x20c6a0,_0xc42222){const _0x3e5455=_0xe663,_0x30748c=ArcGISFeatureQueryRequestSchema[_0x3e5455(0xcd)](_0x20c6a0);if(!_0x30748c[_0x3e5455(0xd2)])throw new FeatureQueryExpressionError(_0x3e5455(0xd5)+(_0x30748c['error'][_0x3e5455(0xca)][0x0]?.['message']??_0x3e5455(0xce)));const _0x41a3ff=createExactFieldIndex(_0xc42222);for(const _0xf12b9 of[..._0x30748c['data'][_0x3e5455(0xd4)],..._0x30748c[_0x3e5455(0xc7)]['groupByFields'],..._0x30748c[_0x3e5455(0xc7)]['orderBy']['map'](({fieldName:_0x4b82b7})=>_0x4b82b7)]){requireExactField(_0xf12b9,_0x41a3ff);}for(const _0x3f0f62 of _0x30748c['data'][_0x3e5455(0xc9)]){_0x3f0f62['fieldName']!==null&&requireExactField(_0x3f0f62[_0x3e5455(0xcc)],_0x41a3ff);}let _0x2ec88b;try{_0x2ec88b=compileFeaturePredicateWhere(_0x30748c[_0x3e5455(0xc7)]['logic'],_0x30748c['data']['predicates'],_0xc42222);}catch(_0x444ae6){throw new FeatureQueryExpressionError(_0x444ae6 instanceof Error?_0x444ae6['message']:'Feature\x20predicate\x20compilation\x20failed.');}return{'where':_0x2ec88b,'outFields':[..._0x30748c[_0x3e5455(0xc7)][_0x3e5455(0xd4)]],'orderByFields':_0x30748c[_0x3e5455(0xc7)][_0x3e5455(0xbe)]['map'](({fieldName:_0x30702f,direction:_0x1c1524})=>quoteIdentifier(_0x30702f,_0x41a3ff)+'\x20'+_0x1c1524['toUpperCase']()),'groupByFieldsForStatistics':[..._0x30748c['data']['groupByFields']],'outStatistics':_0x30748c[_0x3e5455(0xc7)]['statistics'][_0x3e5455(0xd1)](_0x1875e0=>toStatisticDefinition(_0x1875e0,_0x41a3ff)),'returnGeometry':![],'num':_0x30748c['data'][_0x3e5455(0xc2)]};}function _0xe663(_0x49f60a,_0x1ae571){_0x49f60a=_0x49f60a-0xbe;const _0xadc5ba=_0xadc5();let _0xe66341=_0xadc5ba[_0x49f60a];return _0xe66341;}export{FeatureQueryExpressionError,compileFeatureQueryProperties};
@@ -0,0 +1,12 @@
1
+ import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
2
+ import type { ArcGISMapController } from "./api.js";
3
+ export interface FeatureQueryRuntime {
4
+ queryFeatureLayer: ArcGISMapController["queryFeatureLayer"];
5
+ dispose(): void;
6
+ }
7
+ export interface FeatureQueryRuntimeDependencies {
8
+ isReady(): boolean;
9
+ isDisposed(): boolean;
10
+ resolveLayer(layerId: string): FeatureLayer | undefined;
11
+ }
12
+ export declare function createFeatureQueryRuntime(dependencies: FeatureQueryRuntimeDependencies): FeatureQueryRuntime;
@@ -0,0 +1 @@
1
+ const _0x1e0a3e=_0x2e1f;function _0x50e3(){const _0x17062e=['511376HkxBqB','fields','message','field-not-found','3226995TibROJ','fieldNotFound','name','1448vStyyW','slice','outFields','features','safeParse','getTimeZone','toISOString','1435TZsRqZ','Layer\x20','invalid-predicate','success','2996544WKCVqv','deleteProperty','feature','aborted','isDisposed','some','stale','5984163HlcJdb','string','get','cancelled','mode','code','invalidPredicate','invalidRequest','fromEntries','boolean','resolveLayer','map','Map\x20controller\x20is\x20no\x20longer\x20active.','signal','\x20does\x20not\x20support\x20feature\x20queries.','attributes','flatMap','queryFailed','groupByFields','isSafeInteger','count','title','has','isArray','predicates','layerId','6kRiWYp','queryFeatures','map-not-ready','fieldsIndex','Feature\x20query\x20returned\x20an\x20invalid\x20feature\x20collection.','type','notReady','Feature\x20query\x20request\x20is\x20invalid.','3340170EAhXWV','1162844mzDMCK','query-failed','\x20was\x20not\x20found.','stale-controller','Feature\x20layer\x20metadata\x20could\x20not\x20be\x20loaded.','unsupported-layer','data','unknown'];_0x50e3=function(){return _0x17062e;};return _0x50e3();}(function(_0x3f64ec,_0x5e4351){const _0xc3063c=_0x2e1f,_0x21bf36=_0x3f64ec();while(!![]){try{const _0x481a16=-parseInt(_0xc3063c(0x1ef))/0x1+parseInt(_0xc3063c(0x201))/0x2+-parseInt(_0xc3063c(0x1e6))/0x3+-parseInt(_0xc3063c(0x1e7))/0x4+-parseInt(_0xc3063c(0x1f3))/0x5*(-parseInt(_0xc3063c(0x222))/0x6)+parseInt(_0xc3063c(0x1fd))/0x7*(-parseInt(_0xc3063c(0x1f6))/0x8)+parseInt(_0xc3063c(0x208))/0x9;if(_0x481a16===_0x5e4351)break;else _0x21bf36['push'](_0x21bf36['shift']());}catch(_0x29055f){_0x21bf36['push'](_0x21bf36['shift']());}}}(_0x50e3,0xd0fbc));import{ArcGISFeatureQueryRequestSchema}from'./featureQuery.js';import{compileFeatureQueryProperties}from'./featureQueryExpression.js';const MESSAGES={'cancelled':'Feature\x20query\x20was\x20cancelled.','stale':_0x1e0a3e(0x214),'notReady':'ArcGIS\x20map\x20view\x20is\x20not\x20ready.','invalidRequest':_0x1e0a3e(0x1e5),'fieldNotFound':'Feature\x20query\x20references\x20an\x20unavailable\x20field.','invalidPredicate':'Feature\x20query\x20predicate\x20is\x20invalid.','metadataFailed':_0x1e0a3e(0x1eb),'queryFailed':'Feature\x20query\x20failed.'};function queryFailure(_0x759c9e,_0xf65c23,_0x4e42fa){return{'ok':![],'operation':'queryFeatureLayer','layerId':_0x759c9e,'code':_0xf65c23,'message':_0x4e42fa};}function unavailableLayerMessage(_0x4e66de){const _0x113f6a=_0x1e0a3e;return _0x113f6a(0x1fe)+_0x4e66de+_0x113f6a(0x1e9);}function unsupportedLayerMessage(_0x9efb1f){const _0x28ba17=_0x1e0a3e;return _0x28ba17(0x1fe)+_0x9efb1f+_0x28ba17(0x216);}function requestedFieldNames(_0x32b237){const _0x1a1eb0=_0x1e0a3e;return[..._0x32b237[_0x1a1eb0(0x220)][_0x1a1eb0(0x213)](({fieldName:_0x506492})=>_0x506492),..._0x32b237[_0x1a1eb0(0x1f8)],..._0x32b237[_0x1a1eb0(0x21a)],..._0x32b237['statistics'][_0x1a1eb0(0x218)](({fieldName:_0x47e413})=>_0x47e413===null?[]:[_0x47e413]),..._0x32b237['orderBy']['map'](({fieldName:_0x4a9e67})=>_0x4a9e67)];}function resultColumns(_0x5832d1,_0x13ddf1){const _0x260d1b=_0x1e0a3e,_0x180c29=new Map(_0x13ddf1['map'](_0x538253=>[_0x538253[_0x260d1b(0x1f5)],_0x538253]));if(_0x5832d1[_0x260d1b(0x20c)]==='features')return _0x5832d1[_0x260d1b(0x1f8)]['map'](_0x300a40=>{const _0x1eef95=_0x260d1b,_0x17f299=_0x180c29[_0x1eef95(0x20a)](_0x300a40);return{'name':_0x300a40,'alias':_0x17f299['alias'],'type':_0x17f299[_0x1eef95(0x1e3)]};});if(_0x5832d1[_0x260d1b(0x20c)]===_0x260d1b(0x21c))return[];return[..._0x5832d1['groupByFields']['map'](_0x43ac93=>{const _0x4e1c88=_0x260d1b,_0x3fba67=_0x180c29[_0x4e1c88(0x20a)](_0x43ac93);return{'name':_0x43ac93,'alias':_0x3fba67['alias'],'type':_0x3fba67[_0x4e1c88(0x1e3)]};}),..._0x5832d1['statistics']['map'](_0x153bf4=>({'name':_0x153bf4['outputName'],'alias':_0x153bf4['outputName'],'type':_0x153bf4['statisticType']===_0x260d1b(0x21c)?'integer':_0x180c29[_0x260d1b(0x20a)](_0x153bf4['fieldName'])['type']}))];}function projectValue(_0x33f092){const _0x1b2784=_0x1e0a3e;if(_0x33f092===void 0x0)return null;if(_0x33f092 instanceof Date)return _0x33f092[_0x1b2784(0x1fc)]();if(_0x33f092===null||typeof _0x33f092===_0x1b2784(0x209)||typeof _0x33f092===_0x1b2784(0x211))return _0x33f092;if(typeof _0x33f092==='number'&&Number['isFinite'](_0x33f092))return _0x33f092;throw new TypeError('Feature\x20query\x20returned\x20an\x20unsupported\x20attribute\x20value.');}function _0x2e1f(_0x48b2f2,_0x3d7618){_0x48b2f2=_0x48b2f2-0x1e3;const _0x50e3f2=_0x50e3();let _0x2e1f18=_0x50e3f2[_0x48b2f2];return _0x2e1f18;}function projectRows(_0x865510,_0x7e9294,_0x174e15){const _0x3b20e6=_0x1e0a3e;if(!Array[_0x3b20e6(0x21f)](_0x865510))throw new TypeError(_0x3b20e6(0x226));const _0x443ffe=_0x865510[_0x3b20e6(0x1f7)](0x0,_0x174e15)['map'](_0x3e36e0=>{const _0x258766=_0x3b20e6;if(typeof _0x3e36e0!=='object'||_0x3e36e0===null||!(_0x258766(0x217)in _0x3e36e0)||typeof _0x3e36e0['attributes']!=='object'||_0x3e36e0[_0x258766(0x217)]===null||Array[_0x258766(0x21f)](_0x3e36e0[_0x258766(0x217)]))throw new TypeError('Feature\x20query\x20returned\x20invalid\x20attributes.');const _0x1222a8=_0x3e36e0[_0x258766(0x217)];return Object[_0x258766(0x210)](_0x7e9294['map'](({name:_0x537e91})=>[_0x537e91,projectValue(_0x1222a8[_0x537e91])]));});return{'rows':_0x443ffe,'extra':_0x865510['length']>_0x174e15};}function createFeatureQueryRuntime(_0x46b3e9){let _0x2d35d0=![],_0x5eff00=0x0;function _0x25e669(_0xcc142d,_0x30b7dd){const _0x1bfd6a=_0x2e1f;if(_0x2d35d0||_0x46b3e9[_0x1bfd6a(0x205)]()||_0xcc142d!==_0x5eff00)return{'code':_0x1bfd6a(0x1ea),'message':MESSAGES[_0x1bfd6a(0x207)]};if(_0x30b7dd?.[_0x1bfd6a(0x204)])return{'code':_0x1bfd6a(0x20b),'message':MESSAGES['cancelled']};if(!_0x46b3e9['isReady']())return{'code':_0x1bfd6a(0x224),'message':MESSAGES[_0x1bfd6a(0x1e4)]};return void 0x0;}const _0x4d372f=async(_0x1b72fc,_0x24939e)=>{const _0x440eec=_0x2e1f,_0x5c3616=typeof _0x1b72fc?.[_0x440eec(0x221)]===_0x440eec(0x209)&&_0x1b72fc['layerId']['length']>0x0?_0x1b72fc['layerId']:_0x440eec(0x1ee),_0x3765b8=ArcGISFeatureQueryRequestSchema[_0x440eec(0x1fa)](_0x1b72fc);if(!_0x3765b8[_0x440eec(0x200)])return queryFailure(_0x5c3616,_0x440eec(0x1ff),MESSAGES[_0x440eec(0x20f)]);const {layerId:_0x32c377}=_0x3765b8[_0x440eec(0x1ed)],_0xcd88e8=_0x5eff00;let _0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.[_0x440eec(0x215)]);if(_0x5d79d8)return queryFailure(_0x32c377,_0x5d79d8[_0x440eec(0x20d)],_0x5d79d8['message']);const _0x5763f7=_0x46b3e9[_0x440eec(0x212)](_0x32c377);if(!_0x5763f7)return queryFailure(_0x32c377,'layer-not-found',unavailableLayerMessage(_0x32c377));if(_0x5763f7['type']!==_0x440eec(0x203))return queryFailure(_0x32c377,_0x440eec(0x1ec),unsupportedLayerMessage(_0x32c377));try{await _0x5763f7['load']({'signal':_0x24939e?.['signal']});}catch{return _0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.['signal']),queryFailure(_0x32c377,_0x5d79d8?.['code']??_0x440eec(0x1e8),_0x5d79d8?.[_0x440eec(0x1f1)]??MESSAGES['metadataFailed']);}_0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.[_0x440eec(0x215)]);if(_0x5d79d8)return queryFailure(_0x32c377,_0x5d79d8[_0x440eec(0x20d)],_0x5d79d8['message']);let _0x3c33f0;try{_0x3c33f0=_0x5763f7[_0x440eec(0x1f0)]['map'](_0x1dbe94=>({'name':_0x1dbe94[_0x440eec(0x1f5)],'alias':_0x1dbe94['alias']??'','type':_0x1dbe94[_0x440eec(0x1e3)],'timeZone':_0x5763f7[_0x440eec(0x225)][_0x440eec(0x1fb)](_0x1dbe94)??null}));}catch{return queryFailure(_0x32c377,'query-failed',MESSAGES['metadataFailed']);}const _0x27cc75=new Set(_0x3c33f0['map'](({name:_0x4199f3})=>_0x4199f3));if(requestedFieldNames(_0x3765b8['data'])[_0x440eec(0x206)](_0x498aad=>!_0x27cc75[_0x440eec(0x21e)](_0x498aad)))return queryFailure(_0x32c377,_0x440eec(0x1f2),MESSAGES[_0x440eec(0x1f4)]);let _0x3ff698;try{_0x3ff698=compileFeatureQueryProperties(_0x3765b8[_0x440eec(0x1ed)],_0x3c33f0);}catch{return queryFailure(_0x32c377,_0x440eec(0x1ff),MESSAGES[_0x440eec(0x20e)]);}_0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.['signal']);if(_0x5d79d8)return queryFailure(_0x32c377,_0x5d79d8['code'],_0x5d79d8[_0x440eec(0x1f1)]);if(_0x3765b8['data']['mode']===_0x440eec(0x21c)){let _0xea2c97;try{const _0x2d8649={..._0x3ff698};Reflect[_0x440eec(0x202)](_0x2d8649,'num'),_0xea2c97=await _0x5763f7['queryFeatureCount'](_0x2d8649,{'signal':_0x24939e?.['signal']});}catch{return _0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.[_0x440eec(0x215)]),queryFailure(_0x32c377,_0x5d79d8?.['code']??_0x440eec(0x1e8),_0x5d79d8?.[_0x440eec(0x1f1)]??MESSAGES[_0x440eec(0x219)]);}_0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.[_0x440eec(0x215)]);if(_0x5d79d8)return queryFailure(_0x32c377,_0x5d79d8['code'],_0x5d79d8['message']);if(!Number[_0x440eec(0x21b)](_0xea2c97)||_0xea2c97<0x0)return queryFailure(_0x32c377,'query-failed',MESSAGES['queryFailed']);return{'ok':!![],'operation':'queryFeatureLayer','layer':{'id':_0x5763f7['id'],'title':_0x5763f7['title']??''},'mode':'count','columns':[],'rows':[],'count':_0xea2c97,'truncated':![]};}let _0x46d8f6;try{_0x46d8f6=await _0x5763f7[_0x440eec(0x223)](_0x3ff698,{'signal':_0x24939e?.[_0x440eec(0x215)]});}catch{return _0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.[_0x440eec(0x215)]),queryFailure(_0x32c377,_0x5d79d8?.[_0x440eec(0x20d)]??_0x440eec(0x1e8),_0x5d79d8?.[_0x440eec(0x1f1)]??MESSAGES['queryFailed']);}_0x5d79d8=_0x25e669(_0xcd88e8,_0x24939e?.['signal']);if(_0x5d79d8)return queryFailure(_0x32c377,_0x5d79d8[_0x440eec(0x20d)],_0x5d79d8['message']);try{const _0x3d4767=resultColumns(_0x3765b8['data'],_0x3c33f0),{rows:_0x36ab0b,extra:_0x324cd6}=projectRows(_0x46d8f6[_0x440eec(0x1f9)],_0x3d4767,_0x3765b8[_0x440eec(0x1ed)]['resultLimit']);return{'ok':!![],'operation':'queryFeatureLayer','layer':{'id':_0x5763f7['id'],'title':_0x5763f7[_0x440eec(0x21d)]??''},'mode':_0x3765b8[_0x440eec(0x1ed)]['mode'],'columns':_0x3d4767,'rows':_0x36ab0b,'count':null,'truncated':_0x46d8f6['exceededTransferLimit']===!![]||_0x324cd6};}catch{return queryFailure(_0x32c377,'query-failed',MESSAGES['queryFailed']);}};return{'queryFeatureLayer':_0x4d372f,'dispose'(){if(_0x2d35d0)return;_0x2d35d0=!![],_0x5eff00+=0x1;}};}export{createFeatureQueryRuntime};
@@ -1 +1 @@
1
- (function(_0x1b1a64,_0x52186a){const _0x2fe9e5=_0x1bea,_0x5a4646=_0x1b1a64();while(!![]){try{const _0x23c966=parseInt(_0x2fe9e5(0x7b))/0x1*(-parseInt(_0x2fe9e5(0x7d))/0x2)+-parseInt(_0x2fe9e5(0x7c))/0x3*(parseInt(_0x2fe9e5(0x7a))/0x4)+parseInt(_0x2fe9e5(0x7f))/0x5*(parseInt(_0x2fe9e5(0x80))/0x6)+parseInt(_0x2fe9e5(0x79))/0x7*(parseInt(_0x2fe9e5(0x7e))/0x8)+-parseInt(_0x2fe9e5(0x77))/0x9*(-parseInt(_0x2fe9e5(0x84))/0xa)+-parseInt(_0x2fe9e5(0x82))/0xb+-parseInt(_0x2fe9e5(0x85))/0xc*(-parseInt(_0x2fe9e5(0x83))/0xd);if(_0x23c966===_0x52186a)break;else _0x5a4646['push'](_0x5a4646['shift']());}catch(_0x16da15){_0x5a4646['push'](_0x5a4646['shift']());}}}(_0x5133,0x4ede7));function _0x1bea(_0x5abfae,_0xe6be9b){_0x5abfae=_0x5abfae-0x77;const _0x5133e6=_0x5133();let _0x1bead3=_0x5133e6[_0x5abfae];return _0x1bead3;}function _0x5133(){const _0x37d290=['292742bZusAY','5727hvUPBk','2rPTFDQ','3965360dptdAm','24845lLuhsR','6hIiehj','useState','5064070yEGiTg','1456XbwUAn','20wMHOzC','32256lxfgGs','dispose','2283129EhOHZd','useEffect','7HfSQUv','488xcMHEn'];_0x5133=function(){return _0x37d290;};return _0x5133();}import _0x5ef363 from'react';import{createArcGISMapController}from'./createArcGISMapController.js';const loadingState={'status':'loading','controller':null,'error':null};function normalizeError(_0x30d92c){return _0x30d92c instanceof Error?_0x30d92c:new Error(String(_0x30d92c));}function useArcGISMapControllerWithFactory(_0x3aea55,_0x537f0d){const _0x4ac946=_0x1bea,[_0x7d1327,_0x3d94a9]=_0x5ef363[_0x4ac946(0x81)](loadingState);return _0x5ef363[_0x4ac946(0x78)](()=>{const _0x2fa8dd=_0x3aea55['current'];let _0x24398f=![],_0x40314d=null;return _0x3d94a9(loadingState),_0x2fa8dd&&void _0x537f0d(_0x2fa8dd)['then'](_0x435f0d=>{const _0x409232=_0x1bea;if(_0x24398f){_0x435f0d[_0x409232(0x86)]();return;}_0x40314d=_0x435f0d,_0x3d94a9({'status':'ready','controller':_0x435f0d['controller'],'error':null});},_0x47a6b4=>{!_0x24398f&&_0x3d94a9({'status':'error','controller':null,'error':normalizeError(_0x47a6b4)});}),()=>{const _0x4a2a41=_0x1bea;_0x24398f=!![],_0x40314d?.[_0x4a2a41(0x86)]();};},[_0x537f0d,_0x3aea55]),_0x7d1327;}function useArcGISMapController(_0x4015a8){return useArcGISMapControllerWithFactory(_0x4015a8,createArcGISMapController);}export{useArcGISMapController,useArcGISMapControllerWithFactory};
1
+ const _0x5ecb51=_0x2e09;(function(_0x3428cc,_0x1c04d4){const _0x2c5692=_0x2e09,_0x17a17e=_0x3428cc();while(!![]){try{const _0x568e5a=parseInt(_0x2c5692(0x1cf))/0x1*(parseInt(_0x2c5692(0x1ce))/0x2)+-parseInt(_0x2c5692(0x1c0))/0x3*(parseInt(_0x2c5692(0x1c6))/0x4)+parseInt(_0x2c5692(0x1c4))/0x5+parseInt(_0x2c5692(0x1c7))/0x6+parseInt(_0x2c5692(0x1c5))/0x7*(parseInt(_0x2c5692(0x1c8))/0x8)+parseInt(_0x2c5692(0x1cd))/0x9*(-parseInt(_0x2c5692(0x1cc))/0xa)+-parseInt(_0x2c5692(0x1bf))/0xb*(parseInt(_0x2c5692(0x1cb))/0xc);if(_0x568e5a===_0x1c04d4)break;else _0x17a17e['push'](_0x17a17e['shift']());}catch(_0x161678){_0x17a17e['push'](_0x17a17e['shift']());}}}(_0x3002,0x55edd));import _0x4e10e9 from'react';import{createArcGISMapController}from'./createArcGISMapController.js';const loadingState={'status':_0x5ecb51(0x1c1),'controller':null,'error':null};function normalizeError(_0x508891){return _0x508891 instanceof Error?_0x508891:new Error(String(_0x508891));}function useArcGISMapControllerWithFactory(_0x161608,_0x1ed299){const _0x15dae0=_0x5ecb51,[_0x3a0c40,_0x14bf7c]=_0x4e10e9['useState'](loadingState);return _0x4e10e9[_0x15dae0(0x1ca)](()=>{const _0x402a21=_0x15dae0,_0x591ee9=_0x161608[_0x402a21(0x1c2)];let _0x6e923c=![],_0x3d2257=null;return _0x14bf7c(loadingState),_0x591ee9&&void _0x1ed299(_0x591ee9)['then'](_0x44e61f=>{const _0x455cb5=_0x402a21;if(_0x6e923c){_0x44e61f[_0x455cb5(0x1c9)]();return;}_0x3d2257=_0x44e61f,_0x14bf7c({'status':_0x455cb5(0x1d0),'controller':_0x44e61f['controller'],'error':null});},_0x2c2190=>{const _0x5c362f=_0x402a21;!_0x6e923c&&_0x14bf7c({'status':_0x5c362f(0x1c3),'controller':null,'error':normalizeError(_0x2c2190)});}),()=>{const _0x520825=_0x402a21;_0x6e923c=!![],_0x3d2257?.[_0x520825(0x1c9)]();};},[_0x1ed299,_0x161608]),_0x3a0c40;}function useArcGISMapController(_0xa87ae4){return useArcGISMapControllerWithFactory(_0xa87ae4,createArcGISMapController);}function _0x3002(){const _0x7bd321=['6DjhNNH','loading','current','error','2778170ulRhNd','49EtZdWW','590608SBcJaO','993528yDwSvA','635224qVxDzu','dispose','useEffect','12sGpusT','11070PnHkVs','3609IpMQwf','2WOiWfD','143591hHzkBt','ready','3624038YjgxdV'];_0x3002=function(){return _0x7bd321;};return _0x3002();}function _0x2e09(_0x29a277,_0x4702ee){_0x29a277=_0x29a277-0x1bf;const _0x300233=_0x3002();let _0x2e09a9=_0x300233[_0x29a277];return _0x2e09a9;}export{useArcGISMapController,useArcGISMapControllerWithFactory};
@@ -0,0 +1,38 @@
1
+ import type { NormalizedArcGISMapGraphic } from "./api.js";
2
+ export declare const ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION = 1.2;
3
+ export declare const ARCGIS_GRAPHICS_FIT_MAX_ZOOM = 14;
4
+ type WGS84SpatialReference = {
5
+ readonly wkid: 4326;
6
+ };
7
+ export type ArcGISGraphicProperties = {
8
+ geometry: Record<string, unknown>;
9
+ symbol: Record<string, unknown>;
10
+ };
11
+ export type ArcGISGraphicsFitTarget = {
12
+ kind: "point";
13
+ target: {
14
+ type: "point";
15
+ longitude: number;
16
+ latitude: number;
17
+ spatialReference: WGS84SpatialReference;
18
+ };
19
+ zoom: typeof ARCGIS_GRAPHICS_FIT_MAX_ZOOM;
20
+ } | {
21
+ kind: "extent";
22
+ target: {
23
+ type: "extent";
24
+ xmin: number;
25
+ ymin: number;
26
+ xmax: number;
27
+ ymax: number;
28
+ spatialReference: WGS84SpatialReference;
29
+ };
30
+ center: {
31
+ longitude: number;
32
+ latitude: number;
33
+ };
34
+ };
35
+ export declare function createArcGISGraphicProperties(graphic: NormalizedArcGISMapGraphic): ArcGISGraphicProperties;
36
+ export declare function getArcGISMapGraphicsKey(graphics: readonly NormalizedArcGISMapGraphic[]): string;
37
+ export declare function getArcGISGraphicsFitTarget(graphics: readonly NormalizedArcGISMapGraphic[]): ArcGISGraphicsFitTarget | null;
38
+ export {};
@@ -0,0 +1 @@
1
+ const _0x59a253=_0xf01a;(function(_0x21dcb6,_0x21d69c){const _0x1f03d7=_0xf01a,_0xdef74c=_0x21dcb6();while(!![]){try{const _0x1692be=parseInt(_0x1f03d7(0x98))/0x1*(-parseInt(_0x1f03d7(0x9e))/0x2)+-parseInt(_0x1f03d7(0x9d))/0x3*(-parseInt(_0x1f03d7(0x94))/0x4)+-parseInt(_0x1f03d7(0x87))/0x5+parseInt(_0x1f03d7(0x86))/0x6*(parseInt(_0x1f03d7(0x8b))/0x7)+parseInt(_0x1f03d7(0x85))/0x8+parseInt(_0x1f03d7(0x96))/0x9+-parseInt(_0x1f03d7(0x9c))/0xa;if(_0x1692be===_0x21d69c)break;else _0xdef74c['push'](_0xdef74c['shift']());}catch(_0x52db72){_0xdef74c['push'](_0xdef74c['shift']());}}}(_0x2e07,0xa62ad));const ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION=1.2,ARCGIS_GRAPHICS_FIT_MAX_ZOOM=0xe;function createWGS84(){return{'wkid':0x10e6};}const STYLE_COLORS={'primary':{'hex':'#2563eb','rgb':[0x25,0x63,0xeb]},'success':{'hex':_0x59a253(0x9a),'rgb':[0x16,0xa3,0x4a]},'warning':{'hex':_0x59a253(0x88),'rgb':[0xd9,0x77,0x6]},'danger':{'hex':'#dc2626','rgb':[0xdc,0x26,0x26]},'neutral':{'hex':_0x59a253(0x84),'rgb':[0x64,0x74,0x8b]}};function _0x2e07(){const _0x4c3e9b=['latitude','1422772nIxrAr','max','7188543KYfiLa','coordinates','42XDstSy','rgb','#16a34a','length','20345760cHeqHD','9eeYQDk','6176tQMjxO','stringify','polyline','#64748b','10377216rLEyud','6cEUzpa','3213530MIhIfx','#d97706','geometry','hex','2272487ERNcwE','point','map','simple-fill','type','longitude','style','flatMap'];_0x2e07=function(){return _0x4c3e9b;};return _0x2e07();}function toPair(_0x4ddba6){const _0x444305=_0x59a253;return[_0x4ddba6[_0x444305(0x90)],_0x4ddba6['latitude']];}function closeRing(_0x206d86){const _0x55ca0e=_0x206d86['map'](toPair),_0x59f853=_0x55ca0e[0x0],_0x33fa1f=_0x55ca0e[_0x55ca0e['length']-0x1];return _0x59f853[0x0]===_0x33fa1f[0x0]&&_0x59f853[0x1]===_0x33fa1f[0x1]?_0x55ca0e:[..._0x55ca0e,[..._0x59f853]];}function createSymbol(_0x39f681,_0x52670d){const _0x396301=_0x59a253,_0x5945ce=STYLE_COLORS[_0x52670d];if(_0x39f681===_0x396301(0x8c))return{'type':'simple-marker','style':'circle','color':_0x5945ce[_0x396301(0x8a)],'size':0xa,'outline':{'color':'#ffffff','width':1.5}};if(_0x39f681==='polyline')return{'type':'simple-line','color':_0x5945ce[_0x396301(0x8a)],'width':0x3};return{'type':_0x396301(0x8e),'color':[..._0x5945ce[_0x396301(0x99)],0.2],'outline':{'color':_0x5945ce[_0x396301(0x8a)],'width':0x2}};}function createArcGISGraphicProperties(_0x3dcc1b){const _0x212e99=_0x59a253,{geometry:_0x20aef4}=_0x3dcc1b,_0x4c42b3=_0x20aef4['type']===_0x212e99(0x8c)?{'type':_0x212e99(0x8c),'longitude':_0x20aef4['coordinates'][_0x212e99(0x90)],'latitude':_0x20aef4[_0x212e99(0x97)][_0x212e99(0x93)],'spatialReference':createWGS84()}:_0x20aef4[_0x212e99(0x8f)]===_0x212e99(0x83)?{'type':_0x212e99(0x83),'paths':[_0x20aef4[_0x212e99(0x97)][_0x212e99(0x8d)](toPair)],'spatialReference':createWGS84()}:{'type':'polygon','rings':[closeRing(_0x20aef4[_0x212e99(0x97)])],'spatialReference':createWGS84()};return{'geometry':_0x4c42b3,'symbol':createSymbol(_0x20aef4['type'],_0x3dcc1b[_0x212e99(0x91)])};}function getArcGISMapGraphicsKey(_0x247e55){const _0x2f5cac=_0x59a253;return JSON[_0x2f5cac(0x9f)](_0x247e55);}function getPositions(_0x37149c){const _0x40e03b=_0x59a253;return _0x37149c[_0x40e03b(0x89)][_0x40e03b(0x8f)]===_0x40e03b(0x8c)?[_0x37149c[_0x40e03b(0x89)][_0x40e03b(0x97)]]:_0x37149c['geometry'][_0x40e03b(0x97)];}function _0xf01a(_0x52e638,_0x5dabe3){_0x52e638=_0x52e638-0x83;const _0x2e0738=_0x2e07();let _0xf01af7=_0x2e0738[_0x52e638];return _0xf01af7;}function getArcGISGraphicsFitTarget(_0x35c356){const _0x4649cd=_0x59a253,_0x339416=_0x35c356[_0x4649cd(0x92)](_0x528345=>[...getPositions(_0x528345)]);if(_0x339416[_0x4649cd(0x9b)]===0x0)return null;const _0x1edc76=_0x339416[_0x4649cd(0x8d)](({longitude:_0x117076})=>_0x117076),_0x3c5d7e=_0x339416['map'](({latitude:_0x2bebc5})=>_0x2bebc5),_0xc6c88f=Math['min'](..._0x1edc76),_0x1e58d6=Math[_0x4649cd(0x95)](..._0x1edc76),_0x427f55=Math['min'](..._0x3c5d7e),_0x25b145=Math[_0x4649cd(0x95)](..._0x3c5d7e);if(_0xc6c88f===_0x1e58d6&&_0x427f55===_0x25b145)return{'kind':'point','target':{'type':_0x4649cd(0x8c),'longitude':_0xc6c88f,'latitude':_0x427f55,'spatialReference':createWGS84()},'zoom':ARCGIS_GRAPHICS_FIT_MAX_ZOOM};const _0x189f4c={'longitude':(_0xc6c88f+_0x1e58d6)/0x2,'latitude':(_0x427f55+_0x25b145)/0x2},_0x32dd5f=(_0x1e58d6-_0xc6c88f)*ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION/0x2,_0x23e0fa=(_0x25b145-_0x427f55)*ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION/0x2;return{'kind':'extent','target':{'type':'extent','xmin':_0x189f4c['longitude']-_0x32dd5f,'ymin':_0x189f4c['latitude']-_0x23e0fa,'xmax':_0x189f4c[_0x4649cd(0x90)]+_0x32dd5f,'ymax':_0x189f4c[_0x4649cd(0x93)]+_0x23e0fa,'spatialReference':createWGS84()},'center':_0x189f4c};}export{ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION,ARCGIS_GRAPHICS_FIT_MAX_ZOOM,createArcGISGraphicProperties,getArcGISGraphicsFitTarget,getArcGISMapGraphicsKey};
package/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  export * from "./api.js";
2
2
  export { ArcGISMapView, ArcGISMapViewContent } from "./ArcGISMapView.js";
3
3
  export * from "./catalog.js";
4
+ export { ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION, ARCGIS_GRAPHICS_FIT_MAX_ZOOM } from "./graphics.js";
4
5
  export * from "./controller/api.js";
6
+ export * from "./controller/featureFilter.js";
7
+ export * from "./controller/featureQuery.js";
5
8
  export { createArcGISMapController, type ArcGISMapControllerHandle } from "./controller/createArcGISMapController.js";
6
9
  export { useArcGISMapController, type ArcGISMapControllerStatus, type UseArcGISMapControllerResult } from "./controller/useArcGISMapController.js";
7
10
  export * from "./prompt.js";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5534(_0x2a4605,_0x4a249c){_0x2a4605=_0x2a4605-0x7f;var _0x2fe793=_0x2fe7();var _0x55343f=_0x2fe793[_0x2a4605];return _0x55343f;}(function(_0x15c636,_0x52f9ea){var _0x21610d=_0x5534,_0x3392a5=_0x15c636();while(!![]){try{var _0x6b48cf=-parseInt(_0x21610d(0x85))/0x1+parseInt(_0x21610d(0x7f))/0x2+parseInt(_0x21610d(0x80))/0x3+parseInt(_0x21610d(0x82))/0x4*(-parseInt(_0x21610d(0x88))/0x5)+parseInt(_0x21610d(0x87))/0x6*(parseInt(_0x21610d(0x81))/0x7)+-parseInt(_0x21610d(0x84))/0x8*(parseInt(_0x21610d(0x86))/0x9)+parseInt(_0x21610d(0x83))/0xa;if(_0x6b48cf===_0x52f9ea)break;else _0x3392a5['push'](_0x3392a5['shift']());}catch(_0x3f3929){_0x3392a5['push'](_0x3392a5['shift']());}}}(_0x2fe7,0x1f333));import{ArcGISBasemaps,ArcGISMapViewApi,ArcGISMapViewPropsSchema,defaultArcGISBasemap,defaultArcGISMapControls,normalizeArcGISMapViewProps}from'./api.js';import{ArcGISMapView,ArcGISMapViewContent}from'./ArcGISMapView.js';import{ARCGIS_CATALOG_ID,arcgisComponentApis,arcgisComponents,arcgisPromptDescriptor,arcgisReactCatalog,arcgisRuntimeCatalog}from'./catalog.js';import{ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapSnapshotSchema}from'./controller/api.js';import{createArcGISMapController}from'./controller/createArcGISMapController.js';function _0x2fe7(){var _0x9fdce4=['63077VxMmvn','1688NMKUqk','2052740DQhkUn','117248KYuoMJ','146913LCcPyB','36nHCVYf','30DGIyOt','2330LCxmtN','481928UDBEXl','116073NgeljC'];_0x2fe7=function(){return _0x9fdce4;};return _0x2fe7();}import{useArcGISMapController}from'./controller/useArcGISMapController.js';import{arcGISMapViewDescription,arcgisStyleGuide}from'./prompt.js';export{ARCGIS_CATALOG_ID,ArcGISBasemaps,ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapSnapshotSchema,ArcGISMapView,ArcGISMapViewApi,ArcGISMapViewContent,ArcGISMapViewPropsSchema,arcGISMapViewDescription,arcgisComponentApis,arcgisComponents,arcgisPromptDescriptor,arcgisReactCatalog,arcgisRuntimeCatalog,arcgisStyleGuide,createArcGISMapController,defaultArcGISBasemap,defaultArcGISMapControls,normalizeArcGISMapViewProps,useArcGISMapController};
1
+ (function(_0x46bb09,_0x45169b){var _0x2099c4=_0x305b,_0x580d45=_0x46bb09();while(!![]){try{var _0x1c2274=-parseInt(_0x2099c4(0xb0))/0x1*(-parseInt(_0x2099c4(0xb2))/0x2)+parseInt(_0x2099c4(0xaf))/0x3+-parseInt(_0x2099c4(0xae))/0x4*(parseInt(_0x2099c4(0xb6))/0x5)+parseInt(_0x2099c4(0xb1))/0x6+-parseInt(_0x2099c4(0xb5))/0x7*(-parseInt(_0x2099c4(0xad))/0x8)+parseInt(_0x2099c4(0xac))/0x9+parseInt(_0x2099c4(0xb4))/0xa*(-parseInt(_0x2099c4(0xb3))/0xb);if(_0x1c2274===_0x45169b)break;else _0x580d45['push'](_0x580d45['shift']());}catch(_0x38411a){_0x580d45['push'](_0x580d45['shift']());}}}(_0x30ca,0xd19b0));import{ArcGISBasemaps,ArcGISMapGraphicStyles,ArcGISMapViewApi,ArcGISMapViewPropsSchema,defaultArcGISBasemap,defaultArcGISMapControls,normalizeArcGISMapViewProps}from'./api.js';function _0x30ca(){var _0x4d1975=['30rScmYJ','12173679kIKRET','8FWeiPU','999140LECiWk','2308248BCmBGy','801779pPXheH','3376200NMestT','2FQCAfS','9453026Fxysiq','20lgGPxr','4126220ngqISK'];_0x30ca=function(){return _0x4d1975;};return _0x30ca();}import{ArcGISMapView,ArcGISMapViewContent}from'./ArcGISMapView.js';function _0x305b(_0xced8e8,_0x4e18fe){_0xced8e8=_0xced8e8-0xac;var _0x30cafb=_0x30ca();var _0x305b45=_0x30cafb[_0xced8e8];return _0x305b45;}import{ARCGIS_CATALOG_ID,arcgisComponentApis,arcgisComponents,arcgisPromptDescriptor,arcgisReactCatalog,arcgisRuntimeCatalog}from'./catalog.js';import{ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION,ARCGIS_GRAPHICS_FIT_MAX_ZOOM}from'./graphics.js';import{ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapOperationOriginSchema,ArcGISMapSnapshotNotificationSchema,ArcGISMapSnapshotSchema}from'./controller/api.js';import{ArcGISClearFeatureFilterRequestSchema,ArcGISClearFeatureFilterResultSchema,ArcGISFeatureFilterErrorCodes,ArcGISFeatureFilterOperatorSchema,ArcGISFeatureFilterOperators,ArcGISFeatureFilterRequestSchema,ArcGISFeatureLayerDescriptionResultSchema,ArcGISFeaturePredicateSchema,ArcGISSetFeatureFilterResultSchema,ArcGISValidateFeatureFilterResultSchema,isArcGISFeatureFilterFieldTypeSupported,isFeaturePredicateValueCountValid}from'./controller/featureFilter.js';import{ArcGISFeatureQueryErrorCodes,ArcGISFeatureQueryRequestSchema,ArcGISFeatureQueryResultSchema,ArcGISFeatureStatisticTypes}from'./controller/featureQuery.js';import{createArcGISMapController}from'./controller/createArcGISMapController.js';import{useArcGISMapController}from'./controller/useArcGISMapController.js';import{arcGISMapViewDescription,arcgisStyleGuide}from'./prompt.js';export{ARCGIS_CATALOG_ID,ARCGIS_GRAPHICS_FIT_EXTENT_EXPANSION,ARCGIS_GRAPHICS_FIT_MAX_ZOOM,ArcGISBasemaps,ArcGISClearFeatureFilterRequestSchema,ArcGISClearFeatureFilterResultSchema,ArcGISFeatureFilterErrorCodes,ArcGISFeatureFilterOperatorSchema,ArcGISFeatureFilterOperators,ArcGISFeatureFilterRequestSchema,ArcGISFeatureLayerDescriptionResultSchema,ArcGISFeaturePredicateSchema,ArcGISFeatureQueryErrorCodes,ArcGISFeatureQueryRequestSchema,ArcGISFeatureQueryResultSchema,ArcGISFeatureStatisticTypes,ArcGISMapCommandErrorCodes,ArcGISMapCommandResultSchema,ArcGISMapCommandSchema,ArcGISMapGraphicStyles,ArcGISMapOperationOriginSchema,ArcGISMapSnapshotNotificationSchema,ArcGISMapSnapshotSchema,ArcGISMapView,ArcGISMapViewApi,ArcGISMapViewContent,ArcGISMapViewPropsSchema,ArcGISSetFeatureFilterResultSchema,ArcGISValidateFeatureFilterResultSchema,arcGISMapViewDescription,arcgisComponentApis,arcgisComponents,arcgisPromptDescriptor,arcgisReactCatalog,arcgisRuntimeCatalog,arcgisStyleGuide,createArcGISMapController,defaultArcGISBasemap,defaultArcGISMapControls,isArcGISFeatureFilterFieldTypeSupported,isFeaturePredicateValueCountValid,normalizeArcGISMapViewProps,useArcGISMapController};
package/dist/prompt.js CHANGED
@@ -1 +1 @@
1
- function _0xb92d(){const _0xa587f6=['4384tsnWAp','10682664vuwkCS','258ihmXar','Use\x20`source.type:\x20\x22webmap\x22`\x20with\x20`itemId`\x20when\x20the\x20map\x20should\x20show\x20saved\x20ArcGIS\x20layers,\x20symbology,\x20popups,\x20legend\x20metadata,\x20and\x20initial\x20viewpoint.','ArcGIS\x20map\x20display\x20component\x20for\x20embedding\x20a\x20compact\x20map\x20in\x20a\x20chat\x20message.','280AeIYTb','2408202aOiijU','21968WRVAzq','186267YeINoz','Prefer\x20basemap\x20source\x20only\x20for\x20simple\x20location\x20context.','5505NpmQTD','75798MhTjRs','join','Optional\x20`controls`\x20can\x20enable\x20`zoom`,\x20`legend`,\x20`layerList`,\x20and\x20`search`;\x20default\x20behavior\x20is\x20zoom\x20only.','Use\x20ArcGISMapView\x20only\x20when\x20a\x20map\x20is\x20useful\x20to\x20the\x20answer.','Use\x20`basemap:\x20\x22portal/default\x22`\x20when\x20the\x20map\x20should\x20use\x20the\x20application-global\x20portal\x27s\x20configured\x20default\x20basemap.','43124560LVoKrC'];_0xb92d=function(){return _0xa587f6;};return _0xb92d();}const _0x3dec1a=_0x5c7e;(function(_0x4815ee,_0xeeb3a0){const _0x54e793=_0x5c7e,_0xd616d6=_0x4815ee();while(!![]){try{const _0x465db1=parseInt(_0x54e793(0x7c))/0x1+parseInt(_0x54e793(0x8c))/0x2*(-parseInt(_0x54e793(0x87))/0x3)+parseInt(_0x54e793(0x85))/0x4*(-parseInt(_0x54e793(0x7e))/0x5)+-parseInt(_0x54e793(0x7f))/0x6*(parseInt(_0x54e793(0x8a))/0x7)+-parseInt(_0x54e793(0x86))/0x8+parseInt(_0x54e793(0x8b))/0x9+parseInt(_0x54e793(0x84))/0xa;if(_0x465db1===_0xeeb3a0)break;else _0xd616d6['push'](_0xd616d6['shift']());}catch(_0x470750){_0xd616d6['push'](_0xd616d6['shift']());}}}(_0xb92d,0xbd0b8));function _0x5c7e(_0xe7f8dd,_0x124440){_0xe7f8dd=_0xe7f8dd-0x7c;const _0xb92d69=_0xb92d();let _0x5c7ef6=_0xb92d69[_0xe7f8dd];return _0x5c7ef6;}const arcGISMapViewDescription=[_0x3dec1a(0x89),_0x3dec1a(0x88),'Use\x20`source.type:\x20\x22basemap\x22`\x20with\x20`center.latitude`,\x20`center.longitude`,\x20optional\x20`zoom`,\x20and\x20optional\x20enum\x20`basemap`\x20for\x20lightweight\x20location\x20context.',_0x3dec1a(0x83),'Do\x20not\x20provide\x20layers,\x20graphics,\x20markers,\x20symbols,\x20renderers,\x20queries,\x20filters,\x20selections,\x20or\x20workspace\x20commands.',_0x3dec1a(0x81)]['join']('\x20'),arcgisStyleGuide=[_0x3dec1a(0x82),'Prefer\x20webmap\x20source\x20for\x20real\x20GIS\x20content.',_0x3dec1a(0x7d),'Keep\x20title\x20and\x20description\x20short\x20enough\x20for\x20a\x20chat\x20message.'][_0x3dec1a(0x80)]('\x0a');export{arcGISMapViewDescription,arcgisStyleGuide};
1
+ const _0x37a2e7=_0x56ad;(function(_0x2c5f21,_0x4c3244){const _0x2e27fc=_0x56ad,_0x537863=_0x2c5f21();while(!![]){try{const _0x2d6072=-parseInt(_0x2e27fc(0x1b0))/0x1+parseInt(_0x2e27fc(0x1b9))/0x2*(-parseInt(_0x2e27fc(0x1bb))/0x3)+-parseInt(_0x2e27fc(0x1b5))/0x4+parseInt(_0x2e27fc(0x1b2))/0x5*(parseInt(_0x2e27fc(0x1be))/0x6)+parseInt(_0x2e27fc(0x1af))/0x7+-parseInt(_0x2e27fc(0x1c1))/0x8+parseInt(_0x2e27fc(0x1b1))/0x9;if(_0x2d6072===_0x4c3244)break;else _0x537863['push'](_0x537863['shift']());}catch(_0x4c526a){_0x537863['push'](_0x537863['shift']());}}}(_0x5998,0xe52b8));const arcGISMapViewDescription=[_0x37a2e7(0x1b6),_0x37a2e7(0x1c0),_0x37a2e7(0x1ba),'Omit\x20`basemap`\x20or\x20use\x20`basemap:\x20\x22portal/default\x22`\x20for\x20the\x20Host\x20app\x27s\x20configured\x20default\x20basemap.',_0x37a2e7(0x1b8),_0x37a2e7(0x1bf),_0x37a2e7(0x1bd),'Do\x20not\x20provide\x20layers,\x20raw\x20ArcGIS\x20Graphic\x20or\x20Symbol\x20objects,\x20attributes,\x20popups,\x20labels,\x20queries,\x20filters,\x20selections,\x20editing,\x20Actions,\x20or\x20workspace\x20commands.','Optional\x20`controls`\x20can\x20enable\x20`zoom`,\x20`legend`,\x20`layerList`,\x20and\x20`search`;\x20default\x20behavior\x20is\x20zoom\x20only.'][_0x37a2e7(0x1b7)]('\x20'),arcgisStyleGuide=[_0x37a2e7(0x1bc),'Prefer\x20webmap\x20source\x20for\x20real\x20GIS\x20content.',_0x37a2e7(0x1b4),_0x37a2e7(0x1b3),'Use\x20graphics\x20only\x20for\x20a\x20small\x20number\x20of\x20temporary\x20shapes\x20that\x20belong\x20to\x20this\x20reply.','Keep\x20public\x20positions\x20in\x20`{\x20longitude,\x20latitude\x20}`\x20object\x20form;\x20never\x20emit\x20coordinate\x20arrays\x20or\x20ArcGIS\x20SDK\x20objects.','Keep\x20title\x20and\x20description\x20short\x20enough\x20for\x20a\x20chat\x20message.']['join']('\x0a');function _0x5998(){const _0x24b445=['4034632IbgsEw','ArcGIS\x20map\x20display\x20component\x20for\x20embedding\x20a\x20compact\x20map\x20in\x20a\x20UI\x20reply.','join','Use\x20an\x20`arcgis/*`\x20basemap\x20style\x20only\x20when\x20the\x20Host\x20app\x20has\x20configured\x20authentication\x20for\x20the\x20production\x20ArcGIS\x20Basemap\x20Styles\x20service.','2mKApQt','Use\x20`source.type:\x20\x22basemap\x22`\x20with\x20`center:\x20{\x20latitude,\x20longitude\x20}`,\x20optional\x20`zoom`,\x20and\x20optional\x20enum\x20`basemap`\x20for\x20lightweight\x20location\x20context.','2616189rbgAjA','Use\x20ArcGISMapView\x20only\x20when\x20a\x20map\x20is\x20useful\x20to\x20the\x20answer.','Graphic\x20styles\x20are\x20`primary`,\x20`success`,\x20`warning`,\x20`danger`,\x20or\x20`neutral`;\x20omitted\x20style\x20defaults\x20to\x20`primary`,\x20and\x20non-empty\x20graphics\x20fit\x20automatically\x20with\x20zoom\x20capped\x20at\x2014.','150dhFobM','Use\x20optional\x20`graphics`\x20for\x20up\x20to\x2050\x20temporary\x20point,\x20single-path\x20polyline,\x20or\x20single-ring\x20polygon\x20shapes;\x20every\x20position\x20is\x20`{\x20longitude,\x20latitude\x20}`\x20in\x20WGS84.','Use\x20`source.type:\x20\x22webmap\x22`\x20with\x20`itemId`\x20for\x20saved\x20ArcGIS\x20layers,\x20symbology,\x20popups,\x20legend\x20metadata,\x20and\x20initial\x20viewpoint.','898272zTAzGy','7824159vKeYrm','886864rzZnbt','13913433OmsitH','230975UAGHrl','Prefer\x20`portal/default`\x20for\x20basemap\x20source\x20unless\x20the\x20Host\x20explicitly\x20supports\x20production\x20ArcGIS\x20Basemap\x20Styles.','Prefer\x20basemap\x20source\x20only\x20for\x20simple\x20location\x20context.'];_0x5998=function(){return _0x24b445;};return _0x5998();}function _0x56ad(_0xbe947f,_0x78bcf5){_0xbe947f=_0xbe947f-0x1af;const _0x59989f=_0x5998();let _0x56ad6f=_0x59989f[_0xbe947f];return _0x56ad6f;}export{arcGISMapViewDescription,arcgisStyleGuide};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentic-ui-experience/ui-arcgis",
3
- "version": "0.0.1-beta.3",
3
+ "version": "0.0.1-beta.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -29,9 +29,9 @@
29
29
  "@arcgis/core": "^5.1.9",
30
30
  "@arcgis/map-components": "^5.1.9",
31
31
  "zod": "^3.25.76",
32
- "@agentic-ui-experience/ui-core": "0.0.1-beta.3",
33
- "@agentic-ui-experience/ui-react": "0.0.1-beta.3",
34
- "@agentic-ui-experience/ui-runtime": "0.0.1-beta.3"
32
+ "@agentic-ui-experience/ui-core": "0.0.1-beta.5",
33
+ "@agentic-ui-experience/ui-react": "0.0.1-beta.5",
34
+ "@agentic-ui-experience/ui-runtime": "0.0.1-beta.5"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "react": "^18.0.0 || ^19.0.0",