@zernio/node 0.2.996 → 0.2.998

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.996",
39
+ version: "0.2.998",
40
40
  description: "The official Node.js library for the Zernio API",
41
41
  main: "dist/index.js",
42
42
  module: "dist/index.mjs",
@@ -5502,6 +5502,450 @@ var updateProduct = (options) => {
5502
5502
  url: "/v1/accounts/{accountId}/products/{productId}"
5503
5503
  });
5504
5504
  };
5505
+ var getCommerceStore = (options) => {
5506
+ return (options?.client ?? client).get({
5507
+ ...options,
5508
+ url: "/v1/commerce/store"
5509
+ });
5510
+ };
5511
+ var listCommerceProducts = (options) => {
5512
+ return (options?.client ?? client).get({
5513
+ ...options,
5514
+ url: "/v1/commerce/products"
5515
+ });
5516
+ };
5517
+ var createCommerceProduct = (options) => {
5518
+ return (options?.client ?? client).post({
5519
+ ...options,
5520
+ url: "/v1/commerce/products"
5521
+ });
5522
+ };
5523
+ var changeCommerceProductState = (options) => {
5524
+ return (options?.client ?? client).post({
5525
+ ...options,
5526
+ url: "/v1/commerce/products/state"
5527
+ });
5528
+ };
5529
+ var getCommerceProduct = (options) => {
5530
+ return (options?.client ?? client).get({
5531
+ ...options,
5532
+ url: "/v1/commerce/products/{productId}"
5533
+ });
5534
+ };
5535
+ var updateCommerceProduct = (options) => {
5536
+ return (options?.client ?? client).patch({
5537
+ ...options,
5538
+ url: "/v1/commerce/products/{productId}"
5539
+ });
5540
+ };
5541
+ var updateCommerceProductPrices = (options) => {
5542
+ return (options?.client ?? client).post({
5543
+ ...options,
5544
+ url: "/v1/commerce/products/{productId}/price"
5545
+ });
5546
+ };
5547
+ var listCommerceCollections = (options) => {
5548
+ return (options?.client ?? client).get({
5549
+ ...options,
5550
+ url: "/v1/commerce/collections"
5551
+ });
5552
+ };
5553
+ var createCommerceCollection = (options) => {
5554
+ return (options?.client ?? client).post({
5555
+ ...options,
5556
+ url: "/v1/commerce/collections"
5557
+ });
5558
+ };
5559
+ var getCommerceCollection = (options) => {
5560
+ return (options?.client ?? client).get({
5561
+ ...options,
5562
+ url: "/v1/commerce/collections/{collectionId}"
5563
+ });
5564
+ };
5565
+ var updateCommerceCollection = (options) => {
5566
+ return (options?.client ?? client).patch({
5567
+ ...options,
5568
+ url: "/v1/commerce/collections/{collectionId}"
5569
+ });
5570
+ };
5571
+ var deleteCommerceCollection = (options) => {
5572
+ return (options?.client ?? client).delete({
5573
+ ...options,
5574
+ url: "/v1/commerce/collections/{collectionId}"
5575
+ });
5576
+ };
5577
+ var changeCommerceCollectionProducts = (options) => {
5578
+ return (options?.client ?? client).post({
5579
+ ...options,
5580
+ url: "/v1/commerce/collections/{collectionId}/products"
5581
+ });
5582
+ };
5583
+ var createCommerceProductVariants = (options) => {
5584
+ return (options?.client ?? client).post({
5585
+ ...options,
5586
+ url: "/v1/commerce/products/{productId}/variants"
5587
+ });
5588
+ };
5589
+ var deleteCommerceProductVariants = (options) => {
5590
+ return (options?.client ?? client).delete({
5591
+ ...options,
5592
+ url: "/v1/commerce/products/{productId}/variants"
5593
+ });
5594
+ };
5595
+ var createCommerceProductOptions = (options) => {
5596
+ return (options?.client ?? client).post({
5597
+ ...options,
5598
+ url: "/v1/commerce/products/{productId}/options"
5599
+ });
5600
+ };
5601
+ var deleteCommerceProductOptions = (options) => {
5602
+ return (options?.client ?? client).delete({
5603
+ ...options,
5604
+ url: "/v1/commerce/products/{productId}/options"
5605
+ });
5606
+ };
5607
+ var addCommerceProductImages = (options) => {
5608
+ return (options?.client ?? client).post({
5609
+ ...options,
5610
+ url: "/v1/commerce/products/{productId}/images"
5611
+ });
5612
+ };
5613
+ var removeCommerceProductImages = (options) => {
5614
+ return (options?.client ?? client).delete({
5615
+ ...options,
5616
+ url: "/v1/commerce/products/{productId}/images"
5617
+ });
5618
+ };
5619
+ var reorderCommerceProductImages = (options) => {
5620
+ return (options?.client ?? client).post({
5621
+ ...options,
5622
+ url: "/v1/commerce/products/{productId}/images/reorder"
5623
+ });
5624
+ };
5625
+ var duplicateCommerceProduct = (options) => {
5626
+ return (options?.client ?? client).post({
5627
+ ...options,
5628
+ url: "/v1/commerce/products/{productId}/duplicate"
5629
+ });
5630
+ };
5631
+ var listProductMetafields = (options) => {
5632
+ return (options?.client ?? client).get({
5633
+ ...options,
5634
+ url: "/v1/commerce/products/{productId}/metafields"
5635
+ });
5636
+ };
5637
+ var setProductMetafields = (options) => {
5638
+ return (options?.client ?? client).put({
5639
+ ...options,
5640
+ url: "/v1/commerce/products/{productId}/metafields"
5641
+ });
5642
+ };
5643
+ var deleteProductMetafields = (options) => {
5644
+ return (options?.client ?? client).delete({
5645
+ ...options,
5646
+ url: "/v1/commerce/products/{productId}/metafields"
5647
+ });
5648
+ };
5649
+ var changeProductChannels = (options) => {
5650
+ return (options?.client ?? client).post({
5651
+ ...options,
5652
+ url: "/v1/commerce/products/{productId}/channels"
5653
+ });
5654
+ };
5655
+ var listCollectionMetafields = (options) => {
5656
+ return (options?.client ?? client).get({
5657
+ ...options,
5658
+ url: "/v1/commerce/collections/{collectionId}/metafields"
5659
+ });
5660
+ };
5661
+ var setCollectionMetafields = (options) => {
5662
+ return (options?.client ?? client).put({
5663
+ ...options,
5664
+ url: "/v1/commerce/collections/{collectionId}/metafields"
5665
+ });
5666
+ };
5667
+ var deleteCollectionMetafields = (options) => {
5668
+ return (options?.client ?? client).delete({
5669
+ ...options,
5670
+ url: "/v1/commerce/collections/{collectionId}/metafields"
5671
+ });
5672
+ };
5673
+ var changeCollectionChannels = (options) => {
5674
+ return (options?.client ?? client).post({
5675
+ ...options,
5676
+ url: "/v1/commerce/collections/{collectionId}/channels"
5677
+ });
5678
+ };
5679
+ var changeCommerceProductTags = (options) => {
5680
+ return (options?.client ?? client).post({
5681
+ ...options,
5682
+ url: "/v1/commerce/products/tags"
5683
+ });
5684
+ };
5685
+ var reorderCommerceCollectionProducts = (options) => {
5686
+ return (options?.client ?? client).post({
5687
+ ...options,
5688
+ url: "/v1/commerce/collections/{collectionId}/reorder"
5689
+ });
5690
+ };
5691
+ var listCommercePages = (options) => {
5692
+ return (options?.client ?? client).get({
5693
+ ...options,
5694
+ url: "/v1/commerce/pages"
5695
+ });
5696
+ };
5697
+ var createCommercePage = (options) => {
5698
+ return (options?.client ?? client).post({
5699
+ ...options,
5700
+ url: "/v1/commerce/pages"
5701
+ });
5702
+ };
5703
+ var getCommercePage = (options) => {
5704
+ return (options?.client ?? client).get({
5705
+ ...options,
5706
+ url: "/v1/commerce/pages/{pageId}"
5707
+ });
5708
+ };
5709
+ var updateCommercePage = (options) => {
5710
+ return (options?.client ?? client).patch({
5711
+ ...options,
5712
+ url: "/v1/commerce/pages/{pageId}"
5713
+ });
5714
+ };
5715
+ var deleteCommercePage = (options) => {
5716
+ return (options?.client ?? client).delete({
5717
+ ...options,
5718
+ url: "/v1/commerce/pages/{pageId}"
5719
+ });
5720
+ };
5721
+ var listCommerceLocations = (options) => {
5722
+ return (options?.client ?? client).get({
5723
+ ...options,
5724
+ url: "/v1/commerce/locations"
5725
+ });
5726
+ };
5727
+ var listCommerceInventory = (options) => {
5728
+ return (options?.client ?? client).get({
5729
+ ...options,
5730
+ url: "/v1/commerce/inventory"
5731
+ });
5732
+ };
5733
+ var changeCommerceInventory = (options) => {
5734
+ return (options?.client ?? client).post({
5735
+ ...options,
5736
+ url: "/v1/commerce/products/{productId}/inventory"
5737
+ });
5738
+ };
5739
+ var listCommerceChannels = (options) => {
5740
+ return (options?.client ?? client).get({
5741
+ ...options,
5742
+ url: "/v1/commerce/channels"
5743
+ });
5744
+ };
5745
+ var listCommerceDiscounts = (options) => {
5746
+ return (options?.client ?? client).get({
5747
+ ...options,
5748
+ url: "/v1/commerce/discounts"
5749
+ });
5750
+ };
5751
+ var createCommerceDiscount = (options) => {
5752
+ return (options?.client ?? client).post({
5753
+ ...options,
5754
+ url: "/v1/commerce/discounts"
5755
+ });
5756
+ };
5757
+ var getCommerceDiscount = (options) => {
5758
+ return (options?.client ?? client).get({
5759
+ ...options,
5760
+ url: "/v1/commerce/discounts/{discountId}"
5761
+ });
5762
+ };
5763
+ var updateCommerceDiscount = (options) => {
5764
+ return (options?.client ?? client).patch({
5765
+ ...options,
5766
+ url: "/v1/commerce/discounts/{discountId}"
5767
+ });
5768
+ };
5769
+ var deleteCommerceDiscount = (options) => {
5770
+ return (options?.client ?? client).delete({
5771
+ ...options,
5772
+ url: "/v1/commerce/discounts/{discountId}"
5773
+ });
5774
+ };
5775
+ var setCommerceDiscountActive = (options) => {
5776
+ return (options?.client ?? client).post({
5777
+ ...options,
5778
+ url: "/v1/commerce/discounts/{discountId}/state"
5779
+ });
5780
+ };
5781
+ var addCommerceDiscountCodes = (options) => {
5782
+ return (options?.client ?? client).post({
5783
+ ...options,
5784
+ url: "/v1/commerce/discounts/{discountId}/codes"
5785
+ });
5786
+ };
5787
+ var listCommerceRedirects = (options) => {
5788
+ return (options?.client ?? client).get({
5789
+ ...options,
5790
+ url: "/v1/commerce/redirects"
5791
+ });
5792
+ };
5793
+ var createCommerceRedirect = (options) => {
5794
+ return (options?.client ?? client).post({
5795
+ ...options,
5796
+ url: "/v1/commerce/redirects"
5797
+ });
5798
+ };
5799
+ var updateCommerceRedirect = (options) => {
5800
+ return (options?.client ?? client).patch({
5801
+ ...options,
5802
+ url: "/v1/commerce/redirects/{redirectId}"
5803
+ });
5804
+ };
5805
+ var deleteCommerceRedirect = (options) => {
5806
+ return (options?.client ?? client).delete({
5807
+ ...options,
5808
+ url: "/v1/commerce/redirects/{redirectId}"
5809
+ });
5810
+ };
5811
+ var listCommerceMenus = (options) => {
5812
+ return (options?.client ?? client).get({
5813
+ ...options,
5814
+ url: "/v1/commerce/menus"
5815
+ });
5816
+ };
5817
+ var createCommerceMenu = (options) => {
5818
+ return (options?.client ?? client).post({
5819
+ ...options,
5820
+ url: "/v1/commerce/menus"
5821
+ });
5822
+ };
5823
+ var getCommerceMenu = (options) => {
5824
+ return (options?.client ?? client).get({
5825
+ ...options,
5826
+ url: "/v1/commerce/menus/{menuId}"
5827
+ });
5828
+ };
5829
+ var updateCommerceMenu = (options) => {
5830
+ return (options?.client ?? client).put({
5831
+ ...options,
5832
+ url: "/v1/commerce/menus/{menuId}"
5833
+ });
5834
+ };
5835
+ var deleteCommerceMenu = (options) => {
5836
+ return (options?.client ?? client).delete({
5837
+ ...options,
5838
+ url: "/v1/commerce/menus/{menuId}"
5839
+ });
5840
+ };
5841
+ var listCommerceMetaobjectDefinitions = (options) => {
5842
+ return (options?.client ?? client).get({
5843
+ ...options,
5844
+ url: "/v1/commerce/metaobject-definitions"
5845
+ });
5846
+ };
5847
+ var listCommerceMetaobjects = (options) => {
5848
+ return (options?.client ?? client).get({
5849
+ ...options,
5850
+ url: "/v1/commerce/metaobjects"
5851
+ });
5852
+ };
5853
+ var createCommerceMetaobject = (options) => {
5854
+ return (options?.client ?? client).post({
5855
+ ...options,
5856
+ url: "/v1/commerce/metaobjects"
5857
+ });
5858
+ };
5859
+ var getCommerceMetaobject = (options) => {
5860
+ return (options?.client ?? client).get({
5861
+ ...options,
5862
+ url: "/v1/commerce/metaobjects/{metaobjectId}"
5863
+ });
5864
+ };
5865
+ var updateCommerceMetaobject = (options) => {
5866
+ return (options?.client ?? client).patch({
5867
+ ...options,
5868
+ url: "/v1/commerce/metaobjects/{metaobjectId}"
5869
+ });
5870
+ };
5871
+ var deleteCommerceMetaobject = (options) => {
5872
+ return (options?.client ?? client).delete({
5873
+ ...options,
5874
+ url: "/v1/commerce/metaobjects/{metaobjectId}"
5875
+ });
5876
+ };
5877
+ var listCommerceMarkets = (options) => {
5878
+ return (options?.client ?? client).get({
5879
+ ...options,
5880
+ url: "/v1/commerce/markets"
5881
+ });
5882
+ };
5883
+ var listCommercePriceLists = (options) => {
5884
+ return (options?.client ?? client).get({
5885
+ ...options,
5886
+ url: "/v1/commerce/price-lists"
5887
+ });
5888
+ };
5889
+ var setCommercePriceListPrices = (options) => {
5890
+ return (options?.client ?? client).put({
5891
+ ...options,
5892
+ url: "/v1/commerce/price-lists/{priceListId}/prices"
5893
+ });
5894
+ };
5895
+ var deleteCommercePriceListPrices = (options) => {
5896
+ return (options?.client ?? client).delete({
5897
+ ...options,
5898
+ url: "/v1/commerce/price-lists/{priceListId}/prices"
5899
+ });
5900
+ };
5901
+ var upsertCommerceMarketingActivity = (options) => {
5902
+ return (options?.client ?? client).put({
5903
+ ...options,
5904
+ url: "/v1/commerce/marketing-activities"
5905
+ });
5906
+ };
5907
+ var deleteCommerceMarketingActivity = (options) => {
5908
+ return (options?.client ?? client).delete({
5909
+ ...options,
5910
+ url: "/v1/commerce/marketing-activities/{remoteId}"
5911
+ });
5912
+ };
5913
+ var addCommerceMarketingEngagement = (options) => {
5914
+ return (options?.client ?? client).post({
5915
+ ...options,
5916
+ url: "/v1/commerce/marketing-activities/{remoteId}/engagements"
5917
+ });
5918
+ };
5919
+ var listCommerceCatalogSyncs = (options) => {
5920
+ return (options?.client ?? client).get({
5921
+ ...options,
5922
+ url: "/v1/commerce/catalog-syncs"
5923
+ });
5924
+ };
5925
+ var createCommerceCatalogSync = (options) => {
5926
+ return (options?.client ?? client).post({
5927
+ ...options,
5928
+ url: "/v1/commerce/catalog-syncs"
5929
+ });
5930
+ };
5931
+ var getCommerceCatalogSync = (options) => {
5932
+ return (options?.client ?? client).get({
5933
+ ...options,
5934
+ url: "/v1/commerce/catalog-syncs/{syncId}"
5935
+ });
5936
+ };
5937
+ var deleteCommerceCatalogSync = (options) => {
5938
+ return (options?.client ?? client).delete({
5939
+ ...options,
5940
+ url: "/v1/commerce/catalog-syncs/{syncId}"
5941
+ });
5942
+ };
5943
+ var runCommerceCatalogSync = (options) => {
5944
+ return (options?.client ?? client).post({
5945
+ ...options,
5946
+ url: "/v1/commerce/catalog-syncs/{syncId}/run"
5947
+ });
5948
+ };
5505
5949
  var createVerification = (options) => {
5506
5950
  return (options?.client ?? client).post({
5507
5951
  ...options,
@@ -6879,6 +7323,85 @@ var Zernio = class _Zernio {
6879
7323
  getProduct: this._bind(getProduct),
6880
7324
  updateProduct: this._bind(updateProduct)
6881
7325
  };
7326
+ /**
7327
+ * commerce API
7328
+ */
7329
+ this.commerce = {
7330
+ getCommerceStore: this._bind(getCommerceStore),
7331
+ listCommerceProducts: this._bind(listCommerceProducts),
7332
+ createCommerceProduct: this._bind(createCommerceProduct),
7333
+ changeCommerceProductState: this._bind(changeCommerceProductState),
7334
+ getCommerceProduct: this._bind(getCommerceProduct),
7335
+ updateCommerceProduct: this._bind(updateCommerceProduct),
7336
+ updateCommerceProductPrices: this._bind(updateCommerceProductPrices),
7337
+ listCommerceCollections: this._bind(listCommerceCollections),
7338
+ createCommerceCollection: this._bind(createCommerceCollection),
7339
+ getCommerceCollection: this._bind(getCommerceCollection),
7340
+ updateCommerceCollection: this._bind(updateCommerceCollection),
7341
+ deleteCommerceCollection: this._bind(deleteCommerceCollection),
7342
+ changeCommerceCollectionProducts: this._bind(changeCommerceCollectionProducts),
7343
+ createCommerceProductVariants: this._bind(createCommerceProductVariants),
7344
+ deleteCommerceProductVariants: this._bind(deleteCommerceProductVariants),
7345
+ createCommerceProductOptions: this._bind(createCommerceProductOptions),
7346
+ deleteCommerceProductOptions: this._bind(deleteCommerceProductOptions),
7347
+ addCommerceProductImages: this._bind(addCommerceProductImages),
7348
+ removeCommerceProductImages: this._bind(removeCommerceProductImages),
7349
+ reorderCommerceProductImages: this._bind(reorderCommerceProductImages),
7350
+ duplicateCommerceProduct: this._bind(duplicateCommerceProduct),
7351
+ listProductMetafields: this._bind(listProductMetafields),
7352
+ setProductMetafields: this._bind(setProductMetafields),
7353
+ deleteProductMetafields: this._bind(deleteProductMetafields),
7354
+ changeProductChannels: this._bind(changeProductChannels),
7355
+ listCollectionMetafields: this._bind(listCollectionMetafields),
7356
+ setCollectionMetafields: this._bind(setCollectionMetafields),
7357
+ deleteCollectionMetafields: this._bind(deleteCollectionMetafields),
7358
+ changeCollectionChannels: this._bind(changeCollectionChannels),
7359
+ changeCommerceProductTags: this._bind(changeCommerceProductTags),
7360
+ reorderCommerceCollectionProducts: this._bind(reorderCommerceCollectionProducts),
7361
+ listCommercePages: this._bind(listCommercePages),
7362
+ createCommercePage: this._bind(createCommercePage),
7363
+ getCommercePage: this._bind(getCommercePage),
7364
+ updateCommercePage: this._bind(updateCommercePage),
7365
+ deleteCommercePage: this._bind(deleteCommercePage),
7366
+ listCommerceLocations: this._bind(listCommerceLocations),
7367
+ listCommerceInventory: this._bind(listCommerceInventory),
7368
+ changeCommerceInventory: this._bind(changeCommerceInventory),
7369
+ listCommerceChannels: this._bind(listCommerceChannels),
7370
+ listCommerceDiscounts: this._bind(listCommerceDiscounts),
7371
+ createCommerceDiscount: this._bind(createCommerceDiscount),
7372
+ getCommerceDiscount: this._bind(getCommerceDiscount),
7373
+ updateCommerceDiscount: this._bind(updateCommerceDiscount),
7374
+ deleteCommerceDiscount: this._bind(deleteCommerceDiscount),
7375
+ setCommerceDiscountActive: this._bind(setCommerceDiscountActive),
7376
+ addCommerceDiscountCodes: this._bind(addCommerceDiscountCodes),
7377
+ listCommerceRedirects: this._bind(listCommerceRedirects),
7378
+ createCommerceRedirect: this._bind(createCommerceRedirect),
7379
+ updateCommerceRedirect: this._bind(updateCommerceRedirect),
7380
+ deleteCommerceRedirect: this._bind(deleteCommerceRedirect),
7381
+ listCommerceMenus: this._bind(listCommerceMenus),
7382
+ createCommerceMenu: this._bind(createCommerceMenu),
7383
+ getCommerceMenu: this._bind(getCommerceMenu),
7384
+ updateCommerceMenu: this._bind(updateCommerceMenu),
7385
+ deleteCommerceMenu: this._bind(deleteCommerceMenu),
7386
+ listCommerceMetaobjectDefinitions: this._bind(listCommerceMetaobjectDefinitions),
7387
+ listCommerceMetaobjects: this._bind(listCommerceMetaobjects),
7388
+ createCommerceMetaobject: this._bind(createCommerceMetaobject),
7389
+ getCommerceMetaobject: this._bind(getCommerceMetaobject),
7390
+ updateCommerceMetaobject: this._bind(updateCommerceMetaobject),
7391
+ deleteCommerceMetaobject: this._bind(deleteCommerceMetaobject),
7392
+ listCommerceMarkets: this._bind(listCommerceMarkets),
7393
+ listCommercePriceLists: this._bind(listCommercePriceLists),
7394
+ setCommercePriceListPrices: this._bind(setCommercePriceListPrices),
7395
+ deleteCommercePriceListPrices: this._bind(deleteCommercePriceListPrices),
7396
+ upsertCommerceMarketingActivity: this._bind(upsertCommerceMarketingActivity),
7397
+ deleteCommerceMarketingActivity: this._bind(deleteCommerceMarketingActivity),
7398
+ addCommerceMarketingEngagement: this._bind(addCommerceMarketingEngagement),
7399
+ listCommerceCatalogSyncs: this._bind(listCommerceCatalogSyncs),
7400
+ createCommerceCatalogSync: this._bind(createCommerceCatalogSync),
7401
+ getCommerceCatalogSync: this._bind(getCommerceCatalogSync),
7402
+ deleteCommerceCatalogSync: this._bind(deleteCommerceCatalogSync),
7403
+ runCommerceCatalogSync: this._bind(runCommerceCatalogSync)
7404
+ };
6882
7405
  /**
6883
7406
  * verify API
6884
7407
  */