@drawbridge/drawbridge-utils 0.0.144 → 0.0.145
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/connections/index.cjs +17 -3
- package/dist/connections/index.d.cts +18 -3
- package/dist/connections/index.d.ts +18 -3
- package/dist/connections/index.js +17 -3
- package/dist/providers.cjs +17 -3
- package/dist/providers.js +17 -3
- package/package.json +1 -1
|
@@ -4428,9 +4428,18 @@ var shopify_default2 = {
|
|
|
4428
4428
|
// there is nothing further to choose. `shop` absent means the install did not
|
|
4429
4429
|
// finish, which is a credential problem rather than a setup one, so the
|
|
4430
4430
|
// stored status already says so.
|
|
4431
|
-
//
|
|
4432
|
-
//
|
|
4433
|
-
|
|
4431
|
+
//
|
|
4432
|
+
// ONE presentation downgrade: an ACTIVE store whose approval carries no
|
|
4433
|
+
// usage meter (source.metered explicitly null) PRESENTS as error, so the
|
|
4434
|
+
// connections list shows the red state and the merchant knows to click in
|
|
4435
|
+
// — where the Fix-order-billing card and the billing Issue explain the
|
|
4436
|
+
// click. The STORED status stays active on purpose: serving and tracking
|
|
4437
|
+
// gate on it, and the orders recorded while the merchant fixes the plan
|
|
4438
|
+
// are the ones billed afterward.
|
|
4439
|
+
status: (data2) => {
|
|
4440
|
+
var _a;
|
|
4441
|
+
return (data2 == null ? void 0 : data2.status) === "active" && ((_a = data2 == null ? void 0 : data2.source) == null ? void 0 : _a.metered) === null ? "error" : data2 == null ? void 0 : data2.status;
|
|
4442
|
+
},
|
|
4434
4443
|
// Step types name the CAPABILITY, not this vendor. A second store platform
|
|
4435
4444
|
// implements the same four commerce steps, and the connection on the step
|
|
4436
4445
|
// says which store it runs against — so a merchant sees one "Create
|
|
@@ -5175,6 +5184,11 @@ var publicConnectionKeys = Object.freeze([
|
|
|
5175
5184
|
"settings",
|
|
5176
5185
|
"shop",
|
|
5177
5186
|
"slug",
|
|
5187
|
+
// Vendor identity plus the metered billing stamp — domain, id, label,
|
|
5188
|
+
// metered — no credentials live here (those are the encrypted settings
|
|
5189
|
+
// blob). The status and tasks hooks pivot on source.metered, so stripping
|
|
5190
|
+
// it here left the presented status blind to the one state it must show.
|
|
5191
|
+
"source",
|
|
5178
5192
|
"status",
|
|
5179
5193
|
"tasks",
|
|
5180
5194
|
"title",
|
|
@@ -5283,9 +5283,19 @@ var shopify = {
|
|
|
5283
5283
|
// there is nothing further to choose. `shop` absent means the install did not
|
|
5284
5284
|
// finish, which is a credential problem rather than a setup one, so the
|
|
5285
5285
|
// stored status already says so.
|
|
5286
|
-
//
|
|
5287
|
-
//
|
|
5288
|
-
|
|
5286
|
+
//
|
|
5287
|
+
// ONE presentation downgrade: an ACTIVE store whose approval carries no
|
|
5288
|
+
// usage meter (source.metered explicitly null) PRESENTS as error, so the
|
|
5289
|
+
// connections list shows the red state and the merchant knows to click in
|
|
5290
|
+
// — where the Fix-order-billing card and the billing Issue explain the
|
|
5291
|
+
// click. The STORED status stays active on purpose: serving and tracking
|
|
5292
|
+
// gate on it, and the orders recorded while the merchant fixes the plan
|
|
5293
|
+
// are the ones billed afterward.
|
|
5294
|
+
status : ( data ) => (
|
|
5295
|
+
data?.status === 'active' && data?.source?.metered === null
|
|
5296
|
+
? 'error'
|
|
5297
|
+
: data?.status
|
|
5298
|
+
),
|
|
5289
5299
|
// Step types name the CAPABILITY, not this vendor. A second store platform
|
|
5290
5300
|
// implements the same four commerce steps, and the connection on the step
|
|
5291
5301
|
// says which store it runs against — so a merchant sees one "Create
|
|
@@ -6454,6 +6464,11 @@ const publicConnectionKeys = Object.freeze([
|
|
|
6454
6464
|
'settings',
|
|
6455
6465
|
'shop',
|
|
6456
6466
|
'slug',
|
|
6467
|
+
// Vendor identity plus the metered billing stamp — domain, id, label,
|
|
6468
|
+
// metered — no credentials live here (those are the encrypted settings
|
|
6469
|
+
// blob). The status and tasks hooks pivot on source.metered, so stripping
|
|
6470
|
+
// it here left the presented status blind to the one state it must show.
|
|
6471
|
+
'source',
|
|
6457
6472
|
'status',
|
|
6458
6473
|
'tasks',
|
|
6459
6474
|
'title',
|
|
@@ -5283,9 +5283,19 @@ var shopify = {
|
|
|
5283
5283
|
// there is nothing further to choose. `shop` absent means the install did not
|
|
5284
5284
|
// finish, which is a credential problem rather than a setup one, so the
|
|
5285
5285
|
// stored status already says so.
|
|
5286
|
-
//
|
|
5287
|
-
//
|
|
5288
|
-
|
|
5286
|
+
//
|
|
5287
|
+
// ONE presentation downgrade: an ACTIVE store whose approval carries no
|
|
5288
|
+
// usage meter (source.metered explicitly null) PRESENTS as error, so the
|
|
5289
|
+
// connections list shows the red state and the merchant knows to click in
|
|
5290
|
+
// — where the Fix-order-billing card and the billing Issue explain the
|
|
5291
|
+
// click. The STORED status stays active on purpose: serving and tracking
|
|
5292
|
+
// gate on it, and the orders recorded while the merchant fixes the plan
|
|
5293
|
+
// are the ones billed afterward.
|
|
5294
|
+
status : ( data ) => (
|
|
5295
|
+
data?.status === 'active' && data?.source?.metered === null
|
|
5296
|
+
? 'error'
|
|
5297
|
+
: data?.status
|
|
5298
|
+
),
|
|
5289
5299
|
// Step types name the CAPABILITY, not this vendor. A second store platform
|
|
5290
5300
|
// implements the same four commerce steps, and the connection on the step
|
|
5291
5301
|
// says which store it runs against — so a merchant sees one "Create
|
|
@@ -6454,6 +6464,11 @@ const publicConnectionKeys = Object.freeze([
|
|
|
6454
6464
|
'settings',
|
|
6455
6465
|
'shop',
|
|
6456
6466
|
'slug',
|
|
6467
|
+
// Vendor identity plus the metered billing stamp — domain, id, label,
|
|
6468
|
+
// metered — no credentials live here (those are the encrypted settings
|
|
6469
|
+
// blob). The status and tasks hooks pivot on source.metered, so stripping
|
|
6470
|
+
// it here left the presented status blind to the one state it must show.
|
|
6471
|
+
'source',
|
|
6457
6472
|
'status',
|
|
6458
6473
|
'tasks',
|
|
6459
6474
|
'title',
|
|
@@ -4354,9 +4354,18 @@ var shopify_default2 = {
|
|
|
4354
4354
|
// there is nothing further to choose. `shop` absent means the install did not
|
|
4355
4355
|
// finish, which is a credential problem rather than a setup one, so the
|
|
4356
4356
|
// stored status already says so.
|
|
4357
|
-
//
|
|
4358
|
-
//
|
|
4359
|
-
|
|
4357
|
+
//
|
|
4358
|
+
// ONE presentation downgrade: an ACTIVE store whose approval carries no
|
|
4359
|
+
// usage meter (source.metered explicitly null) PRESENTS as error, so the
|
|
4360
|
+
// connections list shows the red state and the merchant knows to click in
|
|
4361
|
+
// — where the Fix-order-billing card and the billing Issue explain the
|
|
4362
|
+
// click. The STORED status stays active on purpose: serving and tracking
|
|
4363
|
+
// gate on it, and the orders recorded while the merchant fixes the plan
|
|
4364
|
+
// are the ones billed afterward.
|
|
4365
|
+
status: (data2) => {
|
|
4366
|
+
var _a;
|
|
4367
|
+
return (data2 == null ? void 0 : data2.status) === "active" && ((_a = data2 == null ? void 0 : data2.source) == null ? void 0 : _a.metered) === null ? "error" : data2 == null ? void 0 : data2.status;
|
|
4368
|
+
},
|
|
4360
4369
|
// Step types name the CAPABILITY, not this vendor. A second store platform
|
|
4361
4370
|
// implements the same four commerce steps, and the connection on the step
|
|
4362
4371
|
// says which store it runs against — so a merchant sees one "Create
|
|
@@ -5101,6 +5110,11 @@ var publicConnectionKeys = Object.freeze([
|
|
|
5101
5110
|
"settings",
|
|
5102
5111
|
"shop",
|
|
5103
5112
|
"slug",
|
|
5113
|
+
// Vendor identity plus the metered billing stamp — domain, id, label,
|
|
5114
|
+
// metered — no credentials live here (those are the encrypted settings
|
|
5115
|
+
// blob). The status and tasks hooks pivot on source.metered, so stripping
|
|
5116
|
+
// it here left the presented status blind to the one state it must show.
|
|
5117
|
+
"source",
|
|
5104
5118
|
"status",
|
|
5105
5119
|
"tasks",
|
|
5106
5120
|
"title",
|
package/dist/providers.cjs
CHANGED
|
@@ -4353,9 +4353,18 @@ var shopify_default2 = {
|
|
|
4353
4353
|
// there is nothing further to choose. `shop` absent means the install did not
|
|
4354
4354
|
// finish, which is a credential problem rather than a setup one, so the
|
|
4355
4355
|
// stored status already says so.
|
|
4356
|
-
//
|
|
4357
|
-
//
|
|
4358
|
-
|
|
4356
|
+
//
|
|
4357
|
+
// ONE presentation downgrade: an ACTIVE store whose approval carries no
|
|
4358
|
+
// usage meter (source.metered explicitly null) PRESENTS as error, so the
|
|
4359
|
+
// connections list shows the red state and the merchant knows to click in
|
|
4360
|
+
// — where the Fix-order-billing card and the billing Issue explain the
|
|
4361
|
+
// click. The STORED status stays active on purpose: serving and tracking
|
|
4362
|
+
// gate on it, and the orders recorded while the merchant fixes the plan
|
|
4363
|
+
// are the ones billed afterward.
|
|
4364
|
+
status: (data2) => {
|
|
4365
|
+
var _a;
|
|
4366
|
+
return (data2 == null ? void 0 : data2.status) === "active" && ((_a = data2 == null ? void 0 : data2.source) == null ? void 0 : _a.metered) === null ? "error" : data2 == null ? void 0 : data2.status;
|
|
4367
|
+
},
|
|
4359
4368
|
// Step types name the CAPABILITY, not this vendor. A second store platform
|
|
4360
4369
|
// implements the same four commerce steps, and the connection on the step
|
|
4361
4370
|
// says which store it runs against — so a merchant sees one "Create
|
|
@@ -5017,6 +5026,11 @@ var publicConnectionKeys = Object.freeze([
|
|
|
5017
5026
|
"settings",
|
|
5018
5027
|
"shop",
|
|
5019
5028
|
"slug",
|
|
5029
|
+
// Vendor identity plus the metered billing stamp — domain, id, label,
|
|
5030
|
+
// metered — no credentials live here (those are the encrypted settings
|
|
5031
|
+
// blob). The status and tasks hooks pivot on source.metered, so stripping
|
|
5032
|
+
// it here left the presented status blind to the one state it must show.
|
|
5033
|
+
"source",
|
|
5020
5034
|
"status",
|
|
5021
5035
|
"tasks",
|
|
5022
5036
|
"title",
|
package/dist/providers.js
CHANGED
|
@@ -4309,9 +4309,18 @@ var shopify_default2 = {
|
|
|
4309
4309
|
// there is nothing further to choose. `shop` absent means the install did not
|
|
4310
4310
|
// finish, which is a credential problem rather than a setup one, so the
|
|
4311
4311
|
// stored status already says so.
|
|
4312
|
-
//
|
|
4313
|
-
//
|
|
4314
|
-
|
|
4312
|
+
//
|
|
4313
|
+
// ONE presentation downgrade: an ACTIVE store whose approval carries no
|
|
4314
|
+
// usage meter (source.metered explicitly null) PRESENTS as error, so the
|
|
4315
|
+
// connections list shows the red state and the merchant knows to click in
|
|
4316
|
+
// — where the Fix-order-billing card and the billing Issue explain the
|
|
4317
|
+
// click. The STORED status stays active on purpose: serving and tracking
|
|
4318
|
+
// gate on it, and the orders recorded while the merchant fixes the plan
|
|
4319
|
+
// are the ones billed afterward.
|
|
4320
|
+
status: (data2) => {
|
|
4321
|
+
var _a;
|
|
4322
|
+
return (data2 == null ? void 0 : data2.status) === "active" && ((_a = data2 == null ? void 0 : data2.source) == null ? void 0 : _a.metered) === null ? "error" : data2 == null ? void 0 : data2.status;
|
|
4323
|
+
},
|
|
4315
4324
|
// Step types name the CAPABILITY, not this vendor. A second store platform
|
|
4316
4325
|
// implements the same four commerce steps, and the connection on the step
|
|
4317
4326
|
// says which store it runs against — so a merchant sees one "Create
|
|
@@ -4973,6 +4982,11 @@ var publicConnectionKeys = Object.freeze([
|
|
|
4973
4982
|
"settings",
|
|
4974
4983
|
"shop",
|
|
4975
4984
|
"slug",
|
|
4985
|
+
// Vendor identity plus the metered billing stamp — domain, id, label,
|
|
4986
|
+
// metered — no credentials live here (those are the encrypted settings
|
|
4987
|
+
// blob). The status and tasks hooks pivot on source.metered, so stripping
|
|
4988
|
+
// it here left the presented status blind to the one state it must show.
|
|
4989
|
+
"source",
|
|
4976
4990
|
"status",
|
|
4977
4991
|
"tasks",
|
|
4978
4992
|
"title",
|
package/package.json
CHANGED