@flowselections/floriday-voorraad 1.0.21 → 1.0.23
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-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
- package/dist-lib/components/voorraad/ArtikelWizard.js +31 -1
- package/dist-lib/components/voorraad/FloridayInfoCard.d.ts +12 -0
- package/dist-lib/components/voorraad/FloridayInfoCard.d.ts.map +1 -0
- package/dist-lib/components/voorraad/FloridayInfoCard.js +85 -0
- package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
- package/dist-lib/components/voorraad/VoorraadTable.js +15 -1
- package/dist-lib/hooks/useVoorraadData.d.ts.map +1 -1
- package/dist-lib/hooks/useVoorraadData.js +80 -11
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +26 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +26 -0
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +26 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +26 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/floricode-required-features.functions.d.ts +26 -0
- package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-client.d.ts +4 -0
- package/dist-lib/lib/floriday-client.d.ts.map +1 -1
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts +26 -0
- package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-gateway.functions.d.ts +130 -0
- package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-info.d.ts +54 -0
- package/dist-lib/lib/floriday-info.d.ts.map +1 -0
- package/dist-lib/lib/floriday-info.js +114 -0
- package/dist-lib/lib/floriday-warehouse.functions.d.ts +78 -0
- package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
- package/dist-lib/lib/floriday-writes.functions.d.ts +52 -0
- package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Uniform mapping van de rauwe Floriday `trade_items_cache.data` payload naar een
|
|
3
|
+
* makkelijk te tonen object. Wordt gebruikt door zowel de voorraadlijst (thumbnail
|
|
4
|
+
* + tooltip) als het product-detail (volledige info-kaart).
|
|
5
|
+
*
|
|
6
|
+
* Bevat GEEN vertaling of interpretatie van VBN-kenmerken — die worden elders
|
|
7
|
+
* (via `useCodeList`) gelabeld. Hier houden we alleen de rauwe codes bij.
|
|
8
|
+
*/
|
|
9
|
+
export interface FloridayPhoto {
|
|
10
|
+
url: string;
|
|
11
|
+
type: string | null;
|
|
12
|
+
primary: boolean;
|
|
13
|
+
sortIndex: number | null;
|
|
14
|
+
}
|
|
15
|
+
export interface FloridayCharacteristic {
|
|
16
|
+
vbnCode: string;
|
|
17
|
+
vbnValueCode: string;
|
|
18
|
+
}
|
|
19
|
+
export interface FloridayPackingConfig {
|
|
20
|
+
packagingCode: string | null;
|
|
21
|
+
customPackageId: string | null;
|
|
22
|
+
loadCarrier: string;
|
|
23
|
+
piecesPerPackage: number;
|
|
24
|
+
packagesPerLayer: number;
|
|
25
|
+
layersPerLoadCarrier: number;
|
|
26
|
+
primary: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface FloridaySeasonalPeriod {
|
|
29
|
+
startWeek: number;
|
|
30
|
+
endWeek: number;
|
|
31
|
+
}
|
|
32
|
+
export interface FloridayInfo {
|
|
33
|
+
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
photoUrl: string | null;
|
|
36
|
+
photos: FloridayPhoto[];
|
|
37
|
+
articleGtin: string | null;
|
|
38
|
+
supplierArticleCode: string | null;
|
|
39
|
+
supplierReference: string | null;
|
|
40
|
+
vbnProductCode: number | null;
|
|
41
|
+
botanicalNames: string[];
|
|
42
|
+
characteristics: FloridayCharacteristic[];
|
|
43
|
+
packingConfigurations: FloridayPackingConfig[];
|
|
44
|
+
countryOfOrigin: string[];
|
|
45
|
+
seasonalPeriods: FloridaySeasonalPeriod[];
|
|
46
|
+
lastModifiedDateTime: string | null;
|
|
47
|
+
creationDateTime: string | null;
|
|
48
|
+
tradeItemVersion: number | null;
|
|
49
|
+
isHiddenInCatalog: boolean;
|
|
50
|
+
raw: unknown;
|
|
51
|
+
}
|
|
52
|
+
export declare function floridayInfoFromCache(raw: unknown): FloridayInfo | null;
|
|
53
|
+
export declare const LOAD_CARRIER_LABELS: Record<string, string>;
|
|
54
|
+
//# sourceMappingURL=floriday-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"floriday-info.d.ts","sourceRoot":"","sources":["../../src/lib/floriday-info.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,sBAAsB,EAAE,CAAC;IAC1C,qBAAqB,EAAE,qBAAqB,EAAE,CAAC;IAC/C,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,EAAE,sBAAsB,EAAE,CAAC;IAC1C,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,GAAG,EAAE,OAAO,CAAC;CACd;AAaD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,GAAG,IAAI,CA0GvE;AAED,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOtD,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Uniform mapping van de rauwe Floriday `trade_items_cache.data` payload naar een
|
|
3
|
+
* makkelijk te tonen object. Wordt gebruikt door zowel de voorraadlijst (thumbnail
|
|
4
|
+
* + tooltip) als het product-detail (volledige info-kaart).
|
|
5
|
+
*
|
|
6
|
+
* Bevat GEEN vertaling of interpretatie van VBN-kenmerken — die worden elders
|
|
7
|
+
* (via `useCodeList`) gelabeld. Hier houden we alleen de rauwe codes bij.
|
|
8
|
+
*/
|
|
9
|
+
function pickLocalized(value) {
|
|
10
|
+
if (!value)
|
|
11
|
+
return "";
|
|
12
|
+
if (typeof value === "string")
|
|
13
|
+
return value;
|
|
14
|
+
if (typeof value === "object") {
|
|
15
|
+
const obj = value;
|
|
16
|
+
const v = obj.nl ?? obj.en ?? obj.de ?? Object.values(obj)[0];
|
|
17
|
+
return typeof v === "string" ? v : "";
|
|
18
|
+
}
|
|
19
|
+
return String(value);
|
|
20
|
+
}
|
|
21
|
+
export function floridayInfoFromCache(raw) {
|
|
22
|
+
if (!raw || typeof raw !== "object")
|
|
23
|
+
return null;
|
|
24
|
+
const r = raw;
|
|
25
|
+
const id = (typeof r.tradeItemId === "string" && r.tradeItemId) ||
|
|
26
|
+
(typeof r.id === "string" && r.id) ||
|
|
27
|
+
null;
|
|
28
|
+
if (!id)
|
|
29
|
+
return null;
|
|
30
|
+
const rawPhotos = Array.isArray(r.photos) ? r.photos : [];
|
|
31
|
+
const photos = rawPhotos
|
|
32
|
+
.filter((p) => p && typeof p.url === "string")
|
|
33
|
+
.map((p) => ({
|
|
34
|
+
url: String(p.url),
|
|
35
|
+
type: typeof p.type === "string" ? p.type : null,
|
|
36
|
+
primary: Boolean(p.primary),
|
|
37
|
+
sortIndex: typeof p.sortIndex === "number" ? p.sortIndex : null,
|
|
38
|
+
}))
|
|
39
|
+
.sort((a, b) => {
|
|
40
|
+
if (a.primary !== b.primary)
|
|
41
|
+
return a.primary ? -1 : 1;
|
|
42
|
+
const ai = a.sortIndex ?? 999;
|
|
43
|
+
const bi = b.sortIndex ?? 999;
|
|
44
|
+
return ai - bi;
|
|
45
|
+
});
|
|
46
|
+
const characteristics = Array.isArray(r.characteristics)
|
|
47
|
+
? r.characteristics
|
|
48
|
+
.filter((c) => c && typeof c.vbnCode === "string")
|
|
49
|
+
.map((c) => ({
|
|
50
|
+
vbnCode: String(c.vbnCode),
|
|
51
|
+
vbnValueCode: String(c.vbnValueCode ?? ""),
|
|
52
|
+
}))
|
|
53
|
+
: [];
|
|
54
|
+
const packingConfigurations = Array.isArray(r.packingConfigurations)
|
|
55
|
+
? r.packingConfigurations.map((p) => ({
|
|
56
|
+
packagingCode: p?.package?.vbnPackageCode != null
|
|
57
|
+
? String(p.package.vbnPackageCode)
|
|
58
|
+
: null,
|
|
59
|
+
customPackageId: p?.package?.customPackageId ?? null,
|
|
60
|
+
loadCarrier: String(p?.loadCarrier ?? "NONE"),
|
|
61
|
+
piecesPerPackage: Number(p?.piecesPerPackage ?? 0) || 0,
|
|
62
|
+
packagesPerLayer: Number(p?.packagesPerLayer ?? 0) || 0,
|
|
63
|
+
layersPerLoadCarrier: Number(p?.layersPerLoadCarrier ?? 0) || 0,
|
|
64
|
+
primary: Boolean(p?.primary),
|
|
65
|
+
}))
|
|
66
|
+
: [];
|
|
67
|
+
const seasonalPeriods = Array.isArray(r.seasonalPeriods)
|
|
68
|
+
? r.seasonalPeriods.map((s) => ({
|
|
69
|
+
startWeek: Number(s?.startWeek ?? 0) || 0,
|
|
70
|
+
endWeek: Number(s?.endWeek ?? 0) || 0,
|
|
71
|
+
}))
|
|
72
|
+
: [];
|
|
73
|
+
const botanicalNames = Array.isArray(r.botanicalNames)
|
|
74
|
+
? r.botanicalNames
|
|
75
|
+
.map((b) => typeof b === "string" ? b : pickLocalized(b?.name ?? b))
|
|
76
|
+
.filter((s) => s.length > 0)
|
|
77
|
+
: [];
|
|
78
|
+
return {
|
|
79
|
+
id,
|
|
80
|
+
name: pickLocalized(r.tradeItemName ?? r.name),
|
|
81
|
+
photoUrl: photos[0]?.url ?? null,
|
|
82
|
+
photos,
|
|
83
|
+
articleGtin: typeof r.articleGtin === "string" && r.articleGtin ? r.articleGtin : null,
|
|
84
|
+
supplierArticleCode: typeof r.supplierArticleCode === "string" && r.supplierArticleCode
|
|
85
|
+
? r.supplierArticleCode
|
|
86
|
+
: null,
|
|
87
|
+
supplierReference: typeof r.tradeItemReference === "string" && r.tradeItemReference
|
|
88
|
+
? r.tradeItemReference
|
|
89
|
+
: null,
|
|
90
|
+
vbnProductCode: typeof r.vbnProductCode === "number" ? r.vbnProductCode : null,
|
|
91
|
+
botanicalNames,
|
|
92
|
+
characteristics,
|
|
93
|
+
packingConfigurations,
|
|
94
|
+
countryOfOrigin: Array.isArray(r.countryOfOriginIsoCodes)
|
|
95
|
+
? r.countryOfOriginIsoCodes.map((c) => String(c))
|
|
96
|
+
: [],
|
|
97
|
+
seasonalPeriods,
|
|
98
|
+
lastModifiedDateTime: typeof r.lastModifiedDateTime === "string"
|
|
99
|
+
? r.lastModifiedDateTime
|
|
100
|
+
: null,
|
|
101
|
+
creationDateTime: typeof r.creationDateTime === "string" ? r.creationDateTime : null,
|
|
102
|
+
tradeItemVersion: typeof r.tradeItemVersion === "number" ? r.tradeItemVersion : null,
|
|
103
|
+
isHiddenInCatalog: Boolean(r.isHiddenInCatalog),
|
|
104
|
+
raw,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export const LOAD_CARRIER_LABELS = {
|
|
108
|
+
AUCTION_TROLLEY: "Stapelwagen",
|
|
109
|
+
DANISH_TROLLEY: "Deense container",
|
|
110
|
+
EURO_TROLLEY: "Euro-rolcontainer",
|
|
111
|
+
PALLET: "Pallet",
|
|
112
|
+
EURO_PALLET: "Euro-pallet",
|
|
113
|
+
NONE: "Geen ladingdrager",
|
|
114
|
+
};
|
|
@@ -4714,6 +4714,8 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
|
|
|
4714
4714
|
Row: {
|
|
4715
4715
|
buyer_organization_id: string | null;
|
|
4716
4716
|
connection_id: string;
|
|
4717
|
+
controlled_at: string | null;
|
|
4718
|
+
controlled_by: string | null;
|
|
4717
4719
|
created_at: string;
|
|
4718
4720
|
data: import("../integrations/supabase/types").Json;
|
|
4719
4721
|
floriday_id: string;
|
|
@@ -4725,6 +4727,8 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
|
|
|
4725
4727
|
Insert: {
|
|
4726
4728
|
buyer_organization_id?: string | null;
|
|
4727
4729
|
connection_id: string;
|
|
4730
|
+
controlled_at?: string | null;
|
|
4731
|
+
controlled_by?: string | null;
|
|
4728
4732
|
created_at?: string;
|
|
4729
4733
|
data: import("../integrations/supabase/types").Json;
|
|
4730
4734
|
floriday_id: string;
|
|
@@ -4736,6 +4740,8 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
|
|
|
4736
4740
|
Update: {
|
|
4737
4741
|
buyer_organization_id?: string | null;
|
|
4738
4742
|
connection_id?: string;
|
|
4743
|
+
controlled_at?: string | null;
|
|
4744
|
+
controlled_by?: string | null;
|
|
4739
4745
|
created_at?: string;
|
|
4740
4746
|
data?: import("../integrations/supabase/types").Json;
|
|
4741
4747
|
floriday_id?: string;
|
|
@@ -7754,6 +7760,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
|
|
|
7754
7760
|
id: string;
|
|
7755
7761
|
image_url: string | null;
|
|
7756
7762
|
incoming_quantity: number;
|
|
7763
|
+
is_layer: boolean;
|
|
7757
7764
|
layers_per_cart: number;
|
|
7758
7765
|
location: string;
|
|
7759
7766
|
min_quantity: number;
|
|
@@ -7781,6 +7788,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
|
|
|
7781
7788
|
id?: string;
|
|
7782
7789
|
image_url?: string | null;
|
|
7783
7790
|
incoming_quantity?: number;
|
|
7791
|
+
is_layer?: boolean;
|
|
7784
7792
|
layers_per_cart?: number;
|
|
7785
7793
|
location: string;
|
|
7786
7794
|
min_quantity?: number;
|
|
@@ -7808,6 +7816,7 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
|
|
|
7808
7816
|
id?: string;
|
|
7809
7817
|
image_url?: string | null;
|
|
7810
7818
|
incoming_quantity?: number;
|
|
7819
|
+
is_layer?: boolean;
|
|
7811
7820
|
layers_per_cart?: number;
|
|
7812
7821
|
location?: string;
|
|
7813
7822
|
min_quantity?: number;
|
|
@@ -11322,6 +11331,13 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
|
|
|
11322
11331
|
};
|
|
11323
11332
|
Returns: undefined;
|
|
11324
11333
|
};
|
|
11334
|
+
mark_salesorder_controlled: {
|
|
11335
|
+
Args: {
|
|
11336
|
+
p_controlled: boolean;
|
|
11337
|
+
p_floriday_id: string;
|
|
11338
|
+
};
|
|
11339
|
+
Returns: undefined;
|
|
11340
|
+
};
|
|
11325
11341
|
mark_shipment_shipped: {
|
|
11326
11342
|
Args: {
|
|
11327
11343
|
p_shipment_id: string;
|
|
@@ -11778,6 +11794,10 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
|
|
|
11778
11794
|
};
|
|
11779
11795
|
Returns: number;
|
|
11780
11796
|
};
|
|
11797
|
+
self_heal_floriday_links: {
|
|
11798
|
+
Args: never;
|
|
11799
|
+
Returns: number;
|
|
11800
|
+
};
|
|
11781
11801
|
show_limit: {
|
|
11782
11802
|
Args: never;
|
|
11783
11803
|
Returns: number;
|
|
@@ -11800,6 +11820,12 @@ export declare const listWarehousesFn: import("@tanstack/start-client-core").Opt
|
|
|
11800
11820
|
};
|
|
11801
11821
|
Returns: undefined;
|
|
11802
11822
|
};
|
|
11823
|
+
sync_product_group_belading: {
|
|
11824
|
+
Args: {
|
|
11825
|
+
_group_id: string;
|
|
11826
|
+
};
|
|
11827
|
+
Returns: undefined;
|
|
11828
|
+
};
|
|
11803
11829
|
sync_product_packing_from_floriday_cache: {
|
|
11804
11830
|
Args: {
|
|
11805
11831
|
p_floriday_id: string;
|
|
@@ -16550,6 +16576,8 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
16550
16576
|
Row: {
|
|
16551
16577
|
buyer_organization_id: string | null;
|
|
16552
16578
|
connection_id: string;
|
|
16579
|
+
controlled_at: string | null;
|
|
16580
|
+
controlled_by: string | null;
|
|
16553
16581
|
created_at: string;
|
|
16554
16582
|
data: import("../integrations/supabase/types").Json;
|
|
16555
16583
|
floriday_id: string;
|
|
@@ -16561,6 +16589,8 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
16561
16589
|
Insert: {
|
|
16562
16590
|
buyer_organization_id?: string | null;
|
|
16563
16591
|
connection_id: string;
|
|
16592
|
+
controlled_at?: string | null;
|
|
16593
|
+
controlled_by?: string | null;
|
|
16564
16594
|
created_at?: string;
|
|
16565
16595
|
data: import("../integrations/supabase/types").Json;
|
|
16566
16596
|
floriday_id: string;
|
|
@@ -16572,6 +16602,8 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
16572
16602
|
Update: {
|
|
16573
16603
|
buyer_organization_id?: string | null;
|
|
16574
16604
|
connection_id?: string;
|
|
16605
|
+
controlled_at?: string | null;
|
|
16606
|
+
controlled_by?: string | null;
|
|
16575
16607
|
created_at?: string;
|
|
16576
16608
|
data?: import("../integrations/supabase/types").Json;
|
|
16577
16609
|
floriday_id?: string;
|
|
@@ -19590,6 +19622,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
19590
19622
|
id: string;
|
|
19591
19623
|
image_url: string | null;
|
|
19592
19624
|
incoming_quantity: number;
|
|
19625
|
+
is_layer: boolean;
|
|
19593
19626
|
layers_per_cart: number;
|
|
19594
19627
|
location: string;
|
|
19595
19628
|
min_quantity: number;
|
|
@@ -19617,6 +19650,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
19617
19650
|
id?: string;
|
|
19618
19651
|
image_url?: string | null;
|
|
19619
19652
|
incoming_quantity?: number;
|
|
19653
|
+
is_layer?: boolean;
|
|
19620
19654
|
layers_per_cart?: number;
|
|
19621
19655
|
location: string;
|
|
19622
19656
|
min_quantity?: number;
|
|
@@ -19644,6 +19678,7 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
19644
19678
|
id?: string;
|
|
19645
19679
|
image_url?: string | null;
|
|
19646
19680
|
incoming_quantity?: number;
|
|
19681
|
+
is_layer?: boolean;
|
|
19647
19682
|
layers_per_cart?: number;
|
|
19648
19683
|
location?: string;
|
|
19649
19684
|
min_quantity?: number;
|
|
@@ -23158,6 +23193,13 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
23158
23193
|
};
|
|
23159
23194
|
Returns: undefined;
|
|
23160
23195
|
};
|
|
23196
|
+
mark_salesorder_controlled: {
|
|
23197
|
+
Args: {
|
|
23198
|
+
p_controlled: boolean;
|
|
23199
|
+
p_floriday_id: string;
|
|
23200
|
+
};
|
|
23201
|
+
Returns: undefined;
|
|
23202
|
+
};
|
|
23161
23203
|
mark_shipment_shipped: {
|
|
23162
23204
|
Args: {
|
|
23163
23205
|
p_shipment_id: string;
|
|
@@ -23614,6 +23656,10 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
23614
23656
|
};
|
|
23615
23657
|
Returns: number;
|
|
23616
23658
|
};
|
|
23659
|
+
self_heal_floriday_links: {
|
|
23660
|
+
Args: never;
|
|
23661
|
+
Returns: number;
|
|
23662
|
+
};
|
|
23617
23663
|
show_limit: {
|
|
23618
23664
|
Args: never;
|
|
23619
23665
|
Returns: number;
|
|
@@ -23636,6 +23682,12 @@ export declare const createWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
23636
23682
|
};
|
|
23637
23683
|
Returns: undefined;
|
|
23638
23684
|
};
|
|
23685
|
+
sync_product_group_belading: {
|
|
23686
|
+
Args: {
|
|
23687
|
+
_group_id: string;
|
|
23688
|
+
};
|
|
23689
|
+
Returns: undefined;
|
|
23690
|
+
};
|
|
23639
23691
|
sync_product_packing_from_floriday_cache: {
|
|
23640
23692
|
Args: {
|
|
23641
23693
|
p_floriday_id: string;
|
|
@@ -28381,6 +28433,8 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
28381
28433
|
Row: {
|
|
28382
28434
|
buyer_organization_id: string | null;
|
|
28383
28435
|
connection_id: string;
|
|
28436
|
+
controlled_at: string | null;
|
|
28437
|
+
controlled_by: string | null;
|
|
28384
28438
|
created_at: string;
|
|
28385
28439
|
data: import("../integrations/supabase/types").Json;
|
|
28386
28440
|
floriday_id: string;
|
|
@@ -28392,6 +28446,8 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
28392
28446
|
Insert: {
|
|
28393
28447
|
buyer_organization_id?: string | null;
|
|
28394
28448
|
connection_id: string;
|
|
28449
|
+
controlled_at?: string | null;
|
|
28450
|
+
controlled_by?: string | null;
|
|
28395
28451
|
created_at?: string;
|
|
28396
28452
|
data: import("../integrations/supabase/types").Json;
|
|
28397
28453
|
floriday_id: string;
|
|
@@ -28403,6 +28459,8 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
28403
28459
|
Update: {
|
|
28404
28460
|
buyer_organization_id?: string | null;
|
|
28405
28461
|
connection_id?: string;
|
|
28462
|
+
controlled_at?: string | null;
|
|
28463
|
+
controlled_by?: string | null;
|
|
28406
28464
|
created_at?: string;
|
|
28407
28465
|
data?: import("../integrations/supabase/types").Json;
|
|
28408
28466
|
floriday_id?: string;
|
|
@@ -31421,6 +31479,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
31421
31479
|
id: string;
|
|
31422
31480
|
image_url: string | null;
|
|
31423
31481
|
incoming_quantity: number;
|
|
31482
|
+
is_layer: boolean;
|
|
31424
31483
|
layers_per_cart: number;
|
|
31425
31484
|
location: string;
|
|
31426
31485
|
min_quantity: number;
|
|
@@ -31448,6 +31507,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
31448
31507
|
id?: string;
|
|
31449
31508
|
image_url?: string | null;
|
|
31450
31509
|
incoming_quantity?: number;
|
|
31510
|
+
is_layer?: boolean;
|
|
31451
31511
|
layers_per_cart?: number;
|
|
31452
31512
|
location: string;
|
|
31453
31513
|
min_quantity?: number;
|
|
@@ -31475,6 +31535,7 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
31475
31535
|
id?: string;
|
|
31476
31536
|
image_url?: string | null;
|
|
31477
31537
|
incoming_quantity?: number;
|
|
31538
|
+
is_layer?: boolean;
|
|
31478
31539
|
layers_per_cart?: number;
|
|
31479
31540
|
location?: string;
|
|
31480
31541
|
min_quantity?: number;
|
|
@@ -34989,6 +35050,13 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
34989
35050
|
};
|
|
34990
35051
|
Returns: undefined;
|
|
34991
35052
|
};
|
|
35053
|
+
mark_salesorder_controlled: {
|
|
35054
|
+
Args: {
|
|
35055
|
+
p_controlled: boolean;
|
|
35056
|
+
p_floriday_id: string;
|
|
35057
|
+
};
|
|
35058
|
+
Returns: undefined;
|
|
35059
|
+
};
|
|
34992
35060
|
mark_shipment_shipped: {
|
|
34993
35061
|
Args: {
|
|
34994
35062
|
p_shipment_id: string;
|
|
@@ -35445,6 +35513,10 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
35445
35513
|
};
|
|
35446
35514
|
Returns: number;
|
|
35447
35515
|
};
|
|
35516
|
+
self_heal_floriday_links: {
|
|
35517
|
+
Args: never;
|
|
35518
|
+
Returns: number;
|
|
35519
|
+
};
|
|
35448
35520
|
show_limit: {
|
|
35449
35521
|
Args: never;
|
|
35450
35522
|
Returns: number;
|
|
@@ -35467,6 +35539,12 @@ export declare const updateWarehouseFn: import("@tanstack/start-client-core").Re
|
|
|
35467
35539
|
};
|
|
35468
35540
|
Returns: undefined;
|
|
35469
35541
|
};
|
|
35542
|
+
sync_product_group_belading: {
|
|
35543
|
+
Args: {
|
|
35544
|
+
_group_id: string;
|
|
35545
|
+
};
|
|
35546
|
+
Returns: undefined;
|
|
35547
|
+
};
|
|
35470
35548
|
sync_product_packing_from_floriday_cache: {
|
|
35471
35549
|
Args: {
|
|
35472
35550
|
p_floriday_id: string;
|