@flowselections/floriday-klanten-module 1.0.30 → 1.0.32

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
@@ -5711,12 +5711,17 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
5711
5711
  attempts: number;
5712
5712
  connection_id: string;
5713
5713
  created_at: string;
5714
+ desired_available: boolean | null;
5714
5715
  gateway_attempt_id: string | null;
5715
5716
  id: string;
5716
5717
  last_error: string | null;
5718
+ locked_at: string | null;
5719
+ locked_by: string | null;
5720
+ next_attempt_at: string;
5717
5721
  number_of_pieces: number;
5718
5722
  sent_at: string | null;
5719
5723
  status: string;
5724
+ superseded_by: string | null;
5720
5725
  trade_item_id: string;
5721
5726
  updated_at: string;
5722
5727
  user_id: string;
@@ -5725,12 +5730,17 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
5725
5730
  attempts?: number;
5726
5731
  connection_id: string;
5727
5732
  created_at?: string;
5733
+ desired_available?: boolean | null;
5728
5734
  gateway_attempt_id?: string | null;
5729
5735
  id?: string;
5730
5736
  last_error?: string | null;
5737
+ locked_at?: string | null;
5738
+ locked_by?: string | null;
5739
+ next_attempt_at?: string;
5731
5740
  number_of_pieces?: number;
5732
5741
  sent_at?: string | null;
5733
5742
  status?: string;
5743
+ superseded_by?: string | null;
5734
5744
  trade_item_id: string;
5735
5745
  updated_at?: string;
5736
5746
  user_id: string;
@@ -5739,12 +5749,17 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
5739
5749
  attempts?: number;
5740
5750
  connection_id?: string;
5741
5751
  created_at?: string;
5752
+ desired_available?: boolean | null;
5742
5753
  gateway_attempt_id?: string | null;
5743
5754
  id?: string;
5744
5755
  last_error?: string | null;
5756
+ locked_at?: string | null;
5757
+ locked_by?: string | null;
5758
+ next_attempt_at?: string;
5745
5759
  number_of_pieces?: number;
5746
5760
  sent_at?: string | null;
5747
5761
  status?: string;
5762
+ superseded_by?: string | null;
5748
5763
  trade_item_id?: string;
5749
5764
  updated_at?: string;
5750
5765
  user_id?: string;
@@ -8493,6 +8508,69 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
8493
8508
  };
8494
8509
  Relationships: [];
8495
8510
  };
