@getlatedev/node 0.2.1715 → 0.2.1717
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 +30 -3
- package/dist/index.d.ts +30 -3
- 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 +29 -1
- package/src/generated/types.gen.ts +32 -2
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.1717",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -5334,6 +5334,18 @@ var getCampaignResultsTotals = (options) => {
|
|
|
5334
5334
|
url: "/v1/ads/campaign-results/totals"
|
|
5335
5335
|
});
|
|
5336
5336
|
};
|
|
5337
|
+
var getCampaignResultEvents = (options) => {
|
|
5338
|
+
return (options?.client ?? client).get({
|
|
5339
|
+
...options,
|
|
5340
|
+
url: "/v1/ads/campaign-results/events"
|
|
5341
|
+
});
|
|
5342
|
+
};
|
|
5343
|
+
var setCampaignResultEvents = (options) => {
|
|
5344
|
+
return (options?.client ?? client).put({
|
|
5345
|
+
...options,
|
|
5346
|
+
url: "/v1/ads/campaign-results/events"
|
|
5347
|
+
});
|
|
5348
|
+
};
|
|
5337
5349
|
var listCampaignResultMetrics = (options) => {
|
|
5338
5350
|
return (options?.client ?? client).get({
|
|
5339
5351
|
...options,
|
|
@@ -9604,6 +9616,8 @@ var Zernio = class _Zernio {
|
|
|
9604
9616
|
listCampaignResults: this._bind(listCampaignResults),
|
|
9605
9617
|
getCampaignResultsUpload: this._bind(getCampaignResultsUpload),
|
|
9606
9618
|
getCampaignResultsTotals: this._bind(getCampaignResultsTotals),
|
|
9619
|
+
getCampaignResultEvents: this._bind(getCampaignResultEvents),
|
|
9620
|
+
setCampaignResultEvents: this._bind(setCampaignResultEvents),
|
|
9607
9621
|
listCampaignResultMetrics: this._bind(listCampaignResultMetrics),
|
|
9608
9622
|
setCampaignResultMetric: this._bind(setCampaignResultMetric)
|
|
9609
9623
|
};
|
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.1717",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -5303,6 +5303,18 @@ var getCampaignResultsTotals = (options) => {
|
|
|
5303
5303
|
url: "/v1/ads/campaign-results/totals"
|
|
5304
5304
|
});
|
|
5305
5305
|
};
|
|
5306
|
+
var getCampaignResultEvents = (options) => {
|
|
5307
|
+
return (options?.client ?? client).get({
|
|
5308
|
+
...options,
|
|
5309
|
+
url: "/v1/ads/campaign-results/events"
|
|
5310
|
+
});
|
|
5311
|
+
};
|
|
5312
|
+
var setCampaignResultEvents = (options) => {
|
|
5313
|
+
return (options?.client ?? client).put({
|
|
5314
|
+
...options,
|
|
5315
|
+
url: "/v1/ads/campaign-results/events"
|
|
5316
|
+
});
|
|
5317
|
+
};
|
|
5306
5318
|
var listCampaignResultMetrics = (options) => {
|
|
5307
5319
|
return (options?.client ?? client).get({
|
|
5308
5320
|
...options,
|
|
@@ -9573,6 +9585,8 @@ var Zernio = class _Zernio {
|
|
|
9573
9585
|
listCampaignResults: this._bind(listCampaignResults),
|
|
9574
9586
|
getCampaignResultsUpload: this._bind(getCampaignResultsUpload),
|
|
9575
9587
|
getCampaignResultsTotals: this._bind(getCampaignResultsTotals),
|
|
9588
|
+
getCampaignResultEvents: this._bind(getCampaignResultEvents),
|
|
9589
|
+
setCampaignResultEvents: this._bind(setCampaignResultEvents),
|
|
9576
9590
|
listCampaignResultMetrics: this._bind(listCampaignResultMetrics),
|
|
9577
9591
|
setCampaignResultMetric: this._bind(setCampaignResultMetric)
|
|
9578
9592
|
};
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -446,6 +446,7 @@ import {
|
|
|
446
446
|
getCampaignDraft,
|
|
447
447
|
getCampaignParticipant,
|
|
448
448
|
getCampaignReport,
|
|
449
|
+
getCampaignResultEvents,
|
|
449
450
|
getCampaignResultsTotals,
|
|
450
451
|
getCampaignResultsUpload,
|
|
451
452
|
getCampaignSubmission,
|
|
@@ -1100,6 +1101,7 @@ import {
|
|
|
1100
1101
|
sendWhatsAppConversion,
|
|
1101
1102
|
sendWhatsAppFlowMessage,
|
|
1102
1103
|
setBusinessAgentConnectorCredentials,
|
|
1104
|
+
setCampaignResultEvents,
|
|
1103
1105
|
setCampaignResultMetric,
|
|
1104
1106
|
setCommentModeration,
|
|
1105
1107
|
setCommerceCollectionMetafields,
|
|
@@ -2786,6 +2788,8 @@ export class Zernio {
|
|
|
2786
2788
|
listCampaignResults: this._bind(listCampaignResults),
|
|
2787
2789
|
getCampaignResultsUpload: this._bind(getCampaignResultsUpload),
|
|
2788
2790
|
getCampaignResultsTotals: this._bind(getCampaignResultsTotals),
|
|
2791
|
+
getCampaignResultEvents: this._bind(getCampaignResultEvents),
|
|
2792
|
+
setCampaignResultEvents: this._bind(setCampaignResultEvents),
|
|
2789
2793
|
listCampaignResultMetrics: this._bind(listCampaignResultMetrics),
|
|
2790
2794
|
setCampaignResultMetric: this._bind(setCampaignResultMetric),
|
|
2791
2795
|
};
|