ce-storefront 0.15.3 → 0.15.5

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.
@@ -23,6 +23,7 @@ To interact with the system, each anonymous user is issued an access token. This
23
23
 
24
24
  ### Example Usage
25
25
 
26
+ <!-- UsageSnippet language="typescript" operationID="get-anonymous-token" method="post" path="/auth/anonymous" -->
26
27
  ```typescript
27
28
  import { CeStorefront } from "ce-storefront";
28
29
 
@@ -93,6 +94,7 @@ This API enables users to authenticate into the system using their phone number.
93
94
 
94
95
  ### Example Usage
95
96
 
97
+ <!-- UsageSnippet language="typescript" operationID="login-with-phone" method="post" path="/auth/login/phone" -->
96
98
  ```typescript
97
99
  import { CeStorefront } from "ce-storefront";
98
100
 
@@ -168,6 +170,7 @@ This API enables users to authenticate into the system using their email address
168
170
 
169
171
  ### Example Usage
170
172
 
173
+ <!-- UsageSnippet language="typescript" operationID="login-with-email" method="post" path="/auth/login/email" -->
171
174
  ```typescript
172
175
  import { CeStorefront } from "ce-storefront";
173
176
 
@@ -243,6 +246,7 @@ This API enables users to authenticate into the system using their WhatsApp Numb
243
246
 
244
247
  ### Example Usage
245
248
 
249
+ <!-- UsageSnippet language="typescript" operationID="login-with-whatsapp" method="post" path="/auth/login/whatsapp" -->
246
250
  ```typescript
247
251
  import { CeStorefront } from "ce-storefront";
248
252
 
@@ -317,6 +321,7 @@ This API endpoint allows you to verify a one-time password (OTP) for authenticat
317
321
 
318
322
  ### Example Usage
319
323
 
324
+ <!-- UsageSnippet language="typescript" operationID="verify-otp" method="post" path="/auth/verify-otp" -->
320
325
  ```typescript
321
326
  import { CeStorefront } from "ce-storefront";
322
327
 
@@ -396,6 +401,7 @@ The Retrieve User API is designed to facilitate the retrieval of comprehensive u
396
401
 
397
402
  ### Example Usage
398
403
 
404
+ <!-- UsageSnippet language="typescript" operationID="get-user-detail" method="get" path="/auth/user/{id}" -->
399
405
  ```typescript
400
406
  import { CeStorefront } from "ce-storefront";
401
407
 
@@ -471,6 +477,7 @@ The Update User API helps to efficiently modify and enhance user information wit
471
477
 
472
478
  ### Example Usage
473
479
 
480
+ <!-- UsageSnippet language="typescript" operationID="update-user" method="put" path="/auth/user/{id}" -->
474
481
  ```typescript
475
482
  import { CeStorefront } from "ce-storefront";
476
483
 
@@ -601,6 +608,7 @@ The Refresh Access Token API is an integral component designed to enhance securi
601
608
 
602
609
  ### Example Usage
603
610
 
611
+ <!-- UsageSnippet language="typescript" operationID="refresh-token" method="post" path="/auth/refresh-token" -->
604
612
  ```typescript
605
613
  import { CeStorefront } from "ce-storefront";
606
614
 
@@ -675,6 +683,7 @@ Generating a One-Time Password (OTP) typically involves creating a random code t
675
683
 
676
684
  ### Example Usage
677
685
 
686
+ <!-- UsageSnippet language="typescript" operationID="generate-otp" method="post" path="/auth/generate-otp" -->
678
687
  ```typescript
679
688
  import { CeStorefront } from "ce-storefront";
680
689
 
@@ -753,6 +762,7 @@ The Logout User API initiate the logout process for a user. Upon a successful re
753
762
 
754
763
  ### Example Usage
755
764
 
765
+ <!-- UsageSnippet language="typescript" operationID="logout" method="post" path="/auth/logout" -->
756
766
  ```typescript
757
767
  import { CeStorefront } from "ce-storefront";
758
768
 
@@ -24,6 +24,7 @@ Create cart
24
24
 
25
25
  ### Example Usage
26
26
 
27
+ <!-- UsageSnippet language="typescript" operationID="create-cart" method="post" path="/carts" -->
27
28
  ```typescript
28
29
  import { CeStorefront } from "ce-storefront";
29
30
 
@@ -131,6 +132,7 @@ Retrieve cart detail
131
132
 
132
133
  ### Example Usage
133
134
 
135
+ <!-- UsageSnippet language="typescript" operationID="get-cart" method="get" path="/carts/{id}" -->
134
136
  ```typescript