8511
+ logistics_floriday_pushes: {
8512
+ Row: {
8513
+ attempts: number;
8514
+ created_at: string;
8515
+ first_queued_at: string;
8516
+ fulfillment_order_id: string | null;
8517
+ id: string;
8518
+ last_error: string | null;
8519
+ last_error_at: string | null;
8520
+ last_sent_hash: string | null;
8521
+ locked_by: string | null;
8522
+ locked_until: string | null;
8523
+ next_attempt_at: string;
8524
+ order_ref: string;
8525
+ payload: import("../integrations/supabase/types").Json;
8526
+ payload_hash: string | null;
8527
+ revision: number;
8528
+ sent_at: string | null;
8529
+ status: string;
8530
+ updated_at: string;
8531
+ };
8532
+ Insert: {
8533
+ attempts?: number;
8534
+ created_at?: string;
8535
+ first_queued_at?: string;
8536
+ fulfillment_order_id?: string | null;
8537
+ id?: string;
8538
+ last_error?: string | null;
8539
+ last_error_at?: string | null;
8540
+ last_sent_hash?: string | null;
8541
+ locked_by?: string | null;
8542
+ locked_until?: string | null;
8543
+ next_attempt_at?: string;
8544
+ order_ref: string;
8545
+ payload?: import("../integrations/supabase/types").Json;
8546
+ payload_hash?: string | null;
8547
+ revision?: number;
8548
+ sent_at?: string | null;
8549
+ status?: string;
8550
+ updated_at?: string;
8551
+ };
8552
+ Update: {
8553
+ attempts?: number;
8554
+ created_at?: string;
8555
+ first_queued_at?: string;
8556
+ fulfillment_order_id?: string | null;
8557
+ id?: string;
8558
+ last_error?: string | null;
8559
+ last_error_at?: string | null;
8560
+ last_sent_hash?: string | null;
8561
+ locked_by?: string | null;
8562
+ locked_until?: string | null;
8563
+ next_attempt_at?: string;
8564
+ order_ref?: string;
8565
+ payload?: import("../integrations/supabase/types").Json;
8566
+ payload_hash?: string | null;
8567
+ revision?: number;
8568
+ sent_at?: string | null;
8569
+ status?: string;
8570
+ updated_at?: string;
8571
+ };
8572
+ Relationships: [];
8573
+ };
8496
8574
  logistics_formulas: {
8497
8575
  Row: {
8498
8576
  created_at: string;
@@ -9104,6 +9182,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9104
9182
  };
9105
9183
  logistics_tasks: {
9106
9184
  Row: {
9185
+ attempt_log: import("../integrations/supabase/types").Json;
9186
+ attempts: number;
9107
9187
  buffer_ref: string | null;
9108
9188
  claimed_at: string | null;
9109
9189
  claimed_by: string | null;
@@ -9113,6 +9193,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9113
9193
  due_at: string | null;
9114
9194
  error: string | null;
9115
9195
  id: string;
9196
+ last_error: string | null;
9197
+ next_attempt_at: string | null;
9116
9198
  order_ref: string;
9117
9199
  owner_module: string;
9118
9200
  payload: import("../integrations/supabase/types").Json;
@@ -9133,6 +9215,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9133
9215
  user_id: string;
9134
9216
  };
9135
9217
  Insert: {
9218
+ attempt_log?: import("../integrations/supabase/types").Json;
9219
+ attempts?: number;
9136
9220
  buffer_ref?: string | null;
9137
9221
  claimed_at?: string | null;
9138
9222
  claimed_by?: string | null;
@@ -9142,6 +9226,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9142
9226
  due_at?: string | null;
9143
9227
  error?: string | null;
9144
9228
  id?: string;
9229
+ last_error?: string | null;
9230
+ next_attempt_at?: string | null;
9145
9231
  order_ref: string;
9146
9232
  owner_module: string;
9147
9233
  payload?: import("../integrations/supabase/types").Json;
@@ -9162,6 +9248,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9162
9248
  user_id?: string;
9163
9249
  };
9164
9250
  Update: {
9251
+ attempt_log?: import("../integrations/supabase/types").Json;
9252
+ attempts?: number;
9165
9253
  buffer_ref?: string | null;
9166
9254
  claimed_at?: string | null;
9167
9255
  claimed_by?: string | null;
@@ -9171,6 +9259,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
9171
9259
  due_at?: string | null;
9172
9260
  error?: string | null;
9173
9261
  id?: string;
9262
+ last_error?: string | null;
9263
+ next_attempt_at?: string | null;
9174
9264
  order_ref?: string;
9175
9265
  owner_module?: string;
9176
9266
  payload?: import("../integrations/supabase/types").Json;
@@ -18175,6 +18265,85 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
18175
18265
  };
18176
18266
  Returns: import("../integrations/supabase/types").Json;
18177
18267
  };
18268
+ claim_floriday_stock_queue: {
18269
+ Args: {
18270
+ p_limit?: number;
18271
+ p_worker?: string;
18272
+ };
18273
+ Returns: {
18274
+ attempts: number;
18275
+ connection_id: string;
18276
+ created_at: string;
18277
+ desired_available: boolean | null;
18278
+ gateway_attempt_id: string | null;
18279
+ id: string;
18280
+ last_error: string | null;
18281
+ locked_at: string | null;
18282
+ locked_by: string | null;
18283
+ next_attempt_at: string;
18284
+ number_of_pieces: number;
18285
+ sent_at: string | null;
18286
+ status: string;
18287
+ superseded_by: string | null;
18288
+ trade_item_id: string;
18289
+ updated_at: string;
18290
+ user_id: string;
18291
+ }[];
18292
+ SetofOptions: {
18293
+ from: "*";
18294
+ to: "floriday_continuous_stock_queue";
18295
+ isOneToOne: false;
18296
+ isSetofReturn: true;
18297
+ };
18298
+ };
18299
+ claim_logistics_tasks: {
18300
+ Args: {
18301
+ _limit?: number;
18302
+ _owner_module: string;
18303
+ _stale_minutes?: number;
18304
+ _task_type: string;
18305
+ _worker: string;
18306
+ };
18307
+ Returns: {
18308
+ attempt_log: import("../integrations/supabase/types").Json;
18309
+ attempts: number;
18310
+ buffer_ref: string | null;
18311
+ claimed_at: string | null;
18312
+ claimed_by: string | null;
18313
+ completed_at: string | null;
18314
+ created_at: string;
18315
+ depends_on: string[];
18316
+ due_at: string | null;
18317
+ error: string | null;
18318
+ id: string;
18319
+ last_error: string | null;
18320
+ next_attempt_at: string | null;
18321
+ order_ref: string;
18322
+ owner_module: string;
18323
+ payload: import("../integrations/supabase/types").Json;
18324
+ plan_run_id: string | null;
18325
+ planned_end: string | null;
18326
+ planned_start: string | null;
18327
+ priority: number;
18328
+ result: import("../integrations/supabase/types").Json | null;
18329
+ rule_config_id: string | null;
18330
+ rule_version: number | null;
18331
+ sequence: number;
18332
+ shadow: boolean;
18333
+ started_at: string | null;
18334
+ status: string;
18335
+ strategy_id: string | null;
18336
+ task_type: string;
18337
+ updated_at: string;
18338
+ user_id: string;
18339
+ }[];
18340
+ SetofOptions: {
18341
+ from: "*";
18342
+ to: "logistics_tasks";
18343
+ isOneToOne: false;
18344
+ isSetofReturn: true;
18345
+ };
18346
+ };
18178
18347
  claim_print_jobs: {
18179
18348
  Args: {
18180
18349
  _agent_id: string;
@@ -18239,10 +18408,24 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
18239
18408
  isSetofReturn: true;
18240
18409
  };
18241
18410
  };
18411
+ cleanup_floriday_stock_queue: {
18412
+ Args: never;
18413
+ Returns: undefined;
18414
+ };
18242
18415
  cleanup_old_bookings: {
18243
18416
  Args: never;
18244
18417
  Returns: undefined;
18245
18418
  };
18419
+ complete_floriday_stock_queue: {
18420
+ Args: {
18421
+ p_attempt_id?: string;
18422
+ p_error?: string;
18423
+ p_id: string;
18424
+ p_ok: boolean;
18425
+ p_permanent?: boolean;
18426
+ };
18427
+ Returns: undefined;
18428
+ };
18246
18429
  consume_bom_for_production: {
18247
18430
  Args: {
18248
18431
  p_connection_id: string;
@@ -18934,6 +19117,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
18934
19117
  p_worker?: string;
18935
19118
  };
18936
19119
  Returns: {
19120
+ attempt_log: import("../integrations/supabase/types").Json;
19121
+ attempts: number;
18937
19122
  buffer_ref: string | null;
18938
19123
  claimed_at: string | null;
18939
19124
  claimed_by: string | null;
@@ -18943,6 +19128,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
18943
19128
  due_at: string | null;
18944
19129
  error: string | null;
18945
19130
  id: string;
19131
+ last_error: string | null;
19132
+ next_attempt_at: string | null;
18946
19133
  order_ref: string;
18947
19134
  owner_module: string;
18948
19135
  payload: import("../integrations/supabase/types").Json;
@@ -18975,6 +19162,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
18975
19162
  p_worker?: string;
18976
19163
  };
18977
19164
  Returns: {
19165
+ attempt_log: import("../integrations/supabase/types").Json;
19166
+ attempts: number;
18978
19167
  buffer_ref: string | null;
18979
19168
  claimed_at: string | null;
18980
19169
  claimed_by: string | null;
@@ -18984,6 +19173,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
18984
19173
  due_at: string | null;
18985
19174
  error: string | null;
18986
19175
  id: string;
19176
+ last_error: string | null;
19177
+ next_attempt_at: string | null;
18987
19178
  order_ref: string;
18988
19179
  owner_module: string;
18989
19180
  payload: import("../integrations/supabase/types").Json;
@@ -19016,6 +19207,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
19016
19207
  p_task_id: string;
19017
19208
  };
19018
19209
  Returns: {
19210
+ attempt_log: import("../integrations/supabase/types").Json;
19211
+ attempts: number;
19019
19212
  buffer_ref: string | null;
19020
19213
  claimed_at: string | null;
19021
19214
  claimed_by: string | null;
@@ -19025,6 +19218,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
19025
19218
  due_at: string | null;
19026
19219
  error: string | null;
19027
19220
  id: string;
19221
+ last_error: string | null;
19222
+ next_attempt_at: string | null;
19028
19223
  order_ref: string;
19029
19224
  owner_module: string;
19030
19225
  payload: import("../integrations/supabase/types").Json;
@@ -19106,6 +19301,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
19106
19301
  p_task_id: string;
19107
19302
  };
19108
19303
  Returns: {
19304
+ attempt_log: import("../integrations/supabase/types").Json;
19305
+ attempts: number;
19109
19306
  buffer_ref: string | null;
19110
19307
  claimed_at: string | null;
19111
19308
  claimed_by: string | null;
@@ -19115,6 +19312,8 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
19115
19312
  due_at: string | null;
19116
19313
  error: string | null;
19117
19314
  id: string;
19315
+ last_error: string | null;
19316
+ next_attempt_at: string | null;
19118
19317
  order_ref: string;
19119
19318
  owner_module: string;
19120
19319
  payload: import("../integrations/supabase/types").Json;
@@ -19141,6 +19340,51 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
19141
19340
  isSetofReturn: false;
19142
19341
  };
19143
19342
  };
19343
+ logistics_floriday_claim_pushes: {
19344
+ Args: {
19345
+ _lease_seconds?: number;
19346
+ _limit?: number;
19347
+ _worker?: string;
19348
+ };
19349
+ Returns: {
19350
+ attempts: number;
19351
+ fulfillment_order_id: string;
19352
+ id: string;
19353
+ last_sent_hash: string;
19354
+ order_ref: string;
19355
+ payload: import("../integrations/supabase/types").Json;
19356
+ payload_hash: string;
19357
+ revision: number;
19358
+ }[];
19359
+ };
19360
+ logistics_floriday_finish_push: {
19361
+ Args: {
19362
+ _error?: string;
19363
+ _fulfillment_order_id?: string;
19364
+ _id: string;
19365
+ _max_age_hours?: number;
19366
+ _max_attempts?: number;
19367
+ _ok: boolean;
19368
+ _permanent?: boolean;
19369
+ _revision: number;
19370
+ _sent_hash?: string;
19371
+ };
19372
+ Returns: string;
19373
+ };
19374
+ logistics_floriday_prune_pushes: {
19375
+ Args: {
19376
+ _days?: number;
19377
+ };
19378
+ Returns: number;
19379
+ };
19380
+ logistics_floriday_queue_push: {
19381
+ Args: {
19382
+ _order_ref: string;
19383
+ _payload?: import("../integrations/supabase/types").Json;
19384
+ _payload_hash?: string;
19385
+ };
19386
+ Returns: string;
19387
+ };
19144
19388
  logistics_live_carriers: {
19145
19389
  Args: {
19146
19390
  p_order_ref: string;
@@ -19868,6 +20112,10 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
19868
20112
  Args: never;
19869
20113
  Returns: undefined;
19870
20114
  };
20115
+ run_logistics_tasks_dispatch: {
20116
+ Args: never;
20117
+ Returns: undefined;
20118
+ };
19871
20119
  run_twinfield_queue_tick: {
19872
20120
  Args: never;
19873
20121
  Returns: undefined;
@@ -20108,6 +20356,13 @@ export declare const listOverdueBalances: import("@tanstack/start-client-core").
20108
20356
  };
20109
20357
  Returns: number;
20110
20358
  };
20359
+ schedule_floriday_stock_queue_process: {
20360
+ Args: {
20361
+ p_apikey: string;
20362
+ p_url: string;
20363
+ };
20364
+ Returns: number;
20365
+ };
20111
20366
  schedule_floriday_token_refresh: {
20112
20367
  Args: {
20113
20368
  p_apikey: string;