@getlatedev/node 0.2.1262 → 0.2.1264
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 +4 -2
- package/dist/index.d.mts +141 -13
- package/dist/index.d.ts +141 -13
- package/dist/index.js +19 -1
- package/dist/index.mjs +19 -1
- package/package.json +1 -1
- package/src/client.ts +8 -0
- package/src/generated/sdk.gen.ts +50 -7
- package/src/generated/types.gen.ts +140 -12
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.1264",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -4662,6 +4662,18 @@ var updateAdAccountManagerLink = (options) => {
|
|
|
4662
4662
|
url: "/v1/ads/accounts/manager-links"
|
|
4663
4663
|
});
|
|
4664
4664
|
};
|
|
4665
|
+
var getAdAccountBilling = (options) => {
|
|
4666
|
+
return (options?.client ?? client).get({
|
|
4667
|
+
...options,
|
|
4668
|
+
url: "/v1/ads/accounts/billing"
|
|
4669
|
+
});
|
|
4670
|
+
};
|
|
4671
|
+
var setUpAdAccountBilling = (options) => {
|
|
4672
|
+
return (options?.client ?? client).post({
|
|
4673
|
+
...options,
|
|
4674
|
+
url: "/v1/ads/accounts/billing"
|
|
4675
|
+
});
|
|
4676
|
+
};
|
|
4665
4677
|
var listAdAccountUserInvitations = (options) => {
|
|
4666
4678
|
return (options?.client ?? client).get({
|
|
4667
4679
|
...options,
|
|
@@ -7478,6 +7490,8 @@ var Zernio = class _Zernio {
|
|
|
7478
7490
|
getAdAccountHierarchy: this._bind(getAdAccountHierarchy),
|
|
7479
7491
|
inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
|
|
7480
7492
|
updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
|
|
7493
|
+
getAdAccountBilling: this._bind(getAdAccountBilling),
|
|
7494
|
+
setUpAdAccountBilling: this._bind(setUpAdAccountBilling),
|
|
7481
7495
|
listAdAccountUserInvitations: this._bind(listAdAccountUserInvitations),
|
|
7482
7496
|
inviteAdAccountUser: this._bind(inviteAdAccountUser),
|
|
7483
7497
|
revokeAdAccountUserInvitation: this._bind(revokeAdAccountUserInvitation),
|
|
@@ -8026,6 +8040,10 @@ var Zernio = class _Zernio {
|
|
|
8026
8040
|
inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
|
|
8027
8041
|
/** @deprecated Use `zernio.adaccounts.updateAdAccountManagerLink` instead. */
|
|
8028
8042
|
updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
|
|
8043
|
+
/** @deprecated Use `zernio.adaccounts.getAdAccountBilling` instead. */
|
|
8044
|
+
getAdAccountBilling: this._bind(getAdAccountBilling),
|
|
8045
|
+
/** @deprecated Use `zernio.adaccounts.setUpAdAccountBilling` instead. */
|
|
8046
|
+
setUpAdAccountBilling: this._bind(setUpAdAccountBilling),
|
|
8029
8047
|
/** @deprecated Use `zernio.adaccounts.listAdAccountUserInvitations` instead. */
|
|
8030
8048
|
listAdAccountUserInvitations: this._bind(listAdAccountUserInvitations),
|
|
8031
8049
|
/** @deprecated Use `zernio.adaccounts.inviteAdAccountUser` instead. */
|
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.1264",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -4631,6 +4631,18 @@ var updateAdAccountManagerLink = (options) => {
|
|
|
4631
4631
|
url: "/v1/ads/accounts/manager-links"
|
|
4632
4632
|
});
|
|
4633
4633
|
};
|
|
4634
|
+
var getAdAccountBilling = (options) => {
|
|
4635
|
+
return (options?.client ?? client).get({
|
|
4636
|
+
...options,
|
|
4637
|
+
url: "/v1/ads/accounts/billing"
|
|
4638
|
+
});
|
|
4639
|
+
};
|
|
4640
|
+
var setUpAdAccountBilling = (options) => {
|
|
4641
|
+
return (options?.client ?? client).post({
|
|
4642
|
+
...options,
|
|
4643
|
+
url: "/v1/ads/accounts/billing"
|
|
4644
|
+
});
|
|
4645
|
+
};
|
|
4634
4646
|
var listAdAccountUserInvitations = (options) => {
|
|
4635
4647
|
return (options?.client ?? client).get({
|
|
4636
4648
|
...options,
|
|
@@ -7447,6 +7459,8 @@ var Zernio = class _Zernio {
|
|
|
7447
7459
|
getAdAccountHierarchy: this._bind(getAdAccountHierarchy),
|
|
7448
7460
|
inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
|
|
7449
7461
|
updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
|
|
7462
|
+
getAdAccountBilling: this._bind(getAdAccountBilling),
|
|
7463
|
+
setUpAdAccountBilling: this._bind(setUpAdAccountBilling),
|
|
7450
7464
|
listAdAccountUserInvitations: this._bind(listAdAccountUserInvitations),
|
|
7451
7465
|
inviteAdAccountUser: this._bind(inviteAdAccountUser),
|
|
7452
7466
|
revokeAdAccountUserInvitation: this._bind(revokeAdAccountUserInvitation),
|
|
@@ -7995,6 +8009,10 @@ var Zernio = class _Zernio {
|
|
|
7995
8009
|
inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
|
|
7996
8010
|
/** @deprecated Use `zernio.adaccounts.updateAdAccountManagerLink` instead. */
|
|
7997
8011
|
updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
|
|
8012
|
+
/** @deprecated Use `zernio.adaccounts.getAdAccountBilling` instead. */
|
|
8013
|
+
getAdAccountBilling: this._bind(getAdAccountBilling),
|
|
8014
|
+
/** @deprecated Use `zernio.adaccounts.setUpAdAccountBilling` instead. */
|
|
8015
|
+
setUpAdAccountBilling: this._bind(setUpAdAccountBilling),
|
|
7998
8016
|
/** @deprecated Use `zernio.adaccounts.listAdAccountUserInvitations` instead. */
|
|
7999
8017
|
listAdAccountUserInvitations: this._bind(listAdAccountUserInvitations),
|
|
8000
8018
|
/** @deprecated Use `zernio.adaccounts.inviteAdAccountUser` instead. */
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -285,6 +285,7 @@ import {
|
|
|
285
285
|
getAccountHealth,
|
|
286
286
|
getAccountPosts,
|
|
287
287
|
getAd,
|
|
288
|
+
getAdAccountBilling,
|
|
288
289
|
getAdAccountFinance,
|
|
289
290
|
getAdAccountHierarchy,
|
|
290
291
|
getAdAccountLiveEntities,
|
|
@@ -837,6 +838,7 @@ import {
|
|
|
837
838
|
setPartnershipAdPermission,
|
|
838
839
|
setRedditPostFlair,
|
|
839
840
|
setTelegramCommands,
|
|
841
|
+
setUpAdAccountBilling,
|
|
840
842
|
setWhatsAppConversationalAutomation,
|
|
841
843
|
setWhatsAppFlowsEncryptionKey,
|
|
842
844
|
setWhatsappBusinessUsername,
|
|
@@ -2249,6 +2251,8 @@ export class Zernio {
|
|
|
2249
2251
|
getAdAccountHierarchy: this._bind(getAdAccountHierarchy),
|
|
2250
2252
|
inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
|
|
2251
2253
|
updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
|
|
2254
|
+
getAdAccountBilling: this._bind(getAdAccountBilling),
|
|
2255
|
+
setUpAdAccountBilling: this._bind(setUpAdAccountBilling),
|
|
2252
2256
|
listAdAccountUserInvitations: this._bind(listAdAccountUserInvitations),
|
|
2253
2257
|
inviteAdAccountUser: this._bind(inviteAdAccountUser),
|
|
2254
2258
|
revokeAdAccountUserInvitation: this._bind(revokeAdAccountUserInvitation),
|
|
@@ -2813,6 +2817,10 @@ export class Zernio {
|
|
|
2813
2817
|
inviteAdAccountToManager: this._bind(inviteAdAccountToManager),
|
|
2814
2818
|
/** @deprecated Use `zernio.adaccounts.updateAdAccountManagerLink` instead. */
|
|
2815
2819
|
updateAdAccountManagerLink: this._bind(updateAdAccountManagerLink),
|
|
2820
|
+
/** @deprecated Use `zernio.adaccounts.getAdAccountBilling` instead. */
|
|
2821
|
+
getAdAccountBilling: this._bind(getAdAccountBilling),
|
|
2822
|
+
/** @deprecated Use `zernio.adaccounts.setUpAdAccountBilling` instead. */
|
|
2823
|
+
setUpAdAccountBilling: this._bind(setUpAdAccountBilling),
|
|
2816
2824
|
/** @deprecated Use `zernio.adaccounts.listAdAccountUserInvitations` instead. */
|
|
2817
2825
|
listAdAccountUserInvitations: this._bind(listAdAccountUserInvitations),
|
|
2818
2826
|
/** @deprecated Use `zernio.adaccounts.inviteAdAccountUser` instead. */
|