@flowselections/floriday-voorraad 1.0.65 → 1.0.67

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.
Files changed (25) hide show
  1. package/dist-lib/hooks-entry.d.ts +11 -0
  2. package/dist-lib/hooks-entry.d.ts.map +1 -0
  3. package/dist-lib/hooks-entry.js +10 -0
  4. package/dist-lib/integrations/supabase/types.d.ts +372 -0
  5. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  6. package/dist-lib/lib/inventory-settings.functions.d.ts +1 -1
  7. package/dist-lib/server-hooks/floriday-base-supply.d.ts +3 -0
  8. package/dist-lib/server-hooks/floriday-base-supply.d.ts.map +1 -0
  9. package/dist-lib/server-hooks/floriday-base-supply.js +73 -0
  10. package/dist-lib/server-hooks/floriday-continuous-stock-pull.d.ts +3 -0
  11. package/dist-lib/server-hooks/floriday-continuous-stock-pull.d.ts.map +1 -0
  12. package/dist-lib/server-hooks/floriday-continuous-stock-pull.js +168 -0
  13. package/dist-lib/server-hooks/floriday-continuous-stock.d.ts +3 -0
  14. package/dist-lib/server-hooks/floriday-continuous-stock.d.ts.map +1 -0
  15. package/dist-lib/server-hooks/floriday-continuous-stock.js +111 -0
  16. package/dist-lib/server-hooks/floriday-stock-reconcile.d.ts +3 -0
  17. package/dist-lib/server-hooks/floriday-stock-reconcile.d.ts.map +1 -0
  18. package/dist-lib/server-hooks/floriday-stock-reconcile.js +235 -0
  19. package/dist-lib/server-hooks/guard.d.ts +3 -0
  20. package/dist-lib/server-hooks/guard.d.ts.map +1 -0
  21. package/dist-lib/server-hooks/guard.js +60 -0
  22. package/dist-lib/server-hooks/logistics-tasks-run.d.ts +3 -0
  23. package/dist-lib/server-hooks/logistics-tasks-run.d.ts.map +1 -0
  24. package/dist-lib/server-hooks/logistics-tasks-run.js +37 -0
  25. package/package.json +53 -2
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Export "./hooks": server-handlers die de Shell via
3
+ * package.json → flowselections.serverRoutes als routes aanmaakt.
4
+ * Server-only; nooit importeren vanuit client-code.
5
+ */
6
+ export { handleFloridayBaseSupply } from "./server-hooks/floriday-base-supply";
7
+ export { handleFloridayContinuousStock } from "./server-hooks/floriday-continuous-stock";
8
+ export { handleFloridayContinuousStockPull } from "./server-hooks/floriday-continuous-stock-pull";
9
+ export { handleFloridayStockReconcile } from "./server-hooks/floriday-stock-reconcile";
10
+ export { handleLogisticsTasksRun } from "./server-hooks/logistics-tasks-run";
11
+ //# sourceMappingURL=hooks-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks-entry.d.ts","sourceRoot":"","sources":["../src/hooks-entry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AACvF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Export "./hooks": server-handlers die de Shell via
3
+ * package.json → flowselections.serverRoutes als routes aanmaakt.
4
+ * Server-only; nooit importeren vanuit client-code.
5
+ */
6
+ export { handleFloridayBaseSupply } from "./server-hooks/floriday-base-supply";
7
+ export { handleFloridayContinuousStock } from "./server-hooks/floriday-continuous-stock";
8
+ export { handleFloridayContinuousStockPull } from "./server-hooks/floriday-continuous-stock-pull";
9
+ export { handleFloridayStockReconcile } from "./server-hooks/floriday-stock-reconcile";
10
+ export { handleLogisticsTasksRun } from "./server-hooks/logistics-tasks-run";
@@ -3059,6 +3059,27 @@ export type Database = {
3059
3059
  }
3060
3060
  ];
3061
3061
  };