135
137
  import { CeStorefront } from "ce-storefront";
136
138
 
@@ -205,6 +207,7 @@ delete all items from the cart.
205
207
 
206
208
  ### Example Usage
207
209
 
210
+ <!-- UsageSnippet language="typescript" operationID="delete-cart" method="delete" path="/carts/{id}" -->
208
211
  ```typescript
209
212
  import { CeStorefront } from "ce-storefront";
210
213
 
@@ -279,6 +282,7 @@ Retrieve cart detail using user id
279
282
 
280
283
  ### Example Usage
281
284
 
285
+ <!-- UsageSnippet language="typescript" operationID="get-user-cart" method="get" path="/carts/users/{user_id}" -->
282
286
  ```typescript
283
287
  import { CeStorefront } from "ce-storefront";
284
288
 
@@ -353,6 +357,7 @@ delete all items from the cart using user id.
353
357
 
354
358
  ### Example Usage
355
359
 
360
+ <!-- UsageSnippet language="typescript" operationID="delete-user-cart" method="delete" path="/carts/users/{user_id}" -->
356
361
  ```typescript
357
362
  import { CeStorefront } from "ce-storefront";
358
363
 
@@ -427,6 +432,7 @@ Add Item to cart. To delete item from cart, pass quantity = 0
427
432
 
428
433
  ### Example Usage
429
434
 
435
+ <!-- UsageSnippet language="typescript" operationID="update-cart" method="post" path="/carts/{id}/items" -->
430
436
  ```typescript
431
437
  import { CeStorefront } from "ce-storefront";
432
438
 
@@ -512,6 +518,7 @@ Update billing and shipping address
512
518
 
513
519
  ### Example Usage
514
520
 
521
+ <!-- UsageSnippet language="typescript" operationID="create-cart-address" method="post" path="/carts/{id}/address" -->
515
522
  ```typescript
516
523
  import { CeStorefront } from "ce-storefront";
517
524
 
@@ -595,6 +602,7 @@ Update preferred shipping method and courier.
595
602
 
596
603
  ### Example Usage
597
604
 
605
+ <!-- UsageSnippet language="typescript" operationID="update-shipping-method" method="post" path="/carts/{id}/shipping-method" -->
598
606
  ```typescript
599
607
  import { CeStorefront } from "ce-storefront";
600
608
 
@@ -678,6 +686,7 @@ Apply coupon
678
686
 
679
687
  ### Example Usage
680
688
 
689
+ <!-- UsageSnippet language="typescript" operationID="apply-coupon" method="post" path="/carts/{id}/coupon" -->
681
690
  ```typescript
682
691
  import { CeStorefront } from "ce-storefront";
683
692
 
@@ -759,6 +768,7 @@ remove coupon from cart
759
768
 
760
769
  ### Example Usage
761
770
 
771
+ <!-- UsageSnippet language="typescript" operationID="remove-coupon" method="delete" path="/carts/{id}/coupon" -->
762
772
  ```typescript
763
773
  import { CeStorefront } from "ce-storefront";
764
774
 
@@ -833,6 +843,7 @@ Redeem loyalty points
833
843
 
834
844
  ### Example Usage
835
845
 
846
+ <!-- UsageSnippet language="typescript" operationID="redeem-loyalty-points" method="post" path="/carts/{id}/loyalty-points" -->
836
847
  ```typescript
837
848
  import { CeStorefront } from "ce-storefront";
838
849
 
@@ -913,6 +924,7 @@ Remove loyalty points applied in cart
913
924
 
914
925
  ### Example Usage
915
926
 
927
+ <!-- UsageSnippet language="typescript" operationID="remove-loyalty-points" method="delete" path="/carts/{id}/loyalty-points" -->
916
928
  ```typescript
917
929
  import { CeStorefront } from "ce-storefront";
918
930
 
@@ -23,6 +23,7 @@ Returns a list of your products. The products are returned sorted by creation da
23
23
 
24
24
  ### Example Usage
25
25
 
26
+ <!-- UsageSnippet language="typescript" operationID="list-products" method="get" path="/catalog/products" -->
26
27
  ```typescript
27
28
  import { CeStorefront } from "ce-storefront";
28
29
 
@@ -97,6 +98,7 @@ Returns a list of SKUs. The SKUs are returned sorted by creation date, with the
97
98
 
98
99
  ### Example Usage
99
100
 
101
+ <!-- UsageSnippet language="typescript" operationID="list-skus" method="get" path="/catalog/skus" -->
100
102
  ```typescript
