@arcgis/arcade-languageservice 4.32.0-next.80 → 4.32.0-next.82

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.
Files changed (2) hide show
  1. package/dist/esm/index.d.ts +22 -51
  2. package/package.json +1 -1
@@ -72,71 +72,42 @@ var ProfileSettingsStrings = {
72
72
  /**
73
73
  * Supported function bundles
74
74
  */
75
- type BundleType = "core" | "data-access" | "database" | "geometry" | "knowledge-graph" | "portal-access" | "track";
75
+ type SqlBundleType = "core";
76
76
 
77
77
  /**
78
- * The list of supported profiles
78
+ * This file contains union types that are used to constrain
79
+ * base schema types. It's a bit of a chicken and egg scenario
80
+ * where fields in the base schema types need a reference
81
+ * to the language specific Bundle and Profile types, creating
82
+ * a bit of circular dependency. This file breaks that cycle.
79
83
  */
80
- type ProfileId = "minimalist" | "aggregate-field" | "alias" | "attribute-rule-calculation" | "attribute-rule-constraint" | "attribute-rule-validation" | "data-pipelines" | "dashboard-indicator-formatting" | "dashboard-list-formatting" | "dashboard-table-formatting" | "dashboard-data" | "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" | "model-builder" | "popup" | "popup-element" | "popup-feature-reduction" | "popup-element-feature-reduction" | "quick-capture" | "tasks" | "velocity" | "visualization";
81
84
  /**
82
- * Describes a profile
85
+ * Union of bundle types that can be used in any sdk schema
83
86
  */
84
- interface SdkPredefinedProfile {
85
- /**
86
- * Profile name for UI
87
- */
88
- name: string;
89
- /**
90
- * Profile id for docs
91
- */
92
- id: ProfileId;
93
- /**
94
- * Function bundles enabled for this profile
95
- */
96
- bundles: BundleType[];
97
- /**
98
- * Variable describing name, type, and providing description
99
- */
100
- variables: SdkVariable[];
101
- }
87
+ type BundleType = ArcadeBundleType | SqlBundleType;
88
+
102
89
  /**
103
- * Supported profile variable types
90
+ * Supported function bundles
104
91
  */
105
- type SdkVariableType = "number" | "text" | "date" | "dateOnly" | "time" | "boolean" | "dictionary" | "array" | "geometry" | "feature" | "featureSet" | "featureSetCollection" | "knowledgeGraph";
92
+ type ArcadeBundleType = "core" | "data-access" | "database" | "geometry" | "knowledge-graph" | "portal-access" | "track";
106
93
  /**
107
- * Describes variables
94
+ * Supported profile variable types
108
95
  */
109
- interface SdkVariableBase {
110
- /**
111
- * Name of the variable.
112
- */
113
- name: string;
114
- /**
115
- * Type of the variable.
116
- */
117
- type: SdkVariableType;
118
- /**
119
- * Description of the variable.
120
- */
121
- description?: string;
122
- }
96
+ type SdkVariableType = "array" | "boolean" | "date" | "dateOnly" | "dictionary" | "feature" | "featureSet" | "featureSetCollection" | "geometry" | "knowledgeGraph" | "number" | "text" | "time";
97
+
123
98
  /**
124
- * A variable that represents a simple type (boolean, number, feature, etc.)
99
+ * The list of supported profiles
125
100
  */
126
- interface SdkValueVariable extends SdkVariableBase {
127
- type: Exclude<SdkVariableType, "dictionary">;
128
- }
101
+ 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" | "popup-feature-reduction" | "popup" | "quick-capture" | "tasks" | "velocity" | "visualization";
102
+
129
103
  /**
130
- * A dictionary variable
104
+ * The list of supported profiles
131
105
  */
132
- interface SdkDictionaryVariable extends SdkVariableBase {
133
- type: "dictionary";
134
- properties: SdkVariable[];
135
- }
106
+ type SqlProfileId = "field-calculation";
136
107
  /**
137
- * Profile variable
108
+ * A union of all language profile ids
138
109
  */
139
- type SdkVariable = SdkValueVariable | SdkDictionaryVariable;
110
+ type ProfileId = ArcadeProfileId | SqlProfileId;
140
111
 
141
112
  /**
142
113
  * Represents an api category and its items
@@ -541,4 +512,4 @@ declare class ArcadeLanguageService {
541
512
 
542
513
  type ProfileStrings = typeof ProfileSettingsStrings;
543
514
 
544
- export { type ApiCategory, type ApiContext, type ApiItem, type ApiProfile, type ApiSnippet, type ApiValueVariable, type ApiValueVariableType, type ApiVariable, type SdkVariableType as ApiVariableType, type ArcadeApiContext, ArcadeKeywords, ArcadeLanguageService, ArcadeLiterals, ArcadeReservedKeywords, type BundleType, type Diagnostic, type DiagnosticCodes, type DiagnosticData, DiagnosticMessages, type LanguageServiceSettings, type ProfileId, type ProfileStrings, type SdkPredefinedProfile, ValidationDiagnosticCodes, arcadeFormat, format };
515
+ export { type ArcadeApiContext, ArcadeKeywords, ArcadeLanguageService, ArcadeLiterals, ArcadeReservedKeywords, type Diagnostic, type DiagnosticCodes, type DiagnosticData, DiagnosticMessages, type ProfileStrings, ValidationDiagnosticCodes, arcadeFormat, format };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/arcade-languageservice",
3
- "version": "4.32.0-next.80",
3
+ "version": "4.32.0-next.82",
4
4
  "description": "Arcade Language Service",
5
5
  "homepage": "https://developers.arcgis.com/javascript/latest/",
6
6
  "type": "module",