@51eat/sdk 0.0.50 → 0.0.52

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.
Files changed (54) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +33 -0
  3. package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +123 -0
  4. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.ts +10 -0
  5. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.js +3 -0
  6. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.d.ts +12 -0
  7. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.js +3 -0
  8. package/dist/cjs/api/resources/business/resources/productOrders/client/requests/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.d.ts +4 -0
  10. package/dist/cjs/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.js +3 -0
  11. package/dist/cjs/api/resources/business/resources/productOrders/types/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/business/resources/productOrders/types/index.js +1 -0
  13. package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +44 -0
  14. package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +131 -0
  15. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.d.ts +28 -0
  16. package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.js +3 -0
  17. package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.d.ts +13 -0
  18. package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.js +3 -0
  19. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +2 -0
  20. package/dist/cjs/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.ts +6 -0
  21. package/dist/cjs/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.js +3 -0
  22. package/dist/cjs/api/resources/customer/resources/cart/types/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/customer/resources/cart/types/index.js +1 -0
  24. package/dist/cjs/api/types/TicketOrder.d.ts +18 -0
  25. package/dist/cjs/version.d.ts +1 -1
  26. package/dist/cjs/version.js +1 -1
  27. package/dist/esm/BaseClient.mjs +2 -2
  28. package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +33 -0
  29. package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +123 -0
  30. package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.mts +10 -0
  31. package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.mjs +2 -0
  32. package/dist/esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.d.mts +12 -0
  33. package/dist/esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.mjs +2 -0
  34. package/dist/esm/api/resources/business/resources/productOrders/client/requests/index.d.mts +2 -0
  35. package/dist/esm/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.d.mts +4 -0
  36. package/dist/esm/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.mjs +2 -0
  37. package/dist/esm/api/resources/business/resources/productOrders/types/index.d.mts +1 -0
  38. package/dist/esm/api/resources/business/resources/productOrders/types/index.mjs +1 -0
  39. package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +44 -0
  40. package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +131 -0
  41. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.d.mts +28 -0
  42. package/dist/esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.mjs +2 -0
  43. package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.d.mts +13 -0
  44. package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.mjs +2 -0
  45. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +2 -0
  46. package/dist/esm/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.mts +6 -0
  47. package/dist/esm/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.mjs +2 -0
  48. package/dist/esm/api/resources/customer/resources/cart/types/index.d.mts +1 -0
  49. package/dist/esm/api/resources/customer/resources/cart/types/index.mjs +1 -0
  50. package/dist/esm/api/types/TicketOrder.d.mts +18 -0
  51. package/dist/esm/version.d.mts +1 -1
  52. package/dist/esm/version.mjs +1 -1
  53. package/package.json +1 -1
  54. package/reference.md +244 -0
