@getlatedev/node 0.2.1397 → 0.2.1399
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 +4 -0
- package/dist/index.d.mts +231 -48
- package/dist/index.d.ts +231 -48
- 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 +110 -14
- package/src/generated/types.gen.ts +238 -47
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: "@getlatedev/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1399",
|
|
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,6 +547,18 @@ var getTopupReceipt = (options) => {
|
|
|
547
547
|
url: "/v1/balance/top-ups/{topupId}/receipt"
|
|
548
548
|
});
|
|
549
549
|
};
|
|
550
|
+
var confirmTopup = (options) => {
|
|
551
|
+
return (options?.client ?? client).post({
|
|
552
|
+
...options,
|
|
553
|
+
url: "/v1/balance/top-ups/{topupId}/confirm"
|
|
554
|
+
});
|
|
555
|
+
};
|
|
556
|
+
var cancelTopup = (options) => {
|
|
557
|
+
return (options?.client ?? client).post({
|
|
558
|
+
...options,
|
|
559
|
+
url: "/v1/balance/top-ups/{topupId}/cancel"
|
|
560
|
+
});
|
|
561
|
+
};
|
|
550
562
|
var listPayees = (options) => {
|
|
551
563
|
return (options?.client ?? client).get({
|
|
552
564
|
...options,
|
|
@@ -637,6 +649,12 @@ var getPayoutBatch = (options) => {
|
|
|
637
649
|
url: "/v1/payout-batches/{batchId}"
|
|
638
650
|
});
|
|
639
651
|
};
|
|
652
|
+
var confirmPayoutBatch = (options) => {
|
|
653
|
+
return (options?.client ?? client).post({
|
|
654
|
+
...options,
|
|
655
|
+
url: "/v1/payout-batches/{batchId}/confirm"
|
|
656
|
+
});
|
|
657
|
+
};
|
|
640
658
|
var cancelPayoutBatch = (options) => {
|
|
641
659
|
return (options?.client ?? client).post({
|
|
642
660
|
...options,
|
|
@@ -7062,6 +7080,12 @@ var removeCampaignParticipant = (options) => {
|
|
|
7062
7080
|
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/remove"
|
|
7063
7081
|
});
|
|
7064
7082
|
};
|
|
7083
|
+
var resendCampaignParticipantInvite = (options) => {
|
|
7084
|
+
return (options?.client ?? client).post({
|
|
7085
|
+
...options,
|
|
7086
|
+
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/resend-invite"
|
|
7087
|
+
});
|
|
7088
|
+
};
|
|
7065
7089
|
var settleCampaignParticipant = (options) => {
|
|
7066
7090
|
return (options?.client ?? client).post({
|
|
7067
7091
|
...options,
|
|
@@ -7320,12 +7344,15 @@ var Zernio = class _Zernio {
|
|
|
7320
7344
|
createTopup: this._bind(createTopup),
|
|
7321
7345
|
listTopups: this._bind(listTopups),
|
|
7322
7346
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
7347
|
+
confirmTopup: this._bind(confirmTopup),
|
|
7348
|
+
cancelTopup: this._bind(cancelTopup),
|
|
7323
7349
|
listPayees: this._bind(listPayees),
|
|
7324
7350
|
createPayeeOnboardingLink: this._bind(createPayeeOnboardingLink),
|
|
7325
7351
|
createTransfer: this._bind(createTransfer),
|
|
7326
7352
|
listTransfers: this._bind(listTransfers),
|
|
7327
7353
|
getTransfer: this._bind(getTransfer),
|
|
7328
7354
|
getPayoutBatch: this._bind(getPayoutBatch),
|
|
7355
|
+
confirmPayoutBatch: this._bind(confirmPayoutBatch),
|
|
7329
7356
|
cancelPayoutBatch: this._bind(cancelPayoutBatch)
|
|
7330
7357
|
};
|
|
7331
7358
|
/**
|
|
@@ -8789,6 +8816,7 @@ var Zernio = class _Zernio {
|
|
|
8789
8816
|
suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
|
|
8790
8817
|
reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
|
|
8791
8818
|
removeCampaignParticipant: this._bind(removeCampaignParticipant),
|
|
8819
|
+
resendCampaignParticipantInvite: this._bind(resendCampaignParticipantInvite),
|
|
8792
8820
|
settleCampaignParticipant: this._bind(settleCampaignParticipant),
|
|
8793
8821
|
createCampaignPayoutBatch: this._bind(createCampaignPayoutBatch),
|
|
8794
8822
|
listCampaignPayoutBatches: this._bind(listCampaignPayoutBatches),
|
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: "@getlatedev/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1399",
|
|
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,6 +516,18 @@ var getTopupReceipt = (options) => {
|
|
|
516
516
|
url: "/v1/balance/top-ups/{topupId}/receipt"
|
|
517
517
|
});
|
|
518
518
|
};
|
|
519
|
+
var confirmTopup = (options) => {
|
|
520
|
+
return (options?.client ?? client).post({
|
|
521
|
+
...options,
|
|
522
|
+
url: "/v1/balance/top-ups/{topupId}/confirm"
|
|
523
|
+
});
|
|
524
|
+
};
|
|
525
|
+
var cancelTopup = (options) => {
|
|
526
|
+
return (options?.client ?? client).post({
|
|
527
|
+
...options,
|
|
528
|
+
url: "/v1/balance/top-ups/{topupId}/cancel"
|
|
529
|
+
});
|
|
530
|
+
};
|
|
519
531
|
var listPayees = (options) => {
|
|
520
532
|
return (options?.client ?? client).get({
|
|
521
533
|
...options,
|
|
@@ -606,6 +618,12 @@ var getPayoutBatch = (options) => {
|
|
|
606
618
|
url: "/v1/payout-batches/{batchId}"
|
|
607
619
|
});
|
|
608
620
|
};
|
|
621
|
+
var confirmPayoutBatch = (options) => {
|
|
622
|
+
return (options?.client ?? client).post({
|
|
623
|
+
...options,
|
|
624
|
+
url: "/v1/payout-batches/{batchId}/confirm"
|
|
625
|
+
});
|
|
626
|
+
};
|
|
609
627
|
var cancelPayoutBatch = (options) => {
|
|
610
628
|
return (options?.client ?? client).post({
|
|
611
629
|
...options,
|
|
@@ -7031,6 +7049,12 @@ var removeCampaignParticipant = (options) => {
|
|
|
7031
7049
|
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/remove"
|
|
7032
7050
|
});
|
|
7033
7051
|
};
|
|
7052
|
+
var resendCampaignParticipantInvite = (options) => {
|
|
7053
|
+
return (options?.client ?? client).post({
|
|
7054
|
+
...options,
|
|
7055
|
+
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/resend-invite"
|
|
7056
|
+
});
|
|
7057
|
+
};
|
|
7034
7058
|
var settleCampaignParticipant = (options) => {
|
|
7035
7059
|
return (options?.client ?? client).post({
|
|
7036
7060
|
...options,
|
|
@@ -7289,12 +7313,15 @@ var Zernio = class _Zernio {
|
|
|
7289
7313
|
createTopup: this._bind(createTopup),
|
|
7290
7314
|
listTopups: this._bind(listTopups),
|
|
7291
7315
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
7316
|
+
confirmTopup: this._bind(confirmTopup),
|
|
7317
|
+
cancelTopup: this._bind(cancelTopup),
|
|
7292
7318
|
listPayees: this._bind(listPayees),
|
|
7293
7319
|
createPayeeOnboardingLink: this._bind(createPayeeOnboardingLink),
|
|
7294
7320
|
createTransfer: this._bind(createTransfer),
|
|
7295
7321
|
listTransfers: this._bind(listTransfers),
|
|
7296
7322
|
getTransfer: this._bind(getTransfer),
|
|
7297
7323
|
getPayoutBatch: this._bind(getPayoutBatch),
|
|
7324
|
+
confirmPayoutBatch: this._bind(confirmPayoutBatch),
|
|
7298
7325
|
cancelPayoutBatch: this._bind(cancelPayoutBatch)
|
|
7299
7326
|
};
|
|
7300
7327
|
/**
|
|
@@ -8758,6 +8785,7 @@ var Zernio = class _Zernio {
|
|
|
8758
8785
|
suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
|
|
8759
8786
|
reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
|
|
8760
8787
|
removeCampaignParticipant: this._bind(removeCampaignParticipant),
|
|
8788
|
+
resendCampaignParticipantInvite: this._bind(resendCampaignParticipantInvite),
|
|
8761
8789
|
settleCampaignParticipant: this._bind(settleCampaignParticipant),
|
|
8762
8790
|
createCampaignPayoutBatch: this._bind(createCampaignPayoutBatch),
|
|
8763
8791
|
listCampaignPayoutBatches: this._bind(listCampaignPayoutBatches),
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -57,6 +57,7 @@ import {
|
|
|
57
57
|
cancelPayoutBatch,
|
|
58
58
|
cancelPhoneNumberPortIn,
|
|
59
59
|
cancelRfReservation,
|
|
60
|
+
cancelTopup,
|
|
60
61
|
cancelTrackingWindow,
|
|
61
62
|
changeCommerceCollectionChannels,
|
|
62
63
|
changeCommerceCollectionProducts,
|
|
@@ -76,6 +77,8 @@ import {
|
|
|
76
77
|
completeWhatsAppPhoneSelection,
|
|
77
78
|
configureTikTokAdsBrandIdentity,
|
|
78
79
|
confirmBrandedCallingAuthorizerEmail,
|
|
80
|
+
confirmPayoutBatch,
|
|
81
|
+
confirmTopup,
|
|
79
82
|
connectAds,
|
|
80
83
|
connectBlueskyCredentials,
|
|
81
84
|
connectDiscordChannel,
|
|
@@ -883,6 +886,7 @@ import {
|
|
|
883
886
|
requestSmsSenderIdLimitIncrease,
|
|
884
887
|
requestWhatsAppVerificationCode,
|
|
885
888
|
resendBrandedCallingAuthorizerCode,
|
|
889
|
+
resendCampaignParticipantInvite,
|
|
886
890
|
resendSmsRegistrationOtp,
|
|
887
891
|
reserveImessageAvailableNumber,
|
|
888
892
|
reserveRfPrediction,
|
|
@@ -1340,12 +1344,15 @@ export class Zernio {
|
|
|
1340
1344
|
createTopup: this._bind(createTopup),
|
|
1341
1345
|
listTopups: this._bind(listTopups),
|
|
1342
1346
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
1347
|
+
confirmTopup: this._bind(confirmTopup),
|
|
1348
|
+
cancelTopup: this._bind(cancelTopup),
|
|
1343
1349
|
listPayees: this._bind(listPayees),
|
|
1344
1350
|
createPayeeOnboardingLink: this._bind(createPayeeOnboardingLink),
|
|
1345
1351
|
createTransfer: this._bind(createTransfer),
|
|
1346
1352
|
listTransfers: this._bind(listTransfers),
|
|
1347
1353
|
getTransfer: this._bind(getTransfer),
|
|
1348
1354
|
getPayoutBatch: this._bind(getPayoutBatch),
|
|
1355
|
+
confirmPayoutBatch: this._bind(confirmPayoutBatch),
|
|
1349
1356
|
cancelPayoutBatch: this._bind(cancelPayoutBatch),
|
|
1350
1357
|
};
|
|
1351
1358
|
|
|
@@ -2888,6 +2895,7 @@ export class Zernio {
|
|
|
2888
2895
|
suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
|
|
2889
2896
|
reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
|
|
2890
2897
|
removeCampaignParticipant: this._bind(removeCampaignParticipant),
|
|
2898
|
+
resendCampaignParticipantInvite: this._bind(resendCampaignParticipantInvite),
|
|
2891
2899
|
settleCampaignParticipant: this._bind(settleCampaignParticipant),
|
|
2892
2900
|
createCampaignPayoutBatch: this._bind(createCampaignPayoutBatch),
|
|
2893
2901
|
listCampaignPayoutBatches: this._bind(listCampaignPayoutBatches),
|