@zernio/node 0.2.997 → 0.2.999
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 +81 -0
- package/dist/index.d.mts +2241 -82
- package/dist/index.d.ts +2241 -82
- package/dist/index.js +545 -1
- package/dist/index.mjs +545 -1
- package/package.json +1 -1
- package/src/client.ts +160 -0
- package/src/generated/sdk.gen.ts +903 -1
- package/src/generated/types.gen.ts +2426 -83
package/src/client.ts
CHANGED
|
@@ -10,9 +10,13 @@ import {
|
|
|
10
10
|
addBroadcastRecipients,
|
|
11
11
|
addBusinessAgentAllowlistEntry,
|
|
12
12
|
addBusinessAgentWebsite,
|
|
13
|
+
addCommerceDiscountCodes,
|
|
14
|
+
addCommerceMarketingEngagement,
|
|
15
|
+
addCommerceProductImages,
|
|
13
16
|
addConversionAssociations,
|
|
14
17
|
addDiscordMemberRole,
|
|
15
18
|
addImessageGroupParticipant,
|
|
19
|
+
addImessageSandboxContact,
|
|
16
20
|
addMessageReaction,
|
|
17
21
|
addRcsTestDevice,
|
|
18
22
|
addTrackingTagSharedAccount,
|
|
@@ -44,6 +48,12 @@ import {
|
|
|
44
48
|
cancelImessageSender,
|
|
45
49
|
cancelPhoneNumberPortIn,
|
|
46
50
|
cancelRfReservation,
|
|
51
|
+
changeCollectionChannels,
|
|
52
|
+
changeCommerceCollectionProducts,
|
|
53
|
+
changeCommerceInventory,
|
|
54
|
+
changeCommerceProductState,
|
|
55
|
+
changeCommerceProductTags,
|
|
56
|
+
changeProductChannels,
|
|
47
57
|
checkPhoneNumberAvailability,
|
|
48
58
|
checkPhoneNumberPortability,
|
|
49
59
|
checkVerification,
|
|
@@ -92,6 +102,16 @@ import {
|
|
|
92
102
|
createBusinessAgentUiSkill,
|
|
93
103
|
createCallAd,
|
|
94
104
|
createCommentAutomation,
|
|
105
|
+
createCommerceCatalogSync,
|
|
106
|
+
createCommerceCollection,
|
|
107
|
+
createCommerceDiscount,
|
|
108
|
+
createCommerceMenu,
|
|
109
|
+
createCommerceMetaobject,
|
|
110
|
+
createCommercePage,
|
|
111
|
+
createCommerceProduct,
|
|
112
|
+
createCommerceProductOptions,
|
|
113
|
+
createCommerceProductVariants,
|
|
114
|
+
createCommerceRedirect,
|
|
95
115
|
createContact,
|
|
96
116
|
createConversionAction,
|
|
97
117
|
createConversionDestination,
|
|
@@ -171,7 +191,19 @@ import {
|
|
|
171
191
|
deleteBusinessAgentSkill,
|
|
172
192
|
deleteBusinessAgentUiSkill,
|
|
173
193
|
deleteBusinessAgentWebsite,
|
|
194
|
+
deleteCollectionMetafields,
|
|
174
195
|
deleteCommentAutomation,
|
|
196
|
+
deleteCommerceCatalogSync,
|
|
197
|
+
deleteCommerceCollection,
|
|
198
|
+
deleteCommerceDiscount,
|
|
199
|
+
deleteCommerceMarketingActivity,
|
|
200
|
+
deleteCommerceMenu,
|
|
201
|
+
deleteCommerceMetaobject,
|
|
202
|
+
deleteCommercePage,
|
|
203
|
+
deleteCommercePriceListPrices,
|
|
204
|
+
deleteCommerceProductOptions,
|
|
205
|
+
deleteCommerceProductVariants,
|
|
206
|
+
deleteCommerceRedirect,
|
|
175
207
|
deleteContact,
|
|
176
208
|
deleteConversionDestination,
|
|
177
209
|
deleteCustomField,
|
|
@@ -189,6 +221,7 @@ import {
|
|
|
189
221
|
deleteMessengerMenu,
|
|
190
222
|
deletePhoneNumberStockWatch,
|
|
191
223
|
deletePost,
|
|
224
|
+
deleteProductMetafields,
|
|
192
225
|
deleteProfile,
|
|
193
226
|
deleteQueueSlot,
|
|
194
227
|
deleteSequence,
|
|
@@ -220,6 +253,7 @@ import {
|
|
|
220
253
|
duplicateAd,
|
|
221
254
|
duplicateAdCampaign,
|
|
222
255
|
duplicateAdSet,
|
|
256
|
+
duplicateCommerceProduct,
|
|
223
257
|
duplicateWorkflow,
|
|
224
258
|
editDiscordGuildRole,
|
|
225
259
|
editGoogleAssetGroupAssets,
|
|
@@ -293,6 +327,14 @@ import {
|
|
|
293
327
|
getCampaignConversionGoals,
|
|
294
328
|
getCampaignTargeting,
|
|
295
329
|
getCommentAutomation,
|
|
330
|
+
getCommerceCatalogSync,
|
|
331
|
+
getCommerceCollection,
|
|
332
|
+
getCommerceDiscount,
|
|
333
|
+
getCommerceMenu,
|
|
334
|
+
getCommerceMetaobject,
|
|
335
|
+
getCommercePage,
|
|
336
|
+
getCommerceProduct,
|
|
337
|
+
getCommerceStore,
|
|
296
338
|
getConnectUrl,
|
|
297
339
|
getContact,
|
|
298
340
|
getContactChannels,
|
|
@@ -511,8 +553,23 @@ import {
|
|
|
511
553
|
listCampaignAssets,
|
|
512
554
|
listCampaignNegativeKeywordLists,
|
|
513
555
|
listCampaignNegativeKeywords,
|
|
556
|
+
listCollectionMetafields,
|
|
514
557
|
listCommentAutomationLogs,
|
|
515
558
|
listCommentAutomations,
|
|
559
|
+
listCommerceCatalogSyncs,
|
|
560
|
+
listCommerceChannels,
|
|
561
|
+
listCommerceCollections,
|
|
562
|
+
listCommerceDiscounts,
|
|
563
|
+
listCommerceInventory,
|
|
564
|
+
listCommerceLocations,
|
|
565
|
+
listCommerceMarkets,
|
|
566
|
+
listCommerceMenus,
|
|
567
|
+
listCommerceMetaobjectDefinitions,
|
|
568
|
+
listCommerceMetaobjects,
|
|
569
|
+
listCommercePages,
|
|
570
|
+
listCommercePriceLists,
|
|
571
|
+
listCommerceProducts,
|
|
572
|
+
listCommerceRedirects,
|
|
516
573
|
listConnectedApps,
|
|
517
574
|
listContacts,
|
|
518
575
|
listConversionActions,
|
|
@@ -535,6 +592,7 @@ import {
|
|
|
535
592
|
listHighDemandPeriods,
|
|
536
593
|
listImessageAudience,
|
|
537
594
|
listImessageAvailableNumbers,
|
|
595
|
+
listImessageSandboxContacts,
|
|
538
596
|
listImessageSenderOrders,
|
|
539
597
|
listImessageSenders,
|
|
540
598
|
listInboxComments,
|
|
@@ -561,6 +619,7 @@ import {
|
|
|
561
619
|
listPhoneNumbers,
|
|
562
620
|
listPinterestBoardsForSelection,
|
|
563
621
|
listPosts,
|
|
622
|
+
listProductMetafields,
|
|
564
623
|
listProducts,
|
|
565
624
|
listProfiles,
|
|
566
625
|
listQueueSlots,
|
|
@@ -639,11 +698,13 @@ import {
|
|
|
639
698
|
removeBookmark,
|
|
640
699
|
removeBusinessAgentAllowlistEntry,
|
|
641
700
|
removeCampaignAssets,
|
|
701
|
+
removeCommerceProductImages,
|
|
642
702
|
removeConversionAssociations,
|
|
643
703
|
removeCustomConversionGoal,
|
|
644
704
|
removeDiscordMemberRole,
|
|
645
705
|
removeGoogleAssetGroup,
|
|
646
706
|
removeImessageGroupParticipant,
|
|
707
|
+
removeImessageSandboxContact,
|
|
647
708
|
removeMessageReaction,
|
|
648
709
|
removePageUser,
|
|
649
710
|
removeRcsTestDevice,
|
|
@@ -651,6 +712,8 @@ import {
|
|
|
651
712
|
removeTrackingTagSharedAccount,
|
|
652
713
|
removeTrackingTagUser,
|
|
653
714
|
removeWhatsAppGroupParticipants,
|
|
715
|
+
reorderCommerceCollectionProducts,
|
|
716
|
+
reorderCommerceProductImages,
|
|
654
717
|
replaceAdAudienceCompanies,
|
|
655
718
|
replaceAdNegativeKeywordListKeywords,
|
|
656
719
|
replaceBusinessAgentBudget,
|
|
@@ -684,6 +747,7 @@ import {
|
|
|
684
747
|
revokeConnectedApp,
|
|
685
748
|
rotateSipTrunkCredentials,
|
|
686
749
|
runBusinessAgentConnectorTool,
|
|
750
|
+
runCommerceCatalogSync,
|
|
687
751
|
scheduleBroadcast,
|
|
688
752
|
searchAdInterests,
|
|
689
753
|
searchAdLibrary,
|
|
@@ -715,7 +779,10 @@ import {
|
|
|
715
779
|
sendWhatsAppConversion,
|
|
716
780
|
sendWhatsAppFlowMessage,
|
|
717
781
|
setBusinessAgentConnectorCredentials,
|
|
782
|
+
setCollectionMetafields,
|
|
718
783
|
setCommentModeration,
|
|
784
|
+
setCommerceDiscountActive,
|
|
785
|
+
setCommercePriceListPrices,
|
|
719
786
|
setContactFieldValue,
|
|
720
787
|
setConversationThreadControl,
|
|
721
788
|
setImessageSubscription,
|
|
@@ -723,6 +790,7 @@ import {
|
|
|
723
790
|
setMessengerGetStarted,
|
|
724
791
|
setMessengerMenu,
|
|
725
792
|
setPartnershipAdPermission,
|
|
793
|
+
setProductMetafields,
|
|
726
794
|
setRedditPostFlair,
|
|
727
795
|
setTelegramCommands,
|
|
728
796
|
setWhatsAppFlowsEncryptionKey,
|
|
@@ -792,6 +860,14 @@ import {
|
|
|
792
860
|
updateCampaignConversionGoals,
|
|
793
861
|
updateCampaignTargeting,
|
|
794
862
|
updateCommentAutomation,
|
|
863
|
+
updateCommerceCollection,
|
|
864
|
+
updateCommerceDiscount,
|
|
865
|
+
updateCommerceMenu,
|
|
866
|
+
updateCommerceMetaobject,
|
|
867
|
+
updateCommercePage,
|
|
868
|
+
updateCommerceProduct,
|
|
869
|
+
updateCommerceProductPrices,
|
|
870
|
+
updateCommerceRedirect,
|
|
795
871
|
updateContact,
|
|
796
872
|
updateConversionAction,
|
|
797
873
|
updateConversionDestination,
|
|
@@ -848,6 +924,7 @@ import {
|
|
|
848
924
|
uploadWhatsAppFlowJson,
|
|
849
925
|
uploadWhatsAppNumberKycDocument,
|
|
850
926
|
uploadWhatsAppProfilePhoto,
|
|
927
|
+
upsertCommerceMarketingActivity,
|
|
851
928
|
validateMedia,
|
|
852
929
|
validatePhoneNumberKycAddress,
|
|
853
930
|
validatePost,
|
|
@@ -1617,6 +1694,9 @@ export class Zernio {
|
|
|
1617
1694
|
updateImessageSender: this._bind(updateImessageSender),
|
|
1618
1695
|
cancelImessageSender: this._bind(cancelImessageSender),
|
|
1619
1696
|
listImessageAudience: this._bind(listImessageAudience),
|
|
1697
|
+
listImessageSandboxContacts: this._bind(listImessageSandboxContacts),
|
|
1698
|
+
addImessageSandboxContact: this._bind(addImessageSandboxContact),
|
|
1699
|
+
removeImessageSandboxContact: this._bind(removeImessageSandboxContact),
|
|
1620
1700
|
setImessageSubscription: this._bind(setImessageSubscription),
|
|
1621
1701
|
createImessageOptInLink: this._bind(createImessageOptInLink),
|
|
1622
1702
|
listImessageAvailableNumbers: this._bind(listImessageAvailableNumbers),
|
|
@@ -2287,6 +2367,86 @@ export class Zernio {
|
|
|
2287
2367
|
updateProduct: this._bind(updateProduct),
|
|
2288
2368
|
};
|
|
2289
2369
|
|
|
2370
|
+
/**
|
|
2371
|
+
* commerce API
|
|
2372
|
+
*/
|
|
2373
|
+
commerce = {
|
|
2374
|
+
getCommerceStore: this._bind(getCommerceStore),
|
|
2375
|
+
listCommerceProducts: this._bind(listCommerceProducts),
|
|
2376
|
+
createCommerceProduct: this._bind(createCommerceProduct),
|
|
2377
|
+
changeCommerceProductState: this._bind(changeCommerceProductState),
|
|
2378
|
+
getCommerceProduct: this._bind(getCommerceProduct),
|
|
2379
|
+
updateCommerceProduct: this._bind(updateCommerceProduct),
|
|
2380
|
+
updateCommerceProductPrices: this._bind(updateCommerceProductPrices),
|
|
2381
|
+
listCommerceCollections: this._bind(listCommerceCollections),
|
|
2382
|
+
createCommerceCollection: this._bind(createCommerceCollection),
|
|
2383
|
+
getCommerceCollection: this._bind(getCommerceCollection),
|
|
2384
|
+
updateCommerceCollection: this._bind(updateCommerceCollection),
|
|
2385
|
+
deleteCommerceCollection: this._bind(deleteCommerceCollection),
|
|
2386
|
+
changeCommerceCollectionProducts: this._bind(changeCommerceCollectionProducts),
|
|
2387
|
+
createCommerceProductVariants: this._bind(createCommerceProductVariants),
|
|
2388
|
+
deleteCommerceProductVariants: this._bind(deleteCommerceProductVariants),
|
|
2389
|
+
createCommerceProductOptions: this._bind(createCommerceProductOptions),
|
|
2390
|
+
deleteCommerceProductOptions: this._bind(deleteCommerceProductOptions),
|
|
2391
|
+
addCommerceProductImages: this._bind(addCommerceProductImages),
|
|
2392
|
+
removeCommerceProductImages: this._bind(removeCommerceProductImages),
|
|
2393
|
+
reorderCommerceProductImages: this._bind(reorderCommerceProductImages),
|
|
2394
|
+
duplicateCommerceProduct: this._bind(duplicateCommerceProduct),
|
|
2395
|
+
listProductMetafields: this._bind(listProductMetafields),
|
|
2396
|
+
setProductMetafields: this._bind(setProductMetafields),
|
|
2397
|
+
deleteProductMetafields: this._bind(deleteProductMetafields),
|
|
2398
|
+
changeProductChannels: this._bind(changeProductChannels),
|
|
2399
|
+
listCollectionMetafields: this._bind(listCollectionMetafields),
|
|
2400
|
+
setCollectionMetafields: this._bind(setCollectionMetafields),
|
|
2401
|
+
deleteCollectionMetafields: this._bind(deleteCollectionMetafields),
|
|
2402
|
+
changeCollectionChannels: this._bind(changeCollectionChannels),
|
|
2403
|
+
changeCommerceProductTags: this._bind(changeCommerceProductTags),
|
|
2404
|
+
reorderCommerceCollectionProducts: this._bind(reorderCommerceCollectionProducts),
|
|
2405
|
+
listCommercePages: this._bind(listCommercePages),
|
|
2406
|
+
createCommercePage: this._bind(createCommercePage),
|
|
2407
|
+
getCommercePage: this._bind(getCommercePage),
|
|
2408
|
+
updateCommercePage: this._bind(updateCommercePage),
|
|
2409
|
+
deleteCommercePage: this._bind(deleteCommercePage),
|
|
2410
|
+
listCommerceLocations: this._bind(listCommerceLocations),
|
|
2411
|
+
listCommerceInventory: this._bind(listCommerceInventory),
|
|
2412
|
+
changeCommerceInventory: this._bind(changeCommerceInventory),
|
|
2413
|
+
listCommerceChannels: this._bind(listCommerceChannels),
|
|
2414
|
+
listCommerceDiscounts: this._bind(listCommerceDiscounts),
|
|
2415
|
+
createCommerceDiscount: this._bind(createCommerceDiscount),
|
|
2416
|
+
getCommerceDiscount: this._bind(getCommerceDiscount),
|
|
2417
|
+
updateCommerceDiscount: this._bind(updateCommerceDiscount),
|
|
2418
|
+
deleteCommerceDiscount: this._bind(deleteCommerceDiscount),
|
|
2419
|
+
setCommerceDiscountActive: this._bind(setCommerceDiscountActive),
|
|
2420
|
+
addCommerceDiscountCodes: this._bind(addCommerceDiscountCodes),
|
|
2421
|
+
listCommerceRedirects: this._bind(listCommerceRedirects),
|
|
2422
|
+
createCommerceRedirect: this._bind(createCommerceRedirect),
|
|
2423
|
+
updateCommerceRedirect: this._bind(updateCommerceRedirect),
|
|
2424
|
+
deleteCommerceRedirect: this._bind(deleteCommerceRedirect),
|
|
2425
|
+
listCommerceMenus: this._bind(listCommerceMenus),
|
|
2426
|
+
createCommerceMenu: this._bind(createCommerceMenu),
|
|
2427
|
+
getCommerceMenu: this._bind(getCommerceMenu),
|
|
2428
|
+
updateCommerceMenu: this._bind(updateCommerceMenu),
|
|
2429
|
+
deleteCommerceMenu: this._bind(deleteCommerceMenu),
|
|
2430
|
+
listCommerceMetaobjectDefinitions: this._bind(listCommerceMetaobjectDefinitions),
|
|
2431
|
+
listCommerceMetaobjects: this._bind(listCommerceMetaobjects),
|
|
2432
|
+
createCommerceMetaobject: this._bind(createCommerceMetaobject),
|
|
2433
|
+
getCommerceMetaobject: this._bind(getCommerceMetaobject),
|
|
2434
|
+
updateCommerceMetaobject: this._bind(updateCommerceMetaobject),
|
|
2435
|
+
deleteCommerceMetaobject: this._bind(deleteCommerceMetaobject),
|
|
2436
|
+
listCommerceMarkets: this._bind(listCommerceMarkets),
|
|
2437
|
+
listCommercePriceLists: this._bind(listCommercePriceLists),
|
|
2438
|
+
setCommercePriceListPrices: this._bind(setCommercePriceListPrices),
|
|
2439
|
+
deleteCommercePriceListPrices: this._bind(deleteCommercePriceListPrices),
|
|
2440
|
+
upsertCommerceMarketingActivity: this._bind(upsertCommerceMarketingActivity),
|
|
2441
|
+
deleteCommerceMarketingActivity: this._bind(deleteCommerceMarketingActivity),
|
|
2442
|
+
addCommerceMarketingEngagement: this._bind(addCommerceMarketingEngagement),
|
|
2443
|
+
listCommerceCatalogSyncs: this._bind(listCommerceCatalogSyncs),
|
|
2444
|
+
createCommerceCatalogSync: this._bind(createCommerceCatalogSync),
|
|
2445
|
+
getCommerceCatalogSync: this._bind(getCommerceCatalogSync),
|
|
2446
|
+
deleteCommerceCatalogSync: this._bind(deleteCommerceCatalogSync),
|
|
2447
|
+
runCommerceCatalogSync: this._bind(runCommerceCatalogSync),
|
|
2448
|
+
};
|
|
2449
|
+
|
|
2290
2450
|
/**
|
|
2291
2451
|
* verify API
|
|
2292
2452
|
*/
|