@hitc/netsuite-types 2025.2.7 → 2025.2.8

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/N/plugin.d.ts +9 -3
  2. package/package.json +1 -1
package/N/plugin.d.ts CHANGED
@@ -9,17 +9,23 @@ interface LoadImplementationOptions {
9
9
  /** The script ID of the custom plug-in type. */
10
10
  type: string;
11
11
  /** The script ID of the custom plug-in implementation. */
12
- implementation?: string;
12
+ implementation?: 'default' | (string & {});
13
13
  }
14
14
 
15
15
  /**
16
16
  * Returns the script IDs of custom plug-in type implementations.
17
17
  * Returns an empty list when there is no custom plug-in type with the script ID available for the executing script.
18
18
  */
19
- export function findImplementations(options: FindImplementationsOptions): string[];
19
+ // When includeDefault is false, returns string[]
20
+ export function findImplementations(options: {type: string; includeDefault: false}): string[];
21
+ // When includeDefault is true or undefined, returns at least ['default']
22
+ export function findImplementations(options: {type: string; includeDefault?: true}): ['default', ...string[]];
20
23
 
21
24
  /**
22
25
  * Instantiates an implementation of the custom plugin type.
23
- * Returns the implementation which is currently selected in the UI (Manage Plug-ins page) when no implementation ID is explicitly provided.
26
+ *
27
+ * @param options - The options for loading the implementation.
28
+ * @returns The implementation which is currently selected in the UI (Manage Plug-ins page) when no implementation ID is explicitly provided.
29
+ * @throws {error.SuiteScriptError} UNABLE_TO_FIND_IMPLEMENTATION_1_FOR_PLUGIN_2 - Thrown when either there is no such implementation of the provided plug-in type, or the plug-in type does not exist.
24
30
  */
25
31
  export function loadImplementation<T extends Record<string, (...s: any) => any>>(options: LoadImplementationOptions): T;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "posttest": "npm run cleanup"
9
9
  },
10
10
  "homepage": "https://github.com/headintheclouddev/typings-suitescript-2.0",
11
- "version": "2025.2.7",
11
+ "version": "2025.2.8",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {