@haus-storefront-react/shared-types 0.0.14 → 0.0.15

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.14 (2025-07-11)
2
+
3
+ This was a version bump only for shared/types to align it with other projects, there were no code changes.
4
+
1
5
  ## 0.0.13 (2025-07-09)
2
6
 
3
7
  This was a version bump only for shared/types to align it with other projects, there were no code changes.
package/index.d.ts CHANGED
@@ -284,11 +284,11 @@ export interface GroupedFacetValues {
284
284
  [key: string]: FacetValue[];
285
285
  }
286
286
  export type SearchInputProps = Pick<SearchInput, 'term' | 'collectionId' | 'facetValueIds' | 'facetValueOperator' | 'facetValueFilters' | 'groupByProduct' | 'sort' | 'take' | 'skip' | 'priceRange' | 'priceRangeWithTax'>;
287
- export interface Node {
287
+ export interface Node<CustomFields = Record<string, unknown>> {
288
288
  id: string;
289
289
  createdAt: string;
290
290
  updatedAt: string;
291
- customFields?: Record<string, unknown>;
291
+ customFields?: CustomFields;
292
292
  }
293
293
  export interface Channel extends Node {
294
294
  availableCurrencyCodes: Array<CurrencyCode>;
@@ -493,6 +493,13 @@ export interface OrderPriceData {
493
493
  currencyCode: CurrencyCode;
494
494
  taxSummary: Array<OrderTaxSummary>;
495
495
  }
496
+ export interface Promotion {
497
+ couponCode: string;
498
+ description: string;
499
+ enabled: boolean;
500
+ name: string;
501
+ perCustomerUsageLimit: number;
502
+ }
496
503
  export interface Order extends Node, OrderPriceData {
497
504
  code: string;
498
505
  active: boolean;
@@ -505,6 +512,8 @@ export interface Order extends Node, OrderPriceData {
505
512
  payments?: Maybe<Array<Payment>>;
506
513
  history: HistoryEntryList;
507
514
  discounts: Discount[];
515
+ promotions: Promotion[];
516
+ couponCodes: string[];
508
517
  shippingLines: ShippingLine[];
509
518
  orderPlacedAt: string;
510
519
  }
@@ -515,6 +524,10 @@ export interface UpdateOrderInput {
515
524
  paymentMethodCode?: Maybe<string>;
516
525
  customer?: Maybe<CreateCustomerInput>;
517
526
  customFields?: Record<string, unknown>;
527
+ couponCode?: {
528
+ code: Maybe<string>;
529
+ remove?: boolean;
530
+ };
518
531
  }
519
532
  export interface ShippingMethod {
520
533
  id: string;
@@ -1342,11 +1355,11 @@ export declare enum ErrorCode {
1342
1355
  VerificationTokenExpiredError = "VERIFICATION_TOKEN_EXPIRED_ERROR",
1343
1356
  VerificationTokenInvalidError = "VERIFICATION_TOKEN_INVALID_ERROR"
1344
1357
  }
1345
- export interface AsChildProps<T = ReactNode> {
1358
+ export interface AsChildProps<Children = ReactNode> {
1346
1359
  asChild?: boolean;
1347
1360
  className?: string;
1348
1361
  style?: CSSProperties;
1349
- children?: T;
1362
+ children?: Children;
1350
1363
  }
1351
1364
  export interface PersistOptions {
1352
1365
  enabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haus-storefront-react/shared-types",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {