@getlatedev/node 0.2.1249 → 0.2.1251
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 +3 -0
- package/dist/index.d.mts +115 -4
- package/dist/index.d.ts +115 -4
- package/dist/index.js +26 -1
- package/dist/index.mjs +26 -1
- package/package.json +1 -1
- package/src/client.ts +10 -0
- package/src/generated/sdk.gen.ts +51 -3
- package/src/generated/types.gen.ts +118 -3
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.1251",
|
|
40
40
|
description: "The official Node.js library for the Zernio API",
|
|
41
41
|
main: "dist/index.js",
|
|
42
42
|
module: "dist/index.mjs",
|
|
@@ -1410,6 +1410,12 @@ var listInstagramMediaCollaborators = (options) => {
|
|
|
1410
1410
|
url: "/v1/accounts/{accountId}/instagram/media/{mediaId}/collaborators"
|
|
1411
1411
|
});
|
|
1412
1412
|
};
|
|
1413
|
+
var listInstagramLiveMedia = (options) => {
|
|
1414
|
+
return (options?.client ?? client).get({
|
|
1415
|
+
...options,
|
|
1416
|
+
url: "/v1/accounts/{accountId}/instagram/live-media"
|
|
1417
|
+
});
|
|
1418
|
+
};
|
|
1413
1419
|
var getInstagramStoryInsights = (options) => {
|
|
1414
1420
|
return (options?.client ?? client).get({
|
|
1415
1421
|
...options,
|
|
@@ -4656,6 +4662,18 @@ var revokeAdAccountUserInvitation = (options) => {
|
|
|
4656
4662
|
url: "/v1/ads/accounts/user-invitations"
|
|
4657
4663
|
});
|
|
4658
4664
|
};
|
|
4665
|
+
var listAdAccountUserInvitationApprovals = (options) => {
|
|
4666
|
+
return (options?.client ?? client).get({
|
|
4667
|
+
...options,
|
|
4668
|
+
url: "/v1/ads/accounts/user-invitations/pending-approvals"
|
|
4669
|
+
});
|
|
4670
|
+
};
|
|
4671
|
+
var withdrawAdAccountUserInvitationApproval = (options) => {
|
|
4672
|
+
return (options?.client ?? client).delete({
|
|
4673
|
+
...options,
|
|
4674
|
+
url: "/v1/ads/accounts/user-invitations/pending-approvals"
|
|
4675
|
+
});
|
|
4676
|
+
};
|
|
4659
4677
|
var listAdAccountUsers = (options) => {
|
|
4660
4678
|
return (options?.client ?? client).get({
|
|
4661
4679
|
...options,
|
|
@@ -6761,6 +6779,7 @@ var Zernio = class _Zernio {
|
|
|
6761
6779
|
getInstagramAudio: this._bind(getInstagramAudio),
|
|
6762
6780
|
getInstagramBusinessDiscovery: this._bind(getInstagramBusinessDiscovery),
|
|
6763
6781
|
listInstagramMediaCollaborators: this._bind(listInstagramMediaCollaborators),
|
|
6782
|
+
listInstagramLiveMedia: this._bind(listInstagramLiveMedia),
|
|
6764
6783
|
getInstagramStoryInsights: this._bind(getInstagramStoryInsights)
|
|
6765
6784
|
};
|
|
6766
6785
|
/**
|
|
@@ -7441,6 +7460,8 @@ var Zernio = class _Zernio {
|
|
|
7441
7460
|
listAdAccountUserInvitations: this._bind(listAdAccountUserInvitations),
|
|
7442
7461
|
inviteAdAccountUser: this._bind(inviteAdAccountUser),
|
|
7443
7462
|
revokeAdAccountUserInvitation: this._bind(revokeAdAccountUserInvitation),
|
|
7463
|
+
listAdAccountUserInvitationApprovals: this._bind(listAdAccountUserInvitationApprovals),
|
|
7464
|
+
withdrawAdAccountUserInvitationApproval: this._bind(withdrawAdAccountUserInvitationApproval),
|
|
7444
7465
|
listAdAccountUsers: this._bind(listAdAccountUsers),
|
|
7445
7466
|
assignAdAccountUser: this._bind(assignAdAccountUser),
|
|
7446
7467
|
removeAdAccountUser: this._bind(removeAdAccountUser),
|
|
@@ -7988,6 +8009,10 @@ var Zernio = class _Zernio {
|
|
|
7988
8009
|
inviteAdAccountUser: this._bind(inviteAdAccountUser),
|
|
7989
8010
|
/** @deprecated Use `zernio.adaccounts.revokeAdAccountUserInvitation` instead. */
|
|
7990
8011
|
revokeAdAccountUserInvitation: this._bind(revokeAdAccountUserInvitation),
|
|
8012
|
+
/** @deprecated Use `zernio.adaccounts.listAdAccountUserInvitationApprovals` instead. */
|
|
8013
|
+
listAdAccountUserInvitationApprovals: this._bind(listAdAccountUserInvitationApprovals),
|
|
8014
|
+
/** @deprecated Use `zernio.adaccounts.withdrawAdAccountUserInvitationApproval` instead. */
|
|
8015
|
+
withdrawAdAccountUserInvitationApproval: this._bind(withdrawAdAccountUserInvitationApproval),
|
|
7991
8016
|
/** @deprecated Use `zernio.adaccounts.listAdAccountUsers` instead. */
|
|
7992
8017
|
listAdAccountUsers: this._bind(listAdAccountUsers),
|
|
7993
8018
|
/** @deprecated Use `zernio.adaccounts.assignAdAccountUser` 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.1251",
|
|
9
9
|
description: "The official Node.js library for the Zernio API",
|
|
10
10
|
main: "dist/index.js",
|
|
11
11
|
module: "dist/index.mjs",
|
|
@@ -1379,6 +1379,12 @@ var listInstagramMediaCollaborators = (options) => {
|
|
|
1379
1379
|
url: "/v1/accounts/{accountId}/instagram/media/{mediaId}/collaborators"
|
|
1380
1380
|
});
|
|
1381
1381
|
};
|
|
1382
|
+
var listInstagramLiveMedia = (options) => {
|
|
1383
|
+
return (options?.client ?? client).get({
|
|
1384
|
+
...options,
|
|
1385
|
+
url: "/v1/accounts/{accountId}/instagram/live-media"
|
|
1386
|
+
});
|
|
1387
|
+
};
|
|
1382
1388
|
var getInstagramStoryInsights = (options) => {
|
|
1383
1389
|
return (options?.client ?? client).get({
|
|
1384
1390
|
...options,
|
|
@@ -4625,6 +4631,18 @@ var revokeAdAccountUserInvitation = (options) => {
|
|
|
4625
4631
|
url: "/v1/ads/accounts/user-invitations"
|
|
4626
4632
|
});
|
|
4627
4633
|
};
|
|
4634
|
+
var listAdAccountUserInvitationApprovals = (options) => {
|
|
4635
|
+
return (options?.client ?? client).get({
|
|
4636
|
+
...options,
|
|
4637
|
+
url: "/v1/ads/accounts/user-invitations/pending-approvals"
|
|
4638
|
+
});
|
|
4639
|
+
};
|
|
4640
|
+
var withdrawAdAccountUserInvitationApproval = (options) => {
|
|
4641
|
+
return (options?.client ?? client).delete({
|
|
4642
|
+
...options,
|
|
4643
|
+
url: "/v1/ads/accounts/user-invitations/pending-approvals"
|
|
4644
|
+
});
|
|
4645
|
+
};
|
|
4628
4646
|
var listAdAccountUsers = (options) => {
|
|
4629
4647
|
return (options?.client ?? client).get({
|
|
4630
4648
|
...options,
|
|
@@ -6730,6 +6748,7 @@ var Zernio = class _Zernio {
|
|
|
6730
6748
|
getInstagramAudio: this._bind(getInstagramAudio),
|
|
6731
6749
|
getInstagramBusinessDiscovery: this._bind(getInstagramBusinessDiscovery),
|
|
6732
6750
|
listInstagramMediaCollaborators: this._bind(listInstagramMediaCollaborators),
|
|
6751
|
+
listInstagramLiveMedia: this._bind(listInstagramLiveMedia),
|
|
6733
6752
|
getInstagramStoryInsights: this._bind(getInstagramStoryInsights)
|
|
6734
6753
|
};
|
|
6735
6754
|
/**
|
|
@@ -7410,6 +7429,8 @@ var Zernio = class _Zernio {
|
|
|
7410
7429
|
listAdAccountUserInvitations: this._bind(listAdAccountUserInvitations),
|
|
7411
7430
|
inviteAdAccountUser: this._bind(inviteAdAccountUser),
|
|
7412
7431
|
revokeAdAccountUserInvitation: this._bind(revokeAdAccountUserInvitation),
|
|
7432
|
+
listAdAccountUserInvitationApprovals: this._bind(listAdAccountUserInvitationApprovals),
|
|
7433
|
+
withdrawAdAccountUserInvitationApproval: this._bind(withdrawAdAccountUserInvitationApproval),
|
|
7413
7434
|
listAdAccountUsers: this._bind(listAdAccountUsers),
|
|
7414
7435
|
assignAdAccountUser: this._bind(assignAdAccountUser),
|
|
7415
7436
|
removeAdAccountUser: this._bind(removeAdAccountUser),
|
|
@@ -7957,6 +7978,10 @@ var Zernio = class _Zernio {
|
|
|
7957
7978
|
inviteAdAccountUser: this._bind(inviteAdAccountUser),
|
|
7958
7979
|
/** @deprecated Use `zernio.adaccounts.revokeAdAccountUserInvitation` instead. */
|
|
7959
7980
|
revokeAdAccountUserInvitation: this._bind(revokeAdAccountUserInvitation),
|
|
7981
|
+
/** @deprecated Use `zernio.adaccounts.listAdAccountUserInvitationApprovals` instead. */
|
|
7982
|
+
listAdAccountUserInvitationApprovals: this._bind(listAdAccountUserInvitationApprovals),
|
|
7983
|
+
/** @deprecated Use `zernio.adaccounts.withdrawAdAccountUserInvitationApproval` instead. */
|
|
7984
|
+
withdrawAdAccountUserInvitationApproval: this._bind(withdrawAdAccountUserInvitationApproval),
|
|
7960
7985
|
/** @deprecated Use `zernio.adaccounts.listAdAccountUsers` instead. */
|
|
7961
7986
|
listAdAccountUsers: this._bind(listAdAccountUsers),
|
|
7962
7987
|
/** @deprecated Use `zernio.adaccounts.assignAdAccountUser` instead. */
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -533,6 +533,7 @@ import {
|
|
|
533
533
|
listAccountSitelinks,
|
|
534
534
|
listAccountStructuredSnippets,
|
|
535
535
|
listAccounts,
|
|
536
|
+
listAdAccountUserInvitationApprovals,
|
|
536
537
|
listAdAccountUserInvitations,
|
|
537
538
|
listAdAccountUsers,
|
|
538
539
|
listAdAccounts,
|
|
@@ -633,6 +634,7 @@ import {
|
|
|
633
634
|
listInboxConversations,
|
|
634
635
|
listInboxMentions,
|
|
635
636
|
listInboxReviews,
|
|
637
|
+
listInstagramLiveMedia,
|
|
636
638
|
listInstagramMediaCollaborators,
|
|
637
639
|
listInstagramPages,
|
|
638
640
|
listInstagramStories,
|
|
@@ -980,6 +982,7 @@ import {
|
|
|
980
982
|
verifyWhatsAppNumber,
|
|
981
983
|
viewPhoneNumberKycDocument,
|
|
982
984
|
voteRedditThing,
|
|
985
|
+
withdrawAdAccountUserInvitationApproval,
|
|
983
986
|
} from './generated/sdk.gen';
|
|
984
987
|
|
|
985
988
|
import { ZernioApiError, parseApiError } from './errors';
|
|
@@ -1527,6 +1530,7 @@ export class Zernio {
|
|
|
1527
1530
|
getInstagramAudio: this._bind(getInstagramAudio),
|
|
1528
1531
|
getInstagramBusinessDiscovery: this._bind(getInstagramBusinessDiscovery),
|
|
1529
1532
|
listInstagramMediaCollaborators: this._bind(listInstagramMediaCollaborators),
|
|
1533
|
+
listInstagramLiveMedia: this._bind(listInstagramLiveMedia),
|
|
1530
1534
|
getInstagramStoryInsights: this._bind(getInstagramStoryInsights),
|
|
1531
1535
|
};
|
|
1532
1536
|
|
|
@@ -2242,6 +2246,8 @@ export class Zernio {
|
|
|
2242
2246
|
listAdAccountUserInvitations: this._bind(listAdAccountUserInvitations),
|
|
2243
2247
|
inviteAdAccountUser: this._bind(inviteAdAccountUser),
|
|
2244
2248
|
revokeAdAccountUserInvitation: this._bind(revokeAdAccountUserInvitation),
|
|
2249
|
+
listAdAccountUserInvitationApprovals: this._bind(listAdAccountUserInvitationApprovals),
|
|
2250
|
+
withdrawAdAccountUserInvitationApproval: this._bind(withdrawAdAccountUserInvitationApproval),
|
|
2245
2251
|
listAdAccountUsers: this._bind(listAdAccountUsers),
|
|
2246
2252
|
assignAdAccountUser: this._bind(assignAdAccountUser),
|
|
2247
2253
|
removeAdAccountUser: this._bind(removeAdAccountUser),
|
|
@@ -2805,6 +2811,10 @@ export class Zernio {
|
|
|
2805
2811
|
inviteAdAccountUser: this._bind(inviteAdAccountUser),
|
|
2806
2812
|
/** @deprecated Use `zernio.adaccounts.revokeAdAccountUserInvitation` instead. */
|
|
2807
2813
|
revokeAdAccountUserInvitation: this._bind(revokeAdAccountUserInvitation),
|
|
2814
|
+
/** @deprecated Use `zernio.adaccounts.listAdAccountUserInvitationApprovals` instead. */
|
|
2815
|
+
listAdAccountUserInvitationApprovals: this._bind(listAdAccountUserInvitationApprovals),
|
|
2816
|
+
/** @deprecated Use `zernio.adaccounts.withdrawAdAccountUserInvitationApproval` instead. */
|
|
2817
|
+
withdrawAdAccountUserInvitationApproval: this._bind(withdrawAdAccountUserInvitationApproval),
|
|
2808
2818
|
/** @deprecated Use `zernio.adaccounts.listAdAccountUsers` instead. */
|
|
2809
2819
|
listAdAccountUsers: this._bind(listAdAccountUsers),
|
|
2810
2820
|
/** @deprecated Use `zernio.adaccounts.assignAdAccountUser` instead. */
|