@zernio/node 0.2.1501 → 0.2.1503
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 +3 -1
- package/dist/index.d.mts +232 -11
- package/dist/index.d.ts +232 -11
- package/dist/index.js +15 -1
- package/dist/index.mjs +15 -1
- package/package.json +1 -1
- package/src/client.ts +4 -0
- package/src/generated/sdk.gen.ts +55 -8
- package/src/generated/types.gen.ts +235 -10
package/dist/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
36
36
|
// package.json
|
|
37
37
|
var package_default = {
|
|
38
38
|
name: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1503",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -547,12 +547,24 @@ var listTopups = (options) => {
|
|
|
547
547
|
url: "/v1/balance/top-ups"
|
|
548
548
|
});
|
|
549
549
|
};
|
|
550
|
+
var previewTopup = (options) => {
|
|
551
|
+
return (options?.client ?? client).post({
|
|
552
|
+
...options,
|
|
553
|
+
url: "/v1/balance/top-ups/preview"
|
|
554
|
+
});
|
|
555
|
+
};
|
|
550
556
|
var getTopupReceipt = (options) => {
|
|
551
557
|
return (options?.client ?? client).get({
|
|
552
558
|
...options,
|
|
553
559
|
url: "/v1/balance/top-ups/{topupId}/receipt"
|
|
554
560
|
});
|
|
555
561
|
};
|
|
562
|
+
var getTopupInvoice = (options) => {
|
|
563
|
+
return (options?.client ?? client).get({
|
|
564
|
+
...options,
|
|
565
|
+
url: "/v1/balance/top-ups/{topupId}/invoice"
|
|
566
|
+
});
|
|
567
|
+
};
|
|
556
568
|
var getTopupStatement = (options) => {
|
|
557
569
|
return (options?.client ?? client).get({
|
|
558
570
|
...options,
|
|
@@ -7428,7 +7440,9 @@ var Zernio = class _Zernio {
|
|
|
7428
7440
|
getBalance: this._bind(getBalance),
|
|
7429
7441
|
createTopup: this._bind(createTopup),
|
|
7430
7442
|
listTopups: this._bind(listTopups),
|
|
7443
|
+
previewTopup: this._bind(previewTopup),
|
|
7431
7444
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
7445
|
+
getTopupInvoice: this._bind(getTopupInvoice),
|
|
7432
7446
|
getTopupStatement: this._bind(getTopupStatement),
|
|
7433
7447
|
confirmTopup: this._bind(confirmTopup),
|
|
7434
7448
|
cancelTopup: this._bind(cancelTopup),
|
package/dist/index.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5
5
|
// package.json
|
|
6
6
|
var package_default = {
|
|
7
7
|
name: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1503",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -516,12 +516,24 @@ var listTopups = (options) => {
|
|
|
516
516
|
url: "/v1/balance/top-ups"
|
|
517
517
|
});
|
|
518
518
|
};
|
|
519
|
+
var previewTopup = (options) => {
|
|
520
|
+
return (options?.client ?? client).post({
|
|
521
|
+
...options,
|
|
522
|
+
url: "/v1/balance/top-ups/preview"
|
|
523
|
+
});
|
|
524
|
+
};
|
|
519
525
|
var getTopupReceipt = (options) => {
|
|
520
526
|
return (options?.client ?? client).get({
|
|
521
527
|
...options,
|
|
522
528
|
url: "/v1/balance/top-ups/{topupId}/receipt"
|
|
523
529
|
});
|
|
524
530
|
};
|
|
531
|
+
var getTopupInvoice = (options) => {
|
|
532
|
+
return (options?.client ?? client).get({
|
|
533
|
+
...options,
|
|
534
|
+
url: "/v1/balance/top-ups/{topupId}/invoice"
|
|
535
|
+
});
|
|
536
|
+
};
|
|
525
537
|
var getTopupStatement = (options) => {
|
|
526
538
|
return (options?.client ?? client).get({
|
|
527
539
|
...options,
|
|
@@ -7397,7 +7409,9 @@ var Zernio = class _Zernio {
|
|
|
7397
7409
|
getBalance: this._bind(getBalance),
|
|
7398
7410
|
createTopup: this._bind(createTopup),
|
|
7399
7411
|
listTopups: this._bind(listTopups),
|
|
7412
|
+
previewTopup: this._bind(previewTopup),
|
|
7400
7413
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
7414
|
+
getTopupInvoice: this._bind(getTopupInvoice),
|
|
7401
7415
|
getTopupStatement: this._bind(getTopupStatement),
|
|
7402
7416
|
confirmTopup: this._bind(confirmTopup),
|
|
7403
7417
|
cancelTopup: this._bind(cancelTopup),
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -527,6 +527,7 @@ import {
|
|
|
527
527
|
getTikTokDemographics,
|
|
528
528
|
getTikTokSmartPlusAdReview,
|
|
529
529
|
getTikTokSmartPlusMaterialReport,
|
|
530
|
+
getTopupInvoice,
|
|
530
531
|
getTopupReceipt,
|
|
531
532
|
getTopupStatement,
|
|
532
533
|
getTrackingTag,
|
|
@@ -829,6 +830,7 @@ import {
|
|
|
829
830
|
prepareMedia,
|
|
830
831
|
previewAdRule,
|
|
831
832
|
previewQueue,
|
|
833
|
+
previewTopup,
|
|
832
834
|
publishWhatsAppFlow,
|
|
833
835
|
purchasePhoneNumber,
|
|
834
836
|
purchaseWhatsAppPhoneNumber,
|
|
@@ -1381,7 +1383,9 @@ export class Zernio {
|
|
|
1381
1383
|
getBalance: this._bind(getBalance),
|
|
1382
1384
|
createTopup: this._bind(createTopup),
|
|
1383
1385
|
listTopups: this._bind(listTopups),
|
|
1386
|
+
previewTopup: this._bind(previewTopup),
|
|
1384
1387
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
1388
|
+
getTopupInvoice: this._bind(getTopupInvoice),
|
|
1385
1389
|
getTopupStatement: this._bind(getTopupStatement),
|
|
1386
1390
|
confirmTopup: this._bind(confirmTopup),
|
|
1387
1391
|
cancelTopup: this._bind(cancelTopup),
|