@poweredbysous/storefront-sdk 3.7.0 → 3.7.2

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.cts CHANGED
@@ -3412,6 +3412,10 @@ interface components {
3412
3412
  * @description Storefront CustomerProfile.id of the logged-in customer, so the order can attribute Zeemijlen. Omitted for guest checkouts.
3413
3413
  */
3414
3414
  customer_profile_id?: string | null;
3415
+ /** @description PostHog distinct_id. Dropped unless `attribution.consent` is `granted`. Stored on the checkout for the server PostHog capture; never forwarded to the order. */
3416
+ posthog_distinct_id?: string;
3417
+ /** @description PostHog $session_id. Dropped unless `attribution.consent` is `granted`. Stored on the checkout for the server PostHog capture; never forwarded to the order. */
3418
+ posthog_session_id?: string;
3415
3419
  };
3416
3420
  CreateEdit: {
3417
3421
  /** @default */
@@ -3795,6 +3799,12 @@ interface components {
3795
3799
  token: string;
3796
3800
  user: components["schemas"]["UserMe"];
3797
3801
  };
3802
+ /**
3803
+ * @description * `menubox` - menubox
3804
+ * * `shop` - shop
3805
+ * @enum {string}
3806
+ */
3807
+ OfferingEnum: "menubox" | "shop";
3798
3808
  /** @description Render-ready open/closed badge — see ``availability.get_open_status``. */
3799
3809
  OpenStatus: {
3800
3810
  open: boolean;
@@ -4531,6 +4541,9 @@ interface components {
4531
4541
  readonly trend_score: string | null;
4532
4542
  readonly promotion: components["schemas"]["ProductPromotion"] | null;
4533
4543
  readonly auto_discount: components["schemas"]["ProductAutoDiscount"] | null;
4544
+ /** Format: decimal */
4545
+ readonly customer_service_fee: string | null;
4546
+ readonly peak_delivery_dates: string[];
4534
4547
  /** Format: date-time */
4535
4548
  readonly created_at: string;
4536
4549
  /** Format: date-time */
@@ -4564,6 +4577,7 @@ interface components {
4564
4577
  /** Format: int64 */
4565
4578
  store_id: number;
4566
4579
  readonly product_type: components["schemas"]["ProductType"];
4580
+ readonly offering: (components["schemas"]["OfferingEnum"] | components["schemas"]["NullEnum"]) | null;
4567
4581
  /** Format: decimal */
4568
4582
  price: string;
4569
4583
  /** Format: decimal */
@@ -4763,6 +4777,43 @@ interface components {
4763
4777
  * @enum {string}
4764
4778
  */
4765
4779
  PromotionTypeEnum: "buy_x_get_y" | "bogo";
4780
+ /** @description The onboarding block the storefront reads: no portal-only ``setup``. */
4781
+ PublicStoreOnboarding: {
4782
+ slug: string;
4783
+ name?: string;
4784
+ tagline?: string;
4785
+ description?: string;
4786
+ logo_text?: string;
4787
+ theme?: unknown;
4788
+ layout?: string;
4789
+ languages?: unknown;
4790
+ default_language?: string;
4791
+ currency?: string;
4792
+ country?: string;
4793
+ timezone?: string;
4794
+ contact?: unknown;
4795
+ hours?: unknown;
4796
+ social?: unknown;
4797
+ seo?: unknown;
4798
+ fulfilment?: unknown;
4799
+ cuisine?: string;
4800
+ price_range?: string;
4801
+ product_placeholder?: string;
4802
+ analytics?: unknown;
4803
+ labels?: unknown;
4804
+ frame_ancestors?: unknown;
4805
+ multi_store?: boolean;
4806
+ brand_slug?: string;
4807
+ default_store?: string;
4808
+ readonly status: components["schemas"]["StoreOnboardingStatusEnum"];
4809
+ /** Format: date-time */
4810
+ readonly published_at: string | null;
4811
+ /** Format: date-time */
4812
+ readonly updated_at: string;
4813
+ readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
4814
+ readonly uber_direct_supported_countries: string[];
4815
+ readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
4816
+ };
4766
4817
  RecurringGroupOrder: {
4767
4818
  id: string;
4768
4819
  /** Format: int64 */
@@ -5098,7 +5149,7 @@ interface components {
5098
5149
  [key: string]: unknown;
5099
5150
  } | null;
5100
5151
  readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
5101
- readonly onboarding: components["schemas"]["StoreOnboarding"] | null;
5152
+ readonly onboarding: components["schemas"]["PublicStoreOnboarding"] | null;
5102
5153
  /**
5103
5154
  * @description False while the merchant has temporarily paused new orders.
5104
5155
  *
@@ -5131,49 +5182,6 @@ interface components {
5131
5182
  /** Format: double */
5132
5183
  longitude?: number | null;
5133
5184
  };
5134
- /**
5135
- * @description Read/write serializer for the store-onboarding wizard.
5136
- *
5137
- * Supports partial updates (PATCH autosave). ``status`` and ``published_at``
5138
- * are read-only — they are driven by the dedicated publish endpoint, not by
5139
- * arbitrary field edits.
5140
- */
5141
- StoreOnboarding: {
5142
- slug: string;
5143
- name?: string;
5144
- tagline?: string;
5145
- description?: string;
5146
- logo_text?: string;
5147
- theme?: unknown;
5148
- layout?: string;
5149
- languages?: unknown;
5150
- default_language?: string;
5151
- currency?: string;
5152
- country?: string;
5153
- timezone?: string;
5154
- contact?: unknown;
5155
- hours?: unknown;
5156
- social?: unknown;
5157
- seo?: unknown;
5158
- fulfilment?: unknown;
5159
- cuisine?: string;
5160
- price_range?: string;
5161
- product_placeholder?: string;
5162
- analytics?: unknown;
5163
- labels?: unknown;
5164
- frame_ancestors?: unknown;
5165
- multi_store?: boolean;
5166
- brand_slug?: string;
5167
- default_store?: string;
5168
- readonly status: components["schemas"]["StoreOnboardingStatusEnum"];
5169
- /** Format: date-time */
5170
- readonly published_at: string | null;
5171
- /** Format: date-time */
5172
- readonly updated_at: string;
5173
- readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
5174
- readonly uber_direct_supported_countries: string[];
5175
- readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
5176
- };
5177
5185
  /**
5178
5186
  * @description * `draft` - Draft
5179
5187
  * * `published` - Published
package/dist/index.d.ts CHANGED
@@ -3412,6 +3412,10 @@ interface components {
3412
3412
  * @description Storefront CustomerProfile.id of the logged-in customer, so the order can attribute Zeemijlen. Omitted for guest checkouts.
3413
3413
  */
3414
3414
  customer_profile_id?: string | null;
3415
+ /** @description PostHog distinct_id. Dropped unless `attribution.consent` is `granted`. Stored on the checkout for the server PostHog capture; never forwarded to the order. */
3416
+ posthog_distinct_id?: string;
3417
+ /** @description PostHog $session_id. Dropped unless `attribution.consent` is `granted`. Stored on the checkout for the server PostHog capture; never forwarded to the order. */
3418
+ posthog_session_id?: string;
3415
3419
  };
3416
3420
  CreateEdit: {
3417
3421
  /** @default */
@@ -3795,6 +3799,12 @@ interface components {
3795
3799
  token: string;
3796
3800
  user: components["schemas"]["UserMe"];
3797
3801
  };
3802
+ /**
3803
+ * @description * `menubox` - menubox
3804
+ * * `shop` - shop
3805
+ * @enum {string}
3806
+ */
3807
+ OfferingEnum: "menubox" | "shop";
3798
3808
  /** @description Render-ready open/closed badge — see ``availability.get_open_status``. */
3799
3809
  OpenStatus: {
3800
3810
  open: boolean;
@@ -4531,6 +4541,9 @@ interface components {
4531
4541
  readonly trend_score: string | null;
4532
4542
  readonly promotion: components["schemas"]["ProductPromotion"] | null;
4533
4543
  readonly auto_discount: components["schemas"]["ProductAutoDiscount"] | null;
4544
+ /** Format: decimal */
4545
+ readonly customer_service_fee: string | null;
4546
+ readonly peak_delivery_dates: string[];
4534
4547
  /** Format: date-time */
4535
4548
  readonly created_at: string;
4536
4549
  /** Format: date-time */
@@ -4564,6 +4577,7 @@ interface components {
4564
4577
  /** Format: int64 */
4565
4578
  store_id: number;
4566
4579
  readonly product_type: components["schemas"]["ProductType"];
4580
+ readonly offering: (components["schemas"]["OfferingEnum"] | components["schemas"]["NullEnum"]) | null;
4567
4581
  /** Format: decimal */
4568
4582
  price: string;
4569
4583
  /** Format: decimal */
@@ -4763,6 +4777,43 @@ interface components {
4763
4777
  * @enum {string}
4764
4778
  */
4765
4779
  PromotionTypeEnum: "buy_x_get_y" | "bogo";
4780
+ /** @description The onboarding block the storefront reads: no portal-only ``setup``. */
4781
+ PublicStoreOnboarding: {
4782
+ slug: string;
4783
+ name?: string;
4784
+ tagline?: string;
4785
+ description?: string;
4786
+ logo_text?: string;
4787
+ theme?: unknown;
4788
+ layout?: string;
4789
+ languages?: unknown;
4790
+ default_language?: string;
4791
+ currency?: string;
4792
+ country?: string;
4793
+ timezone?: string;
4794
+ contact?: unknown;
4795
+ hours?: unknown;
4796
+ social?: unknown;
4797
+ seo?: unknown;
4798
+ fulfilment?: unknown;
4799
+ cuisine?: string;
4800
+ price_range?: string;
4801
+ product_placeholder?: string;
4802
+ analytics?: unknown;
4803
+ labels?: unknown;
4804
+ frame_ancestors?: unknown;
4805
+ multi_store?: boolean;
4806
+ brand_slug?: string;
4807
+ default_store?: string;
4808
+ readonly status: components["schemas"]["StoreOnboardingStatusEnum"];
4809
+ /** Format: date-time */
4810
+ readonly published_at: string | null;
4811
+ /** Format: date-time */
4812
+ readonly updated_at: string;
4813
+ readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
4814
+ readonly uber_direct_supported_countries: string[];
4815
+ readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
4816
+ };
4766
4817
  RecurringGroupOrder: {
4767
4818
  id: string;
4768
4819
  /** Format: int64 */
@@ -5098,7 +5149,7 @@ interface components {
5098
5149
  [key: string]: unknown;
5099
5150
  } | null;
5100
5151
  readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
5101
- readonly onboarding: components["schemas"]["StoreOnboarding"] | null;
5152
+ readonly onboarding: components["schemas"]["PublicStoreOnboarding"] | null;
5102
5153
  /**
5103
5154
  * @description False while the merchant has temporarily paused new orders.
5104
5155
  *
@@ -5131,49 +5182,6 @@ interface components {
5131
5182
  /** Format: double */
5132
5183
  longitude?: number | null;
5133
5184
  };
5134
- /**
5135
- * @description Read/write serializer for the store-onboarding wizard.
5136
- *
5137
- * Supports partial updates (PATCH autosave). ``status`` and ``published_at``
5138
- * are read-only — they are driven by the dedicated publish endpoint, not by
5139
- * arbitrary field edits.
5140
- */
5141
- StoreOnboarding: {
5142
- slug: string;
5143
- name?: string;
5144
- tagline?: string;
5145
- description?: string;
5146
- logo_text?: string;
5147
- theme?: unknown;
5148
- layout?: string;
5149
- languages?: unknown;
5150
- default_language?: string;
5151
- currency?: string;
5152
- country?: string;
5153
- timezone?: string;
5154
- contact?: unknown;
5155
- hours?: unknown;
5156
- social?: unknown;
5157
- seo?: unknown;
5158
- fulfilment?: unknown;
5159
- cuisine?: string;
5160
- price_range?: string;
5161
- product_placeholder?: string;
5162
- analytics?: unknown;
5163
- labels?: unknown;
5164
- frame_ancestors?: unknown;
5165
- multi_store?: boolean;
5166
- brand_slug?: string;
5167
- default_store?: string;
5168
- readonly status: components["schemas"]["StoreOnboardingStatusEnum"];
5169
- /** Format: date-time */
5170
- readonly published_at: string | null;
5171
- /** Format: date-time */
5172
- readonly updated_at: string;
5173
- readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
5174
- readonly uber_direct_supported_countries: string[];
5175
- readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
5176
- };
5177
5185
  /**
5178
5186
  * @description * `draft` - Draft
5179
5187
  * * `published` - Published
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-sdk",
3
- "version": "3.7.0",
3
+ "version": "3.7.2",
4
4
  "description": "Type-safe TypeScript SDK for SOUS Storefront Backend",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,