@hitc/netsuite-types 2022.2.9 → 2022.2.10

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/SuiteGL.d.ts CHANGED
@@ -5,7 +5,10 @@
5
5
  * AccountingBook object represents a different accounting book each time the plug-in implementation executes.
6
6
  */
7
7
  interface AccountingBook {
8
-
8
+ /** Returns the internal NetSuite ID for the accounting book to be passed to a Custom GL Lines plug-in implementation. */
9
+ getId(): number;
10
+ /** Returns true if the book object is the primary accounting book for the NetSuite account or returns false if the accounting book is a secondary accounting book. */
11
+ isPrimary(): boolean;
9
12
  }
10
13
 
11
14
  /** These methods exist for both Custom lines and Standard lines. */
@@ -2971,11 +2971,11 @@ declare function nlapiLoadSearch(type: string, id: string): NLObjSearch;
2971
2971
  /**
2972
2972
  * Create an entry in the script execution log (note that execution log entries are automatically purged after 30 days).
2973
2973
  *
2974
- * @param {string} type Log type: debug|audit|error|emergency
2974
+ * @param {'DEBUG' | 'AUDIT' | 'ERROR' | 'EMERGENCY' | 'debug' | 'audit' | 'error' | 'emergency'} type
2975
2975
  * @param {string} title Log title (up to 90 characters supported)
2976
2976
  * @param {string|number|boolean} details Log details (up to 3000 characters supported)
2977
2977
  */
2978
- declare function nlapiLogExecution(type: string, title: string, details?: string|number|boolean): void;
2978
+ declare function nlapiLogExecution(type: 'DEBUG' | 'AUDIT' | 'ERROR' | 'EMERGENCY' | 'debug' | 'audit' | 'error' | 'emergency', title: string, details?: string|number|boolean): void;
2979
2979
  /**
2980
2980
  * Fetch the value of one or more fields on a record. This API uses search to look up the fields and is much
2981
2981
  * faster than loading the record in order to get the field.
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": "2022.2.9",
11
+ "version": "2022.2.10",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {