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