@capxul/cli 4.20.0-beta.21 → 4.20.0-beta.22

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/main.mjs CHANGED
@@ -16680,7 +16680,7 @@ function signerFailure(source, operation, cause) {
16680
16680
  }
16681
16681
  //#endregion
16682
16682
  //#region ../../packages/sdk/package.json
16683
- var version$3 = "4.20.0-beta.21";
16683
+ var version$3 = "4.20.0-beta.22";
16684
16684
  //#endregion
16685
16685
  //#region ../../packages/sdk/src/telemetry/exception-projection.ts
16686
16686
  /** Fixed fallback for failures that have no safe message. */
@@ -69966,8 +69966,8 @@ function captureException(telemetry, error, context) {
69966
69966
  }
69967
69967
  //#endregion
69968
69968
  //#region src/runtime/version.ts
69969
- const cliVersion = "4.20.0-beta.21";
69970
- const sdkVersion = "4.20.0-beta.21";
69969
+ const cliVersion = "4.20.0-beta.22";
69970
+ const sdkVersion = "4.20.0-beta.22";
69971
69971
  const ReleaseVersion = Schema.String.check(Schema.isMaxLength(256), Schema.isPattern(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/u)).pipe(Schema.brand("CliReleaseVersion"));
69972
69972
  const parts = (version) => {
69973
69973
  const [core = "", ...prerelease] = version.split("+")[0].split("-");
@@ -75260,13 +75260,16 @@ const referenceLabel = (ref) => {
75260
75260
  case "handle": return ref.handle;
75261
75261
  }
75262
75262
  };
75263
- const requestCheckout = (item, origin) => ({
75264
- ...item,
75265
- ..."linkToken" in item && item.linkToken !== void 0 && item.documents.some((document) => document.kind === "invoice" && document.role === "instruction") ? { checkoutUrl: checkoutUrl(origin, {
75266
- kind: "invoice",
75267
- linkToken: item.linkToken
75268
- }) } : {}
75269
- });
75263
+ const requestCheckout = (item, origin) => {
75264
+ const instruction = item.documents.find((document) => document.role === "instruction" && (document.kind === "invoice" || document.kind === "memo"));
75265
+ return {
75266
+ ...item,
75267
+ ..."linkToken" in item && item.linkToken !== void 0 && instruction !== void 0 ? { checkoutUrl: checkoutUrl(origin, {
75268
+ kind: instruction.kind === "invoice" ? "invoice" : "request",
75269
+ linkToken: item.linkToken
75270
+ }) } : {}
75271
+ };
75272
+ };
75270
75273
  const requestLines = (item, email, orgId = null) => [
75271
75274
  `Request ${terminalText(item.id)}`,
75272
75275
  ...item.checkoutUrl === void 0 ? [] : [` Checkout: ${terminalText(item.checkoutUrl)}`],