@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
@@ -5718,12 +5718,17 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
5718
5718
  attempts: number;
5719
5719
  connection_id: string;
5720
5720
  created_at: string;
5721
+ desired_available: boolean | null;
5721
5722
  gateway_attempt_id: string | null;
5722
5723
  id: string;
5723
5724
  last_error: string | null;
5725
+ locked_at: string | null;
5726
+ locked_by: string | null;
5727
+ next_attempt_at: string;
5724
5728
  number_of_pieces: number;
5725
5729
  sent_at: string | null;
5726
5730
  status: string;
5731
+ superseded_by: string | null;
5727
5732
  trade_item_id: string;
5728
5733
  updated_at: string;
5729
5734
  user_id: string;
@@ -5732,12 +5737,17 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
5732
5737
  attempts?: number;
5733
5738
  connection_id: string;
5734
5739
  created_at?: string;
5740
+ desired_available?: boolean | null;
5735
5741
  gateway_attempt_id?: string | null;
5736
5742
  id?: string;
5737
5743
  last_error?: string | null;
5744
+ locked_at?: string | null;
5745
+ locked_by?: string | null;
5746
+ next_attempt_at?: string;
5738
5747
  number_of_pieces?: number;
5739
5748
  sent_at?: string | null;
5740
5749
  status?: string;
5750
+ superseded_by?: string | null;
5741
5751
  trade_item_id: string;
5742
5752
  updated_at?: string;
5743
5753
  user_id: string;
@@ -5746,12 +5756,17 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
5746
5756
  attempts?: number;
5747
5757
  connection_id?: string;
5748
5758
  created_at?: string;
5759
+ desired_available?: boolean | null;
5749
5760
  gateway_attempt_id?: string | null;
5750
5761
  id?: string;
5751
5762
  last_error?: string | null;
5763
+ locked_at?: string | null;
5764
+ locked_by?: string | null;
5765
+ next_attempt_at?: string;
5752
5766
  number_of_pieces?: number;
5753
5767
  sent_at?: string | null;
5754
5768
  status?: string;
5769
+ superseded_by?: string | null;
5755
5770
  trade_item_id?: string;
5756
5771
  updated_at?: string;
5757
5772
  user_id?: string;
@@ -8500,6 +8515,69 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
8500
8515
  };
8501
8516
  Relationships: [];
8502
8517
  };
