@ariary/ariary 3.0.0 → 3.0.2
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 +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +7 -3
- package/dist/index.mjs +7 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -64,29 +64,31 @@ declare class Ariari {
|
|
|
64
64
|
secretId: string;
|
|
65
65
|
}): void;
|
|
66
66
|
send(...data: Message[]): Promise<Task>;
|
|
67
|
-
tasks(param: GetTaskParam): Promise<
|
|
67
|
+
tasks(param: GetTaskParam): Promise<TaskDetails[]>;
|
|
68
68
|
createPayment(data: {
|
|
69
69
|
code: string;
|
|
70
70
|
amount: number;
|
|
71
71
|
projectId: string;
|
|
72
72
|
}): Promise<Payment>;
|
|
73
|
-
getAllPayments: () => Promise<
|
|
73
|
+
getAllPayments: () => Promise<PaymentResponse[]>;
|
|
74
74
|
payment: {
|
|
75
75
|
create: (data: {
|
|
76
76
|
code: string;
|
|
77
77
|
amount: number;
|
|
78
78
|
projectId: string;
|
|
79
79
|
}) => Promise<Payment>;
|
|
80
|
-
getAll: () => Promise<
|
|
80
|
+
getAll: () => Promise<PaymentResponse[]>;
|
|
81
81
|
getById: (id: string) => Payment;
|
|
82
82
|
payment: (data: {
|
|
83
83
|
phone: string;
|
|
84
84
|
amount: number;
|
|
85
|
-
}) => Promise<
|
|
86
|
-
getPayments: () => Promise<
|
|
85
|
+
}) => Promise<any>;
|
|
86
|
+
getPayments: () => Promise<any>;
|
|
87
87
|
};
|
|
88
88
|
Task: typeof Task;
|
|
89
89
|
Payment: typeof Payment;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
declare const ariari: Ariari;
|
|
93
|
+
|
|
94
|
+
export { Ariari, type Config, type CreatePaymentParam, type GetTaskParam, type Message, Payment, type PaymentParam, type PaymentResponse, Task, type TaskDetails, type TaskSummary, ariari as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -64,29 +64,31 @@ declare class Ariari {
|
|
|
64
64
|
secretId: string;
|
|
65
65
|
}): void;
|
|
66
66
|
send(...data: Message[]): Promise<Task>;
|
|
67
|
-
tasks(param: GetTaskParam): Promise<
|
|
67
|
+
tasks(param: GetTaskParam): Promise<TaskDetails[]>;
|
|
68
68
|
createPayment(data: {
|
|
69
69
|
code: string;
|
|
70
70
|
amount: number;
|
|
71
71
|
projectId: string;
|
|
72
72
|
}): Promise<Payment>;
|
|
73
|
-
getAllPayments: () => Promise<
|
|
73
|
+
getAllPayments: () => Promise<PaymentResponse[]>;
|
|
74
74
|
payment: {
|
|
75
75
|
create: (data: {
|
|
76
76
|
code: string;
|
|
77
77
|
amount: number;
|
|
78
78
|
projectId: string;
|
|
79
79
|
}) => Promise<Payment>;
|
|
80
|
-
getAll: () => Promise<
|
|
80
|
+
getAll: () => Promise<PaymentResponse[]>;
|
|
81
81
|
getById: (id: string) => Payment;
|
|
82
82
|
payment: (data: {
|
|
83
83
|
phone: string;
|
|
84
84
|
amount: number;
|
|
85
|
-
}) => Promise<
|
|
86
|
-
getPayments: () => Promise<
|
|
85
|
+
}) => Promise<any>;
|
|
86
|
+
getPayments: () => Promise<any>;
|
|
87
87
|
};
|
|
88
88
|
Task: typeof Task;
|
|
89
89
|
Payment: typeof Payment;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
declare const ariari: Ariari;
|
|
93
|
+
|
|
94
|
+
export { Ariari, type Config, type CreatePaymentParam, type GetTaskParam, type Message, Payment, type PaymentParam, type PaymentResponse, Task, type TaskDetails, type TaskSummary, ariari as default };
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,8 @@ var src_exports = {};
|
|
|
22
22
|
__export(src_exports, {
|
|
23
23
|
Ariari: () => Ariari,
|
|
24
24
|
Payment: () => Payment,
|
|
25
|
-
Task: () => Task
|
|
25
|
+
Task: () => Task,
|
|
26
|
+
default: () => ariari
|
|
26
27
|
});
|
|
27
28
|
module.exports = __toCommonJS(src_exports);
|
|
28
29
|
|
|
@@ -113,8 +114,8 @@ var Ariari = class {
|
|
|
113
114
|
constructor() {
|
|
114
115
|
this.getAllPayments = () => httpGet("/api/payments");
|
|
115
116
|
this.payment = {
|
|
116
|
-
create: this.createPayment
|
|
117
|
-
getAll: this.getAllPayments
|
|
117
|
+
create: (data) => this.createPayment(data),
|
|
118
|
+
getAll: () => this.getAllPayments(),
|
|
118
119
|
getById: (id) => new Payment(id),
|
|
119
120
|
payment: (data) => httpPost("/api/send-transaction", data),
|
|
120
121
|
getPayments: () => httpGet("/api/send-transaction")
|
|
@@ -147,6 +148,9 @@ var Ariari = class {
|
|
|
147
148
|
return new Payment(res.id);
|
|
148
149
|
}
|
|
149
150
|
};
|
|
151
|
+
|
|
152
|
+
// src/index.ts
|
|
153
|
+
var ariari = new Ariari();
|
|
150
154
|
// Annotate the CommonJS export names for ESM import in node:
|
|
151
155
|
0 && (module.exports = {
|
|
152
156
|
Ariari,
|
package/dist/index.mjs
CHANGED
|
@@ -85,8 +85,8 @@ var Ariari = class {
|
|
|
85
85
|
constructor() {
|
|
86
86
|
this.getAllPayments = () => httpGet("/api/payments");
|
|
87
87
|
this.payment = {
|
|
88
|
-
create: this.createPayment
|
|
89
|
-
getAll: this.getAllPayments
|
|
88
|
+
create: (data) => this.createPayment(data),
|
|
89
|
+
getAll: () => this.getAllPayments(),
|
|
90
90
|
getById: (id) => new Payment(id),
|
|
91
91
|
payment: (data) => httpPost("/api/send-transaction", data),
|
|
92
92
|
getPayments: () => httpGet("/api/send-transaction")
|
|
@@ -119,8 +119,12 @@ var Ariari = class {
|
|
|
119
119
|
return new Payment(res.id);
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
+
|
|
123
|
+
// src/index.ts
|
|
124
|
+
var ariari = new Ariari();
|
|
122
125
|
export {
|
|
123
126
|
Ariari,
|
|
124
127
|
Payment,
|
|
125
|
-
Task
|
|
128
|
+
Task,
|
|
129
|
+
ariari as default
|
|
126
130
|
};
|