@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
@@ -5702,12 +5702,17 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
5702
5702
  attempts: number;
5703
5703
  connection_id: string;
5704
5704
  created_at: string;
5705
+ desired_available: boolean | null;
5705
5706
  gateway_attempt_id: string | null;
5706
5707
  id: string;
5707
5708
  last_error: string | null;
5709
+ locked_at: string | null;
5710
+ locked_by: string | null;
5711
+ next_attempt_at: string;
5708
5712
  number_of_pieces: number;
5709
5713
  sent_at: string | null;
5710
5714
  status: string;
5715
+ superseded_by: string | null;
5711
5716
  trade_item_id: string;
5712
5717
  updated_at: string;
5713
5718
  user_id: string;
@@ -5716,12 +5721,17 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
5716
5721
  attempts?: number;
5717
5722
  connection_id: string;
5718
5723
  created_at?: string;
5724
+ desired_available?: boolean | null;
5719
5725
  gateway_attempt_id?: string | null;
5720
5726
  id?: string;
5721
5727
  last_error?: string | null;
5728
+ locked_at?: string | null;
5729
+ locked_by?: string | null;
5730
+ next_attempt_at?: string;
5722
5731
  number_of_pieces?: number;
5723
5732
  sent_at?: string | null;
5724
5733
  status?: string;
5734
+ superseded_by?: string | null;
5725
5735
  trade_item_id: string;
5726
5736
  updated_at?: string;
5727
5737
  user_id: string;
@@ -5730,12 +5740,17 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
5730
5740
  attempts?: number;
5731
5741
  connection_id?: string;
5732
5742
  created_at?: string;
5743
+ desired_available?: boolean | null;
5733
5744
  gateway_attempt_id?: string | null;
5734
5745
  id?: string;
5735
5746
  last_error?: string | null;
5747
+ locked_at?: string | null;
5748
+ locked_by?: string | null;
5749
+ next_attempt_at?: string;
5736
5750
  number_of_pieces?: number;
5737
5751
  sent_at?: string | null;
5738
5752
  status?: string;
5753
+ superseded_by?: string | null;
5739
5754
  trade_item_id?: string;
5740
5755
  updated_at?: string;
5741
5756
  user_id?: string;
@@ -8484,6 +8499,69 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
8484
8499
  };
8485
8500
  Relationships: [];
8486
8501
  };
