@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
@@ -5695,12 +5695,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5695
5695
  attempts: number;
5696
5696
  connection_id: string;
5697
5697
  created_at: string;
5698
+ desired_available: boolean | null;
5698
5699
  gateway_attempt_id: string | null;
5699
5700
  id: string;
5700
5701
  last_error: string | null;
5702
+ locked_at: string | null;
5703
+ locked_by: string | null;
5704
+ next_attempt_at: string;
5701
5705
  number_of_pieces: number;
5702
5706
  sent_at: string | null;
5703
5707
  status: string;
5708
+ superseded_by: string | null;
5704
5709
  trade_item_id: string;
5705
5710
  updated_at: string;
5706
5711
  user_id: string;
@@ -5709,12 +5714,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5709
5714
  attempts?: number;
5710
5715
  connection_id: string;
5711
5716
  created_at?: string;
5717
+ desired_available?: boolean | null;
5712
5718
  gateway_attempt_id?: string | null;
5713
5719
  id?: string;
5714
5720
  last_error?: string | null;
5721
+ locked_at?: string | null;
5722
+ locked_by?: string | null;
5723
+ next_attempt_at?: string;
5715
5724
  number_of_pieces?: number;
5716
5725
  sent_at?: string | null;
5717
5726
  status?: string;
5727
+ superseded_by?: string | null;
5718
5728
  trade_item_id: string;
5719
5729
  updated_at?: string;
5720
5730
  user_id: string;
@@ -5723,12 +5733,17 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5723
5733
  attempts?: number;
5724
5734
  connection_id?: string;
5725
5735
  created_at?: string;
5736
+ desired_available?: boolean | null;
5726
5737
  gateway_attempt_id?: string | null;
5727
5738
  id?: string;
5728
5739
  last_error?: string | null;
5740
+ locked_at?: string | null;
5741
+ locked_by?: string | null;
5742
+ next_attempt_at?: string;
5729
5743
  number_of_pieces?: number;
5730
5744
  sent_at?: string | null;
5731
5745
  status?: string;
5746
+ superseded_by?: string | null;
5732
5747
  trade_item_id?: string;
5733
5748
  updated_at?: string;
5734
5749
  user_id?: string;
@@ -8477,6 +8492,69 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8477
8492
  };
8478
8493
  Relationships: [];
8479
8494
  };