8518
+ logistics_floriday_pushes: {
8519
+ Row: {
8520
+ attempts: number;
8521
+ created_at: string;
8522
+ first_queued_at: string;
8523
+ fulfillment_order_id: string | null;
8524
+ id: string;
8525
+ last_error: string | null;
8526
+ last_error_at: string | null;
8527
+ last_sent_hash: string | null;
8528
+ locked_by: string | null;
8529
+ locked_until: string | null;
8530
+ next_attempt_at: string;
8531
+ order_ref: string;
8532
+ payload: import("../integrations/supabase/types").Json;
8533
+ payload_hash: string | null;
8534
+ revision: number;
8535
+ sent_at: string | null;
8536
+ status: string;
8537
+ updated_at: string;
8538
+ };
8539
+ Insert: {
8540
+ attempts?: number;
8541
+ created_at?: string;
8542
+ first_queued_at?: string;
8543
+ fulfillment_order_id?: string | null;
8544
+ id?: string;
8545
+ last_error?: string | null;
8546
+ last_error_at?: string | null;
8547
+ last_sent_hash?: string | null;
8548
+ locked_by?: string | null;
8549
+ locked_until?: string | null;
8550
+ next_attempt_at?: string;
8551
+ order_ref: string;
8552
+ payload?: import("../integrations/supabase/types").Json;
8553
+ payload_hash?: string | null;
8554
+ revision?: number;
8555
+ sent_at?: string | null;
8556
+ status?: string;
8557
+ updated_at?: string;
8558
+ };
8559
+ Update: {
8560
+ attempts?: number;
8561
+ created_at?: string;
8562
+ first_queued_at?: string;
8563
+ fulfillment_order_id?: string | null;
8564
+ id?: string;
8565
+ last_error?: string | null;
8566
+ last_error_at?: string | null;
8567
+ last_sent_hash?: string | null;
8568
+ locked_by?: string | null;
8569
+ locked_until?: string | null;
8570
+ next_attempt_at?: string;
8571
+ order_ref?: string;
8572
+ payload?: import("../integrations/supabase/types").Json;
8573
+ payload_hash?: string | null;
8574
+ revision?: number;
8575
+ sent_at?: string | null;
8576
+ status?: string;
8577
+ updated_at?: string;
8578
+ };
8579
+ Relationships: [];
8580
+ };
8503
8581
  logistics_formulas: {
8504
8582
  Row: {
8505
8583
  created_at: string;
@@ -9111,6 +9189,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
9111
9189
  };
9112
9190
  logistics_tasks: {
9113
9191
  Row: {
9192
+ attempt_log: import("../integrations/supabase/types").Json;
9193
+ attempts: number;
9114
9194
  buffer_ref: string | null;
9115
9195
  claimed_at: string | null;
9116
9196
  claimed_by: string | null;
@@ -9120,6 +9200,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
9120
9200
  due_at: string | null;
9121
9201
  error: string | null;
9122
9202
  id: string;
9203
+ last_error: string | null;
9204
+ next_attempt_at: string | null;
9123
9205
  order_ref: string;
9124
9206
  owner_module: string;
9125
9207
  payload: import("../integrations/supabase/types").Json;
@@ -9140,6 +9222,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
9140
9222
  user_id: string;
9141
9223
  };
9142
9224
  Insert: {
9225
+ attempt_log?: import("../integrations/supabase/types").Json;
9226
+ attempts?: number;
9143
9227
  buffer_ref?: string | null;
9144
9228
  claimed_at?: string | null;
9145
9229
  claimed_by?: string | null;
@@ -9149,6 +9233,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
9149
9233
  due_at?: string | null;
9150
9234
  error?: string | null;
9151
9235
  id?: string;
9236
+ last_error?: string | null;
9237
+ next_attempt_at?: string | null;
9152
9238
  order_ref: string;
9153
9239
  owner_module: string;
9154
9240
  payload?: import("../integrations/supabase/types").Json;
@@ -9169,6 +9255,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
9169
9255
  user_id?: string;
9170
9256
  };
9171
9257
  Update: {
9258
+ attempt_log?: import("../integrations/supabase/types").Json;
9259
+ attempts?: number;
9172
9260
  buffer_ref?: string | null;
9173
9261
  claimed_at?: string | null;
9174
9262
  claimed_by?: string | null;
@@ -9178,6 +9266,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
9178
9266
  due_at?: string | null;
9179
9267
  error?: string | null;
9180
9268
  id?: string;
9269
+ last_error?: string | null;
9270
+ next_attempt_at?: string | null;
9181
9271
  order_ref?: string;
9182
9272
  owner_module?: string;
9183
9273
  payload?: import("../integrations/supabase/types").Json;
@@ -18182,6 +18272,85 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
18182
18272
  };
18183
18273
  Returns: import("../integrations/supabase/types").Json;
18184
18274
  };
18275
+ claim_floriday_stock_queue: {
18276
+ Args: {
18277
+ p_limit?: number;
18278
+ p_worker?: string;
18279
+ };
18280
+ Returns: {
18281
+ attempts: number;
18282
+ connection_id: string;
18283
+ created_at: string;
18284
+ desired_available: boolean | null;
18285
+ gateway_attempt_id: string | null;
18286
+ id: string;
18287
+ last_error: string | null;
18288
+ locked_at: string | null;
18289
+ locked_by: string | null;
18290
+ next_attempt_at: string;
18291
+ number_of_pieces: number;
18292
+ sent_at: string | null;
18293
+ status: string;
18294
+ superseded_by: string | null;
18295
+ trade_item_id: string;
18296
+ updated_at: string;
18297
+ user_id: string;
18298
+ }[];
18299
+ SetofOptions: {
18300
+ from: "*";
18301
+ to: "floriday_continuous_stock_queue";
18302
+ isOneToOne: false;
18303
+ isSetofReturn: true;
18304
+ };
18305
+ };
18306
+ claim_logistics_tasks: {
18307
+ Args: {
18308
+ _limit?: number;
18309
+ _owner_module: string;
18310
+ _stale_minutes?: number;
18311
+ _task_type: string;
18312
+ _worker: string;
18313
+ };
18314
+ Returns: {
18315
+ attempt_log: import("../integrations/supabase/types").Json;
18316
+ attempts: number;
18317
+ buffer_ref: string | null;
18318
+ claimed_at: string | null;
18319
+ claimed_by: string | null;
18320
+ completed_at: string | null;
18321
+ created_at: string;
18322
+ depends_on: string[];
18323
+ due_at: string | null;
18324
+ error: string | null;
18325
+ id: string;
18326
+ last_error: string | null;
18327
+ next_attempt_at: string | null;
18328
+ order_ref: string;
18329
+ owner_module: string;
18330
+ payload: import("../integrations/supabase/types").Json;
18331
+ plan_run_id: string | null;
18332
+ planned_end: string | null;
18333
+ planned_start: string | null;
18334
+ priority: number;
18335
+ result: import("../integrations/supabase/types").Json | null;
18336
+ rule_config_id: string | null;
18337
+ rule_version: number | null;
18338
+ sequence: number;
18339
+ shadow: boolean;
18340
+ started_at: string | null;
18341
+ status: string;
18342
+ strategy_id: string | null;
18343
+ task_type: string;
18344
+ updated_at: string;
18345
+ user_id: string;
18346
+ }[];
18347
+ SetofOptions: {
18348
+ from: "*";
18349
+ to: "logistics_tasks";
18350
+ isOneToOne: false;
18351
+ isSetofReturn: true;
18352
+ };
18353
+ };
18185
18354
  claim_print_jobs: {
18186
18355
  Args: {
18187
18356
  _agent_id: string;
@@ -18246,10 +18415,24 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
18246
18415
  isSetofReturn: true;
18247
18416
  };
18248
18417
  };
18418
+ cleanup_floriday_stock_queue: {
18419
+ Args: never;
18420
+ Returns: undefined;
18421
+ };
18249
18422
  cleanup_old_bookings: {
18250
18423
  Args: never;
18251
18424
  Returns: undefined;
18252
18425
  };
18426
+ complete_floriday_stock_queue: {
18427
+ Args: {
18428
+ p_attempt_id?: string;
18429
+ p_error?: string;
18430
+ p_id: string;
18431
+ p_ok: boolean;
18432
+ p_permanent?: boolean;
18433
+ };
18434
+ Returns: undefined;
18435
+ };
18253
18436
  consume_bom_for_production: {
18254
18437
  Args: {
18255
18438
  p_connection_id: string;
@@ -18941,6 +19124,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
18941
19124
  p_worker?: string;
18942
19125
  };
18943
19126
  Returns: {
19127
+ attempt_log: import("../integrations/supabase/types").Json;
19128
+ attempts: number;
18944
19129
  buffer_ref: string | null;
18945
19130
  claimed_at: string | null;
18946
19131
  claimed_by: string | null;
@@ -18950,6 +19135,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
18950
19135
  due_at: string | null;
18951
19136
  error: string | null;
18952
19137
  id: string;
19138
+ last_error: string | null;
19139
+ next_attempt_at: string | null;
18953
19140
  order_ref: string;
18954
19141
  owner_module: string;
18955
19142
  payload: import("../integrations/supabase/types").Json;
@@ -18982,6 +19169,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
18982
19169
  p_worker?: string;
18983
19170
  };
18984
19171
  Returns: {
19172
+ attempt_log: import("../integrations/supabase/types").Json;
19173
+ attempts: number;
18985
19174
  buffer_ref: string | null;
18986
19175
  claimed_at: string | null;
18987
19176
  claimed_by: string | null;
@@ -18991,6 +19180,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
18991
19180
  due_at: string | null;
18992
19181
  error: string | null;
18993
19182
  id: string;
19183
+ last_error: string | null;
19184
+ next_attempt_at: string | null;
18994
19185
  order_ref: string;
18995
19186
  owner_module: string;
18996
19187
  payload: import("../integrations/supabase/types").Json;
@@ -19023,6 +19214,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
19023
19214
  p_task_id: string;
19024
19215
  };
19025
19216
  Returns: {
19217
+ attempt_log: import("../integrations/supabase/types").Json;
19218
+ attempts: number;
19026
19219
  buffer_ref: string | null;
19027
19220
  claimed_at: string | null;
19028
19221
  claimed_by: string | null;
@@ -19032,6 +19225,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
19032
19225
  due_at: string | null;
19033
19226
  error: string | null;
19034
19227
  id: string;
19228
+ last_error: string | null;
19229
+ next_attempt_at: string | null;
19035
19230
  order_ref: string;
19036
19231
  owner_module: string;
19037
19232
  payload: import("../integrations/supabase/types").Json;
@@ -19113,6 +19308,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
19113
19308
  p_task_id: string;
19114
19309
  };
19115
19310
  Returns: {
19311
+ attempt_log: import("../integrations/supabase/types").Json;
19312
+ attempts: number;
19116
19313
  buffer_ref: string | null;
19117
19314
  claimed_at: string | null;
19118
19315
  claimed_by: string | null;
@@ -19122,6 +19319,8 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
19122
19319
  due_at: string | null;
19123
19320
  error: string | null;
19124
19321
  id: string;
19322
+ last_error: string | null;
19323
+ next_attempt_at: string | null;
19125
19324
  order_ref: string;
19126
19325
  owner_module: string;
19127
19326
  payload: import("../integrations/supabase/types").Json;
@@ -19148,6 +19347,51 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
19148
19347
  isSetofReturn: false;
19149
19348
  };
19150
19349
  };
19350
+ logistics_floriday_claim_pushes: {
19351
+ Args: {
19352
+ _lease_seconds?: number;
19353
+ _limit?: number;
19354
+ _worker?: string;
19355
+ };
19356
+ Returns: {
19357
+ attempts: number;
19358
+ fulfillment_order_id: string;
19359
+ id: string;
19360
+ last_sent_hash: string;
19361
+ order_ref: string;
19362
+ payload: import("../integrations/supabase/types").Json;
19363
+ payload_hash: string;
19364
+ revision: number;
19365
+ }[];
19366
+ };
19367
+ logistics_floriday_finish_push: {
19368
+ Args: {
19369
+ _error?: string;
19370
+ _fulfillment_order_id?: string;
19371
+ _id: string;
19372
+ _max_age_hours?: number;
19373
+ _max_attempts?: number;
19374
+ _ok: boolean;
19375
+ _permanent?: boolean;
19376
+ _revision: number;
19377
+ _sent_hash?: string;
19378
+ };
19379
+ Returns: string;
19380
+ };
19381
+ logistics_floriday_prune_pushes: {
19382
+ Args: {
19383
+ _days?: number;
19384
+ };
19385
+ Returns: number;
19386
+ };
19387
+ logistics_floriday_queue_push: {
19388
+ Args: {
19389
+ _order_ref: string;
19390
+ _payload?: import("../integrations/supabase/types").Json;
19391
+ _payload_hash?: string;
19392
+ };
19393
+ Returns: string;
19394
+ };
19151
19395
  logistics_live_carriers: {
19152
19396
  Args: {
19153
19397
  p_order_ref: string;
@@ -19875,6 +20119,10 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
19875
20119
  Args: never;
19876
20120
  Returns: undefined;
19877
20121
  };
20122
+ run_logistics_tasks_dispatch: {
20123
+ Args: never;
20124
+ Returns: undefined;
20125
+ };
19878
20126
  run_twinfield_queue_tick: {
19879
20127
  Args: never;
19880
20128
  Returns: undefined;
@@ -20115,6 +20363,13 @@ export declare const listRevenueActivity: import("@tanstack/start-client-core").
20115
20363
  };
20116
20364
  Returns: number;
20117
20365
  };
20366
+ schedule_floriday_stock_queue_process: {
20367
+ Args: {
20368
+ p_apikey: string;
20369
+ p_url: string;
20370
+ };
20371
+ Returns: number;
20372
+ };
20118
20373
  schedule_floriday_token_refresh: {
20119
20374
  Args: {
20120
20375
  p_apikey: string;