@zernio/node 0.2.1502 → 0.2.1504
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 +5 -1
- package/dist/index.d.mts +317 -10
- package/dist/index.d.ts +317 -10
- package/dist/index.js +29 -1
- package/dist/index.mjs +29 -1
- package/package.json +1 -1
- package/src/client.ts +8 -0
- package/src/generated/sdk.gen.ts +96 -8
- package/src/generated/types.gen.ts +325 -9
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.1504",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -535,6 +535,18 @@ var getBalance = (options) => {
|
|
|
535
535
|
url: "/v1/balance"
|
|
536
536
|
});
|
|
537
537
|
};
|
|
538
|
+
var getAutoRecharge = (options) => {
|
|
539
|
+
return (options?.client ?? client).get({
|
|
540
|
+
...options,
|
|
541
|
+
url: "/v1/balance/auto-recharge"
|
|
542
|
+
});
|
|
543
|
+
};
|
|
544
|
+
var updateAutoRecharge = (options) => {
|
|
545
|
+
return (options?.client ?? client).patch({
|
|
546
|
+
...options,
|
|
547
|
+
url: "/v1/balance/auto-recharge"
|
|
548
|
+
});
|
|
549
|
+
};
|
|
538
550
|
var createTopup = (options) => {
|
|
539
551
|
return (options?.client ?? client).post({
|
|
540
552
|
...options,
|
|
@@ -547,12 +559,24 @@ var listTopups = (options) => {
|
|
|
547
559
|
url: "/v1/balance/top-ups"
|
|
548
560
|
});
|
|
549
561
|
};
|
|
562
|
+
var previewTopup = (options) => {
|
|
563
|
+
return (options?.client ?? client).post({
|
|
564
|
+
...options,
|
|
565
|
+
url: "/v1/balance/top-ups/preview"
|
|
566
|
+
});
|
|
567
|
+
};
|
|
550
568
|
var getTopupReceipt = (options) => {
|
|
551
569
|
return (options?.client ?? client).get({
|
|
552
570
|
...options,
|
|
553
571
|
url: "/v1/balance/top-ups/{topupId}/receipt"
|
|
554
572
|
});
|
|
555
573
|
};
|
|
574
|
+
var getTopupInvoice = (options) => {
|
|
575
|
+
return (options?.client ?? client).get({
|
|
576
|
+
...options,
|
|
577
|
+
url: "/v1/balance/top-ups/{topupId}/invoice"
|
|
578
|
+
});
|
|
579
|
+
};
|
|
556
580
|
var getTopupStatement = (options) => {
|
|
557
581
|
return (options?.client ?? client).get({
|
|
558
582
|
...options,
|
|
@@ -7426,9 +7450,13 @@ var Zernio = class _Zernio {
|
|
|
7426
7450
|
*/
|
|
7427
7451
|
this.treasury = {
|
|
7428
7452
|
getBalance: this._bind(getBalance),
|
|
7453
|
+
getAutoRecharge: this._bind(getAutoRecharge),
|
|
7454
|
+
updateAutoRecharge: this._bind(updateAutoRecharge),
|
|
7429
7455
|
createTopup: this._bind(createTopup),
|
|
7430
7456
|
listTopups: this._bind(listTopups),
|
|
7457
|
+
previewTopup: this._bind(previewTopup),
|
|
7431
7458
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
7459
|
+
getTopupInvoice: this._bind(getTopupInvoice),
|
|
7432
7460
|
getTopupStatement: this._bind(getTopupStatement),
|
|
7433
7461
|
confirmTopup: this._bind(confirmTopup),
|
|
7434
7462
|
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.1504",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -504,6 +504,18 @@ var getBalance = (options) => {
|
|
|
504
504
|
url: "/v1/balance"
|
|
505
505
|
});
|
|
506
506
|
};
|
|
507
|
+
var getAutoRecharge = (options) => {
|
|
508
|
+
return (options?.client ?? client).get({
|
|
509
|
+
...options,
|
|
510
|
+
url: "/v1/balance/auto-recharge"
|
|
511
|
+
});
|
|
512
|
+
};
|
|
513
|
+
var updateAutoRecharge = (options) => {
|
|
514
|
+
return (options?.client ?? client).patch({
|
|
515
|
+
...options,
|
|
516
|
+
url: "/v1/balance/auto-recharge"
|
|
517
|
+
});
|
|
518
|
+
};
|
|
507
519
|
var createTopup = (options) => {
|
|
508
520
|
return (options?.client ?? client).post({
|
|
509
521
|
...options,
|
|
@@ -516,12 +528,24 @@ var listTopups = (options) => {
|
|
|
516
528
|
url: "/v1/balance/top-ups"
|
|
517
529
|
});
|
|
518
530
|
};
|
|
531
|
+
var previewTopup = (options) => {
|
|
532
|
+
return (options?.client ?? client).post({
|
|
533
|
+
...options,
|
|
534
|
+
url: "/v1/balance/top-ups/preview"
|
|
535
|
+
});
|
|
536
|
+
};
|
|
519
537
|
var getTopupReceipt = (options) => {
|
|
520
538
|
return (options?.client ?? client).get({
|
|
521
539
|
...options,
|
|
522
540
|
url: "/v1/balance/top-ups/{topupId}/receipt"
|
|
523
541
|
});
|
|
524
542
|
};
|
|
543
|
+
var getTopupInvoice = (options) => {
|
|
544
|
+
return (options?.client ?? client).get({
|
|
545
|
+
...options,
|
|
546
|
+
url: "/v1/balance/top-ups/{topupId}/invoice"
|
|
547
|
+
});
|
|
548
|
+
};
|
|
525
549
|
var getTopupStatement = (options) => {
|
|
526
550
|
return (options?.client ?? client).get({
|
|
527
551
|
...options,
|
|
@@ -7395,9 +7419,13 @@ var Zernio = class _Zernio {
|
|
|
7395
7419
|
*/
|
|
7396
7420
|
this.treasury = {
|
|
7397
7421
|
getBalance: this._bind(getBalance),
|
|
7422
|
+
getAutoRecharge: this._bind(getAutoRecharge),
|
|
7423
|
+
updateAutoRecharge: this._bind(updateAutoRecharge),
|
|
7398
7424
|
createTopup: this._bind(createTopup),
|
|
7399
7425
|
listTopups: this._bind(listTopups),
|
|
7426
|
+
previewTopup: this._bind(previewTopup),
|
|
7400
7427
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
7428
|
+
getTopupInvoice: this._bind(getTopupInvoice),
|
|
7401
7429
|
getTopupStatement: this._bind(getTopupStatement),
|
|
7402
7430
|
confirmTopup: this._bind(confirmTopup),
|
|
7403
7431
|
cancelTopup: this._bind(cancelTopup),
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -352,6 +352,7 @@ import {
|
|
|
352
352
|
getAnalytics,
|
|
353
353
|
getAnalyticsDashboard,
|
|
354
354
|
getAnalyticsDelta,
|
|
355
|
+
getAutoRecharge,
|
|
355
356
|
getBalance,
|
|
356
357
|
getBestTimeToPost,
|
|
357
358
|
getBilling,
|
|
@@ -527,6 +528,7 @@ import {
|
|
|
527
528
|
getTikTokDemographics,
|
|
528
529
|
getTikTokSmartPlusAdReview,
|
|
529
530
|
getTikTokSmartPlusMaterialReport,
|
|
531
|
+
getTopupInvoice,
|
|
530
532
|
getTopupReceipt,
|
|
531
533
|
getTopupStatement,
|
|
532
534
|
getTrackingTag,
|
|
@@ -829,6 +831,7 @@ import {
|
|
|
829
831
|
prepareMedia,
|
|
830
832
|
previewAdRule,
|
|
831
833
|
previewQueue,
|
|
834
|
+
previewTopup,
|
|
832
835
|
publishWhatsAppFlow,
|
|
833
836
|
purchasePhoneNumber,
|
|
834
837
|
purchaseWhatsAppPhoneNumber,
|
|
@@ -1035,6 +1038,7 @@ import {
|
|
|
1035
1038
|
updateAdSetStatus,
|
|
1036
1039
|
updateAdStatus,
|
|
1037
1040
|
updateAdTrackingTags,
|
|
1041
|
+
updateAutoRecharge,
|
|
1038
1042
|
updateBidStrategy,
|
|
1039
1043
|
updateBlog,
|
|
1040
1044
|
updateBlogArticle,
|
|
@@ -1379,9 +1383,13 @@ export class Zernio {
|
|
|
1379
1383
|
*/
|
|
1380
1384
|
treasury = {
|
|
1381
1385
|
getBalance: this._bind(getBalance),
|
|
1386
|
+
getAutoRecharge: this._bind(getAutoRecharge),
|
|
1387
|
+
updateAutoRecharge: this._bind(updateAutoRecharge),
|
|
1382
1388
|
createTopup: this._bind(createTopup),
|
|
1383
1389
|
listTopups: this._bind(listTopups),
|
|
1390
|
+
previewTopup: this._bind(previewTopup),
|
|
1384
1391
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
1392
|
+
getTopupInvoice: this._bind(getTopupInvoice),
|
|
1385
1393
|
getTopupStatement: this._bind(getTopupStatement),
|
|
1386
1394
|
confirmTopup: this._bind(confirmTopup),
|
|
1387
1395
|
cancelTopup: this._bind(cancelTopup),
|