@poweredbysous/storefront-all-sdk 2.0.0 → 2.0.1

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
@@ -6603,6 +6603,7 @@ interface components {
6603
6603
  version?: number;
6604
6604
  readonly item_count: number;
6605
6605
  readonly line_items: components["schemas"]["CartLineItem"][];
6606
+ /** @description The discount coming off this cart, code-entered or auto-applied. */
6606
6607
  readonly discount: {
6607
6608
  [key: string]: unknown;
6608
6609
  } | null;
@@ -8989,6 +8990,29 @@ interface components {
8989
8990
  value_reference?: number | null;
8990
8991
  readonly selected_choices: components["schemas"]["AttributeChoice"][];
8991
8992
  };
8993
+ /**
8994
+ * @description Display-only auto-applied-discount badge attached to a product.
8995
+ *
8996
+ * Named ``auto_discount`` rather than ``discount`` deliberately. The
8997
+ * storefront already has a per-product ``discount`` concept -- a unit-price
8998
+ * reduction that drives the effective price and the strikethrough -- and
8999
+ * reusing the name would have fed this badge straight into that
9000
+ * calculation.
9001
+ *
9002
+ * Shape-only serializer used for OpenAPI generation; the value is a plain
9003
+ * dict injected via serializer context (``product_discounts``) by the
9004
+ * ``core.product_context`` seam, not a model instance.
9005
+ */
9006
+ ProductAutoDiscount: {
9007
+ id: string;
9008
+ name: string;
9009
+ discount_type: string;
9010
+ /** Format: decimal */
9011
+ value: string;
9012
+ currency: string;
9013
+ product_ids: number[];
9014
+ restrictions: components["schemas"]["_DiscountRestrictions"];
9015
+ };
8992
9016
  ProductChannelListing: {
8993
9017
  readonly id: number;
8994
9018
  readonly product_id: number;
@@ -9069,6 +9093,7 @@ interface components {
9069
9093
  readonly is_trending: boolean | null;
9070
9094
  readonly trend_score: string | null;
9071
9095
  readonly promotion: components["schemas"]["ProductPromotion"] | null;
9096
+ readonly auto_discount: components["schemas"]["ProductAutoDiscount"] | null;
9072
9097
  /** Format: date-time */
9073
9098
  readonly created_at: string;
9074
9099
  /** Format: date-time */
@@ -9139,6 +9164,7 @@ interface components {
9139
9164
  readonly is_trending: boolean | null;
9140
9165
  readonly trend_score: string | null;
9141
9166
  readonly promotion: components["schemas"]["ProductPromotion"] | null;
9167
+ readonly auto_discount: components["schemas"]["ProductAutoDiscount"] | null;
9142
9168
  readonly images: components["schemas"]["ProductImage"][];
9143
9169
  /** Format: date-time */
9144
9170
  readonly created_at: string;
@@ -10124,10 +10150,11 @@ interface components {
10124
10150
  * * `chargeback` - Chargeback
10125
10151
  * * `refund_reverse` - Refund Reverse
10126
10152
  * * `authorization_adjustment` - Authorization Adjustment
10153
+ * * `processing` - Processing
10127
10154
  * * `info` - Info
10128
10155
  * @enum {string}
10129
10156
  */
10130
- TypeEnum: "authorization_request" | "authorization_success" | "authorization_failure" | "charge_request" | "charge_success" | "charge_failure" | "refund_request" | "refund_success" | "refund_failure" | "cancel_request" | "cancel_success" | "cancel_failure" | "chargeback" | "refund_reverse" | "authorization_adjustment" | "info";
10157
+ TypeEnum: "authorization_request" | "authorization_success" | "authorization_failure" | "charge_request" | "charge_success" | "charge_failure" | "refund_request" | "refund_success" | "refund_failure" | "cancel_request" | "cancel_success" | "cancel_failure" | "chargeback" | "refund_reverse" | "authorization_adjustment" | "processing" | "info";
10131
10158
  /**
10132
10159
  * @description * `kg` - kg
10133
10160
  * * `l` - l
@@ -10274,6 +10301,23 @@ interface components {
10274
10301
  euro_per_step: string;
10275
10302
  balance_value: string;
10276
10303
  };
10304
+ /** @description Schedule/scope block the storefront re-judges at render time. */
10305
+ _DiscountRestrictions: {
10306
+ /** @description IANA name the backend judges the schedule in. Re-judge the window against this, not against the browser clock or a locally configured merchant timezone. Null when this store has no usable configured timezone - keep your own fallback in that case, rather than treating the absence as a value. */
10307
+ timezone: string | null;
10308
+ /** Format: date-time */
10309
+ start_date: string | null;
10310
+ /** Format: date-time */
10311
+ end_date: string | null;
10312
+ allowed_fulfillment_types: string[];
10313
+ schedule_weekdays: number[];
10314
+ /** Format: time */
10315
+ schedule_start_time: string | null;
10316
+ /** Format: time */
10317
+ schedule_end_time: string | null;
10318
+ /** Format: decimal */
10319
+ min_order_amount: string | null;
10320
+ };
10277
10321
  /** @description Nested serializer for line item entries in ProcessRefundSerializer. */
10278
10322
  _LineItemInput: {
10279
10323
  /** Format: uuid */
@@ -10292,6 +10336,8 @@ interface components {
10292
10336
  * scope, channel) are added here without reshaping the top-level payload.
10293
10337
  */
10294
10338
  _PromotionRestrictions: {
10339
+ /** @description IANA name the backend judges the schedule in. Re-judge the window against this, not against the browser clock or a locally configured merchant timezone. Null when this store has no usable configured timezone - keep your own fallback in that case, rather than treating the absence as a value. */
10340
+ timezone: string | null;
10295
10341
  /** Format: date-time */
10296
10342
  start_date: string | null;
10297
10343
  /** Format: date-time */
package/dist/index.d.ts CHANGED
@@ -6603,6 +6603,7 @@ interface components {
6603
6603
  version?: number;
6604
6604
  readonly item_count: number;
6605
6605
  readonly line_items: components["schemas"]["CartLineItem"][];
6606
+ /** @description The discount coming off this cart, code-entered or auto-applied. */
6606
6607
  readonly discount: {
6607
6608
  [key: string]: unknown;
6608
6609
  } | null;
@@ -8989,6 +8990,29 @@ interface components {
8989
8990
  value_reference?: number | null;
8990
8991
  readonly selected_choices: components["schemas"]["AttributeChoice"][];
8991
8992
  };
8993
+ /**
8994
+ * @description Display-only auto-applied-discount badge attached to a product.
8995
+ *
8996
+ * Named ``auto_discount`` rather than ``discount`` deliberately. The
8997
+ * storefront already has a per-product ``discount`` concept -- a unit-price
8998
+ * reduction that drives the effective price and the strikethrough -- and
8999
+ * reusing the name would have fed this badge straight into that
9000
+ * calculation.
9001
+ *
9002
+ * Shape-only serializer used for OpenAPI generation; the value is a plain
9003
+ * dict injected via serializer context (``product_discounts``) by the
9004
+ * ``core.product_context`` seam, not a model instance.
9005
+ */
9006
+ ProductAutoDiscount: {
9007
+ id: string;
9008
+ name: string;
9009
+ discount_type: string;
9010
+ /** Format: decimal */
9011
+ value: string;
9012
+ currency: string;
9013
+ product_ids: number[];
9014
+ restrictions: components["schemas"]["_DiscountRestrictions"];
9015
+ };
8992
9016
  ProductChannelListing: {
8993
9017
  readonly id: number;
8994
9018
  readonly product_id: number;
@@ -9069,6 +9093,7 @@ interface components {
9069
9093
  readonly is_trending: boolean | null;
9070
9094
  readonly trend_score: string | null;
9071
9095
  readonly promotion: components["schemas"]["ProductPromotion"] | null;
9096
+ readonly auto_discount: components["schemas"]["ProductAutoDiscount"] | null;
9072
9097
  /** Format: date-time */
9073
9098
  readonly created_at: string;
9074
9099
  /** Format: date-time */
@@ -9139,6 +9164,7 @@ interface components {
9139
9164
  readonly is_trending: boolean | null;
9140
9165
  readonly trend_score: string | null;
9141
9166
  readonly promotion: components["schemas"]["ProductPromotion"] | null;
9167
+ readonly auto_discount: components["schemas"]["ProductAutoDiscount"] | null;
9142
9168
  readonly images: components["schemas"]["ProductImage"][];
9143
9169
  /** Format: date-time */
9144
9170
  readonly created_at: string;
@@ -10124,10 +10150,11 @@ interface components {
10124
10150
  * * `chargeback` - Chargeback
10125
10151
  * * `refund_reverse` - Refund Reverse
10126
10152
  * * `authorization_adjustment` - Authorization Adjustment
10153
+ * * `processing` - Processing
10127
10154
  * * `info` - Info
10128
10155
  * @enum {string}
10129
10156
  */
10130
- TypeEnum: "authorization_request" | "authorization_success" | "authorization_failure" | "charge_request" | "charge_success" | "charge_failure" | "refund_request" | "refund_success" | "refund_failure" | "cancel_request" | "cancel_success" | "cancel_failure" | "chargeback" | "refund_reverse" | "authorization_adjustment" | "info";
10157
+ TypeEnum: "authorization_request" | "authorization_success" | "authorization_failure" | "charge_request" | "charge_success" | "charge_failure" | "refund_request" | "refund_success" | "refund_failure" | "cancel_request" | "cancel_success" | "cancel_failure" | "chargeback" | "refund_reverse" | "authorization_adjustment" | "processing" | "info";
10131
10158
  /**
10132
10159
  * @description * `kg` - kg
10133
10160
  * * `l` - l
@@ -10274,6 +10301,23 @@ interface components {
10274
10301
  euro_per_step: string;
10275
10302
  balance_value: string;
10276
10303
  };
10304
+ /** @description Schedule/scope block the storefront re-judges at render time. */
10305
+ _DiscountRestrictions: {
10306
+ /** @description IANA name the backend judges the schedule in. Re-judge the window against this, not against the browser clock or a locally configured merchant timezone. Null when this store has no usable configured timezone - keep your own fallback in that case, rather than treating the absence as a value. */
10307
+ timezone: string | null;
10308
+ /** Format: date-time */
10309
+ start_date: string | null;
10310
+ /** Format: date-time */
10311
+ end_date: string | null;
10312
+ allowed_fulfillment_types: string[];
10313
+ schedule_weekdays: number[];
10314
+ /** Format: time */
10315
+ schedule_start_time: string | null;
10316
+ /** Format: time */
10317
+ schedule_end_time: string | null;
10318
+ /** Format: decimal */
10319
+ min_order_amount: string | null;
10320
+ };
10277
10321
  /** @description Nested serializer for line item entries in ProcessRefundSerializer. */
10278
10322
  _LineItemInput: {
10279
10323
  /** Format: uuid */
@@ -10292,6 +10336,8 @@ interface components {
10292
10336
  * scope, channel) are added here without reshaping the top-level payload.
10293
10337
  */
10294
10338
  _PromotionRestrictions: {
10339
+ /** @description IANA name the backend judges the schedule in. Re-judge the window against this, not against the browser clock or a locally configured merchant timezone. Null when this store has no usable configured timezone - keep your own fallback in that case, rather than treating the absence as a value. */
10340
+ timezone: string | null;
10295
10341
  /** Format: date-time */
10296
10342
  start_date: string | null;
10297
10343
  /** Format: date-time */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-all-sdk",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Type-safe TypeScript SDK for all SOUS Storefront Backend endpoints",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,