@51eat/sdk 0.0.78 → 1.0.0

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 (133) hide show
  1. package/README.md +15 -13
  2. package/dist/cjs/BaseClient.js +2 -2
  3. package/dist/cjs/Client.d.ts +0 -3
  4. package/dist/cjs/Client.js +2 -7
  5. package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +9 -0
  6. package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +13 -0
  7. package/dist/cjs/api/resources/customer/resources/businesses/types/GetPickupTimeslotsBusinessesResponse.d.ts +2 -5
  8. package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +13 -4
  9. package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +13 -4
  10. package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.ts +6 -4
  11. package/dist/cjs/api/resources/customer/resources/cart/client/requests/{UpdateItemCartRequest.d.ts → UpdateCartItemRequest.d.ts} +1 -1
  12. package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +1 -1
  13. package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +1 -1
  14. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +1 -1
  15. package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +1 -1
  16. package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +71 -0
  17. package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +243 -0
  18. package/dist/cjs/api/resources/customer/resources/stands/client/requests/AddCartItemStandsRequest.d.ts +16 -0
  19. package/dist/{esm/api/resources/customerStands/client/requests/CustomerGetStandCartRequest.d.mts → cjs/api/resources/customer/resources/stands/client/requests/ClearCartStandsRequest.d.ts} +1 -1
  20. package/dist/cjs/api/resources/{customerStands/client/requests/CustomerGetStandCartRequest.d.ts → customer/resources/stands/client/requests/GetCartStandsRequest.d.ts} +1 -1
  21. package/dist/cjs/api/resources/customer/resources/stands/client/requests/NearbyStandsRequest.d.ts +13 -0
  22. package/dist/cjs/api/resources/customer/resources/stands/client/requests/index.d.ts +4 -0
  23. package/dist/cjs/api/resources/customer/resources/stands/types/AddCartItemStandsResponse.d.ts +4 -0
  24. package/dist/cjs/api/resources/customer/resources/stands/types/GetCartStandsResponse.d.ts +4 -0
  25. package/dist/cjs/api/resources/customer/resources/stands/types/GetCartStandsResponse.js +3 -0
  26. package/dist/cjs/api/resources/customer/resources/stands/types/NearbyStandsResponse.d.ts +10 -0
  27. package/dist/cjs/api/resources/customer/resources/stands/types/NearbyStandsResponse.js +3 -0
  28. package/dist/cjs/api/resources/customer/resources/stands/types/index.d.ts +3 -0
  29. package/dist/cjs/api/resources/customer/resources/stands/types/index.js +3 -0
  30. package/dist/cjs/api/resources/index.d.ts +0 -3
  31. package/dist/cjs/api/resources/index.js +1 -4
  32. package/dist/cjs/api/types/AddCartItemRequest.d.ts +9 -0
  33. package/dist/cjs/api/types/AddCartItemRequest.js +3 -0
  34. package/dist/cjs/api/types/BusinessEvent.d.ts +1 -0
  35. package/dist/cjs/api/types/CartResource.d.ts +5 -0
  36. package/dist/cjs/api/types/ExploreResponse.d.ts +1 -0
  37. package/dist/cjs/api/types/ExploreStand.d.ts +18 -0
  38. package/dist/cjs/api/types/ExploreStand.js +3 -0
  39. package/dist/cjs/api/types/NearbyStand.d.ts +19 -0
  40. package/dist/cjs/api/types/NearbyStand.js +3 -0
  41. package/dist/cjs/api/types/OrderResource.d.ts +9 -0
  42. package/dist/cjs/api/types/index.d.ts +3 -0
  43. package/dist/cjs/api/types/index.js +3 -0
  44. package/dist/cjs/version.d.ts +1 -1
  45. package/dist/cjs/version.js +1 -1
  46. package/dist/esm/BaseClient.mjs +2 -2
  47. package/dist/esm/Client.d.mts +0 -3
  48. package/dist/esm/Client.mjs +0 -5
  49. package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +9 -0
  50. package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +13 -0
  51. package/dist/esm/api/resources/customer/resources/businesses/types/GetPickupTimeslotsBusinessesResponse.d.mts +2 -5
  52. package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +13 -4
  53. package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +13 -4
  54. package/dist/esm/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.mts +6 -4
  55. package/dist/esm/api/resources/customer/resources/cart/client/requests/{UpdateItemCartRequest.d.mts → UpdateCartItemRequest.d.mts} +1 -1
  56. package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +1 -1
  57. package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +1 -1
  58. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +1 -1
  59. package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +1 -1
  60. package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +71 -0
  61. package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +243 -0
  62. package/dist/esm/api/resources/customer/resources/stands/client/requests/AddCartItemStandsRequest.d.mts +16 -0
  63. package/dist/esm/api/resources/{customerStands/client/requests/CustomerClearStandCartRequest.d.mts → customer/resources/stands/client/requests/ClearCartStandsRequest.d.mts} +1 -1
  64. package/dist/{cjs/api/resources/customerStands/client/requests/CustomerClearStandCartRequest.d.ts → esm/api/resources/customer/resources/stands/client/requests/GetCartStandsRequest.d.mts} +1 -1
  65. package/dist/esm/api/resources/customer/resources/stands/client/requests/NearbyStandsRequest.d.mts +13 -0
  66. package/dist/esm/api/resources/customer/resources/stands/client/requests/index.d.mts +4 -0
  67. package/dist/esm/api/resources/customer/resources/stands/types/AddCartItemStandsResponse.d.mts +4 -0
  68. package/dist/esm/api/resources/customer/resources/stands/types/GetCartStandsResponse.d.mts +4 -0
  69. package/dist/esm/api/resources/customer/resources/stands/types/GetCartStandsResponse.mjs +2 -0
  70. package/dist/esm/api/resources/customer/resources/stands/types/NearbyStandsResponse.d.mts +10 -0
  71. package/dist/esm/api/resources/customer/resources/stands/types/NearbyStandsResponse.mjs +2 -0
  72. package/dist/esm/api/resources/customer/resources/stands/types/index.d.mts +3 -0
  73. package/dist/esm/api/resources/customer/resources/stands/types/index.mjs +3 -0
  74. package/dist/esm/api/resources/index.d.mts +0 -3
  75. package/dist/esm/api/resources/index.mjs +0 -3
  76. package/dist/esm/api/types/AddCartItemRequest.d.mts +9 -0
  77. package/dist/esm/api/types/AddCartItemRequest.mjs +2 -0
  78. package/dist/esm/api/types/BusinessEvent.d.mts +1 -0
  79. package/dist/esm/api/types/CartResource.d.mts +5 -0
  80. package/dist/esm/api/types/ExploreResponse.d.mts +1 -0
  81. package/dist/esm/api/types/ExploreStand.d.mts +18 -0
  82. package/dist/esm/api/types/ExploreStand.mjs +2 -0
  83. package/dist/esm/api/types/NearbyStand.d.mts +19 -0
  84. package/dist/esm/api/types/NearbyStand.mjs +2 -0
  85. package/dist/esm/api/types/OrderResource.d.mts +9 -0
  86. package/dist/esm/api/types/index.d.mts +3 -0
  87. package/dist/esm/api/types/index.mjs +3 -0
  88. package/dist/esm/version.d.mts +1 -1
  89. package/dist/esm/version.mjs +1 -1
  90. package/package.json +2 -13
  91. package/reference.md +310 -159
  92. package/dist/cjs/api/resources/customerStands/client/Client.d.ts +0 -58
  93. package/dist/cjs/api/resources/customerStands/client/Client.js +0 -240
  94. package/dist/cjs/api/resources/customerStands/client/index.d.ts +0 -1
  95. package/dist/cjs/api/resources/customerStands/client/index.js +0 -17
  96. package/dist/cjs/api/resources/customerStands/client/requests/CustomerAddStandCartItemRequest.d.ts +0 -14
  97. package/dist/cjs/api/resources/customerStands/client/requests/index.d.ts +0 -3
  98. package/dist/cjs/api/resources/customerStands/client/requests/index.js +0 -2
  99. package/dist/cjs/api/resources/customerStands/exports.d.ts +0 -2
  100. package/dist/cjs/api/resources/customerStands/exports.js +0 -21
  101. package/dist/cjs/api/resources/customerStands/index.d.ts +0 -2
  102. package/dist/cjs/api/resources/customerStands/index.js +0 -18
  103. package/dist/cjs/api/resources/customerStands/types/CustomerAddStandCartItemResponse.d.ts +0 -4
  104. package/dist/cjs/api/resources/customerStands/types/CustomerGetStandCartResponse.d.ts +0 -4
  105. package/dist/cjs/api/resources/customerStands/types/index.d.ts +0 -2
  106. package/dist/cjs/api/resources/customerStands/types/index.js +0 -18
  107. package/dist/esm/api/resources/customerStands/client/Client.d.mts +0 -58
  108. package/dist/esm/api/resources/customerStands/client/Client.mjs +0 -203
  109. package/dist/esm/api/resources/customerStands/client/index.d.mts +0 -1
  110. package/dist/esm/api/resources/customerStands/client/index.mjs +0 -1
  111. package/dist/esm/api/resources/customerStands/client/requests/CustomerAddStandCartItemRequest.d.mts +0 -14
  112. package/dist/esm/api/resources/customerStands/client/requests/index.d.mts +0 -3
  113. package/dist/esm/api/resources/customerStands/client/requests/index.mjs +0 -1
  114. package/dist/esm/api/resources/customerStands/exports.d.mts +0 -2
  115. package/dist/esm/api/resources/customerStands/exports.mjs +0 -3
  116. package/dist/esm/api/resources/customerStands/index.d.mts +0 -2
  117. package/dist/esm/api/resources/customerStands/index.mjs +0 -2
  118. package/dist/esm/api/resources/customerStands/types/CustomerAddStandCartItemResponse.d.mts +0 -4
  119. package/dist/esm/api/resources/customerStands/types/CustomerGetStandCartResponse.d.mts +0 -4
  120. package/dist/esm/api/resources/customerStands/types/index.d.mts +0 -2
  121. package/dist/esm/api/resources/customerStands/types/index.mjs +0 -2
  122. /package/dist/cjs/api/resources/customer/resources/cart/client/requests/{UpdateItemCartRequest.js → UpdateCartItemRequest.js} +0 -0
  123. /package/dist/cjs/api/resources/{customerStands/client/requests/CustomerAddStandCartItemRequest.js → customer/resources/stands/client/requests/AddCartItemStandsRequest.js} +0 -0
  124. /package/dist/cjs/api/resources/{customerStands/client/requests/CustomerClearStandCartRequest.js → customer/resources/stands/client/requests/ClearCartStandsRequest.js} +0 -0
  125. /package/dist/cjs/api/resources/{customerStands/client/requests/CustomerGetStandCartRequest.js → customer/resources/stands/client/requests/GetCartStandsRequest.js} +0 -0
  126. /package/dist/cjs/api/resources/{customerStands/types/CustomerAddStandCartItemResponse.js → customer/resources/stands/client/requests/NearbyStandsRequest.js} +0 -0
  127. /package/dist/cjs/api/resources/{customerStands/types/CustomerGetStandCartResponse.js → customer/resources/stands/types/AddCartItemStandsResponse.js} +0 -0
  128. /package/dist/esm/api/resources/customer/resources/cart/client/requests/{UpdateItemCartRequest.mjs → UpdateCartItemRequest.mjs} +0 -0
  129. /package/dist/esm/api/resources/{customerStands/client/requests/CustomerAddStandCartItemRequest.mjs → customer/resources/stands/client/requests/AddCartItemStandsRequest.mjs} +0 -0
  130. /package/dist/esm/api/resources/{customerStands/client/requests/CustomerClearStandCartRequest.mjs → customer/resources/stands/client/requests/ClearCartStandsRequest.mjs} +0 -0
  131. /package/dist/esm/api/resources/{customerStands/client/requests/CustomerGetStandCartRequest.mjs → customer/resources/stands/client/requests/GetCartStandsRequest.mjs} +0 -0
  132. /package/dist/esm/api/resources/{customerStands/types/CustomerAddStandCartItemResponse.mjs → customer/resources/stands/client/requests/NearbyStandsRequest.mjs} +0 -0
  133. /package/dist/esm/api/resources/{customerStands/types/CustomerGetStandCartResponse.mjs → customer/resources/stands/types/AddCartItemStandsResponse.mjs} +0 -0
