@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
@@ -5722,12 +5722,17 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
5722
5722
  attempts: number;
5723
5723
  connection_id: string;
5724
5724
  created_at: string;
5725
+ desired_available: boolean | null;
5725
5726
  gateway_attempt_id: string | null;
5726
5727
  id: string;
5727
5728
  last_error: string | null;
5729
+ locked_at: string | null;
5730
+ locked_by: string | null;
5731
+ next_attempt_at: string;
5728
5732
  number_of_pieces: number;
5729
5733
  sent_at: string | null;
5730
5734
  status: string;
5735
+ superseded_by: string | null;
5731
5736
  trade_item_id: string;
5732
5737
  updated_at: string;
5733
5738
  user_id: string;
@@ -5736,12 +5741,17 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
5736
5741
  attempts?: number;
5737
5742
  connection_id: string;
5738
5743
  created_at?: string;
5744
+ desired_available?: boolean | null;
5739
5745
  gateway_attempt_id?: string | null;
5740
5746
  id?: string;
5741
5747
  last_error?: string | null;
5748
+ locked_at?: string | null;
5749
+ locked_by?: string | null;
5750
+ next_attempt_at?: string;
5742
5751
  number_of_pieces?: number;
5743
5752
  sent_at?: string | null;
5744
5753
  status?: string;
5754
+ superseded_by?: string | null;
5745
5755
  trade_item_id: string;
5746
5756
  updated_at?: string;
5747
5757
  user_id: string;
@@ -5750,12 +5760,17 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
5750
5760
  attempts?: number;
5751
5761
  connection_id?: string;
5752
5762
  created_at?: string;
5763
+ desired_available?: boolean | null;
5753
5764
  gateway_attempt_id?: string | null;
5754
5765
  id?: string;
5755
5766
  last_error?: string | null;
5767
+ locked_at?: string | null;
5768
+ locked_by?: string | null;
5769
+ next_attempt_at?: string;
5756
5770
  number_of_pieces?: number;
5757
5771
  sent_at?: string | null;
5758
5772
  status?: string;
5773
+ superseded_by?: string | null;
5759
5774
  trade_item_id?: string;
5760
5775
  updated_at?: string;
5761
5776
  user_id?: string;
@@ -8504,6 +8519,69 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
8504
8519
  };
8505
8520
  Relationships: [];
8506
8521
  };