101
103
  import { CeStorefront } from "ce-storefront";
102
104
 
@@ -171,6 +173,7 @@ Retrieves the details of an existing product. Supply either the unique product I
171
173
 
172
174
  ### Example Usage
173
175
 
176
+ <!-- UsageSnippet language="typescript" operationID="get-product-detail" method="get" path="/catalog/products/{product_id_or_slug}" -->
174
177
  ```typescript
175
178
  import { CeStorefront } from "ce-storefront";
176
179
 
@@ -245,6 +248,7 @@ Retrieves the variants of an existing product. Supply the unique product ID, and
245
248
 
246
249
  ### Example Usage
247
250
 
251
+ <!-- UsageSnippet language="typescript" operationID="list-product-variants" method="get" path="/catalog/products/{product_id}/variants" -->
248
252
  ```typescript
249
253
  import { CeStorefront } from "ce-storefront";
250
254
 
@@ -319,6 +323,7 @@ Retrieves the details of a particular variant. Supply the unique product ID, and
319
323
 
320
324
  ### Example Usage
321
325
 
326
+ <!-- UsageSnippet language="typescript" operationID="get-variant-detail" method="get" path="/catalog/products/{product_id}/variants/{variant_id}" -->
322
327
  ```typescript
323
328
  import { CeStorefront } from "ce-storefront";
324
329
 
@@ -395,6 +400,7 @@ Returns a list of your product categories. The categories are returned sorted by
395
400
 
396
401
  ### Example Usage
397
402
 
403
+ <!-- UsageSnippet language="typescript" operationID="list-categories" method="get" path="/catalog/categories" -->
398
404
  ```typescript
399
405
  import { CeStorefront } from "ce-storefront";
400
406
 
@@ -474,6 +480,7 @@ List of reviews for a specified product. The reviews are returned sorted by subm
474
480
 
475
481
  ### Example Usage
476
482
 
483
+ <!-- UsageSnippet language="typescript" operationID="list-product-reviews" method="get" path="/catalog/products/{product_id}/reviews" -->
477
484
  ```typescript
478
485
  import { CeStorefront } from "ce-storefront";
479
486
 
@@ -550,6 +557,7 @@ Retrieves a list of products similar to a specified product based on their attri
550
557
 
551
558
  ### Example Usage
552
559
 
560
+ <!-- UsageSnippet language="typescript" operationID="list-similar-products" method="get" path="/catalog/products/similar" -->
553
561
  ```typescript
554
562
  import { CeStorefront } from "ce-storefront";
555
563
 
@@ -620,6 +628,7 @@ Retrieves a list of products specified for upsell. The upsell products are retur
620
628
 
621
629
  ### Example Usage
622
630
 
631
+ <!-- UsageSnippet language="typescript" operationID="list-upsell-products" method="get" path="/catalog/products/up-sell" -->
623
632
  ```typescript
624
633
  import { CeStorefront } from "ce-storefront";
625
634
 
@@ -690,6 +699,7 @@ Retrieves a list of products specified for cross selling. The cross-sell product
690
699
 
691
700
  ### Example Usage
692
701
 
702
+ <!-- UsageSnippet language="typescript" operationID="list-crosssell-products" method="get" path="/catalog/products/cross-sell" -->
693
703
  ```typescript
694
704
  import { CeStorefront } from "ce-storefront";
695
705
 
@@ -760,6 +770,7 @@ Search for products matching a specific words or characters given.
760
770
 
761
771
  ### Example Usage
762
772
 
773
+ <!-- UsageSnippet language="typescript" operationID="search-products" method="post" path="/catalog/products/search" -->
763
774
  ```typescript
764
775
  import { CeStorefront } from "ce-storefront";
765
776
 
@@ -13,6 +13,7 @@ Retrieve pincodes
13
13
 
14
14
  ### Example Usage
15
15
 
16
+ <!-- UsageSnippet language="typescript" operationID="list-country-pincodes" method="get" path="/common/countries/{country_iso_code}/pincodes" -->
16
17
  ```typescript
17
18
  import { CeStorefront } from "ce-storefront";
18
19
 
@@ -19,6 +19,7 @@ Retrieve billing and shipping address of particular customer
19
19
 
