@flowselections/layout-maker 1.6.6 → 1.7.1
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/README.md +30 -0
- package/dist-lib/index.d.ts +1 -0
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +2 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +347 -0
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +347 -0
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +347 -0
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/dist-lib/lib/aiLayout.functions.d.ts +347 -0
- package/dist-lib/lib/aiLayout.functions.d.ts.map +1 -1
- package/dist-lib/lib/orderData.server.d.ts.map +1 -1
- package/dist-lib/lib/orderData.server.js +28 -14
- package/dist-lib/lib/printApi.d.ts.map +1 -1
- package/dist-lib/lib/printApi.js +13 -0
- package/dist-lib/lib/printService.functions.d.ts +1735 -0
- package/dist-lib/lib/printService.functions.d.ts.map +1 -1
- package/dist-lib/lib/queueTick.d.ts +6 -0
- package/dist-lib/lib/queueTick.d.ts.map +1 -0
- package/dist-lib/lib/queueTick.js +44 -0
- package/package.json +10 -1
- package/dist-lib/components/settings/MijnModuleSettingsCard.d.ts +0 -2
- package/dist-lib/components/settings/MijnModuleSettingsCard.d.ts.map +0 -1
- package/dist-lib/components/settings/MijnModuleSettingsCard.js +0 -42
- package/dist-lib/hooks/useMijnModuleData.d.ts +0 -13
- package/dist-lib/hooks/useMijnModuleData.d.ts.map +0 -1
- package/dist-lib/hooks/useMijnModuleData.js +0 -49
package/README.md
CHANGED
|
@@ -22,3 +22,33 @@ cd <repository-name>
|
|
|
22
22
|
npm i
|
|
23
23
|
npm run dev
|
|
24
24
|
```
|
|
25
|
+
|
|
26
|
+
## Installeren in een andere shell
|
|
27
|
+
|
|
28
|
+
1. Draai `sql/print-schema.sql` één keer in de Supabase-database van die shell
|
|
29
|
+
(SQL editor). Het script is idempotent en zet tabellen, rechten, RLS,
|
|
30
|
+
functies en de geplande taken klaar. Zorg dat de extensies `pg_cron` en
|
|
31
|
+
`pg_net` aan staan.
|
|
32
|
+
2. Zet in de omgeving van de shell:
|
|
33
|
+
- `SUPABASE_URL` en `SERVICE_ROLE_KEY` — nodig voor achtergrondprinten
|
|
34
|
+
- `CENTRAL_AUTH_URL` en `CENTRAL_AUTH_SECRET` — nodig voor de printdienst
|
|
35
|
+
3. Zorg dat de shell het tick-eindpunt host. De setup-CLI doet dit automatisch
|
|
36
|
+
op basis van `flowselections.serverRoutes` in `package.json`. Handmatig
|
|
37
|
+
opgezette shells maken zelf dit bestand aan:
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
// src/routes/api/public/print/queue-tick.ts
|
|
41
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
42
|
+
import { behandelQueueTick } from "@flowselections/layout-maker";
|
|
43
|
+
|
|
44
|
+
export const Route = createFileRoute("/api/public/print/queue-tick")({
|
|
45
|
+
server: { handlers: { POST: async ({ request }) => behandelQueueTick(request) } },
|
|
46
|
+
});
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
4. Klaar. Zodra de module in de shell draait meldt hij zichzelf aan als
|
|
50
|
+
verwerker van de printwachtrij. Een nieuwe printopdracht wordt meteen
|
|
51
|
+
opgepakt; daarnaast verwerkt de geplande taak `print-queue-tick` elke minuut
|
|
52
|
+
de wachtende opdrachten. Reageert een shell een uur lang niet, dan wordt hij
|
|
53
|
+
automatisch op inactief gezet. De taak `print-queue-cleanup` ruimt dagelijks
|
|
54
|
+
oude opdrachten en bestanden op.
|
package/dist-lib/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export * from './lib/fieldRegistry';
|
|
|
33
33
|
export * from './lib/layoutPreview';
|
|
34
34
|
export * from './lib/useDocumentData';
|
|
35
35
|
export * from './lib/printApi';
|
|
36
|
+
export { behandelQueueTick } from './lib/queueTick';
|
|
36
37
|
export * from './lib/browserPrint';
|
|
37
38
|
export * from './lib/directPrint';
|
|
38
39
|
export * from './lib/documentPdf';
|
package/dist-lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,cAAc,mCAAmC,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,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AAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,YAAY,EAAE,UAkB1B,CAAC"}
|
package/dist-lib/index.js
CHANGED
|
@@ -36,6 +36,7 @@ export * from './lib/fieldRegistry';
|
|
|
36
36
|
export * from './lib/layoutPreview';
|
|
37
37
|
export * from './lib/useDocumentData';
|
|
38
38
|
export * from './lib/printApi';
|
|
39
|
+
export { behandelQueueTick } from './lib/queueTick';
|
|
39
40
|
export * from './lib/browserPrint';
|
|
40
41
|
export * from './lib/directPrint';
|
|
41
42
|
export * from './lib/documentPdf';
|
|
@@ -51,7 +52,7 @@ export { TemplateModuleLogo } from './components/TemplateModuleLogo';
|
|
|
51
52
|
export const layoutmodule = {
|
|
52
53
|
id: "layout-maker",
|
|
53
54
|
name: "Layouts en printers",
|
|
54
|
-
version: "1.
|
|
55
|
+
version: "1.7.1",
|
|
55
56
|
nav: {
|
|
56
57
|
label: "Layouts en printers",
|
|
57
58
|
href: "/layouts-printers",
|
|
@@ -6480,6 +6480,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
6480
6480
|
Row: {
|
|
6481
6481
|
buyer_organization_id: string | null;
|
|
6482
6482
|
connection_id: string;
|
|
6483
|
+
controlled_at: string | null;
|
|
6483
6484
|
created_at: string;
|
|
6484
6485
|
data: import("./types").Json;
|
|
6485
6486
|
floriday_id: string;
|
|
@@ -6491,6 +6492,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
6491
6492
|
Insert: {
|
|
6492
6493
|
buyer_organization_id?: string | null;
|
|
6493
6494
|
connection_id: string;
|
|
6495
|
+
controlled_at?: string | null;
|
|
6494
6496
|
created_at?: string;
|
|
6495
6497
|
data: import("./types").Json;
|
|
6496
6498
|
floriday_id: string;
|
|
@@ -6502,6 +6504,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
6502
6504
|
Update: {
|
|
6503
6505
|
buyer_organization_id?: string | null;
|
|
6504
6506
|
connection_id?: string;
|
|
6507
|
+
controlled_at?: string | null;
|
|
6505
6508
|
created_at?: string;
|
|
6506
6509
|
data?: import("./types").Json;
|
|
6507
6510
|
floriday_id?: string;
|
|
@@ -7403,6 +7406,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
7403
7406
|
};
|
|
7404
7407
|
Relationships: [];
|
|
7405
7408
|
};
|
|
7409
|
+
invoice_timing_settings: {
|
|
7410
|
+
Row: {
|
|
7411
|
+
anchor: string;
|
|
7412
|
+
business_days_only: boolean;
|
|
7413
|
+
created_at: string;
|
|
7414
|
+
enabled: boolean;
|
|
7415
|
+
id: string;
|
|
7416
|
+
offset_days: number;
|
|
7417
|
+
pickup_anchor: string;
|
|
7418
|
+
pickup_business_days_only: boolean;
|
|
7419
|
+
pickup_offset_days: number;
|
|
7420
|
+
pickup_time_of_day: string;
|
|
7421
|
+
singleton: boolean;
|
|
7422
|
+
time_of_day: string;
|
|
7423
|
+
updated_at: string;
|
|
7424
|
+
};
|
|
7425
|
+
Insert: {
|
|
7426
|
+
anchor?: string;
|
|
7427
|
+
business_days_only?: boolean;
|
|
7428
|
+
created_at?: string;
|
|
7429
|
+
enabled?: boolean;
|
|
7430
|
+
id?: string;
|
|
7431
|
+
offset_days?: number;
|
|
7432
|
+
pickup_anchor?: string;
|
|
7433
|
+
pickup_business_days_only?: boolean;
|
|
7434
|
+
pickup_offset_days?: number;
|
|
7435
|
+
pickup_time_of_day?: string;
|
|
7436
|
+
singleton?: boolean;
|
|
7437
|
+
time_of_day?: string;
|
|
7438
|
+
updated_at?: string;
|
|
7439
|
+
};
|
|
7440
|
+
Update: {
|
|
7441
|
+
anchor?: string;
|
|
7442
|
+
business_days_only?: boolean;
|
|
7443
|
+
created_at?: string;
|
|
7444
|
+
enabled?: boolean;
|
|
7445
|
+
id?: string;
|
|
7446
|
+
offset_days?: number;
|
|
7447
|
+
pickup_anchor?: string;
|
|
7448
|
+
pickup_business_days_only?: boolean;
|
|
7449
|
+
pickup_offset_days?: number;
|
|
7450
|
+
pickup_time_of_day?: string;
|
|
7451
|
+
singleton?: boolean;
|
|
7452
|
+
time_of_day?: string;
|
|
7453
|
+
updated_at?: string;
|
|
7454
|
+
};
|
|
7455
|
+
Relationships: [];
|
|
7456
|
+
};
|
|
7406
7457
|
itk_contact_persons: {
|
|
7407
7458
|
Row: {
|
|
7408
7459
|
created_at: string;
|
|
@@ -8633,6 +8684,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
8633
8684
|
};
|
|
8634
8685
|
Relationships: [];
|
|
8635
8686
|
};
|
|
8687
|
+
logistics_plan_queue: {
|
|
8688
|
+
Row: {
|
|
8689
|
+
attempts: number;
|
|
8690
|
+
claimed_at: string | null;
|
|
8691
|
+
enqueued_at: string;
|
|
8692
|
+
error: string | null;
|
|
8693
|
+
id: string;
|
|
8694
|
+
next_attempt_at: string;
|
|
8695
|
+
order_id: string;
|
|
8696
|
+
reason: string;
|
|
8697
|
+
status: string;
|
|
8698
|
+
updated_at: string;
|
|
8699
|
+
};
|
|
8700
|
+
Insert: {
|
|
8701
|
+
attempts?: number;
|
|
8702
|
+
claimed_at?: string | null;
|
|
8703
|
+
enqueued_at?: string;
|
|
8704
|
+
error?: string | null;
|
|
8705
|
+
id?: string;
|
|
8706
|
+
next_attempt_at?: string;
|
|
8707
|
+
order_id: string;
|
|
8708
|
+
reason?: string;
|
|
8709
|
+
status?: string;
|
|
8710
|
+
updated_at?: string;
|
|
8711
|
+
};
|
|
8712
|
+
Update: {
|
|
8713
|
+
attempts?: number;
|
|
8714
|
+
claimed_at?: string | null;
|
|
8715
|
+
enqueued_at?: string;
|
|
8716
|
+
error?: string | null;
|
|
8717
|
+
id?: string;
|
|
8718
|
+
next_attempt_at?: string;
|
|
8719
|
+
order_id?: string;
|
|
8720
|
+
reason?: string;
|
|
8721
|
+
status?: string;
|
|
8722
|
+
updated_at?: string;
|
|
8723
|
+
};
|
|
8724
|
+
Relationships: [];
|
|
8725
|
+
};
|
|
8636
8726
|
logistics_plan_runs: {
|
|
8637
8727
|
Row: {
|
|
8638
8728
|
created_at: string;
|
|
@@ -8708,6 +8798,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
8708
8798
|
referencedColumns: ["id"];
|
|
8709
8799
|
}];
|
|
8710
8800
|
};
|
|
8801
|
+
logistics_plan_settings: {
|
|
8802
|
+
Row: {
|
|
8803
|
+
key: string;
|
|
8804
|
+
updated_at: string;
|
|
8805
|
+
value: string;
|
|
8806
|
+
};
|
|
8807
|
+
Insert: {
|
|
8808
|
+
key: string;
|
|
8809
|
+
updated_at?: string;
|
|
8810
|
+
value: string;
|
|
8811
|
+
};
|
|
8812
|
+
Update: {
|
|
8813
|
+
key?: string;
|
|
8814
|
+
updated_at?: string;
|
|
8815
|
+
value?: string;
|
|
8816
|
+
};
|
|
8817
|
+
Relationships: [];
|
|
8818
|
+
};
|
|
8711
8819
|
logistics_rebuffer_state: {
|
|
8712
8820
|
Row: {
|
|
8713
8821
|
created_at: string;
|
|
@@ -9418,14 +9526,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9418
9526
|
};
|
|
9419
9527
|
mailbox_messages: {
|
|
9420
9528
|
Row: {
|
|
9529
|
+
attachments: import("./types").Json;
|
|
9421
9530
|
body_html: string | null;
|
|
9422
9531
|
body_text: string | null;
|
|
9532
|
+
cc_recipients: import("./types").Json;
|
|
9423
9533
|
connection_id: string | null;
|
|
9424
9534
|
created_at: string;
|
|
9425
9535
|
error_message: string | null;
|
|
9426
9536
|
external_id: string | null;
|
|
9427
9537
|
from_email: string | null;
|
|
9428
9538
|
from_name: string | null;
|
|
9539
|
+
has_attachments: boolean;
|
|
9429
9540
|
id: string;
|
|
9430
9541
|
message_id: string | null;
|
|
9431
9542
|
profile_id: string | null;
|
|
@@ -9433,18 +9544,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9433
9544
|
received_at: string | null;
|
|
9434
9545
|
status: string;
|
|
9435
9546
|
subject: string | null;
|
|
9547
|
+
to_recipients: import("./types").Json;
|
|
9436
9548
|
uid: number | null;
|
|
9437
9549
|
updated_at: string;
|
|
9438
9550
|
};
|
|
9439
9551
|
Insert: {
|
|
9552
|
+
attachments?: import("./types").Json;
|
|
9440
9553
|
body_html?: string | null;
|
|
9441
9554
|
body_text?: string | null;
|
|
9555
|
+
cc_recipients?: import("./types").Json;
|
|
9442
9556
|
connection_id?: string | null;
|
|
9443
9557
|
created_at?: string;
|
|
9444
9558
|
error_message?: string | null;
|
|
9445
9559
|
external_id?: string | null;
|
|
9446
9560
|
from_email?: string | null;
|
|
9447
9561
|
from_name?: string | null;
|
|
9562
|
+
has_attachments?: boolean;
|
|
9448
9563
|
id?: string;
|
|
9449
9564
|
message_id?: string | null;
|
|
9450
9565
|
profile_id?: string | null;
|
|
@@ -9452,18 +9567,22 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9452
9567
|
received_at?: string | null;
|
|
9453
9568
|
status?: string;
|
|
9454
9569
|
subject?: string | null;
|
|
9570
|
+
to_recipients?: import("./types").Json;
|
|
9455
9571
|
uid?: number | null;
|
|
9456
9572
|
updated_at?: string;
|
|
9457
9573
|
};
|
|
9458
9574
|
Update: {
|
|
9575
|
+
attachments?: import("./types").Json;
|
|
9459
9576
|
body_html?: string | null;
|
|
9460
9577
|
body_text?: string | null;
|
|
9578
|
+
cc_recipients?: import("./types").Json;
|
|
9461
9579
|
connection_id?: string | null;
|
|
9462
9580
|
created_at?: string;
|
|
9463
9581
|
error_message?: string | null;
|
|
9464
9582
|
external_id?: string | null;
|
|
9465
9583
|
from_email?: string | null;
|
|
9466
9584
|
from_name?: string | null;
|
|
9585
|
+
has_attachments?: boolean;
|
|
9467
9586
|
id?: string;
|
|
9468
9587
|
message_id?: string | null;
|
|
9469
9588
|
profile_id?: string | null;
|
|
@@ -9471,6 +9590,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9471
9590
|
received_at?: string | null;
|
|
9472
9591
|
status?: string;
|
|
9473
9592
|
subject?: string | null;
|
|
9593
|
+
to_recipients?: import("./types").Json;
|
|
9474
9594
|
uid?: number | null;
|
|
9475
9595
|
updated_at?: string;
|
|
9476
9596
|
};
|
|
@@ -9878,6 +9998,36 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
9878
9998
|
};
|
|
9879
9999
|
Relationships: [];
|
|
9880
10000
|
};
|
|
10001
|
+
module_registry: {
|
|
10002
|
+
Row: {
|
|
10003
|
+
created_at: string;
|
|
10004
|
+
is_active: boolean;
|
|
10005
|
+
last_seen_at: string;
|
|
10006
|
+
module_id: string;
|
|
10007
|
+
name: string;
|
|
10008
|
+
shell_id: string | null;
|
|
10009
|
+
sort_order: number | null;
|
|
10010
|
+
};
|
|
10011
|
+
Insert: {
|
|
10012
|
+
created_at?: string;
|
|
10013
|
+
is_active?: boolean;
|
|
10014
|
+
last_seen_at?: string;
|
|
10015
|
+
module_id: string;
|
|
10016
|
+
name: string;
|
|
10017
|
+
shell_id?: string | null;
|
|
10018
|
+
sort_order?: number | null;
|
|
10019
|
+
};
|
|
10020
|
+
Update: {
|
|
10021
|
+
created_at?: string;
|
|
10022
|
+
is_active?: boolean;
|
|
10023
|
+
last_seen_at?: string;
|
|
10024
|
+
module_id?: string;
|
|
10025
|
+
name?: string;
|
|
10026
|
+
shell_id?: string | null;
|
|
10027
|
+
sort_order?: number | null;
|
|
10028
|
+
};
|
|
10029
|
+
Relationships: [];
|
|
10030
|
+
};
|
|
9881
10031
|
module_runtime_config: {
|
|
9882
10032
|
Row: {
|
|
9883
10033
|
key: string;
|
|
@@ -10937,6 +11087,45 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
10937
11087
|
};
|
|
10938
11088
|
Relationships: [];
|
|
10939
11089
|
};
|
|
11090
|
+
order_invoice_links: {
|
|
11091
|
+
Row: {
|
|
11092
|
+
attempts: number;
|
|
11093
|
+
created_at: string;
|
|
11094
|
+
error_message: string | null;
|
|
11095
|
+
id: string;
|
|
11096
|
+
invoice_number: string | null;
|
|
11097
|
+
next_attempt_at: string;
|
|
11098
|
+
order_id: string;
|
|
11099
|
+
processed_at: string | null;
|
|
11100
|
+
status: string;
|
|
11101
|
+
updated_at: string;
|
|
11102
|
+
};
|
|
11103
|
+
Insert: {
|
|
11104
|
+
attempts?: number;
|
|
11105
|
+
created_at?: string;
|
|
11106
|
+
error_message?: string | null;
|
|
11107
|
+
id?: string;
|
|
11108
|
+
invoice_number?: string | null;
|
|
11109
|
+
next_attempt_at?: string;
|
|
11110
|
+
order_id: string;
|
|
11111
|
+
processed_at?: string | null;
|
|
11112
|
+
status?: string;
|
|
11113
|
+
updated_at?: string;
|
|
11114
|
+
};
|
|
11115
|
+
Update: {
|
|
11116
|
+
attempts?: number;
|
|
11117
|
+
created_at?: string;
|
|
11118
|
+
error_message?: string | null;
|
|
11119
|
+
id?: string;
|
|
11120
|
+
invoice_number?: string | null;
|
|
11121
|
+
next_attempt_at?: string;
|
|
11122
|
+
order_id?: string;
|
|
11123
|
+
processed_at?: string | null;
|
|
11124
|
+
status?: string;
|
|
11125
|
+
updated_at?: string;
|
|
11126
|
+
};
|
|
11127
|
+
Relationships: [];
|
|
11128
|
+
};
|
|
10940
11129
|
order_items: {
|
|
10941
11130
|
Row: {
|
|
10942
11131
|
crates_per_layer: number | null;
|
|
@@ -11119,6 +11308,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
11119
11308
|
delivery_date: string | null;
|
|
11120
11309
|
floriday_sales_order_id: string | null;
|
|
11121
11310
|
id: string;
|
|
11311
|
+
invoice_due_at: string | null;
|
|
11122
11312
|
is_reservation: boolean;
|
|
11123
11313
|
notes: string | null;
|
|
11124
11314
|
order_date: string;
|
|
@@ -11140,6 +11330,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
11140
11330
|
delivery_date?: string | null;
|
|
11141
11331
|
floriday_sales_order_id?: string | null;
|
|
11142
11332
|
id?: string;
|
|
11333
|
+
invoice_due_at?: string | null;
|
|
11143
11334
|
is_reservation?: boolean;
|
|
11144
11335
|
notes?: string | null;
|
|
11145
11336
|
order_date?: string;
|
|
@@ -11161,6 +11352,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
11161
11352
|
delivery_date?: string | null;
|
|
11162
11353
|
floriday_sales_order_id?: string | null;
|
|
11163
11354
|
id?: string;
|
|
11355
|
+
invoice_due_at?: string | null;
|
|
11164
11356
|
is_reservation?: boolean;
|
|
11165
11357
|
notes?: string | null;
|
|
11166
11358
|
order_date?: string;
|
|
@@ -12465,6 +12657,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
12465
12657
|
created_at: string;
|
|
12466
12658
|
id: string;
|
|
12467
12659
|
laatst_gezien: string;
|
|
12660
|
+
laatste_fout: string | null;
|
|
12661
|
+
laatste_request_id: number | null;
|
|
12662
|
+
mislukte_posts: number;
|
|
12468
12663
|
tick_sleutel: string;
|
|
12469
12664
|
updated_at: string;
|
|
12470
12665
|
};
|
|
@@ -12474,6 +12669,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
12474
12669
|
created_at?: string;
|
|
12475
12670
|
id?: string;
|
|
12476
12671
|
laatst_gezien?: string;
|
|
12672
|
+
laatste_fout?: string | null;
|
|
12673
|
+
laatste_request_id?: number | null;
|
|
12674
|
+
mislukte_posts?: number;
|
|
12477
12675
|
tick_sleutel?: string;
|
|
12478
12676
|
updated_at?: string;
|
|
12479
12677
|
};
|
|
@@ -12483,6 +12681,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
12483
12681
|
created_at?: string;
|
|
12484
12682
|
id?: string;
|
|
12485
12683
|
laatst_gezien?: string;
|
|
12684
|
+
laatste_fout?: string | null;
|
|
12685
|
+
laatste_request_id?: number | null;
|
|
12686
|
+
mislukte_posts?: number;
|
|
12486
12687
|
tick_sleutel?: string;
|
|
12487
12688
|
updated_at?: string;
|
|
12488
12689
|
};
|
|
@@ -12490,18 +12691,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
12490
12691
|
};
|
|
12491
12692
|
print_queue_settings: {
|
|
12492
12693
|
Row: {
|
|
12694
|
+
bewaar_bestanden_dagen: number;
|
|
12695
|
+
bewaar_opdrachten_dagen: number;
|
|
12493
12696
|
created_at: string;
|
|
12494
12697
|
dubbel_venster_minuten: number;
|
|
12495
12698
|
id: string;
|
|
12496
12699
|
updated_at: string;
|
|
12497
12700
|
};
|
|
12498
12701
|
Insert: {
|
|
12702
|
+
bewaar_bestanden_dagen?: number;
|
|
12703
|
+
bewaar_opdrachten_dagen?: number;
|
|
12499
12704
|
created_at?: string;
|
|
12500
12705
|
dubbel_venster_minuten?: number;
|
|
12501
12706
|
id?: string;
|
|
12502
12707
|
updated_at?: string;
|
|
12503
12708
|
};
|
|
12504
12709
|
Update: {
|
|
12710
|
+
bewaar_bestanden_dagen?: number;
|
|
12711
|
+
bewaar_opdrachten_dagen?: number;
|
|
12505
12712
|
created_at?: string;
|
|
12506
12713
|
dubbel_venster_minuten?: number;
|
|
12507
12714
|
id?: string;
|
|
@@ -15349,6 +15556,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
15349
15556
|
};
|
|
15350
15557
|
twinfield_invoice_settings: {
|
|
15351
15558
|
Row: {
|
|
15559
|
+
auto_invoice_enabled: boolean;
|
|
15560
|
+
auto_invoice_trigger_statuses: string[];
|
|
15352
15561
|
created_at: string;
|
|
15353
15562
|
debtor_gl_account: string;
|
|
15354
15563
|
default_credit_invoice_type: string | null;
|
|
@@ -15369,6 +15578,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
15369
15578
|
vat_code_export: string | null;
|
|
15370
15579
|
};
|
|
15371
15580
|
Insert: {
|
|
15581
|
+
auto_invoice_enabled?: boolean;
|
|
15582
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15372
15583
|
created_at?: string;
|
|
15373
15584
|
debtor_gl_account?: string;
|
|
15374
15585
|
default_credit_invoice_type?: string | null;
|
|
@@ -15389,6 +15600,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
15389
15600
|
vat_code_export?: string | null;
|
|
15390
15601
|
};
|
|
15391
15602
|
Update: {
|
|
15603
|
+
auto_invoice_enabled?: boolean;
|
|
15604
|
+
auto_invoice_trigger_statuses?: string[];
|
|
15392
15605
|
created_at?: string;
|
|
15393
15606
|
debtor_gl_account?: string;
|
|
15394
15607
|
default_credit_invoice_type?: string | null;
|
|
@@ -16451,6 +16664,33 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
16451
16664
|
referencedColumns: ["id"];
|
|
16452
16665
|
}];
|
|
16453
16666
|
};
|
|
16667
|
+
user_module_permissions: {
|
|
16668
|
+
Row: {
|
|
16669
|
+
created_at: string;
|
|
16670
|
+
id: string;
|
|
16671
|
+
module_id: string;
|
|
16672
|
+
permission: string;
|
|
16673
|
+
updated_at: string;
|
|
16674
|
+
user_id: string;
|
|
16675
|
+
};
|
|
16676
|
+
Insert: {
|
|
16677
|
+
created_at?: string;
|
|
16678
|
+
id?: string;
|
|
16679
|
+
module_id: string;
|
|
16680
|
+
permission: string;
|
|
16681
|
+
updated_at?: string;
|
|
16682
|
+
user_id: string;
|
|
16683
|
+
};
|
|
16684
|
+
Update: {
|
|
16685
|
+
created_at?: string;
|
|
16686
|
+
id?: string;
|
|
16687
|
+
module_id?: string;
|
|
16688
|
+
permission?: string;
|
|
16689
|
+
updated_at?: string;
|
|
16690
|
+
user_id?: string;
|
|
16691
|
+
};
|
|
16692
|
+
Relationships: [];
|
|
16693
|
+
};
|
|
16454
16694
|
user_roles: {
|
|
16455
16695
|
Row: {
|
|
16456
16696
|
created_at: string;
|
|
@@ -18284,6 +18524,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
18284
18524
|
processed_items: number;
|
|
18285
18525
|
}[];
|
|
18286
18526
|
};
|
|
18527
|
+
backfill_order_auto_invoice_queue: {
|
|
18528
|
+
Args: never;
|
|
18529
|
+
Returns: number;
|
|
18530
|
+
};
|
|
18287
18531
|
calculate_layer_stock: {
|
|
18288
18532
|
Args: {
|
|
18289
18533
|
p_product_id: string;
|
|
@@ -18514,6 +18758,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
18514
18758
|
Args: never;
|
|
18515
18759
|
Returns: undefined;
|
|
18516
18760
|
};
|
|
18761
|
+
cleanup_voorraad_module_history: {
|
|
18762
|
+
Args: never;
|
|
18763
|
+
Returns: undefined;
|
|
18764
|
+
};
|
|
18517
18765
|
complete_floriday_stock_queue: {
|
|
18518
18766
|
Args: {
|
|
18519
18767
|
p_attempt_id?: string;
|
|
@@ -18635,6 +18883,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
18635
18883
|
};
|
|
18636
18884
|
Returns: import("./types").Json;
|
|
18637
18885
|
};
|
|
18886
|
+
effective_module_permission: {
|
|
18887
|
+
Args: {
|
|
18888
|
+
_module_id: string;
|
|
18889
|
+
_user_id: string;
|
|
18890
|
+
};
|
|
18891
|
+
Returns: string;
|
|
18892
|
+
};
|
|
18638
18893
|
email_auth_decrypt: {
|
|
18639
18894
|
Args: {
|
|
18640
18895
|
cipher: string;
|
|
@@ -19535,6 +19790,65 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
19535
19790
|
};
|
|
19536
19791
|
Returns: number;
|
|
19537
19792
|
};
|
|
19793
|
+
logistics_plan_claim: {
|
|
19794
|
+
Args: {
|
|
19795
|
+
p_limit?: number;
|
|
19796
|
+
};
|
|
19797
|
+
Returns: {
|
|
19798
|
+
attempts: number;
|
|
19799
|
+
id: string;
|
|
19800
|
+
order_id: string;
|
|
19801
|
+
}[];
|
|
19802
|
+
};
|
|
19803
|
+
logistics_plan_enqueue: {
|
|
19804
|
+
Args: {
|
|
19805
|
+
p_order_id: string;
|
|
19806
|
+
p_reason?: string;
|
|
19807
|
+
};
|
|
19808
|
+
Returns: undefined;
|
|
19809
|
+
};
|
|
19810
|
+
logistics_plan_ensure_event: {
|
|
19811
|
+
Args: {
|
|
19812
|
+
p_order_id: string;
|
|
19813
|
+
};
|
|
19814
|
+
Returns: boolean;
|
|
19815
|
+
};
|
|
19816
|
+
logistics_plan_finish: {
|
|
19817
|
+
Args: {
|
|
19818
|
+
p_error?: string;
|
|
19819
|
+
p_id: string;
|
|
19820
|
+
};
|
|
19821
|
+
Returns: undefined;
|
|
19822
|
+
};
|
|
19823
|
+
logistics_plan_impact_orders: {
|
|
19824
|
+
Args: {
|
|
19825
|
+
p_order_id: string;
|
|
19826
|
+
};
|
|
19827
|
+
Returns: {
|
|
19828
|
+
buffer_id: string;
|
|
19829
|
+
order_id: string;
|
|
19830
|
+
plan_date: string;
|
|
19831
|
+
}[];
|
|
19832
|
+
};
|
|
19833
|
+
logistics_plan_kick: {
|
|
19834
|
+
Args: never;
|
|
19835
|
+
Returns: undefined;
|
|
19836
|
+
};
|
|
19837
|
+
logistics_plan_prune: {
|
|
19838
|
+
Args: never;
|
|
19839
|
+
Returns: number;
|
|
19840
|
+
};
|
|
19841
|
+
logistics_plan_release_stale: {
|
|
19842
|
+
Args: never;
|
|
19843
|
+
Returns: number;
|
|
19844
|
+
};
|
|
19845
|
+
logistics_plan_setting: {
|
|
19846
|
+
Args: {
|
|
19847
|
+
p_default: number;
|
|
19848
|
+
p_key: string;
|
|
19849
|
+
};
|
|
19850
|
+
Returns: number;
|
|
19851
|
+
};
|
|
19538
19852
|
logistics_queue_capacity_email: {
|
|
19539
19853
|
Args: {
|
|
19540
19854
|
p_alert_id: string;
|
|
@@ -19773,6 +20087,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
19773
20087
|
};
|
|
19774
20088
|
Returns: undefined;
|
|
19775
20089
|
};
|
|
20090
|
+
my_module_permissions: {
|
|
20091
|
+
Args: never;
|
|
20092
|
+
Returns: {
|
|
20093
|
+
module_id: string;
|
|
20094
|
+
permission: string;
|
|
20095
|
+
}[];
|
|
20096
|
+
};
|
|
19776
20097
|
next_manufacture_partij: {
|
|
19777
20098
|
Args: {
|
|
19778
20099
|
_tenant_id: string;
|
|
@@ -19823,6 +20144,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
19823
20144
|
};
|
|
19824
20145
|
Returns: boolean;
|
|
19825
20146
|
};
|
|
20147
|
+
opruim_print_historie: {
|
|
20148
|
+
Args: never;
|
|
20149
|
+
Returns: {
|
|
20150
|
+
ontdaan: number;
|
|
20151
|
+
verwijderd: number;
|
|
20152
|
+
}[];
|
|
20153
|
+
};
|
|
19826
20154
|
order_number_prefix: {
|
|
19827
20155
|
Args: {
|
|
19828
20156
|
p_custom_fields?: import("./types").Json;
|
|
@@ -20217,6 +20545,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
20217
20545
|
};
|
|
20218
20546
|
Returns: undefined;
|
|
20219
20547
|
};
|
|
20548
|
+
reset_stalled_floriday_stock_queue: {
|
|
20549
|
+
Args: {
|
|
20550
|
+
p_include_failed?: boolean;
|
|
20551
|
+
};
|
|
20552
|
+
Returns: number;
|
|
20553
|
+
};
|
|
20220
20554
|
resolve_group_allocation: {
|
|
20221
20555
|
Args: {
|
|
20222
20556
|
_needed: number;
|
|
@@ -20271,6 +20605,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
20271
20605
|
Args: never;
|
|
20272
20606
|
Returns: undefined;
|
|
20273
20607
|
};
|
|
20608
|
+
run_floriday_stock_queue_process: {
|
|
20609
|
+
Args: never;
|
|
20610
|
+
Returns: undefined;
|
|
20611
|
+
};
|
|
20274
20612
|
run_logistics_tasks_dispatch: {
|
|
20275
20613
|
Args: never;
|
|
20276
20614
|
Returns: undefined;
|
|
@@ -20666,6 +21004,15 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
20666
21004
|
};
|
|
20667
21005
|
Returns: undefined;
|
|
20668
21006
|
};
|
|
21007
|
+
trade_item_stock_duplicates: {
|
|
21008
|
+
Args: never;
|
|
21009
|
+
Returns: {
|
|
21010
|
+
keys: string[];
|
|
21011
|
+
product_id: string;
|
|
21012
|
+
product_name: string;
|
|
21013
|
+
row_count: number;
|
|
21014
|
+
}[];
|
|
21015
|
+
};
|
|
20669
21016
|
try_debtor_lock: {
|
|
20670
21017
|
Args: {
|
|
20671
21018
|
_group_key: string;
|