8522
+ logistics_floriday_pushes: {
8523
+ Row: {
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
+ Insert: {
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
+ Update: {
8564
+ attempts?: number;
8565
+ created_at?: string;
8566
+ first_queued_at?: string;
8567
+ fulfillment_order_id?: string | null;
8568
+ id?: string;
8569
+ last_error?: string | null;
8570
+ last_error_at?: string | null;
8571
+ last_sent_hash?: string | null;
8572
+ locked_by?: string | null;
8573
+ locked_until?: string | null;
8574
+ next_attempt_at?: string;
8575
+ order_ref?: string;
8576
+ payload?: import("../integrations/supabase/types").Json;
8577
+ payload_hash?: string | null;
8578
+ revision?: number;
8579
+ sent_at?: string | null;
8580
+ status?: string;
8581
+ updated_at?: string;
8582
+ };
8583
+ Relationships: [];
8584
+ };
8507
8585
  logistics_formulas: {
8508
8586
  Row: {
8509
8587
  created_at: string;
@@ -9115,6 +9193,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
9115
9193
  };
9116
9194
  logistics_tasks: {
9117
9195
  Row: {
9196
+ attempt_log: import("../integrations/supabase/types").Json;
9197
+ attempts: number;
9118
9198
  buffer_ref: string | null;
9119
9199
  claimed_at: string | null;
9120
9200
  claimed_by: string | null;
@@ -9124,6 +9204,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
9124
9204
  due_at: string | null;
9125
9205
  error: string | null;
9126
9206
  id: string;
9207
+ last_error: string | null;
9208
+ next_attempt_at: string | null;
9127
9209
  order_ref: string;
9128
9210
  owner_module: string;
9129
9211
  payload: import("../integrations/supabase/types").Json;
@@ -9144,6 +9226,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
9144
9226
  user_id: string;
9145
9227
  };
9146
9228
  Insert: {
9229
+ attempt_log?: import("../integrations/supabase/types").Json;
9230
+ attempts?: number;
9147
9231
  buffer_ref?: string | null;
9148
9232
  claimed_at?: string | null;
9149
9233
  claimed_by?: string | null;
@@ -9153,6 +9237,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
9153
9237
  due_at?: string | null;
9154
9238
  error?: string | null;
9155
9239
  id?: string;
9240
+ last_error?: string | null;
9241
+ next_attempt_at?: string | null;
9156
9242
  order_ref: string;
9157
9243
  owner_module: string;
9158
9244
  payload?: import("../integrations/supabase/types").Json;
@@ -9173,6 +9259,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
9173
9259
  user_id?: string;
9174
9260
  };
9175
9261
  Update: {
9262
+ attempt_log?: import("../integrations/supabase/types").Json;
9263
+ attempts?: number;
9176
9264
  buffer_ref?: string | null;
9177
9265
  claimed_at?: string | null;
9178
9266
  claimed_by?: string | null;
@@ -9182,6 +9270,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
9182
9270
  due_at?: string | null;
9183
9271
  error?: string | null;
9184
9272
  id?: string;
9273
+ last_error?: string | null;
9274
+ next_attempt_at?: string | null;
9185
9275
  order_ref?: string;
9186
9276
  owner_module?: string;
9187
9277
  payload?: import("../integrations/supabase/types").Json;
@@ -18186,6 +18276,85 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
18186
18276
  };
18187
18277
  Returns: import("../integrations/supabase/types").Json;
18188
18278
  };
18279
+ claim_floriday_stock_queue: {
18280
+ Args: {
18281
+ p_limit?: number;
18282
+ p_worker?: string;
18283
+ };
18284
+ Returns: {
18285
+ attempts: number;
18286
+ connection_id: string;
18287
+ created_at: string;
18288
+ desired_available: boolean | null;
18289
+ gateway_attempt_id: string | null;
18290
+ id: string;
18291
+ last_error: string | null;
18292
+ locked_at: string | null;
18293
+ locked_by: string | null;
18294
+ next_attempt_at: string;
18295
+ number_of_pieces: number;
18296
+ sent_at: string | null;
18297
+ status: string;
18298
+ superseded_by: string | null;
18299
+ trade_item_id: string;
18300
+ updated_at: string;
18301
+ user_id: string;
18302
+ }[];
18303
+ SetofOptions: {
18304
+ from: "*";
18305
+ to: "floriday_continuous_stock_queue";
18306
+ isOneToOne: false;
18307
+ isSetofReturn: true;
18308
+ };
18309
+ };
18310
+ claim_logistics_tasks: {
18311
+ Args: {
18312
+ _limit?: number;
18313
+ _owner_module: string;
18314
+ _stale_minutes?: number;
18315
+ _task_type: string;
18316
+ _worker: string;
18317
+ };
18318
+ Returns: {
18319
+ attempt_log: import("../integrations/supabase/types").Json;
18320
+ attempts: number;
18321
+ buffer_ref: string | null;
18322
+ claimed_at: string | null;
18323
+ claimed_by: string | null;
18324
+ completed_at: string | null;
18325
+ created_at: string;
18326
+ depends_on: string[];
18327
+ due_at: string | null;
18328
+ error: string | null;
18329
+ id: string;
18330
+ last_error: string | null;
18331
+ next_attempt_at: string | null;
18332
+ order_ref: string;
18333
+ owner_module: string;
18334
+ payload: import("../integrations/supabase/types").Json;
18335
+ plan_run_id: string | null;
18336
+ planned_end: string | null;
18337
+ planned_start: string | null;
18338
+ priority: number;
18339
+ result: import("../integrations/supabase/types").Json | null;
18340
+ rule_config_id: string | null;
18341
+ rule_version: number | null;
18342
+ sequence: number;
18343
+ shadow: boolean;
18344
+ started_at: string | null;
18345
+ status: string;
18346
+ strategy_id: string | null;
18347
+ task_type: string;
18348
+ updated_at: string;
18349
+ user_id: string;
18350
+ }[];
18351
+ SetofOptions: {
18352
+ from: "*";
18353
+ to: "logistics_tasks";
18354
+ isOneToOne: false;
18355
+ isSetofReturn: true;
18356
+ };
18357
+ };
18189
18358
  claim_print_jobs: {
18190
18359
  Args: {
18191
18360
  _agent_id: string;
@@ -18250,10 +18419,24 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
18250
18419
  isSetofReturn: true;
18251
18420
  };
18252
18421
  };
18422
+ cleanup_floriday_stock_queue: {
18423
+ Args: never;
18424
+ Returns: undefined;
18425
+ };
18253
18426
  cleanup_old_bookings: {
18254
18427
  Args: never;
18255
18428
  Returns: undefined;
18256
18429
  };
18430
+ complete_floriday_stock_queue: {
18431
+ Args: {
18432
+ p_attempt_id?: string;
18433
+ p_error?: string;
18434
+ p_id: string;
18435
+ p_ok: boolean;
18436
+ p_permanent?: boolean;
18437
+ };
18438
+ Returns: undefined;
18439
+ };
18257
18440
  consume_bom_for_production: {
18258
18441
  Args: {
18259
18442
  p_connection_id: string;
@@ -18945,6 +19128,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
18945
19128
  p_worker?: string;
18946
19129
  };
18947
19130
  Returns: {
19131
+ attempt_log: import("../integrations/supabase/types").Json;
19132
+ attempts: number;
18948
19133
  buffer_ref: string | null;
18949
19134
  claimed_at: string | null;
18950
19135
  claimed_by: string | null;
@@ -18954,6 +19139,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
18954
19139
  due_at: string | null;
18955
19140
  error: string | null;
18956
19141
  id: string;
19142
+ last_error: string | null;
19143
+ next_attempt_at: string | null;
18957
19144
  order_ref: string;
18958
19145
  owner_module: string;
18959
19146
  payload: import("../integrations/supabase/types").Json;
@@ -18986,6 +19173,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
18986
19173
  p_worker?: string;
18987
19174
  };
18988
19175
  Returns: {
19176
+ attempt_log: import("../integrations/supabase/types").Json;
19177
+ attempts: number;
18989
19178
  buffer_ref: string | null;
18990
19179
  claimed_at: string | null;
18991
19180
  claimed_by: string | null;
@@ -18995,6 +19184,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
18995
19184
  due_at: string | null;
18996
19185
  error: string | null;
18997
19186
  id: string;
19187
+ last_error: string | null;
19188
+ next_attempt_at: string | null;
18998
19189
  order_ref: string;
18999
19190
  owner_module: string;
19000
19191
  payload: import("../integrations/supabase/types").Json;
@@ -19027,6 +19218,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
19027
19218
  p_task_id: string;
19028
19219
  };
19029
19220
  Returns: {
19221
+ attempt_log: import("../integrations/supabase/types").Json;
19222
+ attempts: number;
19030
19223
  buffer_ref: string | null;
19031
19224
  claimed_at: string | null;
19032
19225
  claimed_by: string | null;
@@ -19036,6 +19229,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
19036
19229
  due_at: string | null;
19037
19230
  error: string | null;
19038
19231
  id: string;
19232
+ last_error: string | null;
19233
+ next_attempt_at: string | null;
19039
19234
  order_ref: string;
19040
19235
  owner_module: string;
19041
19236
  payload: import("../integrations/supabase/types").Json;
@@ -19117,6 +19312,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
19117
19312
  p_task_id: string;
19118
19313
  };
19119
19314
  Returns: {
19315
+ attempt_log: import("../integrations/supabase/types").Json;
19316
+ attempts: number;
19120
19317
  buffer_ref: string | null;
19121
19318
  claimed_at: string | null;
19122
19319
  claimed_by: string | null;
@@ -19126,6 +19323,8 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
19126
19323
  due_at: string | null;
19127
19324
  error: string | null;
19128
19325
  id: string;
19326
+ last_error: string | null;
19327
+ next_attempt_at: string | null;
19129
19328
  order_ref: string;
19130
19329
  owner_module: string;
19131
19330
  payload: import("../integrations/supabase/types").Json;
@@ -19152,6 +19351,51 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
19152
19351
  isSetofReturn: false;
19153
19352
  };
19154
19353
  };
19354
+ logistics_floriday_claim_pushes: {
19355
+ Args: {
19356
+ _lease_seconds?: number;
19357
+ _limit?: number;
19358
+ _worker?: string;
19359
+ };
19360
+ Returns: {
19361
+ attempts: number;
19362
+ fulfillment_order_id: string;
19363
+ id: string;
19364
+ last_sent_hash: string;
19365
+ order_ref: string;
19366
+ payload: import("../integrations/supabase/types").Json;
19367
+ payload_hash: string;
19368
+ revision: number;
19369
+ }[];
19370
+ };
19371
+ logistics_floriday_finish_push: {
19372
+ Args: {
19373
+ _error?: string;
19374
+ _fulfillment_order_id?: string;
19375
+ _id: string;
19376
+ _max_age_hours?: number;
19377
+ _max_attempts?: number;
19378
+ _ok: boolean;
19379
+ _permanent?: boolean;
19380
+ _revision: number;
19381
+ _sent_hash?: string;
19382
+ };
19383
+ Returns: string;
19384
+ };
19385
+ logistics_floriday_prune_pushes: {
19386
+ Args: {
19387
+ _days?: number;
19388
+ };
19389
+ Returns: number;
19390
+ };
19391
+ logistics_floriday_queue_push: {
19392
+ Args: {
19393
+ _order_ref: string;
19394
+ _payload?: import("../integrations/supabase/types").Json;
19395
+ _payload_hash?: string;
19396
+ };
19397
+ Returns: string;
19398
+ };
19155
19399
  logistics_live_carriers: {
19156
19400
  Args: {
19157
19401
  p_order_ref: string;
@@ -19879,6 +20123,10 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
19879
20123
  Args: never;
19880
20124
  Returns: undefined;
19881
20125
  };
20126
+ run_logistics_tasks_dispatch: {
20127
+ Args: never;
20128
+ Returns: undefined;
20129
+ };
19882
20130
  run_twinfield_queue_tick: {
19883
20131
  Args: never;
19884
20132
  Returns: undefined;
@@ -20119,6 +20367,13 @@ export declare const listFloridayCustomerAssortment: import("@tanstack/start-cli
20119
20367
  };
20120
20368
  Returns: number;
20121
20369
  };
20370
+ schedule_floriday_stock_queue_process: {
20371
+ Args: {
20372
+ p_apikey: string;
20373
+ p_url: string;
20374
+ };
20375
+ Returns: number;
20376
+ };
20122
20377
  schedule_floriday_token_refresh: {
20123
20378
  Args: {
20124
20379
  p_apikey: string;