20
20
  ### Example Usage
21
21
 
22
+ <!-- UsageSnippet language="typescript" operationID="list-addresses" method="get" path="/customers/{user_id}/addresses" -->
22
23
  ```typescript
23
24
  import { CeStorefront } from "ce-storefront";
24
25
 
@@ -94,6 +95,7 @@ Add new address
94
95
 
95
96
  ### Example Usage
96
97
 
98
+ <!-- UsageSnippet language="typescript" operationID="create-address" method="post" path="/customers/{user_id}/addresses" -->
97
99
  ```typescript
98
100
  import { CeStorefront } from "ce-storefront";
99
101
 
@@ -198,6 +200,7 @@ Retrieve address
198
200
 
199
201
  ### Example Usage
200
202
 
203
+ <!-- UsageSnippet language="typescript" operationID="get-address-detail" method="get" path="/customers/{user_id}/addresses/{address_id}" -->
201
204
  ```typescript
202
205
  import { CeStorefront } from "ce-storefront";
203
206
 
@@ -274,6 +277,7 @@ Update address
274
277
 
275
278
  ### Example Usage
276
279
 
280
+ <!-- UsageSnippet language="typescript" operationID="update-address-detail" method="put" path="/customers/{user_id}/addresses/{address_id}" -->
277
281
  ```typescript
278
282
  import { CeStorefront } from "ce-storefront";
279
283
 
@@ -381,6 +385,7 @@ Delete address
381
385
 
382
386
  ### Example Usage
383
387
 
388
+ <!-- UsageSnippet language="typescript" operationID="delete-address" method="delete" path="/customers/{user_id}/addresses/{address_id}" -->
384
389
  ```typescript
385
390
  import { CeStorefront } from "ce-storefront";
386
391
 
@@ -457,6 +462,7 @@ Retrieve loyalty details
457
462
 
458
463
  ### Example Usage
459
464
 
465
+ <!-- UsageSnippet language="typescript" operationID="get-loyalty-details" method="get" path="/customers/{user_id}/loyalty" -->
460
466
  ```typescript
461
467
  import { CeStorefront } from "ce-storefront";
462
468
 
@@ -531,6 +537,7 @@ Retrieve all reviews
531
537
 
532
538
  ### Example Usage
533
539
 
540
+ <!-- UsageSnippet language="typescript" operationID="list-user-reviews" method="get" path="/customers/{user_id}/reviews" -->
534
541
  ```typescript
535
542
  import { CeStorefront } from "ce-storefront";
536
543
 
@@ -19,6 +19,7 @@ Create new order
19
19
 
20
20
  ### Example Usage
21
21
 
22
+ <!-- UsageSnippet language="typescript" operationID="create-order" method="post" path="/orders" -->
22
23
  ```typescript
23
24
  import { CeStorefront } from "ce-storefront";
24
25
 
@@ -110,6 +111,7 @@ list customers all orders
110
111
 
111
112
  ### Example Usage
112
113
 
114
+ <!-- UsageSnippet language="typescript" operationID="list-orders" method="get" path="/orders" -->
113
115
  ```typescript
114
116
  import { CeStorefront } from "ce-storefront";
115
117
 
@@ -184,6 +186,7 @@ view particular order details
184
186
 
185
187
  ### Example Usage
186
188
 
189
+ <!-- UsageSnippet language="typescript" operationID="get-order-detail" method="get" path="/orders/{order_number}" -->
187
190
  ```typescript
188
191
  import { CeStorefront } from "ce-storefront";
189
192
 
@@ -258,6 +261,7 @@ Retrieve payment status of a paricular order.
258
261
 
259
262
  ### Example Usage
260
263
 
264
+ <!-- UsageSnippet language="typescript" operationID="get-payment-status" method="get" path="/orders/{order_number}/payment-status" -->
261
265
  ```typescript
262
266
  import { CeStorefront } from "ce-storefront";
263
267
 
@@ -333,6 +337,7 @@ Retrieve order shipments
333
337
 
334
338
  ### Example Usage
335
339
 
340
+ <!-- UsageSnippet language="typescript" operationID="list-order-shipments" method="get" path="/orders/{order_number}/shipments" -->
336
341
  ```typescript
337
342
  import { CeStorefront } from "ce-storefront";
338
343
 
@@ -407,6 +412,7 @@ Order cancellation
407
412
 
408
413
  ### Example Usage
409
414
 
