@edgebound/bigcommerce 0.0.1

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 (45) hide show
  1. package/dist/bigcommerce.fetcher-D1TyK4y4.d.mts +90 -0
  2. package/dist/bigcommerce.fetcher-D1TyK4y4.d.ts +90 -0
  3. package/dist/chunk-7GBRYAQG.mjs +272 -0
  4. package/dist/chunk-7GBRYAQG.mjs.map +1 -0
  5. package/dist/chunk-CERZFSUE.mjs +20 -0
  6. package/dist/chunk-CERZFSUE.mjs.map +1 -0
  7. package/dist/companies.d.mts +2 -0
  8. package/dist/companies.d.ts +2 -0
  9. package/dist/companies.js +2 -0
  10. package/dist/companies.js.map +1 -0
  11. package/dist/companies.mjs +1 -0
  12. package/dist/companies.mjs.map +1 -0
  13. package/dist/currencies.d.mts +2 -0
  14. package/dist/currencies.d.ts +2 -0
  15. package/dist/currencies.js +2 -0
  16. package/dist/currencies.js.map +1 -0
  17. package/dist/currencies.mjs +1 -0
  18. package/dist/currencies.mjs.map +1 -0
  19. package/dist/customers.d.mts +65 -0
  20. package/dist/customers.d.ts +65 -0
  21. package/dist/customers.js +399 -0
  22. package/dist/customers.js.map +1 -0
  23. package/dist/customers.mjs +107 -0
  24. package/dist/customers.mjs.map +1 -0
  25. package/dist/index.d.mts +29 -0
  26. package/dist/index.d.ts +29 -0
  27. package/dist/index.js +304 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/index.mjs +37 -0
  30. package/dist/index.mjs.map +1 -0
  31. package/dist/orders.d.mts +416 -0
  32. package/dist/orders.d.ts +416 -0
  33. package/dist/orders.js +608 -0
  34. package/dist/orders.js.map +1 -0
  35. package/dist/orders.mjs +314 -0
  36. package/dist/orders.mjs.map +1 -0
  37. package/dist/products.d.mts +32 -0
  38. package/dist/products.d.ts +32 -0
  39. package/dist/products.js +409 -0
  40. package/dist/products.js.map +1 -0
  41. package/dist/products.mjs +119 -0
  42. package/dist/products.mjs.map +1 -0
  43. package/dist/validation.error-CHLpPYC_.d.mts +14 -0
  44. package/dist/validation.error-CHLpPYC_.d.ts +14 -0
  45. package/package.json +63 -0
