@ariary/notification 2.0.6 → 2.0.7
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/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -17,7 +17,7 @@ declare class Task {
|
|
|
17
17
|
detailedStatus(): Promise<unknown>;
|
|
18
18
|
}
|
|
19
19
|
declare class Notification {
|
|
20
|
-
tasks(param: GetTaskParam):
|
|
20
|
+
tasks(param: GetTaskParam): Promise<unknown>;
|
|
21
21
|
send(...data: Message[]): Promise<Task>;
|
|
22
22
|
sendMessage(data: Message): Promise<Task>;
|
|
23
23
|
getMessages(param: GetTaskParam): Promise<unknown>;
|
|
@@ -27,7 +27,7 @@ declare class Ariari {
|
|
|
27
27
|
static config(config: any): void;
|
|
28
28
|
static sendMessage(data: Message): Promise<Task>;
|
|
29
29
|
static send(...data: Message[]): Promise<Task>;
|
|
30
|
-
static tasks(param: GetTaskParam): Promise<
|
|
30
|
+
static tasks(param: GetTaskParam): Promise<unknown>;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export { Ariari, type GetTaskParam, type Message, Notification, Task };
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare class Task {
|
|
|
17
17
|
detailedStatus(): Promise<unknown>;
|
|
18
18
|
}
|
|
19
19
|
declare class Notification {
|
|
20
|
-
tasks(param: GetTaskParam):
|
|
20
|
+
tasks(param: GetTaskParam): Promise<unknown>;
|
|
21
21
|
send(...data: Message[]): Promise<Task>;
|
|
22
22
|
sendMessage(data: Message): Promise<Task>;
|
|
23
23
|
getMessages(param: GetTaskParam): Promise<unknown>;
|
|
@@ -27,7 +27,7 @@ declare class Ariari {
|
|
|
27
27
|
static config(config: any): void;
|
|
28
28
|
static sendMessage(data: Message): Promise<Task>;
|
|
29
29
|
static send(...data: Message[]): Promise<Task>;
|
|
30
|
-
static tasks(param: GetTaskParam): Promise<
|
|
30
|
+
static tasks(param: GetTaskParam): Promise<unknown>;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export { Ariari, type GetTaskParam, type Message, Notification, Task };
|
package/dist/index.js
CHANGED
|
@@ -103,8 +103,8 @@ var Task = class {
|
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
105
|
var Notification = class {
|
|
106
|
-
tasks(param) {
|
|
107
|
-
|
|
106
|
+
async tasks(param) {
|
|
107
|
+
return httpGet(`/api/sms?from=${param.from}&count=${param.count}&order=${param.order}`);
|
|
108
108
|
}
|
|
109
109
|
async send(...data) {
|
|
110
110
|
const messages = data.map((item) => ({
|
package/dist/index.mjs
CHANGED
|
@@ -75,8 +75,8 @@ var Task = class {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
var Notification = class {
|
|
78
|
-
tasks(param) {
|
|
79
|
-
|
|
78
|
+
async tasks(param) {
|
|
79
|
+
return httpGet(`/api/sms?from=${param.from}&count=${param.count}&order=${param.order}`);
|
|
80
80
|
}
|
|
81
81
|
async send(...data) {
|
|
82
82
|
const messages = data.map((item) => ({
|