@ariary/ariary 1.0.8 → 2.0.0
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 +45 -56
- package/dist/index.d.mts +194 -22
- package/dist/index.d.ts +194 -22
- package/dist/index.js +121 -293
- package/dist/index.mjs +120 -276
- package/package.json +3 -29
- package/dist/client-CKv433F4.d.mts +0 -42
- package/dist/client-CKv433F4.d.ts +0 -42
- package/dist/notif-task/index.d.mts +0 -58
- package/dist/notif-task/index.d.ts +0 -58
- package/dist/notif-task/index.js +0 -80
- package/dist/notif-task/index.mjs +0 -53
- package/dist/payment/index.d.mts +0 -54
- package/dist/payment/index.d.ts +0 -54
- package/dist/payment/index.js +0 -86
- package/dist/payment/index.mjs +0 -59
- package/dist/sms/index.d.mts +0 -62
- package/dist/sms/index.d.ts +0 -62
- package/dist/sms/index.js +0 -64
- package/dist/sms/index.mjs +0 -37
- package/dist/transfert/index.d.mts +0 -36
- package/dist/transfert/index.d.ts +0 -36
- package/dist/transfert/index.js +0 -51
- package/dist/transfert/index.mjs +0 -24
package/dist/transfert/index.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/transfert/index.ts
|
|
21
|
-
var transfert_exports = {};
|
|
22
|
-
__export(transfert_exports, {
|
|
23
|
-
TransferService: () => TransferService
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(transfert_exports);
|
|
26
|
-
|
|
27
|
-
// src/transfert.ts
|
|
28
|
-
var TransferService = class {
|
|
29
|
-
constructor(client) {
|
|
30
|
-
this.client = client;
|
|
31
|
-
}
|
|
32
|
-
async send(phone, amount) {
|
|
33
|
-
const response = await this.client.post(
|
|
34
|
-
"/api/send-transaction",
|
|
35
|
-
{ phone, amount },
|
|
36
|
-
true
|
|
37
|
-
);
|
|
38
|
-
return response;
|
|
39
|
-
}
|
|
40
|
-
async getAll() {
|
|
41
|
-
const response = await this.client.get(
|
|
42
|
-
"/api/send-transaction",
|
|
43
|
-
true
|
|
44
|
-
);
|
|
45
|
-
return response;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
-
0 && (module.exports = {
|
|
50
|
-
TransferService
|
|
51
|
-
});
|
package/dist/transfert/index.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// src/transfert.ts
|
|
2
|
-
var TransferService = class {
|
|
3
|
-
constructor(client) {
|
|
4
|
-
this.client = client;
|
|
5
|
-
}
|
|
6
|
-
async send(phone, amount) {
|
|
7
|
-
const response = await this.client.post(
|
|
8
|
-
"/api/send-transaction",
|
|
9
|
-
{ phone, amount },
|
|
10
|
-
true
|
|
11
|
-
);
|
|
12
|
-
return response;
|
|
13
|
-
}
|
|
14
|
-
async getAll() {
|
|
15
|
-
const response = await this.client.get(
|
|
16
|
-
"/api/send-transaction",
|
|
17
|
-
true
|
|
18
|
-
);
|
|
19
|
-
return response;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
TransferService
|
|
24
|
-
};
|