@flowselections/floriday-klanten-module 1.0.30 → 1.0.31

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 (47) hide show
  1. package/dist-lib/integrations/supabase/auth-middleware.d.ts +255 -0
  2. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  3. package/dist-lib/integrations/supabase/client.d.ts +255 -0
  4. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  5. package/dist-lib/integrations/supabase/client.server.d.ts +255 -0
  6. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  7. package/dist-lib/integrations/supabase/types.d.ts +255 -0
  8. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  9. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts +765 -0
  10. package/dist-lib/lib/accounting/twinfield/worker.functions.d.ts.map +1 -1
  11. package/dist-lib/lib/accounting.functions.d.ts +765 -0
  12. package/dist-lib/lib/accounting.functions.d.ts.map +1 -1
  13. package/dist-lib/lib/customer-analytics.functions.d.ts +255 -0
  14. package/dist-lib/lib/customer-analytics.functions.d.ts.map +1 -1
  15. package/dist-lib/lib/customer-notes.functions.d.ts +510 -0
  16. package/dist-lib/lib/customer-notes.functions.d.ts.map +1 -1
  17. package/dist-lib/lib/customer-revenue.functions.d.ts +255 -0
  18. package/dist-lib/lib/customer-revenue.functions.d.ts.map +1 -1
  19. package/dist-lib/lib/customers.functions.d.ts +2370 -75
  20. package/dist-lib/lib/customers.functions.d.ts.map +1 -1
  21. package/dist-lib/lib/delivery-locations.functions.d.ts +1095 -75
  22. package/dist-lib/lib/delivery-locations.functions.d.ts.map +1 -1
  23. package/dist-lib/lib/external-customers.functions.d.ts +1095 -75
  24. package/dist-lib/lib/external-customers.functions.d.ts.map +1 -1
  25. package/dist-lib/lib/floriday-assortment.functions.d.ts +255 -0
  26. package/dist-lib/lib/floriday-assortment.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/floriday-discounts.functions.d.ts +510 -0
  28. package/dist-lib/lib/floriday-discounts.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/floriday-trade-items.functions.d.ts +255 -0
  30. package/dist-lib/lib/floriday-trade-items.functions.d.ts.map +1 -1
  31. package/dist-lib/lib/local-discounts.functions.d.ts +1860 -75
  32. package/dist-lib/lib/local-discounts.functions.d.ts.map +1 -1
  33. package/dist-lib/lib/logistics-events.functions.d.ts +255 -0
  34. package/dist-lib/lib/logistics-events.functions.d.ts.map +1 -1
  35. package/dist-lib/lib/logistics-strategy.functions.d.ts +1095 -75
  36. package/dist-lib/lib/logistics-strategy.functions.d.ts.map +1 -1
  37. package/dist-lib/lib/overdue-invoices.functions.d.ts +255 -0
  38. package/dist-lib/lib/overdue-invoices.functions.d.ts.map +1 -1
  39. package/dist-lib/lib/price-groups-local.functions.d.ts +1860 -75
  40. package/dist-lib/lib/price-groups-local.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/price-groups.functions.d.ts +255 -0
  42. package/dist-lib/lib/price-groups.functions.d.ts.map +1 -1
  43. package/dist-lib/lib/twinfield-adopt.functions.d.ts +510 -0
  44. package/dist-lib/lib/twinfield-adopt.functions.d.ts.map +1 -1
  45. package/dist-lib/lib/twinfield-ledger.functions.d.ts +255 -0
  46. package/dist-lib/lib/twinfield-ledger.functions.d.ts.map +1 -1
  47. package/package.json +1 -1
@@ -5747,12 +5747,17 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
5747
5747
  attempts: number;
5748
5748
  connection_id: string;
5749
5749
  created_at: string;
5750
+ desired_available: boolean | null;
5750
5751
  gateway_attempt_id: string | null;
5751
5752
  id: string;
5752
5753
  last_error: string | null;
5754
+ locked_at: string | null;
5755
+ locked_by: string | null;
5756
+ next_attempt_at: string;
5753
5757
  number_of_pieces: number;
