commerce-kit 0.48.0 → 0.49.0

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 (2) hide show
  1. package/dist/api-types.d.ts +42 -347
  2. package/package.json +1 -1
@@ -254,7 +254,7 @@ type APIProductsBrowseResult = Omit<{
254
254
  id: string;
255
255
  price: string;
256
256
  } & {
257
- prePromotionPrice: undefined;
257
+ prePromotionPrice: string | null;
258
258
  })[];
259
259
  }) | ({
260
260
  id: string;
@@ -510,7 +510,7 @@ type APIProductsBrowseResult = Omit<{
510
510
  id: string;
511
511
  price: string;
512
512
  } & {
513
- prePromotionPrice: undefined;
513
+ prePromotionPrice: string | null;
514
514
  })[];
515
515
  }) | ({
516
516
  id: string;
@@ -766,7 +766,7 @@ type APIProductsBrowseResult = Omit<{
766
766
  id: string;
767
767
  price: string;
768
768
  } & {
769
- prePromotionPrice: undefined;
769
+ prePromotionPrice: string | null;
770
770
  })[];
771
771
  }) | ({
772
772
  id: string;
@@ -1022,8 +1022,9 @@ type APIProductsBrowseResult = Omit<{
1022
1022
  id: string;
1023
1023
  price: string;
1024
1024
  } & {
1025
- prePromotionPrice: undefined;
1026
1025
  price: string;
1026
+ } & {
1027
+ prePromotionPrice: string | null;
1027
1028
  })[];
1028
1029
  }) | ({
1029
1030
  id: string;
@@ -1545,7 +1546,7 @@ type APIProductsBrowseResult = Omit<{
1545
1546
  id: string;
1546
1547
  price: string;
1547
1548
  } & {
1548
- prePromotionPrice: undefined;
1549
+ prePromotionPrice: string | null;
1549
1550
  })[];
1550
1551
  }) | ({
1551
1552
  id: string;
@@ -1801,7 +1802,7 @@ type APIProductsBrowseResult = Omit<{
1801
1802
  id: string;
1802
1803
  price: string;
1803
1804
  } & {
1804
- prePromotionPrice: undefined;
1805
+ prePromotionPrice: string | null;
1805
1806
  })[];
1806
1807
  }) | ({
1807
1808
  id: string;
@@ -2057,7 +2058,7 @@ type APIProductsBrowseResult = Omit<{
2057
2058
  id: string;
2058
2059
  price: string;
2059
2060
  } & {
2060
- prePromotionPrice: undefined;
2061
+ prePromotionPrice: string | null;
2061
2062
  })[];
2062
2063
  }) | ({
2063
2064
  id: string;
@@ -2313,8 +2314,9 @@ type APIProductsBrowseResult = Omit<{
2313
2314
  id: string;
2314
2315
  price: string;
2315
2316
  } & {
2316
- prePromotionPrice: undefined;
2317
2317
  price: string;
2318
+ } & {
2319
+ prePromotionPrice: string | null;
2318
2320
  })[];
2319
2321
  }) | ({
2320
2322
  id: string;
@@ -2625,7 +2627,7 @@ type APIProductFiltersResult = {
2625
2627
  slug: string;
2626
2628
  }[];
2627
2629
  };
2628
- type APIProductGetByIdResult = ({
2630
+ type APIProductGetByIdResult = {
2629
2631
  id: string;
2630
2632
  name: string;
2631
2633
  createdAt: string;
@@ -2816,7 +2818,7 @@ type APIProductGetByIdResult = ({
2816
2818
  tr: {
2817
2819
  locale: string;
2818
2820
  }[];
2819
- variants: {
2821
+ variants: ({
2820
2822
  id: string;
2821
2823
  createdAt: string;
2822
2824
  updatedAt: string;
@@ -2864,286 +2866,14 @@ type APIProductGetByIdResult = ({
2864
2866
  calculatedPrice: string | null;
2865
2867
  variantId: string;
2866
2868
  }[];
2867
- }[];
2868
- subscriptionPlanProducts: {
2869
- createdAt: string;
2870
- updatedAt: string;
2871
- position: number;
2872
- productId: string;
2873
- subscriptionPlanId: string;
2874
- subscriptionPlan: {
2875
- id: string;
2876
- name: string;
2877
- createdAt: string;
2878
- updatedAt: string;
2879
- interval: number;
2880
- active: boolean;
2881
- storeId: string;
2882
- description: string | null;
2883
- position: number;
2884
- cadence: "month" | "week";
2885
- discountPercent: number;
2886
- benefits: string | null;
2887
- };
2888
- }[];
2889
- volumePricingTiers: {
2890
- id: string;
2891
- createdAt: string;
2892
- updatedAt: string;
2893
- storeId: string;
2894
- price: string;
2895
- minQuantity: number;
2896
- maxQuantity: number | null;
2897
- productId: string | null;
2898
- productVariantId: string | null;
2899
- }[];
2900
- } & {
2901
- variants: ({
2869
+ } & {
2902
2870
  id: string;
2903
2871
  price: string;
2904
2872
  } & {
2905
- prePromotionPrice: undefined;
2873
+ prePromotionPrice: string | null;
2874
+ } & {
2875
+ omnibusPrice: string | null;
2906
2876
  })[];
2907
- }) | (({
2908
- id: string;
2909
- name: string;
2910
- createdAt: string;
2911
- updatedAt: string;
2912
- type: "set" | "product" | "bundle";
2913
- slug: string;
2914
- status: "published" | "draft" | "hidden" | null;
2915
- flags: unknown;
2916
- storeId: string;
2917
- summary: string | null;
2918
- content: JSONContent | null;
2919
- images: string[];
2920
- badge: unknown;
2921
- bundleDiscountPercentage: string | null;
2922
- seo: {
2923
- title?: string | null | undefined;
2924
- description?: string | null | undefined;
2925
- canonical?: string | null | undefined;
2926
- } | null;
2927
- stripeTaxCode: string | null;
2928
- categoryId: string | null;
2929
- brandId: string | null;
2930
- category: {
2931
- id: string;
2932
- name: string;
2933
- image: string | null;
2934
- createdAt: string;
2935
- updatedAt: string;
2936
- slug: string;
2937
- active: boolean;
2938
- storeId: string;
2939
- description: JSONContent | null;
2940
- position: string;
2941
- seo: {
2942
- title?: string | null | undefined;
2943
- description?: string | null | undefined;
2944
- canonical?: string | null | undefined;
2945
- } | null;
2946
- longDescription: JSONContent | null;
2947
- parentId: string | null;
2948
- } | null;
2949
- productTaxRate: {
2950
- createdAt: string;
2951
- updatedAt: string;
2952
- taxRateId: string;
2953
- productId: string;
2954
- taxRate: {
2955
- id: string;
2956
- name: string;
2957
- createdAt: string;
2958
- updatedAt: string;
2959
- storeId: string;
2960
- rate: string;
2961
- label: string | null;
2962
- };
2963
- } | null;
2964
- productCollections: {
2965
- position: string | null;
2966
- productId: string;
2967
- collectionId: string;
2968
- collection: {
2969
- id: string;
2970
- name: string;
2971
- image: string | null;
2972
- createdAt: string;
2973
- updatedAt: string;
2974
- slug: string;
2975
- active: boolean;
2976
- filter: {
2977
- type: "manual";
2978
- } | {
2979
- type: "dynamicPrice";
2980
- min?: number | null | undefined;
2981
- max?: number | null | undefined;
2982
- } | {
2983
- type: "variantValues";
2984
- values: Record<string, string[]>;
2985
- } | {
2986
- type: "newest";
2987
- days?: number | null | undefined;
2988
- };
2989
- storeId: string;
2990
- description: JSONContent | null;
2991
- };
2992
- }[];
2993
- bundleProducts: {
2994
- createdAt: string;
2995
- updatedAt: string;
2996
- position: number;
2997
- bundleId: string;
2998
- quantity: number;
2999
- variantId: string;
3000
- variant: {
3001
- id: string;
3002
- createdAt: string;
3003
- updatedAt: string;
3004
- storeId: string;
3005
- description: string | null;
3006
- price: string;
3007
- images: string[];
3008
- sku: string | null;
3009
- barcode: string | null;
3010
- calculatedPrice: string | null;
3011
- stock: number | null;
3012
- depth: number | null;
3013
- width: number | null;
3014
- height: number | null;
3015
- weight: number | null;
3016
- digital: string[] | null;
3017
- shippable: boolean;
3018
- externalId: string | null;
3019
- productId: string;
3020
- attributes: unknown;
3021
- originalPrice: string;
3022
- product: {
3023
- id: string;
3024
- name: string;
3025
- slug: string;
3026
- images: string[];
3027
- productTaxRate: {
3028
- createdAt: string;
3029
- updatedAt: string;
3030
- taxRateId: string;
3031
- productId: string;
3032
- taxRate: {
3033
- id: string;
3034
- name: string;
3035
- createdAt: string;
3036
- updatedAt: string;
3037
- storeId: string;
3038
- rate: string;
3039
- label: string | null;
3040
- };
3041
- } | null;
3042
- variants: {
3043
- id: string;
3044
- createdAt: string;
3045
- updatedAt: string;
3046
- storeId: string;
3047
- description: string | null;
3048
- price: string;
3049
- images: string[];
3050
- sku: string | null;
3051
- barcode: string | null;
3052
- calculatedPrice: string | null;
3053
- stock: number | null;
3054
- depth: number | null;
3055
- width: number | null;
3056
- height: number | null;
3057
- weight: number | null;
3058
- digital: string[] | null;
3059
- shippable: boolean;
3060
- externalId: string | null;
3061
- productId: string;
3062
- attributes: unknown;
3063
- originalPrice: string;
3064
- }[];
3065
- };
3066
- combinations: {
3067
- createdAt: string;
3068
- updatedAt: string;
3069
- productVariantId: string;
3070
- variantValueId: string;
3071
- variantValue: {
3072
- id: string;
3073
- value: string;
3074
- colorValue: string | null;
3075
- variantType: {
3076
- id: string;
3077
- type: "string" | "color";
3078
- label: string;
3079
- };
3080
- };
3081
- }[];
3082
- };
3083
- }[];
3084
- variantsTypes: {
3085
- id: string;
3086
- type: "string" | "color";
3087
- label: string;
3088
- variantValues: {
3089
- id: string;
3090
- value: string;
3091
- position: number | null;
3092
- colorValue: string | null;
3093
- }[];
3094
- }[];
3095
- tr: {
3096
- locale: string;
3097
- }[];
3098
- variants: {
3099
- id: string;
3100
- createdAt: string;
3101
- updatedAt: string;
3102
- storeId: string;
3103
- description: string | null;
3104
- price: string;
3105
- images: string[];
3106
- sku: string | null;
3107
- barcode: string | null;
3108
- calculatedPrice: string | null;
3109
- stock: number | null;
3110
- depth: number | null;
3111
- width: number | null;
3112
- height: number | null;
3113
- weight: number | null;
3114
- digital: string[] | null;
3115
- shippable: boolean;
3116
- externalId: string | null;
3117
- productId: string;
3118
- attributes: unknown;
3119
- originalPrice: string;
3120
- combinations: {
3121
- createdAt: string;
3122
- updatedAt: string;
3123
- productVariantId: string;
3124
- variantValueId: string;
3125
- variantValue: {
3126
- id: string;
3127
- value: string;
3128
- position: number | null;
3129
- colorValue: string | null;
3130
- variantType: {
3131
- id: string;
3132
- type: "string" | "color";
3133
- label: string;
3134
- };
3135
- };
3136
- }[];
3137
- prices: {
3138
- createdAt: string;
3139
- updatedAt: string;
3140
- currency: string;
3141
- storeId: string;
3142
- price: string;
3143
- calculatedPrice: string | null;
3144
- variantId: string;
3145
- }[];
3146
- }[];
3147
2877
  subscriptionPlanProducts: {
3148
2878
  createdAt: string;
3149
2879
  updatedAt: string;
@@ -3177,19 +2907,9 @@ type APIProductGetByIdResult = ({
3177
2907
  productVariantId: string | null;
3178
2908
  }[];
3179
2909
  } & {
3180
- variants: ({
3181
- id: string;
3182
- price: string;
3183
- } & {
3184
- prePromotionPrice: string | null;
3185
- })[];
3186
- }) & {
3187
2910
  lang?: string;
3188
- omnibusPrices: Record<string, string>;
3189
- });
3190
- type APIProductGetByIdParams = {
3191
- idOrSlug: string;
3192
2911
  };
2912
+ type APIProductGetByIdParams = any;
3193
2913
  type APIProductGetByIdQueryParams = {
3194
2914
  lang?: string;
3195
2915
  currency?: string;
@@ -3332,7 +3052,7 @@ type APICartGetResult = {
3332
3052
  barcode: string | null;
3333
3053
  originalPrice: string;
3334
3054
  calculatedPrice: string | null;
3335
- prePromotionPrice: string | null | undefined;
3055
+ prePromotionPrice: string | null;
3336
3056
  preVolumePricingPrice: string | null;
3337
3057
  stock: number | null;
3338
3058
  depth: number | null;
@@ -3767,7 +3487,7 @@ type APICartCreateResult = {
3767
3487
  barcode: string | null;
3768
3488
  originalPrice: string;
3769
3489
  calculatedPrice: string | null;
3770
- prePromotionPrice: string | null | undefined;
3490
+ prePromotionPrice: string | null;
3771
3491
  preVolumePricingPrice: string | null;
3772
3492
  stock: number | null;
3773
3493
  depth: number | null;
@@ -4192,7 +3912,7 @@ type APICartRemoveItemResult = {
4192
3912
  barcode: string | null;
4193
3913
  originalPrice: string;
4194
3914
  calculatedPrice: string | null;
4195
- prePromotionPrice: string | null | undefined;
3915
+ prePromotionPrice: string | null;
4196
3916
  preVolumePricingPrice: string | null;
4197
3917
  stock: number | null;
4198
3918
  depth: number | null;
@@ -4935,6 +4655,9 @@ type APIOrdersBrowseResult = {
4935
4655
  stripeDeduplicationId: string | null;
4936
4656
  ticketCode: string | null;
4937
4657
  activeSubscriptionId: string | null;
4658
+ packedAt: string | null;
4659
+ packedBy: string | null;
4660
+ tags: string[];
4938
4661
  } & {
4939
4662
  orderData: {
4940
4663
  id: string;
@@ -5833,6 +5556,9 @@ type APIOrderGetByIdResult = {
5833
5556
  stripeDeduplicationId: string | null;
5834
5557
  ticketCode: string | null;
5835
5558
  activeSubscriptionId: string | null;
5559
+ packedAt: string | null;
5560
+ packedBy: string | null;
5561
+ tags: string[];
5836
5562
  activeSubscription: {
5837
5563
  id: string;
5838
5564
  createdAt: string;
@@ -6304,9 +6030,7 @@ type APIOrderGetByIdResult = {
6304
6030
  }[] | null;
6305
6031
  };
6306
6032
  };
6307
- type APIOrderGetByIdParams = {
6308
- id: string;
6309
- };
6033
+ type APIOrderGetByIdParams = any;
6310
6034
  type APICategoriesBrowseResult = Omit<{
6311
6035
  data: {
6312
6036
  id: string;
@@ -6586,9 +6310,7 @@ type APICategoryGetByIdResult = ({
6586
6310
  }) & {
6587
6311
  lang?: string;
6588
6312
  };
6589
- type APICategoryGetByIdParams = {
6590
- idOrSlug: string;
6591
- };
6313
+ type APICategoryGetByIdParams = any;
6592
6314
  type APICategoryGetByIdQueryParams = {
6593
6315
  lang?: string;
6594
6316
  };
@@ -6768,9 +6490,7 @@ type APICollectionGetByIdResult = ({
6768
6490
  }) & {
6769
6491
  lang?: string;
6770
6492
  };
6771
- type APICollectionGetByIdParams = {
6772
- idOrSlug: string;
6773
- };
6493
+ type APICollectionGetByIdParams = any;
6774
6494
  type APICollectionGetByIdQueryParams = {
6775
6495
  lang?: string;
6776
6496
  };
@@ -6799,7 +6519,6 @@ type APIMeGetResult = {
6799
6519
  withdrawalButton: boolean;
6800
6520
  events: boolean;
6801
6521
  } | null;
6802
- defaultLanguage: "en-US" | "pl-PL" | "es-ES" | "de-DE" | null;
6803
6522
  enabledLanguages: {
6804
6523
  "en-US": boolean;
6805
6524
  "pl-PL": boolean;
@@ -6941,6 +6660,7 @@ type APIMeGetResult = {
6941
6660
  trackClicks: boolean;
6942
6661
  trackOpens: boolean;
6943
6662
  } | null | undefined;
6663
+ defaultLanguage?: "en-US" | "pl-PL" | "es-ES" | "de-DE" | null | undefined;
6944
6664
  newsletterPopup?: {
6945
6665
  delaySeconds: number;
6946
6666
  heading?: string | undefined;
@@ -7184,9 +6904,7 @@ type APIPostGetByIdResult = {
7184
6904
  filters: unknown;
7185
6905
  publishedAt: string | null;
7186
6906
  } | null | undefined;
7187
- type APIPostGetByIdParams = {
7188
- idOrSlug: string;
7189
- };
6907
+ type APIPostGetByIdParams = any;
7190
6908
  type APIPostCreateBody = {
7191
6909
  title: string;
7192
6910
  slug: string;
@@ -7306,9 +7024,7 @@ type APIBlogCategoryGetByIdResult = {
7306
7024
  canonical?: string | null | undefined;
7307
7025
  } | null;
7308
7026
  };
7309
- type APIBlogCategoryGetByIdParams = {
7310
- idOrSlug: string;
7311
- };
7027
+ type APIBlogCategoryGetByIdParams = any;
7312
7028
  type APIBlogCategoryCreateBody = {
7313
7029
  name: string;
7314
7030
  slug?: string | undefined;
@@ -7426,9 +7142,7 @@ type APICustomerGetByIdResult = {
7426
7142
  }>;
7427
7143
  createdAt: string;
7428
7144
  };
7429
- type APICustomerGetByIdParams = {
7430
- id: string;
7431
- };
7145
+ type APICustomerGetByIdParams = any;
7432
7146
  type APICustomerUpdateBody = {
7433
7147
  name?: string;
7434
7148
  phone?: string;
@@ -7524,9 +7238,7 @@ type APIVariantGetByIdResult = {
7524
7238
  images: string[];
7525
7239
  };
7526
7240
  };
7527
- type APIVariantGetByIdParams = {
7528
- idOrSku: string;
7529
- };
7241
+ type APIVariantGetByIdParams = any;
7530
7242
  type APIVariantGetByIdQueryParams = {
7531
7243
  currency?: string;
7532
7244
  };
@@ -7784,9 +7496,7 @@ type APILegalPageGetByPathResult = {
7784
7496
  createdAt: string;
7785
7497
  updatedAt: string;
7786
7498
  } | null;
7787
- type APILegalPageGetByPathParams = {
7788
- path: string;
7789
- };
7499
+ type APILegalPageGetByPathParams = any;
7790
7500
  type APILegalPageGetByPathQueryParams = {
7791
7501
  lang?: string;
7792
7502
  };
@@ -8028,9 +7738,7 @@ type APIInstaviewImagesBrowseResult = {
8028
7738
  }>;
8029
7739
  nextCursor: string | null;
8030
7740
  };
8031
- type APIInstaviewImagesBrowseParams = {
8032
- handle: string;
8033
- };
7741
+ type APIInstaviewImagesBrowseParams = any;
8034
7742
  type APIInstaviewImagesBrowseQueryParams = {
8035
7743
  limit?: number;
8036
7744
  cursor?: string;
@@ -8068,9 +7776,7 @@ type APIEventsBrowseResult = {
8068
7776
  }[];
8069
7777
  total: number;
8070
7778
  };
8071
- type APIEventGetByIdParams = {
8072
- idOrSlug: string;
8073
- };
7779
+ type APIEventGetByIdParams = any;
8074
7780
  type APIEventGetByIdResult = {
8075
7781
  event: {
8076
7782
  id: string;
@@ -8158,9 +7864,7 @@ type APIEventAttendeesBrowseResult = {
8158
7864
  }[];
8159
7865
  totalTickets: number;
8160
7866
  };
8161
- type APITicketsGetParams = {
8162
- code: string;
8163
- };
7867
+ type APITicketsGetParams = any;
8164
7868
  type APITicketsGetQueryParams = {
8165
7869
  email: string;
8166
7870
  };
@@ -8236,9 +7940,7 @@ type APITicketsUpdateResult = {
8236
7940
  }[];
8237
7941
  }[];
8238
7942
  };
8239
- type APITicketAttendeeGetParams = {
8240
- token: string;
8241
- };
7943
+ type APITicketAttendeeGetParams = any;
8242
7944
  type APITicketAttendeeGetResult = {
8243
7945
  token: string;
8244
7946
  attendee: {
@@ -8329,9 +8031,7 @@ type APIBrandsBrowseQueryParams = {
8329
8031
  active?: boolean | undefined;
8330
8032
  lang?: string | undefined;
8331
8033
  };
8332
- type APIBrandGetByIdParams = {
8333
- idOrSlug: string;
8334
- };
8034
+ type APIBrandGetByIdParams = any;
8335
8035
  type APIBrandGetByIdResult = {
8336
8036
  id: string;
8337
8037
  name: string;
@@ -8489,9 +8189,7 @@ type APIBrandAssignProductsResult = {
8489
8189
  assigned: number;
8490
8190
  notFound: string[];
8491
8191
  };
8492
- type APIOrderRefundsParams = {
8493
- id: string;
8494
- };
8192
+ type APIOrderRefundsParams = any;
8495
8193
  type APIOrderRefundsBrowseResult = {
8496
8194
  data: {
8497
8195
  createdAt: string;
@@ -8527,10 +8225,7 @@ type APIOrderRefundsBrowseQueryParams = {
8527
8225
  offset?: number | undefined;
8528
8226
  limit?: number | undefined;
8529
8227
  };
8530
- type APIOrderRefundGetParams = {
8531
- id: string;
8532
- refundId: string;
8533
- };
8228
+ type APIOrderRefundGetParams = any;
8534
8229
  type APIOrderRefundGetResult = {
8535
8230
  id: string;
8536
8231
  createdAt: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "commerce-kit",
4
- "version": "0.48.0",
4
+ "version": "0.49.0",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
7
7
  "keywords": [