@poweredbysous/storefront-admin-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
@@ -4665,6 +4665,29 @@ interface components {
4665
4665
  value_reference?: number | null;
4666
4666
  readonly selected_choices: components["schemas"]["AttributeChoice"][];
4667
4667
  };
4668
+ /**
4669
+ * @description Display-only auto-applied-discount badge attached to a product.
4670
+ *
4671
+ * Named ``auto_discount`` rather than ``discount`` deliberately. The
4672
+ * storefront already has a per-product ``discount`` concept -- a unit-price
4673
+ * reduction that drives the effective price and the strikethrough -- and
4674
+ * reusing the name would have fed this badge straight into that
4675
+ * calculation.
4676
+ *
4677
+ * Shape-only serializer used for OpenAPI generation; the value is a plain
4678
+ * dict injected via serializer context (``product_discounts``) by the
4679
+ * ``core.product_context`` seam, not a model instance.
4680
+ */
4681
+ ProductAutoDiscount: {
4682
+ id: string;
4683
+ name: string;
4684
+ discount_type: string;
4685
+ /** Format: decimal */
4686
+ value: string;
4687
+ currency: string;
4688
+ product_ids: number[];
4689
+ restrictions: components["schemas"]["_DiscountRestrictions"];
4690
+ };
4668
4691
  ProductChannelListing: {
4669
4692
  readonly id: number;
4670
4693
  readonly product_id: number;
@@ -4745,6 +4768,7 @@ interface components {
4745
4768
  readonly is_trending: boolean | null;
4746
4769
  readonly trend_score: string | null;
4747
4770
  readonly promotion: components["schemas"]["ProductPromotion"] | null;
4771
+ readonly auto_discount: components["schemas"]["ProductAutoDiscount"] | null;
4748
4772
  /** Format: date-time */
4749
4773
  readonly created_at: string;
4750
4774
  /** Format: date-time */
@@ -4797,6 +4821,7 @@ interface components {
4797
4821
  readonly is_trending: boolean | null;
4798
4822
  readonly trend_score: string | null;
4799
4823
  readonly promotion: components["schemas"]["ProductPromotion"] | null;
4824
+ readonly auto_discount: components["schemas"]["ProductAutoDiscount"] | null;
4800
4825
  readonly images: components["schemas"]["ProductImage"][];
4801
4826
  /** Format: date-time */
4802
4827
  readonly created_at: string;
@@ -5364,10 +5389,11 @@ interface components {
5364
5389
  * * `chargeback` - Chargeback
5365
5390
  * * `refund_reverse` - Refund Reverse
5366
5391
  * * `authorization_adjustment` - Authorization Adjustment
5392
+ * * `processing` - Processing
5367
5393
  * * `info` - Info
5368
5394
  * @enum {string}
5369
5395
  */
5370
- 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";
5396
+ 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";
5371
5397
  /**
5372
5398
  * @description * `kg` - kg
5373
5399
  * * `l` - l
@@ -5469,6 +5495,23 @@ interface components {
5469
5495
  readonly updated_at: string;
5470
5496
  secret?: string;
5471
5497
  };
5498
+ /** @description Schedule/scope block the storefront re-judges at render time. */
5499
+ _DiscountRestrictions: {
5500
+ /** @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. */
5501
+ timezone: string | null;
5502
+ /** Format: date-time */
5503
+ start_date: string | null;
5504
+ /** Format: date-time */
5505
+ end_date: string | null;
5506
+ allowed_fulfillment_types: string[];
5507
+ schedule_weekdays: number[];
5508
+ /** Format: time */
5509
+ schedule_start_time: string | null;
5510
+ /** Format: time */
5511
+ schedule_end_time: string | null;
5512
+ /** Format: decimal */
5513
+ min_order_amount: string | null;
5514
+ };
5472
5515
  /** @description Nested serializer for line item entries in ProcessRefundSerializer. */
5473
5516
  _LineItemInput: {
5474
5517
  /** Format: uuid */
@@ -5487,6 +5530,8 @@ interface components {
5487
5530
  * scope, channel) are added here without reshaping the top-level payload.
5488
5531
  */
5489
5532
  _PromotionRestrictions: {
5533
+ /** @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. */
5534
+ timezone: string | null;
5490
5535
  /** Format: date-time */
5491
5536
  start_date: string | null;
5492
5537
  /** Format: date-time */
package/dist/index.d.ts CHANGED
@@ -4665,6 +4665,29 @@ interface components {
4665
4665
  value_reference?: number | null;
4666
4666
  readonly selected_choices: components["schemas"]["AttributeChoice"][];
4667
4667
  };
4668
+ /**
4669
+ * @description Display-only auto-applied-discount badge attached to a product.
4670
+ *
4671
+ * Named ``auto_discount`` rather than ``discount`` deliberately. The
4672
+ * storefront already has a per-product ``discount`` concept -- a unit-price
4673
+ * reduction that drives the effective price and the strikethrough -- and
4674
+ * reusing the name would have fed this badge straight into that
4675
+ * calculation.
4676
+ *
4677
+ * Shape-only serializer used for OpenAPI generation; the value is a plain
4678
+ * dict injected via serializer context (``product_discounts``) by the
4679
+ * ``core.product_context`` seam, not a model instance.
4680
+ */
4681
+ ProductAutoDiscount: {
4682
+ id: string;
4683
+ name: string;
4684
+ discount_type: string;
4685
+ /** Format: decimal */
4686
+ value: string;
4687
+ currency: string;
4688
+ product_ids: number[];
4689
+ restrictions: components["schemas"]["_DiscountRestrictions"];
4690
+ };
4668
4691
  ProductChannelListing: {
4669
4692
  readonly id: number;
4670
4693
  readonly product_id: number;
@@ -4745,6 +4768,7 @@ interface components {
4745
4768
  readonly is_trending: boolean | null;
4746
4769
  readonly trend_score: string | null;
4747
4770
  readonly promotion: components["schemas"]["ProductPromotion"] | null;
4771
+ readonly auto_discount: components["schemas"]["ProductAutoDiscount"] | null;
4748
4772
  /** Format: date-time */
4749
4773
  readonly created_at: string;
4750
4774
  /** Format: date-time */
@@ -4797,6 +4821,7 @@ interface components {
4797
4821
  readonly is_trending: boolean | null;
4798
4822
  readonly trend_score: string | null;
4799
4823
  readonly promotion: components["schemas"]["ProductPromotion"] | null;
4824
+ readonly auto_discount: components["schemas"]["ProductAutoDiscount"] | null;
4800
4825
  readonly images: components["schemas"]["ProductImage"][];
4801
4826
  /** Format: date-time */
4802
4827
  readonly created_at: string;
@@ -5364,10 +5389,11 @@ interface components {
5364
5389
  * * `chargeback` - Chargeback
5365
5390
  * * `refund_reverse` - Refund Reverse
5366
5391
  * * `authorization_adjustment` - Authorization Adjustment
5392
+ * * `processing` - Processing
5367
5393
  * * `info` - Info
5368
5394
  * @enum {string}
5369
5395
  */
5370
- 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";
5396
+ 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";
5371
5397
  /**
5372
5398
  * @description * `kg` - kg
5373
5399
  * * `l` - l
@@ -5469,6 +5495,23 @@ interface components {
5469
5495
  readonly updated_at: string;
5470
5496
  secret?: string;
5471
5497
  };
5498
+ /** @description Schedule/scope block the storefront re-judges at render time. */
5499
+ _DiscountRestrictions: {
5500
+ /** @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. */
5501
+ timezone: string | null;
5502
+ /** Format: date-time */
5503
+ start_date: string | null;
5504
+ /** Format: date-time */
5505
+ end_date: string | null;
5506
+ allowed_fulfillment_types: string[];
5507
+ schedule_weekdays: number[];
5508
+ /** Format: time */
5509
+ schedule_start_time: string | null;
5510
+ /** Format: time */
5511
+ schedule_end_time: string | null;
5512
+ /** Format: decimal */
5513
+ min_order_amount: string | null;
5514
+ };
5472
5515
  /** @description Nested serializer for line item entries in ProcessRefundSerializer. */
5473
5516
  _LineItemInput: {
5474
5517
  /** Format: uuid */
@@ -5487,6 +5530,8 @@ interface components {
5487
5530
  * scope, channel) are added here without reshaping the top-level payload.
5488
5531
  */
5489
5532
  _PromotionRestrictions: {
5533
+ /** @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. */
5534
+ timezone: string | null;
5490
5535
  /** Format: date-time */
5491
5536
  start_date: string | null;
5492
5537
  /** Format: date-time */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-admin-sdk",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Type-safe TypeScript SDK for SOUS Storefront Backend admin endpoints",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,