5754
5758
  sent_at: string | null;
5755
5759
  status: string;
5760
+ superseded_by: string | null;
5756
5761
  trade_item_id: string;
5757
5762
  updated_at: string;
5758
5763
  user_id: string;
@@ -5761,12 +5766,17 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
5761
5766
  attempts?: number;
5762
5767
  connection_id: string;
5763
5768
  created_at?: string;
5769
+ desired_available?: boolean | null;
5764
5770
  gateway_attempt_id?: string | null;
5765
5771
  id?: string;
5766
5772
  last_error?: string | null;
5773
+ locked_at?: string | null;
5774
+ locked_by?: string | null;
5775
+ next_attempt_at?: string;
5767
5776
  number_of_pieces?: number;
5768
5777
  sent_at?: string | null;
5769
5778
  status?: string;
5779
+ superseded_by?: string | null;
5770
5780
  trade_item_id: string;
5771
5781
  updated_at?: string;
5772
5782
  user_id: string;
@@ -5775,12 +5785,17 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
5775
5785
  attempts?: number;
5776
5786
  connection_id?: string;
5777
5787
  created_at?: string;
5788
+ desired_available?: boolean | null;
5778
5789
  gateway_attempt_id?: string | null;
5779
5790
  id?: string;
5780
5791
  last_error?: string | null;
5792
+ locked_at?: string | null;
5793
+ locked_by?: string | null;
5794
+ next_attempt_at?: string;
5781
5795
  number_of_pieces?: number;
5782
5796
  sent_at?: string | null;
5783
5797
  status?: string;
5798
+ superseded_by?: string | null;
5784
5799
  trade_item_id?: string;
5785
5800
  updated_at?: string;
5786
5801
  user_id?: string;
@@ -8529,6 +8544,69 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
8529
8544
  };
8530
8545
  Relationships: [];
8531
8546
  };
