@sonic-commerce/storefront-types 0.19.2 → 0.19.3

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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by scripts/build.mjs from app/openapi/public-api.json — do not edit.
2
- // Spec version 0.19.2, 53 named schemas.
2
+ // Spec version 0.19.3, 53 named schemas.
3
3
 
4
4
  export type { paths, components, operations } from "./schema";
5
5
  import type { components } from "./schema";
package/dist/schema.d.ts CHANGED
@@ -3528,6 +3528,21 @@ export interface components {
3528
3528
  created_at?: string;
3529
3529
  updated_at?: string;
3530
3530
  };
3531
+ Product: {
3532
+ id: string;
3533
+ title?: string | null;
3534
+ subtitle?: string | null;
3535
+ handle?: string | null;
3536
+ description?: string | null;
3537
+ excerpt?: string | null;
3538
+ thumbnail?: string | null;
3539
+ created_at?: string;
3540
+ updated_at?: string;
3541
+ variants?: components["schemas"]["ProductVariant"][];
3542
+ options?: components["schemas"]["ProductOption"][];
3543
+ categories?: components["schemas"]["ProductCategory"][];
3544
+ collection?: components["schemas"]["ProductCollection"] | null;
3545
+ };
3531
3546
  ProductVariant: {
3532
3547
  id: string;
3533
3548
  title: string;
@@ -3567,26 +3582,6 @@ export interface components {
3567
3582
  title: string;
3568
3583
  handle: string | null;
3569
3584
  };
3570
- Product: {
3571
- id: string;
3572
- title?: string | null;
3573
- subtitle?: string | null;
3574
- handle?: string | null;
3575
- description?: string | null;
3576
- excerpt?: string | null;
3577
- thumbnail?: string | null;
3578
- created_at?: string;
3579
- updated_at?: string;
3580
- variants?: components["schemas"]["ProductVariant"][];
3581
- options?: components["schemas"]["ProductOption"][];
3582
- categories?: components["schemas"]["ProductCategory"][];
3583
- collection?: components["schemas"]["ProductCollection"] | null;
3584
- };
3585
- CategorySummary: {
3586
- id: string;
3587
- name: string;
3588
- handle: string;
3589
- };
3590
3585
  Category: {
3591
3586
  id: string;
3592
3587
  name?: string;
@@ -3598,6 +3593,11 @@ export interface components {
3598
3593
  parent?: components["schemas"]["CategorySummary"] | null;
3599
3594
  children?: components["schemas"]["CategorySummary"][];
3600
3595
  };
3596
+ CategorySummary: {
3597
+ id: string;
3598
+ name: string;
3599
+ handle: string;
3600
+ };
3601
3601
  CategoryTreeNode: {
3602
3602
  id: string;
3603
3603
  name: string;
@@ -3617,6 +3617,16 @@ export interface components {
3617
3617
  products?: components["schemas"]["ProductListItem"][];
3618
3618
  products_has_more?: boolean;
3619
3619
  };
3620
+ Store: {
3621
+ id: string;
3622
+ name: string;
3623
+ default_currency: components["schemas"]["Currency"] | null;
3624
+ currencies: components["schemas"]["Currency"][];
3625
+ default_region: components["schemas"]["RegionSummary"] | null;
3626
+ metadata: {
3627
+ [key: string]: unknown;
3628
+ };
3629
+ };
3620
3630
  Currency: {
3621
3631
  code: string;
3622
3632
  symbol: string;
@@ -3629,15 +3639,12 @@ export interface components {
3629
3639
  title: string;
3630
3640
  currency_code: string | null;
3631
3641
  };
3632
- Store: {
3642
+ Region: {
3633
3643
  id: string;
3634
- name: string;
3635
- default_currency: components["schemas"]["Currency"] | null;
3636
- currencies: components["schemas"]["Currency"][];
3637
- default_region: components["schemas"]["RegionSummary"] | null;
3638
- metadata: {
3639
- [key: string]: unknown;
3640
- };
3644
+ title: string;
3645
+ currency_code: string | null;
3646
+ countries: components["schemas"]["Country"][];
3647
+ tax_rates?: components["schemas"]["TaxRate"][];
3641
3648
  };
3642
3649
  Country: {
3643
3650
  iso_2: string;
@@ -3651,13 +3658,6 @@ export interface components {
3651
3658
  code: string | null;
3652
3659
  rate: number;
3653
3660
  };
3654
- Region: {
3655
- id: string;
3656
- title: string;
3657
- currency_code: string | null;
3658
- countries: components["schemas"]["Country"][];
3659
- tax_rates?: components["schemas"]["TaxRate"][];
3660
- };
3661
3661
  TaxSummary: {
3662
3662
  region_id: string | null;
3663
3663
  label: string | null;
@@ -3685,6 +3685,24 @@ export interface components {
3685
3685
  [key: string]: unknown;
3686
3686
  };
3687
3687
  };
3688
+ Cart: {
3689
+ id: string;
3690
+ completed_at: string | null;
3691
+ created_at: string | null;
3692
+ region_id: string | null;
3693
+ customer: {
3694
+ id: string;
3695
+ email: string;
3696
+ first_name: string | null;
3697
+ last_name: string | null;
3698
+ } | null;
3699
+ shipping_address: components["schemas"]["CartAddress"] | null;
3700
+ billing_address: components["schemas"]["CartAddress"] | null;
3701
+ items: components["schemas"]["LineItem"][];
3702
+ discounts: components["schemas"]["CartDiscount"][];
3703
+ gift_cards: components["schemas"]["CartGiftCard"][];
3704
+ totals: components["schemas"]["CartTotals"];
3705
+ };
3688
3706
  CartAddress: {
3689
3707
  id: string;
3690
3708
  first_name: string | null;
@@ -3739,23 +3757,10 @@ export interface components {
3739
3757
  gift_card_total: number;
3740
3758
  amount_due: number;
3741
3759
  };
3742
- Cart: {
3743
- id: string;
3744
- completed_at: string | null;
3745
- created_at: string | null;
3746
- region_id: string | null;
3747
- customer: {
3748
- id: string;
3749
- email: string;
3750
- first_name: string | null;
3751
- last_name: string | null;
3752
- } | null;
3753
- shipping_address: components["schemas"]["CartAddress"] | null;
3754
- billing_address: components["schemas"]["CartAddress"] | null;
3755
- items: components["schemas"]["LineItem"][];
3756
- discounts: components["schemas"]["CartDiscount"][];
3757
- gift_cards: components["schemas"]["CartGiftCard"][];
3758
- totals: components["schemas"]["CartTotals"];
3760
+ AuthSession: {
3761
+ customer: components["schemas"]["Customer"];
3762
+ token: string;
3763
+ expires_at: string;
3759
3764
  };
3760
3765
  Customer: {
3761
3766
  id: string;
@@ -3764,10 +3769,19 @@ export interface components {
3764
3769
  last_name: string | null;
3765
3770
  phone: string | null;
3766
3771
  };
3767
- AuthSession: {
3768
- customer: components["schemas"]["Customer"];
3769
- token: string;
3770
- expires_at: string;
3772
+ Order: {
3773
+ id: string;
3774
+ display_id: number | null;
3775
+ status: string;
3776
+ fulfillment_status: string | null;
3777
+ payment_status: string | null;
3778
+ created_at: string | null;
3779
+ total?: number;
3780
+ currency_code?: string | null;
3781
+ totals: components["schemas"]["OrderTotals"];
3782
+ items?: components["schemas"]["OrderItem"][];
3783
+ shipping_address?: components["schemas"]["CustomerAddress"] | null;
3784
+ returns?: components["schemas"]["Return"][];
3771
3785
  };
3772
3786
  OrderTotals: {
3773
3787
  currency_code: string | null;
@@ -3833,20 +3847,6 @@ export interface components {
3833
3847
  quantity: number;
3834
3848
  received_quantity: number;
3835
3849
  };
3836
- Order: {
3837
- id: string;
3838
- display_id: number | null;
3839
- status: string;
3840
- fulfillment_status: string | null;
3841
- payment_status: string | null;
3842
- created_at: string | null;
3843
- total?: number;
3844
- currency_code?: string | null;
3845
- totals: components["schemas"]["OrderTotals"];
3846
- items?: components["schemas"]["OrderItem"][];
3847
- shipping_address?: components["schemas"]["CustomerAddress"] | null;
3848
- returns?: components["schemas"]["Return"][];
3849
- };
3850
3850
  OrderListItem: {
3851
3851
  id: string;
3852
3852
  display_id: number | null;
@@ -3948,20 +3948,20 @@ export interface components {
3948
3948
  quantity: number;
3949
3949
  }[];
3950
3950
  };
3951
- ReturnQuoteLine: {
3952
- item_id: string;
3953
- quantity: number;
3951
+ ReturnQuote: {
3954
3952
  subtotal: number;
3955
3953
  discount: number;
3956
3954
  tax: number;
3957
3955
  total: number;
3956
+ lines: components["schemas"]["ReturnQuoteLine"][];
3958
3957
  };
3959
- ReturnQuote: {
3958
+ ReturnQuoteLine: {
3959
+ item_id: string;
3960
+ quantity: number;
3960
3961
  subtotal: number;
3961
3962
  discount: number;
3962
3963
  tax: number;
3963
3964
  total: number;
3964
- lines: components["schemas"]["ReturnQuoteLine"][];
3965
3965
  };
3966
3966
  };
3967
3967
  responses: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-commerce/storefront-types",
3
- "version": "0.19.2",
3
+ "version": "0.19.3",
4
4
  "description": "TypeScript types for the Sonic Commerce storefront API (/api/v1).",
5
5
  "keywords": ["sonic-commerce", "openapi", "types", "storefront"],
6
6
  "license": "UNLICENSED",