@hitc/netsuite-types 2023.1.7 → 2023.1.9

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/https.d.ts CHANGED
@@ -76,55 +76,56 @@ interface HttpsCreateSecureStringFunction {
76
76
  }
77
77
 
78
78
  interface RequestRestletOptions {
79
- /** The PUT/POST data. This is ignored if the options.method is not POST or PUT. */
80
- body?: string | Object,
81
- /** The script ID of the script deployment record. */
82
- deploymentId: string,
83
- /** The internal ID or script ID of the script record. Specify internal ID as a number. Specify script ID as a string. */
84
- scriptId: string,
85
- /** The HTTPS headers. */
86
- headers?: Object,
87
- /**
88
- * The HTTPS method (DELETE, GET, HEAD, POST, PUT).
89
- * The default value is GET if options.body is not specified, and POST if options.body is specified.
90
- */
91
- method?: string,
92
- /** The parameters to be appended to the target URL as a query string. */
93
- urlParams?: Object
79
+ /** The PUT/POST data. This is ignored if the options.method is not POST or PUT. */
80
+ body?: string | Object,
81
+ /** The script ID of the script deployment record. */
82
+ deploymentId: string,
83
+ /** The internal ID or script ID of the script record. Specify internal ID as a number. Specify script ID as a string. */
84
+ scriptId: string,
85
+ /** The HTTPS headers. */
86
+ headers?: Object,
87
+ /**
88
+ * The HTTPS method (DELETE, GET, HEAD, POST, PUT).
89
+ * The default value is GET if options.body is not specified, and POST if options.body is specified.
90
+ */
91
+ method?: string,
92
+ /** The parameters to be appended to the target URL as a query string. */
93
+ urlParams?: Object
94
94
  }
95
95
 
96
96
  interface RequestRestletFunction {
97
- (options: RequestRestletOptions): ClientResponse
97
+ (options: RequestRestletOptions): ClientResponse
98
98
  }
99
99
 
100
100
  interface RequestSuiteletOptions extends RequestRestletOptions {
101
- /** Specifies whether to perform the request as an unauthenticated user; this case uses the Online Form User role. */
102
- external?: boolean,
101
+ /** Specifies whether to perform the request as an unauthenticated user; this case uses the Online Form User role. */
102
+ external?: boolean,
103
103
  }
104
104
 
105
105
  interface RequestSuiteletFunction {
106
- (options: RequestSuiteletOptions): ClientResponse
106
+ (options: RequestSuiteletOptions): ClientResponse
107
+ promise(options: RequestSuiteletOptions): Promise<ClientResponse>;
107
108
  }
108
109
 
109
110
  interface RequestSuiteTalkRestOptions {
110
- /** The PUT/POST data. This is ignored if the options.method parameter is not POST or PUT. */
111
- body?: string | Object,
112
- /**
113
- * The URL of a SuiteTalk REST endpoint. It may also contain query parameters.
114
- * The URL may be fully qualified, relative, or relative with the /services/rest/ prefix omitted.
115
- */
116
- url: string,
117
- /** The HTTPS headers. */
118
- headers?: Object,
119
- /**
120
- * The HTTPS method (DELETE, GET, HEAD, POST, PUT).
121
- * The default value is GET if options.body is not specified, and POST if options.body is specified.
122
- */
123
- method?: string
111
+ /** The PUT/POST data. This is ignored if the options.method parameter is not POST or PUT. */
112
+ body?: string | Object,
113
+ /**
114
+ * The URL of a SuiteTalk REST endpoint. It may also contain query parameters.
115
+ * The URL may be fully qualified, relative, or relative with the /services/rest/ prefix omitted.
116
+ */
117
+ url: string,
118
+ /** The HTTPS headers. */
119
+ headers?: Object,
120
+ /**
121
+ * The HTTPS method (DELETE, GET, HEAD, POST, PUT).
122
+ * The default value is GET if options.body is not specified, and POST if options.body is specified.
123
+ */
124
+ method?: string
124
125
  }
125
126
 
126
127
  interface RequestSuiteTalkRestFunction {
127
- (options: RequestSuiteTalkRestOptions): ClientResponse
128
+ (options: RequestSuiteTalkRestOptions): ClientResponse
128
129
  }
129
130
 
130
131
  // OBJECTS \\
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
@@ -130,14 +130,16 @@ interface TemplateRenderer {
130
130
  renderAsPdf(): File;
131
131
  /** 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
132
  renderPdfToResponse(options: RenderToResponseOptions): void;
133
+ renderPdfToResponse(serverResponse: ServerResponse): void;
133
134
  /** Return template content in string form. */
134
135
  renderAsString(): string;
135
136
  /** Writes template content to a server response. */
136
137
  renderToResponse(options: RenderToResponseOptions): void;
138
+ renderToResponse(serverResponse: ServerResponse): void;
137
139
  /** Sets the template using the internal ID. */
138
140
  setTemplateById(options: { id: number; }): void;
139
141
  /** Sets the template using the script ID. */
140
- setTemplateByScriptId(options: { scriptId: string; }): void;
142
+ setTemplateByScriptId(options: { scriptId: Uppercase<string>; }): void;
141
143
  /** Content of template. */
142
144
  templateContent: string;
143
145
  }
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.7",
11
+ "version": "2023.1.9",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {