@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
@@ -5698,12 +5698,17 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
5698
5698
  attempts: number;
5699
5699
  connection_id: string;
5700
5700
  created_at: string;
5701
+ desired_available: boolean | null;
5701
5702
  gateway_attempt_id: string | null;
5702
5703
  id: string;
5703
5704
  last_error: string | null;
5705
+ locked_at: string | null;
5706
+ locked_by: string | null;
5707
+ next_attempt_at: string;
5704
5708
  number_of_pieces: number;
5705
5709
  sent_at: string | null;
5706
5710
  status: string;
5711
+ superseded_by: string | null;
5707
5712
  trade_item_id: string;
5708
5713
  updated_at: string;
5709
5714
  user_id: string;
@@ -5712,12 +5717,17 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
5712
5717
  attempts?: number;
5713
5718
  connection_id: string;
5714
5719
  created_at?: string;
5720
+ desired_available?: boolean | null;
5715
5721
  gateway_attempt_id?: string | null;
5716
5722
  id?: string;
5717
5723
  last_error?: string | null;
5724
+ locked_at?: string | null;
5725
+ locked_by?: string | null;
5726
+ next_attempt_at?: string;
5718
5727
  number_of_pieces?: number;
5719
5728
  sent_at?: string | null;
5720
5729
  status?: string;
5730
+ superseded_by?: string | null;
5721
5731
  trade_item_id: string;
5722
5732
  updated_at?: string;
5723
5733
  user_id: string;
@@ -5726,12 +5736,17 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
5726
5736
  attempts?: number;
5727
5737
  connection_id?: string;
5728
5738
  created_at?: string;
5739
+ desired_available?: boolean | null;
5729
5740
  gateway_attempt_id?: string | null;
5730
5741
  id?: string;
5731
5742
  last_error?: string | null;
5743
+ locked_at?: string | null;
5744
+ locked_by?: string | null;
5745
+ next_attempt_at?: string;
5732
5746
  number_of_pieces?: number;
5733
5747
  sent_at?: string | null;
5734
5748
  status?: string;
5749
+ superseded_by?: string | null;
5735
5750
  trade_item_id?: string;
5736
5751
  updated_at?: string;
5737
5752
  user_id?: string;
@@ -8480,6 +8495,69 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
8480
8495
  };
8481
8496
  Relationships: [];
8482
8497
  };