3062
+ dashboard_funnel_indelingen: {
3063
+ Row: {
3064
+ created_at: string;
3065
+ posities: Json;
3066
+ updated_at: string;
3067
+ user_id: string;
3068
+ };
3069
+ Insert: {
3070
+ created_at?: string;
3071
+ posities?: Json;
3072
+ updated_at?: string;
3073
+ user_id?: string;
3074
+ };
3075
+ Update: {
3076
+ created_at?: string;
3077
+ posities?: Json;
3078
+ updated_at?: string;
3079
+ user_id?: string;
3080
+ };
3081
+ Relationships: [];
3082
+ };
3062
3083
  dashboard_pages: {
3063
3084
  Row: {
3064
3085
  created_at: string;
@@ -3125,6 +3146,141 @@ export type Database = {
3125
3146
  };
3126
3147
  Relationships: [];
3127
3148
  };
3149
+ dashboard_snelkoppelingen: {
3150
+ Row: {
3151
+ created_at: string;
3152
+ id: string;
3153
+ pad: string;
3154
+ titel: string;
3155
+ updated_at: string;
3156
+ user_id: string;
3157
+ volgorde: number;
3158
+ };
3159
+ Insert: {
3160
+ created_at?: string;
3161
+ id?: string;
3162
+ pad: string;
3163
+ titel: string;
3164
+ updated_at?: string;
3165
+ user_id?: string;
3166
+ volgorde?: number;
3167
+ };
3168
+ Update: {
3169
+ created_at?: string;
3170
+ id?: string;
3171
+ pad?: string;
3172
+ titel?: string;
3173
+ updated_at?: string;
3174
+ user_id?: string;
3175
+ volgorde?: number;
3176
+ };
3177
+ Relationships: [];
3178
+ };
3179
+ dashboard_werkbon_dagtellers: {
3180
+ Row: {
3181
+ aantal: number;
3182
+ created_at: string;
3183
+ datum: string;
3184
+ soort: string;
3185
+ updated_at: string;
3186
+ };
3187
+ Insert: {
3188
+ aantal?: number;
3189
+ created_at?: string;
3190
+ datum: string;
3191
+ soort: string;
3192
+ updated_at?: string;
3193
+ };
3194
+ Update: {
3195
+ aantal?: number;
3196
+ created_at?: string;
3197
+ datum?: string;
3198
+ soort?: string;
3199
+ updated_at?: string;
3200
+ };
3201
+ Relationships: [];
3202
+ };
3203
+ dashboard_werkbon_factuurhistorie: {
3204
+ Row: {
3205
+ bedrag_cents: number;
3206
+ created_at: string;
3207
+ factuur_id: string;
3208
+ status: string;
3209
+ updated_at: string;
3210
+ werkbon_id: string;
3211
+ };
3212
+ Insert: {
3213
+ bedrag_cents: number;
3214
+ created_at?: string;
3215
+ factuur_id: string;
3216
+ status: string;
3217
+ updated_at?: string;
3218
+ werkbon_id: string;
3219
+ };
3220
+ Update: {
3221
+ bedrag_cents?: number;
3222
+ created_at?: string;
3223
+ factuur_id?: string;
3224
+ status?: string;
3225
+ updated_at?: string;
3226
+ werkbon_id?: string;
3227
+ };
3228
+ Relationships: [];
3229
+ };
3230
+ dashboard_werkbon_historie: {
3231
+ Row: {
3232
+ aangemaakt_op: string;
3233
+ afgerond_op: string | null;
3234
+ created_at: string;
3235
+ parent_werkbon_id: string | null;
3236
+ soort: string;
3237
+ updated_at: string;
3238
+ werkbon_id: string;
3239
+ };
3240
+ Insert: {
3241
+ aangemaakt_op: string;
3242
+ afgerond_op?: string | null;
3243
+ created_at?: string;
3244
+ parent_werkbon_id?: string | null;
3245
+ soort: string;
3246
+ updated_at?: string;
3247
+ werkbon_id: string;
3248
+ };
3249
+ Update: {
3250
+ aangemaakt_op?: string;
3251
+ afgerond_op?: string | null;
3252
+ created_at?: string;
3253
+ parent_werkbon_id?: string | null;
3254
+ soort?: string;
3255
+ updated_at?: string;
3256
+ werkbon_id?: string;
3257
+ };
3258
+ Relationships: [];
3259
+ };
3260
+ dashboard_werkbon_mailhistorie: {
3261
+ Row: {
3262
+ created_at: string;
3263
+ goedgekeurd_op: string;
3264
+ updated_at: string;
3265
+ voorstel_id: string;
3266
+ werkbon_id: string | null;
3267
+ };
3268
+ Insert: {
3269
+ created_at?: string;
3270
+ goedgekeurd_op: string;
3271
+ updated_at?: string;
3272
+ voorstel_id: string;
3273
+ werkbon_id?: string | null;
3274
+ };
3275
+ Update: {
3276
+ created_at?: string;
3277
+ goedgekeurd_op?: string;
3278
+ updated_at?: string;
3279
+ voorstel_id?: string;
3280
+ werkbon_id?: string | null;
3281
+ };
3282
+ Relationships: [];
3283
+ };
3128
3284
  dashboard_werkbon_tellers: {
3129
3285
  Row: {
3130
3286
  aantal: number;
@@ -7482,6 +7638,87 @@ export type Database = {
7482
7638
  };
7483
7639
  Relationships: [];
7484
7640
  };
7641
+ floriday_loading_attempts: {
7642
+ Row: {
7643
+ code: string | null;
7644
+ created_at: string;
7645
+ created_by: string | null;
7646
+ delivery_note_url: string | null;
7647
+ delivery_order_id: string | null;
7648
+ fulfillment_order_id: string;
7649
+ http_status: number | null;
7650
+ id: string;
7651
+ message: string | null;
7652
+ order_refs: string[];
7653
+ request_summary: Json;
7654
+ sales_order_ids: string[];
7655
+ skipped_requests: Json;
7656
+ step: string;
7657
+ warnings: Json;
7658
+ };
7659
+ Insert: {
7660
+ code?: string | null;
7661
+ created_at?: string;
7662
+ created_by?: string | null;
7663
+ delivery_note_url?: string | null;
7664
+ delivery_order_id?: string | null;
7665
+ fulfillment_order_id: string;
7666
+ http_status?: number | null;
7667
+ id?: string;
7668
+ message?: string | null;
7669
+ order_refs?: string[];
7670
+ request_summary?: Json;
7671
+ sales_order_ids?: string[];
7672
+ skipped_requests?: Json;
7673
+ step: string;
7674
+ warnings?: Json;
7675
+ };
7676
+ Update: {
7677
+ code?: string | null;
7678
+ created_at?: string;
7679
+ created_by?: string | null;
7680
+ delivery_note_url?: string | null;
7681
+ delivery_order_id?: string | null;
7682
+ fulfillment_order_id?: string;
7683
+ http_status?: number | null;
7684
+ id?: string;
7685
+ message?: string | null;
7686
+ order_refs?: string[];
7687
+ request_summary?: Json;
7688
+ sales_order_ids?: string[];
7689
+ skipped_requests?: Json;
7690
+ step?: string;
7691
+ warnings?: Json;
7692
+ };
7693
+ Relationships: [];
7694
+ };
7695
+ floriday_loading_identifiers: {
7696
+ Row: {
7697
+ created_at: string;
7698
+ created_by: string | null;
7699
+ id: string;
7700
+ identifier: string;
7701
+ natural_key: string;
7702
+ scope: string;
7703
+ };
7704
+ Insert: {
7705
+ created_at?: string;
7706
+ created_by?: string | null;
7707
+ id?: string;
7708
+ identifier?: string;
7709
+ natural_key: string;
7710
+ scope: string;
7711
+ };
7712
+ Update: {
7713
+ created_at?: string;
7714
+ created_by?: string | null;
7715
+ id?: string;
7716
+ identifier?: string;
7717
+ natural_key?: string;
7718
+ scope?: string;
7719
+ };
7720
+ Relationships: [];
7721
+ };
7485
7722
  floriday_log_retention: {
7486
7723
  Row: {
7487
7724
  created_at: string;
@@ -11546,6 +11783,7 @@ export type Database = {
11546
11783
  approved_at: string | null;
11547
11784
  attempts: number;
11548
11785
  barcode: string;
11786
+ bron: string | null;
11549
11787
  cart_id: string;
11550
11788
  created_at: string;
11551
11789
  document_url: string | null;
@@ -11568,6 +11806,7 @@ export type Database = {
11568
11806
  approved_at?: string | null;
11569
11807
  attempts?: number;
11570
11808
  barcode: string;
11809
+ bron?: string | null;
11571
11810
  cart_id: string;
11572
11811
  created_at?: string;
11573
11812
  document_url?: string | null;
@@ -11590,6 +11829,7 @@ export type Database = {
11590
11829
  approved_at?: string | null;
11591
11830
  attempts?: number;
11592
11831
  barcode?: string;
11832
+ bron?: string | null;
11593
11833
  cart_id?: string;
11594
11834
  created_at?: string;
11595
11835
  document_url?: string | null;
@@ -12332,6 +12572,32 @@ export type Database = {
12332
12572
  };
12333
12573
  Relationships: [];
12334
12574
  };
12575
+ logistics_order_plan_exclusion: {
12576
+ Row: {
12577
+ created_at: string;
12578
+ order_id: string;
12579
+ reason: string;
12580
+ };
12581
+ Insert: {
12582
+ created_at?: string;
12583
+ order_id: string;
12584
+ reason: string;
12585
+ };
12586
+ Update: {
12587
+ created_at?: string;
12588
+ order_id?: string;
12589
+ reason?: string;
12590
+ };
12591
+ Relationships: [
12592
+ {
12593
+ foreignKeyName: "logistics_order_plan_exclusion_order_id_fkey";
12594
+ columns: ["order_id"];
12595
+ isOneToOne: true;
12596
+ referencedRelation: "orders";
12597
+ referencedColumns: ["id"];
12598
+ }
12599
+ ];
12600
+ };
12335
12601
  logistics_packing_deviations: {
12336
12602
  Row: {
12337
12603
  auto_fixed_at: string | null;
@@ -26216,6 +26482,8 @@ export type Database = {
26216
26482
  id: string;
26217
26483
  internal_notes: string | null;
26218
26484
  needs_detail_review: boolean;
26485
+ offerte_teruggestuurd_id: string | null;
26486
+ offerte_teruggestuurd_op: string | null;
26219
26487
  parent_werkbon_id: string | null;
26220
26488
  parsed_payload: Json | null;
26221
26489
  planning_status: string;
@@ -26260,6 +26528,8 @@ export type Database = {
26260
26528
  id?: string;
26261
26529
  internal_notes?: string | null;
26262
26530
  needs_detail_review?: boolean;
26531
+ offerte_teruggestuurd_id?: string | null;
26532
+ offerte_teruggestuurd_op?: string | null;
26263
26533
  parent_werkbon_id?: string | null;
26264
26534
  parsed_payload?: Json | null;
26265
26535
  planning_status?: string;
@@ -26304,6 +26574,8 @@ export type Database = {
26304
26574
  id?: string;
26305
26575
  internal_notes?: string | null;
26306
26576
  needs_detail_review?: boolean;
26577
+ offerte_teruggestuurd_id?: string | null;
26578
+ offerte_teruggestuurd_op?: string | null;
26307
26579
  parent_werkbon_id?: string | null;
26308
26580
  parsed_payload?: Json | null;
26309
26581
  planning_status?: string;
@@ -28272,6 +28544,19 @@ export type Database = {
28272
28544
  };
28273
28545
  Returns: Json;
28274
28546
  };
28547
+ dashboard_funnel_betaald: {
28548
+ Args: {
28549
+ _bedragen: number[];
28550
+ _statussen: string[];
28551
+ };
28552
+ Returns: boolean;
28553
+ };
28554
+ dashboard_jaar_start: {
28555
+ Args: {
28556
+ _vandaag: string;
28557
+ };
28558
+ Returns: string;
28559
+ };
28275
28560
  dashboard_list_public_schema: {
28276
28561
  Args: never;
28277
28562
  Returns: {
@@ -28280,6 +28565,16 @@ export type Database = {
28280
28565
  table_name: string;
28281
28566
  }[];
28282
28567
  };
28568
+ dashboard_werkbon_funnel: {
28569
+ Args: {
28570
+ _periode?: string;
28571
+ };
28572
+ Returns: Json;
28573
+ };
28574
+ dashboard_werkbon_jaarstats: {
28575
+ Args: never;
28576
+ Returns: Json;
28577
+ };
28283
28578
  dashboard_werkbon_soort: {
28284
28579
  Args: {
28285
28580
  _source: string;
@@ -29583,6 +29878,10 @@ export type Database = {
29583
29878
  Args: never;
29584
29879
  Returns: number;
29585
29880
  };
29881
+ logistics_belading_verstuurder: {
29882
+ Args: never;
29883
+ Returns: string;
29884
+ };
29586
29885
  logistics_block_reason_code: {
29587
29886
  Args: {
29588
29887
  p_details?: Json;
@@ -30088,6 +30387,7 @@ export type Database = {
30088
30387
  approved_at: string | null;
30089
30388
  attempts: number;
30090
30389
  barcode: string;
30390
+ bron: string | null;
30091
30391
  cart_id: string;
30092
30392
  created_at: string;
30093
30393
  document_url: string | null;
@@ -30146,6 +30446,13 @@ export type Database = {
30146
30446
  };
30147
30447
  Returns: Json;
30148
30448
  };
30449
+ logistics_control_scan_record_afmelding: {
30450
+ Args: {
30451
+ p_bron: string;
30452
+ p_order_id: string;
30453
+ };
30454
+ Returns: number;
30455
+ };
30149
30456
  logistics_control_scan_retry: {
30150
30457
  Args: {
30151
30458
  _id: string;
@@ -30619,12 +30926,24 @@ export type Database = {
30619
30926
  Args: never;
30620
30927
  Returns: string;
30621
30928
  };
30929
+ logistics_order_afgemeld: {
30930
+ Args: {
30931
+ p_order_id: string;
30932
+ };
30933
+ Returns: boolean;
30934
+ };
30622
30935
  logistics_order_backlog_info: {
30623
30936
  Args: {
30624
30937
  p_order_id: string;
30625
30938
  };
30626
30939
  Returns: Json;
30627
30940
  };
30941
+ logistics_order_buffer_excluded: {
30942
+ Args: {
30943
+ p_order_id: string;
30944
+ };
30945
+ Returns: boolean;
30946
+ };
30628
30947
  logistics_order_cart_approval: {
30629
30948
  Args: {
30630
30949
  _order_ref: string;
@@ -30770,6 +31089,12 @@ export type Database = {
30770
31089
  };
30771
31090
  Returns: boolean;
30772
31091
  };
31092
+ logistics_order_on_frozen_shared_cart: {
31093
+ Args: {
31094
+ p_order_id: string;
31095
+ };
31096
+ Returns: boolean;
31097
+ };
30773
31098
  logistics_order_overview: {
30774
31099
  Args: {
30775
31100
  p_from?: string;
@@ -31233,6 +31558,12 @@ export type Database = {
31233
31558
  };
31234
31559
  Returns: string;
31235
31560
  };
31561
+ logistics_queue_row_has_open_peer: {
31562
+ Args: {
31563
+ p_payload: Json;
31564
+ };
31565
+ Returns: boolean;
31566
+ };
31236
31567
  logistics_queue_stock_email: {
31237
31568
  Args: {
31238
31569
  p_alert_id: string;
@@ -31538,6 +31869,17 @@ export type Database = {
31538
31869
  };
31539
31870
  Returns: Json;
31540
31871
  };
31872
+ logistics_shared_cart_peers: {
31873
+ Args: {
31874
+ p_order_id: string;
31875
+ };
31876
+ Returns: {
31877
+ buffer_id: string;
31878
+ cart_id: string;
31879
+ cart_number: number;
31880
+ peer_order_id: string;
31881
+ }[];
31882
+ };
31541
31883
  logistics_shift_to_workday: {
31542
31884
  Args: {
31543
31885
  p_days: string[];
@@ -31654,6 +31996,13 @@ export type Database = {
31654
31996
  };
31655
31997
  Returns: undefined;
31656
31998
  };
31999
+ logistics_slip_note_hold_belading: {
32000
+ Args: {
32001
+ _id: string;
32002
+ _reason: string;
32003
+ };
32004
+ Returns: undefined;
32005
+ };
31657
32006
  logistics_slip_note_keep_waiting: {
31658
32007
  Args: {
31659
32008
  _class?: string;
@@ -34854,6 +35203,23 @@ export type Database = {
34854
35203
  Args: never;
34855
35204
  Returns: Json;
34856
35205
  };
35206
+ voorraad_hook_base_url: {
35207
+ Args: never;
35208
+ Returns: string;
35209
+ };
35210
+ voorraad_hook_on: {
35211
+ Args: {
35212
+ p_name: string;
35213
+ };
35214
+ Returns: boolean;
35215
+ };
35216
+ voorraad_hook_post: {
35217
+ Args: {
35218
+ p_path: string;
35219
+ p_timeout?: number;
35220
+ };
35221
+ Returns: undefined;
35222
+ };
34857
35223
  voorraad_production_enabled: {
34858
35224
  Args: never;
34859
35225
  Returns: boolean;
@@ -34996,6 +35362,12 @@ export type Database = {
34996
35362
  };
34997
35363
  Returns: Json;
34998
35364
  };
35365
+ wo_send_to_quote: {
35366
+ Args: {
35367
+ _werkbon_id: string;
35368
+ };
35369
+ Returns: Json;
35370
+ };
34999
35371
  wo_set_status: {
35000
35372
  Args: {
35001
35373
  _reason?: string;