@hitc/netsuite-types 2022.2.3 → 2022.2.4

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/N/crypto.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import {Encoding} from './encode';
2
+ import { Type } from './record';
2
3
  export {Encoding} from './encode';
3
4
 
4
5
  /** Encapsulates a cipher. */
@@ -102,6 +103,33 @@ interface CreateSecretKeyOptions {
102
103
  encoding?: Encoding;
103
104
  }
104
105
 
106
+ export interface CheckPasswordFieldOptions {
107
+ /**
108
+ * ID of the password field.
109
+ */
110
+ fieldId: string;
111
+ /**
112
+ * Zero-based line index of the password field if the password is on a line.
113
+ */
114
+ line?: number;
115
+ /**
116
+ * ID of the record that has the password field.
117
+ */
118
+ recordId: number;
119
+ /**
120
+ * Type of record that has the password field.
121
+ */
122
+ recordType: string | Type;
123
+ /**
124
+ * ID of the sublist if the password field is on a sublist line.
125
+ */
126
+ sublistId?: string
127
+ /**
128
+ * Input password value to be checked against the password stored in the record.
129
+ */
130
+ value: string
131
+ }
132
+
105
133
  export declare enum EncryptionAlg {
106
134
  AES,
107
135
  }
@@ -131,3 +159,12 @@ export declare function createHash(options?: CreateHashOptions): Hash;
131
159
  export declare function createHmac(options: CreateHmacOptions): Hmac;
132
160
  /** Method used to create a new crypto.SecretKey object. */
133
161
  export declare function createSecretKey(options: CreateSecretKeyOptions): SecretKey;
162
+
163
+ /**
164
+ * Checks whether a password in a record corresponds to the password entered by the user.
165
+ *
166
+ * Use this method instead of Record.getValue(options) or CurrentRecord.getValue(options) on a custom password field.
167
+ * You should no longer use those methods for custom password fields.
168
+ * This method provides a more secure way to check custom password fields.
169
+ */
170
+ export declare function checkPasswordField (options: CheckPasswordFieldOptions);
package/N/query.d.ts CHANGED
@@ -31,9 +31,7 @@ interface JoinToOptions {
31
31
  */
32
32
  fieldId: string;
33
33
 
34
- /**
35
- * The target target of the join. It is the specialized query type with which is this component joined.
36
- */
34
+ /** The target of the join. It is the specialized query type with which is this component joined. */
37
35
  target: string;
38
36
  }
39
37
 
@@ -778,31 +776,36 @@ interface QueryLoadFunction {
778
776
  }
779
777
 
780
778
  interface deleteQuery {
781
- /**
782
- * Deletes query by id
783
- * @throws {SuiteScriptError} MISSING_REQD_ARGUMENT if options or id are undefined
784
- * @throws {SuiteScriptError} WRONG_PARAMETER_TYPE if options isn't object or id isn't number
785
- * @throws {SuiteScriptError} UNABLE_TO_DELETE_QUERY if query doesn't exist or no permissions to delete it
786
- */
787
779
  (options: DeleteQueryOptions): Query;
788
780
  promise: (options: DeleteQueryOptions) => Promise<Query>;
789
781
  }
790
782
 
791
- export {deleteQuery as delete};
792
-
793
783
  /**
794
784
  * Deletes query by id
795
- * @throws {SuiteScriptError} MISSING_REQD_ARGUMENT if options or query are undefined
785
+ * @throws {SuiteScriptError} MISSING_REQD_ARGUMENT if options or id are undefined
796
786
  * @throws {SuiteScriptError} WRONG_PARAMETER_TYPE if options isn't object or id isn't number
797
787
  * @throws {SuiteScriptError} UNABLE_TO_DELETE_QUERY if query doesn't exist or no permissions to delete it
798
788
  */
789
+ export {deleteQuery as delete};
790
+
799
791
  interface RunSuiteQL {
800
792
  (options: RunSuiteQLOptions): ResultSet;
801
793
  promise: (options: RunSuiteQLOptions) => Promise<ResultSet>;
802
794
  }
803
795
 
796
+ /**
797
+ * @description Deletes query by id
798
+ * @throws {SuiteScriptError} MISSING_REQD_ARGUMENT if options or query are undefined
799
+ * @throws {SuiteScriptError} WRONG_PARAMETER_TYPE if options isn't object or id isn't number
800
+ * @throws {SuiteScriptError} UNABLE_TO_DELETE_QUERY if query doesn't exist or no permissions to delete it
801
+ */
804
802
  export const runSuiteQL: RunSuiteQL;
805
803
 
804
+ interface RunSuiteQLPaged {
805
+ (options: RunSuiteQLPagedOptions): PagedData;
806
+ promise: (options: RunSuiteQLPagedOptions) => Promise<PagedData>;
807
+ }
808
+
806
809
  /**
807
810
  * Execute the suiteQL query and return paged results.
808
811
  * @governance 10 units
@@ -811,11 +814,6 @@ export const runSuiteQL: RunSuiteQL;
811
814
  *
812
815
  * @since 2020.1
813
816
  */
814
- interface RunSuiteQLPaged {
815
- (options: RunSuiteQLPagedOptions): PagedData;
816
- promise: (options: RunSuiteQLPagedOptions) => Promise<PagedData>;
817
- }
818
-
819
817
  export const runSuiteQLPaged: RunSuiteQLPaged;
820
818
 
821
819
  export const enum DateId {
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.3",
11
+ "version": "2022.2.4",
12
12
  "main": "index.d.ts",
13
13
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
14
14
  "license": "MIT",