@getlatedev/node 0.2.1428 → 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 +2 -0
- package/dist/index.d.mts +100 -5
- package/dist/index.d.ts +100 -5
- 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 +50 -3
- package/src/generated/types.gen.ts +103 -4
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,
|
|
@@ -7122,6 +7128,12 @@ var removeCampaignParticipant = (options) => {
|
|
|
7122
7128
|
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/remove"
|
|
7123
7129
|
});
|
|
7124
7130
|
};
|
|
7131
|
+
var moveCampaignParticipant = (options) => {
|
|
7132
|
+
return (options?.client ?? client).post({
|
|
7133
|
+
...options,
|
|
7134
|
+
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/move"
|
|
7135
|
+
});
|
|
7136
|
+
};
|
|
7125
7137
|
var resendCampaignParticipantInvite = (options) => {
|
|
7126
7138
|
return (options?.client ?? client).post({
|
|
7127
7139
|
...options,
|
|
@@ -7385,6 +7397,7 @@ var Zernio = class _Zernio {
|
|
|
7385
7397
|
getBalance: this._bind(getBalance),
|
|
7386
7398
|
createTopup: this._bind(createTopup),
|
|
7387
7399
|
listTopups: this._bind(listTopups),
|
|
7400
|
+
getTopupCardFee: this._bind(getTopupCardFee),
|
|
7388
7401
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
7389
7402
|
confirmTopup: this._bind(confirmTopup),
|
|
7390
7403
|
cancelTopup: this._bind(cancelTopup),
|
|
@@ -8865,6 +8878,7 @@ var Zernio = class _Zernio {
|
|
|
8865
8878
|
suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
|
|
8866
8879
|
reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
|
|
8867
8880
|
removeCampaignParticipant: this._bind(removeCampaignParticipant),
|
|
8881
|
+
moveCampaignParticipant: this._bind(moveCampaignParticipant),
|
|
8868
8882
|
resendCampaignParticipantInvite: this._bind(resendCampaignParticipantInvite),
|
|
8869
8883
|
settleCampaignParticipant: this._bind(settleCampaignParticipant),
|
|
8870
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,
|
|
@@ -7091,6 +7097,12 @@ var removeCampaignParticipant = (options) => {
|
|
|
7091
7097
|
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/remove"
|
|
7092
7098
|
});
|
|
7093
7099
|
};
|
|
7100
|
+
var moveCampaignParticipant = (options) => {
|
|
7101
|
+
return (options?.client ?? client).post({
|
|
7102
|
+
...options,
|
|
7103
|
+
url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/move"
|
|
7104
|
+
});
|
|
7105
|
+
};
|
|
7094
7106
|
var resendCampaignParticipantInvite = (options) => {
|
|
7095
7107
|
return (options?.client ?? client).post({
|
|
7096
7108
|
...options,
|
|
@@ -7354,6 +7366,7 @@ var Zernio = class _Zernio {
|
|
|
7354
7366
|
getBalance: this._bind(getBalance),
|
|
7355
7367
|
createTopup: this._bind(createTopup),
|
|
7356
7368
|
listTopups: this._bind(listTopups),
|
|
7369
|
+
getTopupCardFee: this._bind(getTopupCardFee),
|
|
7357
7370
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
7358
7371
|
confirmTopup: this._bind(confirmTopup),
|
|
7359
7372
|
cancelTopup: this._bind(cancelTopup),
|
|
@@ -8834,6 +8847,7 @@ var Zernio = class _Zernio {
|
|
|
8834
8847
|
suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
|
|
8835
8848
|
reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
|
|
8836
8849
|
removeCampaignParticipant: this._bind(removeCampaignParticipant),
|
|
8850
|
+
moveCampaignParticipant: this._bind(moveCampaignParticipant),
|
|
8837
8851
|
resendCampaignParticipantInvite: this._bind(resendCampaignParticipantInvite),
|
|
8838
8852
|
settleCampaignParticipant: this._bind(settleCampaignParticipant),
|
|
8839
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,
|
|
@@ -1350,6 +1352,7 @@ export class Zernio {
|
|
|
1350
1352
|
getBalance: this._bind(getBalance),
|
|
1351
1353
|
createTopup: this._bind(createTopup),
|
|
1352
1354
|
listTopups: this._bind(listTopups),
|
|
1355
|
+
getTopupCardFee: this._bind(getTopupCardFee),
|
|
1353
1356
|
getTopupReceipt: this._bind(getTopupReceipt),
|
|
1354
1357
|
confirmTopup: this._bind(confirmTopup),
|
|
1355
1358
|
cancelTopup: this._bind(cancelTopup),
|
|
@@ -2909,6 +2912,7 @@ export class Zernio {
|
|
|
2909
2912
|
suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
|
|
2910
2913
|
reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
|
|
2911
2914
|
removeCampaignParticipant: this._bind(removeCampaignParticipant),
|
|
2915
|
+
moveCampaignParticipant: this._bind(moveCampaignParticipant),
|
|
2912
2916
|
resendCampaignParticipantInvite: this._bind(resendCampaignParticipantInvite),
|
|
2913
2917
|
settleCampaignParticipant: this._bind(settleCampaignParticipant),
|
|
2914
2918
|
createCampaignPayoutBatch: this._bind(createCampaignPayoutBatch),
|