@hitc/netsuite-types 2023.1.5 → 2023.1.6

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/https.d.ts +20 -0
  2. package/package.json +1 -1
package/N/https.d.ts CHANGED
@@ -97,6 +97,15 @@ interface RequestRestletFunction {
97
97
  (options: RequestRestletOptions): ClientResponse
98
98
  }
99
99
 
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,
103
+ }
104
+
105
+ interface RequestSuiteletFunction {
106
+ (options: RequestSuiteletOptions): ClientResponse
107
+ }
108
+
100
109
  interface RequestSuiteTalkRestOptions {
101
110
  /** The PUT/POST data. This is ignored if the options.method parameter is not POST or PUT. */
102
111
  body?: string | Object,
@@ -156,6 +165,17 @@ export var createSecureString: HttpsCreateSecureStringFunction;
156
165
  */
157
166
  export var requestRestlet: RequestRestletFunction;
158
167
 
168
+ /**
169
+ * Sends an HTTPS request to a Suitelet and returns the response.
170
+ *
171
+ * Use this method to perform an outbound HTTPS request in an anonymous client-side context. You can do this by performing the HTTPS request inside a Suitelet that is available without login, then calling the Suitelet inside your client script using the https.requestSuitelet(options) method.
172
+ *
173
+ * Currently, this method is supported only with the options.external parameter set to true
174
+ *
175
+ * @governance 10 units
176
+ */
177
+ export var requestSuitelet: RequestSuiteletFunction;
178
+
159
179
  /**
160
180
  * Sends an HTTPS request to a SuiteTalk REST endpoint and returns the response. Authentication headers are automatically added.
161
181
  *
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.5",
11
+ "version": "2023.1.6",
12
12
  "author": "Head in the Cloud Development <gurus@headintheclouddev.com> (www.headintheclouddev.com)",
13
13
  "license": "MIT",
14
14
  "repository": {