@drawbridge/drawbridge-utils 0.0.145 → 0.0.146

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.
@@ -4550,19 +4550,17 @@ var shopify_default2 = {
4550
4550
  //
4551
4551
  // Scope drift is NOT here: drawbridge-sync writes it onto the connection
4552
4552
  // document, and the document's own warnings render beside these.
4553
- // Both cards carry `action : 'billing'`: the dashboard renders it as a real
4554
- // button that mints the corrective subscription (POST .../billing) and sends
4555
- // the owner to Shopify's confirmation screen — the fix lives in OUR
4556
- // dashboard, and the one Shopify-hosted step is the charge consent no app
4557
- // can perform for a merchant.
4553
+ // Both cards send the merchant INTO THE APP via the store link already on
4554
+ // this page the App Home is where the issue renders (its error section)
4555
+ // and where the fix runs (the release-then-reselect flow). No dashboard
4556
+ // button: two entry points into a cancel flow is two ways to get it wrong.
4558
4557
  tasks: (data2) => {
4559
4558
  var _a;
4560
4559
  return [
4561
4560
  ...(data2 == null ? void 0 : data2.status) === "pending" ? [
4562
4561
  {
4563
- action: "billing",
4564
- message: "Approve the Drawbridge plan to activate this connection. You'll be asked to select a plan on Shopify, then everything else happens here.",
4565
- title: "Approve your plan",
4562
+ message: "Open the Drawbridge app in your Shopify admin and choose your plan. The connection activates once Shopify confirms it.",
4563
+ title: "Choose your plan",
4566
4564
  type: "warning"
4567
4565
  }
4568
4566
  ] : [],
@@ -4575,8 +4573,7 @@ var shopify_default2 = {
4575
4573
  // nagging on silence.
4576
4574
  ...(data2 == null ? void 0 : data2.status) === "active" && ((_a = data2 == null ? void 0 : data2.source) == null ? void 0 : _a.metered) === null ? [
4577
4575
  {
4578
- action: "billing",
4579
- message: "Order billing isn't set up for this store, so campaign-attributed orders aren't being charged. You'll need to reselect your plan on Shopify and approve it to fix this.",
4576
+ message: "Order billing isn't set up for this store, so campaign-attributed orders aren't being charged. Open the Drawbridge app in your Shopify admin \u2014 it shows this issue and walks you through reselecting your plan.",
4580
4577
  title: "Fix order billing",
4581
4578
  type: "error"
4582
4579
  }
@@ -5417,18 +5417,16 @@ var shopify = {
5417
5417
  //
5418
5418
  // Scope drift is NOT here: drawbridge-sync writes it onto the connection
5419
5419
  // document, and the document's own warnings render beside these.
5420
- // Both cards carry `action : 'billing'`: the dashboard renders it as a real
5421
- // button that mints the corrective subscription (POST .../billing) and sends
5422
- // the owner to Shopify's confirmation screen — the fix lives in OUR
5423
- // dashboard, and the one Shopify-hosted step is the charge consent no app
5424
- // can perform for a merchant.
5420
+ // Both cards send the merchant INTO THE APP via the store link already on
5421
+ // this page the App Home is where the issue renders (its error section)
5422
+ // and where the fix runs (the release-then-reselect flow). No dashboard
5423
+ // button: two entry points into a cancel flow is two ways to get it wrong.
5425
5424
  tasks : ( data ) => [
5426
5425
  ...( data?.status === 'pending'
5427
5426
  ? [
5428
5427
  {
5429
- action : 'billing',
5430
- message : 'Approve the Drawbridge plan to activate this connection. You\'ll be asked to select a plan on Shopify, then everything else happens here.',
5431
- title : 'Approve your plan',
5428
+ message : 'Open the Drawbridge app in your Shopify admin and choose your plan. The connection activates once Shopify confirms it.',
5429
+ title : 'Choose your plan',
5432
5430
  type : 'warning'
5433
5431
  }
5434
5432
  ]
@@ -5444,8 +5442,7 @@ var shopify = {
5444
5442
  ...( data?.status === 'active' && data?.source?.metered === null
5445
5443
  ? [
5446
5444
  {
5447
- action : 'billing',
5448
- message : 'Order billing isn\'t set up for this store, so campaign-attributed orders aren\'t being charged. You\'ll need to reselect your plan on Shopify and approve it to fix this.',
5445
+ message : 'Order billing isn\'t set up for this store, so campaign-attributed orders aren\'t being charged. Open the Drawbridge app in your Shopify admin — it shows this issue and walks you through reselecting your plan.',
5449
5446
  title : 'Fix order billing',
5450
5447
  type : 'error'
5451
5448
  }
@@ -5417,18 +5417,16 @@ var shopify = {
5417
5417
  //
5418
5418
  // Scope drift is NOT here: drawbridge-sync writes it onto the connection
5419
5419
  // document, and the document's own warnings render beside these.
5420
- // Both cards carry `action : 'billing'`: the dashboard renders it as a real
5421
- // button that mints the corrective subscription (POST .../billing) and sends
5422
- // the owner to Shopify's confirmation screen — the fix lives in OUR
5423
- // dashboard, and the one Shopify-hosted step is the charge consent no app
5424
- // can perform for a merchant.
5420
+ // Both cards send the merchant INTO THE APP via the store link already on
5421
+ // this page the App Home is where the issue renders (its error section)
5422
+ // and where the fix runs (the release-then-reselect flow). No dashboard
5423
+ // button: two entry points into a cancel flow is two ways to get it wrong.
5425
5424
  tasks : ( data ) => [
5426
5425
  ...( data?.status === 'pending'
5427
5426
  ? [
5428
5427
  {
5429
- action : 'billing',
5430
- message : 'Approve the Drawbridge plan to activate this connection. You\'ll be asked to select a plan on Shopify, then everything else happens here.',
5431
- title : 'Approve your plan',
5428
+ message : 'Open the Drawbridge app in your Shopify admin and choose your plan. The connection activates once Shopify confirms it.',
5429
+ title : 'Choose your plan',
5432
5430
  type : 'warning'
5433
5431
  }
5434
5432
  ]
@@ -5444,8 +5442,7 @@ var shopify = {
5444
5442
  ...( data?.status === 'active' && data?.source?.metered === null
5445
5443
  ? [
5446
5444
  {
5447
- action : 'billing',
5448
- message : 'Order billing isn\'t set up for this store, so campaign-attributed orders aren\'t being charged. You\'ll need to reselect your plan on Shopify and approve it to fix this.',
5445
+ message : 'Order billing isn\'t set up for this store, so campaign-attributed orders aren\'t being charged. Open the Drawbridge app in your Shopify admin — it shows this issue and walks you through reselecting your plan.',
5449
5446
  title : 'Fix order billing',
5450
5447
  type : 'error'
5451
5448
  }
@@ -4476,19 +4476,17 @@ var shopify_default2 = {
4476
4476
  //
4477
4477
  // Scope drift is NOT here: drawbridge-sync writes it onto the connection
4478
4478
  // document, and the document's own warnings render beside these.
4479
- // Both cards carry `action : 'billing'`: the dashboard renders it as a real
4480
- // button that mints the corrective subscription (POST .../billing) and sends
4481
- // the owner to Shopify's confirmation screen — the fix lives in OUR
4482
- // dashboard, and the one Shopify-hosted step is the charge consent no app
4483
- // can perform for a merchant.
4479
+ // Both cards send the merchant INTO THE APP via the store link already on
4480
+ // this page the App Home is where the issue renders (its error section)
4481
+ // and where the fix runs (the release-then-reselect flow). No dashboard
4482
+ // button: two entry points into a cancel flow is two ways to get it wrong.
4484
4483
  tasks: (data2) => {
4485
4484
  var _a;
4486
4485
  return [
4487
4486
  ...(data2 == null ? void 0 : data2.status) === "pending" ? [
4488
4487
  {
4489
- action: "billing",
4490
- message: "Approve the Drawbridge plan to activate this connection. You'll be asked to select a plan on Shopify, then everything else happens here.",
4491
- title: "Approve your plan",
4488
+ message: "Open the Drawbridge app in your Shopify admin and choose your plan. The connection activates once Shopify confirms it.",
4489
+ title: "Choose your plan",
4492
4490
  type: "warning"
4493
4491
  }
4494
4492
  ] : [],
@@ -4501,8 +4499,7 @@ var shopify_default2 = {
4501
4499
  // nagging on silence.
4502
4500
  ...(data2 == null ? void 0 : data2.status) === "active" && ((_a = data2 == null ? void 0 : data2.source) == null ? void 0 : _a.metered) === null ? [
4503
4501
  {
4504
- action: "billing",
4505
- message: "Order billing isn't set up for this store, so campaign-attributed orders aren't being charged. You'll need to reselect your plan on Shopify and approve it to fix this.",
4502
+ message: "Order billing isn't set up for this store, so campaign-attributed orders aren't being charged. Open the Drawbridge app in your Shopify admin \u2014 it shows this issue and walks you through reselecting your plan.",
4506
4503
  title: "Fix order billing",
4507
4504
  type: "error"
4508
4505
  }
@@ -4475,19 +4475,17 @@ var shopify_default2 = {
4475
4475
  //
4476
4476
  // Scope drift is NOT here: drawbridge-sync writes it onto the connection
4477
4477
  // document, and the document's own warnings render beside these.
4478
- // Both cards carry `action : 'billing'`: the dashboard renders it as a real
4479
- // button that mints the corrective subscription (POST .../billing) and sends
4480
- // the owner to Shopify's confirmation screen — the fix lives in OUR
4481
- // dashboard, and the one Shopify-hosted step is the charge consent no app
4482
- // can perform for a merchant.
4478
+ // Both cards send the merchant INTO THE APP via the store link already on
4479
+ // this page the App Home is where the issue renders (its error section)
4480
+ // and where the fix runs (the release-then-reselect flow). No dashboard
4481
+ // button: two entry points into a cancel flow is two ways to get it wrong.
4483
4482
  tasks: (data2) => {
4484
4483
  var _a;
4485
4484
  return [
4486
4485
  ...(data2 == null ? void 0 : data2.status) === "pending" ? [
4487
4486
  {
4488
- action: "billing",
4489
- message: "Approve the Drawbridge plan to activate this connection. You'll be asked to select a plan on Shopify, then everything else happens here.",
4490
- title: "Approve your plan",
4487
+ message: "Open the Drawbridge app in your Shopify admin and choose your plan. The connection activates once Shopify confirms it.",
4488
+ title: "Choose your plan",
4491
4489
  type: "warning"
4492
4490
  }
4493
4491
  ] : [],
@@ -4500,8 +4498,7 @@ var shopify_default2 = {
4500
4498
  // nagging on silence.
4501
4499
  ...(data2 == null ? void 0 : data2.status) === "active" && ((_a = data2 == null ? void 0 : data2.source) == null ? void 0 : _a.metered) === null ? [
4502
4500
  {
4503
- action: "billing",
4504
- message: "Order billing isn't set up for this store, so campaign-attributed orders aren't being charged. You'll need to reselect your plan on Shopify and approve it to fix this.",
4501
+ message: "Order billing isn't set up for this store, so campaign-attributed orders aren't being charged. Open the Drawbridge app in your Shopify admin \u2014 it shows this issue and walks you through reselecting your plan.",
4505
4502
  title: "Fix order billing",
4506
4503
  type: "error"
4507
4504
  }
package/dist/providers.js CHANGED
@@ -4431,19 +4431,17 @@ var shopify_default2 = {
4431
4431
  //
4432
4432
  // Scope drift is NOT here: drawbridge-sync writes it onto the connection
4433
4433
  // document, and the document's own warnings render beside these.
4434
- // Both cards carry `action : 'billing'`: the dashboard renders it as a real
4435
- // button that mints the corrective subscription (POST .../billing) and sends
4436
- // the owner to Shopify's confirmation screen — the fix lives in OUR
4437
- // dashboard, and the one Shopify-hosted step is the charge consent no app
4438
- // can perform for a merchant.
4434
+ // Both cards send the merchant INTO THE APP via the store link already on
4435
+ // this page the App Home is where the issue renders (its error section)
4436
+ // and where the fix runs (the release-then-reselect flow). No dashboard
4437
+ // button: two entry points into a cancel flow is two ways to get it wrong.
4439
4438
  tasks: (data2) => {
4440
4439
  var _a;
4441
4440
  return [
4442
4441
  ...(data2 == null ? void 0 : data2.status) === "pending" ? [
4443
4442
  {
4444
- action: "billing",
4445
- message: "Approve the Drawbridge plan to activate this connection. You'll be asked to select a plan on Shopify, then everything else happens here.",
4446
- title: "Approve your plan",
4443
+ message: "Open the Drawbridge app in your Shopify admin and choose your plan. The connection activates once Shopify confirms it.",
4444
+ title: "Choose your plan",
4447
4445
  type: "warning"
4448
4446
  }
4449
4447
  ] : [],
@@ -4456,8 +4454,7 @@ var shopify_default2 = {
4456
4454
  // nagging on silence.
4457
4455
  ...(data2 == null ? void 0 : data2.status) === "active" && ((_a = data2 == null ? void 0 : data2.source) == null ? void 0 : _a.metered) === null ? [
4458
4456
  {
4459
- action: "billing",
4460
- message: "Order billing isn't set up for this store, so campaign-attributed orders aren't being charged. You'll need to reselect your plan on Shopify and approve it to fix this.",
4457
+ message: "Order billing isn't set up for this store, so campaign-attributed orders aren't being charged. Open the Drawbridge app in your Shopify admin \u2014 it shows this issue and walks you through reselecting your plan.",
4461
4458
  title: "Fix order billing",
4462
4459
  type: "error"
4463
4460
  }
package/package.json CHANGED
@@ -216,5 +216,5 @@
216
216
  "prepublishOnly": ". \"$HOME/.nvm/nvm.sh\" && nvm use && tsup && node --test"
217
217
  },
218
218
  "types": "dist/index.d.ts",
219
- "version": "0.0.145"
219
+ "version": "0.0.146"
220
220
  }