@getlatedev/node 0.2.1373 → 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.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.1373",
8
+ version: "0.2.1375",
9
9
  description: "The official Node.js library for the Zernio API",
10
10
  main: "dist/index.js",
11
11
  module: "dist/index.mjs",
@@ -480,6 +480,138 @@ var getPostingFrequency = (options) => {
480
480
  url: "/v1/analytics/posting-frequency"
481
481
  });
482
482
  };
483
+ var getLedgerBalances = (options) => {
484
+ return (options?.client ?? client).get({
485
+ ...options,
486
+ url: "/v1/ledger/balances"
487
+ });
488
+ };
489
+ var listLedgerEntries = (options) => {
490
+ return (options?.client ?? client).get({
491
+ ...options,
492
+ url: "/v1/ledger/entries"
493
+ });
494
+ };
495
+ var getBalance = (options) => {
496
+ return (options?.client ?? client).get({
497
+ ...options,
498
+ url: "/v1/balance"
499
+ });
500
+ };
501
+ var createTopup = (options) => {
502
+ return (options?.client ?? client).post({
503
+ ...options,
504
+ url: "/v1/balance/top-ups"
505
+ });
506
+ };
507
+ var listTopups = (options) => {
508
+ return (options?.client ?? client).get({
509
+ ...options,
510
+ url: "/v1/balance/top-ups"
511
+ });
512
+ };
513
+ var getTopupReceipt = (options) => {
514
+ return (options?.client ?? client).get({
515
+ ...options,
516
+ url: "/v1/balance/top-ups/{topupId}/receipt"
517
+ });
518
+ };
519
+ var listPayees = (options) => {
520
+ return (options?.client ?? client).get({
521
+ ...options,
522
+ url: "/v1/payees"
523
+ });
524
+ };
525
+ var createPayeeOnboardingLink = (options) => {
526
+ return (options?.client ?? client).post({
527
+ ...options,
528
+ url: "/v1/payees/{payeeId}/onboarding-link"
529
+ });
530
+ };
531
+ var createTransfer = (options) => {
532
+ return (options?.client ?? client).post({
533
+ ...options,
534
+ url: "/v1/transfers"
535
+ });
536
+ };
537
+ var listTransfers = (options) => {
538
+ return (options?.client ?? client).get({
539
+ ...options,
540
+ url: "/v1/transfers"
541
+ });
542
+ };
543
+ var getTransfer = (options) => {
544
+ return (options?.client ?? client).get({
545
+ ...options,
546
+ url: "/v1/transfers/{transferId}"
547
+ });
548
+ };
549
+ var recoverCreatorPortalLinks = (options) => {
550
+ return (options?.client ?? client).post({
551
+ ...options,
552
+ url: "/public/creator-campaigns/recover-link"
553
+ });
554
+ };
555
+ var getCreatorPortal = (options) => {
556
+ return (options?.client ?? client).get({
557
+ ...options,
558
+ url: "/public/creator-campaigns/{token}"
559
+ });
560
+ };
561
+ var joinCreatorCampaign = (options) => {
562
+ return (options?.client ?? client).post({
563
+ ...options,
564
+ url: "/public/creator-campaigns/{token}"
565
+ });
566
+ };
567
+ var startCreatorConnect = (options) => {
568
+ return (options?.client ?? client).post({
569
+ ...options,
570
+ url: "/public/creator-campaigns/{token}/connect"
571
+ });
572
+ };
573
+ var submitCreatorPost = (options) => {
574
+ return (options?.client ?? client).post({
575
+ ...options,
576
+ url: "/public/creator-campaigns/{token}/submissions"
577
+ });
578
+ };
579
+ var getCreatorPayouts = (options) => {
580
+ return (options?.client ?? client).get({
581
+ ...options,
582
+ url: "/public/creator-campaigns/{token}/payouts"
583
+ });
584
+ };
585
+ var startCreatorPayouts = (options) => {
586
+ return (options?.client ?? client).post({
587
+ ...options,
588
+ url: "/public/creator-campaigns/{token}/payouts"
589
+ });
590
+ };
591
+ var createCreatorPayoutLogin = (options) => {
592
+ return (options?.client ?? client).post({
593
+ ...options,
594
+ url: "/public/creator-campaigns/{token}/payout-login"
595
+ });
596
+ };
597
+ var getCreatorPayoutStatement = (options) => {
598
+ return (options?.client ?? client).get({
599
+ ...options,
600
+ url: "/public/creator-campaigns/{token}/payouts/{transferId}/statement"
601
+ });
602
+ };
603
+ var getPayoutBatch = (options) => {
604
+ return (options?.client ?? client).get({
605
+ ...options,
606
+ url: "/v1/payout-batches/{batchId}"
607
+ });
608
+ };
609
+ var cancelPayoutBatch = (options) => {
610
+ return (options?.client ?? client).post({
611
+ ...options,
612
+ url: "/v1/payout-batches/{batchId}/cancel"
613
+ });
614
+ };
483
615
  var getPostTimeline = (options) => {
484
616
  return (options?.client ?? client).get({
485
617
  ...options,
@@ -504,6 +636,48 @@ var getGoogleAnalyticsMetadata = (options) => {
504
636
  url: "/v1/analytics/googleanalytics/metadata"
505
637
  });
506
638
  };
639
+ var openTrackingWindow = (options) => {
640
+ return (options?.client ?? client).post({
641
+ ...options,
642
+ url: "/v1/analytics/tracking"
643
+ });
644
+ };
645
+ var listTrackingWindows = (options) => {
646
+ return (options?.client ?? client).get({
647
+ ...options,
648
+ url: "/v1/analytics/tracking"
649
+ });
650
+ };
651
+ var getTrackingWindow = (options) => {
652
+ return (options?.client ?? client).get({
653
+ ...options,
654
+ url: "/v1/analytics/tracking/{windowId}"
655
+ });
656
+ };
657
+ var cancelTrackingWindow = (options) => {
658
+ return (options?.client ?? client).delete({
659
+ ...options,
660
+ url: "/v1/analytics/tracking/{windowId}"
661
+ });
662
+ };
663
+ var getPostSamples = (options) => {
664
+ return (options?.client ?? client).get({
665
+ ...options,
666
+ url: "/v1/analytics/samples"
667
+ });
668
+ };
669
+ var getPostAuthenticity = (options) => {
670
+ return (options?.client ?? client).get({
671
+ ...options,
672
+ url: "/v1/posts/{postId}/authenticity"
673
+ });
674
+ };
675
+ var listPostAuthenticity = (options) => {
676
+ return (options?.client ?? client).get({
677
+ ...options,
678
+ url: "/v1/analytics/authenticity"
679
+ });
680
+ };
507
681
  var getGoogleBusinessPerformance = (options) => {
508
682
  return (options?.client ?? client).get({
509
683
  ...options,
@@ -6773,6 +6947,168 @@ var listChangelog = (options) => {
6773
6947
  url: "/v1/changelog"
6774
6948
  });
6775
6949
  };
6950
+ var createCreatorCampaign = (options) => {
6951
+ return (options?.client ?? client).post({
6952
+ ...options,
6953
+ url: "/v1/creator-campaigns"
6954
+ });
6955
+ };
6956
+ var listCreatorCampaigns = (options) => {
6957
+ return (options?.client ?? client).get({
6958
+ ...options,
6959
+ url: "/v1/creator-campaigns"
6960
+ });
6961
+ };
6962
+ var getCreatorCampaign = (options) => {
6963
+ return (options?.client ?? client).get({
6964
+ ...options,
6965
+ url: "/v1/creator-campaigns/{campaignId}"
6966
+ });
6967
+ };
6968
+ var updateCreatorCampaign = (options) => {
6969
+ return (options?.client ?? client).patch({
6970
+ ...options,
6971
+ url: "/v1/creator-campaigns/{campaignId}"
6972
+ });
6973
+ };
6974
+ var raiseCreatorCampaignBudget = (options) => {
6975
+ return (options?.client ?? client).post({
6976
+ ...options,
6977
+ url: "/v1/creator-campaigns/{campaignId}/budget"
6978
+ });
6979
+ };
6980
+ var activateCreatorCampaign = (options) => {
6981
+ return (options?.client ?? client).post({
6982
+ ...options,
6983
+ url: "/v1/creator-campaigns/{campaignId}/activate"
6984
+ });
6985
+ };
6986
+ var pauseCreatorCampaign = (options) => {
6987
+ return (options?.client ?? client).post({
6988
+ ...options,
6989
+ url: "/v1/creator-campaigns/{campaignId}/pause"
6990
+ });
6991
+ };
6992
+ var closeCreatorCampaign = (options) => {
6993
+ return (options?.client ?? client).post({
6994
+ ...options,
6995
+ url: "/v1/creator-campaigns/{campaignId}/close"
6996
+ });
6997
+ };
6998
+ var createCampaignParticipant = (options) => {
6999
+ return (options?.client ?? client).post({
7000
+ ...options,
7001
+ url: "/v1/creator-campaigns/{campaignId}/participants"
7002
+ });
7003
+ };
7004
+ var listCampaignParticipants = (options) => {
7005
+ return (options?.client ?? client).get({
7006
+ ...options,
7007
+ url: "/v1/creator-campaigns/{campaignId}/participants"
7008
+ });
7009
+ };
7010
+ var getCampaignParticipant = (options) => {
7011
+ return (options?.client ?? client).get({
7012
+ ...options,
7013
+ url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}"
7014
+ });
7015
+ };
7016
+ var suspendCampaignParticipant = (options) => {
7017
+ return (options?.client ?? client).post({
7018
+ ...options,
7019
+ url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/suspend"
7020
+ });
7021
+ };
7022
+ var reinstateCampaignParticipant = (options) => {
7023
+ return (options?.client ?? client).post({
7024
+ ...options,
7025
+ url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/reinstate"
7026
+ });
7027
+ };
7028
+ var removeCampaignParticipant = (options) => {
7029
+ return (options?.client ?? client).post({
7030
+ ...options,
7031
+ url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/remove"
7032
+ });
7033
+ };
7034
+ var settleCampaignParticipant = (options) => {
7035
+ return (options?.client ?? client).post({
7036
+ ...options,
7037
+ url: "/v1/creator-campaigns/{campaignId}/participants/{participantId}/settle"
7038
+ });
7039
+ };
7040
+ var createCampaignPayoutBatch = (options) => {
7041
+ return (options?.client ?? client).post({
7042
+ ...options,
7043
+ url: "/v1/creator-campaigns/{campaignId}/payout-batches"
7044
+ });
7045
+ };
7046
+ var listCampaignPayoutBatches = (options) => {
7047
+ return (options?.client ?? client).get({
7048
+ ...options,
7049
+ url: "/v1/creator-campaigns/{campaignId}/payout-batches"
7050
+ });
7051
+ };
7052
+ var createCampaignInviteLink = (options) => {
7053
+ return (options?.client ?? client).post({
7054
+ ...options,
7055
+ url: "/v1/creator-campaigns/{campaignId}/invite-link"
7056
+ });
7057
+ };
7058
+ var listCampaignSubmissions = (options) => {
7059
+ return (options?.client ?? client).get({
7060
+ ...options,
7061
+ url: "/v1/creator-campaigns/{campaignId}/submissions"
7062
+ });
7063
+ };
7064
+ var getCampaignSubmission = (options) => {
7065
+ return (options?.client ?? client).get({
7066
+ ...options,
7067
+ url: "/v1/creator-campaigns/{campaignId}/submissions/{submissionId}"
7068
+ });
7069
+ };
7070
+ var approveCampaignSubmission = (options) => {
7071
+ return (options?.client ?? client).post({
7072
+ ...options,
7073
+ url: "/v1/creator-campaigns/{campaignId}/submissions/{submissionId}/approve"
7074
+ });
7075
+ };
7076
+ var rejectCampaignSubmission = (options) => {
7077
+ return (options?.client ?? client).post({
7078
+ ...options,
7079
+ url: "/v1/creator-campaigns/{campaignId}/submissions/{submissionId}/reject"
7080
+ });
7081
+ };
7082
+ var reopenCampaignSubmission = (options) => {
7083
+ return (options?.client ?? client).post({
7084
+ ...options,
7085
+ url: "/v1/creator-campaigns/{campaignId}/submissions/{submissionId}/reopen"
7086
+ });
7087
+ };
7088
+ var listCampaignPayables = (options) => {
7089
+ return (options?.client ?? client).get({
7090
+ ...options,
7091
+ url: "/v1/creator-campaigns/{campaignId}/payables"
7092
+ });
7093
+ };
7094
+ var createCampaignAdjustment = (options) => {
7095
+ return (options?.client ?? client).post({
7096
+ ...options,
7097
+ url: "/v1/creator-campaigns/{campaignId}/adjustments"
7098
+ });
7099
+ };
7100
+ var listCampaignLedger = (options) => {
7101
+ return (options?.client ?? client).get({
7102
+ ...options,
7103
+ url: "/v1/creator-campaigns/{campaignId}/ledger"
7104
+ });
7105
+ };
7106
+ var getCampaignReport = (options) => {
7107
+ return (options?.client ?? client).get({
7108
+ ...options,
7109
+ url: "/v1/creator-campaigns/{campaignId}/report"
7110
+ });
7111
+ };
6776
7112
 
6777
7113
  // src/errors.ts
6778
7114
  var ZernioApiError = class _ZernioApiError extends Error {
@@ -6921,6 +7257,13 @@ var Zernio = class _Zernio {
6921
7257
  runGoogleAnalyticsReport: this._bind(runGoogleAnalyticsReport),
6922
7258
  runGoogleAnalyticsRealtimeReport: this._bind(runGoogleAnalyticsRealtimeReport),
6923
7259
  getGoogleAnalyticsMetadata: this._bind(getGoogleAnalyticsMetadata),
7260
+ openTrackingWindow: this._bind(openTrackingWindow),
7261
+ listTrackingWindows: this._bind(listTrackingWindows),
7262
+ getTrackingWindow: this._bind(getTrackingWindow),
7263
+ cancelTrackingWindow: this._bind(cancelTrackingWindow),
7264
+ getPostSamples: this._bind(getPostSamples),
7265
+ getPostAuthenticity: this._bind(getPostAuthenticity),
7266
+ listPostAuthenticity: this._bind(listPostAuthenticity),
6924
7267
  getGoogleBusinessPerformance: this._bind(getGoogleBusinessPerformance),
6925
7268
  getGoogleBusinessSearchKeywords: this._bind(getGoogleBusinessSearchKeywords),
6926
7269
  syncExternalPosts: this._bind(syncExternalPosts),
@@ -6931,6 +7274,43 @@ var Zernio = class _Zernio {
6931
7274
  listFacebookVisitorPosts: this._bind(listFacebookVisitorPosts),
6932
7275
  listFacebookTaggedPosts: this._bind(listFacebookTaggedPosts)
6933
7276
  };
7277
+ /**
7278
+ * ledger API
7279
+ */
7280
+ this.ledger = {
7281
+ getLedgerBalances: this._bind(getLedgerBalances),
7282
+ listLedgerEntries: this._bind(listLedgerEntries)
7283
+ };
7284
+ /**
7285
+ * treasury API
7286
+ */
7287
+ this.treasury = {
7288
+ getBalance: this._bind(getBalance),
7289
+ createTopup: this._bind(createTopup),
7290
+ listTopups: this._bind(listTopups),
7291
+ getTopupReceipt: this._bind(getTopupReceipt),
7292
+ listPayees: this._bind(listPayees),
7293
+ createPayeeOnboardingLink: this._bind(createPayeeOnboardingLink),
7294
+ createTransfer: this._bind(createTransfer),
7295
+ listTransfers: this._bind(listTransfers),
7296
+ getTransfer: this._bind(getTransfer),
7297
+ getPayoutBatch: this._bind(getPayoutBatch),
7298
+ cancelPayoutBatch: this._bind(cancelPayoutBatch)
7299
+ };
7300
+ /**
7301
+ * creatorportal API
7302
+ */
7303
+ this.creatorportal = {
7304
+ recoverCreatorPortalLinks: this._bind(recoverCreatorPortalLinks),
7305
+ getCreatorPortal: this._bind(getCreatorPortal),
7306
+ joinCreatorCampaign: this._bind(joinCreatorCampaign),
7307
+ startCreatorConnect: this._bind(startCreatorConnect),
7308
+ submitCreatorPost: this._bind(submitCreatorPost),
7309
+ getCreatorPayouts: this._bind(getCreatorPayouts),
7310
+ startCreatorPayouts: this._bind(startCreatorPayouts),
7311
+ createCreatorPayoutLogin: this._bind(createCreatorPayoutLogin),
7312
+ getCreatorPayoutStatement: this._bind(getCreatorPayoutStatement)
7313
+ };
6934
7314
  /**
6935
7315
  * inboxanalytics API
6936
7316
  */
@@ -8360,6 +8740,38 @@ var Zernio = class _Zernio {
8360
8740
  this.changelog = {
8361
8741
  listChangelog: this._bind(listChangelog)
8362
8742
  };
8743
+ /**
8744
+ * creatorcampaigns API
8745
+ */
8746
+ this.creatorcampaigns = {
8747
+ createCreatorCampaign: this._bind(createCreatorCampaign),
8748
+ listCreatorCampaigns: this._bind(listCreatorCampaigns),
8749
+ getCreatorCampaign: this._bind(getCreatorCampaign),
8750
+ updateCreatorCampaign: this._bind(updateCreatorCampaign),
8751
+ raiseCreatorCampaignBudget: this._bind(raiseCreatorCampaignBudget),
8752
+ activateCreatorCampaign: this._bind(activateCreatorCampaign),
8753
+ pauseCreatorCampaign: this._bind(pauseCreatorCampaign),
8754
+ closeCreatorCampaign: this._bind(closeCreatorCampaign),
8755
+ createCampaignParticipant: this._bind(createCampaignParticipant),
8756
+ listCampaignParticipants: this._bind(listCampaignParticipants),
8757
+ getCampaignParticipant: this._bind(getCampaignParticipant),
8758
+ suspendCampaignParticipant: this._bind(suspendCampaignParticipant),
8759
+ reinstateCampaignParticipant: this._bind(reinstateCampaignParticipant),
8760
+ removeCampaignParticipant: this._bind(removeCampaignParticipant),
8761
+ settleCampaignParticipant: this._bind(settleCampaignParticipant),
8762
+ createCampaignPayoutBatch: this._bind(createCampaignPayoutBatch),
8763
+ listCampaignPayoutBatches: this._bind(listCampaignPayoutBatches),
8764
+ createCampaignInviteLink: this._bind(createCampaignInviteLink),
8765
+ listCampaignSubmissions: this._bind(listCampaignSubmissions),
8766
+ getCampaignSubmission: this._bind(getCampaignSubmission),
8767
+ approveCampaignSubmission: this._bind(approveCampaignSubmission),
8768
+ rejectCampaignSubmission: this._bind(rejectCampaignSubmission),
8769
+ reopenCampaignSubmission: this._bind(reopenCampaignSubmission),
8770
+ listCampaignPayables: this._bind(listCampaignPayables),
8771
+ createCampaignAdjustment: this._bind(createCampaignAdjustment),
8772
+ listCampaignLedger: this._bind(listCampaignLedger),
8773
+ getCampaignReport: this._bind(getCampaignReport)
8774
+ };
8363
8775
  /**
8364
8776
  * @deprecated The `ads` namespace has been split. Use one of these instead:
8365
8777
  * zernio.adcampaigns, zernio.adaccounts, zernio.adcreatives, zernio.adaudiences, zernio.adtargeting, zernio.adinsights, zernio.conversions, zernio.messagingads, zernio.reachandfrequency, zernio.leadgen, zernio.trackingtags.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlatedev/node",
3
- "version": "0.2.1373",
3
+ "version": "0.2.1375",
4
4
  "description": "The official Node.js library for the Zernio API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",