@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
@@ -5705,12 +5705,17 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
5705
5705
  attempts: number;
5706
5706
  connection_id: string;
5707
5707
  created_at: string;
5708
+ desired_available: boolean | null;
5708
5709
  gateway_attempt_id: string | null;
5709
5710
  id: string;
5710
5711
  last_error: string | null;
5712
+ locked_at: string | null;
5713
+ locked_by: string | null;
5714
+ next_attempt_at: string;
5711
5715
  number_of_pieces: number;
5712
5716
  sent_at: string | null;
5713
5717
  status: string;
5718
+ superseded_by: string | null;
5714
5719
  trade_item_id: string;
5715
5720
  updated_at: string;
5716
5721
  user_id: string;
@@ -5719,12 +5724,17 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
5719
5724
  attempts?: number;
5720
5725
  connection_id: string;
5721
5726
  created_at?: string;
5727
+ desired_available?: boolean | null;
5722
5728
  gateway_attempt_id?: string | null;
5723
5729
  id?: string;
5724
5730
  last_error?: string | null;
5731
+ locked_at?: string | null;
5732
+ locked_by?: string | null;
5733
+ next_attempt_at?: string;
5725
5734
  number_of_pieces?: number;
5726
5735
  sent_at?: string | null;
5727
5736
  status?: string;
5737
+ superseded_by?: string | null;
5728
5738
  trade_item_id: string;
5729
5739
  updated_at?: string;
5730
5740
  user_id: string;
@@ -5733,12 +5743,17 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
5733
5743
  attempts?: number;
5734
5744
  connection_id?: string;
5735
5745
  created_at?: string;
5746
+ desired_available?: boolean | null;
5736
5747
  gateway_attempt_id?: string | null;
5737
5748
  id?: string;
5738
5749
  last_error?: string | null;
5750
+ locked_at?: string | null;
5751
+ locked_by?: string | null;
5752
+ next_attempt_at?: string;
5739
5753
  number_of_pieces?: number;
5740
5754
  sent_at?: string | null;
5741
5755
  status?: string;
5756
+ superseded_by?: string | null;
5742
5757
  trade_item_id?: string;
5743
5758
  updated_at?: string;
5744
5759
  user_id?: string;
@@ -8487,6 +8502,69 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
8487
8502
  };
8488
8503
  Relationships: [];
8489
8504
  };
