@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 +11 -0
- package/dist/backend.js +5 -0
- package/package.json +1 -1
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) {
|