@@ -1,14 +0,0 @@
1
- /**
2
- * @example
3
- * {
4
- * stand: "stand",
5
- * variant_id: "variant_id",
6
- * quantity: 1
7
- * }
8
- */
9
- export interface CustomerAddStandCartItemRequest {
10
- /** The stand ID */
11
- stand: string;
12
- variant_id: string;
13
- quantity: number;
14
- }
@@ -1,3 +0,0 @@
1
- export type { CustomerAddStandCartItemRequest } from "./CustomerAddStandCartItemRequest.mjs";
2
- export type { CustomerClearStandCartRequest } from "./CustomerClearStandCartRequest.mjs";
3
- export type { CustomerGetStandCartRequest } from "./CustomerGetStandCartRequest.mjs";
@@ -1,2 +0,0 @@
1
- export { CustomerStandsClient } from "./client/Client.mjs";
2
- export * from "./client/index.mjs";
@@ -1,3 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- export { CustomerStandsClient } from "./client/Client.mjs";
3
- export * from "./client/index.mjs";
@@ -1,2 +0,0 @@
1
- export * from "./client/index.mjs";
2
- export * from "./types/index.mjs";
@@ -1,2 +0,0 @@
1
- export * from "./client/index.mjs";
2
- export * from "./types/index.mjs";
@@ -1,4 +0,0 @@
1
- import type * as FiveOneEat from "../../../index.mjs";
2
- export interface CustomerAddStandCartItemResponse {
3
- data: FiveOneEat.CartResource;
4
- }
@@ -1,4 +0,0 @@
1
- import type * as FiveOneEat from "../../../index.mjs";
2
- export interface CustomerGetStandCartResponse {
3
- data: FiveOneEat.CartResource;
4
- }
@@ -1,2 +0,0 @@
1
- export * from "./CustomerAddStandCartItemResponse.mjs";
2
- export * from "./CustomerGetStandCartResponse.mjs";
@@ -1,2 +0,0 @@
1
- export * from "./CustomerAddStandCartItemResponse.mjs";
2
- export * from "./CustomerGetStandCartResponse.mjs";