@getlatedev/node 0.2.1787 → 0.2.1789
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 +7 -0
- package/dist/index.d.mts +200 -34
- package/dist/index.d.ts +200 -34
- package/dist/index.js +27 -1
- package/dist/index.mjs +27 -1
- package/package.json +1 -1
- package/src/client.ts +12 -0
- package/src/generated/sdk.gen.ts +53 -1
- package/src/generated/types.gen.ts +203 -33
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.1789",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -5574,6 +5574,24 @@ var undoAdRuleActivity = (options) => {
|
|
|
5574
5574
|
url: "/v1/ads/rules/activity/{activityId}/undo"
|
|
5575
5575
|
});
|
|
5576
5576
|
};
|
|
5577
|
+
var getAdChange = (options) => {
|
|
5578
|
+
return (options?.client ?? client).get({
|
|
5579
|
+
...options,
|
|
5580
|
+
url: "/v1/ads/changes/{changeId}"
|
|
5581
|
+
});
|
|
5582
|
+
};
|
|
5583
|
+
var discardAdChange = (options) => {
|
|
5584
|
+
return (options?.client ?? client).delete({
|
|
5585
|
+
...options,
|
|
5586
|
+
url: "/v1/ads/changes/{changeId}"
|
|
5587
|
+
});
|
|
5588
|
+
};
|
|
5589
|
+
var confirmAdChange = (options) => {
|
|
5590
|
+
return (options?.client ?? client).post({
|
|
5591
|
+
...options,
|
|
5592
|
+
url: "/v1/ads/changes/{changeId}/confirm"
|
|
5593
|
+
});
|
|
5594
|
+
};
|
|
5577
5595
|
var getAdRule = (options) => {
|
|
5578
5596
|
return (options?.client ?? client).get({
|
|
5579
5597
|
...options,
|
|
@@ -10133,6 +10151,14 @@ var Zernio = class _Zernio {
|
|
|
10133
10151
|
listAdRuleAlerts: this._bind(listAdRuleAlerts),
|
|
10134
10152
|
listAdRuleRuns: this._bind(listAdRuleRuns)
|
|
10135
10153
|
};
|
|
10154
|
+
/**
|
|
10155
|
+
* adchanges API
|
|
10156
|
+
*/
|
|
10157
|
+
this.adchanges = {
|
|
10158
|
+
getAdChange: this._bind(getAdChange),
|
|
10159
|
+
discardAdChange: this._bind(discardAdChange),
|
|
10160
|
+
confirmAdChange: this._bind(confirmAdChange)
|
|
10161
|
+
};
|
|
10136
10162
|
/**
|
|
10137
10163
|
* adcampaignresults API
|
|
10138
10164
|
*/
|
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.1789",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -5543,6 +5543,24 @@ var undoAdRuleActivity = (options) => {
|
|
|
5543
5543
|
url: "/v1/ads/rules/activity/{activityId}/undo"
|
|
5544
5544
|
});
|
|
5545
5545
|
};
|
|
5546
|
+
var getAdChange = (options) => {
|
|
5547
|
+
return (options?.client ?? client).get({
|
|
5548
|
+
...options,
|
|
5549
|
+
url: "/v1/ads/changes/{changeId}"
|
|
5550
|
+
});
|
|
5551
|
+
};
|
|
5552
|
+
var discardAdChange = (options) => {
|
|
5553
|
+
return (options?.client ?? client).delete({
|
|
5554
|
+
...options,
|
|
5555
|
+
url: "/v1/ads/changes/{changeId}"
|
|
5556
|
+
});
|
|
5557
|
+
};
|
|
5558
|
+
var confirmAdChange = (options) => {
|
|
5559
|
+
return (options?.client ?? client).post({
|
|
5560
|
+
...options,
|
|
5561
|
+
url: "/v1/ads/changes/{changeId}/confirm"
|
|
5562
|
+
});
|
|
5563
|
+
};
|
|
5546
5564
|
var getAdRule = (options) => {
|
|
5547
5565
|
return (options?.client ?? client).get({
|
|
5548
5566
|
...options,
|
|
@@ -10102,6 +10120,14 @@ var Zernio = class _Zernio {
|
|
|
10102
10120
|
listAdRuleAlerts: this._bind(listAdRuleAlerts),
|
|
10103
10121
|
listAdRuleRuns: this._bind(listAdRuleRuns)
|
|
10104
10122
|
};
|
|
10123
|
+
/**
|
|
10124
|
+
* adchanges API
|
|
10125
|
+
*/
|
|
10126
|
+
this.adchanges = {
|
|
10127
|
+
getAdChange: this._bind(getAdChange),
|
|
10128
|
+
discardAdChange: this._bind(discardAdChange),
|
|
10129
|
+
confirmAdChange: this._bind(confirmAdChange)
|
|
10130
|
+
};
|
|
10105
10131
|
/**
|
|
10106
10132
|
* adcampaignresults API
|
|
10107
10133
|
*/
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -91,6 +91,7 @@ import {
|
|
|
91
91
|
completeTelegramConnect,
|
|
92
92
|
completeWhatsAppPhoneSelection,
|
|
93
93
|
configureTikTokAdsBrandIdentity,
|
|
94
|
+
confirmAdChange,
|
|
94
95
|
confirmBrandedCallingAuthorizerEmail,
|
|
95
96
|
confirmPayoutBatch,
|
|
96
97
|
confirmTopup,
|
|
@@ -361,6 +362,7 @@ import {
|
|
|
361
362
|
disableVoiceOnNumber,
|
|
362
363
|
disableWhatsAppCalling,
|
|
363
364
|
disableWhatsAppCallingLegacy,
|
|
365
|
+
discardAdChange,
|
|
364
366
|
discoverImapSettings,
|
|
365
367
|
dismissAdsAlert,
|
|
366
368
|
dismissGoogleRecommendations,
|
|
@@ -409,6 +411,7 @@ import {
|
|
|
409
411
|
getAdCatalog,
|
|
410
412
|
getAdCatalogBatch,
|
|
411
413
|
getAdCatalogProduct,
|
|
414
|
+
getAdChange,
|
|
412
415
|
getAdComments,
|
|
413
416
|
getAdConversionDestination,
|
|
414
417
|
getAdConversionMetrics,
|
|
@@ -2922,6 +2925,15 @@ export class Zernio {
|
|
|
2922
2925
|
listAdRuleRuns: this._bind(listAdRuleRuns),
|
|
2923
2926
|
};
|
|
2924
2927
|
|
|
2928
|
+
/**
|
|
2929
|
+
* adchanges API
|
|
2930
|
+
*/
|
|
2931
|
+
adchanges = {
|
|
2932
|
+
getAdChange: this._bind(getAdChange),
|
|
2933
|
+
discardAdChange: this._bind(discardAdChange),
|
|
2934
|
+
confirmAdChange: this._bind(confirmAdChange),
|
|
2935
|
+
};
|
|
2936
|
+
|
|
2925
2937
|
/**
|
|
2926
2938
|
* adcampaignresults API
|
|
2927
2939
|
*/
|