@poweredbysous/storefront-sdk 3.7.1 → 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;
@@ -4567,6 +4577,7 @@ interface components {
4567
4577
  /** Format: int64 */
4568
4578
  store_id: number;
4569
4579
  readonly product_type: components["schemas"]["ProductType"];
4580
+ readonly offering: (components["schemas"]["OfferingEnum"] | components["schemas"]["NullEnum"]) | null;
4570
4581
  /** Format: decimal */
4571
4582
  price: string;
4572
4583
  /** Format: decimal */
@@ -4766,6 +4777,43 @@ interface components {
4766
4777
  * @enum {string}
4767
4778
  */
4768
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
+ };
4769
4817
  RecurringGroupOrder: {
4770
4818
  id: string;
4771
4819
  /** Format: int64 */
@@ -5101,7 +5149,7 @@ interface components {
5101
5149
  [key: string]: unknown;
5102
5150
  } | null;
5103
5151
  readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
5104
- readonly onboarding: components["schemas"]["StoreOnboarding"] | null;
5152
+ readonly onboarding: components["schemas"]["PublicStoreOnboarding"] | null;
5105
5153
  /**
5106
5154
  * @description False while the merchant has temporarily paused new orders.
5107
5155
  *
@@ -5134,49 +5182,6 @@ interface components {
5134
5182
  /** Format: double */
5135
5183
  longitude?: number | null;
5136
5184
  };
5137
- /**
5138
- * @description Read/write serializer for the store-onboarding wizard.
5139
- *
5140
- * Supports partial updates (PATCH autosave). ``status`` and ``published_at``
5141
- * are read-only — they are driven by the dedicated publish endpoint, not by
5142
- * arbitrary field edits.
5143
- */
5144
- StoreOnboarding: {
5145
- slug: string;
5146
- name?: string;
5147
- tagline?: string;
5148
- description?: string;
5149
- logo_text?: string;
5150
- theme?: unknown;
5151
- layout?: string;
5152
- languages?: unknown;
5153
- default_language?: string;
5154
- currency?: string;
5155
- country?: string;
5156
- timezone?: string;
5157
- contact?: unknown;
5158
- hours?: unknown;
5159
- social?: unknown;
5160
- seo?: unknown;
5161
- fulfilment?: unknown;
5162
- cuisine?: string;
5163
- price_range?: string;
5164
- product_placeholder?: string;
5165
- analytics?: unknown;
5166
- labels?: unknown;
5167
- frame_ancestors?: unknown;
5168
- multi_store?: boolean;
5169
- brand_slug?: string;
5170
- default_store?: string;
5171
- readonly status: components["schemas"]["StoreOnboardingStatusEnum"];
5172
- /** Format: date-time */
5173
- readonly published_at: string | null;
5174
- /** Format: date-time */
5175
- readonly updated_at: string;
5176
- readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
5177
- readonly uber_direct_supported_countries: string[];
5178
- readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
5179
- };
5180
5185
  /**
5181
5186
  * @description * `draft` - Draft
5182
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;
@@ -4567,6 +4577,7 @@ interface components {
4567
4577
  /** Format: int64 */
4568
4578
  store_id: number;
4569
4579
  readonly product_type: components["schemas"]["ProductType"];
4580
+ readonly offering: (components["schemas"]["OfferingEnum"] | components["schemas"]["NullEnum"]) | null;
4570
4581
  /** Format: decimal */
4571
4582
  price: string;
4572
4583
  /** Format: decimal */
@@ -4766,6 +4777,43 @@ interface components {
4766
4777
  * @enum {string}
4767
4778
  */
4768
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
+ };
4769
4817
  RecurringGroupOrder: {
4770
4818
  id: string;
4771
4819
  /** Format: int64 */
@@ -5101,7 +5149,7 @@ interface components {
5101
5149
  [key: string]: unknown;
5102
5150
  } | null;
5103
5151
  readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
5104
- readonly onboarding: components["schemas"]["StoreOnboarding"] | null;
5152
+ readonly onboarding: components["schemas"]["PublicStoreOnboarding"] | null;
5105
5153
  /**
5106
5154
  * @description False while the merchant has temporarily paused new orders.
5107
5155
  *
@@ -5134,49 +5182,6 @@ interface components {
5134
5182
  /** Format: double */
5135
5183
  longitude?: number | null;
5136
5184
  };
5137
- /**
5138
- * @description Read/write serializer for the store-onboarding wizard.
5139
- *
5140
- * Supports partial updates (PATCH autosave). ``status`` and ``published_at``
5141
- * are read-only — they are driven by the dedicated publish endpoint, not by
5142
- * arbitrary field edits.
5143
- */
5144
- StoreOnboarding: {
5145
- slug: string;
5146
- name?: string;
5147
- tagline?: string;
5148
- description?: string;
5149
- logo_text?: string;
5150
- theme?: unknown;
5151
- layout?: string;
5152
- languages?: unknown;
5153
- default_language?: string;
5154
- currency?: string;
5155
- country?: string;
5156
- timezone?: string;
5157
- contact?: unknown;
5158
- hours?: unknown;
5159
- social?: unknown;
5160
- seo?: unknown;
5161
- fulfilment?: unknown;
5162
- cuisine?: string;
5163
- price_range?: string;
5164
- product_placeholder?: string;
5165
- analytics?: unknown;
5166
- labels?: unknown;
5167
- frame_ancestors?: unknown;
5168
- multi_store?: boolean;
5169
- brand_slug?: string;
5170
- default_store?: string;
5171
- readonly status: components["schemas"]["StoreOnboardingStatusEnum"];
5172
- /** Format: date-time */
5173
- readonly published_at: string | null;
5174
- /** Format: date-time */
5175
- readonly updated_at: string;
5176
- readonly brand_assets: components["schemas"]["StoreBrandAsset"][];
5177
- readonly uber_direct_supported_countries: string[];
5178
- readonly delivery_method_toggles: components["schemas"]["DeliveryMethodToggles"] | null;
5179
- };
5180
5185
  /**
5181
5186
  * @description * `draft` - Draft
5182
5187
  * * `published` - Published
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-sdk",
3
- "version": "3.7.1",
3
+ "version": "3.7.2",
4
4
  "description": "Type-safe TypeScript SDK for SOUS Storefront Backend",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,