415
+ <!-- UsageSnippet language="typescript" operationID="cancel-order" method="post" path="/orders/{order_number}/cancel" -->
410
416
  ```typescript
411
417
  import { CeStorefront } from "ce-storefront";
412
418
 
@@ -489,6 +495,7 @@ To generate new payment request if first payment request is failed or expired. R
489
495
 
490
496
  ### Example Usage
491
497
 
498
+ <!-- UsageSnippet language="typescript" operationID="retry-order-payment" method="post" path="/orders/{order_number}/retry-payment" -->
492
499
  ```typescript
493
500
  import { CeStorefront } from "ce-storefront";
494
501
 
@@ -13,6 +13,7 @@ Checks whether a given pincode is serviceable and returns all available shipping
13
13
 
14
14
  ### Example Usage
15
15
 
16
+ <!-- UsageSnippet language="typescript" operationID="get-shipping-methods" method="post" path="/shipping/shipping-methods" -->
16
17
  ```typescript
17
18
  import { CeStorefront } from "ce-storefront";
18
19
 
@@ -5,6 +5,6 @@ export declare function stringToBytes(str: string): Uint8Array;
5
5
  export declare function stringFromBytes(u8arr: Uint8Array): string;
6
6
  export declare function stringToBase64(str: string): string;
7
7
  export declare function stringFromBase64(b64str: string): string;
8
- export declare const zodOutbound: z.ZodUnion<[z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodEffects<z.ZodString, Uint8Array, string>]>;
9
- export declare const zodInbound: z.ZodUnion<[z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>, z.ZodEffects<z.ZodString, Uint8Array, string>]>;
8
+ export declare const zodOutbound: z.ZodUnion<[z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, z.ZodEffects<z.ZodString, Uint8Array<ArrayBufferLike>, string>]>;
9
+ export declare const zodInbound: z.ZodUnion<[z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, z.ZodEffects<z.ZodString, Uint8Array<ArrayBufferLike>, string>]>;
10
10
  //# sourceMappingURL=base64.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../src/lib/base64.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEvD;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAE3D;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAErD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEzD;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,eAAO,MAAM,WAAW,8GAEkB,CAAC;AAE3C,eAAO,MAAM,UAAU,8GAEqB,CAAC"}
1
+ {"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../src/lib/base64.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEvD;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAE3D;AAED,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAErD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAEzD;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,eAAO,MAAM,WAAW,yJAEkB,CAAC;AAE3C,eAAO,MAAM,UAAU,yJAEqB,CAAC"}
@@ -46,8 +46,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
46
46
  export declare const SDK_METADATA: {
47
47
  readonly language: "typescript";
48
48
  readonly openapiDocVersion: "1.0";
49
- readonly sdkVersion: "0.15.3";
50
- readonly genVersion: "2.656.3";
51
- readonly userAgent: "speakeasy-sdk/typescript 0.15.3 2.656.3 1.0 ce-storefront";
49
+ readonly sdkVersion: "0.15.5";
50
+ readonly genVersion: "2.674.3";
51
+ readonly userAgent: "speakeasy-sdk/typescript 0.15.5 2.674.3 1.0 ce-storefront";
52
52
  };
53
53
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -39,8 +39,8 @@ export function serverURLFromOptions(options) {
39
39
  export const SDK_METADATA = {
40
40
  language: "typescript",
41
41
  openapiDocVersion: "1.0",
42
- sdkVersion: "0.15.3",
43
- genVersion: "2.656.3",
44
- userAgent: "speakeasy-sdk/typescript 0.15.3 2.656.3 1.0 ce-storefront",
42
+ sdkVersion: "0.15.5",
43
+ genVersion: "2.674.3",
44
+ userAgent: "speakeasy-sdk/typescript 0.15.5 2.674.3 1.0 ce-storefront",
45
45
  };
46
46
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"encodings.d.ts","sourceRoot":"","sources":["../../src/lib/encodings.ts"],"names":[],"mappings":"AAOA,qBAAa,aAAc,SAAQ,KAAK;gBAC1B,OAAO,EAAE,MAAM;CAI5B;AAED,wBAAgB,YAAY,CAC1B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;CAAE,GACjE,MAAM,GAAG,SAAS,CAoDpB;AAED,wBAAgB,WAAW,CACzB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;CAAE,GACjE,MAAM,GAAG,SAAS,CAqCpB;AAED,KAAK,WAAW,GAAG,CACjB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC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SAAS,CAYpB;AAED,eAAO,MAAM,YAAY,GACvB,KAAK,MAAM,EACX,OAAO,OAAO,EACd,UAAU;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;CAAE,KACjE,MAAM,GAAG,SAoCX,CAAC;AA2EF,wBAAgB,SAAS,CAAC,GAAG,IAAI,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,CAEjE;AAED,KAAK,mBAAmB,GAAG;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CACnC,CAAC;AAEF,KAAK,YAAY,GAAG,CAClB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,OAAO,CAAC,EAAE,mBAAmB,KAC1B,MAAM,GAAG,SAAS,CAAC;AAExB,KAAK,gBAAgB,GAAG,CACtB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,CAAC,EAAE,mBAAmB,KAC1B,MAAM,CAAC;AAEZ,wBAAgB,YAAY,CAAC,CAAC,EAAE,YAAY,GAAG,gBAAgB,CAkB9D;AAED,eAAO,MAAM,eAAe,kBAA2B,CAAC;AACxD,eAAO,MAAM,eAAe,kBAA2B,CAAC;AACxD,eAAO,MAAM,yBAAyB,kBAAqC,CAAC;AAC5E,eAAO,MAAM,wBAAwB,kBAAoC,CAAC;AAC1E,eAAO,MAAM,qBAAqB,kBAAiC,CAAC;AAEpE,wBAAgB,UAAU,CACxB,EAAE,EAAE,QAAQ,EACZ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,OAAO,EACd,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI,CAUN"}
@@ -24,3 +24,8 @@ To run an example file from the examples directory:
24
24
  npm run build && npx tsx example.ts
25
25
  ```