8505
+ logistics_floriday_pushes: {
8506
+ Row: {
8507
+ attempts: number;
8508
+ created_at: string;
8509
+ first_queued_at: string;
8510
+ fulfillment_order_id: string | null;
8511
+ id: string;
8512
+ last_error: string | null;
8513
+ last_error_at: string | null;
8514
+ last_sent_hash: string | null;
8515
+ locked_by: string | null;
8516
+ locked_until: string | null;
8517
+ next_attempt_at: string;
8518
+ order_ref: string;
8519
+ payload: import("../integrations/supabase/types").Json;
8520
+ payload_hash: string | null;
8521
+ revision: number;
8522
+ sent_at: string | null;
8523
+ status: string;
8524
+ updated_at: string;
8525
+ };
8526
+ Insert: {
8527
+ attempts?: number;
8528
+ created_at?: string;
8529
+ first_queued_at?: string;
8530
+ fulfillment_order_id?: string | null;
8531
+ id?: string;
8532
+ last_error?: string | null;
8533
+ last_error_at?: string | null;
8534
+ last_sent_hash?: string | null;
8535
+ locked_by?: string | null;
8536
+ locked_until?: string | null;
8537
+ next_attempt_at?: string;
8538
+ order_ref: string;
8539
+ payload?: import("../integrations/supabase/types").Json;
8540
+ payload_hash?: string | null;
8541
+ revision?: number;
8542
+ sent_at?: string | null;
8543
+ status?: string;
8544
+ updated_at?: string;
8545
+ };
8546
+ Update: {
8547
+ attempts?: number;
8548
+ created_at?: string;
8549
+ first_queued_at?: string;
8550
+ fulfillment_order_id?: string | null;
8551
+ id?: string;
8552
+ last_error?: string | null;
8553
+ last_error_at?: string | null;
8554
+ last_sent_hash?: string | null;
8555
+ locked_by?: string | null;
8556
+ locked_until?: string | null;
8557
+ next_attempt_at?: string;
8558
+ order_ref?: string;
8559
+ payload?: import("../integrations/supabase/types").Json;
8560
+ payload_hash?: string | null;
8561
+ revision?: number;
8562
+ sent_at?: string | null;
8563
+ status?: string;
8564
+ updated_at?: string;
8565
+ };
8566
+ Relationships: [];
8567
+ };
8490
8568
  logistics_formulas: {
8491
8569
  Row: {
8492
8570
  created_at: string;
@@ -9098,6 +9176,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
9098
9176
  };
9099
9177
  logistics_tasks: {
9100
9178
  Row: {
9179
+ attempt_log: import("../integrations/supabase/types").Json;
9180
+ attempts: number;
9101
9181
  buffer_ref: string | null;
9102
9182
  claimed_at: string | null;
9103
9183
  claimed_by: string | null;
@@ -9107,6 +9187,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
9107
9187
  due_at: string | null;
9108
9188
  error: string | null;
9109
9189
  id: string;
9190
+ last_error: string | null;
9191
+ next_attempt_at: string | null;
9110
9192
  order_ref: string;
9111
9193
  owner_module: string;
9112
9194
  payload: import("../integrations/supabase/types").Json;
@@ -9127,6 +9209,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
9127
9209
  user_id: string;
9128
9210
  };
9129
9211
  Insert: {
9212
+ attempt_log?: import("../integrations/supabase/types").Json;
9213
+ attempts?: number;
9130
9214
  buffer_ref?: string | null;
9131
9215
  claimed_at?: string | null;
9132
9216
  claimed_by?: string | null;
@@ -9136,6 +9220,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
9136
9220
  due_at?: string | null;
9137
9221
  error?: string | null;
9138
9222
  id?: string;
9223
+ last_error?: string | null;
9224
+ next_attempt_at?: string | null;
9139
9225
  order_ref: string;
9140
9226
  owner_module: string;
9141
9227
  payload?: import("../integrations/supabase/types").Json;
@@ -9156,6 +9242,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
9156
9242
  user_id?: string;
9157
9243
  };
9158
9244
  Update: {
9245
+ attempt_log?: import("../integrations/supabase/types").Json;
9246
+ attempts?: number;
9159
9247
  buffer_ref?: string | null;
9160
9248
  claimed_at?: string | null;
9161
9249
  claimed_by?: string | null;
@@ -9165,6 +9253,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
9165
9253
  due_at?: string | null;
9166
9254
  error?: string | null;
9167
9255
  id?: string;
9256
+ last_error?: string | null;
9257
+ next_attempt_at?: string | null;
9168
9258
  order_ref?: string;
9169
9259
  owner_module?: string;
9170
9260
  payload?: import("../integrations/supabase/types").Json;
@@ -18169,6 +18259,85 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
18169
18259
  };
18170
18260
  Returns: import("../integrations/supabase/types").Json;
18171
18261
  };
18262
+ claim_floriday_stock_queue: {
18263
+ Args: {
18264
+ p_limit?: number;
18265
+ p_worker?: string;
18266
+ };
18267
+ Returns: {
18268
+ attempts: number;
18269
+ connection_id: string;
18270
+ created_at: string;
18271
+ desired_available: boolean | null;
18272
+ gateway_attempt_id: string | null;
18273
+ id: string;
18274
+ last_error: string | null;
18275
+ locked_at: string | null;
18276
+ locked_by: string | null;
18277
+ next_attempt_at: string;
18278
+ number_of_pieces: number;
18279
+ sent_at: string | null;
18280
+ status: string;
18281
+ superseded_by: string | null;
18282
+ trade_item_id: string;
18283
+ updated_at: string;
18284
+ user_id: string;
18285
+ }[];
18286
+ SetofOptions: {
18287
+ from: "*";
18288
+ to: "floriday_continuous_stock_queue";
18289
+ isOneToOne: false;
18290
+ isSetofReturn: true;
18291
+ };
18292
+ };
18293
+ claim_logistics_tasks: {
18294
+ Args: {
18295
+ _limit?: number;
18296
+ _owner_module: string;
18297
+ _stale_minutes?: number;
18298
+ _task_type: string;
18299
+ _worker: string;
18300
+ };
18301
+ Returns: {
18302
+ attempt_log: import("../integrations/supabase/types").Json;
18303
+ attempts: number;
18304
+ buffer_ref: string | null;
18305
+ claimed_at: string | null;
18306
+ claimed_by: string | null;
18307
+ completed_at: string | null;
18308
+ created_at: string;
18309
+ depends_on: string[];
18310
+ due_at: string | null;
18311
+ error: string | null;
18312
+ id: string;
18313
+ last_error: string | null;
18314
+ next_attempt_at: string | null;
18315
+ order_ref: string;
18316
+ owner_module: string;
18317
+ payload: import("../integrations/supabase/types").Json;
18318
+ plan_run_id: string | null;
18319
+ planned_end: string | null;
18320
+ planned_start: string | null;
18321
+ priority: number;
18322
+ result: import("../integrations/supabase/types").Json | null;
18323
+ rule_config_id: string | null;
18324
+ rule_version: number | null;
18325
+ sequence: number;
18326
+ shadow: boolean;
18327
+ started_at: string | null;
18328
+ status: string;
18329
+ strategy_id: string | null;
18330
+ task_type: string;
18331
+ updated_at: string;
18332
+ user_id: string;
18333
+ }[];
18334
+ SetofOptions: {
18335
+ from: "*";
18336
+ to: "logistics_tasks";
18337
+ isOneToOne: false;
18338
+ isSetofReturn: true;
18339
+ };
18340
+ };
18172
18341
  claim_print_jobs: {
18173
18342
  Args: {
18174
18343
  _agent_id: string;
@@ -18233,10 +18402,24 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
18233
18402
  isSetofReturn: true;
18234
18403
  };
18235
18404
  };
18405
+ cleanup_floriday_stock_queue: {
18406
+ Args: never;
18407
+ Returns: undefined;
18408
+ };
18236
18409
  cleanup_old_bookings: {
18237
18410
  Args: never;
18238
18411
  Returns: undefined;
18239
18412
  };
18413
+ complete_floriday_stock_queue: {
18414
+ Args: {
18415
+ p_attempt_id?: string;
18416
+ p_error?: string;
18417
+ p_id: string;
18418
+ p_ok: boolean;
18419
+ p_permanent?: boolean;
18420
+ };
18421
+ Returns: undefined;
18422
+ };
18240
18423
  consume_bom_for_production: {
18241
18424
  Args: {
18242
18425
  p_connection_id: string;
@@ -18928,6 +19111,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
18928
19111
  p_worker?: string;
18929
19112
  };
18930
19113
  Returns: {
19114
+ attempt_log: import("../integrations/supabase/types").Json;
19115
+ attempts: number;
18931
19116
  buffer_ref: string | null;
18932
19117
  claimed_at: string | null;
18933
19118
  claimed_by: string | null;
@@ -18937,6 +19122,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
18937
19122
  due_at: string | null;
18938
19123
  error: string | null;
18939
19124
  id: string;
19125
+ last_error: string | null;
19126
+ next_attempt_at: string | null;
18940
19127
  order_ref: string;
18941
19128
  owner_module: string;
18942
19129
  payload: import("../integrations/supabase/types").Json;
@@ -18969,6 +19156,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
18969
19156
  p_worker?: string;
18970
19157
  };
18971
19158
  Returns: {
19159
+ attempt_log: import("../integrations/supabase/types").Json;
19160
+ attempts: number;
18972
19161
  buffer_ref: string | null;
18973
19162
  claimed_at: string | null;
18974
19163
  claimed_by: string | null;
@@ -18978,6 +19167,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
18978
19167
  due_at: string | null;
18979
19168
  error: string | null;
18980
19169
  id: string;
19170
+ last_error: string | null;
19171
+ next_attempt_at: string | null;
18981
19172
  order_ref: string;
18982
19173
  owner_module: string;
18983
19174
  payload: import("../integrations/supabase/types").Json;
@@ -19010,6 +19201,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
19010
19201
  p_task_id: string;
19011
19202
  };
19012
19203
  Returns: {
19204
+ attempt_log: import("../integrations/supabase/types").Json;
19205
+ attempts: number;
19013
19206
  buffer_ref: string | null;
19014
19207
  claimed_at: string | null;
19015
19208
  claimed_by: string | null;
@@ -19019,6 +19212,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
19019
19212
  due_at: string | null;
19020
19213
  error: string | null;
19021
19214
  id: string;
19215
+ last_error: string | null;
19216
+ next_attempt_at: string | null;
19022
19217
  order_ref: string;
19023
19218
  owner_module: string;
19024
19219
  payload: import("../integrations/supabase/types").Json;
@@ -19100,6 +19295,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
19100
19295
  p_task_id: string;
19101
19296
  };
19102
19297
  Returns: {
19298
+ attempt_log: import("../integrations/supabase/types").Json;
19299
+ attempts: number;
19103
19300
  buffer_ref: string | null;
19104
19301
  claimed_at: string | null;
19105
19302
  claimed_by: string | null;
@@ -19109,6 +19306,8 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
19109
19306
  due_at: string | null;
19110
19307
  error: string | null;
19111
19308
  id: string;
19309
+ last_error: string | null;
19310
+ next_attempt_at: string | null;
19112
19311
  order_ref: string;
19113
19312
  owner_module: string;
19114
19313
  payload: import("../integrations/supabase/types").Json;
@@ -19135,6 +19334,51 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
19135
19334
  isSetofReturn: false;
19136
19335
  };
19137
19336
  };
19337
+ logistics_floriday_claim_pushes: {
19338
+ Args: {
19339
+ _lease_seconds?: number;
19340
+ _limit?: number;
19341
+ _worker?: string;
19342
+ };
19343
+ Returns: {
19344
+ attempts: number;
19345
+ fulfillment_order_id: string;
19346
+ id: string;
19347
+ last_sent_hash: string;
19348
+ order_ref: string;
19349
+ payload: import("../integrations/supabase/types").Json;
19350
+ payload_hash: string;
19351
+ revision: number;
19352
+ }[];
19353
+ };
19354
+ logistics_floriday_finish_push: {
19355
+ Args: {
19356
+ _error?: string;
19357
+ _fulfillment_order_id?: string;
19358
+ _id: string;
19359
+ _max_age_hours?: number;
19360
+ _max_attempts?: number;
19361
+ _ok: boolean;
19362
+ _permanent?: boolean;
19363
+ _revision: number;
19364
+ _sent_hash?: string;
19365
+ };
19366
+ Returns: string;
19367
+ };
19368
+ logistics_floriday_prune_pushes: {
19369
+ Args: {
19370
+ _days?: number;
19371
+ };
19372
+ Returns: number;
19373
+ };
19374
+ logistics_floriday_queue_push: {
19375
+ Args: {
19376
+ _order_ref: string;
19377
+ _payload?: import("../integrations/supabase/types").Json;
19378
+ _payload_hash?: string;
19379
+ };
19380
+ Returns: string;
19381
+ };
19138
19382
  logistics_live_carriers: {
19139
19383
  Args: {
19140
19384
  p_order_ref: string;
@@ -19862,6 +20106,10 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
19862
20106
  Args: never;
19863
20107
  Returns: undefined;
19864
20108
  };
20109
+ run_logistics_tasks_dispatch: {
20110
+ Args: never;
20111
+ Returns: undefined;
20112
+ };
19865
20113
  run_twinfield_queue_tick: {
19866
20114
  Args: never;
19867
20115
  Returns: undefined;
@@ -20102,6 +20350,13 @@ export declare const listTradeItemsForPreview: import("@tanstack/start-client-co
20102
20350
  };
20103
20351
  Returns: number;
20104
20352
  };
20353
+ schedule_floriday_stock_queue_process: {
20354
+ Args: {
20355
+ p_apikey: string;
20356
+ p_url: string;
20357
+ };
20358
+ Returns: number;
20359
+ };
20105
20360
  schedule_floriday_token_refresh: {
20106
20361
  Args: {
20107
20362
  p_apikey: string;