8502
+ logistics_floriday_pushes: {
8503
+ Row: {
8504
+ attempts: number;
8505
+ created_at: string;
8506
+ first_queued_at: string;
8507
+ fulfillment_order_id: string | null;
8508
+ id: string;
8509
+ last_error: string | null;
8510
+ last_error_at: string | null;
8511
+ last_sent_hash: string | null;
8512
+ locked_by: string | null;
8513
+ locked_until: string | null;
8514
+ next_attempt_at: string;
8515
+ order_ref: string;
8516
+ payload: import("../integrations/supabase/types").Json;
8517
+ payload_hash: string | null;
8518
+ revision: number;
8519
+ sent_at: string | null;
8520
+ status: string;
8521
+ updated_at: string;
8522
+ };
8523
+ Insert: {
8524
+ attempts?: number;
8525
+ created_at?: string;
8526
+ first_queued_at?: string;
8527
+ fulfillment_order_id?: string | null;
8528
+ id?: string;
8529
+ last_error?: string | null;
8530
+ last_error_at?: string | null;
8531
+ last_sent_hash?: string | null;
8532
+ locked_by?: string | null;
8533
+ locked_until?: string | null;
8534
+ next_attempt_at?: string;
8535
+ order_ref: string;
8536
+ payload?: import("../integrations/supabase/types").Json;
8537
+ payload_hash?: string | null;
8538
+ revision?: number;
8539
+ sent_at?: string | null;
8540
+ status?: string;
8541
+ updated_at?: string;
8542
+ };
8543
+ Update: {
8544
+ attempts?: number;
8545
+ created_at?: string;
8546
+ first_queued_at?: string;
8547
+ fulfillment_order_id?: string | null;
8548
+ id?: string;
8549
+ last_error?: string | null;
8550
+ last_error_at?: string | null;
8551
+ last_sent_hash?: string | null;
8552
+ locked_by?: string | null;
8553
+ locked_until?: string | null;
8554
+ next_attempt_at?: string;
8555
+ order_ref?: string;
8556
+ payload?: import("../integrations/supabase/types").Json;
8557
+ payload_hash?: string | null;
8558
+ revision?: number;
8559
+ sent_at?: string | null;
8560
+ status?: string;
8561
+ updated_at?: string;
8562
+ };
8563
+ Relationships: [];
8564
+ };
8487
8565
  logistics_formulas: {
8488
8566
  Row: {
8489
8567
  created_at: string;
@@ -9095,6 +9173,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
9095
9173
  };
9096
9174
  logistics_tasks: {
9097
9175
  Row: {
9176
+ attempt_log: import("../integrations/supabase/types").Json;
9177
+ attempts: number;
9098
9178
  buffer_ref: string | null;
9099
9179
  claimed_at: string | null;
9100
9180
  claimed_by: string | null;
@@ -9104,6 +9184,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
9104
9184
  due_at: string | null;
9105
9185
  error: string | null;
9106
9186
  id: string;
9187
+ last_error: string | null;
9188
+ next_attempt_at: string | null;
9107
9189
  order_ref: string;
9108
9190
  owner_module: string;
9109
9191
  payload: import("../integrations/supabase/types").Json;
@@ -9124,6 +9206,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
9124
9206
  user_id: string;
9125
9207
  };
9126
9208
  Insert: {
9209
+ attempt_log?: import("../integrations/supabase/types").Json;
9210
+ attempts?: number;
9127
9211
  buffer_ref?: string | null;
9128
9212
  claimed_at?: string | null;
9129
9213
  claimed_by?: string | null;
@@ -9133,6 +9217,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
9133
9217
  due_at?: string | null;
9134
9218
  error?: string | null;
9135
9219
  id?: string;
9220
+ last_error?: string | null;
9221
+ next_attempt_at?: string | null;
9136
9222
  order_ref: string;
9137
9223
  owner_module: string;
9138
9224
  payload?: import("../integrations/supabase/types").Json;
@@ -9153,6 +9239,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
9153
9239
  user_id?: string;
9154
9240
  };
9155
9241
  Update: {
9242
+ attempt_log?: import("../integrations/supabase/types").Json;
9243
+ attempts?: number;
9156
9244
  buffer_ref?: string | null;
9157
9245
  claimed_at?: string | null;
9158
9246
  claimed_by?: string | null;
@@ -9162,6 +9250,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
9162
9250
  due_at?: string | null;
9163
9251
  error?: string | null;
9164
9252
  id?: string;
9253
+ last_error?: string | null;
9254
+ next_attempt_at?: string | null;
9165
9255
  order_ref?: string;
9166
9256
  owner_module?: string;
9167
9257
  payload?: import("../integrations/supabase/types").Json;
@@ -18166,6 +18256,85 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18166
18256
  };
18167
18257
  Returns: import("../integrations/supabase/types").Json;
18168
18258
  };
18259
+ claim_floriday_stock_queue: {
18260
+ Args: {
18261
+ p_limit?: number;
18262
+ p_worker?: string;
18263
+ };
18264
+ Returns: {
18265
+ attempts: number;
18266
+ connection_id: string;
18267
+ created_at: string;
18268
+ desired_available: boolean | null;
18269
+ gateway_attempt_id: string | null;
18270
+ id: string;
18271
+ last_error: string | null;
18272
+ locked_at: string | null;
18273
+ locked_by: string | null;
18274
+ next_attempt_at: string;
18275
+ number_of_pieces: number;
18276
+ sent_at: string | null;
18277
+ status: string;
18278
+ superseded_by: string | null;
18279
+ trade_item_id: string;
18280
+ updated_at: string;
18281
+ user_id: string;
18282
+ }[];
18283
+ SetofOptions: {
18284
+ from: "*";
18285
+ to: "floriday_continuous_stock_queue";
18286
+ isOneToOne: false;
18287
+ isSetofReturn: true;
18288
+ };
18289
+ };
18290
+ claim_logistics_tasks: {
18291
+ Args: {
18292
+ _limit?: number;
18293
+ _owner_module: string;
18294
+ _stale_minutes?: number;
18295
+ _task_type: string;
18296
+ _worker: string;
18297
+ };
18298
+ Returns: {
18299
+ attempt_log: import("../integrations/supabase/types").Json;
18300
+ attempts: number;
18301
+ buffer_ref: string | null;
18302
+ claimed_at: string | null;
18303
+ claimed_by: string | null;
18304
+ completed_at: string | null;
18305
+ created_at: string;
18306
+ depends_on: string[];
18307
+ due_at: string | null;
18308
+ error: string | null;
18309
+ id: string;
18310
+ last_error: string | null;
18311
+ next_attempt_at: string | null;
18312
+ order_ref: string;
18313
+ owner_module: string;
18314
+ payload: import("../integrations/supabase/types").Json;
18315
+ plan_run_id: string | null;
18316
+ planned_end: string | null;
18317
+ planned_start: string | null;
18318
+ priority: number;
18319
+ result: import("../integrations/supabase/types").Json | null;
18320
+ rule_config_id: string | null;
18321
+ rule_version: number | null;
18322
+ sequence: number;
18323
+ shadow: boolean;
18324
+ started_at: string | null;
18325
+ status: string;
18326
+ strategy_id: string | null;
18327
+ task_type: string;
18328
+ updated_at: string;
18329
+ user_id: string;
18330
+ }[];
18331
+ SetofOptions: {
18332
+ from: "*";
18333
+ to: "logistics_tasks";
18334
+ isOneToOne: false;
18335
+ isSetofReturn: true;
18336
+ };
18337
+ };
18169
18338
  claim_print_jobs: {
18170
18339
  Args: {
18171
18340
  _agent_id: string;
@@ -18230,10 +18399,24 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18230
18399
  isSetofReturn: true;
18231
18400
  };
18232
18401
  };
18402
+ cleanup_floriday_stock_queue: {
18403
+ Args: never;
18404
+ Returns: undefined;
18405
+ };
18233
18406
  cleanup_old_bookings: {
18234
18407
  Args: never;
18235
18408
  Returns: undefined;
18236
18409
  };
18410
+ complete_floriday_stock_queue: {
18411
+ Args: {
18412
+ p_attempt_id?: string;
18413
+ p_error?: string;
18414
+ p_id: string;
18415
+ p_ok: boolean;
18416
+ p_permanent?: boolean;
18417
+ };
18418
+ Returns: undefined;
18419
+ };
18237
18420
  consume_bom_for_production: {
18238
18421
  Args: {
18239
18422
  p_connection_id: string;
@@ -18925,6 +19108,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18925
19108
  p_worker?: string;
18926
19109
  };
18927
19110
  Returns: {
19111
+ attempt_log: import("../integrations/supabase/types").Json;
19112
+ attempts: number;
18928
19113
  buffer_ref: string | null;
18929
19114
  claimed_at: string | null;
18930
19115
  claimed_by: string | null;
@@ -18934,6 +19119,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18934
19119
  due_at: string | null;
18935
19120
  error: string | null;
18936
19121
  id: string;
19122
+ last_error: string | null;
19123
+ next_attempt_at: string | null;
18937
19124
  order_ref: string;
18938
19125
  owner_module: string;
18939
19126
  payload: import("../integrations/supabase/types").Json;
@@ -18966,6 +19153,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18966
19153
  p_worker?: string;
18967
19154
  };
18968
19155
  Returns: {
19156
+ attempt_log: import("../integrations/supabase/types").Json;
19157
+ attempts: number;
18969
19158
  buffer_ref: string | null;
18970
19159
  claimed_at: string | null;
18971
19160
  claimed_by: string | null;
@@ -18975,6 +19164,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
18975
19164
  due_at: string | null;
18976
19165
  error: string | null;
18977
19166
  id: string;
19167
+ last_error: string | null;
19168
+ next_attempt_at: string | null;
18978
19169
  order_ref: string;
18979
19170
  owner_module: string;
18980
19171
  payload: import("../integrations/supabase/types").Json;
@@ -19007,6 +19198,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
19007
19198
  p_task_id: string;
19008
19199
  };
19009
19200
  Returns: {
19201
+ attempt_log: import("../integrations/supabase/types").Json;
19202
+ attempts: number;
19010
19203
  buffer_ref: string | null;
19011
19204
  claimed_at: string | null;
19012
19205
  claimed_by: string | null;
@@ -19016,6 +19209,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
19016
19209
  due_at: string | null;
19017
19210
  error: string | null;
19018
19211
  id: string;
19212
+ last_error: string | null;
19213
+ next_attempt_at: string | null;
19019
19214
  order_ref: string;
19020
19215
  owner_module: string;
19021
19216
  payload: import("../integrations/supabase/types").Json;
@@ -19097,6 +19292,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
19097
19292
  p_task_id: string;
19098
19293
  };
19099
19294
  Returns: {
19295
+ attempt_log: import("../integrations/supabase/types").Json;
19296
+ attempts: number;
19100
19297
  buffer_ref: string | null;
19101
19298
  claimed_at: string | null;
19102
19299
  claimed_by: string | null;
@@ -19106,6 +19303,8 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
19106
19303
  due_at: string | null;
19107
19304
  error: string | null;
19108
19305
  id: string;
19306
+ last_error: string | null;
19307
+ next_attempt_at: string | null;
19109
19308
  order_ref: string;
19110
19309
  owner_module: string;
19111
19310
  payload: import("../integrations/supabase/types").Json;
@@ -19132,6 +19331,51 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
19132
19331
  isSetofReturn: false;
19133
19332
  };
19134
19333
  };
19334
+ logistics_floriday_claim_pushes: {
19335
+ Args: {
19336
+ _lease_seconds?: number;
19337
+ _limit?: number;
19338
+ _worker?: string;
19339
+ };
19340
+ Returns: {
19341
+ attempts: number;
19342
+ fulfillment_order_id: string;
19343
+ id: string;
19344
+ last_sent_hash: string;
19345
+ order_ref: string;
19346
+ payload: import("../integrations/supabase/types").Json;
19347
+ payload_hash: string;
19348
+ revision: number;
19349
+ }[];
19350
+ };
19351
+ logistics_floriday_finish_push: {
19352
+ Args: {
19353
+ _error?: string;
19354
+ _fulfillment_order_id?: string;
19355
+ _id: string;
19356
+ _max_age_hours?: number;
19357
+ _max_attempts?: number;
19358
+ _ok: boolean;
19359
+ _permanent?: boolean;
19360
+ _revision: number;
19361
+ _sent_hash?: string;
19362
+ };
19363
+ Returns: string;
19364
+ };
19365
+ logistics_floriday_prune_pushes: {
19366
+ Args: {
19367
+ _days?: number;
19368
+ };
19369
+ Returns: number;
19370
+ };
19371
+ logistics_floriday_queue_push: {
19372
+ Args: {
19373
+ _order_ref: string;
19374
+ _payload?: import("../integrations/supabase/types").Json;
19375
+ _payload_hash?: string;
19376
+ };
19377
+ Returns: string;
19378
+ };
19135
19379
  logistics_live_carriers: {
19136
19380
  Args: {
19137
19381
  p_order_ref: string;
@@ -19859,6 +20103,10 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
19859
20103
  Args: never;
19860
20104
  Returns: undefined;
19861
20105
  };
20106
+ run_logistics_tasks_dispatch: {
20107
+ Args: never;
20108
+ Returns: undefined;
20109
+ };
19862
20110
  run_twinfield_queue_tick: {
19863
20111
  Args: never;
19864
20112
  Returns: undefined;
@@ -20099,6 +20347,13 @@ export declare const emitLogisticsEvent: import("@tanstack/start-client-core").R
20099
20347
  };
20100
20348
  Returns: number;
20101
20349
  };
20350
+ schedule_floriday_stock_queue_process: {
20351
+ Args: {
20352
+ p_apikey: string;
20353
+ p_url: string;
20354
+ };
20355
+ Returns: number;
20356
+ };
20102
20357
  schedule_floriday_token_refresh: {
20103
20358
  Args: {
20104
20359
  p_apikey: string;