@getlatedev/node 0.2.1374 → 0.2.1375

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: "@getlatedev/node",
39
- version: "0.2.1374",
39
+ version: "0.2.1375",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -511,6 +511,138 @@ var getPostingFrequency = (options) => {
511
511
  url: "/v1/analytics/posting-frequency"
512
512
  });
513
513
  };
514
+ var getLedgerBalances = (options) => {
515
+ return (options?.client ?? client).get({
516
+ ...options,
517
+ url: "/v1/ledger/balances"
518
+ });
519
+ };
520
+ var listLedgerEntries = (options) => {
521
+ return (options?.client ?? client).get({
522
+ ...options,
523
+ url: "/v1/ledger/entries"
524
+ });
525
+ };
526
+ var getBalance = (options) => {
527
+ return (options?.client ?? client).get({
528
+ ...options,
529
+ url: "/v1/balance"
530
+ });
531
+ };
532
+ var createTopup = (options) => {
533
+ return (options?.client ?? client).post({
534
+ ...options,
535
+ url: "/v1/balance/top-ups"
536
+ });
537
+ };
538
+ var listTopups = (options) => {
539
+ return (options?.client ?? client).get({
540
+ ...options,
541
+ url: "/v1/balance/top-ups"
542
+ });
543
+ };
544
+ var getTopupReceipt = (options) => {
545
+ return (options?.client ?? client).get({
546
+ ...options,
547
+ url: "/v1/balance/top-ups/{topupId}/receipt"
548
+ });
549
+ };
550
+ var listPayees = (options) => {
551
+ return (options?.client ?? client).get({
552
+ ...options,
553
+ url: "/v1/payees"
554
+ });
555
+ };
556
+ var createPayeeOnboardingLink = (options) => {
557
+ return (options?.client ?? client).post({
558
+ ...options,
559
+ url: "/v1/payees/{payeeId}/onboarding-link"
560
+ });
561
+ };
562
+ var createTransfer = (options) => {
563
+ return (options?.client ?? client).post({
564
+ ...options,
565
+ url: "/v1/transfers"
566
+ });
567
+ };
568
+ var listTransfers = (options) => {
569
+ return (options?.client ?? client).get({
570
+ ...options,
571
+ url: "/v1/transfers"
572
+ });
573
+ };
574
+ var getTransfer = (options) => {
575
+ return (options?.client ?? client).get({
576
+ ...options,
577
+ url: "/v1/transfers/{transferId}"
578
+ });
579
+ };
580
+ var recoverCreatorPortalLinks = (options) => {
581
+ return (options?.client ?? client).post({
582
+ ...options,
583
+ url: "/public/creator-campaigns/recover-link"
584
+ });
585
+ };
586
+ var getCreatorPortal = (options) => {
587
+ return (options?.client ?? client).get({
588
+ ...options,
589
+ url: "/public/creator-campaigns/{token}"
590
+ });
591
+ };
592
+ var joinCreatorCampaign = (options) => {
593
+ return (options?.client ?? client).post({
594
+ ...options,
595
+ url: "/public/creator-campaigns/{token}"
596
+ });
597
+ };
598
+ var startCreatorConnect = (options) => {
599
+ return (options?.client ?? client).post({
600
+ ...options,
601
+ url: "/public/creator-campaigns/{token}/connect"
602
+ });
603
+ };
604
+ var submitCreatorPost = (options) => {
605
+ return (options?.client ?? client).post({
606
+ ...options,
607
+ url: "/public/creator-campaigns/{token}/submissions"
608
+ });
609
+ };
610
+ var getCreatorPayouts = (options) => {
611
+ return (options?.client ?? client).get({
612
+ ...options,
613
+ url: "/public/creator-campaigns/{token}/payouts"
614
+ });
615
+ };
616
+ var startCreatorPayouts = (options) => {
617
+ return (options?.client ?? client).post({
618
+ ...options,
619
+ url: "/public/creator-campaigns/{token}/payouts"
620
+ });
621
+ };
622
+ var createCreatorPayoutLogin = (options) => {
623
+ return (options?.client ?? client).post({
624
+ ...options,
625
+ url: "/public/creator-campaigns/{token}/payout-login"
626
+ });
627
+ };
628
+ var getCreatorPayoutStatement = (options) => {
629
+ return (options?.client ?? client).get({
630
+ ...options,
631
+ url: "/public/creator-campaigns/{token}/payouts/{transferId}/statement"
632
+ });
633
+ };
634
+ var getPayoutBatch = (options) => {
635
+ return (options?.client ?? client).get({
636
+ ...options,
637
+ url: "/v1/payout-batches/{batchId}"
638
+ });
639
+ };
640
+ var cancelPayoutBatch = (options) => {
641
+ return (options?.client ?? client).post({
642
+ ...options,
643
+ url: "/v1/payout-batches/{batchId}/cancel"
644
+ });
645
+ };
514
646
  var getPostTimeline = (options) => {
515
647
  return (options?.client ?? client).get({
516
648
  ...options,
@@ -535,6 +667,48 @@ var getGoogleAnalyticsMetadata = (options) => {
535
667
  url: "/v1/analytics/googleanalytics/metadata"
536
668
  });
537
669
  };
670
+ var openTrackingWindow = (options) => {
671
+ return (options?.client ?? client).post({
672
+ ...options,
673
+ url: "/v1/analytics/tracking"
674
+ });
675
+ };
676
+ var listTrackingWindows = (options) => {
677
+ return (options?.client ?? client).get({
678
+ ...options,
679
+ url: "/v1/analytics/tracking"
680
+ });
681
+ };
682
+ var getTrackingWindow = (options) => {
683
+ return (options?.client ?? client).get({
684
+ ...options,
685
+ url: "/v1/analytics/tracking/{windowId}"
686
+ });
687
+ };
688
+ var cancelTrackingWindow = (options) => {
689
+ return (options?.client ?? client).delete({
690
+ ...options,
691
+ url: "/v1/analytics/tracking/{windowId}"
692
+ });
693
+ };
694
+ var getPostSamples = (options) => {
695
+ return (options?.client ?? client).get({
696
+ ...options,
697
+ url: "/v1/analytics/samples"
698
+ });
699
+ };
700
+ var getPostAuthenticity = (options) => {
701
+ return (options?.client ?? client).get({
702
+ ...options,
703
+ url: "/v1/posts/{postId}/authenticity"
704
+ });
705
+ };
706
+ var listPostAuthenticity = (options) => {
707
+ return (options?.client ?? client).get({
708
+ ...options,
709
+ url: "/v1/analytics/authenticity"
710
+ });
711
+ };
538
712
  var getGoogleBusinessPerformance = (options) => {
539
713
  return (options?.client ?? client).get({
540
714
  ...options,
@@ -6804,6 +6978,168 @@ var listChangelog = (options) => {
6804
6978
  url: "/v1/changelog"
6805
6979
  });
6806
6980
  };
6981
+ var createCreatorCampaign = (options) => {
6982
+ return (options?.client ?? client).post({
6983
+ ...options,
6984
+ url: "/v1/creator-campaigns"
6985
+ });
6986
+ };
6987
+ var listCreatorCampaigns = (options) => {
6988
+ return (options?.client ?? client).get({
6989
+ ...options,
6990
+ url: "/v1/creator-campaigns"
6991
+ });
6992
+ };
6993
+ var getCreatorCampaign = (options) => {
6994
+ return (options?.client ?? client).get({
6995
+ ...options,
6996
+ url: "/v1/creator-campaigns/{campaignId}"
6997
+ });
6998
+ };
6999
+ var updateCreatorCampaign = (options) => {
7000
+ return (options?.client ?? client).patch({
7001
+ ...options,
7002
+ url: "/v1/creator-campaigns/{campaignId}"
7003
+ });
7004
+ };
7005
+ var raiseCreatorCampaignBudget = (options) => {
7006
+ return (options?.client ?? client).post({
7007
+ ...options,
7008
+ url: "/v1/creator-campaigns/{campaignId}/budget"
7009
+ });
7010
+ };
7011
+ var activateCreatorCampaign = (options) => {
7012
+ return (options?.client ?? client).post({
7013
+ ...options,
7014
+ url: "/v1/creator-campaigns/{campaignId}/activate"
7015
+ });
7016
+ };
7017
+ var pauseCreatorCampaign = (options) => {
7018
+ return (options?.client ?? client).post({
7019
+ ...options,
7020
+ url: "/v1/creator-campaigns/{campaignId}/pause"
7021
+ });
7022
+ };
7023
+ var closeCreatorCampaign = (options) => {
7024
+ return (options?.client ?? client).post({
7025
+ ...options,
7026
+ url: "/v1/creator-campaigns/{campaignId}/close"
7027
+ });
7028
+ };
7029
+ var createCampaignParticipant = (options) => {
7030
+ return (options?.client ?? client).post({
7031
+ ...options,
7032
+ url: "/v1/creator-campaigns/{campaignId}/participants"
7033
+ });
7034
+ };
7035
+ var listCampaignParticipants = (options) => {
7036
+ return (options?.client ?? client).get({
7037
+ ...options,
7038
+ url: "/v1/creator-campaigns/{campaignId}/participants"
7039
+ });
7040
+ };
7041
+ var getCampaignParticipant = (options) => {
7042
+ return (options?.client ?? client).get({
7043
+ ...options,
7044
+ url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}"
7045
+ });
7046
+ };
7047
+ var suspendCampaignParticipant = (options) => {
7048
+ return (options?.client ?? client).post({
7049
+ ...options,
7050
+ url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/suspend"
7051
+ });
7052
+ };
7053
+ var reinstateCampaignParticipant = (options) => {
7054
+ return (options?.client ?? client).post({
7055
+ ...options,
7056
+ url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/reinstate"
7057
+ });
7058
+ };
7059
+ var removeCampaignParticipant = (options) => {
7060
+ return (options?.client ?? client).post({
7061
+ ...options,
7062
+ url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/remove"
7063
+ });
7064
+ };
7065
+ var settleCampaignParticipant = (options) => {
7066
+ return (options?.client ?? client).post({
7067
+ ...options,
7068
+ url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/settle"
7069
+ });
7070
+ };
7071
+ var createCampaignPayoutBatch = (options) => {
7072
+ return (options?.client ?? client).post({
7073
+ ...options,
7074
+ url: "/v1/creator-campaigns/{campaignId}/payout-batches"
7075
+ });
7076
+ };
7077
+ var listCampaignPayoutBatches = (options) => {
7078
+ return (options?.client ?? client).get({
7079
+ ...options,
7080
+ url: "/v1/creator-campaigns/{campaignId}/payout-batches"
7081
+ });
7082
+ };
7083
+ var createCampaignInviteLink = (options) => {
7084
+ return (options?.client ?? client).post({
7085
+ ...options,
7086
+ url: "/v1/creator-campaigns/{campaignId}/invite-link"
7087
+ });
7088
+ };
7089
+ var listCampaignSubmissions = (options) => {
7090
+ return (options?.client ?? client).get({
7091
+ ...options,
7092
+ url: "/v1/creator-campaigns/{campaignId}/submissions"
7093
+ });
7094
+ };
7095
+ var getCampaignSubmission = (options) => {
7096
+ return (options?.client ?? client).get({
7097
+ ...options,
7098
+ url: "/v1/creator-campaigns/{campaignId}/submissions/{submissionId}"
7099
+ });
7100
+ };
7101
+ var approveCampaignSubmission = (options) => {
7102
+ return (options?.client ?? client).post({
7103
+ ...options,
7104
+ url: "/v1/creator-campaigns/{campaignId}/submissions/{submissionId}/approve"
7105
+ });
7106
+ };
7107
+ var rejectCampaignSubmission = (options) => {
7108
+ return (options?.client ?? client).post({
7109
+ ...options,
7110
+ url: "/v1/creator-campaigns/{campaignId}/submissions/{submissionId}/reject"
7111
+ });
7112
+ };
7113
+ var reopenCampaignSubmission = (options) => {
7114
+ return (options?.client ?? client).post({
7115
+ ...options,
7116
+ url: "/v1/creator-campaigns/{campaignId}/submissions/{submissionId}/reopen"
7117
+ });
7118
+ };
7119
+ var listCampaignPayables = (options) => {
7120
+ return (options?.client ?? client).get({
7121
+ ...options,
7122
+ url: "/v1/creator-campaigns/{campaignId}/payables"
7123
+ });
7124
+ };
7125
+ var createCampaignAdjustment = (options) => {
7126
+ return (options?.client ?? client).post({
7127
+ ...options,
7128
+ url: "/v1/creator-campaigns/{campaignId}/adjustments"
7129
+ });
7130
+ };
7131
+ var listCampaignLedger = (options) => {
7132
+ return (options?.client ?? client).get({
7133
+ ...options,
7134
+ url: "/v1/creator-campaigns/{campaignId}/ledger"
7135
+ });
7136
+ };
7137
+ var getCampaignReport = (options) => {
7138
+ return (options?.client ?? client).get({
7139
+ ...options,
7140
+ url: "/v1/creator-campaigns/{campaignId}/report"
7141
+ });
7142
+ };
6807
7143
 
6808
7144
  // src/errors.ts
6809
7145
  var ZernioApiError = class _ZernioApiError extends Error {
@@ -6952,6 +7288,13 @@ var Zernio = class _Zernio {
6952
7288
  runGoogleAnalyticsReport: this._bind(runGoogleAnalyticsReport),
6953
7289
  runGoogleAnalyticsRealtimeReport: this._bind(runGoogleAnalyticsRealtimeReport),
6954
7290
  getGoogleAnalyticsMetadata: this._bind(getGoogleAnalyticsMetadata),
7291
+ openTrackingWindow: this._bind(openTrackingWindow),
7292
+ listTrackingWindows: this._bind(listTrackingWindows),
7293
+ getTrackingWindow: this._bind(getTrackingWindow),
7294
+ cancelTrackingWindow: this._bind(cancelTrackingWindow),
7295
+ getPostSamples: this._bind(getPostSamples),
7296
+ getPostAuthenticity: this._bind(getPostAuthenticity),
7297
+ listPostAuthenticity: this._bind(listPostAuthenticity),
6955
7298
  getGoogleBusinessPerformance: this._bind(getGoogleBusinessPerformance),
6956
7299
  getGoogleBusinessSearchKeywords: this._bind(getGoogleBusinessSearchKeywords),
6957
7300
  syncExternalPosts: this._bind(syncExternalPosts),
@@ -6962,6 +7305,43 @@ var Zernio = class _Zernio {
6962
7305
  listFacebookVisitorPosts: this._bind(listFacebookVisitorPosts),
6963
7306
  listFacebookTaggedPosts: this._bind(listFacebookTaggedPosts)
6964
7307
  };
7308
+ /**
7309
+ * ledger API
7310
+ */
7311
+ this.ledger = {
7312
+ getLedgerBalances: this._bind(getLedgerBalances),
7313
+ listLedgerEntries: this._bind(listLedgerEntries)
7314
+ };
7315
+ /**
7316
+ * treasury API
7317
+ */
7318
+ this.treasury = {
7319
+ getBalance: this._bind(getBalance),
7320
+ createTopup: this._bind(createTopup),
7321
+ listTopups: this._bind(listTopups),
7322
+ getTopupReceipt: this._bind(getTopupReceipt),
7323
+ listPayees: this._bind(listPayees),
7324
+ createPayeeOnboardingLink: this._bind(createPayeeOnboardingLink),
7325
+ createTransfer: this._bind(createTransfer),
7326
+ listTransfers: this._bind(listTransfers),
7327
+ getTransfer: this._bind(getTransfer),
7328
+ getPayoutBatch: this._bind(getPayoutBatch),
7329
+ cancelPayoutBatch: this._bind(cancelPayoutBatch)
7330
+ };
7331
+ /**
7332
+ * creatorportal API
7333
+ */
7334
+ this.creatorportal = {
7335
+ recoverCreatorPortalLinks: this._bind(recoverCreatorPortalLinks),
7336
+ getCreatorPortal: this._bind(getCreatorPortal),
7337
+ joinCreatorCampaign: this._bind(joinCreatorCampaign),
7338
+ startCreatorConnect: this._bind(startCreatorConnect),
7339
+ submitCreatorPost: this._bind(submitCreatorPost),
7340
+ getCreatorPayouts: this._bind(getCreatorPayouts),
7341
+ startCreatorPayouts: this._bind(startCreatorPayouts),
7342
+ createCreatorPayoutLogin: this._bind(createCreatorPayoutLogin),
7343
+ getCreatorPayoutStatement: this._bind(getCreatorPayoutStatement)
7344
+ };
6965
7345
  /**
6966
7346
  * inboxanalytics API
6967
7347
  */
@@ -8391,6 +8771,38 @@ var Zernio = class _Zernio {
8391
8771
  this.changelog = {
8392
8772
  listChangelog: this._bind(listChangelog)
8393
8773
  };
8774
+ /**
8775
+ * creatorcampaigns API
8776
+ */
8777
+ this.creatorcampaigns = {
8778
+ createCreatorCampaign: this._bind(createCreatorCampaign),
8779
+ listCreatorCampaigns: this._bind(listCreatorCampaigns),
8780
+ getCreatorCampaign: this._bind(getCreatorCampaign),
8781
+ updateCreatorCampaign: this._bind(updateCreatorCampaign),
8782
+ raiseCreatorCampaignBudget: this._bind(raiseCreatorCampaignBudget),
8783
+ activateCreatorCampaign: this._bind(activateCreatorCampaign),
8784
+ pauseCreatorCampaign: this._bind(pauseCreatorCampaign),
8785
+ closeCreatorCampaign: this._bind(closeCreatorCampaign),
8786
+ createCampaignParticipant: this._bind(createCampaignParticipant),
8787
+ listCampaignParticipants: this._bind(listCampaignParticipants),
8788
+ getCampaignParticipant: this._bind(getCampaignParticipant),
8789
+ suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
8790
+ reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
8791
+ removeCampaignParticipant: this._bind(removeCampaignParticipant),
8792
+ settleCampaignParticipant: this._bind(settleCampaignParticipant),
8793
+ createCampaignPayoutBatch: this._bind(createCampaignPayoutBatch),
8794
+ listCampaignPayoutBatches: this._bind(listCampaignPayoutBatches),
8795
+ createCampaignInviteLink: this._bind(createCampaignInviteLink),
8796
+ listCampaignSubmissions: this._bind(listCampaignSubmissions),
8797
+ getCampaignSubmission: this._bind(getCampaignSubmission),
8798
+ approveCampaignSubmission: this._bind(approveCampaignSubmission),
8799
+ rejectCampaignSubmission: this._bind(rejectCampaignSubmission),
8800
+ reopenCampaignSubmission: this._bind(reopenCampaignSubmission),
8801
+ listCampaignPayables: this._bind(listCampaignPayables),
8802
+ createCampaignAdjustment: this._bind(createCampaignAdjustment),
8803
+ listCampaignLedger: this._bind(listCampaignLedger),
8804
+ getCampaignReport: this._bind(getCampaignReport)
8805
+ };
8394
8806
  /**
8395
8807
  * @deprecated The `ads` namespace has been split. Use one of these instead:
8396
8808
  * zernio.adcampaigns, zernio.adaccounts, zernio.adcreatives, zernio.adaudiences, zernio.adtargeting, zernio.adinsights, zernio.conversions, zernio.messagingads, zernio.reachandfrequency, zernio.leadgen, zernio.trackingtags.