@staticbackend/backend 1.3.0 → 1.3.1

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/dist/backend.d.ts CHANGED
@@ -16,6 +16,13 @@ export interface ConvertData {
16
16
  url: string;
17
17
  fullpage: boolean;
18
18
  }
19
+ export interface SMSData {
20
+ accountSID: string;
21
+ authToken: string;
22
+ toNumber: string;
23
+ fromNumber: string;
24
+ body: string;
25
+ }
19
26
  export declare class Backend {
20
27
  private baseURL;
21
28
  private pubKey;
@@ -126,5 +133,9 @@ export declare class Backend {
126
133
  ok: boolean;
127
134
  content: any;
128
135
  }>;
136
+ sudoSendSMS(rootToken: string, data: SMSData): Promise<{
137
+ ok: boolean;
138
+ content: any;
139
+ }>;
129
140
  private listParamToQuerystring;
130
141
  }
package/dist/backend.js CHANGED
@@ -223,6 +223,11 @@ class Backend {
223
223
  return yield this.req(token, "POST", "/extra/htmltox", data);
224
224
  });
225
225
  }
226
+ sudoSendSMS(rootToken, data) {
227
+ return __awaiter(this, void 0, void 0, function* () {
228
+ return yield this.req(rootToken, "POST", "/extra/sms", data);
229
+ });
230
+ }
226
231
  listParamToQuerystring(param) {
227
232
  var qs = "";
228
233
  if (param) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staticbackend/backend",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Client library for StaticBackend API",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {