@getlatedev/node 0.2.1427 → 0.2.1430
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 -0
- package/dist/index.d.mts +142 -7
- package/dist/index.d.ts +142 -7
- package/dist/index.js +22 -1
- package/dist/index.mjs +22 -1
- package/package.json +1 -1
- package/src/client.ts +6 -0
- package/src/generated/sdk.gen.ts +68 -3
- package/src/generated/types.gen.ts +147 -6
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.1430",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -541,6 +541,12 @@ var listTopups = (options) => {
|
|
|
541
541
|
url: "/v1/balance/top-ups"
|
|
542
542
|
});
|
|
543
543
|
};
|
|
544
|
+
var getTopupCardFee = (options) => {
|
|
545
|
+
return (options?.client ?? client).get({
|
|
546
|
+
...options,
|
|
547
|
+
url: "/v1/balance/top-ups/card-fee"
|
|
548
|
+
});
|
|
549
|
+
};
|
|
544
550
|
var getTopupReceipt = (options) => {
|
|
545
551
|
return (options?.client ?? client).get({
|
|
546
552
|
...options,
|
|
@@ -619,6 +625,12 @@ var submitCreatorPost = (options) => {
|
|
|
619
625
|
url: "/public/creator-campaigns/{token}/submissions"
|
|
620
626
|
});
|
|
621
627
|
};
|
|
628
|
+
var removeCreatorAccount = (options) => {
|
|
629
|
+
return (options?.client ?? client).delete({
|
|
630
|
+
...options,
|
|
631
|
+
url: "/public/creator-campaigns/{token}/accounts/{accountId}"
|
|
632
|
+
});
|
|
633
|
+
};
|
|
622
634
|
var getCreatorPayouts = (options) => {
|
|
623
635
|
return (options?.client ?? client).get({
|
|
624
636
|
...options,
|
|
@@ -7116,6 +7128,12 @@ var removeCampaignParticipant = (options) => {
|
|
|
7116
7128
|
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/remove"
|
|
7117
7129
|
});
|
|
7118
7130
|
};
|
|
7131
|
+
var moveCampaignParticipant = (options) => {
|
|
7132
|
+
return (options?.client ?? client).post({
|
|
7133
|
+
...options,
|
|
7134
|
+
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/move"
|
|
7135
|
+
});
|
|
7136
|
+
};
|
|
7119
7137
|
var resendCampaignParticipantInvite = (options) => {
|
|
7120
7138
|
return (options?.client ?? client).post({
|
|
7121
7139
|
...options,
|
|
@@ -7379,6 +7397,7 @@ var Zernio = class _Zernio {
|
|
|
7379
7397
|
getBalance: this._bind(getBalance),
|
|
7380
7398
|
createTopup: this._bind(createTopup),
|
|
7381
7399
|
listTopups: this._bind(listTopups),
|
|
7400
|
+
getTopupCardFee: this._bind(getTopupCardFee),
|
|
7382
7401
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
7383
7402
|
confirmTopup: this._bind(confirmTopup),
|
|
7384
7403
|
cancelTopup: this._bind(cancelTopup),
|
|
@@ -7400,6 +7419,7 @@ var Zernio = class _Zernio {
|
|
|
7400
7419
|
joinCreatorCampaign: this._bind(joinCreatorCampaign),
|
|
7401
7420
|
startCreatorConnect: this._bind(startCreatorConnect),
|
|
7402
7421
|
submitCreatorPost: this._bind(submitCreatorPost),
|
|
7422
|
+
removeCreatorAccount: this._bind(removeCreatorAccount),
|
|
7403
7423
|
getCreatorPayouts: this._bind(getCreatorPayouts),
|
|
7404
7424
|
startCreatorPayouts: this._bind(startCreatorPayouts),
|
|
7405
7425
|
createCreatorPayoutLogin: this._bind(createCreatorPayoutLogin),
|
|
@@ -8858,6 +8878,7 @@ var Zernio = class _Zernio {
|
|
|
8858
8878
|
suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
|
|
8859
8879
|
reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
|
|
8860
8880
|
removeCampaignParticipant: this._bind(removeCampaignParticipant),
|
|
8881
|
+
moveCampaignParticipant: this._bind(moveCampaignParticipant),
|
|
8861
8882
|
resendCampaignParticipantInvite: this._bind(resendCampaignParticipantInvite),
|
|
8862
8883
|
settleCampaignParticipant: this._bind(settleCampaignParticipant),
|
|
8863
8884
|
createCampaignPayoutBatch: this._bind(createCampaignPayoutBatch),
|
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.1430",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -510,6 +510,12 @@ var listTopups = (options) => {
|
|
|
510
510
|
url: "/v1/balance/top-ups"
|
|
511
511
|
});
|
|
512
512
|
};
|
|
513
|
+
var getTopupCardFee = (options) => {
|
|
514
|
+
return (options?.client ?? client).get({
|
|
515
|
+
...options,
|
|
516
|
+
url: "/v1/balance/top-ups/card-fee"
|
|
517
|
+
});
|
|
518
|
+
};
|
|
513
519
|
var getTopupReceipt = (options) => {
|
|
514
520
|
return (options?.client ?? client).get({
|
|
515
521
|
...options,
|
|
@@ -588,6 +594,12 @@ var submitCreatorPost = (options) => {
|
|
|
588
594
|
url: "/public/creator-campaigns/{token}/submissions"
|
|
589
595
|
});
|
|
590
596
|
};
|
|
597
|
+
var removeCreatorAccount = (options) => {
|
|
598
|
+
return (options?.client ?? client).delete({
|
|
599
|
+
...options,
|
|
600
|
+
url: "/public/creator-campaigns/{token}/accounts/{accountId}"
|
|
601
|
+
});
|
|
602
|
+
};
|
|
591
603
|
var getCreatorPayouts = (options) => {
|
|
592
604
|
return (options?.client ?? client).get({
|
|
593
605
|
...options,
|
|
@@ -7085,6 +7097,12 @@ var removeCampaignParticipant = (options) => {
|
|
|
7085
7097
|
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/remove"
|
|
7086
7098
|
});
|
|
7087
7099
|
};
|
|
7100
|
+
var moveCampaignParticipant = (options) => {
|
|
7101
|
+
return (options?.client ?? client).post({
|
|
7102
|
+
...options,
|
|
7103
|
+
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/move"
|
|
7104
|
+
});
|
|
7105
|
+
};
|
|
7088
7106
|
var resendCampaignParticipantInvite = (options) => {
|
|
7089
7107
|
return (options?.client ?? client).post({
|
|
7090
7108
|
...options,
|
|
@@ -7348,6 +7366,7 @@ var Zernio = class _Zernio {
|
|
|
7348
7366
|
getBalance: this._bind(getBalance),
|
|
7349
7367
|
createTopup: this._bind(createTopup),
|
|
7350
7368
|
listTopups: this._bind(listTopups),
|
|
7369
|
+
getTopupCardFee: this._bind(getTopupCardFee),
|
|
7351
7370
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
7352
7371
|
confirmTopup: this._bind(confirmTopup),
|
|
7353
7372
|
cancelTopup: this._bind(cancelTopup),
|
|
@@ -7369,6 +7388,7 @@ var Zernio = class _Zernio {
|
|
|
7369
7388
|
joinCreatorCampaign: this._bind(joinCreatorCampaign),
|
|
7370
7389
|
startCreatorConnect: this._bind(startCreatorConnect),
|
|
7371
7390
|
submitCreatorPost: this._bind(submitCreatorPost),
|
|
7391
|
+
removeCreatorAccount: this._bind(removeCreatorAccount),
|
|
7372
7392
|
getCreatorPayouts: this._bind(getCreatorPayouts),
|
|
7373
7393
|
startCreatorPayouts: this._bind(startCreatorPayouts),
|
|
7374
7394
|
createCreatorPayoutLogin: this._bind(createCreatorPayoutLogin),
|
|
@@ -8827,6 +8847,7 @@ var Zernio = class _Zernio {
|
|
|
8827
8847
|
suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
|
|
8828
8848
|
reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
|
|
8829
8849
|
removeCampaignParticipant: this._bind(removeCampaignParticipant),
|
|
8850
|
+
moveCampaignParticipant: this._bind(moveCampaignParticipant),
|
|
8830
8851
|
resendCampaignParticipantInvite: this._bind(resendCampaignParticipantInvite),
|
|
8831
8852
|
settleCampaignParticipant: this._bind(settleCampaignParticipant),
|
|
8832
8853
|
createCampaignPayoutBatch: this._bind(createCampaignPayoutBatch),
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -525,6 +525,7 @@ import {
|
|
|
525
525
|
getTikTokCreatorInfo,
|
|
526
526
|
getTikTokSmartPlusAdReview,
|
|
527
527
|
getTikTokSmartPlusMaterialReport,
|
|
528
|
+
getTopupCardFee,
|
|
528
529
|
getTopupReceipt,
|
|
529
530
|
getTrackingTag,
|
|
530
531
|
getTrackingTagDiagnostics,
|
|
@@ -808,6 +809,7 @@ import {
|
|
|
808
809
|
lookupSmsNumber,
|
|
809
810
|
markConversationRead,
|
|
810
811
|
moveAccountToProfile,
|
|
812
|
+
moveCampaignParticipant,
|
|
811
813
|
moveWhatsAppNumberToProfile,
|
|
812
814
|
onboardBusinessAgent,
|
|
813
815
|
openTrackingWindow,
|
|
@@ -855,6 +857,7 @@ import {
|
|
|
855
857
|
removeCommerceProductImages,
|
|
856
858
|
removeConversationLabel,
|
|
857
859
|
removeConversionAssociations,
|
|
860
|
+
removeCreatorAccount,
|
|
858
861
|
removeCustomConversionGoal,
|
|
859
862
|
removeDiscordMemberRole,
|
|
860
863
|
removeGoogleAssetGroup,
|
|
@@ -1349,6 +1352,7 @@ export class Zernio {
|
|
|
1349
1352
|
getBalance: this._bind(getBalance),
|
|
1350
1353
|
createTopup: this._bind(createTopup),
|
|
1351
1354
|
listTopups: this._bind(listTopups),
|
|
1355
|
+
getTopupCardFee: this._bind(getTopupCardFee),
|
|
1352
1356
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
1353
1357
|
confirmTopup: this._bind(confirmTopup),
|
|
1354
1358
|
cancelTopup: this._bind(cancelTopup),
|
|
@@ -1371,6 +1375,7 @@ export class Zernio {
|
|
|
1371
1375
|
joinCreatorCampaign: this._bind(joinCreatorCampaign),
|
|
1372
1376
|
startCreatorConnect: this._bind(startCreatorConnect),
|
|
1373
1377
|
submitCreatorPost: this._bind(submitCreatorPost),
|
|
1378
|
+
removeCreatorAccount: this._bind(removeCreatorAccount),
|
|
1374
1379
|
getCreatorPayouts: this._bind(getCreatorPayouts),
|
|
1375
1380
|
startCreatorPayouts: this._bind(startCreatorPayouts),
|
|
1376
1381
|
createCreatorPayoutLogin: this._bind(createCreatorPayoutLogin),
|
|
@@ -2907,6 +2912,7 @@ export class Zernio {
|
|
|
2907
2912
|
suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
|
|
2908
2913
|
reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
|
|
2909
2914
|
removeCampaignParticipant: this._bind(removeCampaignParticipant),
|
|
2915
|
+
moveCampaignParticipant: this._bind(moveCampaignParticipant),
|
|
2910
2916
|
resendCampaignParticipantInvite: this._bind(resendCampaignParticipantInvite),
|
|
2911
2917
|
settleCampaignParticipant: this._bind(settleCampaignParticipant),
|
|
2912
2918
|
createCampaignPayoutBatch: this._bind(createCampaignPayoutBatch),
|