package/reference.md CHANGED
@@ -3620,6 +3620,109 @@ await client.business.productOrders.refund({
3620
3620
  </dl>
3621
3621
 
3622
3622
 
3623
+ </dd>
3624
+ </dl>
3625
+ </details>
3626
+
3627
+ <details><summary><code>client.business.productOrders.<a href="/src/api/resources/business/resources/productOrders/client/Client.ts">getLabelRates</a>({ ...params }) -> string</code></summary>
3628
+ <dl>
3629
+ <dd>
3630
+
3631
+ #### 🔌 Usage
3632
+
3633
+ <dl>
3634
+ <dd>
3635
+
3636
+ <dl>
3637
+ <dd>
3638
+
3639
+ ```typescript
3640
+ await client.business.productOrders.getLabelRates({
3641
+ productOrder: "productOrder"
3642
+ });
3643
+
3644
+ ```
3645
+ </dd>
3646
+ </dl>
3647
+ </dd>
3648
+ </dl>
3649
+
3650
+ #### ⚙️ Parameters
3651
+
3652
+ <dl>
3653
+ <dd>
3654
+
3655
+ <dl>
3656
+ <dd>
3657
+
3658
+ **request:** `FiveOneEat.business.GetLabelRatesProductOrdersRequest`
3659
+
3660
+ </dd>
3661
+ </dl>
3662
+
3663
+ <dl>
3664
+ <dd>
3665
+
3666
+ **requestOptions:** `ProductOrdersClient.RequestOptions`
3667
+
3668
+ </dd>
3669
+ </dl>
3670
+ </dd>
3671
+ </dl>
3672
+
3673
+
3674
+ </dd>
3675
+ </dl>
3676
+ </details>
3677
+
3678
+ <details><summary><code>client.business.productOrders.<a href="/src/api/resources/business/resources/productOrders/client/Client.ts">purchaseLabel</a>({ ...params }) -> FiveOneEat.PurchaseLabelProductOrdersResponse</code></summary>
3679
+ <dl>
3680
+ <dd>
3681
+
3682
+ #### 🔌 Usage
3683
+
3684
+ <dl>
3685
+ <dd>
3686
+
3687
+ <dl>
3688
+ <dd>
3689
+
3690
+ ```typescript
3691
+ await client.business.productOrders.purchaseLabel({
3692
+ productOrder: "productOrder",
3693
+ provider_rate_id: "provider_rate_id"
3694
+ });
3695
+
3696
+ ```
3697
+ </dd>
3698
+ </dl>
3699
+ </dd>
3700
+ </dl>
3701
+
3702
+ #### ⚙️ Parameters
3703
+
3704
+ <dl>
3705
+ <dd>
3706
+
3707
+ <dl>
3708
+ <dd>
3709
+
3710
+ **request:** `FiveOneEat.business.PurchaseLabelRequest`
3711
+
3712
+ </dd>
3713
+ </dl>
3714
+
3715
+ <dl>
3716
+ <dd>
3717
+
3718
+ **requestOptions:** `ProductOrdersClient.RequestOptions`
3719
+
3720
+ </dd>
3721
+ </dl>
3722
+ </dd>
3723
+ </dl>
3724
+
3725
+
3623
3726
  </dd>
3624
3727
  </dl>
3625
3728
  </details>
@@ -9597,6 +9700,147 @@ await client.customer.cart.removeItem({
9597
9700
  </dl>
9598
9701
 
9599
9702
 
9703
+ </dd>
9704
+ </dl>
9705
+ </details>
9706
+
9707
+ <details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">getShippingOptions</a>({ ...params }) -> unknown[]</code></summary>
9708
+ <dl>
9709
+ <dd>
9710
+
9711
+ #### 📝 Description
9712
+
9713
+ <dl>
9714
+ <dd>
9715
+
9716
+ <dl>
9717
+ <dd>
9718
+
9719
+ Returns available shipping rates for the given address. For calculated rates,
9720
+ fetches live rates from the shipping provider and caches for 10 minutes.
9721
+ Pass the returned `provider_rate_id` to the select shipping option endpoint.
9722
+ </dd>
9723
+ </dl>
9724
+ </dd>
9725
+ </dl>
9726
+
9727
+ #### 🔌 Usage
9728
+
9729
+ <dl>
9730
+ <dd>
9731
+
9732
+ <dl>
9733
+ <dd>
9734
+
9735
+ ```typescript
9736
+ await client.customer.cart.getShippingOptions({
9737
+ business: "katzs-deli",
9738
+ shipping_address: {
9739
+ line1: "line1",
9740
+ city: "city",
9741
+ state: "state",
9742
+ postal_code: "postal_code"
9743
+ }
9744
+ });
9745
+
9746
+ ```
9747
+ </dd>
9748
+ </dl>
9749
+ </dd>
9750
+ </dl>
9751
+
9752
+ #### ⚙️ Parameters
9753
+
9754
+ <dl>
9755
+ <dd>
9756
+
9757
+ <dl>
9758
+ <dd>
9759
+
9760
+ **request:** `FiveOneEat.customer.GetShippingOptionsRequest`
9761
+
9762
+ </dd>
9763
+ </dl>
9764
+
9765
+ <dl>
9766
+ <dd>
9767
+
9768
+ **requestOptions:** `CartClient.RequestOptions`
9769
+
9770
+ </dd>
9771
+ </dl>
9772
+ </dd>
9773
+ </dl>
9774
+
9775
+
9776
+ </dd>
9777
+ </dl>
9778
+ </details>
9779
+
9780
+ <details><summary><code>client.customer.cart.<a href="/src/api/resources/customer/resources/cart/client/Client.ts">selectShippingOption</a>({ ...params }) -> FiveOneEat.SelectShippingOptionCartResponse</code></summary>
9781
+ <dl>
9782
+ <dd>
9783
+
9784
+ #### 📝 Description
9785
+
9786
+ <dl>
9787
+ <dd>
9788
+
9789
+ <dl>
9790
+ <dd>
9791
+
9792
+ Saves the shipping amount and method to the cart server-side.
9793
+ For calculated rates, resolves the amount from cache using the provider_rate_id
9794
+ returned by the shipping options endpoint. The client never submits an amount.
9795
+ </dd>
9796
+ </dl>
9797
+ </dd>
9798
+ </dl>
9799
+
9800
+ #### 🔌 Usage
9801
+
9802
+ <dl>
9803
+ <dd>
9804
+
9805
+ <dl>
9806
+ <dd>
9807
+
9808
+ ```typescript
9809
+ await client.customer.cart.selectShippingOption({
9810
+ business: "katzs-deli",
9811
+ shipping_rate_id: "shipping_rate_id"
9812
+ });
9813
+
9814
+ ```
9815
+ </dd>
9816
+ </dl>
9817
+ </dd>
9818
+ </dl>
9819
+
9820
+ #### ⚙️ Parameters
9821
+
9822
+ <dl>
9823
+ <dd>
9824
+
9825
+ <dl>
9826
+ <dd>
9827
+
9828
+ **request:** `FiveOneEat.customer.SelectShippingOptionRequest`
9829
+
9830
+ </dd>
9831
+ </dl>
9832
+
9833
+ <dl>
9834
+ <dd>
9835
+
9836
+ **requestOptions:** `CartClient.RequestOptions`
9837
+
9838
+ </dd>
9839
+ </dl>
9840
+ </dd>
9841
+ </dl>
9842
+
9843
+
9600
9844
  </dd>
9601
9845
  </dl>
9602
9846
  </details>