@zernio/node 0.2.1840 → 0.2.1842
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 +145 -31
- package/dist/index.d.ts +145 -31
- 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 +47 -3
- package/src/generated/types.gen.ts +151 -30
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: "@zernio/node",
|
|
39
|
-
version: "0.2.
|
|
39
|
+
version: "0.2.1842",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -5622,12 +5622,24 @@ var getAdChange = (options) => {
|
|
|
5622
5622
|
url: "/v1/ads/changes/{changeId}"
|
|
5623
5623
|
});
|
|
5624
5624
|
};
|
|
5625
|
+
var updateAdChange = (options) => {
|
|
5626
|
+
return (options?.client ?? client).patch({
|
|
5627
|
+
...options,
|
|
5628
|
+
url: "/v1/ads/changes/{changeId}"
|
|
5629
|
+
});
|
|
5630
|
+
};
|
|
5625
5631
|
var discardAdChange = (options) => {
|
|
5626
5632
|
return (options?.client ?? client).delete({
|
|
5627
5633
|
...options,
|
|
5628
5634
|
url: "/v1/ads/changes/{changeId}"
|
|
5629
5635
|
});
|
|
5630
5636
|
};
|
|
5637
|
+
var restageAdChange = (options) => {
|
|
5638
|
+
return (options?.client ?? client).post({
|
|
5639
|
+
...options,
|
|
5640
|
+
url: "/v1/ads/changes/{changeId}/restage"
|
|
5641
|
+
});
|
|
5642
|
+
};
|
|
5631
5643
|
var confirmAdChange = (options) => {
|
|
5632
5644
|
return (options?.client ?? client).post({
|
|
5633
5645
|
...options,
|
|
@@ -10205,7 +10217,9 @@ var Zernio = class _Zernio {
|
|
|
10205
10217
|
this.adchanges = {
|
|
10206
10218
|
listAdChanges: this._bind(listAdChanges),
|
|
10207
10219
|
getAdChange: this._bind(getAdChange),
|
|
10220
|
+
updateAdChange: this._bind(updateAdChange),
|
|
10208
10221
|
discardAdChange: this._bind(discardAdChange),
|
|
10222
|
+
restageAdChange: this._bind(restageAdChange),
|
|
10209
10223
|
confirmAdChange: this._bind(confirmAdChange)
|
|
10210
10224
|
};
|
|
10211
10225
|
/**
|
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: "@zernio/node",
|
|
8
|
-
version: "0.2.
|
|
8
|
+
version: "0.2.1842",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -5591,12 +5591,24 @@ var getAdChange = (options) => {
|
|
|
5591
5591
|
url: "/v1/ads/changes/{changeId}"
|
|
5592
5592
|
});
|
|
5593
5593
|
};
|
|
5594
|
+
var updateAdChange = (options) => {
|
|
5595
|
+
return (options?.client ?? client).patch({
|
|
5596
|
+
...options,
|
|
5597
|
+
url: "/v1/ads/changes/{changeId}"
|
|
5598
|
+
});
|
|
5599
|
+
};
|
|
5594
5600
|
var discardAdChange = (options) => {
|
|
5595
5601
|
return (options?.client ?? client).delete({
|
|
5596
5602
|
...options,
|
|
5597
5603
|
url: "/v1/ads/changes/{changeId}"
|
|
5598
5604
|
});
|
|
5599
5605
|
};
|
|
5606
|
+
var restageAdChange = (options) => {
|
|
5607
|
+
return (options?.client ?? client).post({
|
|
5608
|
+
...options,
|
|
5609
|
+
url: "/v1/ads/changes/{changeId}/restage"
|
|
5610
|
+
});
|
|
5611
|
+
};
|
|
5600
5612
|
var confirmAdChange = (options) => {
|
|
5601
5613
|
return (options?.client ?? client).post({
|
|
5602
5614
|
...options,
|
|
@@ -10174,7 +10186,9 @@ var Zernio = class _Zernio {
|
|
|
10174
10186
|
this.adchanges = {
|
|
10175
10187
|
listAdChanges: this._bind(listAdChanges),
|
|
10176
10188
|
getAdChange: this._bind(getAdChange),
|
|
10189
|
+
updateAdChange: this._bind(updateAdChange),
|
|
10177
10190
|
discardAdChange: this._bind(discardAdChange),
|
|
10191
|
+
restageAdChange: this._bind(restageAdChange),
|
|
10178
10192
|
confirmAdChange: this._bind(confirmAdChange)
|
|
10179
10193
|
};
|
|
10180
10194
|
/**
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -1114,6 +1114,7 @@ import {
|
|
|
1114
1114
|
resetBusinessAgentBusinessInformation,
|
|
1115
1115
|
respondToPhoneNumberReviewer,
|
|
1116
1116
|
respondToSmsRegistrationReview,
|
|
1117
|
+
restageAdChange,
|
|
1117
1118
|
restateEvent,
|
|
1118
1119
|
restoreWorkflowVersion,
|
|
1119
1120
|
resyncPageWebhookSubscription,
|
|
@@ -1256,6 +1257,7 @@ import {
|
|
|
1256
1257
|
updateAdCampaignStatus,
|
|
1257
1258
|
updateAdCatalogProduct,
|
|
1258
1259
|
updateAdCatalogProductSet,
|
|
1260
|
+
updateAdChange,
|
|
1259
1261
|
updateAdConversionDestination,
|
|
1260
1262
|
updateAdConversionGoals,
|
|
1261
1263
|
updateAdCreative,
|
|
@@ -2944,7 +2946,9 @@ export class Zernio {
|
|
|
2944
2946
|
adchanges = {
|
|
2945
2947
|
listAdChanges: this._bind(listAdChanges),
|
|
2946
2948
|
getAdChange: this._bind(getAdChange),
|
|
2949
|
+
updateAdChange: this._bind(updateAdChange),
|
|
2947
2950
|
discardAdChange: this._bind(discardAdChange),
|
|
2951
|
+
restageAdChange: this._bind(restageAdChange),
|
|
2948
2952
|
confirmAdChange: this._bind(confirmAdChange),
|
|
2949
2953
|
};
|
|
2950
2954
|
|