8495
+ logistics_floriday_pushes: {
8496
+ Row: {
8497
+ attempts: number;
8498
+ created_at: string;
8499
+ first_queued_at: string;
8500
+ fulfillment_order_id: string | null;
8501
+ id: string;
8502
+ last_error: string | null;
8503
+ last_error_at: string | null;
8504
+ last_sent_hash: string | null;
8505
+ locked_by: string | null;
8506
+ locked_until: string | null;
8507
+ next_attempt_at: string;
8508
+ order_ref: string;
8509
+ payload: import("./types").Json;
8510
+ payload_hash: string | null;
8511
+ revision: number;
8512
+ sent_at: string | null;
8513
+ status: string;
8514
+ updated_at: string;
8515
+ };
8516
+ Insert: {
8517
+ attempts?: number;
8518
+ created_at?: string;
8519
+ first_queued_at?: string;
8520
+ fulfillment_order_id?: string | null;
8521
+ id?: string;
8522
+ last_error?: string | null;
8523
+ last_error_at?: string | null;
8524
+ last_sent_hash?: string | null;
8525
+ locked_by?: string | null;
8526
+ locked_until?: string | null;
8527
+ next_attempt_at?: string;
8528
+ order_ref: string;
8529
+ payload?: import("./types").Json;
8530
+ payload_hash?: string | null;
8531
+ revision?: number;
8532
+ sent_at?: string | null;
8533
+ status?: string;
8534
+ updated_at?: string;
8535
+ };
8536
+ Update: {
8537
+ attempts?: number;
8538
+ created_at?: string;
8539
+ first_queued_at?: string;
8540
+ fulfillment_order_id?: string | null;
8541
+ id?: string;
8542
+ last_error?: string | null;
8543
+ last_error_at?: string | null;
8544
+ last_sent_hash?: string | null;
8545
+ locked_by?: string | null;
8546
+ locked_until?: string | null;
8547
+ next_attempt_at?: string;
8548
+ order_ref?: string;
8549
+ payload?: import("./types").Json;
8550
+ payload_hash?: string | null;
8551
+ revision?: number;
8552
+ sent_at?: string | null;
8553
+ status?: string;
8554
+ updated_at?: string;
8555
+ };
8556
+ Relationships: [];
8557
+ };
8480
8558
  logistics_formulas: {
8481
8559
  Row: {
8482
8560
  created_at: string;
@@ -9088,6 +9166,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9088
9166
  };
9089
9167
  logistics_tasks: {
9090
9168
  Row: {
9169
+ attempt_log: import("./types").Json;
9170
+ attempts: number;
9091
9171
  buffer_ref: string | null;
9092
9172
  claimed_at: string | null;
9093
9173
  claimed_by: string | null;
@@ -9097,6 +9177,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9097
9177
  due_at: string | null;
9098
9178
  error: string | null;
9099
9179
  id: string;
9180
+ last_error: string | null;
9181
+ next_attempt_at: string | null;
9100
9182
  order_ref: string;
9101
9183
  owner_module: string;
9102
9184
  payload: import("./types").Json;
@@ -9117,6 +9199,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9117
9199
  user_id: string;
9118
9200
  };
9119
9201
  Insert: {
9202
+ attempt_log?: import("./types").Json;
9203
+ attempts?: number;
9120
9204
  buffer_ref?: string | null;
9121
9205
  claimed_at?: string | null;
9122
9206
  claimed_by?: string | null;
@@ -9126,6 +9210,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9126
9210
  due_at?: string | null;
9127
9211
  error?: string | null;
9128
9212
  id?: string;
9213
+ last_error?: string | null;
9214
+ next_attempt_at?: string | null;
9129
9215
  order_ref: string;
9130
9216
  owner_module: string;
9131
9217
  payload?: import("./types").Json;
@@ -9146,6 +9232,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9146
9232
  user_id?: string;
9147
9233
  };
9148
9234
  Update: {
9235
+ attempt_log?: import("./types").Json;
9236
+ attempts?: number;
9149
9237
  buffer_ref?: string | null;
9150
9238
  claimed_at?: string | null;
9151
9239
  claimed_by?: string | null;
@@ -9155,6 +9243,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9155
9243
  due_at?: string | null;
9156
9244
  error?: string | null;
9157
9245
  id?: string;
9246
+ last_error?: string | null;
9247
+ next_attempt_at?: string | null;
9158
9248
  order_ref?: string;
9159
9249
  owner_module?: string;
9160
9250
  payload?: import("./types").Json;
@@ -18159,6 +18249,85 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18159
18249
  };
18160
18250
  Returns: import("./types").Json;
18161
18251
  };
18252
+ claim_floriday_stock_queue: {
18253
+ Args: {
18254
+ p_limit?: number;
18255
+ p_worker?: string;
18256
+ };
18257
+ Returns: {
18258
+ attempts: number;
18259
+ connection_id: string;
18260
+ created_at: string;
18261
+ desired_available: boolean | null;
18262
+ gateway_attempt_id: string | null;
18263
+ id: string;
18264
+ last_error: string | null;
18265
+ locked_at: string | null;
18266
+ locked_by: string | null;
18267
+ next_attempt_at: string;
18268
+ number_of_pieces: number;
18269
+ sent_at: string | null;
18270
+ status: string;
18271
+ superseded_by: string | null;
18272
+ trade_item_id: string;
18273
+ updated_at: string;
18274
+ user_id: string;
18275
+ }[];
18276
+ SetofOptions: {
18277
+ from: "*";
18278
+ to: "floriday_continuous_stock_queue";
18279
+ isOneToOne: false;
18280
+ isSetofReturn: true;
18281
+ };
18282
+ };
18283
+ claim_logistics_tasks: {
18284
+ Args: {
18285
+ _limit?: number;
18286
+ _owner_module: string;
18287
+ _stale_minutes?: number;
18288
+ _task_type: string;
18289
+ _worker: string;
18290
+ };
18291
+ Returns: {
18292
+ attempt_log: import("./types").Json;
18293
+ attempts: number;
18294
+ buffer_ref: string | null;
18295
+ claimed_at: string | null;
18296
+ claimed_by: string | null;
18297
+ completed_at: string | null;
18298
+ created_at: string;
18299
+ depends_on: string[];
18300
+ due_at: string | null;
18301
+ error: string | null;
18302
+ id: string;
18303
+ last_error: string | null;
18304
+ next_attempt_at: string | null;
18305
+ order_ref: string;
18306
+ owner_module: string;
18307
+ payload: import("./types").Json;
18308
+ plan_run_id: string | null;
18309
+ planned_end: string | null;
18310
+ planned_start: string | null;
18311
+ priority: number;
18312
+ result: import("./types").Json | null;
18313
+ rule_config_id: string | null;
18314
+ rule_version: number | null;
18315
+ sequence: number;
18316
+ shadow: boolean;
18317
+ started_at: string | null;
18318
+ status: string;
18319
+ strategy_id: string | null;
18320
+ task_type: string;
18321
+ updated_at: string;
18322
+ user_id: string;
18323
+ }[];
18324
+ SetofOptions: {
18325
+ from: "*";
18326
+ to: "logistics_tasks";
18327
+ isOneToOne: false;
18328
+ isSetofReturn: true;
18329
+ };
18330
+ };
18162
18331
  claim_print_jobs: {
18163
18332
  Args: {
18164
18333
  _agent_id: string;
@@ -18223,10 +18392,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18223
18392
  isSetofReturn: true;
18224
18393
  };
18225
18394
  };
18395
+ cleanup_floriday_stock_queue: {
18396
+ Args: never;
18397
+ Returns: undefined;
18398
+ };
18226
18399
  cleanup_old_bookings: {
18227
18400
  Args: never;
18228
18401
  Returns: undefined;
18229
18402
  };
18403
+ complete_floriday_stock_queue: {
18404
+ Args: {
18405
+ p_attempt_id?: string;
18406
+ p_error?: string;
18407
+ p_id: string;
18408
+ p_ok: boolean;
18409
+ p_permanent?: boolean;
18410
+ };
18411
+ Returns: undefined;
18412
+ };
18230
18413
  consume_bom_for_production: {
18231
18414
  Args: {
18232
18415
  p_connection_id: string;
@@ -18918,6 +19101,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18918
19101
  p_worker?: string;
18919
19102
  };
18920
19103
  Returns: {
19104
+ attempt_log: import("./types").Json;
19105
+ attempts: number;
18921
19106
  buffer_ref: string | null;
18922
19107
  claimed_at: string | null;
18923
19108
  claimed_by: string | null;
@@ -18927,6 +19112,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18927
19112
  due_at: string | null;
18928
19113
  error: string | null;
18929
19114
  id: string;
19115
+ last_error: string | null;
19116
+ next_attempt_at: string | null;
18930
19117
  order_ref: string;
18931
19118
  owner_module: string;
18932
19119
  payload: import("./types").Json;
@@ -18959,6 +19146,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18959
19146
  p_worker?: string;
18960
19147
  };
18961
19148
  Returns: {
19149
+ attempt_log: import("./types").Json;
19150
+ attempts: number;
18962
19151
  buffer_ref: string | null;
18963
19152
  claimed_at: string | null;
18964
19153
  claimed_by: string | null;
@@ -18968,6 +19157,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
18968
19157
  due_at: string | null;
18969
19158
  error: string | null;
18970
19159
  id: string;
19160
+ last_error: string | null;
19161
+ next_attempt_at: string | null;
18971
19162
  order_ref: string;
18972
19163
  owner_module: string;
18973
19164
  payload: import("./types").Json;
@@ -19000,6 +19191,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19000
19191
  p_task_id: string;
19001
19192
  };
19002
19193
  Returns: {
19194
+ attempt_log: import("./types").Json;
19195
+ attempts: number;
19003
19196
  buffer_ref: string | null;
19004
19197
  claimed_at: string | null;
19005
19198
  claimed_by: string | null;
@@ -19009,6 +19202,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19009
19202
  due_at: string | null;
19010
19203
  error: string | null;
19011
19204
  id: string;
19205
+ last_error: string | null;
19206
+ next_attempt_at: string | null;
19012
19207
  order_ref: string;
19013
19208
  owner_module: string;
19014
19209
  payload: import("./types").Json;
@@ -19090,6 +19285,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19090
19285
  p_task_id: string;
19091
19286
  };
19092
19287
  Returns: {
19288
+ attempt_log: import("./types").Json;
19289
+ attempts: number;
19093
19290
  buffer_ref: string | null;
19094
19291
  claimed_at: string | null;
19095
19292
  claimed_by: string | null;
@@ -19099,6 +19296,8 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19099
19296
  due_at: string | null;
19100
19297
  error: string | null;
19101
19298
  id: string;
19299
+ last_error: string | null;
19300
+ next_attempt_at: string | null;
19102
19301
  order_ref: string;
19103
19302
  owner_module: string;
19104
19303
  payload: import("./types").Json;
@@ -19125,6 +19324,51 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19125
19324
  isSetofReturn: false;
19126
19325
  };
19127
19326
  };
19327
+ logistics_floriday_claim_pushes: {
19328
+ Args: {
19329
+ _lease_seconds?: number;
19330
+ _limit?: number;
19331
+ _worker?: string;
19332
+ };
19333
+ Returns: {
19334
+ attempts: number;
19335
+ fulfillment_order_id: string;
19336
+ id: string;
19337
+ last_sent_hash: string;
19338
+ order_ref: string;
19339
+ payload: import("./types").Json;
19340
+ payload_hash: string;
19341
+ revision: number;
19342
+ }[];
19343
+ };
19344
+ logistics_floriday_finish_push: {
19345
+ Args: {
19346
+ _error?: string;
19347
+ _fulfillment_order_id?: string;
19348
+ _id: string;
19349
+ _max_age_hours?: number;
19350
+ _max_attempts?: number;
19351
+ _ok: boolean;
19352
+ _permanent?: boolean;
19353
+ _revision: number;
19354
+ _sent_hash?: string;
19355
+ };
19356
+ Returns: string;
19357
+ };
19358
+ logistics_floriday_prune_pushes: {
19359
+ Args: {
19360
+ _days?: number;
19361
+ };
19362
+ Returns: number;
19363
+ };
19364
+ logistics_floriday_queue_push: {
19365
+ Args: {
19366
+ _order_ref: string;
19367
+ _payload?: import("./types").Json;
19368
+ _payload_hash?: string;
19369
+ };
19370
+ Returns: string;
19371
+ };
19128
19372
  logistics_live_carriers: {
19129
19373
  Args: {
19130
19374
  p_order_ref: string;
@@ -19852,6 +20096,10 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
19852
20096
  Args: never;
19853
20097
  Returns: undefined;
19854
20098
  };
20099
+ run_logistics_tasks_dispatch: {
20100
+ Args: never;
20101
+ Returns: undefined;
20102
+ };
19855
20103
  run_twinfield_queue_tick: {
19856
20104
  Args: never;
19857
20105
  Returns: undefined;
@@ -20092,6 +20340,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
20092
20340
  };
20093
20341
  Returns: number;
20094
20342
  };
20343
+ schedule_floriday_stock_queue_process: {
20344
+ Args: {
20345
+ p_apikey: string;
20346
+ p_url: string;
20347
+ };
20348
+ Returns: number;
20349
+ };
20095
20350
  schedule_floriday_token_refresh: {
20096
20351
  Args: {
20097
20352
  p_apikey: string;