26
26
 
27
+ ## Creating new examples
28
+
29
+ Duplicate an existing example file, they won't be overwritten by the generation process.
30
+
31
+
@@ -2,6 +2,8 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import dotenv from "dotenv";
6
+ dotenv.config();
5
7
  /**
6
8
  * Example usage of the ce-storefront SDK
7
9
  *
@@ -18,17 +18,16 @@
18
18
  },
19
19
  "..": {
20
20
  "name": "ce-storefront",
21
- "version": "0.15.3",
21
+ "version": "0.15.5",
22
+ "dependencies": {
23
+ "zod": "^3.20.0"
24
+ },
22
25
  "devDependencies": {
23
26
  "@eslint/js": "^9.19.0",
24
27
  "eslint": "^9.19.0",
25
28
  "globals": "^15.14.0",
26
- "typescript": "^5.4.5",
27
- "typescript-eslint": "^8.22.0",
28
- "zod": "^3.25.17"
29
- },
30
- "peerDependencies": {
31
- "zod": "^3"
29
+ "typescript": "~5.8.3",
30
+ "typescript-eslint": "^8.26.0"
32
31
  }
33
32
  },
34
33
  "node_modules/@esbuild/aix-ppc64": {
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "ce-storefront",
5
- "version": "0.15.3",
5
+ "version": "0.15.5",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ce-storefront",
3
- "version": "0.15.3",
3
+ "version": "0.15.5",
4
4
  "author": "TarkAI",
5
5
  "type": "module",
6
6
  "main": "./esm/index.js",
@@ -53,17 +53,16 @@
53
53
  "prepublishOnly": "npm run build"
54
54
  },
55
55
  "peerDependencies": {
56
- "zod": "^3"
56
+
57
57
  },
58
58
  "devDependencies": {
59
59
  "@eslint/js": "^9.19.0",
60
60
  "eslint": "^9.19.0",
61
61
  "globals": "^15.14.0",
62
- "typescript": "^5.4.5",
63
- "typescript-eslint": "^8.22.0",
64
- "zod": "^3.25.17"
62
+ "typescript": "~5.8.3",
63
+ "typescript-eslint": "^8.26.0"
65
64
  },
66
65
  "dependencies": {
67
-
66
+ "zod": "^3.20.0"
68
67
  }
69
68
  }
package/src/lib/config.ts CHANGED
@@ -80,7 +80,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
80
80
  export const SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "1.0",
83
- sdkVersion: "0.15.3",
84
- genVersion: "2.656.3",
85
- userAgent: "speakeasy-sdk/typescript 0.15.3 2.656.3 1.0 ce-storefront",
83
+ sdkVersion: "0.15.5",
84
+ genVersion: "2.674.3",
85
+ userAgent: "speakeasy-sdk/typescript 0.15.5 2.674.3 1.0 ce-storefront",
86
86
  } as const;