@ariary/notification 3.0.8 → 3.0.10
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/README.md +4 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +37 -3
package/README.md
CHANGED
|
@@ -153,6 +153,10 @@ const details = await task.status(100)
|
|
|
153
153
|
|
|
154
154
|
// paginated: 20 per page, page 2
|
|
155
155
|
const page2 = await task.status(20, 2)
|
|
156
|
+
|
|
157
|
+
// all SMS details at once
|
|
158
|
+
const full = await task.fullStatus()
|
|
159
|
+
// { task: { ... }, sms: [...all SMS], total: 50 }
|
|
156
160
|
```
|
|
157
161
|
|
|
158
162
|
SMS statuses: `SmsStatus.SCHEDULED` | `SmsStatus.PENDING` | `SmsStatus.SENT` | `SmsStatus.DELIVERED` | `SmsStatus.FAILED`
|
package/dist/index.d.mts
CHANGED
|
@@ -69,6 +69,7 @@ declare class Task {
|
|
|
69
69
|
constructor(id: string, requester: ReturnType<typeof createRequester>);
|
|
70
70
|
status(): Promise<TaskStatus>;
|
|
71
71
|
status(count: number, page?: number): Promise<TaskWithDetails>;
|
|
72
|
+
fullStatus(): Promise<TaskWithDetails>;
|
|
72
73
|
}
|
|
73
74
|
declare class Ariari {
|
|
74
75
|
private _config;
|
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ declare class Task {
|
|
|
69
69
|
constructor(id: string, requester: ReturnType<typeof createRequester>);
|
|
70
70
|
status(): Promise<TaskStatus>;
|
|
71
71
|
status(count: number, page?: number): Promise<TaskWithDetails>;
|
|
72
|
+
fullStatus(): Promise<TaskWithDetails>;
|
|
72
73
|
}
|
|
73
74
|
declare class Ariari {
|
|
74
75
|
private _config;
|
package/dist/index.js
CHANGED
|
@@ -101,9 +101,12 @@ var Task = class {
|
|
|
101
101
|
const response = await this._requester.get(`/api/notif-task/${this.id}`);
|
|
102
102
|
return response.status;
|
|
103
103
|
}
|
|
104
|
-
const details =
|
|
104
|
+
const details = `${count},${page || 1}`;
|
|
105
105
|
return this._requester.get(`/api/notif-task/${this.id}?details=${details}`);
|
|
106
106
|
}
|
|
107
|
+
async fullStatus() {
|
|
108
|
+
return this._requester.get(`/api/notif-task/${this.id}?details=-1`);
|
|
109
|
+
}
|
|
107
110
|
};
|
|
108
111
|
var _Ariari = class _Ariari {
|
|
109
112
|
constructor({ name = "main", ...config }) {
|
package/dist/index.mjs
CHANGED
|
@@ -74,9 +74,12 @@ var Task = class {
|
|
|
74
74
|
const response = await this._requester.get(`/api/notif-task/${this.id}`);
|
|
75
75
|
return response.status;
|
|
76
76
|
}
|
|
77
|
-
const details =
|
|
77
|
+
const details = `${count},${page || 1}`;
|
|
78
78
|
return this._requester.get(`/api/notif-task/${this.id}?details=${details}`);
|
|
79
79
|
}
|
|
80
|
+
async fullStatus() {
|
|
81
|
+
return this._requester.get(`/api/notif-task/${this.id}?details=-1`);
|
|
82
|
+
}
|
|
80
83
|
};
|
|
81
84
|
var _Ariari = class _Ariari {
|
|
82
85
|
constructor({ name = "main", ...config }) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ariary/notification",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "SMS
|
|
3
|
+
"version": "3.0.10",
|
|
4
|
+
"description": "Ariary SMS & Notification SDK (ariari.mg) — Send SMS in Madagascar with automatic phone normalization, bulk messaging, deferred/scheduled sending, delivery tracking, credit estimation. Supports Orange, Airtel, Telma. Multi-instance, TypeScript-first.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,41 @@
|
|
|
23
23
|
"ariary",
|
|
24
24
|
"sms",
|
|
25
25
|
"notification",
|
|
26
|
-
"
|
|
26
|
+
"bulk-sms",
|
|
27
|
+
"sms-api",
|
|
28
|
+
"sms-gateway",
|
|
29
|
+
"sms-sdk",
|
|
30
|
+
"send-sms",
|
|
31
|
+
"messaging",
|
|
32
|
+
"text-message",
|
|
33
|
+
"madagascar",
|
|
34
|
+
"orange",
|
|
35
|
+
"airtel",
|
|
36
|
+
"telma",
|
|
37
|
+
"yas",
|
|
38
|
+
"scheduled-sms",
|
|
39
|
+
"deferred-sms",
|
|
40
|
+
"delivery-tracking",
|
|
41
|
+
"delivery-status",
|
|
42
|
+
"sms-status",
|
|
43
|
+
"credit-estimation",
|
|
44
|
+
"phone-normalization",
|
|
45
|
+
"bulk-messaging",
|
|
46
|
+
"mass-sms",
|
|
47
|
+
"campaign",
|
|
48
|
+
"marketing-sms",
|
|
49
|
+
"transactional-sms",
|
|
50
|
+
"otp",
|
|
51
|
+
"verification",
|
|
52
|
+
"api",
|
|
53
|
+
"sdk",
|
|
54
|
+
"typescript",
|
|
55
|
+
"nodejs",
|
|
56
|
+
"node",
|
|
57
|
+
"africa",
|
|
58
|
+
"ariary-mg",
|
|
59
|
+
"ariari.mg",
|
|
60
|
+
"notification-service"
|
|
27
61
|
],
|
|
28
62
|
"author": "Ariary",
|
|
29
63
|
"license": "ISC",
|