@ariary/notification 2.0.8 → 2.0.9

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 CHANGED
@@ -15,7 +15,7 @@ type GetTaskParam = {
15
15
  declare class Task {
16
16
  id: string;
17
17
  constructor(id: string);
18
- status(): Promise<unknown>;
18
+ status(): Promise<any>;
19
19
  smsDetails(): Promise<unknown>;
20
20
  }
21
21
  declare class Ariari {
package/dist/index.d.ts CHANGED
@@ -15,7 +15,7 @@ type GetTaskParam = {
15
15
  declare class Task {
16
16
  id: string;
17
17
  constructor(id: string);
18
- status(): Promise<unknown>;
18
+ status(): Promise<any>;
19
19
  smsDetails(): Promise<unknown>;
20
20
  }
21
21
  declare class Ariari {
package/dist/index.js CHANGED
@@ -91,7 +91,8 @@ var Task = class {
91
91
  this.id = id;
92
92
  }
93
93
  async status() {
94
- return httpGet(`/api/notif-task/${this.id}/sms-details`);
94
+ const response = await httpGet(`/api/notif-task/${this.id}/sms-details`);
95
+ return response.summary;
95
96
  }
96
97
  async smsDetails() {
97
98
  return httpGet(`/api/notif-task/${this.id}/sms-details`);
package/dist/index.mjs CHANGED
@@ -64,7 +64,8 @@ var Task = class {
64
64
  this.id = id;
65
65
  }
66
66
  async status() {
67
- return httpGet(`/api/notif-task/${this.id}/sms-details`);
67
+ const response = await httpGet(`/api/notif-task/${this.id}/sms-details`);
68
+ return response.summary;
68
69
  }
69
70
  async smsDetails() {
70
71
  return httpGet(`/api/notif-task/${this.id}/sms-details`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariary/notification",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "SMS et Notification Task SDK pour l'API Ariary",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",