@zernio/node 0.2.157 → 0.2.170
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 +19 -2
- package/dist/index.d.mts +1071 -93
- package/dist/index.d.ts +1071 -93
- package/dist/index.js +98 -2
- package/dist/index.mjs +98 -2
- package/package.json +1 -1
- package/src/client.ts +34 -2
- package/src/generated/sdk.gen.ts +201 -19
- package/src/generated/types.gen.ts +1144 -135
package/dist/index.js
CHANGED
|
@@ -687,6 +687,30 @@ var getGoogleBusinessReviews = (options) => {
|
|
|
687
687
|
url: "/v1/accounts/{accountId}/gmb-reviews"
|
|
688
688
|
});
|
|
689
689
|
};
|
|
690
|
+
var getGoogleBusinessVerifications = (options) => {
|
|
691
|
+
return (options?.client ?? client).get({
|
|
692
|
+
...options,
|
|
693
|
+
url: "/v1/accounts/{accountId}/gmb-verifications"
|
|
694
|
+
});
|
|
695
|
+
};
|
|
696
|
+
var startGoogleBusinessVerification = (options) => {
|
|
697
|
+
return (options?.client ?? client).post({
|
|
698
|
+
...options,
|
|
699
|
+
url: "/v1/accounts/{accountId}/gmb-verifications"
|
|
700
|
+
});
|
|
701
|
+
};
|
|
702
|
+
var fetchGoogleBusinessVerificationOptions = (options) => {
|
|
703
|
+
return (options?.client ?? client).post({
|
|
704
|
+
...options,
|
|
705
|
+
url: "/v1/accounts/{accountId}/gmb-verifications/options"
|
|
706
|
+
});
|
|
707
|
+
};
|
|
708
|
+
var completeGoogleBusinessVerification = (options) => {
|
|
709
|
+
return (options?.client ?? client).post({
|
|
710
|
+
...options,
|
|
711
|
+
url: "/v1/accounts/{accountId}/gmb-verifications/{verificationId}/complete"
|
|
712
|
+
});
|
|
713
|
+
};
|
|
690
714
|
var getGoogleBusinessFoodMenus = (options) => {
|
|
691
715
|
return (options?.client ?? client).get({
|
|
692
716
|
...options,
|
|
@@ -1137,6 +1161,12 @@ var sendTypingIndicator = (options) => {
|
|
|
1137
1161
|
url: "/v1/inbox/conversations/{conversationId}/typing"
|
|
1138
1162
|
});
|
|
1139
1163
|
};
|
|
1164
|
+
var markConversationRead = (options) => {
|
|
1165
|
+
return (options?.client ?? client).post({
|
|
1166
|
+
...options,
|
|
1167
|
+
url: "/v1/inbox/conversations/{conversationId}/read"
|
|
1168
|
+
});
|
|
1169
|
+
};
|
|
1140
1170
|
var addMessageReaction = (options) => {
|
|
1141
1171
|
return (options?.client ?? client).post({
|
|
1142
1172
|
...options,
|
|
@@ -1891,18 +1921,66 @@ var createStandaloneAd = (options) => {
|
|
|
1891
1921
|
url: "/v1/ads/create"
|
|
1892
1922
|
});
|
|
1893
1923
|
};
|
|
1924
|
+
var listLeads = (options) => {
|
|
1925
|
+
return (options?.client ?? client).get({
|
|
1926
|
+
...options,
|
|
1927
|
+
url: "/v1/ads/leads"
|
|
1928
|
+
});
|
|
1929
|
+
};
|
|
1930
|
+
var listLeadForms = (options) => {
|
|
1931
|
+
return (options?.client ?? client).get({
|
|
1932
|
+
...options,
|
|
1933
|
+
url: "/v1/ads/lead-forms"
|
|
1934
|
+
});
|
|
1935
|
+
};
|
|
1936
|
+
var createLeadForm = (options) => {
|
|
1937
|
+
return (options?.client ?? client).post({
|
|
1938
|
+
...options,
|
|
1939
|
+
url: "/v1/ads/lead-forms"
|
|
1940
|
+
});
|
|
1941
|
+
};
|
|
1942
|
+
var getLeadForm = (options) => {
|
|
1943
|
+
return (options?.client ?? client).get({
|
|
1944
|
+
...options,
|
|
1945
|
+
url: "/v1/ads/lead-forms/{formId}"
|
|
1946
|
+
});
|
|
1947
|
+
};
|
|
1948
|
+
var archiveLeadForm = (options) => {
|
|
1949
|
+
return (options?.client ?? client).delete({
|
|
1950
|
+
...options,
|
|
1951
|
+
url: "/v1/ads/lead-forms/{formId}"
|
|
1952
|
+
});
|
|
1953
|
+
};
|
|
1954
|
+
var listFormLeads = (options) => {
|
|
1955
|
+
return (options?.client ?? client).get({
|
|
1956
|
+
...options,
|
|
1957
|
+
url: "/v1/ads/lead-forms/{formId}/leads"
|
|
1958
|
+
});
|
|
1959
|
+
};
|
|
1960
|
+
var createTestLead = (options) => {
|
|
1961
|
+
return (options?.client ?? client).post({
|
|
1962
|
+
...options,
|
|
1963
|
+
url: "/v1/ads/lead-forms/{formId}/test-leads"
|
|
1964
|
+
});
|
|
1965
|
+
};
|
|
1894
1966
|
var searchAdInterests = (options) => {
|
|
1895
1967
|
return (options?.client ?? client).get({
|
|
1896
1968
|
...options,
|
|
1897
1969
|
url: "/v1/ads/interests"
|
|
1898
1970
|
});
|
|
1899
1971
|
};
|
|
1900
|
-
var
|
|
1972
|
+
var searchAdTargeting = (options) => {
|
|
1901
1973
|
return (options?.client ?? client).get({
|
|
1902
1974
|
...options,
|
|
1903
1975
|
url: "/v1/ads/targeting/search"
|
|
1904
1976
|
});
|
|
1905
1977
|
};
|
|
1978
|
+
var estimateAdReach = (options) => {
|
|
1979
|
+
return (options?.client ?? client).post({
|
|
1980
|
+
...options,
|
|
1981
|
+
url: "/v1/ads/targeting/reach-estimate"
|
|
1982
|
+
});
|
|
1983
|
+
};
|
|
1906
1984
|
var listAdAudiences = (options) => {
|
|
1907
1985
|
return (options?.client ?? client).get({
|
|
1908
1986
|
...options,
|
|
@@ -2337,6 +2415,15 @@ var Zernio = class {
|
|
|
2337
2415
|
completeTelegramConnect
|
|
2338
2416
|
}
|
|
2339
2417
|
};
|
|
2418
|
+
/**
|
|
2419
|
+
* gmbverifications API
|
|
2420
|
+
*/
|
|
2421
|
+
this.gmbverifications = {
|
|
2422
|
+
getGoogleBusinessVerifications,
|
|
2423
|
+
startGoogleBusinessVerification,
|
|
2424
|
+
fetchGoogleBusinessVerificationOptions,
|
|
2425
|
+
completeGoogleBusinessVerification
|
|
2426
|
+
};
|
|
2340
2427
|
/**
|
|
2341
2428
|
* gmbfoodmenus API
|
|
2342
2429
|
*/
|
|
@@ -2437,6 +2524,7 @@ var Zernio = class {
|
|
|
2437
2524
|
editInboxMessage,
|
|
2438
2525
|
deleteInboxMessage,
|
|
2439
2526
|
sendTypingIndicator,
|
|
2527
|
+
markConversationRead,
|
|
2440
2528
|
addMessageReaction,
|
|
2441
2529
|
removeMessageReaction,
|
|
2442
2530
|
uploadMediaDirect
|
|
@@ -2617,8 +2705,16 @@ var Zernio = class {
|
|
|
2617
2705
|
listAdAccounts,
|
|
2618
2706
|
boostPost,
|
|
2619
2707
|
createStandaloneAd,
|
|
2708
|
+
listLeads,
|
|
2709
|
+
listLeadForms,
|
|
2710
|
+
createLeadForm,
|
|
2711
|
+
getLeadForm,
|
|
2712
|
+
archiveLeadForm,
|
|
2713
|
+
listFormLeads,
|
|
2714
|
+
createTestLead,
|
|
2620
2715
|
searchAdInterests,
|
|
2621
|
-
|
|
2716
|
+
searchAdTargeting,
|
|
2717
|
+
estimateAdReach,
|
|
2622
2718
|
sendConversions,
|
|
2623
2719
|
listConversionDestinations,
|
|
2624
2720
|
createConversionDestination,
|
package/dist/index.mjs
CHANGED
|
@@ -656,6 +656,30 @@ var getGoogleBusinessReviews = (options) => {
|
|
|
656
656
|
url: "/v1/accounts/{accountId}/gmb-reviews"
|
|
657
657
|
});
|
|
658
658
|
};
|
|
659
|
+
var getGoogleBusinessVerifications = (options) => {
|
|
660
|
+
return (options?.client ?? client).get({
|
|
661
|
+
...options,
|
|
662
|
+
url: "/v1/accounts/{accountId}/gmb-verifications"
|
|
663
|
+
});
|
|
664
|
+
};
|
|
665
|
+
var startGoogleBusinessVerification = (options) => {
|
|
666
|
+
return (options?.client ?? client).post({
|
|
667
|
+
...options,
|
|
668
|
+
url: "/v1/accounts/{accountId}/gmb-verifications"
|
|
669
|
+
});
|
|
670
|
+
};
|
|
671
|
+
var fetchGoogleBusinessVerificationOptions = (options) => {
|
|
672
|
+
return (options?.client ?? client).post({
|
|
673
|
+
...options,
|
|
674
|
+
url: "/v1/accounts/{accountId}/gmb-verifications/options"
|
|
675
|
+
});
|
|
676
|
+
};
|
|
677
|
+
var completeGoogleBusinessVerification = (options) => {
|
|
678
|
+
return (options?.client ?? client).post({
|
|
679
|
+
...options,
|
|
680
|
+
url: "/v1/accounts/{accountId}/gmb-verifications/{verificationId}/complete"
|
|
681
|
+
});
|
|
682
|
+
};
|
|
659
683
|
var getGoogleBusinessFoodMenus = (options) => {
|
|
660
684
|
return (options?.client ?? client).get({
|
|
661
685
|
...options,
|
|
@@ -1106,6 +1130,12 @@ var sendTypingIndicator = (options) => {
|
|
|
1106
1130
|
url: "/v1/inbox/conversations/{conversationId}/typing"
|
|
1107
1131
|
});
|
|
1108
1132
|
};
|
|
1133
|
+
var markConversationRead = (options) => {
|
|
1134
|
+
return (options?.client ?? client).post({
|
|
1135
|
+
...options,
|
|
1136
|
+
url: "/v1/inbox/conversations/{conversationId}/read"
|
|
1137
|
+
});
|
|
1138
|
+
};
|
|
1109
1139
|
var addMessageReaction = (options) => {
|
|
1110
1140
|
return (options?.client ?? client).post({
|
|
1111
1141
|
...options,
|
|
@@ -1860,18 +1890,66 @@ var createStandaloneAd = (options) => {
|
|
|
1860
1890
|
url: "/v1/ads/create"
|
|
1861
1891
|
});
|
|
1862
1892
|
};
|
|
1893
|
+
var listLeads = (options) => {
|
|
1894
|
+
return (options?.client ?? client).get({
|
|
1895
|
+
...options,
|
|
1896
|
+
url: "/v1/ads/leads"
|
|
1897
|
+
});
|
|
1898
|
+
};
|
|
1899
|
+
var listLeadForms = (options) => {
|
|
1900
|
+
return (options?.client ?? client).get({
|
|
1901
|
+
...options,
|
|
1902
|
+
url: "/v1/ads/lead-forms"
|
|
1903
|
+
});
|
|
1904
|
+
};
|
|
1905
|
+
var createLeadForm = (options) => {
|
|
1906
|
+
return (options?.client ?? client).post({
|
|
1907
|
+
...options,
|
|
1908
|
+
url: "/v1/ads/lead-forms"
|
|
1909
|
+
});
|
|
1910
|
+
};
|
|
1911
|
+
var getLeadForm = (options) => {
|
|
1912
|
+
return (options?.client ?? client).get({
|
|
1913
|
+
...options,
|
|
1914
|
+
url: "/v1/ads/lead-forms/{formId}"
|
|
1915
|
+
});
|
|
1916
|
+
};
|
|
1917
|
+
var archiveLeadForm = (options) => {
|
|
1918
|
+
return (options?.client ?? client).delete({
|
|
1919
|
+
...options,
|
|
1920
|
+
url: "/v1/ads/lead-forms/{formId}"
|
|
1921
|
+
});
|
|
1922
|
+
};
|
|
1923
|
+
var listFormLeads = (options) => {
|
|
1924
|
+
return (options?.client ?? client).get({
|
|
1925
|
+
...options,
|
|
1926
|
+
url: "/v1/ads/lead-forms/{formId}/leads"
|
|
1927
|
+
});
|
|
1928
|
+
};
|
|
1929
|
+
var createTestLead = (options) => {
|
|
1930
|
+
return (options?.client ?? client).post({
|
|
1931
|
+
...options,
|
|
1932
|
+
url: "/v1/ads/lead-forms/{formId}/test-leads"
|
|
1933
|
+
});
|
|
1934
|
+
};
|
|
1863
1935
|
var searchAdInterests = (options) => {
|
|
1864
1936
|
return (options?.client ?? client).get({
|
|
1865
1937
|
...options,
|
|
1866
1938
|
url: "/v1/ads/interests"
|
|
1867
1939
|
});
|
|
1868
1940
|
};
|
|
1869
|
-
var
|
|
1941
|
+
var searchAdTargeting = (options) => {
|
|
1870
1942
|
return (options?.client ?? client).get({
|
|
1871
1943
|
...options,
|
|
1872
1944
|
url: "/v1/ads/targeting/search"
|
|
1873
1945
|
});
|
|
1874
1946
|
};
|
|
1947
|
+
var estimateAdReach = (options) => {
|
|
1948
|
+
return (options?.client ?? client).post({
|
|
1949
|
+
...options,
|
|
1950
|
+
url: "/v1/ads/targeting/reach-estimate"
|
|
1951
|
+
});
|
|
1952
|
+
};
|
|
1875
1953
|
var listAdAudiences = (options) => {
|
|
1876
1954
|
return (options?.client ?? client).get({
|
|
1877
1955
|
...options,
|
|
@@ -2306,6 +2384,15 @@ var Zernio = class {
|
|
|
2306
2384
|
completeTelegramConnect
|
|
2307
2385
|
}
|
|
2308
2386
|
};
|
|
2387
|
+
/**
|
|
2388
|
+
* gmbverifications API
|
|
2389
|
+
*/
|
|
2390
|
+
this.gmbverifications = {
|
|
2391
|
+
getGoogleBusinessVerifications,
|
|
2392
|
+
startGoogleBusinessVerification,
|
|
2393
|
+
fetchGoogleBusinessVerificationOptions,
|
|
2394
|
+
completeGoogleBusinessVerification
|
|
2395
|
+
};
|
|
2309
2396
|
/**
|
|
2310
2397
|
* gmbfoodmenus API
|
|
2311
2398
|
*/
|
|
@@ -2406,6 +2493,7 @@ var Zernio = class {
|
|
|
2406
2493
|
editInboxMessage,
|
|
2407
2494
|
deleteInboxMessage,
|
|
2408
2495
|
sendTypingIndicator,
|
|
2496
|
+
markConversationRead,
|
|
2409
2497
|
addMessageReaction,
|
|
2410
2498
|
removeMessageReaction,
|
|
2411
2499
|
uploadMediaDirect
|
|
@@ -2586,8 +2674,16 @@ var Zernio = class {
|
|
|
2586
2674
|
listAdAccounts,
|
|
2587
2675
|
boostPost,
|
|
2588
2676
|
createStandaloneAd,
|
|
2677
|
+
listLeads,
|
|
2678
|
+
listLeadForms,
|
|
2679
|
+
createLeadForm,
|
|
2680
|
+
getLeadForm,
|
|
2681
|
+
archiveLeadForm,
|
|
2682
|
+
listFormLeads,
|
|
2683
|
+
createTestLead,
|
|
2589
2684
|
searchAdInterests,
|
|
2590
|
-
|
|
2685
|
+
searchAdTargeting,
|
|
2686
|
+
estimateAdReach,
|
|
2591
2687
|
sendConversions,
|
|
2592
2688
|
listConversionDestinations,
|
|
2593
2689
|
createConversionDestination,
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
addUsersToAdAudience,
|
|
9
9
|
addWhatsAppGroupParticipants,
|
|
10
10
|
approveWhatsAppGroupJoinRequests,
|
|
11
|
+
archiveLeadForm,
|
|
11
12
|
batchGetGoogleBusinessReviews,
|
|
12
13
|
bookmarkPost,
|
|
13
14
|
boostPost,
|
|
@@ -16,6 +17,7 @@ import {
|
|
|
16
17
|
bulkUploadPosts,
|
|
17
18
|
cancelBroadcast,
|
|
18
19
|
clearContactFieldValue,
|
|
20
|
+
completeGoogleBusinessVerification,
|
|
19
21
|
completeTelegramConnect,
|
|
20
22
|
completeWhatsAppPhoneSelection,
|
|
21
23
|
configureTikTokAdsBrandIdentity,
|
|
@@ -35,11 +37,13 @@ import {
|
|
|
35
37
|
createGoogleBusinessPlaceAction,
|
|
36
38
|
createInboxConversation,
|
|
37
39
|
createInviteToken,
|
|
40
|
+
createLeadForm,
|
|
38
41
|
createPost,
|
|
39
42
|
createProfile,
|
|
40
43
|
createQueueSlot,
|
|
41
44
|
createSequence,
|
|
42
45
|
createStandaloneAd,
|
|
46
|
+
createTestLead,
|
|
43
47
|
createTrackingTag,
|
|
44
48
|
createWebhookSettings,
|
|
45
49
|
createWhatsAppFlow,
|
|
@@ -79,6 +83,8 @@ import {
|
|
|
79
83
|
editInboxMessage,
|
|
80
84
|
editPost,
|
|
81
85
|
enrollContacts,
|
|
86
|
+
estimateAdReach,
|
|
87
|
+
fetchGoogleBusinessVerificationOptions,
|
|
82
88
|
followUser,
|
|
83
89
|
getAccountHealth,
|
|
84
90
|
getAd,
|
|
@@ -112,6 +118,7 @@ import {
|
|
|
112
118
|
getGoogleBusinessReviews,
|
|
113
119
|
getGoogleBusinessSearchKeywords,
|
|
114
120
|
getGoogleBusinessServices,
|
|
121
|
+
getGoogleBusinessVerifications,
|
|
115
122
|
getInboxConversation,
|
|
116
123
|
getInboxConversationMessages,
|
|
117
124
|
getInboxPostComments,
|
|
@@ -120,6 +127,7 @@ import {
|
|
|
120
127
|
getInstagramFollowerHistory,
|
|
121
128
|
getInstagramIceBreakers,
|
|
122
129
|
getInstagramStoryInsights,
|
|
130
|
+
getLeadForm,
|
|
123
131
|
getLinkedInAggregateAnalytics,
|
|
124
132
|
getLinkedInMentions,
|
|
125
133
|
getLinkedInOrgAggregateAnalytics,
|
|
@@ -183,6 +191,7 @@ import {
|
|
|
183
191
|
listConversionDestinations,
|
|
184
192
|
listCustomFields,
|
|
185
193
|
listFacebookPages,
|
|
194
|
+
listFormLeads,
|
|
186
195
|
listGoogleBusinessLocations,
|
|
187
196
|
listGoogleBusinessMedia,
|
|
188
197
|
listGoogleBusinessPlaceActions,
|
|
@@ -190,6 +199,8 @@ import {
|
|
|
190
199
|
listInboxConversations,
|
|
191
200
|
listInboxReviews,
|
|
192
201
|
listInstagramStories,
|
|
202
|
+
listLeadForms,
|
|
203
|
+
listLeads,
|
|
193
204
|
listLinkedInOrganizations,
|
|
194
205
|
listLogs,
|
|
195
206
|
listPinterestBoardsForSelection,
|
|
@@ -206,6 +217,7 @@ import {
|
|
|
206
217
|
listWhatsAppGroupChats,
|
|
207
218
|
listWhatsAppGroupJoinRequests,
|
|
208
219
|
listWhatsAppPhoneNumbers,
|
|
220
|
+
markConversationRead,
|
|
209
221
|
moveAccountToProfile,
|
|
210
222
|
pauseSequence,
|
|
211
223
|
previewQueue,
|
|
@@ -225,7 +237,7 @@ import {
|
|
|
225
237
|
retweetPost,
|
|
226
238
|
scheduleBroadcast,
|
|
227
239
|
searchAdInterests,
|
|
228
|
-
|
|
240
|
+
searchAdTargeting,
|
|
229
241
|
searchReddit,
|
|
230
242
|
selectFacebookPage,
|
|
231
243
|
selectGoogleBusinessLocation,
|
|
@@ -243,6 +255,7 @@ import {
|
|
|
243
255
|
setInstagramIceBreakers,
|
|
244
256
|
setMessengerMenu,
|
|
245
257
|
setTelegramCommands,
|
|
258
|
+
startGoogleBusinessVerification,
|
|
246
259
|
testWebhook,
|
|
247
260
|
undoRetweet,
|
|
248
261
|
unenrollContact,
|
|
@@ -552,6 +565,16 @@ export class Zernio {
|
|
|
552
565
|
},
|
|
553
566
|
};
|
|
554
567
|
|
|
568
|
+
/**
|
|
569
|
+
* gmbverifications API
|
|
570
|
+
*/
|
|
571
|
+
gmbverifications = {
|
|
572
|
+
getGoogleBusinessVerifications: getGoogleBusinessVerifications,
|
|
573
|
+
startGoogleBusinessVerification: startGoogleBusinessVerification,
|
|
574
|
+
fetchGoogleBusinessVerificationOptions: fetchGoogleBusinessVerificationOptions,
|
|
575
|
+
completeGoogleBusinessVerification: completeGoogleBusinessVerification,
|
|
576
|
+
};
|
|
577
|
+
|
|
555
578
|
/**
|
|
556
579
|
* gmbfoodmenus API
|
|
557
580
|
*/
|
|
@@ -663,6 +686,7 @@ export class Zernio {
|
|
|
663
686
|
editInboxMessage: editInboxMessage,
|
|
664
687
|
deleteInboxMessage: deleteInboxMessage,
|
|
665
688
|
sendTypingIndicator: sendTypingIndicator,
|
|
689
|
+
markConversationRead: markConversationRead,
|
|
666
690
|
addMessageReaction: addMessageReaction,
|
|
667
691
|
removeMessageReaction: removeMessageReaction,
|
|
668
692
|
uploadMediaDirect: uploadMediaDirect,
|
|
@@ -856,8 +880,16 @@ export class Zernio {
|
|
|
856
880
|
listAdAccounts: listAdAccounts,
|
|
857
881
|
boostPost: boostPost,
|
|
858
882
|
createStandaloneAd: createStandaloneAd,
|
|
883
|
+
listLeads: listLeads,
|
|
884
|
+
listLeadForms: listLeadForms,
|
|
885
|
+
createLeadForm: createLeadForm,
|
|
886
|
+
getLeadForm: getLeadForm,
|
|
887
|
+
archiveLeadForm: archiveLeadForm,
|
|
888
|
+
listFormLeads: listFormLeads,
|
|
889
|
+
createTestLead: createTestLead,
|
|
859
890
|
searchAdInterests: searchAdInterests,
|
|
860
|
-
|
|
891
|
+
searchAdTargeting: searchAdTargeting,
|
|
892
|
+
estimateAdReach: estimateAdReach,
|
|
861
893
|
sendConversions: sendConversions,
|
|
862
894
|
listConversionDestinations: listConversionDestinations,
|
|
863
895
|
createConversionDestination: createConversionDestination,
|