@poweredbysous/storefront-all-sdk 7.0.0 → 7.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
@@ -5415,7 +5415,8 @@ interface paths {
5415
5415
  * Resolves the push by ``(store_id, id)`` and returns 404 for an unknown or
5416
5416
  * foreign push (spec amendment #2). Enqueues a re-push on the existing Cloud
5417
5417
  * Tasks path rather than calling Lightspeed inline (amendment #1) and returns
5418
- * ``202 {"state": "queued"}``.
5418
+ * ``202 {"state": "queued"}``. A push it refuses to send answers 409
5419
+ * ``{detail, reason_code}`` (``_push_not_retried_response``).
5419
5420
  */
5420
5421
  post: operations["pos_kseries_retry_failed_push"];
5421
5422
  delete?: never;
@@ -5985,7 +5986,8 @@ interface paths {
5985
5986
  * Mirrors ``LightspeedFailedPushRetryView``. Resolves the push by
5986
5987
  * ``(store_id, id)`` and returns 404 for an unknown or foreign push. The push
5987
5988
  * must be in ``state=failed`` — retrying an in-flight push would risk a
5988
- * duplicate POS submission.
5989
+ * duplicate POS submission. A push it refuses to send answers 409
5990
+ * ``{detail, reason_code}`` (``_push_not_retried_response``).
5989
5991
  */
5990
5992
  post: operations["pos_lseries_retry_failed_push"];
5991
5993
  delete?: never;
@@ -7113,7 +7115,11 @@ interface paths {
7113
7115
  * confirmation page; ``cancellation_reason`` is the free-text rationale.
7114
7116
  * ``changed_by`` is ``auto_accept`` when the portal's Auto-accept accepted
7115
7117
  * the order, ``courier`` when a delivery courier's progress moved it (the
7116
- * printed slip's analytics say so), else "" or absent.
7118
+ * printed slip's analytics say so), ``merchant`` when a person changed it
7119
+ * in the portal (the order's POS history says so), else "" or absent. With
7120
+ * Lightspeed order alerts only ``merchant`` counts as a person having the
7121
+ * order in hand (``pos.services.merchant_has_order``): any other value, ""
7122
+ * included, leaves an order moved to preparing waiting for the till.
7117
7123
  */
7118
7124
  post: operations["sync_merchant_portal_order_status_create"];
7119
7125
  delete?: never;
@@ -9738,6 +9744,11 @@ interface components {
9738
9744
  * @enum {string}
9739
9745
  */
9740
9746
  EventTypeEnum: "impression" | "click" | "dismiss";
9747
+ /** @description Why a retry sends a store's own failed push nowhere (409). */
9748
+ FailedPushNotResent: {
9749
+ detail: string;
9750
+ reason_code: string;
9751
+ };
9741
9752
  /**
9742
9753
  * @description * `pending` - Pending
9743
9754
  * * `fulfilled` - Fulfilled
@@ -10046,6 +10057,7 @@ interface components {
10046
10057
  connected: boolean;
10047
10058
  needs_reauth: boolean;
10048
10059
  price_sync_mode: components["schemas"]["PriceSyncModeEnum"];
10060
+ order_alerts: boolean;
10049
10061
  };
10050
10062
  /**
10051
10063
  * @description * `en` - en
@@ -10326,6 +10338,13 @@ interface components {
10326
10338
  order_number: string;
10327
10339
  reference: string;
10328
10340
  error: string;
10341
+ reason_code: string;
10342
+ reason_details: {
10343
+ [key: string]: unknown;
10344
+ };
10345
+ can_resend: boolean;
10346
+ awaiting_pos: boolean;
10347
+ alerted: boolean;
10329
10348
  /** Format: date-time */
10330
10349
  created_at: string;
10331
10350
  };
@@ -10446,6 +10465,7 @@ interface components {
10446
10465
  last_push_at: string | null;
10447
10466
  needs_reauth: boolean;
10448
10467
  price_sync_mode: components["schemas"]["PriceSyncModeEnum"];
10468
+ order_alerts: boolean;
10449
10469
  };
10450
10470
  /** @description The unmapped-product summary (count + ids) for the badge. */
10451
10471
  LightspeedUnmapped: {
@@ -39844,6 +39864,14 @@ interface operations {
39844
39864
  "application/json": components["schemas"]["APIErrorEnvelope"];
39845
39865
  };
39846
39866
  };
39867
+ 409: {
39868
+ headers: {
39869
+ [name: string]: unknown;
39870
+ };
39871
+ content: {
39872
+ "application/json": components["schemas"]["FailedPushNotResent"];
39873
+ };
39874
+ };
39847
39875
  /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
39848
39876
  429: {
39849
39877
  headers: {
@@ -41932,6 +41960,14 @@ interface operations {
41932
41960
  "application/json": components["schemas"]["APIErrorEnvelope"];
41933
41961
  };
41934
41962
  };
41963
+ 409: {
41964
+ headers: {
41965
+ [name: string]: unknown;
41966
+ };
41967
+ content: {
41968
+ "application/json": components["schemas"]["FailedPushNotResent"];
41969
+ };
41970
+ };
41935
41971
  /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
41936
41972
  429: {
41937
41973
  headers: {
package/dist/index.d.ts CHANGED
@@ -5415,7 +5415,8 @@ interface paths {
5415
5415
  * Resolves the push by ``(store_id, id)`` and returns 404 for an unknown or
5416
5416
  * foreign push (spec amendment #2). Enqueues a re-push on the existing Cloud
5417
5417
  * Tasks path rather than calling Lightspeed inline (amendment #1) and returns
5418
- * ``202 {"state": "queued"}``.
5418
+ * ``202 {"state": "queued"}``. A push it refuses to send answers 409
5419
+ * ``{detail, reason_code}`` (``_push_not_retried_response``).
5419
5420
  */
5420
5421
  post: operations["pos_kseries_retry_failed_push"];
5421
5422
  delete?: never;
@@ -5985,7 +5986,8 @@ interface paths {
5985
5986
  * Mirrors ``LightspeedFailedPushRetryView``. Resolves the push by
5986
5987
  * ``(store_id, id)`` and returns 404 for an unknown or foreign push. The push
5987
5988
  * must be in ``state=failed`` — retrying an in-flight push would risk a
5988
- * duplicate POS submission.
5989
+ * duplicate POS submission. A push it refuses to send answers 409
5990
+ * ``{detail, reason_code}`` (``_push_not_retried_response``).
5989
5991
  */
5990
5992
  post: operations["pos_lseries_retry_failed_push"];
5991
5993
  delete?: never;
@@ -7113,7 +7115,11 @@ interface paths {
7113
7115
  * confirmation page; ``cancellation_reason`` is the free-text rationale.
7114
7116
  * ``changed_by`` is ``auto_accept`` when the portal's Auto-accept accepted
7115
7117
  * the order, ``courier`` when a delivery courier's progress moved it (the
7116
- * printed slip's analytics say so), else "" or absent.
7118
+ * printed slip's analytics say so), ``merchant`` when a person changed it
7119
+ * in the portal (the order's POS history says so), else "" or absent. With
7120
+ * Lightspeed order alerts only ``merchant`` counts as a person having the
7121
+ * order in hand (``pos.services.merchant_has_order``): any other value, ""
7122
+ * included, leaves an order moved to preparing waiting for the till.
7117
7123
  */
7118
7124
  post: operations["sync_merchant_portal_order_status_create"];
7119
7125
  delete?: never;
@@ -9738,6 +9744,11 @@ interface components {
9738
9744
  * @enum {string}
9739
9745
  */
9740
9746
  EventTypeEnum: "impression" | "click" | "dismiss";
9747
+ /** @description Why a retry sends a store's own failed push nowhere (409). */
9748
+ FailedPushNotResent: {
9749
+ detail: string;
9750
+ reason_code: string;
9751
+ };
9741
9752
  /**
9742
9753
  * @description * `pending` - Pending
9743
9754
  * * `fulfilled` - Fulfilled
@@ -10046,6 +10057,7 @@ interface components {
10046
10057
  connected: boolean;
10047
10058
  needs_reauth: boolean;
10048
10059
  price_sync_mode: components["schemas"]["PriceSyncModeEnum"];
10060
+ order_alerts: boolean;
10049
10061
  };
10050
10062
  /**
10051
10063
  * @description * `en` - en
@@ -10326,6 +10338,13 @@ interface components {
10326
10338
  order_number: string;
10327
10339
  reference: string;
10328
10340
  error: string;
10341
+ reason_code: string;
10342
+ reason_details: {
10343
+ [key: string]: unknown;
10344
+ };
10345
+ can_resend: boolean;
10346
+ awaiting_pos: boolean;
10347
+ alerted: boolean;
10329
10348
  /** Format: date-time */
10330
10349
  created_at: string;
10331
10350
  };
@@ -10446,6 +10465,7 @@ interface components {
10446
10465
  last_push_at: string | null;
10447
10466
  needs_reauth: boolean;
10448
10467
  price_sync_mode: components["schemas"]["PriceSyncModeEnum"];
10468
+ order_alerts: boolean;
10449
10469
  };
10450
10470
  /** @description The unmapped-product summary (count + ids) for the badge. */
10451
10471
  LightspeedUnmapped: {
@@ -39844,6 +39864,14 @@ interface operations {
39844
39864
  "application/json": components["schemas"]["APIErrorEnvelope"];
39845
39865
  };
39846
39866
  };
39867
+ 409: {
39868
+ headers: {
39869
+ [name: string]: unknown;
39870
+ };
39871
+ content: {
39872
+ "application/json": components["schemas"]["FailedPushNotResent"];
39873
+ };
39874
+ };
39847
39875
  /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
39848
39876
  429: {
39849
39877
  headers: {
@@ -41932,6 +41960,14 @@ interface operations {
41932
41960
  "application/json": components["schemas"]["APIErrorEnvelope"];
41933
41961
  };
41934
41962
  };
41963
+ 409: {
41964
+ headers: {
41965
+ [name: string]: unknown;
41966
+ };
41967
+ content: {
41968
+ "application/json": components["schemas"]["FailedPushNotResent"];
41969
+ };
41970
+ };
41935
41971
  /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
41936
41972
  429: {
41937
41973
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-all-sdk",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Type-safe TypeScript SDK for all SOUS Storefront Backend endpoints",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,