@fayz-ai/plugin-tables 0.14.12 → 0.14.13
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/data/core-supabase.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-supabase.d.ts","sourceRoot":"","sources":["../../src/data/core-supabase.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AA2FjD,MAAM,WAAW,sBAAsB;IACrC,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;IACzC;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE;QACV,YAAY,EAAE,MAAM,CAAA;QACpB,uEAAuE;QACvE,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,mDAAmD;QACnD,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,yCAAyC;QACzC,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAA;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,sBAAsB,CAAA;CAChC;AAID,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,kBAAkB,
|
|
1
|
+
{"version":3,"file":"core-supabase.d.ts","sourceRoot":"","sources":["../../src/data/core-supabase.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AA2FjD,MAAM,WAAW,sBAAsB;IACrC,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,MAAM,GAAG,SAAS,GAAG,IAAI,CAAA;IACzC;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE;QACV,YAAY,EAAE,MAAM,CAAA;QACpB,uEAAuE;QACvE,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,mDAAmD;QACnD,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,yCAAyC;QACzC,GAAG,CAAC,EAAE,MAAM,CAAA;KACb,CAAA;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,MAAM,CAAC,EAAE,sBAAsB,CAAA;CAChC;AAID,wBAAgB,wBAAwB,CAAC,OAAO,CAAC,EAAE,yBAAyB,GAAG,kBAAkB,CAo+FhG"}
|
package/dist/index.js
CHANGED
|
@@ -2660,7 +2660,7 @@ function createCoreTablesProvider(options) {
|
|
|
2660
2660
|
external_totals:metadata->external->totals, external_payment:metadata->external->payment,
|
|
2661
2661
|
external_customer:metadata->external->customer->>name, external_due:metadata->external->fulfillment->>deliveryAt,
|
|
2662
2662
|
external_address:metadata->external->fulfillment->address->>formatted,
|
|
2663
|
-
${ORDER_EXT}!inner ( table_id, unit_id, seated_at, delivery_source )`).eq("tenant_id", tenant()).not("status", "in", '("completed","cancelled")');
|
|
2663
|
+
${ORDER_EXT}!inner ( table_id, unit_id, seated_at, delivery_source, customer_name )`).eq("tenant_id", tenant()).not("status", "in", '("completed","cancelled")');
|
|
2664
2664
|
q = especie ? q.or(`channel.eq.${channel},and(channel.is.null,kind.eq.${especie})`) : q.eq("channel", channel);
|
|
2665
2665
|
const { data, error } = await q;
|
|
2666
2666
|
if (error) throw new Error(error.message);
|
|
@@ -2686,7 +2686,8 @@ function createCoreTablesProvider(options) {
|
|
|
2686
2686
|
...marketplaceMoney(r),
|
|
2687
2687
|
// Who ordered, where it goes and when it is promised, as the
|
|
2688
2688
|
// marketplace sent them: the delivery card shows them under the number.
|
|
2689
|
-
|
|
2689
|
+
// The marketplace's customer; otherwise the name the house typed on the ticket.
|
|
2690
|
+
...typeof r.external_customer === "string" && r.external_customer.trim() ? { customerName: r.external_customer.trim() } : typeof ext?.customer_name === "string" && ext.customer_name.trim() ? { customerName: ext.customer_name.trim() } : {},
|
|
2690
2691
|
...typeof r.external_address === "string" && r.external_address.trim() ? { address: r.external_address.trim() } : {},
|
|
2691
2692
|
...typeof r.external_due === "string" && r.external_due ? { dueAt: r.external_due } : {}
|
|
2692
2693
|
};
|