8498
+ logistics_floriday_pushes: {
8499
+ Row: {
8500
+ attempts: number;
8501
+ created_at: string;
8502
+ first_queued_at: string;
8503
+ fulfillment_order_id: string | null;
8504
+ id: string;
8505
+ last_error: string | null;
8506
+ last_error_at: string | null;
8507
+ last_sent_hash: string | null;
8508
+ locked_by: string | null;
8509
+ locked_until: string | null;
8510
+ next_attempt_at: string;
8511
+ order_ref: string;
8512
+ payload: import("../integrations/supabase/types").Json;
8513
+ payload_hash: string | null;
8514
+ revision: number;
8515
+ sent_at: string | null;
8516
+ status: string;
8517
+ updated_at: string;
8518
+ };
8519
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
8560
+ };
8483
8561
  logistics_formulas: {
8484
8562
  Row: {
8485
8563
  created_at: string;
@@ -9091,6 +9169,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
9091
9169
  };
9092
9170
  logistics_tasks: {
9093
9171
  Row: {
9172
+ attempt_log: import("../integrations/supabase/types").Json;
9173
+ attempts: number;
9094
9174
  buffer_ref: string | null;
9095
9175
  claimed_at: string | null;
9096
9176
  claimed_by: string | null;
@@ -9100,6 +9180,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
9100
9180
  due_at: string | null;
9101
9181
  error: string | null;
9102
9182
  id: string;
9183
+ last_error: string | null;
9184
+ next_attempt_at: string | null;
9103
9185
  order_ref: string;
9104
9186
  owner_module: string;
9105
9187
  payload: import("../integrations/supabase/types").Json;
@@ -9120,6 +9202,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
9120
9202
  user_id: string;
9121
9203
  };
9122
9204
  Insert: {
9205
+ attempt_log?: import("../integrations/supabase/types").Json;
9206
+ attempts?: number;
9123
9207
  buffer_ref?: string | null;
9124
9208
  claimed_at?: string | null;
9125
9209
  claimed_by?: string | null;
@@ -9129,6 +9213,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
9129
9213
  due_at?: string | null;
9130
9214
  error?: string | null;
9131
9215
  id?: string;
9216
+ last_error?: string | null;
9217
+ next_attempt_at?: string | null;
9132
9218
  order_ref: string;
9133
9219
  owner_module: string;
9134
9220
  payload?: import("../integrations/supabase/types").Json;
@@ -9149,6 +9235,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
9149
9235
  user_id?: string;
9150
9236
  };
9151
9237
  Update: {
9238
+ attempt_log?: import("../integrations/supabase/types").Json;
9239
+ attempts?: number;
9152
9240
  buffer_ref?: string | null;
9153
9241
  claimed_at?: string | null;
9154
9242
  claimed_by?: string | null;
@@ -9158,6 +9246,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
9158
9246
  due_at?: string | null;
9159
9247
  error?: string | null;
9160
9248
  id?: string;
9249
+ last_error?: string | null;
9250
+ next_attempt_at?: string | null;
9161
9251
  order_ref?: string;
9162
9252
  owner_module?: string;
9163
9253
  payload?: import("../integrations/supabase/types").Json;
@@ -18162,6 +18252,85 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
18162
18252
  };
18163
18253
  Returns: import("../integrations/supabase/types").Json;
18164
18254
  };
18255
+ claim_floriday_stock_queue: {
18256
+ Args: {
18257
+ p_limit?: number;
18258
+ p_worker?: string;
18259
+ };
18260
+ Returns: {
18261
+ attempts: number;
18262
+ connection_id: string;
18263
+ created_at: string;
18264
+ desired_available: boolean | null;
18265
+ gateway_attempt_id: string | null;
18266
+ id: string;
18267
+ last_error: string | null;
18268
+ locked_at: string | null;
18269
+ locked_by: string | null;
18270
+ next_attempt_at: string;
18271
+ number_of_pieces: number;
18272
+ sent_at: string | null;
18273
+ status: string;
18274
+ superseded_by: string | null;
18275
+ trade_item_id: string;
18276
+ updated_at: string;
18277
+ user_id: string;
18278
+ }[];
18279
+ SetofOptions: {
18280
+ from: "*";
18281
+ to: "floriday_continuous_stock_queue";
18282
+ isOneToOne: false;
18283
+ isSetofReturn: true;
18284
+ };
18285
+ };
18286
+ claim_logistics_tasks: {
18287
+ Args: {
18288
+ _limit?: number;
18289
+ _owner_module: string;
18290
+ _stale_minutes?: number;
18291
+ _task_type: string;
18292
+ _worker: string;
18293
+ };
18294
+ Returns: {
18295
+ attempt_log: import("../integrations/supabase/types").Json;
18296
+ attempts: number;
18297
+ buffer_ref: string | null;
18298
+ claimed_at: string | null;
18299
+ claimed_by: string | null;
18300
+ completed_at: string | null;
18301
+ created_at: string;
18302
+ depends_on: string[];
18303
+ due_at: string | null;
18304
+ error: string | null;
18305
+ id: string;
18306
+ last_error: string | null;
18307
+ next_attempt_at: string | null;
18308
+ order_ref: string;
18309
+ owner_module: string;
18310
+ payload: import("../integrations/supabase/types").Json;
18311
+ plan_run_id: string | null;
18312
+ planned_end: string | null;
18313
+ planned_start: string | null;
18314
+ priority: number;
18315
+ result: import("../integrations/supabase/types").Json | null;
18316
+ rule_config_id: string | null;
18317
+ rule_version: number | null;
18318
+ sequence: number;
18319
+ shadow: boolean;
18320
+ started_at: string | null;
18321
+ status: string;
18322
+ strategy_id: string | null;
18323
+ task_type: string;
18324
+ updated_at: string;
18325
+ user_id: string;
18326
+ }[];
18327
+ SetofOptions: {
18328
+ from: "*";
18329
+ to: "logistics_tasks";
18330
+ isOneToOne: false;
18331
+ isSetofReturn: true;
18332
+ };
18333
+ };
18165
18334
  claim_print_jobs: {
18166
18335
  Args: {
18167
18336
  _agent_id: string;
@@ -18226,10 +18395,24 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
18226
18395
  isSetofReturn: true;
18227
18396
  };
18228
18397
  };
18398
+ cleanup_floriday_stock_queue: {
18399
+ Args: never;
18400
+ Returns: undefined;
18401
+ };
18229
18402
  cleanup_old_bookings: {
18230
18403
  Args: never;
18231
18404
  Returns: undefined;
18232
18405
  };
18406
+ complete_floriday_stock_queue: {
18407
+ Args: {
18408
+ p_attempt_id?: string;
18409
+ p_error?: string;
18410
+ p_id: string;
18411
+ p_ok: boolean;
18412
+ p_permanent?: boolean;
18413
+ };
18414
+ Returns: undefined;
18415
+ };
18233
18416
  consume_bom_for_production: {
18234
18417
  Args: {
18235
18418
  p_connection_id: string;
@@ -18921,6 +19104,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
18921
19104
  p_worker?: string;
18922
19105
  };
18923
19106
  Returns: {
19107
+ attempt_log: import("../integrations/supabase/types").Json;
19108
+ attempts: number;
18924
19109
  buffer_ref: string | null;
18925
19110
  claimed_at: string | null;
18926
19111
  claimed_by: string | null;
@@ -18930,6 +19115,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
18930
19115
  due_at: string | null;
18931
19116
  error: string | null;
18932
19117
  id: string;
19118
+ last_error: string | null;
19119
+ next_attempt_at: string | null;
18933
19120
  order_ref: string;
18934
19121
  owner_module: string;
18935
19122
  payload: import("../integrations/supabase/types").Json;
@@ -18962,6 +19149,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
18962
19149
  p_worker?: string;
18963
19150
  };
18964
19151
  Returns: {
19152
+ attempt_log: import("../integrations/supabase/types").Json;
19153
+ attempts: number;
18965
19154
  buffer_ref: string | null;
18966
19155
  claimed_at: string | null;
18967
19156
  claimed_by: string | null;
@@ -18971,6 +19160,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
18971
19160
  due_at: string | null;
18972
19161
  error: string | null;
18973
19162
  id: string;
19163
+ last_error: string | null;
19164
+ next_attempt_at: string | null;
18974
19165
  order_ref: string;
18975
19166
  owner_module: string;
18976
19167
  payload: import("../integrations/supabase/types").Json;
@@ -19003,6 +19194,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
19003
19194
  p_task_id: string;
19004
19195
  };
19005
19196
  Returns: {
19197
+ attempt_log: import("../integrations/supabase/types").Json;
19198
+ attempts: number;
19006
19199
  buffer_ref: string | null;
19007
19200
  claimed_at: string | null;
19008
19201
  claimed_by: string | null;
@@ -19012,6 +19205,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
19012
19205
  due_at: string | null;
19013
19206
  error: string | null;
19014
19207
  id: string;
19208
+ last_error: string | null;
19209
+ next_attempt_at: string | null;
19015
19210
  order_ref: string;
19016
19211
  owner_module: string;
19017
19212
  payload: import("../integrations/supabase/types").Json;
@@ -19093,6 +19288,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
19093
19288
  p_task_id: string;
19094
19289
  };
19095
19290
  Returns: {
19291
+ attempt_log: import("../integrations/supabase/types").Json;
19292
+ attempts: number;
19096
19293
  buffer_ref: string | null;
19097
19294
  claimed_at: string | null;
19098
19295
  claimed_by: string | null;
@@ -19102,6 +19299,8 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
19102
19299
  due_at: string | null;
19103
19300
  error: string | null;
19104
19301
  id: string;
19302
+ last_error: string | null;
19303
+ next_attempt_at: string | null;
19105
19304
  order_ref: string;
19106
19305
  owner_module: string;
19107
19306
  payload: import("../integrations/supabase/types").Json;
@@ -19128,6 +19327,51 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
19128
19327
  isSetofReturn: false;
19129
19328
  };
19130
19329
  };
19330
+ logistics_floriday_claim_pushes: {
19331
+ Args: {
19332
+ _lease_seconds?: number;
19333
+ _limit?: number;
19334
+ _worker?: string;
19335
+ };
19336
+ Returns: {
19337
+ attempts: number;
19338
+ fulfillment_order_id: string;
19339
+ id: string;
19340
+ last_sent_hash: string;
19341
+ order_ref: string;
19342
+ payload: import("../integrations/supabase/types").Json;
19343
+ payload_hash: string;
19344
+ revision: number;
19345
+ }[];
19346
+ };
19347
+ logistics_floriday_finish_push: {
19348
+ Args: {
19349
+ _error?: string;
19350
+ _fulfillment_order_id?: string;
19351
+ _id: string;
19352
+ _max_age_hours?: number;
19353
+ _max_attempts?: number;
19354
+ _ok: boolean;
19355
+ _permanent?: boolean;
19356
+ _revision: number;
19357
+ _sent_hash?: string;
19358
+ };
19359
+ Returns: string;
19360
+ };
19361
+ logistics_floriday_prune_pushes: {
19362
+ Args: {
19363
+ _days?: number;
19364
+ };
19365
+ Returns: number;
19366
+ };
19367
+ logistics_floriday_queue_push: {
19368
+ Args: {
19369
+ _order_ref: string;
19370
+ _payload?: import("../integrations/supabase/types").Json;
19371
+ _payload_hash?: string;
19372
+ };
19373
+ Returns: string;
19374
+ };
19131
19375
  logistics_live_carriers: {
19132
19376
  Args: {
19133
19377
  p_order_ref: string;
@@ -19855,6 +20099,10 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
19855
20099
  Args: never;
19856
20100
  Returns: undefined;
19857
20101
  };
20102
+ run_logistics_tasks_dispatch: {
20103
+ Args: never;
20104
+ Returns: undefined;
20105
+ };
19858
20106
  run_twinfield_queue_tick: {
19859
20107
  Args: never;
19860
20108
  Returns: undefined;
@@ -20095,6 +20343,13 @@ export declare const listTwinfieldLedgerAccounts: import("@tanstack/start-client
20095
20343
  };
20096
20344
  Returns: number;
20097
20345
  };
20346
+ schedule_floriday_stock_queue_process: {
20347
+ Args: {
20348
+ p_apikey: string;
20349
+ p_url: string;
20350
+ };
20351
+ Returns: number;
20352
+ };
20098
20353
  schedule_floriday_token_refresh: {
20099
20354
  Args: {
20100
20355
  p_apikey: string;