@arcgis/languages-sdk-spec 4.34.0-next.128 → 4.34.0-next.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/profile-types/arcade-profiles-types.d.ts +1 -1
- package/dist/profile-types/base.d.ts +1 -1
- package/dist/schema-types/arcade.d.ts +1 -1
- package/dist/schemas/api-item.schema.json +1 -0
- package/dist/schemas/arcade-api-item.schema.json +1 -0
- package/dist/schemas/arcade-profiles.schema.json +3 -0
- package/dist/schemas/profiles.schema.json +3 -0
- package/dist/schemas/sql-profiles.schema.json +1 -0
- package/dist/scripting/index.js +7 -6
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { BaseSdkPredefinedProfile } from './base';
|
|
|
3
3
|
/**
|
|
4
4
|
* The list of supported profiles
|
|
5
5
|
*/
|
|
6
|
-
export type ArcadeProfileId = "aggregate-field" | "alias" | "attribute-rule-calculation" | "attribute-rule-constraint" | "attribute-rule-validation" | "dashboard-data" | "dashboard-indicator-formatting" | "dashboard-list-formatting" | "dashboard-table-formatting" | "data-pipelines" | "dictionary-renderer" | "feature-display-title" | "feature-z" | "field-calculation" | "field-mapping" | "form-calculation" | "form-constraint" | "geoanalytics" | "geotrigger-notification" | "labeling" | "layout" | "location-update-constraint" | "measure-visualization" | "minimalist" | "model-builder" | "popup-element-feature-reduction" | "popup-element-voxel" | "popup-element" | "popup-feature-reduction" | "popup-voxel" | "popup" | "quick-capture" | "tasks" | "velocity" | "visualization";
|
|
6
|
+
export type ArcadeProfileId = "aggregate-field" | "alias" | "attribute-rule-calculation" | "attribute-rule-constraint" | "attribute-rule-validation" | "dashboard-data" | "dashboard-indicator-formatting" | "dashboard-list-formatting" | "dashboard-table-formatting" | "data-pipelines" | "dictionary-renderer" | "feature-display-title" | "feature-z" | "field-calculation" | "field-mapping" | "form-calculation" | "form-constraint" | "geoanalytics" | "geotrigger-notification" | "imagery-popup-element" | "imagery-popup" | "labeling" | "layout" | "location-update-constraint" | "measure-visualization" | "minimalist" | "model-builder" | "popup-element-feature-reduction" | "popup-element-voxel" | "popup-element" | "popup-feature-reduction" | "popup-voxel" | "popup" | "quick-capture" | "tasks" | "velocity" | "visualization";
|
|
7
7
|
/**
|
|
8
8
|
* The predefined profiles for the Arcade language
|
|
9
9
|
*/
|
|
@@ -22,7 +22,7 @@ export interface BaseSdkPredefinedProfile<ProfileId extends string, Bundle exten
|
|
|
22
22
|
/**
|
|
23
23
|
* Supported profile variable types
|
|
24
24
|
*/
|
|
25
|
-
export type SdkVariableType = "array" | "boolean" | "date" | "dateOnly" | "dictionary" | "feature" | "featureSet" | "featureSetCollection" | "geometry" | "knowledgeGraph" | "number" | "text" | "time" | "voxel";
|
|
25
|
+
export type SdkVariableType = "array" | "boolean" | "date" | "dateOnly" | "dictionary" | "feature" | "featureSet" | "featureSetCollection" | "geometry" | "knowledgeGraph" | "number" | "pixel" | "text" | "time" | "voxel";
|
|
26
26
|
/**
|
|
27
27
|
* Describes variables
|
|
28
28
|
*/
|
|
@@ -7,7 +7,7 @@ export type ArcadeBundleType = "ai" | "core" | "data-access" | "database" | "geo
|
|
|
7
7
|
* The profile names this definition belongs to
|
|
8
8
|
*/
|
|
9
9
|
export type ArcadeProfileType = "Attribute Rule Calculation" | "Attribute Rules" | "Dashboard Data" | "Field Calculation" | "Form Calculation" | "GeoAnalytics" | "Popups" | "Tasks" | "Velocity";
|
|
10
|
-
export type ArcadeValueType = "Any" | "Array<Any>" | "Array<Attachment>" | "Array<Boolean>" | "Array<Date>" | "Array<DateOnly>" | "Array<Dictionary>" | "Array<Extent>" | "Array<Feature>" | "Array<Geometry>" | "Array<KnowledgeGraph>" | "Array<Multipoint>" | "Array<Number>" | "Array<Number|Text>" | "Array<Point>" | "Array<Polygon>" | "Array<Polyline>" | "Array<Text>" | "Array<Time>" | "Attachment" | "Boolean" | "Date" | "DateOnly" | "Dictionary" | "Extent" | "Feature" | "FeatureSet" | "FeatureSetCollection" | "Function" | "Geometry" | "KnowledgeGraph" | "Multipoint" | "Null" | "Number" | "Point" | "Polygon" | "Polyline" | "Portal" | "Text" | "Time" | "Voxel";
|
|
10
|
+
export type ArcadeValueType = "Any" | "Array<Any>" | "Array<Attachment>" | "Array<Boolean>" | "Array<Date>" | "Array<DateOnly>" | "Array<Dictionary>" | "Array<Extent>" | "Array<Feature>" | "Array<Geometry>" | "Array<KnowledgeGraph>" | "Array<Multipoint>" | "Array<Number>" | "Array<Number|Text>" | "Array<Point>" | "Array<Polygon>" | "Array<Polyline>" | "Array<Text>" | "Array<Time>" | "Attachment" | "Boolean" | "Date" | "DateOnly" | "Dictionary" | "Extent" | "Feature" | "FeatureSet" | "FeatureSetCollection" | "Function" | "Geometry" | "KnowledgeGraph" | "Multipoint" | "Null" | "Number" | "Pixel" | "Point" | "Polygon" | "Polyline" | "Portal" | "Text" | "Time" | "Voxel";
|
|
11
11
|
export type ArcadeSchemaItemBase = GenericSchemaItemBase<ArcadeBundleType, ArcadeProfileType>;
|
|
12
12
|
/**
|
|
13
13
|
* Definition for Arcade Api function
|
|
@@ -65,6 +65,8 @@
|
|
|
65
65
|
"form-constraint",
|
|
66
66
|
"geoanalytics",
|
|
67
67
|
"geotrigger-notification",
|
|
68
|
+
"imagery-popup-element",
|
|
69
|
+
"imagery-popup",
|
|
68
70
|
"labeling",
|
|
69
71
|
"layout",
|
|
70
72
|
"location-update-constraint",
|
|
@@ -160,6 +162,7 @@
|
|
|
160
162
|
"geometry",
|
|
161
163
|
"knowledgeGraph",
|
|
162
164
|
"number",
|
|
165
|
+
"pixel",
|
|
163
166
|
"text",
|
|
164
167
|
"time",
|
|
165
168
|
"voxel"
|
|
@@ -79,6 +79,8 @@
|
|
|
79
79
|
"form-constraint",
|
|
80
80
|
"geoanalytics",
|
|
81
81
|
"geotrigger-notification",
|
|
82
|
+
"imagery-popup-element",
|
|
83
|
+
"imagery-popup",
|
|
82
84
|
"labeling",
|
|
83
85
|
"layout",
|
|
84
86
|
"location-update-constraint",
|
|
@@ -174,6 +176,7 @@
|
|
|
174
176
|
"geometry",
|
|
175
177
|
"knowledgeGraph",
|
|
176
178
|
"number",
|
|
179
|
+
"pixel",
|
|
177
180
|
"text",
|
|
178
181
|
"time",
|
|
179
182
|
"voxel"
|
package/dist/scripting/index.js
CHANGED
|
@@ -17,7 +17,7 @@ async function P(e) {
|
|
|
17
17
|
return [];
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
const
|
|
20
|
+
const x = {
|
|
21
21
|
parameter: "Parameter",
|
|
22
22
|
parameters: "Parameters",
|
|
23
23
|
sinceversion: "Since version",
|
|
@@ -26,7 +26,7 @@ const R = {
|
|
|
26
26
|
examples: "Examples",
|
|
27
27
|
additionalResources: "Additional resources"
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function R(e) {
|
|
30
30
|
return !Array.isArray(e) && !e.isConstant;
|
|
31
31
|
}
|
|
32
32
|
function E(e) {
|
|
@@ -48,7 +48,7 @@ async function C() {
|
|
|
48
48
|
})
|
|
49
49
|
), e[r] = { definition: i, items: a };
|
|
50
50
|
})
|
|
51
|
-
), { categories: e, resources: { ...
|
|
51
|
+
), { categories: e, resources: { ...x } };
|
|
52
52
|
}
|
|
53
53
|
function L(e) {
|
|
54
54
|
return typeof e != "object" || e === null || Array.isArray(e) ? !1 : "description" in e || "examples" in e || "returnValue" in e || "parameters" in e;
|
|
@@ -67,7 +67,7 @@ async function B(e) {
|
|
|
67
67
|
const u = i.items[c];
|
|
68
68
|
if (u) {
|
|
69
69
|
if (L(u))
|
|
70
|
-
E(o) ? F(o, u) :
|
|
70
|
+
E(o) ? F(o, u) : R(o) && S(o, u);
|
|
71
71
|
else if (Array.isArray(o)) {
|
|
72
72
|
const p = f(u);
|
|
73
73
|
o.length === p?.length && o.forEach((l, d) => {
|
|
@@ -203,6 +203,7 @@ function y(e, t, r = !0) {
|
|
|
203
203
|
case "text":
|
|
204
204
|
case "time":
|
|
205
205
|
case "voxel":
|
|
206
|
+
case "pixel":
|
|
206
207
|
return `[${a}](${n}guide/types/#${o})`;
|
|
207
208
|
default: {
|
|
208
209
|
const c = i.match(/Array<(.*?)>/u);
|
|
@@ -287,7 +288,7 @@ function I(e) {
|
|
|
287
288
|
return "isSpecialRegister" in e;
|
|
288
289
|
}
|
|
289
290
|
export {
|
|
290
|
-
|
|
291
|
+
x as DefaultApiResources,
|
|
291
292
|
G as apiItemName,
|
|
292
293
|
A as assembleMarkdownString,
|
|
293
294
|
f as convertObjectToArray,
|
|
@@ -307,7 +308,7 @@ export {
|
|
|
307
308
|
W as isFunction,
|
|
308
309
|
E as isSchemaConstant,
|
|
309
310
|
V as isSchemaDictionaryVariable,
|
|
310
|
-
|
|
311
|
+
R as isSchemaFunction,
|
|
311
312
|
N as isSchemaReturnDefinition,
|
|
312
313
|
I as isSqlApiFunction,
|
|
313
314
|
B as loadApiDatabase,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/languages-sdk-spec",
|
|
3
|
-
"version": "4.34.0-next.
|
|
3
|
+
"version": "4.34.0-next.129",
|
|
4
4
|
"description": "ArcGIS languages types and schemas for design a language sdk",
|
|
5
5
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
6
6
|
"type": "module",
|