@hitc/netsuite-types 2023.1.8 → 2023.1.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/N/query.d.ts CHANGED
@@ -207,6 +207,8 @@ interface RunSuiteQLOptions {
207
207
  query: string;
208
208
 
209
209
  params?: Array<string | number | boolean>;
210
+
211
+ customScriptId?: string;
210
212
  }
211
213
 
212
214
  interface RunSuiteQLPagedOptions extends RunSuiteQLOptions {
package/N/render.d.ts CHANGED
@@ -113,6 +113,21 @@ interface XMLToPDFOptions {
113
113
  xmlString: string;
114
114
  }
115
115
 
116
+ interface GLImpactOptions {
117
+ /** The internal ID of the transaction to print GL Impact. */
118
+ internalId: number;
119
+ /** The print output type. Set using the render.PrintMode enum. */
120
+ printMode?: PrintMode|string;
121
+ /** Include only specific subsidiaries. Default to false. */
122
+ printPerSubsidiary?: boolean;
123
+ /** Specific subsidiaries, only available when printPerSubsidiary is set to true. */
124
+ subsidiaries?: number[];
125
+ /** Specific accounting books. If not specify, prints GL Impact in all accounting books. */
126
+ accountingBooks?: number[];
127
+ /** Internal ID of the template. If not specify, the preferred template will be used. */
128
+ template?: number;
129
+ }
130
+
116
131
  interface TemplateRenderer {
117
132
  /** Adds XML or JSON as custom data source to an advanced PDF/HTML template. */
118
133
  addCustomDataSource(options: AddCustomDataSourceOptions): void;
@@ -130,14 +145,16 @@ interface TemplateRenderer {
130
145
  renderAsPdf(): File;
131
146
  /** Renders a server response into a PDF file. For example, you can pass in a response to be rendered as a PDF in a browser, or downloaded by a user. */
132
147
  renderPdfToResponse(options: RenderToResponseOptions): void;
148
+ renderPdfToResponse(serverResponse: ServerResponse): void;
133
149
  /** Return template content in string form. */
134
150
  renderAsString(): string;
135
151
  /** Writes template content to a server response. */
136
152
  renderToResponse(options: RenderToResponseOptions): void;
153
+ renderToResponse(serverResponse: ServerResponse): void;
137
154
  /** Sets the template using the internal ID. */
138
155
  setTemplateById(options: { id: number; }): void;
139
156
  /** Sets the template using the script ID. */
140
- setTemplateByScriptId(options: { scriptId: string; }): void;
157
+ setTemplateByScriptId(options: { scriptId: Uppercase<string>; }): void;
141
158
  /** Content of template. */
142
159
  templateContent: string;
143
160
  }
@@ -178,6 +195,8 @@ export function statement(options: StatementOptions): File;
178
195
  export function transaction(options: TransactionOptions): File;
179
196
  /** Method used to pass XML to the Big Faceless Organization tag library (which is stored by NetSuite), and return a PDF file. */
180
197
  export function xmlToPdf(options: XMLToPDFOptions): File;
198
+ /** Use this method to create a PDF or HTML object of the GL Impact of a transaction. */
199
+ export function glImpact(options: GLImpactOptions): File;
181
200
 
182
201
  /** Holds the string values for supported data source types. Use this enum to set the options.format parameter. */
183
202
  export enum DataSource {
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": "2023.1.8",
11
+ "version": "2023.1.10",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {