@drawbridge/drawbridge-utils 0.0.130 → 0.0.131
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.
|
@@ -4855,7 +4855,7 @@ var projectConnection = (record) => {
|
|
|
4855
4855
|
var resolveConnection = (item, data2, env = {}) => {
|
|
4856
4856
|
if (!item) return item;
|
|
4857
4857
|
return Object.fromEntries(
|
|
4858
|
-
Object.entries(item).filter(([key]) => !["auth", "enabled", "fields", "hooks", "inbound", "provider", "requires", "steps", "supports"].includes(key)).map(([key, value]) => [
|
|
4858
|
+
Object.entries(item).filter(([key]) => !["auth", "enabled", "fields", "hooks", "inbound", "provider", "requires", "status", "steps", "supports"].includes(key)).map(([key, value]) => [
|
|
4859
4859
|
key,
|
|
4860
4860
|
typeof value === "function" ? value(data2, env) : value
|
|
4861
4861
|
])
|
|
@@ -6033,7 +6033,14 @@ const resolveConnection = ( item, data, env = {} ) => {
|
|
|
6033
6033
|
// PLATFORM configuration — which credentials an admin types in for this
|
|
6034
6034
|
// vendor — and no merchant-facing resolution has any business carrying
|
|
6035
6035
|
// it, even as bare descriptors.
|
|
6036
|
-
|
|
6036
|
+
//
|
|
6037
|
+
// `status` is in it because the hook judges a STORED DOCUMENT, and
|
|
6038
|
+
// resolution runs over whatever data it is handed — including none.
|
|
6039
|
+
// Asked about an absent document, the hook answers 'pending', and that
|
|
6040
|
+
// answer baked a Pending badge into Klaviyo, Mailchimp and Attentive
|
|
6041
|
+
// cards nobody had connected. Status belongs to the caller's own
|
|
6042
|
+
// read-time pass (api's applyStatus), never to projection.
|
|
6043
|
+
.filter( ( [ key ] ) => ! [ 'auth', 'enabled', 'fields', 'hooks', 'inbound', 'provider', 'requires', 'status', 'steps', 'supports' ].includes( key ) )
|
|
6037
6044
|
.map( ( [ key, value ] ) => [
|
|
6038
6045
|
key,
|
|
6039
6046
|
( typeof value === 'function' ? value( data, env ) : value )
|
|
@@ -6033,7 +6033,14 @@ const resolveConnection = ( item, data, env = {} ) => {
|
|
|
6033
6033
|
// PLATFORM configuration — which credentials an admin types in for this
|
|
6034
6034
|
// vendor — and no merchant-facing resolution has any business carrying
|
|
6035
6035
|
// it, even as bare descriptors.
|
|
6036
|
-
|
|
6036
|
+
//
|
|
6037
|
+
// `status` is in it because the hook judges a STORED DOCUMENT, and
|
|
6038
|
+
// resolution runs over whatever data it is handed — including none.
|
|
6039
|
+
// Asked about an absent document, the hook answers 'pending', and that
|
|
6040
|
+
// answer baked a Pending badge into Klaviyo, Mailchimp and Attentive
|
|
6041
|
+
// cards nobody had connected. Status belongs to the caller's own
|
|
6042
|
+
// read-time pass (api's applyStatus), never to projection.
|
|
6043
|
+
.filter( ( [ key ] ) => ! [ 'auth', 'enabled', 'fields', 'hooks', 'inbound', 'provider', 'requires', 'status', 'steps', 'supports' ].includes( key ) )
|
|
6037
6044
|
.map( ( [ key, value ] ) => [
|
|
6038
6045
|
key,
|
|
6039
6046
|
( typeof value === 'function' ? value( data, env ) : value )
|
|
@@ -4781,7 +4781,7 @@ var projectConnection = (record) => {
|
|
|
4781
4781
|
var resolveConnection = (item, data2, env = {}) => {
|
|
4782
4782
|
if (!item) return item;
|
|
4783
4783
|
return Object.fromEntries(
|
|
4784
|
-
Object.entries(item).filter(([key]) => !["auth", "enabled", "fields", "hooks", "inbound", "provider", "requires", "steps", "supports"].includes(key)).map(([key, value]) => [
|
|
4784
|
+
Object.entries(item).filter(([key]) => !["auth", "enabled", "fields", "hooks", "inbound", "provider", "requires", "status", "steps", "supports"].includes(key)).map(([key, value]) => [
|
|
4785
4785
|
key,
|
|
4786
4786
|
typeof value === "function" ? value(data2, env) : value
|
|
4787
4787
|
])
|
package/package.json
CHANGED