8547
+ logistics_floriday_pushes: {
8548
+ Row: {
8549
+ attempts: number;
8550
+ created_at: string;
8551
+ first_queued_at: string;
8552
+ fulfillment_order_id: string | null;
8553
+ id: string;
8554
+ last_error: string | null;
8555
+ last_error_at: string | null;
8556
+ last_sent_hash: string | null;
8557
+ locked_by: string | null;
8558
+ locked_until: string | null;
8559
+ next_attempt_at: string;
8560
+ order_ref: string;
8561
+ payload: import("../integrations/supabase/types").Json;
8562
+ payload_hash: string | null;
8563
+ revision: number;
8564
+ sent_at: string | null;
8565
+ status: string;
8566
+ updated_at: string;
8567
+ };
8568
+ Insert: {
8569
+ attempts?: number;
8570
+ created_at?: string;
8571
+ first_queued_at?: string;
8572
+ fulfillment_order_id?: string | null;
8573
+ id?: string;
8574
+ last_error?: string | null;
8575
+ last_error_at?: string | null;
8576
+ last_sent_hash?: string | null;
8577
+ locked_by?: string | null;
8578
+ locked_until?: string | null;
8579
+ next_attempt_at?: string;
8580
+ order_ref: string;
8581
+ payload?: import("../integrations/supabase/types").Json;
8582
+ payload_hash?: string | null;
8583
+ revision?: number;
8584
+ sent_at?: string | null;
8585
+ status?: string;
8586
+ updated_at?: string;
8587
+ };
8588
+ Update: {
8589
+ attempts?: number;
8590
+ created_at?: string;
8591
+ first_queued_at?: string;
8592
+ fulfillment_order_id?: string | null;
8593
+ id?: string;
8594
+ last_error?: string | null;
8595
+ last_error_at?: string | null;
8596
+ last_sent_hash?: string | null;
8597
+ locked_by?: string | null;
8598
+ locked_until?: string | null;
8599
+ next_attempt_at?: string;
8600
+ order_ref?: string;
8601
+ payload?: import("../integrations/supabase/types").Json;
8602
+ payload_hash?: string | null;
8603
+ revision?: number;
8604
+ sent_at?: string | null;
8605
+ status?: string;
8606
+ updated_at?: string;
8607
+ };
8608
+ Relationships: [];
8609
+ };
8532
8610
  logistics_formulas: {
8533
8611
  Row: {
8534
8612
  created_at: string;
@@ -9140,6 +9218,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
9140
9218
  };
9141
9219
  logistics_tasks: {
9142
9220
  Row: {
9221
+ attempt_log: import("../integrations/supabase/types").Json;
9222
+ attempts: number;
9143
9223
  buffer_ref: string | null;
9144
9224
  claimed_at: string | null;
9145
9225
  claimed_by: string | null;
@@ -9149,6 +9229,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
9149
9229
  due_at: string | null;
9150
9230
  error: string | null;
9151
9231
  id: string;
9232
+ last_error: string | null;
9233
+ next_attempt_at: string | null;
9152
9234
  order_ref: string;
9153
9235
  owner_module: string;
9154
9236
  payload: import("../integrations/supabase/types").Json;
@@ -9169,6 +9251,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
9169
9251
  user_id: string;
9170
9252
  };
9171
9253
  Insert: {
9254
+ attempt_log?: import("../integrations/supabase/types").Json;
9255
+ attempts?: number;
9172
9256
  buffer_ref?: string | null;
9173
9257
  claimed_at?: string | null;
9174
9258
  claimed_by?: string | null;
@@ -9178,6 +9262,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
9178
9262
  due_at?: string | null;
9179
9263
  error?: string | null;
9180
9264
  id?: string;
9265
+ last_error?: string | null;
9266
+ next_attempt_at?: string | null;
9181
9267
  order_ref: string;
9182
9268
  owner_module: string;
9183
9269
  payload?: import("../integrations/supabase/types").Json;
@@ -9198,6 +9284,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
9198
9284
  user_id?: string;
9199
9285
  };
9200
9286
  Update: {
9287
+ attempt_log?: import("../integrations/supabase/types").Json;
9288
+ attempts?: number;
9201
9289
  buffer_ref?: string | null;
9202
9290
  claimed_at?: string | null;
9203
9291
  claimed_by?: string | null;
@@ -9207,6 +9295,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
9207
9295
  due_at?: string | null;
9208
9296
  error?: string | null;
9209
9297
  id?: string;
9298
+ last_error?: string | null;
9299
+ next_attempt_at?: string | null;
9210
9300
  order_ref?: string;
9211
9301
  owner_module?: string;
9212
9302
  payload?: import("../integrations/supabase/types").Json;
@@ -18211,6 +18301,85 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
18211
18301
  };
18212
18302
  Returns: import("../integrations/supabase/types").Json;
18213
18303
  };
18304
+ claim_floriday_stock_queue: {
18305
+ Args: {
18306
+ p_limit?: number;
18307
+ p_worker?: string;
18308
+ };
18309
+ Returns: {
18310
+ attempts: number;
18311
+ connection_id: string;
18312
+ created_at: string;
18313
+ desired_available: boolean | null;
18314
+ gateway_attempt_id: string | null;
18315
+ id: string;
18316
+ last_error: string | null;
18317
+ locked_at: string | null;
18318
+ locked_by: string | null;
18319
+ next_attempt_at: string;
18320
+ number_of_pieces: number;
18321
+ sent_at: string | null;
18322
+ status: string;
18323
+ superseded_by: string | null;
18324
+ trade_item_id: string;
18325
+ updated_at: string;
18326
+ user_id: string;
18327
+ }[];
18328
+ SetofOptions: {
18329
+ from: "*";
18330
+ to: "floriday_continuous_stock_queue";
18331
+ isOneToOne: false;
18332
+ isSetofReturn: true;
18333
+ };
18334
+ };
18335
+ claim_logistics_tasks: {
18336
+ Args: {
18337
+ _limit?: number;
18338
+ _owner_module: string;
18339
+ _stale_minutes?: number;
18340
+ _task_type: string;
18341
+ _worker: string;
18342
+ };
18343
+ Returns: {
18344
+ attempt_log: import("../integrations/supabase/types").Json;
18345
+ attempts: number;
18346
+ buffer_ref: string | null;
18347
+ claimed_at: string | null;
18348
+ claimed_by: string | null;
18349
+ completed_at: string | null;
18350
+ created_at: string;
18351
+ depends_on: string[];
18352
+ due_at: string | null;
18353
+ error: string | null;
18354
+ id: string;
18355
+ last_error: string | null;
18356
+ next_attempt_at: string | null;
18357
+ order_ref: string;
18358
+ owner_module: string;
18359
+ payload: import("../integrations/supabase/types").Json;
18360
+ plan_run_id: string | null;
18361
+ planned_end: string | null;
18362
+ planned_start: string | null;
18363
+ priority: number;
18364
+ result: import("../integrations/supabase/types").Json | null;
18365
+ rule_config_id: string | null;
18366
+ rule_version: number | null;
18367
+ sequence: number;
18368
+ shadow: boolean;
18369
+ started_at: string | null;
18370
+ status: string;
18371
+ strategy_id: string | null;
18372
+ task_type: string;
18373
+ updated_at: string;
18374
+ user_id: string;
18375
+ }[];
18376
+ SetofOptions: {
18377
+ from: "*";
18378
+ to: "logistics_tasks";
18379
+ isOneToOne: false;
18380
+ isSetofReturn: true;
18381
+ };
18382
+ };
18214
18383
  claim_print_jobs: {
18215
18384
  Args: {
18216
18385
  _agent_id: string;
@@ -18275,10 +18444,24 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
18275
18444
  isSetofReturn: true;
18276
18445
  };
18277
18446
  };
18447
+ cleanup_floriday_stock_queue: {
18448
+ Args: never;
18449
+ Returns: undefined;
18450
+ };
18278
18451
  cleanup_old_bookings: {
18279
18452
  Args: never;
18280
18453
  Returns: undefined;
18281
18454
  };
18455
+ complete_floriday_stock_queue: {
18456
+ Args: {
18457
+ p_attempt_id?: string;
18458
+ p_error?: string;
18459
+ p_id: string;
18460
+ p_ok: boolean;
18461
+ p_permanent?: boolean;
18462
+ };
18463
+ Returns: undefined;
18464
+ };
18282
18465
  consume_bom_for_production: {
18283
18466
  Args: {
18284
18467
  p_connection_id: string;
@@ -18970,6 +19153,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
18970
19153
  p_worker?: string;
18971
19154
  };
18972
19155
  Returns: {
19156
+ attempt_log: import("../integrations/supabase/types").Json;
19157
+ attempts: number;
18973
19158
  buffer_ref: string | null;
18974
19159
  claimed_at: string | null;
18975
19160
  claimed_by: string | null;
@@ -18979,6 +19164,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
18979
19164
  due_at: string | null;
18980
19165
  error: string | null;
18981
19166
  id: string;
19167
+ last_error: string | null;
19168
+ next_attempt_at: string | null;
18982
19169
  order_ref: string;
18983
19170
  owner_module: string;
18984
19171
  payload: import("../integrations/supabase/types").Json;
@@ -19011,6 +19198,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
19011
19198
  p_worker?: string;
19012
19199
  };
19013
19200
  Returns: {
19201
+ attempt_log: import("../integrations/supabase/types").Json;
19202
+ attempts: number;
19014
19203
  buffer_ref: string | null;
19015
19204
  claimed_at: string | null;
19016
19205
  claimed_by: string | null;
@@ -19020,6 +19209,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
19020
19209
  due_at: string | null;
19021
19210
  error: string | null;
19022
19211
  id: string;
19212
+ last_error: string | null;
19213
+ next_attempt_at: string | null;
19023
19214
  order_ref: string;
19024
19215
  owner_module: string;
19025
19216
  payload: import("../integrations/supabase/types").Json;
@@ -19052,6 +19243,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
19052
19243
  p_task_id: string;
19053
19244
  };
19054
19245
  Returns: {
19246
+ attempt_log: import("../integrations/supabase/types").Json;
19247
+ attempts: number;
19055
19248
  buffer_ref: string | null;
19056
19249
  claimed_at: string | null;
19057
19250
  claimed_by: string | null;
@@ -19061,6 +19254,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
19061
19254
  due_at: string | null;
19062
19255
  error: string | null;
19063
19256
  id: string;
19257
+ last_error: string | null;
19258
+ next_attempt_at: string | null;
19064
19259
  order_ref: string;
19065
19260
  owner_module: string;
19066
19261
  payload: import("../integrations/supabase/types").Json;
@@ -19142,6 +19337,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
19142
19337
  p_task_id: string;
19143
19338
  };
19144
19339
  Returns: {
19340
+ attempt_log: import("../integrations/supabase/types").Json;
19341
+ attempts: number;
19145
19342
  buffer_ref: string | null;
19146
19343
  claimed_at: string | null;
19147
19344
  claimed_by: string | null;
@@ -19151,6 +19348,8 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
19151
19348
  due_at: string | null;
19152
19349
  error: string | null;
19153
19350
  id: string;
19351
+ last_error: string | null;
19352
+ next_attempt_at: string | null;
19154
19353
  order_ref: string;
19155
19354
  owner_module: string;
19156
19355
  payload: import("../integrations/supabase/types").Json;
@@ -19177,6 +19376,51 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
19177
19376
  isSetofReturn: false;
19178
19377
  };
19179
19378
  };
19379
+ logistics_floriday_claim_pushes: {
19380
+ Args: {
19381
+ _lease_seconds?: number;
19382
+ _limit?: number;
19383
+ _worker?: string;
19384
+ };
19385
+ Returns: {
19386
+ attempts: number;
19387
+ fulfillment_order_id: string;
19388
+ id: string;
19389
+ last_sent_hash: string;
19390
+ order_ref: string;
19391
+ payload: import("../integrations/supabase/types").Json;
19392
+ payload_hash: string;
19393
+ revision: number;
19394
+ }[];
19395
+ };
19396
+ logistics_floriday_finish_push: {
19397
+ Args: {
19398
+ _error?: string;
19399
+ _fulfillment_order_id?: string;
19400
+ _id: string;
19401
+ _max_age_hours?: number;
19402
+ _max_attempts?: number;
19403
+ _ok: boolean;
19404
+ _permanent?: boolean;
19405
+ _revision: number;
19406
+ _sent_hash?: string;
19407
+ };
19408
+ Returns: string;
19409
+ };
19410
+ logistics_floriday_prune_pushes: {
19411
+ Args: {
19412
+ _days?: number;
19413
+ };
19414
+ Returns: number;
19415
+ };
19416
+ logistics_floriday_queue_push: {
19417
+ Args: {
19418
+ _order_ref: string;
19419
+ _payload?: import("../integrations/supabase/types").Json;
19420
+ _payload_hash?: string;
19421
+ };
19422
+ Returns: string;
19423
+ };
19180
19424
  logistics_live_carriers: {
19181
19425
  Args: {
19182
19426
  p_order_ref: string;
@@ -19904,6 +20148,10 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
19904
20148
  Args: never;
19905
20149
  Returns: undefined;
19906
20150
  };
20151
+ run_logistics_tasks_dispatch: {
20152
+ Args: never;
20153
+ Returns: undefined;
20154
+ };
19907
20155
  run_twinfield_queue_tick: {
19908
20156
  Args: never;
19909
20157
  Returns: undefined;
@@ -20144,6 +20392,13 @@ export declare const getCustomerAnalytics: import("@tanstack/start-client-core")
20144
20392
  };
20145
20393
  Returns: number;
20146
20394
  };
20395
+ schedule_floriday_stock_queue_process: {
20396
+ Args: {
20397
+ p_apikey: string;
20398
+ p_url: string;
20399
+ };
20400
+ Returns: number;
20401
+ };
20147
20402
  schedule_floriday_token_refresh: {
20148
20403
  Args: {
20149
20404
  p_apikey: string;