@@ -0,0 +1,416 @@
1
+ import { I as InputValidationError } from './validation.error-CHLpPYC_.mjs';
2
+ import { S as SomeBigCommerceError, B as BigCommerceFetcher } from './bigcommerce.fetcher-D1TyK4y4.mjs';
3
+ import { Effect } from 'effect';
4
+ import * as z from 'zod';
5
+ import 'effect/Cause';
6
+ import 'effect/Types';
7
+
8
+ declare const FindOrdersCriteriaSchema: z.ZodObject<{
9
+ customer_id: z.ZodOptional<z.ZodString>;
10
+ email: z.ZodOptional<z.ZodString>;
11
+ status_id: z.ZodOptional<z.ZodNumber>;
12
+ cart_id: z.ZodOptional<z.ZodString>;
13
+ payment_method: z.ZodOptional<z.ZodString>;
14
+ min_date_created: z.ZodOptional<z.ZodISODateTime>;
15
+ max_date_created: z.ZodOptional<z.ZodISODateTime>;
16
+ min_date_modified: z.ZodOptional<z.ZodISODateTime>;
17
+ max_date_modified: z.ZodOptional<z.ZodISODateTime>;
18
+ page: z.ZodOptional<z.ZodNumber>;
19
+ limit: z.ZodOptional<z.ZodNumber>;
20
+ sort: z.ZodOptional<z.ZodString>;
21
+ channel_id: z.ZodOptional<z.ZodInt>;
22
+ }, z.core.$strip>;
23
+ type FindOrdersCriteriaInput = z.input<typeof FindOrdersCriteriaSchema>;
24
+
25
+ declare const findOrders: (criteria?: FindOrdersCriteriaInput) => Effect.Effect<{
26
+ id: number;
27
+ customer_id: number;
28
+ date_created: string;
29
+ is_tax_inclusive_pricing: boolean;
30
+ date_modified: string;
31
+ date_shipped: string;
32
+ status_id: number;
33
+ status: "Incomplete" | "Pending" | "Shipped" | "Partially Shipped" | "Refunded" | "Cancelled" | "Declined" | "Awaiting Payment" | "Awaiting Pickup" | "Awaiting Shipment" | "Completed" | "Awaiting Fulfillment" | "Manual Verification Required" | "Disputed" | "Partially Refunded";
34
+ subtotal_ex_tax: string;
35
+ subtotal_inc_tax: string;
36
+ subtotal_tax: string;
37
+ base_shipping_cost: string;
38
+ shipping_cost_ex_tax: string;
39
+ shipping_cost_inc_tax: string;
40
+ shipping_cost_tax: string;
41
+ shipping_cost_tax_class_id: number;
42
+ base_handling_cost: string;
43
+ handling_cost_ex_tax: string;
44
+ handling_cost_inc_tax: string;
45
+ handling_cost_tax: string;
46
+ handling_cost_tax_class_id: number;
47
+ base_wrapping_cost: string;
48
+ wrapping_cost_ex_tax: string;
49
+ wrapping_cost_inc_tax: string;
50
+ wrapping_cost_tax: string;
51
+ wrapping_cost_tax_class_id: number;
52
+ total_ex_tax: string;
53
+ total_inc_tax: string;
54
+ total_tax: string;
55
+ items_total: number;
56
+ items_shipped: number;
57
+ payment_method: string;
58
+ payment_provider_id: string;
59
+ payment_status: string;
60
+ refunded_amount: string;
61
+ order_is_digital: boolean;
62
+ store_credit_amount: string;
63
+ gift_certificate_amount: string;
64
+ ip_address: string;
65
+ ip_address_v6: string;
66
+ geoip_country: string;
67
+ geoip_country_iso2: string;
68
+ currency_id: number;
69
+ currency_code: string;
70
+ currency_exchange_rate: string;
71
+ default_currency_id: number;
72
+ default_currency_code: string;
73
+ staff_notes: string;
74
+ customer_message: string;
75
+ discount_amount: string;
76
+ coupon_discount: string;
77
+ shipping_address_count: number;
78
+ is_deleted: boolean;
79
+ ebay_order_id: string;
80
+ cart_id: string;
81
+ billing_address: {
82
+ first_name: string;
83
+ last_name: string;
84
+ company: string;
85
+ street_1: string;
86
+ street_2: string;
87
+ city: string;
88
+ state: string;
89
+ zip: string;
90
+ country: string;
91
+ country_iso2: string;
92
+ phone: string;
93
+ email: string;
94
+ form_fields: {
95
+ name: string;
96
+ value: string;
97
+ }[];
98
+ };
99
+ is_email_opt_in: boolean;
100
+ order_source: string;
101
+ channel_id: number;
102
+ external_source: string;
103
+ external_id: string | null;
104
+ tax_provider_id: string;
105
+ customer_locale: string;
106
+ external_order_id: string | null;
107
+ store_default_currency_code: string;
108
+ store_default_to_transactional_exchange_rate: string;
109
+ custom_status: string;
110
+ }[], SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
111
+ declare const getAllOrdersBy: (criteria: Omit<FindOrdersCriteriaInput, "page" | "limit">) => Effect.Effect<{
112
+ id: number;
113
+ customer_id: number;
114
+ date_created: string;
115
+ is_tax_inclusive_pricing: boolean;
116
+ date_modified: string;
117
+ date_shipped: string;
118
+ status_id: number;
119
+ status: "Incomplete" | "Pending" | "Shipped" | "Partially Shipped" | "Refunded" | "Cancelled" | "Declined" | "Awaiting Payment" | "Awaiting Pickup" | "Awaiting Shipment" | "Completed" | "Awaiting Fulfillment" | "Manual Verification Required" | "Disputed" | "Partially Refunded";
120
+ subtotal_ex_tax: string;
121
+ subtotal_inc_tax: string;
122
+ subtotal_tax: string;
123
+ base_shipping_cost: string;
124
+ shipping_cost_ex_tax: string;
125
+ shipping_cost_inc_tax: string;
126
+ shipping_cost_tax: string;
127
+ shipping_cost_tax_class_id: number;
128
+ base_handling_cost: string;
129
+ handling_cost_ex_tax: string;
130
+ handling_cost_inc_tax: string;
131
+ handling_cost_tax: string;
132
+ handling_cost_tax_class_id: number;
133
+ base_wrapping_cost: string;
134
+ wrapping_cost_ex_tax: string;
135
+ wrapping_cost_inc_tax: string;
136
+ wrapping_cost_tax: string;
137
+ wrapping_cost_tax_class_id: number;
138
+ total_ex_tax: string;
139
+ total_inc_tax: string;
140
+ total_tax: string;
141
+ items_total: number;
142
+ items_shipped: number;
143
+ payment_method: string;
144
+ payment_provider_id: string;
145
+ payment_status: string;
146
+ refunded_amount: string;
147
+ order_is_digital: boolean;
148
+ store_credit_amount: string;
149
+ gift_certificate_amount: string;
150
+ ip_address: string;
151
+ ip_address_v6: string;
152
+ geoip_country: string;
153
+ geoip_country_iso2: string;
154
+ currency_id: number;
155
+ currency_code: string;
156
+ currency_exchange_rate: string;
157
+ default_currency_id: number;
158
+ default_currency_code: string;
159
+ staff_notes: string;
160
+ customer_message: string;
161
+ discount_amount: string;
162
+ coupon_discount: string;
163
+ shipping_address_count: number;
164
+ is_deleted: boolean;
165
+ ebay_order_id: string;
166
+ cart_id: string;
167
+ billing_address: {
168
+ first_name: string;
169
+ last_name: string;
170
+ company: string;
171
+ street_1: string;
172
+ street_2: string;
173
+ city: string;
174
+ state: string;
175
+ zip: string;
176
+ country: string;
177
+ country_iso2: string;
178
+ phone: string;
179
+ email: string;
180
+ form_fields: {
181
+ name: string;
182
+ value: string;
183
+ }[];
184
+ };
185
+ is_email_opt_in: boolean;
186
+ order_source: string;
187
+ channel_id: number;
188
+ external_source: string;
189
+ external_id: string | null;
190
+ tax_provider_id: string;
191
+ customer_locale: string;
192
+ external_order_id: string | null;
193
+ store_default_currency_code: string;
194
+ store_default_to_transactional_exchange_rate: string;
195
+ custom_status: string;
196
+ }[], SomeBigCommerceError | InputValidationError, BigCommerceFetcher>;
197
+
198
+ declare const getOrder: (orderId: string) => Effect.Effect<{
199
+ id: number;
200
+ customer_id: number;
201
+ date_created: string;
202
+ is_tax_inclusive_pricing: boolean;
203
+ date_modified: string;
204
+ date_shipped: string;
205
+ status_id: number;
206
+ status: "Incomplete" | "Pending" | "Shipped" | "Partially Shipped" | "Refunded" | "Cancelled" | "Declined" | "Awaiting Payment" | "Awaiting Pickup" | "Awaiting Shipment" | "Completed" | "Awaiting Fulfillment" | "Manual Verification Required" | "Disputed" | "Partially Refunded";
207
+ subtotal_ex_tax: string;
208
+ subtotal_inc_tax: string;
209
+ subtotal_tax: string;
210
+ base_shipping_cost: string;
211
+ shipping_cost_ex_tax: string;
212
+ shipping_cost_inc_tax: string;
213
+ shipping_cost_tax: string;
214
+ shipping_cost_tax_class_id: number;
215
+ base_handling_cost: string;
216
+ handling_cost_ex_tax: string;
217
+ handling_cost_inc_tax: string;
218
+ handling_cost_tax: string;
219
+ handling_cost_tax_class_id: number;
220
+ base_wrapping_cost: string;
221
+ wrapping_cost_ex_tax: string;
222
+ wrapping_cost_inc_tax: string;
223
+ wrapping_cost_tax: string;
224
+ wrapping_cost_tax_class_id: number;
225
+ total_ex_tax: string;
226
+ total_inc_tax: string;
227
+ total_tax: string;
228
+ items_total: number;
229
+ items_shipped: number;
230
+ payment_method: string;
231
+ payment_provider_id: string;
232
+ payment_status: string;
233
+ refunded_amount: string;
234
+ order_is_digital: boolean;
235
+ store_credit_amount: string;
236
+ gift_certificate_amount: string;
237
+ ip_address: string;
238
+ ip_address_v6: string;
239
+ geoip_country: string;
240
+ geoip_country_iso2: string;
241
+ currency_id: number;
242
+ currency_code: string;
243
+ currency_exchange_rate: string;
244
+ default_currency_id: number;
245
+ default_currency_code: string;
246
+ staff_notes: string;
247
+ customer_message: string;
248
+ discount_amount: string;
249
+ coupon_discount: string;
250
+ shipping_address_count: number;
251
+ is_deleted: boolean;
252
+ ebay_order_id: string;
253
+ cart_id: string;
254
+ billing_address: {
255
+ first_name: string;
256
+ last_name: string;
257
+ company: string;
258
+ street_1: string;
259
+ street_2: string;
260
+ city: string;
261
+ state: string;
262
+ zip: string;
263
+ country: string;
264
+ country_iso2: string;
265
+ phone: string;
266
+ email: string;
267
+ form_fields: {
268
+ name: string;
269
+ value: string;
270
+ }[];
271
+ };
272
+ is_email_opt_in: boolean;
273
+ order_source: string;
274
+ channel_id: number;
275
+ external_source: string;
276
+ external_id: string | null;
277
+ tax_provider_id: string;
278
+ customer_locale: string;
279
+ external_order_id: string | null;
280
+ store_default_currency_code: string;
281
+ store_default_to_transactional_exchange_rate: string;
282
+ custom_status: string;
283
+ }, SomeBigCommerceError, BigCommerceFetcher>;
284
+
285
+ declare const getAllOrderProducts: (orderId: number) => Effect.Effect<{
286
+ id: number;
287
+ order_id: number;
288
+ product_id: number;
289
+ variant_id: number;
290
+ order_address_id: number;
291
+ sku: string;
292
+ type: "physical" | "digital";
293
+ base_price: number;
294
+ price_ex_tax: number;
295
+ price_inc_tax: number;
296
+ price_tax: number;
297
+ base_total: number;
298
+ total_ex_tax: number;
299
+ total_inc_tax: number;
300
+ total_tax: number;
301
+ weight: number;
302
+ width: number;
303
+ height: number;
304
+ depth: number;
305
+ quantity: number;
306
+ base_cost_price: number;
307
+ cost_price_inc_tax: number;
308
+ cost_price_ex_tax: number;
309
+ cost_price_tax: number;
310
+ }[], SomeBigCommerceError, BigCommerceFetcher>;
311
+
312
+ declare const OrderSchema: z.ZodObject<{
313
+ id: z.ZodNumber;
314
+ customer_id: z.ZodNumber;
315
+ date_created: z.ZodString;
316
+ is_tax_inclusive_pricing: z.ZodBoolean;
317
+ date_modified: z.ZodString;
318
+ date_shipped: z.ZodString;
319
+ status_id: z.ZodNumber;
320
+ status: z.ZodEnum<{
321
+ Incomplete: "Incomplete";
322
+ Pending: "Pending";
323
+ Shipped: "Shipped";
324
+ "Partially Shipped": "Partially Shipped";
325
+ Refunded: "Refunded";
326
+ Cancelled: "Cancelled";
327
+ Declined: "Declined";
328
+ "Awaiting Payment": "Awaiting Payment";
329
+ "Awaiting Pickup": "Awaiting Pickup";
330
+ "Awaiting Shipment": "Awaiting Shipment";
331
+ Completed: "Completed";
332
+ "Awaiting Fulfillment": "Awaiting Fulfillment";
333
+ "Manual Verification Required": "Manual Verification Required";
334
+ Disputed: "Disputed";
335
+ "Partially Refunded": "Partially Refunded";
336
+ }>;
337
+ subtotal_ex_tax: z.ZodString;
338
+ subtotal_inc_tax: z.ZodString;
339
+ subtotal_tax: z.ZodString;
340
+ base_shipping_cost: z.ZodString;
341
+ shipping_cost_ex_tax: z.ZodString;
342
+ shipping_cost_inc_tax: z.ZodString;
343
+ shipping_cost_tax: z.ZodString;
344
+ shipping_cost_tax_class_id: z.ZodNumber;
345
+ base_handling_cost: z.ZodString;
346
+ handling_cost_ex_tax: z.ZodString;
347
+ handling_cost_inc_tax: z.ZodString;
348
+ handling_cost_tax: z.ZodString;
349
+ handling_cost_tax_class_id: z.ZodNumber;
350
+ base_wrapping_cost: z.ZodString;
351
+ wrapping_cost_ex_tax: z.ZodString;
352
+ wrapping_cost_inc_tax: z.ZodString;
353
+ wrapping_cost_tax: z.ZodString;
354
+ wrapping_cost_tax_class_id: z.ZodNumber;
355
+ total_ex_tax: z.ZodString;
356
+ total_inc_tax: z.ZodString;
357
+ total_tax: z.ZodString;
358
+ items_total: z.ZodNumber;
359
+ items_shipped: z.ZodNumber;
360
+ payment_method: z.ZodString;
361
+ payment_provider_id: z.ZodString;
362
+ payment_status: z.ZodString;
363
+ refunded_amount: z.ZodString;
364
+ order_is_digital: z.ZodBoolean;
365
+ store_credit_amount: z.ZodString;
366
+ gift_certificate_amount: z.ZodString;
367
+ ip_address: z.ZodString;
368
+ ip_address_v6: z.ZodString;
369
+ geoip_country: z.ZodString;
370
+ geoip_country_iso2: z.ZodString;
371
+ currency_id: z.ZodNumber;
372
+ currency_code: z.ZodString;
373
+ currency_exchange_rate: z.ZodString;
374
+ default_currency_id: z.ZodNumber;
375
+ default_currency_code: z.ZodString;
376
+ staff_notes: z.ZodString;
377
+ customer_message: z.ZodString;
378
+ discount_amount: z.ZodString;
379
+ coupon_discount: z.ZodString;
380
+ shipping_address_count: z.ZodNumber;
381
+ is_deleted: z.ZodBoolean;
382
+ ebay_order_id: z.ZodString;
383
+ cart_id: z.ZodString;
384
+ billing_address: z.ZodObject<{
385
+ first_name: z.ZodString;
386
+ last_name: z.ZodString;
387
+ company: z.ZodString;
388
+ street_1: z.ZodString;
389
+ street_2: z.ZodString;
390
+ city: z.ZodString;
391
+ state: z.ZodString;
392
+ zip: z.ZodString;
393
+ country: z.ZodString;
394
+ country_iso2: z.ZodString;
395
+ phone: z.ZodString;
396
+ email: z.ZodString;
397
+ form_fields: z.ZodArray<z.ZodObject<{
398
+ name: z.ZodString;
399
+ value: z.ZodString;
400
+ }, z.core.$strip>>;
401
+ }, z.core.$strip>;
402
+ is_email_opt_in: z.ZodBoolean;
403
+ order_source: z.ZodString;
404
+ channel_id: z.ZodNumber;
405
+ external_source: z.ZodString;
406
+ external_id: z.ZodNullable<z.ZodString>;
407
+ tax_provider_id: z.ZodString;
408
+ customer_locale: z.ZodString;
409
+ external_order_id: z.ZodNullable<z.ZodString>;
410
+ store_default_currency_code: z.ZodString;
411
+ store_default_to_transactional_exchange_rate: z.ZodString;
412
+ custom_status: z.ZodString;
413
+ }, z.core.$strip>;
414
+ type Order = z.output<typeof OrderSchema>;
415
+
416
+ export { type Order, OrderSchema, findOrders, getAllOrderProducts, getAllOrdersBy, getOrder };