@51eat/sdk 0.0.78 → 0.0.79
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/README.md +13 -11
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +0 -3
- package/dist/cjs/Client.js +2 -7
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +13 -0
- package/dist/cjs/api/resources/customer/resources/businesses/types/GetPickupTimeslotsBusinessesResponse.d.ts +2 -5
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +13 -4
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +13 -4
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.ts +6 -4
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/{UpdateItemCartRequest.d.ts → UpdateCartItemRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +243 -0
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/AddCartItemStandsRequest.d.ts +16 -0
- package/dist/{esm/api/resources/customerStands/client/requests/CustomerGetStandCartRequest.d.mts → cjs/api/resources/customer/resources/stands/client/requests/ClearCartStandsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{customerStands/client/requests/CustomerGetStandCartRequest.d.ts → customer/resources/stands/client/requests/GetCartStandsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/NearbyStandsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/AddCartItemStandsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/GetCartStandsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/GetCartStandsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/NearbyStandsResponse.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/NearbyStandsResponse.js +3 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/index.js +3 -0
- package/dist/cjs/api/resources/index.d.ts +0 -3
- package/dist/cjs/api/resources/index.js +1 -4
- package/dist/cjs/api/types/AddCartItemRequest.d.ts +9 -0
- package/dist/cjs/api/types/AddCartItemRequest.js +3 -0
- package/dist/cjs/api/types/BusinessEvent.d.ts +1 -0
- package/dist/cjs/api/types/CartResource.d.ts +5 -0
- package/dist/cjs/api/types/ExploreResponse.d.ts +1 -0
- package/dist/cjs/api/types/ExploreStand.d.ts +18 -0
- package/dist/cjs/api/types/ExploreStand.js +3 -0
- package/dist/cjs/api/types/NearbyStand.d.ts +19 -0
- package/dist/cjs/api/types/NearbyStand.js +3 -0
- package/dist/cjs/api/types/OrderResource.d.ts +9 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +0 -3
- package/dist/esm/Client.mjs +0 -5
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +13 -0
- package/dist/esm/api/resources/customer/resources/businesses/types/GetPickupTimeslotsBusinessesResponse.d.mts +2 -5
- package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +13 -4
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +13 -4
- package/dist/esm/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.mts +6 -4
- package/dist/esm/api/resources/customer/resources/cart/client/requests/{UpdateItemCartRequest.d.mts → UpdateCartItemRequest.d.mts} +1 -1
- package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +243 -0
- package/dist/esm/api/resources/customer/resources/stands/client/requests/AddCartItemStandsRequest.d.mts +16 -0
- package/dist/esm/api/resources/{customerStands/client/requests/CustomerClearStandCartRequest.d.mts → customer/resources/stands/client/requests/ClearCartStandsRequest.d.mts} +1 -1
- package/dist/{cjs/api/resources/customerStands/client/requests/CustomerClearStandCartRequest.d.ts → esm/api/resources/customer/resources/stands/client/requests/GetCartStandsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/customer/resources/stands/client/requests/NearbyStandsRequest.d.mts +13 -0
- package/dist/esm/api/resources/customer/resources/stands/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/stands/types/AddCartItemStandsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/stands/types/GetCartStandsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/stands/types/GetCartStandsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/stands/types/NearbyStandsResponse.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/stands/types/NearbyStandsResponse.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/stands/types/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/stands/types/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +0 -3
- package/dist/esm/api/resources/index.mjs +0 -3
- package/dist/esm/api/types/AddCartItemRequest.d.mts +9 -0
- package/dist/esm/api/types/AddCartItemRequest.mjs +2 -0
- package/dist/esm/api/types/BusinessEvent.d.mts +1 -0
- package/dist/esm/api/types/CartResource.d.mts +5 -0
- package/dist/esm/api/types/ExploreResponse.d.mts +1 -0
- package/dist/esm/api/types/ExploreStand.d.mts +18 -0
- package/dist/esm/api/types/ExploreStand.mjs +2 -0
- package/dist/esm/api/types/NearbyStand.d.mts +19 -0
- package/dist/esm/api/types/NearbyStand.mjs +2 -0
- package/dist/esm/api/types/OrderResource.d.mts +9 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -12
- package/reference.md +310 -159
- package/dist/cjs/api/resources/customerStands/client/Client.d.ts +0 -58
- package/dist/cjs/api/resources/customerStands/client/Client.js +0 -240
- package/dist/cjs/api/resources/customerStands/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/customerStands/client/index.js +0 -17
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerAddStandCartItemRequest.d.ts +0 -14
- package/dist/cjs/api/resources/customerStands/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/customerStands/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/customerStands/exports.d.ts +0 -2
- package/dist/cjs/api/resources/customerStands/exports.js +0 -21
- package/dist/cjs/api/resources/customerStands/index.d.ts +0 -2
- package/dist/cjs/api/resources/customerStands/index.js +0 -18
- package/dist/cjs/api/resources/customerStands/types/CustomerAddStandCartItemResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customerStands/types/CustomerGetStandCartResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customerStands/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/customerStands/types/index.js +0 -18
- package/dist/esm/api/resources/customerStands/client/Client.d.mts +0 -58
- package/dist/esm/api/resources/customerStands/client/Client.mjs +0 -203
- package/dist/esm/api/resources/customerStands/client/index.d.mts +0 -1
- package/dist/esm/api/resources/customerStands/client/index.mjs +0 -1
- package/dist/esm/api/resources/customerStands/client/requests/CustomerAddStandCartItemRequest.d.mts +0 -14
- package/dist/esm/api/resources/customerStands/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/customerStands/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/customerStands/exports.d.mts +0 -2
- package/dist/esm/api/resources/customerStands/exports.mjs +0 -3
- package/dist/esm/api/resources/customerStands/index.d.mts +0 -2
- package/dist/esm/api/resources/customerStands/index.mjs +0 -2
- package/dist/esm/api/resources/customerStands/types/CustomerAddStandCartItemResponse.d.mts +0 -4
- package/dist/esm/api/resources/customerStands/types/CustomerGetStandCartResponse.d.mts +0 -4
- package/dist/esm/api/resources/customerStands/types/index.d.mts +0 -2
- package/dist/esm/api/resources/customerStands/types/index.mjs +0 -2
- /package/dist/cjs/api/resources/customer/resources/cart/client/requests/{UpdateItemCartRequest.js → UpdateCartItemRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerStands/client/requests/CustomerAddStandCartItemRequest.js → customer/resources/stands/client/requests/AddCartItemStandsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerStands/client/requests/CustomerClearStandCartRequest.js → customer/resources/stands/client/requests/ClearCartStandsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerStands/client/requests/CustomerGetStandCartRequest.js → customer/resources/stands/client/requests/GetCartStandsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerStands/types/CustomerAddStandCartItemResponse.js → customer/resources/stands/client/requests/NearbyStandsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerStands/types/CustomerGetStandCartResponse.js → customer/resources/stands/types/AddCartItemStandsResponse.js} +0 -0
- /package/dist/esm/api/resources/customer/resources/cart/client/requests/{UpdateItemCartRequest.mjs → UpdateCartItemRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerStands/client/requests/CustomerAddStandCartItemRequest.mjs → customer/resources/stands/client/requests/AddCartItemStandsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerStands/client/requests/CustomerClearStandCartRequest.mjs → customer/resources/stands/client/requests/ClearCartStandsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerStands/client/requests/CustomerGetStandCartRequest.mjs → customer/resources/stands/client/requests/GetCartStandsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerStands/types/CustomerAddStandCartItemResponse.mjs → customer/resources/stands/client/requests/NearbyStandsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerStands/types/CustomerGetStandCartResponse.mjs → customer/resources/stands/types/AddCartItemStandsResponse.mjs} +0 -0
package/reference.md
CHANGED
|
@@ -66,162 +66,6 @@ await client.customer.search({
|
|
|
66
66
|
</dl>
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
</dd>
|
|
70
|
-
</dl>
|
|
71
|
-
</details>
|
|
72
|
-
|
|
73
|
-
## Customer: Stands
|
|
74
|
-
<details><summary><code>client.customerStands.<a href="/src/api/resources/customerStands/client/Client.ts">customerGetStandCart</a>({ ...params }) -> FiveOneEat.CustomerGetStandCartResponse</code></summary>
|
|
75
|
-
<dl>
|
|
76
|
-
<dd>
|
|
77
|
-
|
|
78
|
-
#### 🔌 Usage
|
|
79
|
-
|
|
80
|
-
<dl>
|
|
81
|
-
<dd>
|
|
82
|
-
|
|
83
|
-
<dl>
|
|
84
|
-
<dd>
|
|
85
|
-
|
|
86
|
-
```typescript
|
|
87
|
-
await client.customerStands.customerGetStandCart({
|
|
88
|
-
stand: "stand"
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
</dd>
|
|
93
|
-
</dl>
|
|
94
|
-
</dd>
|
|
95
|
-
</dl>
|
|
96
|
-
|
|
97
|
-
#### ⚙️ Parameters
|
|
98
|
-
|
|
99
|
-
<dl>
|
|
100
|
-
<dd>
|
|
101
|
-
|
|
102
|
-
<dl>
|
|
103
|
-
<dd>
|
|
104
|
-
|
|
105
|
-
**request:** `FiveOneEat.CustomerGetStandCartRequest`
|
|
106
|
-
|
|
107
|
-
</dd>
|
|
108
|
-
</dl>
|
|
109
|
-
|
|
110
|
-
<dl>
|
|
111
|
-
<dd>
|
|
112
|
-
|
|
113
|
-
**requestOptions:** `CustomerStandsClient.RequestOptions`
|
|
114
|
-
|
|
115
|
-
</dd>
|
|
116
|
-
</dl>
|
|
117
|
-
</dd>
|
|
118
|
-
</dl>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
</dd>
|
|
122
|
-
</dl>
|
|
123
|
-
</details>
|
|
124
|
-
|
|
125
|
-
<details><summary><code>client.customerStands.<a href="/src/api/resources/customerStands/client/Client.ts">customerAddStandCartItem</a>({ ...params }) -> FiveOneEat.CustomerAddStandCartItemResponse</code></summary>
|
|
126
|
-
<dl>
|
|
127
|
-
<dd>
|
|
128
|
-
|
|
129
|
-
#### 🔌 Usage
|
|
130
|
-
|
|
131
|
-
<dl>
|
|
132
|
-
<dd>
|
|
133
|
-
|
|
134
|
-
<dl>
|
|
135
|
-
<dd>
|
|
136
|
-
|
|
137
|
-
```typescript
|
|
138
|
-
await client.customerStands.customerAddStandCartItem({
|
|
139
|
-
stand: "stand",
|
|
140
|
-
variant_id: "variant_id",
|
|
141
|
-
quantity: 1
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
```
|
|
145
|
-
</dd>
|
|
146
|
-
</dl>
|
|
147
|
-
</dd>
|
|
148
|
-
</dl>
|
|
149
|
-
|
|
150
|
-
#### ⚙️ Parameters
|
|
151
|
-
|
|
152
|
-
<dl>
|
|
153
|
-
<dd>
|
|
154
|
-
|
|
155
|
-
<dl>
|
|
156
|
-
<dd>
|
|
157
|
-
|
|
158
|
-
**request:** `FiveOneEat.CustomerAddStandCartItemRequest`
|
|
159
|
-
|
|
160
|
-
</dd>
|
|
161
|
-
</dl>
|
|
162
|
-
|
|
163
|
-
<dl>
|
|
164
|
-
<dd>
|
|
165
|
-
|
|
166
|
-
**requestOptions:** `CustomerStandsClient.RequestOptions`
|
|
167
|
-
|
|
168
|
-
</dd>
|
|
169
|
-
</dl>
|
|
170
|
-
</dd>
|
|
171
|
-
</dl>
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
</dd>
|
|
175
|
-
</dl>
|
|
176
|
-
</details>
|
|
177
|
-
|
|
178
|
-
<details><summary><code>client.customerStands.<a href="/src/api/resources/customerStands/client/Client.ts">customerClearStandCart</a>({ ...params }) -> void</code></summary>
|
|
179
|
-
<dl>
|
|
180
|
-
<dd>
|
|
181
|
-
|
|
182
|
-
#### 🔌 Usage
|
|
183
|
-
|
|
184
|
-
<dl>
|
|
185
|
-
<dd>
|
|
186
|
-
|
|
187
|
-
<dl>
|
|
188
|
-
<dd>
|
|
189
|
-
|
|
190
|
-
```typescript
|
|
191
|
-
await client.customerStands.customerClearStandCart({
|
|
192
|
-
stand: "stand"
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
```
|
|
196
|
-
</dd>
|
|
197
|
-
</dl>
|
|
198
|
-
</dd>
|
|
199
|
-
</dl>
|
|
200
|
-
|
|
201
|
-
#### ⚙️ Parameters
|
|
202
|
-
|
|
203
|
-
<dl>
|
|
204
|
-
<dd>
|
|
205
|
-
|
|
206
|
-
<dl>
|
|
207
|
-
<dd>
|
|
208
|
-
|
|
209
|
-
**request:** `FiveOneEat.CustomerClearStandCartRequest`
|
|
210
|
-
|
|
211
|
-
</dd>
|
|
212
|
-
</dl>
|
|
213
|
-
|
|
214
|
-
<dl>
|
|
215
|
-
<dd>
|
|
216
|
-
|
|
217
|
-
**requestOptions:** `CustomerStandsClient.RequestOptions`
|
|
218
|
-
|
|
219
|
-
</dd>
|
|
220
|
-
</dl>
|
|
221
|
-
</dd>
|
|
222
|
-
</dl>
|
|
223
|
-
|
|
224
|
-
|
|
225
69
|
</dd>
|
|
226
70
|
</dl>
|
|
227
71
|
</details>
|
|
@@ -1791,6 +1635,23 @@ await client.business.productOrders.get({
|
|
|
1791
1635
|
<dl>
|
|
1792
1636
|
<dd>
|
|
1793
1637
|
|
|
1638
|
+
#### 📝 Description
|
|
1639
|
+
|
|
1640
|
+
<dl>
|
|
1641
|
+
<dd>
|
|
1642
|
+
|
|
1643
|
+
<dl>
|
|
1644
|
+
<dd>
|
|
1645
|
+
|
|
1646
|
+
The business's part is done, and the customer is told. A shipped order
|
|
1647
|
+
becomes `fulfilled` (on its way); a pickup order becomes
|
|
1648
|
+
`ready_for_pickup`, and `mark-picked-up` completes it once collected.
|
|
1649
|
+
A farm-stand order is fulfilled at checkout and is refused here.
|
|
1650
|
+
</dd>
|
|
1651
|
+
</dl>
|
|
1652
|
+
</dd>
|
|
1653
|
+
</dl>
|
|
1654
|
+
|
|
1794
1655
|
#### 🔌 Usage
|
|
1795
1656
|
|
|
1796
1657
|
<dl>
|
|
@@ -1842,6 +1703,20 @@ await client.business.productOrders.fulfill({
|
|
|
1842
1703
|
<dl>
|
|
1843
1704
|
<dd>
|
|
1844
1705
|
|
|
1706
|
+
#### 📝 Description
|
|
1707
|
+
|
|
1708
|
+
<dl>
|
|
1709
|
+
<dd>
|
|
1710
|
+
|
|
1711
|
+
<dl>
|
|
1712
|
+
<dd>
|
|
1713
|
+
|
|
1714
|
+
Only a pickup order, `unfulfilled` or `ready_for_pickup`; it becomes `fulfilled`.
|
|
1715
|
+
</dd>
|
|
1716
|
+
</dl>
|
|
1717
|
+
</dd>
|
|
1718
|
+
</dl>
|
|
1719
|
+
|
|
1845
1720
|
#### 🔌 Usage
|
|
1846
1721
|
|
|
1847
1722
|
<dl>
|
|
@@ -10871,6 +10746,22 @@ await client.customer.cart.get({
|
|
|
10871
10746
|
<dl>
|
|
10872
10747
|
<dd>
|
|
10873
10748
|
|
|
10749
|
+
#### 📝 Description
|
|
10750
|
+
|
|
10751
|
+
<dl>
|
|
10752
|
+
<dd>
|
|
10753
|
+
|
|
10754
|
+
<dl>
|
|
10755
|
+
<dd>
|
|
10756
|
+
|
|
10757
|
+
Only a variant this shop sells is accepted: its product is active,
|
|
10758
|
+
published and on the storefront, and the variant has a storefront price.
|
|
10759
|
+
Anything else is a 422 on `variant_id` ("That item isn't available here.").
|
|
10760
|
+
</dd>
|
|
10761
|
+
</dl>
|
|
10762
|
+
</dd>
|
|
10763
|
+
</dl>
|
|
10764
|
+
|
|
10874
10765
|
#### 🔌 Usage
|
|
10875
10766
|
|
|
10876
10767
|
<dl>
|
|
@@ -10882,8 +10773,10 @@ await client.customer.cart.get({
|
|
|
10882
10773
|
```typescript
|
|
10883
10774
|
await client.customer.cart.addItem({
|
|
10884
10775
|
business: "business",
|
|
10885
|
-
|
|
10886
|
-
|
|
10776
|
+
body: {
|
|
10777
|
+
variant_id: "variant_id",
|
|
10778
|
+
quantity: 1
|
|
10779
|
+
}
|
|
10887
10780
|
});
|
|
10888
10781
|
|
|
10889
10782
|
```
|
|
@@ -10975,6 +10868,21 @@ await client.customer.cart.clear({
|
|
|
10975
10868
|
<dl>
|
|
10976
10869
|
<dd>
|
|
10977
10870
|
|
|
10871
|
+
#### 📝 Description
|
|
10872
|
+
|
|
10873
|
+
<dl>
|
|
10874
|
+
<dd>
|
|
10875
|
+
|
|
10876
|
+
<dl>
|
|
10877
|
+
<dd>
|
|
10878
|
+
|
|
10879
|
+
An item this shop no longer sells can't be changed, only removed: 422 on
|
|
10880
|
+
`variant_id` ("That item isn't available here.").
|
|
10881
|
+
</dd>
|
|
10882
|
+
</dl>
|
|
10883
|
+
</dd>
|
|
10884
|
+
</dl>
|
|
10885
|
+
|
|
10978
10886
|
#### 🔌 Usage
|
|
10979
10887
|
|
|
10980
10888
|
<dl>
|
|
@@ -11003,7 +10911,7 @@ await client.customer.cart.updateItem({
|
|
|
11003
10911
|
<dl>
|
|
11004
10912
|
<dd>
|
|
11005
10913
|
|
|
11006
|
-
**request:** `FiveOneEat.customer.
|
|
10914
|
+
**request:** `FiveOneEat.customer.UpdateCartItemRequest`
|
|
11007
10915
|
|
|
11008
10916
|
</dd>
|
|
11009
10917
|
</dl>
|
|
@@ -12951,6 +12859,249 @@ await client.customer.stands.scan({
|
|
|
12951
12859
|
</dl>
|
|
12952
12860
|
|
|
12953
12861
|
|
|
12862
|
+
</dd>
|
|
12863
|
+
</dl>
|
|
12864
|
+
</details>
|
|
12865
|
+
|
|
12866
|
+
<details><summary><code>client.customer.stands.<a href="/src/api/resources/customer/resources/stands/client/Client.ts">nearby</a>({ ...params }) -> FiveOneEat.NearbyStandsResponse</code></summary>
|
|
12867
|
+
<dl>
|
|
12868
|
+
<dd>
|
|
12869
|
+
|
|
12870
|
+
#### 📝 Description
|
|
12871
|
+
|
|
12872
|
+
<dl>
|
|
12873
|
+
<dd>
|
|
12874
|
+
|
|
12875
|
+
<dl>
|
|
12876
|
+
<dd>
|
|
12877
|
+
|
|
12878
|
+
The nearest stands that can take a payment right now, closest first:
|
|
12879
|
+
up to 20 within 50 km. `is_here` marks a stand within the arrival
|
|
12880
|
+
radius (`meta.arrival_radius_meters`), where the app offers its
|
|
12881
|
+
self-checkout without a QR scan. The coordinates are used for this
|
|
12882
|
+
lookup only and are never stored.
|
|
12883
|
+
</dd>
|
|
12884
|
+
</dl>
|
|
12885
|
+
</dd>
|
|
12886
|
+
</dl>
|
|
12887
|
+
|
|
12888
|
+
#### 🔌 Usage
|
|
12889
|
+
|
|
12890
|
+
<dl>
|
|
12891
|
+
<dd>
|
|
12892
|
+
|
|
12893
|
+
<dl>
|
|
12894
|
+
<dd>
|
|
12895
|
+
|
|
12896
|
+
```typescript
|
|
12897
|
+
await client.customer.stands.nearby({
|
|
12898
|
+
latitude: 1.1,
|
|
12899
|
+
longitude: 1.1
|
|
12900
|
+
});
|
|
12901
|
+
|
|
12902
|
+
```
|
|
12903
|
+
</dd>
|
|
12904
|
+
</dl>
|
|
12905
|
+
</dd>
|
|
12906
|
+
</dl>
|
|
12907
|
+
|
|
12908
|
+
#### ⚙️ Parameters
|
|
12909
|
+
|
|
12910
|
+
<dl>
|
|
12911
|
+
<dd>
|
|
12912
|
+
|
|
12913
|
+
<dl>
|
|
12914
|
+
<dd>
|
|
12915
|
+
|
|
12916
|
+
**request:** `FiveOneEat.customer.NearbyStandsRequest`
|
|
12917
|
+
|
|
12918
|
+
</dd>
|
|
12919
|
+
</dl>
|
|
12920
|
+
|
|
12921
|
+
<dl>
|
|
12922
|
+
<dd>
|
|
12923
|
+
|
|
12924
|
+
**requestOptions:** `StandsClient.RequestOptions`
|
|
12925
|
+
|
|
12926
|
+
</dd>
|
|
12927
|
+
</dl>
|
|
12928
|
+
</dd>
|
|
12929
|
+
</dl>
|
|
12930
|
+
|
|
12931
|
+
|
|
12932
|
+
</dd>
|
|
12933
|
+
</dl>
|
|
12934
|
+
</details>
|
|
12935
|
+
|
|
12936
|
+
<details><summary><code>client.customer.stands.<a href="/src/api/resources/customer/resources/stands/client/Client.ts">getCart</a>({ ...params }) -> FiveOneEat.GetCartStandsResponse</code></summary>
|
|
12937
|
+
<dl>
|
|
12938
|
+
<dd>
|
|
12939
|
+
|
|
12940
|
+
#### 🔌 Usage
|
|
12941
|
+
|
|
12942
|
+
<dl>
|
|
12943
|
+
<dd>
|
|
12944
|
+
|
|
12945
|
+
<dl>
|
|
12946
|
+
<dd>
|
|
12947
|
+
|
|
12948
|
+
```typescript
|
|
12949
|
+
await client.customer.stands.getCart({
|
|
12950
|
+
stand: "stand"
|
|
12951
|
+
});
|
|
12952
|
+
|
|
12953
|
+
```
|
|
12954
|
+
</dd>
|
|
12955
|
+
</dl>
|
|
12956
|
+
</dd>
|
|
12957
|
+
</dl>
|
|
12958
|
+
|
|
12959
|
+
#### ⚙️ Parameters
|
|
12960
|
+
|
|
12961
|
+
<dl>
|
|
12962
|
+
<dd>
|
|
12963
|
+
|
|
12964
|
+
<dl>
|
|
12965
|
+
<dd>
|
|
12966
|
+
|
|
12967
|
+
**request:** `FiveOneEat.customer.GetCartStandsRequest`
|
|
12968
|
+
|
|
12969
|
+
</dd>
|
|
12970
|
+
</dl>
|
|
12971
|
+
|
|
12972
|
+
<dl>
|
|
12973
|
+
<dd>
|
|
12974
|
+
|
|
12975
|
+
**requestOptions:** `StandsClient.RequestOptions`
|
|
12976
|
+
|
|
12977
|
+
</dd>
|
|
12978
|
+
</dl>
|
|
12979
|
+
</dd>
|
|
12980
|
+
</dl>
|
|
12981
|
+
|
|
12982
|
+
|
|
12983
|
+
</dd>
|
|
12984
|
+
</dl>
|
|
12985
|
+
</details>
|
|
12986
|
+
|
|
12987
|
+
<details><summary><code>client.customer.stands.<a href="/src/api/resources/customer/resources/stands/client/Client.ts">addCartItem</a>({ ...params }) -> FiveOneEat.AddCartItemStandsResponse</code></summary>
|
|
12988
|
+
<dl>
|
|
12989
|
+
<dd>
|
|
12990
|
+
|
|
12991
|
+
#### 📝 Description
|
|
12992
|
+
|
|
12993
|
+
<dl>
|
|
12994
|
+
<dd>
|
|
12995
|
+
|
|
12996
|
+
<dl>
|
|
12997
|
+
<dd>
|
|
12998
|
+
|
|
12999
|
+
Only a variant this stand sells is accepted: its product is active,
|
|
13000
|
+
published and on the stand, and the variant has a stand price. Anything
|
|
13001
|
+
else is a 422 on `variant_id` ("That item isn't available here.").
|
|
13002
|
+
</dd>
|
|
13003
|
+
</dl>
|
|
13004
|
+
</dd>
|
|
13005
|
+
</dl>
|
|
13006
|
+
|
|
13007
|
+
#### 🔌 Usage
|
|
13008
|
+
|
|
13009
|
+
<dl>
|
|
13010
|
+
<dd>
|
|
13011
|
+
|
|
13012
|
+
<dl>
|
|
13013
|
+
<dd>
|
|
13014
|
+
|
|
13015
|
+
```typescript
|
|
13016
|
+
await client.customer.stands.addCartItem({
|
|
13017
|
+
stand: "stand",
|
|
13018
|
+
body: {
|
|
13019
|
+
variant_id: "variant_id",
|
|
13020
|
+
quantity: 1
|
|
13021
|
+
}
|
|
13022
|
+
});
|
|
13023
|
+
|
|
13024
|
+
```
|
|
13025
|
+
</dd>
|
|
13026
|
+
</dl>
|
|
13027
|
+
</dd>
|
|
13028
|
+
</dl>
|
|
13029
|
+
|
|
13030
|
+
#### ⚙️ Parameters
|
|
13031
|
+
|
|
13032
|
+
<dl>
|
|
13033
|
+
<dd>
|
|
13034
|
+
|
|
13035
|
+
<dl>
|
|
13036
|
+
<dd>
|
|
13037
|
+
|
|
13038
|
+
**request:** `FiveOneEat.customer.AddCartItemStandsRequest`
|
|
13039
|
+
|
|
13040
|
+
</dd>
|
|
13041
|
+
</dl>
|
|
13042
|
+
|
|
13043
|
+
<dl>
|
|
13044
|
+
<dd>
|
|
13045
|
+
|
|
13046
|
+
**requestOptions:** `StandsClient.RequestOptions`
|
|
13047
|
+
|
|
13048
|
+
</dd>
|
|
13049
|
+
</dl>
|
|
13050
|
+
</dd>
|
|
13051
|
+
</dl>
|
|
13052
|
+
|
|
13053
|
+
|
|
13054
|
+
</dd>
|
|
13055
|
+
</dl>
|
|
13056
|
+
</details>
|
|
13057
|
+
|
|
13058
|
+
<details><summary><code>client.customer.stands.<a href="/src/api/resources/customer/resources/stands/client/Client.ts">clearCart</a>({ ...params }) -> void</code></summary>
|
|
13059
|
+
<dl>
|
|
13060
|
+
<dd>
|
|
13061
|
+
|
|
13062
|
+
#### 🔌 Usage
|
|
13063
|
+
|
|
13064
|
+
<dl>
|
|
13065
|
+
<dd>
|
|
13066
|
+
|
|
13067
|
+
<dl>
|
|
13068
|
+
<dd>
|
|
13069
|
+
|
|
13070
|
+
```typescript
|
|
13071
|
+
await client.customer.stands.clearCart({
|
|
13072
|
+
stand: "stand"
|
|
13073
|
+
});
|
|
13074
|
+
|
|
13075
|
+
```
|
|
13076
|
+
</dd>
|
|
13077
|
+
</dl>
|
|
13078
|
+
</dd>
|
|
13079
|
+
</dl>
|
|
13080
|
+
|
|
13081
|
+
#### ⚙️ Parameters
|
|
13082
|
+
|
|
13083
|
+
<dl>
|
|
13084
|
+
<dd>
|
|
13085
|
+
|
|
13086
|
+
<dl>
|
|
13087
|
+
<dd>
|
|
13088
|
+
|
|
13089
|
+
**request:** `FiveOneEat.customer.ClearCartStandsRequest`
|
|
13090
|
+
|
|
13091
|
+
</dd>
|
|
13092
|
+
</dl>
|
|
13093
|
+
|
|
13094
|
+
<dl>
|
|
13095
|
+
<dd>
|
|
13096
|
+
|
|
13097
|
+
**requestOptions:** `StandsClient.RequestOptions`
|
|
13098
|
+
|
|
13099
|
+
</dd>
|
|
13100
|
+
</dl>
|
|
13101
|
+
</dd>
|
|
13102
|
+
</dl>
|
|
13103
|
+
|
|
13104
|
+
|
|
12954
13105
|
</dd>
|
|
12955
13106
|
</dl>
|
|
12956
13107
|
</details>
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
-
import * as core from "../../../../core/index.js";
|
|
4
|
-
import * as FiveOneEat from "../../../index.js";
|
|
5
|
-
export declare namespace CustomerStandsClient {
|
|
6
|
-
type Options = BaseClientOptions;
|
|
7
|
-
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare class CustomerStandsClient {
|
|
11
|
-
protected readonly _options: NormalizedClientOptionsWithAuth<CustomerStandsClient.Options>;
|
|
12
|
-
constructor(options?: CustomerStandsClient.Options);
|
|
13
|
-
/**
|
|
14
|
-
* @param {FiveOneEat.CustomerGetStandCartRequest} request
|
|
15
|
-
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
-
*
|
|
17
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
18
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* await client.customerStands.customerGetStandCart({
|
|
22
|
-
* stand: "stand"
|
|
23
|
-
* })
|
|
24
|
-
*/
|
|
25
|
-
customerGetStandCart(request: FiveOneEat.CustomerGetStandCartRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.CustomerGetStandCartResponse>;
|
|
26
|
-
private __customerGetStandCart;
|
|
27
|
-
/**
|
|
28
|
-
* @param {FiveOneEat.CustomerAddStandCartItemRequest} request
|
|
29
|
-
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
-
*
|
|
31
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
32
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
33
|
-
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* await client.customerStands.customerAddStandCartItem({
|
|
37
|
-
* stand: "stand",
|
|
38
|
-
* variant_id: "variant_id",
|
|
39
|
-
* quantity: 1
|
|
40
|
-
* })
|
|
41
|
-
*/
|
|
42
|
-
customerAddStandCartItem(request: FiveOneEat.CustomerAddStandCartItemRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.CustomerAddStandCartItemResponse>;
|
|
43
|
-
private __customerAddStandCartItem;
|
|
44
|
-
/**
|
|
45
|
-
* @param {FiveOneEat.CustomerClearStandCartRequest} request
|
|
46
|
-
* @param {CustomerStandsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
-
*
|
|
48
|
-
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
49
|
-
* @throws {@link FiveOneEat.NotFoundError}
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* await client.customerStands.customerClearStandCart({
|
|
53
|
-
* stand: "stand"
|
|
54
|
-
* })
|
|
55
|
-
*/
|
|
56
|
-
customerClearStandCart(request: FiveOneEat.CustomerClearStandCartRequest, requestOptions?: CustomerStandsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
57
|
-
private __customerClearStandCart;
|
|
58
|
-
}
|