@ariary/ariary 1.0.4 → 1.0.5

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 CHANGED
@@ -61,6 +61,9 @@ const result = await sdk.sms.notifyBulk([
61
61
  { message: 'Message 1', numbers: '261345678901' },
62
62
  { message: 'Message 2', numbers: '261345678902' }
63
63
  ]);
64
+
65
+ // Récupérer tous les SMS
66
+ const allSms = await sdk.sms.getAll();
64
67
  ```
65
68
 
66
69
  ### Transfer
package/dist/index.js CHANGED
@@ -216,6 +216,13 @@ var SmsService = class {
216
216
  );
217
217
  return response;
218
218
  }
219
+ async getAll() {
220
+ const response = await this.client.get(
221
+ "/api/sms",
222
+ true
223
+ );
224
+ return response;
225
+ }
219
226
  };
220
227
 
221
228
  // src/transfert.ts
package/dist/index.mjs CHANGED
@@ -175,6 +175,13 @@ var SmsService = class {
175
175
  );
176
176
  return response;
177
177
  }
178
+ async getAll() {
179
+ const response = await this.client.get(
180
+ "/api/sms",
181
+ true
182
+ );
183
+ return response;
184
+ }
178
185
  };
179
186
 
180
187
  // src/transfert.ts
@@ -56,6 +56,7 @@ declare class SmsService {
56
56
  message: string;
57
57
  numbers: string | string[];
58
58
  }[]): Promise<BulkSmsResponseDto>;
59
+ getAll(): Promise<ResponseSmsDto[]>;
59
60
  }
60
61
 
61
62
  export { type BulkSmsDto, type BulkSmsResponseDto, type CreateSmsDto, type MultiSmsResponseDto, type ResponseSmsDto, type SendSmsDto, type SendSmsResponseDto, SmsService };
@@ -56,6 +56,7 @@ declare class SmsService {
56
56
  message: string;
57
57
  numbers: string | string[];
58
58
  }[]): Promise<BulkSmsResponseDto>;
59
+ getAll(): Promise<ResponseSmsDto[]>;
59
60
  }
60
61
 
61
62
  export { type BulkSmsDto, type BulkSmsResponseDto, type CreateSmsDto, type MultiSmsResponseDto, type ResponseSmsDto, type SendSmsDto, type SendSmsResponseDto, SmsService };
package/dist/sms/index.js CHANGED
@@ -50,6 +50,13 @@ var SmsService = class {
50
50
  );
51
51
  return response;
52
52
  }
53
+ async getAll() {
54
+ const response = await this.client.get(
55
+ "/api/sms",
56
+ true
57
+ );
58
+ return response;
59
+ }
53
60
  };
54
61
  // Annotate the CommonJS export names for ESM import in node:
55
62
  0 && (module.exports = {
@@ -24,6 +24,13 @@ var SmsService = class {
24
24
  );
25
25
  return response;
26
26
  }
27
+ async getAll() {
28
+ const response = await this.client.get(
29
+ "/api/sms",
30
+ true
31
+ );
32
+ return response;
33
+ }
27
34
  };
28
35
  export {
29
36
  SmsService
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ariary/ariary",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "SDK officiel pour l'API de paiement Ariary",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",