@fctc/interface-logic 4.3.7 → 4.3.8
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/hooks.js +2 -7
- package/dist/hooks.mjs +2 -7
- package/dist/provider.js +2 -7
- package/dist/provider.mjs +2 -7
- package/dist/services.js +2 -7
- package/dist/services.mjs +2 -7
- package/package.json +1 -1
package/dist/hooks.js
CHANGED
|
@@ -5648,7 +5648,7 @@ var addRecordResponseHandler = ({
|
|
|
5648
5648
|
id,
|
|
5649
5649
|
data
|
|
5650
5650
|
}) => {
|
|
5651
|
-
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */) {
|
|
5651
|
+
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */ || modelName === "res.partner" /* RES_PARTNER */) {
|
|
5652
5652
|
return [[id, ""]];
|
|
5653
5653
|
}
|
|
5654
5654
|
return data;
|
|
@@ -5689,12 +5689,8 @@ var ModelRepository = class {
|
|
|
5689
5689
|
const snapshot = await loadSnapshot({
|
|
5690
5690
|
modelName
|
|
5691
5691
|
});
|
|
5692
|
-
console.log("modelName", modelName);
|
|
5693
|
-
console.log("snapshot", snapshot);
|
|
5694
5692
|
const existingIds = getExistingIds(snapshot);
|
|
5695
|
-
console.log("existingIds", existingIds);
|
|
5696
5693
|
const newId = generateNextId(existingIds, snapshot.data.length);
|
|
5697
|
-
console.log("newId", newId);
|
|
5698
5694
|
snapshot.data.push({
|
|
5699
5695
|
...newRecord,
|
|
5700
5696
|
id: newId
|
|
@@ -5707,8 +5703,7 @@ var ModelRepository = class {
|
|
|
5707
5703
|
console.error("failed to add new record");
|
|
5708
5704
|
return [];
|
|
5709
5705
|
}
|
|
5710
|
-
console.log(
|
|
5711
|
-
console.log(snapshot.data);
|
|
5706
|
+
console.log("lib data:", snapshot.data);
|
|
5712
5707
|
const response = addRecordResponseHandler({
|
|
5713
5708
|
id: newId,
|
|
5714
5709
|
modelName,
|
package/dist/hooks.mjs
CHANGED
|
@@ -5500,7 +5500,7 @@ var addRecordResponseHandler = ({
|
|
|
5500
5500
|
id,
|
|
5501
5501
|
data
|
|
5502
5502
|
}) => {
|
|
5503
|
-
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */) {
|
|
5503
|
+
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */ || modelName === "res.partner" /* RES_PARTNER */) {
|
|
5504
5504
|
return [[id, ""]];
|
|
5505
5505
|
}
|
|
5506
5506
|
return data;
|
|
@@ -5541,12 +5541,8 @@ var ModelRepository = class {
|
|
|
5541
5541
|
const snapshot = await loadSnapshot({
|
|
5542
5542
|
modelName
|
|
5543
5543
|
});
|
|
5544
|
-
console.log("modelName", modelName);
|
|
5545
|
-
console.log("snapshot", snapshot);
|
|
5546
5544
|
const existingIds = getExistingIds(snapshot);
|
|
5547
|
-
console.log("existingIds", existingIds);
|
|
5548
5545
|
const newId = generateNextId(existingIds, snapshot.data.length);
|
|
5549
|
-
console.log("newId", newId);
|
|
5550
5546
|
snapshot.data.push({
|
|
5551
5547
|
...newRecord,
|
|
5552
5548
|
id: newId
|
|
@@ -5559,8 +5555,7 @@ var ModelRepository = class {
|
|
|
5559
5555
|
console.error("failed to add new record");
|
|
5560
5556
|
return [];
|
|
5561
5557
|
}
|
|
5562
|
-
console.log(
|
|
5563
|
-
console.log(snapshot.data);
|
|
5558
|
+
console.log("lib data:", snapshot.data);
|
|
5564
5559
|
const response = addRecordResponseHandler({
|
|
5565
5560
|
id: newId,
|
|
5566
5561
|
modelName,
|
package/dist/provider.js
CHANGED
|
@@ -5630,7 +5630,7 @@ var addRecordResponseHandler = ({
|
|
|
5630
5630
|
id,
|
|
5631
5631
|
data
|
|
5632
5632
|
}) => {
|
|
5633
|
-
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */) {
|
|
5633
|
+
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */ || modelName === "res.partner" /* RES_PARTNER */) {
|
|
5634
5634
|
return [[id, ""]];
|
|
5635
5635
|
}
|
|
5636
5636
|
return data;
|
|
@@ -5671,12 +5671,8 @@ var ModelRepository = class {
|
|
|
5671
5671
|
const snapshot = await loadSnapshot({
|
|
5672
5672
|
modelName
|
|
5673
5673
|
});
|
|
5674
|
-
console.log("modelName", modelName);
|
|
5675
|
-
console.log("snapshot", snapshot);
|
|
5676
5674
|
const existingIds = getExistingIds(snapshot);
|
|
5677
|
-
console.log("existingIds", existingIds);
|
|
5678
5675
|
const newId = generateNextId(existingIds, snapshot.data.length);
|
|
5679
|
-
console.log("newId", newId);
|
|
5680
5676
|
snapshot.data.push({
|
|
5681
5677
|
...newRecord,
|
|
5682
5678
|
id: newId
|
|
@@ -5689,8 +5685,7 @@ var ModelRepository = class {
|
|
|
5689
5685
|
console.error("failed to add new record");
|
|
5690
5686
|
return [];
|
|
5691
5687
|
}
|
|
5692
|
-
console.log(
|
|
5693
|
-
console.log(snapshot.data);
|
|
5688
|
+
console.log("lib data:", snapshot.data);
|
|
5694
5689
|
const response = addRecordResponseHandler({
|
|
5695
5690
|
id: newId,
|
|
5696
5691
|
modelName,
|
package/dist/provider.mjs
CHANGED
|
@@ -5587,7 +5587,7 @@ var addRecordResponseHandler = ({
|
|
|
5587
5587
|
id,
|
|
5588
5588
|
data
|
|
5589
5589
|
}) => {
|
|
5590
|
-
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */) {
|
|
5590
|
+
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */ || modelName === "res.partner" /* RES_PARTNER */) {
|
|
5591
5591
|
return [[id, ""]];
|
|
5592
5592
|
}
|
|
5593
5593
|
return data;
|
|
@@ -5628,12 +5628,8 @@ var ModelRepository = class {
|
|
|
5628
5628
|
const snapshot = await loadSnapshot({
|
|
5629
5629
|
modelName
|
|
5630
5630
|
});
|
|
5631
|
-
console.log("modelName", modelName);
|
|
5632
|
-
console.log("snapshot", snapshot);
|
|
5633
5631
|
const existingIds = getExistingIds(snapshot);
|
|
5634
|
-
console.log("existingIds", existingIds);
|
|
5635
5632
|
const newId = generateNextId(existingIds, snapshot.data.length);
|
|
5636
|
-
console.log("newId", newId);
|
|
5637
5633
|
snapshot.data.push({
|
|
5638
5634
|
...newRecord,
|
|
5639
5635
|
id: newId
|
|
@@ -5646,8 +5642,7 @@ var ModelRepository = class {
|
|
|
5646
5642
|
console.error("failed to add new record");
|
|
5647
5643
|
return [];
|
|
5648
5644
|
}
|
|
5649
|
-
console.log(
|
|
5650
|
-
console.log(snapshot.data);
|
|
5645
|
+
console.log("lib data:", snapshot.data);
|
|
5651
5646
|
const response = addRecordResponseHandler({
|
|
5652
5647
|
id: newId,
|
|
5653
5648
|
modelName,
|
package/dist/services.js
CHANGED
|
@@ -3610,7 +3610,7 @@ var addRecordResponseHandler = ({
|
|
|
3610
3610
|
id,
|
|
3611
3611
|
data
|
|
3612
3612
|
}) => {
|
|
3613
|
-
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */) {
|
|
3613
|
+
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */ || modelName === "res.partner" /* RES_PARTNER */) {
|
|
3614
3614
|
return [[id, ""]];
|
|
3615
3615
|
}
|
|
3616
3616
|
return data;
|
|
@@ -3651,12 +3651,8 @@ var ModelRepository = class {
|
|
|
3651
3651
|
const snapshot = await loadSnapshot({
|
|
3652
3652
|
modelName
|
|
3653
3653
|
});
|
|
3654
|
-
console.log("modelName", modelName);
|
|
3655
|
-
console.log("snapshot", snapshot);
|
|
3656
3654
|
const existingIds = getExistingIds(snapshot);
|
|
3657
|
-
console.log("existingIds", existingIds);
|
|
3658
3655
|
const newId = generateNextId(existingIds, snapshot.data.length);
|
|
3659
|
-
console.log("newId", newId);
|
|
3660
3656
|
snapshot.data.push({
|
|
3661
3657
|
...newRecord,
|
|
3662
3658
|
id: newId
|
|
@@ -3669,8 +3665,7 @@ var ModelRepository = class {
|
|
|
3669
3665
|
console.error("failed to add new record");
|
|
3670
3666
|
return [];
|
|
3671
3667
|
}
|
|
3672
|
-
console.log(
|
|
3673
|
-
console.log(snapshot.data);
|
|
3668
|
+
console.log("lib data:", snapshot.data);
|
|
3674
3669
|
const response = addRecordResponseHandler({
|
|
3675
3670
|
id: newId,
|
|
3676
3671
|
modelName,
|
package/dist/services.mjs
CHANGED
|
@@ -3563,7 +3563,7 @@ var addRecordResponseHandler = ({
|
|
|
3563
3563
|
id,
|
|
3564
3564
|
data
|
|
3565
3565
|
}) => {
|
|
3566
|
-
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */) {
|
|
3566
|
+
if (modelName === "restaurant.floor" /* RESTAURANT_FLOOR */ || modelName === "res.partner" /* RES_PARTNER */) {
|
|
3567
3567
|
return [[id, ""]];
|
|
3568
3568
|
}
|
|
3569
3569
|
return data;
|
|
@@ -3604,12 +3604,8 @@ var ModelRepository = class {
|
|
|
3604
3604
|
const snapshot = await loadSnapshot({
|
|
3605
3605
|
modelName
|
|
3606
3606
|
});
|
|
3607
|
-
console.log("modelName", modelName);
|
|
3608
|
-
console.log("snapshot", snapshot);
|
|
3609
3607
|
const existingIds = getExistingIds(snapshot);
|
|
3610
|
-
console.log("existingIds", existingIds);
|
|
3611
3608
|
const newId = generateNextId(existingIds, snapshot.data.length);
|
|
3612
|
-
console.log("newId", newId);
|
|
3613
3609
|
snapshot.data.push({
|
|
3614
3610
|
...newRecord,
|
|
3615
3611
|
id: newId
|
|
@@ -3622,8 +3618,7 @@ var ModelRepository = class {
|
|
|
3622
3618
|
console.error("failed to add new record");
|
|
3623
3619
|
return [];
|
|
3624
3620
|
}
|
|
3625
|
-
console.log(
|
|
3626
|
-
console.log(snapshot.data);
|
|
3621
|
+
console.log("lib data:", snapshot.data);
|
|
3627
3622
|
const response = addRecordResponseHandler({
|
|
3628
3623
|
id: newId,
|
|
3629
3624
|
modelName,
|