@zernio/node 0.2.1517 → 0.2.1519

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/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.1517",
39
+ version: "0.2.1519",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -4572,6 +4572,192 @@ var removeAdKeyword = (options) => {
4572
4572
  url: "/v1/ads/keywords/{keywordId}"
4573
4573
  });
4574
4574
  };
4575
+ var listAutomations = (options) => {
4576
+ return (options?.client ?? client).get({
4577
+ ...options,
4578
+ url: "/v1/automations"
4579
+ });
4580
+ };
4581
+ var createAutomation = (options) => {
4582
+ return (options?.client ?? client).post({
4583
+ ...options,
4584
+ url: "/v1/automations"
4585
+ });
4586
+ };
4587
+ var getAutomationCatalog = (options) => {
4588
+ return (options?.client ?? client).get({
4589
+ ...options,
4590
+ url: "/v1/automations/catalog"
4591
+ });
4592
+ };
4593
+ var listAutomationActions = (options) => {
4594
+ return (options?.client ?? client).get({
4595
+ ...options,
4596
+ url: "/v1/automations/actions"
4597
+ });
4598
+ };
4599
+ var listAutomationChecks = (options) => {
4600
+ return (options?.client ?? client).get({
4601
+ ...options,
4602
+ url: "/v1/automations/{automationId}/checks"
4603
+ });
4604
+ };
4605
+ var previewAutomationDraft = (options) => {
4606
+ return (options?.client ?? client).post({
4607
+ ...options,
4608
+ url: "/v1/automations/preview"
4609
+ });
4610
+ };
4611
+ var getAutomation = (options) => {
4612
+ return (options?.client ?? client).get({
4613
+ ...options,
4614
+ url: "/v1/automations/{automationId}"
4615
+ });
4616
+ };
4617
+ var updateAutomation = (options) => {
4618
+ return (options?.client ?? client).patch({
4619
+ ...options,
4620
+ url: "/v1/automations/{automationId}"
4621
+ });
4622
+ };
4623
+ var deleteAutomation = (options) => {
4624
+ return (options?.client ?? client).delete({
4625
+ ...options,
4626
+ url: "/v1/automations/{automationId}"
4627
+ });
4628
+ };
4629
+ var activateAutomation = (options) => {
4630
+ return (options?.client ?? client).post({
4631
+ ...options,
4632
+ url: "/v1/automations/{automationId}/activate"
4633
+ });
4634
+ };
4635
+ var pauseAutomation = (options) => {
4636
+ return (options?.client ?? client).post({
4637
+ ...options,
4638
+ url: "/v1/automations/{automationId}/pause"
4639
+ });
4640
+ };
4641
+ var previewAutomation = (options) => {
4642
+ return (options?.client ?? client).post({
4643
+ ...options,
4644
+ url: "/v1/automations/{automationId}/preview"
4645
+ });
4646
+ };
4647
+ var listAutomationTemplates = (options) => {
4648
+ return (options?.client ?? client).get({
4649
+ ...options,
4650
+ url: "/v1/automations/templates"
4651
+ });
4652
+ };
4653
+ var createAutomationTemplate = (options) => {
4654
+ return (options?.client ?? client).post({
4655
+ ...options,
4656
+ url: "/v1/automations/templates"
4657
+ });
4658
+ };
4659
+ var getAutomationTemplate = (options) => {
4660
+ return (options?.client ?? client).get({
4661
+ ...options,
4662
+ url: "/v1/automations/templates/{templateId}"
4663
+ });
4664
+ };
4665
+ var updateAutomationTemplate = (options) => {
4666
+ return (options?.client ?? client).patch({
4667
+ ...options,
4668
+ url: "/v1/automations/templates/{templateId}"
4669
+ });
4670
+ };
4671
+ var deleteAutomationTemplate = (options) => {
4672
+ return (options?.client ?? client).delete({
4673
+ ...options,
4674
+ url: "/v1/automations/templates/{templateId}"
4675
+ });
4676
+ };
4677
+ var installAutomationTemplate = (options) => {
4678
+ return (options?.client ?? client).post({
4679
+ ...options,
4680
+ url: "/v1/automations/templates/{templateId}/install"
4681
+ });
4682
+ };
4683
+ var getSharedAutomationTemplate = (options) => {
4684
+ return (options?.client ?? client).get({
4685
+ ...options,
4686
+ url: "/v1/automations/templates/shared/{shareToken}"
4687
+ });
4688
+ };
4689
+ var installSharedAutomationTemplate = (options) => {
4690
+ return (options?.client ?? client).post({
4691
+ ...options,
4692
+ url: "/v1/automations/templates/shared/{shareToken}/install"
4693
+ });
4694
+ };
4695
+ var getZernioAutomationTemplate = (options) => {
4696
+ return (options?.client ?? client).get({
4697
+ ...options,
4698
+ url: "/v1/automations/templates/zernio/{templateId}"
4699
+ });
4700
+ };
4701
+ var installZernioAutomationTemplate = (options) => {
4702
+ return (options?.client ?? client).post({
4703
+ ...options,
4704
+ url: "/v1/automations/templates/zernio/{templateId}/install"
4705
+ });
4706
+ };
4707
+ var getAutomationControls = (options) => {
4708
+ return (options?.client ?? client).get({
4709
+ ...options,
4710
+ url: "/v1/automations/controls"
4711
+ });
4712
+ };
4713
+ var updateAutomationControls = (options) => {
4714
+ return (options?.client ?? client).patch({
4715
+ ...options,
4716
+ url: "/v1/automations/controls"
4717
+ });
4718
+ };
4719
+ var updateAutomationAdAccountControls = (options) => {
4720
+ return (options?.client ?? client).patch({
4721
+ ...options,
4722
+ url: "/v1/automations/controls/ad-accounts"
4723
+ });
4724
+ };
4725
+ var listAutomationApprovals = (options) => {
4726
+ return (options?.client ?? client).get({
4727
+ ...options,
4728
+ url: "/v1/automations/{automationId}/approvals"
4729
+ });
4730
+ };
4731
+ var getAutomationApproval = (options) => {
4732
+ return (options?.client ?? client).get({
4733
+ ...options,
4734
+ url: "/v1/automations/{automationId}/approvals/{approvalId}"
4735
+ });
4736
+ };
4737
+ var approveAutomationApproval = (options) => {
4738
+ return (options?.client ?? client).post({
4739
+ ...options,
4740
+ url: "/v1/automations/{automationId}/approvals/{approvalId}/approve"
4741
+ });
4742
+ };
4743
+ var rejectAutomationApproval = (options) => {
4744
+ return (options?.client ?? client).post({
4745
+ ...options,
4746
+ url: "/v1/automations/{automationId}/approvals/{approvalId}/reject"
4747
+ });
4748
+ };
4749
+ var backtestAutomationDraft = (options) => {
4750
+ return (options?.client ?? client).post({
4751
+ ...options,
4752
+ url: "/v1/automations/backtest"
4753
+ });
4754
+ };
4755
+ var backtestAutomation = (options) => {
4756
+ return (options?.client ?? client).post({
4757
+ ...options,
4758
+ url: "/v1/automations/{automationId}/backtest"
4759
+ });
4760
+ };
4575
4761
  var listAdRules = (options) => {
4576
4762
  return (options?.client ?? client).get({
4577
4763
  ...options,
@@ -8475,6 +8661,42 @@ var Zernio = class _Zernio {
8475
8661
  getAdAnalytics: this._bind(getAdAnalytics),
8476
8662
  getTikTokSmartPlusMaterialReport: this._bind(getTikTokSmartPlusMaterialReport)
8477
8663
  };
8664
+ /**
8665
+ * automations API
8666
+ */
8667
+ this.automations = {
8668
+ listAutomations: this._bind(listAutomations),
8669
+ createAutomation: this._bind(createAutomation),
8670
+ getAutomationCatalog: this._bind(getAutomationCatalog),
8671
+ listAutomationActions: this._bind(listAutomationActions),
8672
+ listAutomationChecks: this._bind(listAutomationChecks),
8673
+ previewAutomationDraft: this._bind(previewAutomationDraft),
8674
+ getAutomation: this._bind(getAutomation),
8675
+ updateAutomation: this._bind(updateAutomation),
8676
+ deleteAutomation: this._bind(deleteAutomation),
8677
+ activateAutomation: this._bind(activateAutomation),
8678
+ pauseAutomation: this._bind(pauseAutomation),
8679
+ previewAutomation: this._bind(previewAutomation),
8680
+ listAutomationTemplates: this._bind(listAutomationTemplates),
8681
+ createAutomationTemplate: this._bind(createAutomationTemplate),
8682
+ getAutomationTemplate: this._bind(getAutomationTemplate),
8683
+ updateAutomationTemplate: this._bind(updateAutomationTemplate),
8684
+ deleteAutomationTemplate: this._bind(deleteAutomationTemplate),
8685
+ installAutomationTemplate: this._bind(installAutomationTemplate),
8686
+ getSharedAutomationTemplate: this._bind(getSharedAutomationTemplate),
8687
+ installSharedAutomationTemplate: this._bind(installSharedAutomationTemplate),
8688
+ getZernioAutomationTemplate: this._bind(getZernioAutomationTemplate),
8689
+ installZernioAutomationTemplate: this._bind(installZernioAutomationTemplate),
8690
+ getAutomationControls: this._bind(getAutomationControls),
8691
+ updateAutomationControls: this._bind(updateAutomationControls),
8692
+ updateAutomationAdAccountControls: this._bind(updateAutomationAdAccountControls),
8693
+ listAutomationApprovals: this._bind(listAutomationApprovals),
8694
+ getAutomationApproval: this._bind(getAutomationApproval),
8695
+ approveAutomationApproval: this._bind(approveAutomationApproval),
8696
+ rejectAutomationApproval: this._bind(rejectAutomationApproval),
8697
+ backtestAutomationDraft: this._bind(backtestAutomationDraft),
8698
+ backtestAutomation: this._bind(backtestAutomation)
8699
+ };
8478
8700
  /**
8479
8701
  * adrules API
8480
8702
  */
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.1517",
8
+ version: "0.2.1519",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -4541,6 +4541,192 @@ var removeAdKeyword = (options) => {
4541
4541
  url: "/v1/ads/keywords/{keywordId}"
4542
4542
  });
4543
4543
  };
4544
+ var listAutomations = (options) => {
4545
+ return (options?.client ?? client).get({
4546
+ ...options,
4547
+ url: "/v1/automations"
4548
+ });
4549
+ };
4550
+ var createAutomation = (options) => {
4551
+ return (options?.client ?? client).post({
4552
+ ...options,
4553
+ url: "/v1/automations"
4554
+ });
4555
+ };
4556
+ var getAutomationCatalog = (options) => {
4557
+ return (options?.client ?? client).get({
4558
+ ...options,
4559
+ url: "/v1/automations/catalog"
4560
+ });
4561
+ };
4562
+ var listAutomationActions = (options) => {
4563
+ return (options?.client ?? client).get({
4564
+ ...options,
4565
+ url: "/v1/automations/actions"
4566
+ });
4567
+ };
4568
+ var listAutomationChecks = (options) => {
4569
+ return (options?.client ?? client).get({
4570
+ ...options,
4571
+ url: "/v1/automations/{automationId}/checks"
4572
+ });
4573
+ };
4574
+ var previewAutomationDraft = (options) => {
4575
+ return (options?.client ?? client).post({
4576
+ ...options,
4577
+ url: "/v1/automations/preview"
4578
+ });
4579
+ };
4580
+ var getAutomation = (options) => {
4581
+ return (options?.client ?? client).get({
4582
+ ...options,
4583
+ url: "/v1/automations/{automationId}"
4584
+ });
4585
+ };
4586
+ var updateAutomation = (options) => {
4587
+ return (options?.client ?? client).patch({
4588
+ ...options,
4589
+ url: "/v1/automations/{automationId}"
4590
+ });
4591
+ };
4592
+ var deleteAutomation = (options) => {
4593
+ return (options?.client ?? client).delete({
4594
+ ...options,
4595
+ url: "/v1/automations/{automationId}"
4596
+ });
4597
+ };
4598
+ var activateAutomation = (options) => {
4599
+ return (options?.client ?? client).post({
4600
+ ...options,
4601
+ url: "/v1/automations/{automationId}/activate"
4602
+ });
4603
+ };
4604
+ var pauseAutomation = (options) => {
4605
+ return (options?.client ?? client).post({
4606
+ ...options,
4607
+ url: "/v1/automations/{automationId}/pause"
4608
+ });
4609
+ };
4610
+ var previewAutomation = (options) => {
4611
+ return (options?.client ?? client).post({
4612
+ ...options,
4613
+ url: "/v1/automations/{automationId}/preview"
4614
+ });
4615
+ };
4616
+ var listAutomationTemplates = (options) => {
4617
+ return (options?.client ?? client).get({
4618
+ ...options,
4619
+ url: "/v1/automations/templates"
4620
+ });
4621
+ };
4622
+ var createAutomationTemplate = (options) => {
4623
+ return (options?.client ?? client).post({
4624
+ ...options,
4625
+ url: "/v1/automations/templates"
4626
+ });
4627
+ };
4628
+ var getAutomationTemplate = (options) => {
4629
+ return (options?.client ?? client).get({
4630
+ ...options,
4631
+ url: "/v1/automations/templates/{templateId}"
4632
+ });
4633
+ };
4634
+ var updateAutomationTemplate = (options) => {
4635
+ return (options?.client ?? client).patch({
4636
+ ...options,
4637
+ url: "/v1/automations/templates/{templateId}"
4638
+ });
4639
+ };
4640
+ var deleteAutomationTemplate = (options) => {
4641
+ return (options?.client ?? client).delete({
4642
+ ...options,
4643
+ url: "/v1/automations/templates/{templateId}"
4644
+ });
4645
+ };
4646
+ var installAutomationTemplate = (options) => {
4647
+ return (options?.client ?? client).post({
4648
+ ...options,
4649
+ url: "/v1/automations/templates/{templateId}/install"
4650
+ });
4651
+ };
4652
+ var getSharedAutomationTemplate = (options) => {
4653
+ return (options?.client ?? client).get({
4654
+ ...options,
4655
+ url: "/v1/automations/templates/shared/{shareToken}"
4656
+ });
4657
+ };
4658
+ var installSharedAutomationTemplate = (options) => {
4659
+ return (options?.client ?? client).post({
4660
+ ...options,
4661
+ url: "/v1/automations/templates/shared/{shareToken}/install"
4662
+ });
4663
+ };
4664
+ var getZernioAutomationTemplate = (options) => {
4665
+ return (options?.client ?? client).get({
4666
+ ...options,
4667
+ url: "/v1/automations/templates/zernio/{templateId}"
4668
+ });
4669
+ };
4670
+ var installZernioAutomationTemplate = (options) => {
4671
+ return (options?.client ?? client).post({
4672
+ ...options,
4673
+ url: "/v1/automations/templates/zernio/{templateId}/install"
4674
+ });
4675
+ };
4676
+ var getAutomationControls = (options) => {
4677
+ return (options?.client ?? client).get({
4678
+ ...options,
4679
+ url: "/v1/automations/controls"
4680
+ });
4681
+ };
4682
+ var updateAutomationControls = (options) => {
4683
+ return (options?.client ?? client).patch({
4684
+ ...options,
4685
+ url: "/v1/automations/controls"
4686
+ });
4687
+ };
4688
+ var updateAutomationAdAccountControls = (options) => {
4689
+ return (options?.client ?? client).patch({
4690
+ ...options,
4691
+ url: "/v1/automations/controls/ad-accounts"
4692
+ });
4693
+ };
4694
+ var listAutomationApprovals = (options) => {
4695
+ return (options?.client ?? client).get({
4696
+ ...options,
4697
+ url: "/v1/automations/{automationId}/approvals"
4698
+ });
4699
+ };
4700
+ var getAutomationApproval = (options) => {
4701
+ return (options?.client ?? client).get({
4702
+ ...options,
4703
+ url: "/v1/automations/{automationId}/approvals/{approvalId}"
4704
+ });
4705
+ };
4706
+ var approveAutomationApproval = (options) => {
4707
+ return (options?.client ?? client).post({
4708
+ ...options,
4709
+ url: "/v1/automations/{automationId}/approvals/{approvalId}/approve"
4710
+ });
4711
+ };
4712
+ var rejectAutomationApproval = (options) => {
4713
+ return (options?.client ?? client).post({
4714
+ ...options,
4715
+ url: "/v1/automations/{automationId}/approvals/{approvalId}/reject"
4716
+ });
4717
+ };
4718
+ var backtestAutomationDraft = (options) => {
4719
+ return (options?.client ?? client).post({
4720
+ ...options,
4721
+ url: "/v1/automations/backtest"
4722
+ });
4723
+ };
4724
+ var backtestAutomation = (options) => {
4725
+ return (options?.client ?? client).post({
4726
+ ...options,
4727
+ url: "/v1/automations/{automationId}/backtest"
4728
+ });
4729
+ };
4544
4730
  var listAdRules = (options) => {
4545
4731
  return (options?.client ?? client).get({
4546
4732
  ...options,
@@ -8444,6 +8630,42 @@ var Zernio = class _Zernio {
8444
8630
  getAdAnalytics: this._bind(getAdAnalytics),
8445
8631
  getTikTokSmartPlusMaterialReport: this._bind(getTikTokSmartPlusMaterialReport)
8446
8632
  };
8633
+ /**
8634
+ * automations API
8635
+ */
8636
+ this.automations = {
8637
+ listAutomations: this._bind(listAutomations),
8638
+ createAutomation: this._bind(createAutomation),
8639
+ getAutomationCatalog: this._bind(getAutomationCatalog),
8640
+ listAutomationActions: this._bind(listAutomationActions),
8641
+ listAutomationChecks: this._bind(listAutomationChecks),
8642
+ previewAutomationDraft: this._bind(previewAutomationDraft),
8643
+ getAutomation: this._bind(getAutomation),
8644
+ updateAutomation: this._bind(updateAutomation),
8645
+ deleteAutomation: this._bind(deleteAutomation),
8646
+ activateAutomation: this._bind(activateAutomation),
8647
+ pauseAutomation: this._bind(pauseAutomation),
8648
+ previewAutomation: this._bind(previewAutomation),
8649
+ listAutomationTemplates: this._bind(listAutomationTemplates),
8650
+ createAutomationTemplate: this._bind(createAutomationTemplate),
8651
+ getAutomationTemplate: this._bind(getAutomationTemplate),
8652
+ updateAutomationTemplate: this._bind(updateAutomationTemplate),
8653
+ deleteAutomationTemplate: this._bind(deleteAutomationTemplate),
8654
+ installAutomationTemplate: this._bind(installAutomationTemplate),
8655
+ getSharedAutomationTemplate: this._bind(getSharedAutomationTemplate),
8656
+ installSharedAutomationTemplate: this._bind(installSharedAutomationTemplate),
8657
+ getZernioAutomationTemplate: this._bind(getZernioAutomationTemplate),
8658
+ installZernioAutomationTemplate: this._bind(installZernioAutomationTemplate),
8659
+ getAutomationControls: this._bind(getAutomationControls),
8660
+ updateAutomationControls: this._bind(updateAutomationControls),
8661
+ updateAutomationAdAccountControls: this._bind(updateAutomationAdAccountControls),
8662
+ listAutomationApprovals: this._bind(listAutomationApprovals),
8663
+ getAutomationApproval: this._bind(getAutomationApproval),
8664
+ approveAutomationApproval: this._bind(approveAutomationApproval),
8665
+ rejectAutomationApproval: this._bind(rejectAutomationApproval),
8666
+ backtestAutomationDraft: this._bind(backtestAutomationDraft),
8667
+ backtestAutomation: this._bind(backtestAutomation)
8668
+ };
8447
8669
  /**
8448
8670
  * adrules API
8449
8671
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zernio/node",
3
- "version": "0.2.1517",
3
+ "version": "0.2.1519",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/client.ts CHANGED
@@ -2,6 +2,7 @@ import packageJson from '../package.json';
2
2
  import { createClient, createConfig, type Client } from '@hey-api/client-fetch';
3
3
  import {
4
4
  acceptConversationRequest,
5
+ activateAutomation,
5
6
  activateCreatorCampaign,
6
7
  activateSequence,
7
8
  activateWorkflow,
@@ -28,6 +29,7 @@ import {
28
29
  adjustConversions,
29
30
  appealSmsRegistration,
30
31
  applyGoogleRecommendations,
32
+ approveAutomationApproval,
31
33
  approveCampaignSubmission,
32
34
  approveWhatsAppGroupJoinRequests,
33
35
  archiveLeadForm,
@@ -41,6 +43,8 @@ import {
41
43
  attachBrandedCallingNumbers,
42
44
  attachCampaignAssets,
43
45
  attachNumberToSipTrunk,
46
+ backtestAutomation,
47
+ backtestAutomationDraft,
44
48
  batchAdCatalogProducts,
45
49
  batchGetGoogleBusinessReviews,
46
50
  blockWhatsAppUsers,
@@ -107,6 +111,8 @@ import {
107
111
  createAdRule,
108
112
  createAdSet,
109
113
  createApiKey,
114
+ createAutomation,
115
+ createAutomationTemplate,
110
116
  createBidStrategy,
111
117
  createBlog,
112
118
  createBlogArticle,
@@ -215,6 +221,8 @@ import {
215
221
  deleteAdSet,
216
222
  deleteAdVideo,
217
223
  deleteApiKey,
224
+ deleteAutomation,
225
+ deleteAutomationTemplate,
218
226
  deleteBlog,
219
227
  deleteBlogArticle,
220
228
  deleteBrandedCallingEnterprise,
@@ -353,6 +361,11 @@ import {
353
361
  getAnalyticsDashboard,
354
362
  getAnalyticsDelta,
355
363
  getAutoRecharge,
364
+ getAutomation,
365
+ getAutomationApproval,
366
+ getAutomationCatalog,
367
+ getAutomationControls,
368
+ getAutomationTemplate,
356
369
  getBalance,
357
370
  getBestTimeToPost,
358
371
  getBilling,
@@ -514,6 +527,7 @@ import {
514
527
  getRedditSubreddits,
515
528
  getRfPrediction,
516
529
  getSequence,
530
+ getSharedAutomationTemplate,
517
531
  getShopifyConnectUrl,
518
532
  getSipTrunk,
519
533
  getSlackSettings,
@@ -592,13 +606,17 @@ import {
592
606
  getYouTubeVideoRetention,
593
607
  getYoutubeCaptions,
594
608
  getYoutubePlaylists,
609
+ getZernioAutomationTemplate,
595
610
  grantBusinessPartner,
596
611
  handleOAuthCallback,
597
612
  hideAdComment,
598
613
  hideInboxComment,
599
614
  initiateTelegramConnect,
600
615
  initiateWhatsAppCall,
616
+ installAutomationTemplate,
617
+ installSharedAutomationTemplate,
601
618
  installTrackingTagOnStore,
619
+ installZernioAutomationTemplate,
602
620
  inviteAdAccountToManager,
603
621
  inviteAdAccountUser,
604
622
  joinCreatorCampaign,
@@ -645,6 +663,11 @@ import {
645
663
  listAdsTikTokIdentities,
646
664
  listAdvertisableApplications,
647
665
  listApiKeys,
666
+ listAutomationActions,
667
+ listAutomationApprovals,
668
+ listAutomationChecks,
669
+ listAutomationTemplates,
670
+ listAutomations,
648
671
  listBidStrategies,
649
672
  listBlogArticles,
650
673
  listBlogs,
@@ -820,6 +843,7 @@ import {
820
843
  onboardBusinessAgent,
821
844
  openTrackingWindow,
822
845
  orderImessageSender,
846
+ pauseAutomation,
823
847
  pauseCreatorCampaign,
824
848
  pauseSequence,
825
849
  pauseWorkflow,
@@ -830,6 +854,8 @@ import {
830
854
  preflightSmsRegistration,
831
855
  prepareMedia,
832
856
  previewAdRule,
857
+ previewAutomation,
858
+ previewAutomationDraft,
833
859
  previewQueue,
834
860
  previewTopup,
835
861
  publishWhatsAppFlow,
@@ -844,6 +870,7 @@ import {
844
870
  registerImessageSender,
845
871
  registerWhatsAppNumber,
846
872
  reinstateCampaignParticipant,
873
+ rejectAutomationApproval,
847
874
  rejectCampaignSubmission,
848
875
  rejectWhatsAppGroupJoinRequests,
849
876
  releasePhoneNumber,
@@ -1039,6 +1066,10 @@ import {
1039
1066
  updateAdStatus,
1040
1067
  updateAdTrackingTags,
1041
1068
  updateAutoRecharge,
1069
+ updateAutomation,
1070
+ updateAutomationAdAccountControls,
1071
+ updateAutomationControls,
1072
+ updateAutomationTemplate,
1042
1073
  updateBidStrategy,
1043
1074
  updateBlog,
1044
1075
  updateBlogArticle,
@@ -2468,6 +2499,43 @@ export class Zernio {
2468
2499
  getTikTokSmartPlusMaterialReport: this._bind(getTikTokSmartPlusMaterialReport),
2469
2500
  };
2470
2501
 
2502
+ /**
2503
+ * automations API
2504
+ */
2505
+ automations = {
2506
+ listAutomations: this._bind(listAutomations),
2507
+ createAutomation: this._bind(createAutomation),
2508
+ getAutomationCatalog: this._bind(getAutomationCatalog),
2509
+ listAutomationActions: this._bind(listAutomationActions),
2510
+ listAutomationChecks: this._bind(listAutomationChecks),
2511
+ previewAutomationDraft: this._bind(previewAutomationDraft),
2512
+ getAutomation: this._bind(getAutomation),
2513
+ updateAutomation: this._bind(updateAutomation),
2514
+ deleteAutomation: this._bind(deleteAutomation),
2515
+ activateAutomation: this._bind(activateAutomation),
2516
+ pauseAutomation: this._bind(pauseAutomation),
2517
+ previewAutomation: this._bind(previewAutomation),
2518
+ listAutomationTemplates: this._bind(listAutomationTemplates),
2519
+ createAutomationTemplate: this._bind(createAutomationTemplate),
2520
+ getAutomationTemplate: this._bind(getAutomationTemplate),
2521
+ updateAutomationTemplate: this._bind(updateAutomationTemplate),
2522
+ deleteAutomationTemplate: this._bind(deleteAutomationTemplate),
2523
+ installAutomationTemplate: this._bind(installAutomationTemplate),
2524
+ getSharedAutomationTemplate: this._bind(getSharedAutomationTemplate),
2525
+ installSharedAutomationTemplate: this._bind(installSharedAutomationTemplate),
2526
+ getZernioAutomationTemplate: this._bind(getZernioAutomationTemplate),
2527
+ installZernioAutomationTemplate: this._bind(installZernioAutomationTemplate),
2528
+ getAutomationControls: this._bind(getAutomationControls),
2529
+ updateAutomationControls: this._bind(updateAutomationControls),
2530
+ updateAutomationAdAccountControls: this._bind(updateAutomationAdAccountControls),
2531
+ listAutomationApprovals: this._bind(listAutomationApprovals),
2532
+ getAutomationApproval: this._bind(getAutomationApproval),
2533
+ approveAutomationApproval: this._bind(approveAutomationApproval),
2534
+ rejectAutomationApproval: this._bind(rejectAutomationApproval),
2535
+ backtestAutomationDraft: this._bind(backtestAutomationDraft),
2536
+ backtestAutomation: this._bind(backtestAutomation),
2537
+ };
2538
+
2471
2539
  /**
2472
2540
  * adrules API
2473
2541
  */