@arcgis/languages-sdk-spec 4.33.0-next.98 → 4.34.0-next.0

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,58 @@
1
+ import { ArcadeApiConstant, SchemaApiFunction, SchemaApiItem, SchemaCategory, SchemaExample, SchemaProperty, SchemaResourceLink, SchemaReturnDefinition, SchemaReturnValue, SingularApiItem } from '../schema-types';
2
+ import { SqlApiFunction } from '../schema-types/sql';
3
+ import { SdkDictionaryVariable, SdkVariable } from '../profile-types';
4
+ export type Paths = {
5
+ relativePath: string;
6
+ absolutePath: string;
7
+ };
8
+ export declare function isSchemaDictionaryVariable(variable: SdkVariable): variable is SdkDictionaryVariable;
9
+ export declare function getDirectoryNames(path: string): Promise<string[]>;
10
+ export declare function getFileNames(path: string): Promise<string[]>;
11
+ /**
12
+ * Structure used when reading the API Files
13
+ */
14
+ export interface ApiDatabase {
15
+ categories: ApiCategories;
16
+ resources: ApiResources;
17
+ }
18
+ export type ApiCategories = Record<string, {
19
+ definition: SchemaCategory;
20
+ items: Map<string, SchemaApiItem>;
21
+ }>;
22
+ export type ApiResources = Record<string, string>;
23
+ export declare const DefaultApiResources: ApiResources;
24
+ export declare function isSchemaFunction(item: SchemaApiItem): item is SchemaApiFunction;
25
+ export declare function isSchemaConstant(item: SchemaApiItem): item is ArcadeApiConstant;
26
+ export declare function isSchemaReturnDefinition(item: SchemaReturnValue): item is SchemaReturnDefinition;
27
+ export declare function loadApiDatabase(languageFileName: string): Promise<ApiDatabase>;
28
+ export declare const toLocalConfig: {
29
+ minimumIntegerDigits: number;
30
+ useGrouping: boolean;
31
+ };
32
+ export declare function convertStringArrayToObject(array: string[] | string | undefined): Record<string, string>;
33
+ export declare function convertObjectToArray<T>(obj: Record<string, T> | undefined): T[] | undefined;
34
+ export declare function headingPattern(level: number): string;
35
+ export declare function isFunction(apiItem: SingularApiItem): apiItem is SchemaApiFunction;
36
+ export declare function assembleMarkdownString(value: string[] | string | undefined): string;
37
+ export declare function apiItemName(item: SchemaApiItem): string;
38
+ export declare function generateSinceVersionSection(resources: ApiResources, apiItem: SingularApiItem, paths: Paths, relative?: boolean): string[];
39
+ export declare function generateSignature(apiItem: SingularApiItem, paths: Paths, { relative, typeLink, needsHtmlEntity }?: {
40
+ relative?: boolean | undefined;
41
+ typeLink?: boolean | undefined;
42
+ needsHtmlEntity?: boolean | undefined;
43
+ }): string;
44
+ export declare function generateTypeLink(values: string[] | string, paths: Paths, relative?: boolean): string;
45
+ export declare function generateParametersSection(resources: ApiResources, parameters: SchemaProperty[] | undefined, paths: Paths, relative?: boolean, useTypeLinks?: boolean): string[];
46
+ export declare function generateReturnSection(resources: ApiResources, returnDefinition: SchemaReturnValue, paths: Paths, relative?: boolean, useTypeLinks?: boolean): string[];
47
+ export declare function generateExamplesSection(resources: ApiResources, examples: SchemaExample[] | undefined, headingPattern: "**" | "#####", language: string): string[];
48
+ export declare function generateAdditionalResourcesSection(resources: ApiResources, resourceLinks: SchemaResourceLink[] | undefined, headingPattern: "**" | "####"): string[];
49
+ export declare function fixUrl(description: string, paths: Paths, relative?: boolean): string;
50
+ /**
51
+ * Interlaces two arrays and joins them into a string with spaces.
52
+ * @param {string[]} array1 - The first array.
53
+ * @param {string[]} array2 - The second array.
54
+ * @param {number[]} [positions] - Optional positions for the second array elements.
55
+ * @returns {string[]} - The interlaced array.
56
+ */
57
+ export declare function interlaceArrays(array1: string[], array2: string[], positions?: number[]): string;
58
+ export declare function isSqlApiFunction(apiItem: SchemaApiItem): apiItem is SqlApiFunction;
package/dist/types.d.ts CHANGED
@@ -42,7 +42,7 @@ interface SdkItemBase {
42
42
  /**
43
43
  * Link for additional information about the item.
44
44
  */
45
- link: string;
45
+ link?: string;
46
46
  /**
47
47
  * Completion item directly leveraged by the editor.
48
48
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/languages-sdk-spec",
3
- "version": "4.33.0-next.98",
3
+ "version": "4.34.0-next.0",
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",
@@ -9,6 +9,7 @@
9
9
  "types": "dist/index.d.ts",
10
10
  "exports": {
11
11
  ".": "./dist/index.js",
12
+ "./scripting": "./dist/scripting/index.js",
12
13
  "./dist/schemas/*.schema.json": "./dist/schemas/*.schema.json"
13
14
  },
14
15
  "files": [
@@ -16,7 +17,7 @@
16
17
  ],
17
18
  "license": "SEE LICENSE IN LICENSE.md",
18
19
  "dependencies": {
19
- "tslib": "^2.7.0",
20
+ "tslib": "^2.8.1",
20
21
  "vscode-languageserver-types": "^3.17.5"
21
22
  }
22
23
  }