@flowselections/floriday-voorraad 1.0.38 → 1.0.39

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 (120) hide show
  1. package/dist-lib/components/TemplatePage.d.ts +1 -1
  2. package/dist-lib/components/TemplatePage.d.ts.map +1 -1
  3. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts +1 -1
  4. package/dist-lib/components/voorraad/AdditionalPackagingDialog.d.ts.map +1 -1
  5. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts +1 -1
  6. package/dist-lib/components/voorraad/ArtikelCompositionCard.d.ts.map +1 -1
  7. package/dist-lib/components/voorraad/ArtikelWizard.d.ts +1 -1
  8. package/dist-lib/components/voorraad/ArtikelWizard.d.ts.map +1 -1
  9. package/dist-lib/components/voorraad/ConnectionBadge.d.ts +1 -1
  10. package/dist-lib/components/voorraad/ConnectionBadge.d.ts.map +1 -1
  11. package/dist-lib/components/voorraad/EditArtikelPage.d.ts +1 -1
  12. package/dist-lib/components/voorraad/EditArtikelPage.d.ts.map +1 -1
  13. package/dist-lib/components/voorraad/ExcelExportButton.d.ts +1 -1
  14. package/dist-lib/components/voorraad/ExcelExportButton.d.ts.map +1 -1
  15. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts +1 -1
  16. package/dist-lib/components/voorraad/FloridayInfoCard.d.ts.map +1 -1
  17. package/dist-lib/components/voorraad/FloridayStatusBadge.d.ts +1 -1
  18. package/dist-lib/components/voorraad/FloridayStatusBadge.d.ts.map +1 -1
  19. package/dist-lib/components/voorraad/FustenPage.d.ts +1 -1
  20. package/dist-lib/components/voorraad/FustenPage.d.ts.map +1 -1
  21. package/dist-lib/components/voorraad/InventorySettingsDrawer.d.ts +10 -0
  22. package/dist-lib/components/voorraad/InventorySettingsDrawer.d.ts.map +1 -0
  23. package/dist-lib/components/voorraad/InventorySettingsDrawer.js +99 -0
  24. package/dist-lib/components/voorraad/InventoryStatusBadge.d.ts +6 -0
  25. package/dist-lib/components/voorraad/InventoryStatusBadge.d.ts.map +1 -0
  26. package/dist-lib/components/voorraad/InventoryStatusBadge.js +43 -0
  27. package/dist-lib/components/voorraad/ModuleHealthCard.d.ts +1 -1
  28. package/dist-lib/components/voorraad/ModuleHealthCard.d.ts.map +1 -1
  29. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts +1 -1
  30. package/dist-lib/components/voorraad/NieuwArtikelPage.d.ts.map +1 -1
  31. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts +1 -1
  32. package/dist-lib/components/voorraad/OrderHistoryCard.d.ts.map +1 -1
  33. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts +1 -1
  34. package/dist-lib/components/voorraad/PriceStatusBadge.d.ts.map +1 -1
  35. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts +1 -1
  36. package/dist-lib/components/voorraad/ProductCustomFieldsCard.d.ts.map +1 -1
  37. package/dist-lib/components/voorraad/ProductLinkCard.d.ts +1 -1
  38. package/dist-lib/components/voorraad/ProductLinkCard.d.ts.map +1 -1
  39. package/dist-lib/components/voorraad/PublicatiesPage.d.ts +1 -1
  40. package/dist-lib/components/voorraad/PublicatiesPage.d.ts.map +1 -1
  41. package/dist-lib/components/voorraad/PublishProgressCard.d.ts +1 -1
  42. package/dist-lib/components/voorraad/PublishProgressCard.d.ts.map +1 -1
  43. package/dist-lib/components/voorraad/PublishReadinessCard.d.ts +1 -1
  44. package/dist-lib/components/voorraad/PublishReadinessCard.d.ts.map +1 -1
  45. package/dist-lib/components/voorraad/StepSamenstelling.d.ts +1 -1
  46. package/dist-lib/components/voorraad/StepSamenstelling.d.ts.map +1 -1
  47. package/dist-lib/components/voorraad/StockBulkButtons.d.ts +1 -1
  48. package/dist-lib/components/voorraad/StockBulkButtons.d.ts.map +1 -1
  49. package/dist-lib/components/voorraad/StockHistoryChart.d.ts +4 -0
  50. package/dist-lib/components/voorraad/StockHistoryChart.d.ts.map +1 -0
  51. package/dist-lib/components/voorraad/StockHistoryChart.js +53 -0
  52. package/dist-lib/components/voorraad/StockPushMonitor.d.ts +1 -1
  53. package/dist-lib/components/voorraad/StockPushMonitor.d.ts.map +1 -1
  54. package/dist-lib/components/voorraad/StockSyncStatus.d.ts +1 -1
  55. package/dist-lib/components/voorraad/StockSyncStatus.d.ts.map +1 -1
  56. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts +1 -1
  57. package/dist-lib/components/voorraad/ValidationOverviewTable.d.ts.map +1 -1
  58. package/dist-lib/components/voorraad/ValidationPage.d.ts +1 -1
  59. package/dist-lib/components/voorraad/ValidationPage.d.ts.map +1 -1
  60. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts +1 -1
  61. package/dist-lib/components/voorraad/VoorraadDashboard.d.ts.map +1 -1
  62. package/dist-lib/components/voorraad/VoorraadPage.d.ts +1 -1
  63. package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -1
  64. package/dist-lib/components/voorraad/VoorraadPage.js +29 -1
  65. package/dist-lib/components/voorraad/VoorraadPagination.d.ts +1 -1
  66. package/dist-lib/components/voorraad/VoorraadPagination.d.ts.map +1 -1
  67. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts +1 -1
  68. package/dist-lib/components/voorraad/VoorraadStockCard.d.ts.map +1 -1
  69. package/dist-lib/components/voorraad/VoorraadTable.d.ts +10 -2
  70. package/dist-lib/components/voorraad/VoorraadTable.d.ts.map +1 -1
  71. package/dist-lib/components/voorraad/VoorraadTable.js +17 -6
  72. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts +1 -1
  73. package/dist-lib/components/voorraad/VoorraadVeldenCard.d.ts.map +1 -1
  74. package/dist-lib/hooks/useInventorySettings.d.ts +29 -0
  75. package/dist-lib/hooks/useInventorySettings.d.ts.map +1 -0
  76. package/dist-lib/hooks/useInventorySettings.js +62 -0
  77. package/dist-lib/integrations/supabase/auth-middleware.d.ts +1195 -717
  78. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  79. package/dist-lib/integrations/supabase/client.d.ts +1195 -717
  80. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  81. package/dist-lib/integrations/supabase/client.js +1 -1
  82. package/dist-lib/integrations/supabase/client.server.d.ts +1195 -717
  83. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  84. package/dist-lib/integrations/supabase/client.server.js +1 -1
  85. package/dist-lib/integrations/supabase/types.d.ts +1208 -748
  86. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  87. package/dist-lib/lib/floricode-required-features.functions.d.ts +1196 -724
  88. package/dist-lib/lib/floricode-required-features.functions.d.ts.map +1 -1
  89. package/dist-lib/lib/floriday-2026v1.server.d.ts +77 -0
  90. package/dist-lib/lib/floriday-2026v1.server.d.ts.map +1 -0
  91. package/dist-lib/lib/floriday-2026v1.server.js +178 -0
  92. package/dist-lib/lib/floriday-customer-offer.functions.d.ts +1198 -718
  93. package/dist-lib/lib/floriday-customer-offer.functions.d.ts.map +1 -1
  94. package/dist-lib/lib/floriday-env.functions.d.ts +2180 -1224
  95. package/dist-lib/lib/floriday-env.functions.d.ts.map +1 -1
  96. package/dist-lib/lib/floriday-gateway.functions.d.ts +6852 -3984
  97. package/dist-lib/lib/floriday-gateway.functions.d.ts.map +1 -1
  98. package/dist-lib/lib/floriday-stock-supply.server.d.ts +18 -7
  99. package/dist-lib/lib/floriday-stock-supply.server.d.ts.map +1 -1
  100. package/dist-lib/lib/floriday-stock-supply.server.js +70 -68
  101. package/dist-lib/lib/floriday-vbn-required.functions.d.ts +2180 -1224
  102. package/dist-lib/lib/floriday-vbn-required.functions.d.ts.map +1 -1
  103. package/dist-lib/lib/floriday-warehouse.functions.d.ts +3476 -2042
  104. package/dist-lib/lib/floriday-warehouse.functions.d.ts.map +1 -1
  105. package/dist-lib/lib/floriday-writes.functions.d.ts +2180 -1224
  106. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  107. package/dist-lib/lib/inventory-settings.functions.d.ts +47391 -0
  108. package/dist-lib/lib/inventory-settings.functions.d.ts.map +1 -0
  109. package/dist-lib/lib/inventory-settings.functions.js +97 -0
  110. package/dist-lib/lib/module-health.functions.d.ts +2180 -1224
  111. package/dist-lib/lib/module-health.functions.d.ts.map +1 -1
  112. package/dist-lib/lib/stock-sync.functions.d.ts +2180 -1224
  113. package/dist-lib/lib/stock-sync.functions.d.ts.map +1 -1
  114. package/package.json +1 -1
  115. package/dist-lib/components/settings/VoorraadSettingsCard.d.ts +0 -2
  116. package/dist-lib/components/settings/VoorraadSettingsCard.d.ts.map +0 -1
  117. package/dist-lib/components/settings/VoorraadSettingsCard.js +0 -39
  118. package/dist-lib/components/voorraad/ConnectionPicker.d.ts +0 -8
  119. package/dist-lib/components/voorraad/ConnectionPicker.d.ts.map +0 -1
  120. package/dist-lib/components/voorraad/ConnectionPicker.js +0 -8
@@ -3,7 +3,7 @@ export type Json = string | number | boolean | null | {
3
3
  } | Json[];
4
4
  export type Database = {
5
5
  __InternalSupabase: {
6
- PostgrestVersion: "14.17";
6
+ PostgrestVersion: "14.5";
7
7
  };
8
8
  public: {
9
9
  Tables: {
@@ -2911,6 +2911,86 @@ export type Database = {
2911
2911
  };
2912
2912
  Relationships: [];
2913
2913
  };
2914
+ delivery_notes: {
2915
+ Row: {
2916
+ byte_size: number | null;
2917
+ connection_id: string | null;
2918
+ content_type: string;
2919
+ created_at: string;
2920
+ error_message: string | null;
2921
+ fetched_at: string | null;
2922
+ fulfillment_order_id: string | null;
2923
+ http_status: number | null;
2924
+ id: string;
2925
+ label_code: string | null;
2926
+ letter: string | null;
2927
+ load_carrier_index: number | null;
2928
+ load_carrier_type: string | null;
2929
+ order_id: string | null;
2930
+ order_number: string | null;
2931
+ packages: number | null;
2932
+ source: string;
2933
+ status: string;
2934
+ storage_bucket: string;
2935
+ storage_path: string | null;
2936
+ updated_at: string;
2937
+ };
2938
+ Insert: {
2939
+ byte_size?: number | null;
2940
+ connection_id?: string | null;
2941
+ content_type?: string;
2942
+ created_at?: string;
2943
+ error_message?: string | null;
2944
+ fetched_at?: string | null;
2945
+ fulfillment_order_id?: string | null;
2946
+ http_status?: number | null;
2947
+ id?: string;
2948
+ label_code?: string | null;
2949
+ letter?: string | null;
2950
+ load_carrier_index?: number | null;
2951
+ load_carrier_type?: string | null;
2952
+ order_id?: string | null;
2953
+ order_number?: string | null;
2954
+ packages?: number | null;
2955
+ source?: string;
2956
+ status?: string;
2957
+ storage_bucket?: string;
2958
+ storage_path?: string | null;
2959
+ updated_at?: string;
2960
+ };
2961
+ Update: {
2962
+ byte_size?: number | null;
2963
+ connection_id?: string | null;
2964
+ content_type?: string;
2965
+ created_at?: string;
2966
+ error_message?: string | null;
2967
+ fetched_at?: string | null;
2968
+ fulfillment_order_id?: string | null;
2969
+ http_status?: number | null;
2970
+ id?: string;
2971
+ label_code?: string | null;
2972
+ letter?: string | null;
2973
+ load_carrier_index?: number | null;
2974
+ load_carrier_type?: string | null;
2975
+ order_id?: string | null;
2976
+ order_number?: string | null;
2977
+ packages?: number | null;
2978
+ source?: string;
2979
+ status?: string;
2980
+ storage_bucket?: string;
2981
+ storage_path?: string | null;
2982
+ updated_at?: string;
2983
+ };
2984
+ Relationships: [
2985
+ {
2986
+ foreignKeyName: "delivery_notes_order_id_fkey";
2987
+ columns: ["order_id"];
2988
+ isOneToOne: false;
2989
+ referencedRelation: "orders";
2990
+ referencedColumns: ["id"];
2991
+ }
2992
+ ];
2993
+ };
2914
2994
  document_bronregels: {
2915
2995
  Row: {
2916
2996
  bron: string;
@@ -6048,10 +6128,7 @@ export type Database = {
6048
6128
  };
6049
6129
  floriday_connections: {
6050
6130
  Row: {
6051
- access_token: string | null;
6052
6131
  api_key: string;
6053
- client_id: string;
6054
- client_secret: string;
6055
6132
  created_at: string;
6056
6133
  customers_endpoint: string | null;
6057
6134
  environment: string;
@@ -6066,10 +6143,7 @@ export type Database = {
6066
6143
  updated_at: string;
6067
6144
  };
6068
6145
  Insert: {
6069
- access_token?: string | null;
6070
6146
  api_key: string;
6071
- client_id: string;
6072
- client_secret: string;
6073
6147
  created_at?: string;
6074
6148
  customers_endpoint?: string | null;
6075
6149
  environment: string;
@@ -6084,10 +6158,7 @@ export type Database = {
6084
6158
  updated_at?: string;
6085
6159
  };
6086
6160
  Update: {
6087
- access_token?: string | null;
6088
6161
  api_key?: string;
6089
- client_id?: string;
6090
- client_secret?: string;
6091
6162
  created_at?: string;
6092
6163
  customers_endpoint?: string | null;
6093
6164
  environment?: string;
@@ -6173,6 +6244,7 @@ export type Database = {
6173
6244
  attempts: number;
6174
6245
  connection_id: string;
6175
6246
  created_at: string;
6247
+ dead_lettered_at: string | null;
6176
6248
  desired_available: boolean | null;
6177
6249
  gateway_attempt_id: string | null;
6178
6250
  id: string;
@@ -6181,9 +6253,13 @@ export type Database = {
6181
6253
  locked_by: string | null;
6182
6254
  next_attempt_at: string;
6183
6255
  number_of_pieces: number;
6256
+ product_id: string | null;
6184
6257
  sent_at: string | null;
6185
6258
  status: string;
6259
+ stock_mode: string | null;
6186
6260
  superseded_by: string | null;
6261
+ target_week: number | null;
6262
+ target_year: number | null;
6187
6263
  trade_item_id: string;
6188
6264
  updated_at: string;
6189
6265
  user_id: string;
@@ -6192,6 +6268,7 @@ export type Database = {
6192
6268
  attempts?: number;
6193
6269
  connection_id: string;
6194
6270
  created_at?: string;
6271
+ dead_lettered_at?: string | null;
6195
6272
  desired_available?: boolean | null;
6196
6273
  gateway_attempt_id?: string | null;
6197
6274
  id?: string;
@@ -6200,9 +6277,13 @@ export type Database = {
6200
6277
  locked_by?: string | null;
6201
6278
  next_attempt_at?: string;
6202
6279
  number_of_pieces?: number;
6280
+ product_id?: string | null;
6203
6281
  sent_at?: string | null;
6204
6282
  status?: string;
6283
+ stock_mode?: string | null;
6205
6284
  superseded_by?: string | null;
6285
+ target_week?: number | null;
6286
+ target_year?: number | null;
6206
6287
  trade_item_id: string;
6207
6288
  updated_at?: string;
6208
6289
  user_id: string;
@@ -6211,6 +6292,7 @@ export type Database = {
6211
6292
  attempts?: number;
6212
6293
  connection_id?: string;
6213
6294
  created_at?: string;
6295
+ dead_lettered_at?: string | null;
6214
6296
  desired_available?: boolean | null;
6215
6297
  gateway_attempt_id?: string | null;
6216
6298
  id?: string;
@@ -6219,9 +6301,13 @@ export type Database = {
6219
6301
  locked_by?: string | null;
6220
6302
  next_attempt_at?: string;
6221
6303
  number_of_pieces?: number;
6304
+ product_id?: string | null;
6222
6305
  sent_at?: string | null;
6223
6306
  status?: string;
6307
+ stock_mode?: string | null;
6224
6308
  superseded_by?: string | null;
6309
+ target_week?: number | null;
6310
+ target_year?: number | null;
6225
6311
  trade_item_id?: string;
6226
6312
  updated_at?: string;
6227
6313
  user_id?: string;
@@ -6648,6 +6734,87 @@ export type Database = {
6648
6734
  }
6649
6735
  ];
6650
6736
  };
6737
+ floriday_inventory_settings: {
6738
+ Row: {
6739
+ buffer_quantity: number;
6740
+ connection_id: string;
6741
+ created_at: string;
6742
+ desired_availability: boolean;
6743
+ desired_quantity: number;
6744
+ fixed_quantity: number | null;
6745
+ floriday_trade_item_id: string | null;
6746
+ id: string;
6747
+ last_confirmed_at: string | null;
6748
+ last_enqueued_at: string | null;
6749
+ last_published_at: string | null;
6750
+ last_sync_error: string | null;
6751
+ manual_quantity: number | null;
6752
+ maximum_quantity: number | null;
6753
+ product_id: string;
6754
+ quantity_control: string;
6755
+ remote_available: boolean | null;
6756
+ remote_checked_at: string | null;
6757
+ remote_quantity: number | null;
6758
+ stock_mode: string;
6759
+ sync_status: string;
6760
+ updated_at: string;
6761
+ updated_by: string | null;
6762
+ user_id: string;
6763
+ };
6764
+ Insert: {
6765
+ buffer_quantity?: number;
6766
+ connection_id: string;
6767
+ created_at?: string;
6768
+ desired_availability?: boolean;
6769
+ desired_quantity?: number;
6770
+ fixed_quantity?: number | null;
6771
+ floriday_trade_item_id?: string | null;
6772
+ id?: string;
6773
+ last_confirmed_at?: string | null;
6774
+ last_enqueued_at?: string | null;
6775
+ last_published_at?: string | null;
6776
+ last_sync_error?: string | null;
6777
+ manual_quantity?: number | null;
6778
+ maximum_quantity?: number | null;
6779
+ product_id: string;
6780
+ quantity_control?: string;
6781
+ remote_available?: boolean | null;
6782
+ remote_checked_at?: string | null;
6783
+ remote_quantity?: number | null;
6784
+ stock_mode?: string;
6785
+ sync_status?: string;
6786
+ updated_at?: string;
6787
+ updated_by?: string | null;
6788
+ user_id: string;
6789
+ };
6790
+ Update: {
6791
+ buffer_quantity?: number;
6792
+ connection_id?: string;
6793
+ created_at?: string;
6794
+ desired_availability?: boolean;
6795
+ desired_quantity?: number;
6796
+ fixed_quantity?: number | null;
6797
+ floriday_trade_item_id?: string | null;
6798
+ id?: string;
6799
+ last_confirmed_at?: string | null;
6800
+ last_enqueued_at?: string | null;
6801
+ last_published_at?: string | null;
6802
+ last_sync_error?: string | null;
6803
+ manual_quantity?: number | null;
6804
+ maximum_quantity?: number | null;
6805
+ product_id?: string;
6806
+ quantity_control?: string;
6807
+ remote_available?: boolean | null;
6808
+ remote_checked_at?: string | null;
6809
+ remote_quantity?: number | null;
6810
+ stock_mode?: string;
6811
+ sync_status?: string;
6812
+ updated_at?: string;
6813
+ updated_by?: string | null;
6814
+ user_id?: string;
6815
+ };
6816
+ Relationships: [];
6817
+ };
6651
6818
  floriday_invoices_cache: {
6652
6819
  Row: {
6653
6820
  buyer_organization_id: string | null;
@@ -6944,6 +7111,39 @@ export type Database = {
6944
7111
  };
6945
7112
  Relationships: [];
6946
7113
  };
7114
+ floriday_sales_order_ingest: {
7115
+ Row: {
7116
+ connection_id: string;
7117
+ created_at: string;
7118
+ id: string;
7119
+ impact: Json;
7120
+ order_status: string | null;
7121
+ order_version: number;
7122
+ processed_at: string;
7123
+ sales_order_id: string;
7124
+ };
7125
+ Insert: {
7126
+ connection_id: string;
7127
+ created_at?: string;
7128
+ id?: string;
7129
+ impact?: Json;
7130
+ order_status?: string | null;
7131
+ order_version?: number;
7132
+ processed_at?: string;
7133
+ sales_order_id: string;
7134
+ };
7135
+ Update: {
7136
+ connection_id?: string;
7137
+ created_at?: string;
7138
+ id?: string;
7139
+ impact?: Json;
7140
+ order_status?: string | null;
7141
+ order_version?: number;
7142
+ processed_at?: string;
7143
+ sales_order_id?: string;
7144
+ };
7145
+ Relationships: [];
7146
+ };
6947
7147
  floriday_sales_strategies_cache: {
6948
7148
  Row: {
6949
7149
  connection_id: string;
@@ -7047,6 +7247,39 @@ export type Database = {
7047
7247
  };
7048
7248
  Relationships: [];
7049
7249
  };
7250
+ floriday_sync_cursors: {
7251
+ Row: {
7252
+ connection_id: string;
7253
+ created_at: string;
7254
+ id: string;
7255
+ last_error: string | null;
7256
+ last_sync_at: string | null;
7257
+ resource_type: string;
7258
+ sequence_number: number;
7259
+ updated_at: string;
7260
+ };
7261
+ Insert: {
7262
+ connection_id: string;
7263
+ created_at?: string;
7264
+ id?: string;
7265
+ last_error?: string | null;
7266
+ last_sync_at?: string | null;
7267
+ resource_type: string;
7268
+ sequence_number?: number;
7269
+ updated_at?: string;
7270
+ };
7271
+ Update: {
7272
+ connection_id?: string;
7273
+ created_at?: string;
7274
+ id?: string;
7275
+ last_error?: string | null;
7276
+ last_sync_at?: string | null;
7277
+ resource_type?: string;
7278
+ sequence_number?: number;
7279
+ updated_at?: string;
7280
+ };
7281
+ Relationships: [];
7282
+ };
7050
7283
  floriday_sync_state: {
7051
7284
  Row: {
7052
7285
  connection_id: string;
@@ -7762,6 +7995,42 @@ export type Database = {
7762
7995
  };
7763
7996
  Relationships: [];
7764
7997
  };
7998
+ inventory_stock_snapshots: {
7999
+ Row: {
8000
+ connection_id: string;
8001
+ created_at: string;
8002
+ erp_available_quantity: number;
8003
+ floriday_desired_quantity: number;
8004
+ floriday_remote_quantity: number | null;
8005
+ granularity: string;
8006
+ id: string;
8007
+ snapshot_at: string;
8008
+ user_id: string | null;
8009
+ };
8010
+ Insert: {
8011
+ connection_id: string;
8012
+ created_at?: string;
8013
+ erp_available_quantity?: number;
8014
+ floriday_desired_quantity?: number;
8015
+ floriday_remote_quantity?: number | null;
8016
+ granularity?: string;
8017
+ id?: string;
8018
+ snapshot_at?: string;
8019
+ user_id?: string | null;
8020
+ };
8021
+ Update: {
8022
+ connection_id?: string;
8023
+ created_at?: string;
8024
+ erp_available_quantity?: number;
8025
+ floriday_desired_quantity?: number;
8026
+ floriday_remote_quantity?: number | null;
8027
+ granularity?: string;
8028
+ id?: string;
8029
+ snapshot_at?: string;
8030
+ user_id?: string | null;
8031
+ };
8032
+ Relationships: [];
8033
+ };
7765
8034
  invoice_items: {
7766
8035
  Row: {
7767
8036
  created_at: string;
@@ -8287,15 +8556,7 @@ export type Database = {
8287
8556
  segment?: Database["public"]["Enums"]["itk_customer_segment"];
8288
8557
  updated_at?: string;
8289
8558
  };
8290
- Relationships: [
8291
- {
8292
- foreignKeyName: "itk_customers_legacy_customer_id_fkey";
8293
- columns: ["legacy_customer_id"];
8294
- isOneToOne: false;
8295
- referencedRelation: "customers";
8296
- referencedColumns: ["id"];
8297
- }
8298
- ];
8559
+ Relationships: [];
8299
8560
  };
8300
8561
  itk_dynamic_fields: {
8301
8562
  Row: {
@@ -8327,98 +8588,272 @@ export type Database = {
8327
8588
  };
8328
8589
  Relationships: [];
8329
8590
  };
8330
- itk_offerte_events: {
8591
+ itk_handover_rechten: {
8331
8592
  Row: {
8332
8593
  created_at: string;
8333
- event_type: string;
8334
8594
  id: string;
8335
- metadata: Json;
8336
- offerte_id: string;
8337
- omschrijving: string | null;
8595
+ module_id: string;
8596
+ rol: Database["public"]["Enums"]["app_role"] | null;
8597
+ updated_at: string;
8338
8598
  user_id: string | null;
8339
8599
  };
8340
8600
  Insert: {
8341
8601
  created_at?: string;
8342
- event_type: string;
8343
8602
  id?: string;
8344
- metadata?: Json;
8345
- offerte_id: string;
8346
- omschrijving?: string | null;
8603
+ module_id: string;
8604
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8605
+ updated_at?: string;
8347
8606
  user_id?: string | null;
8348
8607
  };
8349
8608
  Update: {
8350
8609
  created_at?: string;
8351
- event_type?: string;
8352
8610
  id?: string;
8353
- metadata?: Json;
8354
- offerte_id?: string;
8355
- omschrijving?: string | null;
8611
+ module_id?: string;
8612
+ rol?: Database["public"]["Enums"]["app_role"] | null;
8613
+ updated_at?: string;
8356
8614
  user_id?: string | null;
8357
8615
  };
8358
- Relationships: [
8359
- {
8360
- foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8361
- columns: ["offerte_id"];
8362
- isOneToOne: false;
8363
- referencedRelation: "itk_offertes";
8364
- referencedColumns: ["id"];
8365
- }
8366
- ];
8616
+ Relationships: [];
8367
8617
  };
8368
- itk_offerte_regels: {
8618
+ itk_handover_tokens: {
8369
8619
  Row: {
8620
+ aangemaakt_door: string | null;
8370
8621
  created_at: string;
8371
8622
  id: string;
8372
- line_total_cents: number;
8373
- offerte_id: string;
8374
- omschrijving: string;
8375
- package_id: string | null;
8376
- quantity: number;
8377
- sort_order: number;
8378
- source: string;
8379
- unit_price_cents: number;
8623
+ is_actief: boolean;
8624
+ laatst_gebruikt_op: string | null;
8625
+ label: string;
8626
+ module_id: string;
8627
+ token_hash: string;
8380
8628
  updated_at: string;
8629
+ verloopt_op: string | null;
8381
8630
  };
8382
8631
  Insert: {
8632
+ aangemaakt_door?: string | null;
8383
8633
  created_at?: string;
8384
8634
  id?: string;
8385
- line_total_cents?: number;
8386
- offerte_id: string;
8387
- omschrijving?: string;
8388
- package_id?: string | null;
8389
- quantity?: number;
8390
- sort_order?: number;
8391
- source?: string;
8392
- unit_price_cents?: number;
8635
+ is_actief?: boolean;
8636
+ laatst_gebruikt_op?: string | null;
8637
+ label?: string;
8638
+ module_id: string;
8639
+ token_hash: string;
8393
8640
  updated_at?: string;
8641
+ verloopt_op?: string | null;
8394
8642
  };
8395
8643
  Update: {
8644
+ aangemaakt_door?: string | null;
8396
8645
  created_at?: string;
8397
8646
  id?: string;
8398
- line_total_cents?: number;
8399
- offerte_id?: string;
8400
- omschrijving?: string;
8401
- package_id?: string | null;
8402
- quantity?: number;
8403
- sort_order?: number;
8404
- source?: string;
8405
- unit_price_cents?: number;
8647
+ is_actief?: boolean;
8648
+ laatst_gebruikt_op?: string | null;
8649
+ label?: string;
8650
+ module_id?: string;
8651
+ token_hash?: string;
8406
8652
  updated_at?: string;
8653
+ verloopt_op?: string | null;
8407
8654
  };
8408
- Relationships: [
8409
- {
8410
- foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8411
- columns: ["offerte_id"];
8412
- isOneToOne: false;
8413
- referencedRelation: "itk_offertes";
8414
- referencedColumns: ["id"];
8415
- },
8416
- {
8417
- foreignKeyName: "itk_offerte_regels_package_id_fkey";
8418
- columns: ["package_id"];
8419
- isOneToOne: false;
8420
- referencedRelation: "werkbon_packages";
8421
- referencedColumns: ["id"];
8655
+ Relationships: [];
8656
+ };
8657
+ itk_module_handovers: {
8658
+ Row: {
8659
+ bevindingen: string | null;
8660
+ bezit_tabellen: string[];
8661
+ conflicten_snapshot: Json;
8662
+ contractfuncties: string[];
8663
+ created_at: string;
8664
+ eigenaar_module_id: string | null;
8665
+ gepubliceerd_door: string | null;
8666
+ gepubliceerd_op: string;
8667
+ herzieningstermijn_dagen: number;
8668
+ id: string;
8669
+ inhoud_md: string;
8670
+ is_actueel: boolean;
8671
+ module_id: string;
8672
+ module_titel: string;
8673
+ ontbrekende_contracten: string[];
8674
+ samenvatting: string | null;
8675
+ updated_at: string;
8676
+ versie: number;
8677
+ };
8678
+ Insert: {
8679
+ bevindingen?: string | null;
8680
+ bezit_tabellen?: string[];
8681
+ conflicten_snapshot?: Json;
8682
+ contractfuncties?: string[];
8683
+ created_at?: string;
8684
+ eigenaar_module_id?: string | null;
8685
+ gepubliceerd_door?: string | null;
8686
+ gepubliceerd_op?: string;
8687
+ herzieningstermijn_dagen?: number;
8688
+ id?: string;
8689
+ inhoud_md: string;
8690
+ is_actueel?: boolean;
8691
+ module_id: string;
8692
+ module_titel: string;
8693
+ ontbrekende_contracten?: string[];
8694
+ samenvatting?: string | null;
8695
+ updated_at?: string;
8696
+ versie?: number;
8697
+ };
8698
+ Update: {
8699
+ bevindingen?: string | null;
8700
+ bezit_tabellen?: string[];
8701
+ conflicten_snapshot?: Json;
8702
+ contractfuncties?: string[];
8703
+ created_at?: string;
8704
+ eigenaar_module_id?: string | null;
8705
+ gepubliceerd_door?: string | null;
8706
+ gepubliceerd_op?: string;
8707
+ herzieningstermijn_dagen?: number;
8708
+ id?: string;
8709
+ inhoud_md?: string;
8710
+ is_actueel?: boolean;
8711
+ module_id?: string;
8712
+ module_titel?: string;
8713
+ ontbrekende_contracten?: string[];
8714
+ samenvatting?: string | null;
8715
+ updated_at?: string;
8716
+ versie?: number;
8717
+ };
8718
+ Relationships: [];
8719
+ };
8720
+ itk_module_instructies: {
8721
+ Row: {
8722
+ created_at: string;
8723
+ eigenaar_module_id: string;
8724
+ gepubliceerd_door: string | null;
8725
+ gepubliceerd_op: string;
8726
+ id: string;
8727
+ inhoud_md: string;
8728
+ is_actueel: boolean;
8729
+ sleutel: string;
8730
+ titel: string;
8731
+ toelichting: string | null;
8732
+ updated_at: string;
8733
+ versie: number;
8734
+ };
8735
+ Insert: {
8736
+ created_at?: string;
8737
+ eigenaar_module_id?: string;
8738
+ gepubliceerd_door?: string | null;
8739
+ gepubliceerd_op?: string;
8740
+ id?: string;
8741
+ inhoud_md: string;
8742
+ is_actueel?: boolean;
8743
+ sleutel: string;
8744
+ titel: string;
8745
+ toelichting?: string | null;
8746
+ updated_at?: string;
8747
+ versie?: number;
8748
+ };
8749
+ Update: {
8750
+ created_at?: string;
8751
+ eigenaar_module_id?: string;
8752
+ gepubliceerd_door?: string | null;
8753
+ gepubliceerd_op?: string;
8754
+ id?: string;
8755
+ inhoud_md?: string;
8756
+ is_actueel?: boolean;
8757
+ sleutel?: string;
8758
+ titel?: string;
8759
+ toelichting?: string | null;
8760
+ updated_at?: string;
8761
+ versie?: number;
8762
+ };
8763
+ Relationships: [];
8764
+ };
8765
+ itk_offerte_events: {
8766
+ Row: {
8767
+ created_at: string;
8768
+ event_type: string;
8769
+ id: string;
8770
+ metadata: Json;
8771
+ offerte_id: string;
8772
+ omschrijving: string | null;
8773
+ user_id: string | null;
8774
+ };
8775
+ Insert: {
8776
+ created_at?: string;
8777
+ event_type: string;
8778
+ id?: string;
8779
+ metadata?: Json;
8780
+ offerte_id: string;
8781
+ omschrijving?: string | null;
8782
+ user_id?: string | null;
8783
+ };
8784
+ Update: {
8785
+ created_at?: string;
8786
+ event_type?: string;
8787
+ id?: string;
8788
+ metadata?: Json;
8789
+ offerte_id?: string;
8790
+ omschrijving?: string | null;
8791
+ user_id?: string | null;
8792
+ };
8793
+ Relationships: [
8794
+ {
8795
+ foreignKeyName: "itk_offerte_events_offerte_id_fkey";
8796
+ columns: ["offerte_id"];
8797
+ isOneToOne: false;
8798
+ referencedRelation: "itk_offertes";
8799
+ referencedColumns: ["id"];
8800
+ }
8801
+ ];
8802
+ };
8803
+ itk_offerte_regels: {
8804
+ Row: {
8805
+ created_at: string;
8806
+ id: string;
8807
+ line_total_cents: number;
8808
+ offerte_id: string;
8809
+ omschrijving: string;
8810
+ package_id: string | null;
8811
+ quantity: number;
8812
+ sort_order: number;
8813
+ source: string;
8814
+ unit_price_cents: number;
8815
+ updated_at: string;
8816
+ };
8817
+ Insert: {
8818
+ created_at?: string;
8819
+ id?: string;
8820
+ line_total_cents?: number;
8821
+ offerte_id: string;
8822
+ omschrijving?: string;
8823
+ package_id?: string | null;
8824
+ quantity?: number;
8825
+ sort_order?: number;
8826
+ source?: string;
8827
+ unit_price_cents?: number;
8828
+ updated_at?: string;
8829
+ };
8830
+ Update: {
8831
+ created_at?: string;
8832
+ id?: string;
8833
+ line_total_cents?: number;
8834
+ offerte_id?: string;
8835
+ omschrijving?: string;
8836
+ package_id?: string | null;
8837
+ quantity?: number;
8838
+ sort_order?: number;
8839
+ source?: string;
8840
+ unit_price_cents?: number;
8841
+ updated_at?: string;
8842
+ };
8843
+ Relationships: [
8844
+ {
8845
+ foreignKeyName: "itk_offerte_regels_offerte_id_fkey";
8846
+ columns: ["offerte_id"];
8847
+ isOneToOne: false;
8848
+ referencedRelation: "itk_offertes";
8849
+ referencedColumns: ["id"];
8850
+ },
8851
+ {
8852
+ foreignKeyName: "itk_offerte_regels_package_id_fkey";
8853
+ columns: ["package_id"];
8854
+ isOneToOne: false;
8855
+ referencedRelation: "werkbon_packages";
8856
+ referencedColumns: ["id"];
8422
8857
  }
8423
8858
  ];
8424
8859
  };
@@ -11023,6 +11458,24 @@ export type Database = {
11023
11458
  };
11024
11459
  Relationships: [];
11025
11460
  };
11461
+ maps_job_lease: {
11462
+ Row: {
11463
+ job: string;
11464
+ locked_until: string;
11465
+ updated_at: string;
11466
+ };
11467
+ Insert: {
11468
+ job: string;
11469
+ locked_until?: string;
11470
+ updated_at?: string;
11471
+ };
11472
+ Update: {
11473
+ job?: string;
11474
+ locked_until?: string;
11475
+ updated_at?: string;
11476
+ };
11477
+ Relationships: [];
11478
+ };
11026
11479
  maps_request_queue: {
11027
11480
  Row: {
11028
11481
  attempts: number;
@@ -11084,6 +11537,7 @@ export type Database = {
11084
11537
  last_error: string | null;
11085
11538
  last_error_at: string | null;
11086
11539
  last_success_at: string | null;
11540
+ provider: string;
11087
11541
  updated_at: string;
11088
11542
  };
11089
11543
  Insert: {
@@ -11095,6 +11549,7 @@ export type Database = {
11095
11549
  last_error?: string | null;
11096
11550
  last_error_at?: string | null;
11097
11551
  last_success_at?: string | null;
11552
+ provider?: string;
11098
11553
  updated_at?: string;
11099
11554
  };
11100
11555
  Update: {
@@ -11106,6 +11561,7 @@ export type Database = {
11106
11561
  last_error?: string | null;
11107
11562
  last_error_at?: string | null;
11108
11563
  last_success_at?: string | null;
11564
+ provider?: string;
11109
11565
  updated_at?: string;
11110
11566
  };
11111
11567
  Relationships: [];
@@ -13837,6 +14293,13 @@ export type Database = {
13837
14293
  isOneToOne: false;
13838
14294
  referencedRelation: "planning_items";
13839
14295
  referencedColumns: ["id"];
14296
+ },
14297
+ {
14298
+ foreignKeyName: "planning_item_assistants_planning_item_id_fkey";
14299
+ columns: ["planning_item_id"];
14300
+ isOneToOne: false;
14301
+ referencedRelation: "planning_overview";
14302
+ referencedColumns: ["id"];
13840
14303
  }
13841
14304
  ];
13842
14305
  };
@@ -13935,6 +14398,39 @@ export type Database = {
13935
14398
  };
13936
14399
  Relationships: [];
13937
14400
  };
14401
+ print_dedupe_events: {
14402
+ Row: {
14403
+ bestaande_job_id: string | null;
14404
+ created_at: string;
14405
+ detail: string | null;
14406
+ documentnaam: string | null;
14407
+ documenttype: string | null;
14408
+ id: string;
14409
+ idempotentie_sleutel: string;
14410
+ reden: string;
14411
+ };
14412
+ Insert: {
14413
+ bestaande_job_id?: string | null;
14414
+ created_at?: string;
14415
+ detail?: string | null;
14416
+ documentnaam?: string | null;
14417
+ documenttype?: string | null;
14418
+ id?: string;
14419
+ idempotentie_sleutel: string;
14420
+ reden: string;
14421
+ };
14422
+ Update: {
14423
+ bestaande_job_id?: string | null;
14424
+ created_at?: string;
14425
+ detail?: string | null;
14426
+ documentnaam?: string | null;
14427
+ documenttype?: string | null;
14428
+ id?: string;
14429
+ idempotentie_sleutel?: string;
14430
+ reden?: string;
14431
+ };
14432
+ Relationships: [];
14433
+ };
13938
14434
  print_job_logs: {
13939
14435
  Row: {
13940
14436
  created_at: string;
@@ -13978,6 +14474,8 @@ export type Database = {
13978
14474
  foutmelding: string | null;
13979
14475
  gebruiker_id: string | null;
13980
14476
  gebruiker_naam: string;
14477
+ gebruikte_bron: string | null;
14478
+ gebruikte_layout_id: string | null;
13981
14479
  gestart_op: string | null;
13982
14480
  herkomst: string | null;
13983
14481
  id: string;
@@ -13985,6 +14483,9 @@ export type Database = {
13985
14483
  is_herprint: boolean;
13986
14484
  kopieen: number;
13987
14485
  layout_id: string | null;
14486
+ lokaal_opgeslagen_op: string | null;
14487
+ lokale_pdf_fout: string | null;
14488
+ lokale_pdf_status: string | null;
13988
14489
  opgepakt_op: string | null;
13989
14490
  paginas: number;
13990
14491
  payload: Json;
@@ -13993,6 +14494,7 @@ export type Database = {
13993
14494
  pogingen: number;
13994
14495
  printer_id: string | null;
13995
14496
  render_html: string | null;
14497
+ resultaat_pdf_base64: string | null;
13996
14498
  status: Database["public"]["Enums"]["print_job_status"];
13997
14499
  updated_at: string;
13998
14500
  volgende_poging: string | null;
@@ -14008,6 +14510,8 @@ export type Database = {
14008
14510
  foutmelding?: string | null;
14009
14511
  gebruiker_id?: string | null;
14010
14512
  gebruiker_naam?: string;
14513
+ gebruikte_bron?: string | null;
14514
+ gebruikte_layout_id?: string | null;
14011
14515
  gestart_op?: string | null;
14012
14516
  herkomst?: string | null;
14013
14517
  id?: string;
@@ -14015,6 +14519,9 @@ export type Database = {
14015
14519
  is_herprint?: boolean;
14016
14520
  kopieen?: number;
14017
14521
  layout_id?: string | null;
14522
+ lokaal_opgeslagen_op?: string | null;
14523
+ lokale_pdf_fout?: string | null;
14524
+ lokale_pdf_status?: string | null;
14018
14525
  opgepakt_op?: string | null;
14019
14526
  paginas?: number;
14020
14527
  payload?: Json;
@@ -14023,6 +14530,7 @@ export type Database = {
14023
14530
  pogingen?: number;
14024
14531
  printer_id?: string | null;
14025
14532
  render_html?: string | null;
14533
+ resultaat_pdf_base64?: string | null;
14026
14534
  status?: Database["public"]["Enums"]["print_job_status"];
14027
14535
  updated_at?: string;
14028
14536
  volgende_poging?: string | null;
@@ -14038,6 +14546,8 @@ export type Database = {
14038
14546
  foutmelding?: string | null;
14039
14547
  gebruiker_id?: string | null;
14040
14548
  gebruiker_naam?: string;
14549
+ gebruikte_bron?: string | null;
14550
+ gebruikte_layout_id?: string | null;
14041
14551
  gestart_op?: string | null;
14042
14552
  herkomst?: string | null;
14043
14553
  id?: string;
@@ -14045,6 +14555,9 @@ export type Database = {
14045
14555
  is_herprint?: boolean;
14046
14556
  kopieen?: number;
14047
14557
  layout_id?: string | null;
14558
+ lokaal_opgeslagen_op?: string | null;
14559
+ lokale_pdf_fout?: string | null;
14560
+ lokale_pdf_status?: string | null;
14048
14561
  opgepakt_op?: string | null;
14049
14562
  paginas?: number;
14050
14563
  payload?: Json;
@@ -14053,6 +14566,7 @@ export type Database = {
14053
14566
  pogingen?: number;
14054
14567
  printer_id?: string | null;
14055
14568
  render_html?: string | null;
14569
+ resultaat_pdf_base64?: string | null;
14056
14570
  status?: Database["public"]["Enums"]["print_job_status"];
14057
14571
  updated_at?: string;
14058
14572
  volgende_poging?: string | null;
@@ -14179,6 +14693,39 @@ export type Database = {
14179
14693
  };
14180
14694
  Relationships: [];
14181
14695
  };
14696
+ print_preview_events: {
14697
+ Row: {
14698
+ code: string | null;
14699
+ created_at: string;
14700
+ detail: Json;
14701
+ id: string;
14702
+ queue_item_id: string | null;
14703
+ reden: string | null;
14704
+ station_slug: string | null;
14705
+ uitkomst: string;
14706
+ };
14707
+ Insert: {
14708
+ code?: string | null;
14709
+ created_at?: string;
14710
+ detail?: Json;
14711
+ id?: string;
14712
+ queue_item_id?: string | null;
14713
+ reden?: string | null;
14714
+ station_slug?: string | null;
14715
+ uitkomst?: string;
14716
+ };
14717
+ Update: {
14718
+ code?: string | null;
14719
+ created_at?: string;
14720
+ detail?: Json;
14721
+ id?: string;
14722
+ queue_item_id?: string | null;
14723
+ reden?: string | null;
14724
+ station_slug?: string | null;
14725
+ uitkomst?: string;
14726
+ };
14727
+ Relationships: [];
14728
+ };
14182
14729
  print_queue_runners: {
14183
14730
  Row: {
14184
14731
  actief: boolean;
@@ -14426,6 +14973,7 @@ export type Database = {
14426
14973
  ondersteunde_laden: Json | null;
14427
14974
  online: boolean;
14428
14975
  papierformaat: string;
14976
+ pdf_map: string | null;
14429
14977
  poort: number | null;
14430
14978
  soort: Database["public"]["Enums"]["printer_kind"];
14431
14979
  systeemnaam: string;
@@ -14451,6 +14999,7 @@ export type Database = {
14451
14999
  ondersteunde_laden?: Json | null;
14452
15000
  online?: boolean;
14453
15001
  papierformaat?: string;
15002
+ pdf_map?: string | null;
14454
15003
  poort?: number | null;
14455
15004
  soort?: Database["public"]["Enums"]["printer_kind"];
14456
15005
  systeemnaam?: string;
@@ -14476,6 +15025,7 @@ export type Database = {
14476
15025
  ondersteunde_laden?: Json | null;
14477
15026
  online?: boolean;
14478
15027
  papierformaat?: string;
15028
+ pdf_map?: string | null;
14479
15029
  poort?: number | null;
14480
15030
  soort?: Database["public"]["Enums"]["printer_kind"];
14481
15031
  systeemnaam?: string;
@@ -15385,550 +15935,90 @@ export type Database = {
15385
15935
  }
15386
15936
  ];
15387
15937
  };
15388
- quote_activities: {
15938
+ reception_notifications: {
15389
15939
  Row: {
15940
+ booking_id: string | null;
15390
15941
  created_at: string;
15391
- event_type: string;
15392
15942
  id: string;
15393
- metadata: Json;
15394
- quote_id: string;
15395
- user_id: string | null;
15943
+ is_read: boolean;
15944
+ message: string;
15945
+ recipient_email: string | null;
15946
+ title: string;
15947
+ type: string;
15396
15948
  };
15397
15949
  Insert: {
15950
+ booking_id?: string | null;
15398
15951
  created_at?: string;
15399
- event_type: string;
15400
15952
  id?: string;
15401
- metadata?: Json;
15402
- quote_id: string;
15403
- user_id?: string | null;
15953
+ is_read?: boolean;
15954
+ message: string;
15955
+ recipient_email?: string | null;
15956
+ title: string;
15957
+ type: string;
15404
15958
  };
15405
15959
  Update: {
15960
+ booking_id?: string | null;
15406
15961
  created_at?: string;
15407
- event_type?: string;
15408
15962
  id?: string;
15409
- metadata?: Json;
15410
- quote_id?: string;
15411
- user_id?: string | null;
15963
+ is_read?: boolean;
15964
+ message?: string;
15965
+ recipient_email?: string | null;
15966
+ title?: string;
15967
+ type?: string;
15412
15968
  };
15413
15969
  Relationships: [
15414
15970
  {
15415
- foreignKeyName: "quote_activities_quote_id_fkey";
15416
- columns: ["quote_id"];
15971
+ foreignKeyName: "reception_notifications_booking_id_fkey";
15972
+ columns: ["booking_id"];
15417
15973
  isOneToOne: false;
15418
- referencedRelation: "quotes";
15974
+ referencedRelation: "bookings";
15419
15975
  referencedColumns: ["id"];
15420
15976
  }
15421
15977
  ];
15422
15978
  };
15423
- quote_attachments: {
15979
+ role_assignments: {
15424
15980
  Row: {
15425
15981
  created_at: string;
15426
- file_name: string;
15427
- file_size: number | null;
15428
- file_url: string;
15429
15982
  id: string;
15430
- mime_type: string | null;
15431
- quote_id: string;
15983
+ role_id: string;
15984
+ user_id: string;
15432
15985
  };
15433
15986
  Insert: {
15434
15987
  created_at?: string;
15435
- file_name: string;
15436
- file_size?: number | null;
15437
- file_url: string;
15438
15988
  id?: string;
15439
- mime_type?: string | null;
15440
- quote_id: string;
15989
+ role_id: string;
15990
+ user_id: string;
15441
15991
  };
15442
15992
  Update: {
15443
15993
  created_at?: string;
15444
- file_name?: string;
15445
- file_size?: number | null;
15446
- file_url?: string;
15447
15994
  id?: string;
15448
- mime_type?: string | null;
15449
- quote_id?: string;
15995
+ role_id?: string;
15996
+ user_id?: string;
15450
15997
  };
15451
15998
  Relationships: [
15452
15999
  {
15453
- foreignKeyName: "quote_attachments_quote_id_fkey";
15454
- columns: ["quote_id"];
16000
+ foreignKeyName: "role_assignments_role_id_fkey";
16001
+ columns: ["role_id"];
15455
16002
  isOneToOne: false;
15456
- referencedRelation: "quotes";
16003
+ referencedRelation: "roles";
15457
16004
  referencedColumns: ["id"];
15458
16005
  }
15459
16006
  ];
15460
16007
  };
15461
- quote_field_options: {
16008
+ role_permissions: {
15462
16009
  Row: {
15463
- created_at: string;
15464
- field_id: string;
16010
+ can_edit: boolean;
16011
+ can_view: boolean;
16012
+ feature_id: string;
15465
16013
  id: string;
15466
- label: string;
15467
- sort_order: number;
15468
- value: string;
16014
+ module_id: string;
16015
+ role_id: string;
16016
+ updated_at: string;
15469
16017
  };
15470
16018
  Insert: {
15471
- created_at?: string;
15472
- field_id: string;
15473
- id?: string;
15474
- label: string;
15475
- sort_order?: number;
15476
- value: string;
15477
- };
15478
- Update: {
15479
- created_at?: string;
15480
- field_id?: string;
15481
- id?: string;
15482
- label?: string;
15483
- sort_order?: number;
15484
- value?: string;
15485
- };
15486
- Relationships: [
15487
- {
15488
- foreignKeyName: "quote_field_options_field_id_fkey";
15489
- columns: ["field_id"];
15490
- isOneToOne: false;
15491
- referencedRelation: "quote_field_settings";
15492
- referencedColumns: ["id"];
15493
- }
15494
- ];
15495
- };
15496
- quote_field_settings: {
15497
- Row: {
15498
- created_at: string;
15499
- default_value: string | null;
15500
- field_key: string;
15501
- field_type: string;
15502
- id: string;
15503
- is_system: boolean;
15504
- label: string;
15505
- required: boolean;
15506
- sort_order: number;
15507
- updated_at: string;
15508
- visible: boolean;
15509
- };
15510
- Insert: {
15511
- created_at?: string;
15512
- default_value?: string | null;
15513
- field_key: string;
15514
- field_type: string;
15515
- id?: string;
15516
- is_system?: boolean;
15517
- label: string;
15518
- required?: boolean;
15519
- sort_order?: number;
15520
- updated_at?: string;
15521
- visible?: boolean;
15522
- };
15523
- Update: {
15524
- created_at?: string;
15525
- default_value?: string | null;
15526
- field_key?: string;
15527
- field_type?: string;
15528
- id?: string;
15529
- is_system?: boolean;
15530
- label?: string;
15531
- required?: boolean;
15532
- sort_order?: number;
15533
- updated_at?: string;
15534
- visible?: boolean;
15535
- };
15536
- Relationships: [];
15537
- };
15538
- quote_items: {
15539
- Row: {
15540
- category: string | null;
15541
- created_at: string;
15542
- description: string;
15543
- id: string;
15544
- line_total: number;
15545
- module_id: string | null;
15546
- name: string | null;
15547
- quantity: number;
15548
- quote_id: string;
15549
- sort_order: number;
15550
- unit_price: number;
15551
- };
15552
- Insert: {
15553
- category?: string | null;
15554
- created_at?: string;
15555
- description?: string;
15556
- id?: string;
15557
- line_total?: number;
15558
- module_id?: string | null;
15559
- name?: string | null;
15560
- quantity?: number;
15561
- quote_id: string;
15562
- sort_order?: number;
15563
- unit_price?: number;
15564
- };
15565
- Update: {
15566
- category?: string | null;
15567
- created_at?: string;
15568
- description?: string;
15569
- id?: string;
15570
- line_total?: number;
15571
- module_id?: string | null;
15572
- name?: string | null;
15573
- quantity?: number;
15574
- quote_id?: string;
15575
- sort_order?: number;
15576
- unit_price?: number;
15577
- };
15578
- Relationships: [
15579
- {
15580
- foreignKeyName: "quote_items_module_id_fkey";
15581
- columns: ["module_id"];
15582
- isOneToOne: false;
15583
- referencedRelation: "quote_modules";
15584
- referencedColumns: ["id"];
15585
- },
15586
- {
15587
- foreignKeyName: "quote_items_quote_id_fkey";
15588
- columns: ["quote_id"];
15589
- isOneToOne: false;
15590
- referencedRelation: "quotes";
15591
- referencedColumns: ["id"];
15592
- }
15593
- ];
15594
- };
15595
- quote_modules: {
15596
- Row: {
15597
- category: string | null;
15598
- created_at: string;
15599
- description: string | null;
15600
- id: string;
15601
- is_active: boolean;
15602
- name: string;
15603
- price: number;
15604
- sort_order: number;
15605
- updated_at: string;
15606
- };
15607
- Insert: {
15608
- category?: string | null;
15609
- created_at?: string;
15610
- description?: string | null;
15611
- id?: string;
15612
- is_active?: boolean;
15613
- name: string;
15614
- price?: number;
15615
- sort_order?: number;
15616
- updated_at?: string;
15617
- };
15618
- Update: {
15619
- category?: string | null;
15620
- created_at?: string;
15621
- description?: string | null;
15622
- id?: string;
15623
- is_active?: boolean;
15624
- name?: string;
15625
- price?: number;
15626
- sort_order?: number;
15627
- updated_at?: string;
15628
- };
15629
- Relationships: [];
15630
- };
15631
- quote_templates: {
15632
- Row: {
15633
- created_at: string;
15634
- description: string | null;
15635
- field_values: Json;
15636
- id: string;
15637
- is_default: boolean;
15638
- items: Json;
15639
- name: string;
15640
- updated_at: string;
15641
- vat_rate: number;
15642
- };
15643
- Insert: {
15644
- created_at?: string;
15645
- description?: string | null;
15646
- field_values?: Json;
15647
- id?: string;
15648
- is_default?: boolean;
15649
- items?: Json;
15650
- name: string;
15651
- updated_at?: string;
15652
- vat_rate?: number;
15653
- };
15654
- Update: {
15655
- created_at?: string;
15656
- description?: string | null;
15657
- field_values?: Json;
15658
- id?: string;
15659
- is_default?: boolean;
15660
- items?: Json;
15661
- name?: string;
15662
- updated_at?: string;
15663
- vat_rate?: number;
15664
- };
15665
- Relationships: [];
15666
- };
15667
- quote_terms: {
15668
- Row: {
15669
- content: string | null;
15670
- created_at: string;
15671
- file_url: string | null;
15672
- id: string;
15673
- is_active: boolean;
15674
- name: string;
15675
- published_at: string | null;
15676
- updated_at: string;
15677
- version: string;
15678
- };
15679
- Insert: {
15680
- content?: string | null;
15681
- created_at?: string;
15682
- file_url?: string | null;
15683
- id?: string;
15684
- is_active?: boolean;
15685
- name: string;
15686
- published_at?: string | null;
15687
- updated_at?: string;
15688
- version?: string;
15689
- };
15690
- Update: {
15691
- content?: string | null;
15692
- created_at?: string;
15693
- file_url?: string | null;
15694
- id?: string;
15695
- is_active?: boolean;
15696
- name?: string;
15697
- published_at?: string | null;
15698
- updated_at?: string;
15699
- version?: string;
15700
- };
15701
- Relationships: [];
15702
- };
15703
- quotes: {
15704
- Row: {
15705
- accepted_at: string | null;
15706
- archived_at: string | null;
15707
- contact_id: string | null;
15708
- created_at: string;
15709
- customer_id: string | null;
15710
- discount: number;
15711
- expires_at: string | null;
15712
- field_values: Json;
15713
- id: string;
15714
- notes: string | null;
15715
- owner_id: string | null;
15716
- personal_message: string | null;
15717
- project_id: string | null;
15718
- prospect_id: string | null;
15719
- public_token: string;
15720
- quote_number: string | null;
15721
- recipient_email: string | null;
15722
- recipient_name: string | null;
15723
- rejected_at: string | null;
15724
- sent_at: string | null;
15725
- status: string;
15726
- subtotal: number;
15727
- template_id: string | null;
15728
- terms_id: string | null;
15729
- title: string;
15730
- total: number;
15731
- updated_at: string;
15732
- valid_until: string | null;
15733
- vat_amount: number;
15734
- vat_rate: number;
15735
- viewed_at: string | null;
15736
- };
15737
- Insert: {
15738
- accepted_at?: string | null;
15739
- archived_at?: string | null;
15740
- contact_id?: string | null;
15741
- created_at?: string;
15742
- customer_id?: string | null;
15743
- discount?: number;
15744
- expires_at?: string | null;
15745
- field_values?: Json;
15746
- id?: string;
15747
- notes?: string | null;
15748
- owner_id?: string | null;
15749
- personal_message?: string | null;
15750
- project_id?: string | null;
15751
- prospect_id?: string | null;
15752
- public_token?: string;
15753
- quote_number?: string | null;
15754
- recipient_email?: string | null;
15755
- recipient_name?: string | null;
15756
- rejected_at?: string | null;
15757
- sent_at?: string | null;
15758
- status?: string;
15759
- subtotal?: number;
15760
- template_id?: string | null;
15761
- terms_id?: string | null;
15762
- title?: string;
15763
- total?: number;
15764
- updated_at?: string;
15765
- valid_until?: string | null;
15766
- vat_amount?: number;
15767
- vat_rate?: number;
15768
- viewed_at?: string | null;
15769
- };
15770
- Update: {
15771
- accepted_at?: string | null;
15772
- archived_at?: string | null;
15773
- contact_id?: string | null;
15774
- created_at?: string;
15775
- customer_id?: string | null;
15776
- discount?: number;
15777
- expires_at?: string | null;
15778
- field_values?: Json;
15779
- id?: string;
15780
- notes?: string | null;
15781
- owner_id?: string | null;
15782
- personal_message?: string | null;
15783
- project_id?: string | null;
15784
- prospect_id?: string | null;
15785
- public_token?: string;
15786
- quote_number?: string | null;
15787
- recipient_email?: string | null;
15788
- recipient_name?: string | null;
15789
- rejected_at?: string | null;
15790
- sent_at?: string | null;
15791
- status?: string;
15792
- subtotal?: number;
15793
- template_id?: string | null;
15794
- terms_id?: string | null;
15795
- title?: string;
15796
- total?: number;
15797
- updated_at?: string;
15798
- valid_until?: string | null;
15799
- vat_amount?: number;
15800
- vat_rate?: number;
15801
- viewed_at?: string | null;
15802
- };
15803
- Relationships: [
15804
- {
15805
- foreignKeyName: "quotes_contact_id_fkey";
15806
- columns: ["contact_id"];
15807
- isOneToOne: false;
15808
- referencedRelation: "customer_contacts";
15809
- referencedColumns: ["id"];
15810
- },
15811
- {
15812
- foreignKeyName: "quotes_customer_id_fkey";
15813
- columns: ["customer_id"];
15814
- isOneToOne: false;
15815
- referencedRelation: "customers";
15816
- referencedColumns: ["id"];
15817
- },
15818
- {
15819
- foreignKeyName: "quotes_project_id_fkey";
15820
- columns: ["project_id"];
15821
- isOneToOne: false;
15822
- referencedRelation: "projects";
15823
- referencedColumns: ["id"];
15824
- },
15825
- {
15826
- foreignKeyName: "quotes_prospect_id_fkey";
15827
- columns: ["prospect_id"];
15828
- isOneToOne: false;
15829
- referencedRelation: "prospects";
15830
- referencedColumns: ["id"];
15831
- },
15832
- {
15833
- foreignKeyName: "quotes_template_id_fkey";
15834
- columns: ["template_id"];
15835
- isOneToOne: false;
15836
- referencedRelation: "quote_templates";
15837
- referencedColumns: ["id"];
15838
- },
15839
- {
15840
- foreignKeyName: "quotes_terms_id_fkey";
15841
- columns: ["terms_id"];
15842
- isOneToOne: false;
15843
- referencedRelation: "quote_terms";
15844
- referencedColumns: ["id"];
15845
- }
15846
- ];
15847
- };
15848
- reception_notifications: {
15849
- Row: {
15850
- booking_id: string | null;
15851
- created_at: string;
15852
- id: string;
15853
- is_read: boolean;
15854
- message: string;
15855
- recipient_email: string | null;
15856
- title: string;
15857
- type: string;
15858
- };
15859
- Insert: {
15860
- booking_id?: string | null;
15861
- created_at?: string;
15862
- id?: string;
15863
- is_read?: boolean;
15864
- message: string;
15865
- recipient_email?: string | null;
15866
- title: string;
15867
- type: string;
15868
- };
15869
- Update: {
15870
- booking_id?: string | null;
15871
- created_at?: string;
15872
- id?: string;
15873
- is_read?: boolean;
15874
- message?: string;
15875
- recipient_email?: string | null;
15876
- title?: string;
15877
- type?: string;
15878
- };
15879
- Relationships: [
15880
- {
15881
- foreignKeyName: "reception_notifications_booking_id_fkey";
15882
- columns: ["booking_id"];
15883
- isOneToOne: false;
15884
- referencedRelation: "bookings";
15885
- referencedColumns: ["id"];
15886
- }
15887
- ];
15888
- };
15889
- role_assignments: {
15890
- Row: {
15891
- created_at: string;
15892
- id: string;
15893
- role_id: string;
15894
- user_id: string;
15895
- };
15896
- Insert: {
15897
- created_at?: string;
15898
- id?: string;
15899
- role_id: string;
15900
- user_id: string;
15901
- };
15902
- Update: {
15903
- created_at?: string;
15904
- id?: string;
15905
- role_id?: string;
15906
- user_id?: string;
15907
- };
15908
- Relationships: [
15909
- {
15910
- foreignKeyName: "role_assignments_role_id_fkey";
15911
- columns: ["role_id"];
15912
- isOneToOne: false;
15913
- referencedRelation: "roles";
15914
- referencedColumns: ["id"];
15915
- }
15916
- ];
15917
- };
15918
- role_permissions: {
15919
- Row: {
15920
- can_edit: boolean;
15921
- can_view: boolean;
15922
- feature_id: string;
15923
- id: string;
15924
- module_id: string;
15925
- role_id: string;
15926
- updated_at: string;
15927
- };
15928
- Insert: {
15929
- can_edit?: boolean;
15930
- can_view?: boolean;
15931
- feature_id?: string;
16019
+ can_edit?: boolean;
16020
+ can_view?: boolean;
16021
+ feature_id?: string;
15932
16022
  id?: string;
15933
16023
  module_id: string;
15934
16024
  role_id: string;
@@ -16991,7 +17081,7 @@ export type Database = {
16991
17081
  foreignKeyName: "time_logs_work_order_id_fkey";
16992
17082
  columns: ["work_order_id"];
16993
17083
  isOneToOne: false;
16994
- referencedRelation: "work_orders";
17084
+ referencedRelation: "werkbonnen";
16995
17085
  referencedColumns: ["id"];
16996
17086
  }
16997
17087
  ];
@@ -17126,6 +17216,7 @@ export type Database = {
17126
17216
  };
17127
17217
  trade_item_stock: {
17128
17218
  Row: {
17219
+ change_source: string;
17129
17220
  connection_id: string;
17130
17221
  created_at: string;
17131
17222
  id: string;
@@ -17139,6 +17230,7 @@ export type Database = {
17139
17230
  user_id: string;
17140
17231
  };
17141
17232
  Insert: {
17233
+ change_source?: string;
17142
17234
  connection_id: string;
17143
17235
  created_at?: string;
17144
17236
  id?: string;
@@ -17152,6 +17244,7 @@ export type Database = {
17152
17244
  user_id: string;
17153
17245
  };
17154
17246
  Update: {
17247
+ change_source?: string;
17155
17248
  connection_id?: string;
17156
17249
  created_at?: string;
17157
17250
  id?: string;
@@ -18340,161 +18433,6 @@ export type Database = {
18340
18433
  };
18341
18434
  Relationships: [];
18342
18435
  };
18343
- uren_offerte_regels: {
18344
- Row: {
18345
- created_at: string;
18346
- description: string;
18347
- duration_minutes: number;
18348
- id: string;
18349
- offerte_id: string;
18350
- package_id: string | null;
18351
- quantity: number;
18352
- sort_order: number;
18353
- total_cents: number;
18354
- unit_price_cents: number;
18355
- };
18356
- Insert: {
18357
- created_at?: string;
18358
- description: string;
18359
- duration_minutes?: number;
18360
- id?: string;
18361
- offerte_id: string;
18362
- package_id?: string | null;
18363
- quantity?: number;
18364
- sort_order?: number;
18365
- total_cents?: number;
18366
- unit_price_cents?: number;
18367
- };
18368
- Update: {
18369
- created_at?: string;
18370
- description?: string;
18371
- duration_minutes?: number;
18372
- id?: string;
18373
- offerte_id?: string;
18374
- package_id?: string | null;
18375
- quantity?: number;
18376
- sort_order?: number;
18377
- total_cents?: number;
18378
- unit_price_cents?: number;
18379
- };
18380
- Relationships: [
18381
- {
18382
- foreignKeyName: "uren_offerte_regels_offerte_id_fkey";
18383
- columns: ["offerte_id"];
18384
- isOneToOne: false;
18385
- referencedRelation: "uren_offertes";
18386
- referencedColumns: ["id"];
18387
- },
18388
- {
18389
- foreignKeyName: "uren_offerte_regels_package_id_fkey";
18390
- columns: ["package_id"];
18391
- isOneToOne: false;
18392
- referencedRelation: "werkbon_packages";
18393
- referencedColumns: ["id"];
18394
- }
18395
- ];
18396
- };
18397
- uren_offerte_velden: {
18398
- Row: {
18399
- created_at: string;
18400
- field_type: string;
18401
- id: string;
18402
- key: string;
18403
- label: string;
18404
- options: string[];
18405
- required: boolean;
18406
- sort_order: number;
18407
- updated_at: string;
18408
- };
18409
- Insert: {
18410
- created_at?: string;
18411
- field_type?: string;
18412
- id?: string;
18413
- key: string;
18414
- label: string;
18415
- options?: string[];
18416
- required?: boolean;
18417
- sort_order?: number;
18418
- updated_at?: string;
18419
- };
18420
- Update: {
18421
- created_at?: string;
18422
- field_type?: string;
18423
- id?: string;
18424
- key?: string;
18425
- label?: string;
18426
- options?: string[];
18427
- required?: boolean;
18428
- sort_order?: number;
18429
- updated_at?: string;
18430
- };
18431
- Relationships: [];
18432
- };
18433
- uren_offertes: {
18434
- Row: {
18435
- created_at: string;
18436
- created_by: string | null;
18437
- customer_id: string | null;
18438
- customer_name: string | null;
18439
- dynamic_fields: Json;
18440
- estimated_minutes: number;
18441
- id: string;
18442
- note: string | null;
18443
- quote_number: string | null;
18444
- status: string;
18445
- title: string;
18446
- total_excl_cents: number;
18447
- total_incl_cents: number;
18448
- updated_at: string;
18449
- valid_until: string | null;
18450
- vat_percentage: number;
18451
- };
18452
- Insert: {
18453
- created_at?: string;
18454
- created_by?: string | null;
18455
- customer_id?: string | null;
18456
- customer_name?: string | null;
18457
- dynamic_fields?: Json;
18458
- estimated_minutes?: number;
18459
- id?: string;
18460
- note?: string | null;
18461
- quote_number?: string | null;
18462
- status?: string;
18463
- title?: string;
18464
- total_excl_cents?: number;
18465
- total_incl_cents?: number;
18466
- updated_at?: string;
18467
- valid_until?: string | null;
18468
- vat_percentage?: number;
18469
- };
18470
- Update: {
18471
- created_at?: string;
18472
- created_by?: string | null;
18473
- customer_id?: string | null;
18474
- customer_name?: string | null;
18475
- dynamic_fields?: Json;
18476
- estimated_minutes?: number;
18477
- id?: string;
18478
- note?: string | null;
18479
- quote_number?: string | null;
18480
- status?: string;
18481
- title?: string;
18482
- total_excl_cents?: number;
18483
- total_incl_cents?: number;
18484
- updated_at?: string;
18485
- valid_until?: string | null;
18486
- vat_percentage?: number;
18487
- };
18488
- Relationships: [
18489
- {
18490
- foreignKeyName: "uren_offertes_customer_id_fkey";
18491
- columns: ["customer_id"];
18492
- isOneToOne: false;
18493
- referencedRelation: "itk_customers";
18494
- referencedColumns: ["id"];
18495
- }
18496
- ];
18497
- };
18498
18436
  uren_settings: {
18499
18437
  Row: {
18500
18438
  break_minutes: number;
@@ -20218,6 +20156,39 @@ export type Database = {
20218
20156
  };
20219
20157
  Relationships: [];
20220
20158
  };
20159
+ planning_overview: {
20160
+ Row: {
20161
+ assigned_monteur_id: string | null;
20162
+ assistants: Json | null;
20163
+ budget_mandate_cents: number | null;
20164
+ created_at: string | null;
20165
+ created_by: string | null;
20166
+ customer_id: string | null;
20167
+ customer_name: string | null;
20168
+ duration_minutes: number | null;
20169
+ end_at: string | null;
20170
+ id: string | null;
20171
+ needs_detail_review: boolean | null;
20172
+ notes: string | null;
20173
+ project_number: string | null;
20174
+ review_reasons: string[] | null;
20175
+ start_at: string | null;
20176
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
20177
+ updated_at: string | null;
20178
+ viewer_role: string | null;
20179
+ werkbon_id: string | null;
20180
+ work_address: string | null;
20181
+ };
20182
+ Relationships: [
20183
+ {
20184
+ foreignKeyName: "planning_items_werkbon_id_fkey";
20185
+ columns: ["werkbon_id"];
20186
+ isOneToOne: false;
20187
+ referencedRelation: "werkbonnen";
20188
+ referencedColumns: ["id"];
20189
+ }
20190
+ ];
20191
+ };
20221
20192
  product_group_stock_view: {
20222
20193
  Row: {
20223
20194
  item_count: number | null;
@@ -20832,6 +20803,18 @@ export type Database = {
20832
20803
  Args: never;
20833
20804
  Returns: number;
20834
20805
  };
20806
+ calculate_floriday_desired_stock: {
20807
+ Args: {
20808
+ p_connection_id: string;
20809
+ p_product_id: string;
20810
+ };
20811
+ Returns: {
20812
+ desired_availability: boolean;
20813
+ desired_quantity: number;
20814
+ erp_available: number;
20815
+ stock_mode: string;
20816
+ }[];
20817
+ };
20835
20818
  calculate_layer_stock: {
20836
20819
  Args: {
20837
20820
  p_product_id: string;
@@ -20884,6 +20867,8 @@ export type Database = {
20884
20867
  foutmelding: string | null;
20885
20868
  gebruiker_id: string | null;
20886
20869
  gebruiker_naam: string;
20870
+ gebruikte_bron: string | null;
20871
+ gebruikte_layout_id: string | null;
20887
20872
  gestart_op: string | null;
20888
20873
  herkomst: string | null;
20889
20874
  id: string;
@@ -20891,6 +20876,9 @@ export type Database = {
20891
20876
  is_herprint: boolean;
20892
20877
  kopieen: number;
20893
20878
  layout_id: string | null;
20879
+ lokaal_opgeslagen_op: string | null;
20880
+ lokale_pdf_fout: string | null;
20881
+ lokale_pdf_status: string | null;
20894
20882
  opgepakt_op: string | null;
20895
20883
  paginas: number;
20896
20884
  payload: Json;
@@ -20899,6 +20887,7 @@ export type Database = {
20899
20887
  pogingen: number;
20900
20888
  printer_id: string | null;
20901
20889
  render_html: string | null;
20890
+ resultaat_pdf_base64: string | null;
20902
20891
  status: Database["public"]["Enums"]["print_job_status"];
20903
20892
  updated_at: string;
20904
20893
  volgende_poging: string | null;
@@ -20920,6 +20909,7 @@ export type Database = {
20920
20909
  attempts: number;
20921
20910
  connection_id: string;
20922
20911
  created_at: string;
20912
+ dead_lettered_at: string | null;
20923
20913
  desired_available: boolean | null;
20924
20914
  gateway_attempt_id: string | null;
20925
20915
  id: string;
@@ -20928,9 +20918,13 @@ export type Database = {
20928
20918
  locked_by: string | null;
20929
20919
  next_attempt_at: string;
20930
20920
  number_of_pieces: number;
20921
+ product_id: string | null;
20931
20922
  sent_at: string | null;
20932
20923
  status: string;
20924
+ stock_mode: string | null;
20933
20925
  superseded_by: string | null;
20926
+ target_week: number | null;
20927
+ target_year: number | null;
20934
20928
  trade_item_id: string;
20935
20929
  updated_at: string;
20936
20930
  user_id: string;
@@ -20990,6 +20984,53 @@ export type Database = {
20990
20984
  isSetofReturn: true;
20991
20985
  };
20992
20986
  };
20987
+ claim_pdf_print_jobs: {
20988
+ Args: {
20989
+ _max?: number;
20990
+ };
20991
+ Returns: {
20992
+ agent_id: string | null;
20993
+ bron_job_id: string | null;
20994
+ created_at: string;
20995
+ documentnaam: string;
20996
+ documenttype: Database["public"]["Enums"]["doc_layout_type"];
20997
+ extern_job_id: string | null;
20998
+ foutmelding: string | null;
20999
+ gebruiker_id: string | null;
21000
+ gebruiker_naam: string;
21001
+ gebruikte_bron: string | null;
21002
+ gebruikte_layout_id: string | null;
21003
+ gestart_op: string | null;
21004
+ herkomst: string | null;
21005
+ id: string;
21006
+ idempotentie_sleutel: string | null;
21007
+ is_herprint: boolean;
21008
+ kopieen: number;
21009
+ layout_id: string | null;
21010
+ lokaal_opgeslagen_op: string | null;
21011
+ lokale_pdf_fout: string | null;
21012
+ lokale_pdf_status: string | null;
21013
+ opgepakt_op: string | null;
21014
+ paginas: number;
21015
+ payload: Json;
21016
+ pdf_base64: string | null;
21017
+ pdf_url: string | null;
21018
+ pogingen: number;
21019
+ printer_id: string | null;
21020
+ render_html: string | null;
21021
+ resultaat_pdf_base64: string | null;
21022
+ status: Database["public"]["Enums"]["print_job_status"];
21023
+ updated_at: string;
21024
+ volgende_poging: string | null;
21025
+ voltooid_op: string | null;
21026
+ }[];
21027
+ SetofOptions: {
21028
+ from: "*";
21029
+ to: "print_jobs";
21030
+ isOneToOne: false;
21031
+ isSetofReturn: true;
21032
+ };
21033
+ };
20993
21034
  claim_print_jobs: {
20994
21035
  Args: {
20995
21036
  _agent_id: string;
@@ -21005,6 +21046,8 @@ export type Database = {
21005
21046
  foutmelding: string | null;
21006
21047
  gebruiker_id: string | null;
21007
21048
  gebruiker_naam: string;
21049
+ gebruikte_bron: string | null;
21050
+ gebruikte_layout_id: string | null;
21008
21051
  gestart_op: string | null;
21009
21052
  herkomst: string | null;
21010
21053
  id: string;
@@ -21012,6 +21055,9 @@ export type Database = {
21012
21055
  is_herprint: boolean;
21013
21056
  kopieen: number;
21014
21057
  layout_id: string | null;
21058
+ lokaal_opgeslagen_op: string | null;
21059
+ lokale_pdf_fout: string | null;
21060
+ lokale_pdf_status: string | null;
21015
21061
  opgepakt_op: string | null;
21016
21062
  paginas: number;
21017
21063
  payload: Json;
@@ -21020,6 +21066,7 @@ export type Database = {
21020
21066
  pogingen: number;
21021
21067
  printer_id: string | null;
21022
21068
  render_html: string | null;
21069
+ resultaat_pdf_base64: string | null;
21023
21070
  status: Database["public"]["Enums"]["print_job_status"];
21024
21071
  updated_at: string;
21025
21072
  volgende_poging: string | null;
@@ -21160,6 +21207,8 @@ export type Database = {
21160
21207
  order_id: string;
21161
21208
  order_source: string;
21162
21209
  pick_date: string;
21210
+ printed_at: string;
21211
+ printed_today: boolean;
21163
21212
  status: string;
21164
21213
  }[];
21165
21214
  };
@@ -21356,6 +21405,24 @@ export type Database = {
21356
21405
  };
21357
21406
  Returns: string;
21358
21407
  };
21408
+ floriday_capture_stock_snapshot: {
21409
+ Args: never;
21410
+ Returns: number;
21411
+ };
21412
+ floriday_cleanup_stock_queue_v2: {
21413
+ Args: never;
21414
+ Returns: undefined;
21415
+ };
21416
+ floriday_compact_stock_snapshots: {
21417
+ Args: never;
21418
+ Returns: undefined;
21419
+ };
21420
+ floriday_default_owner: {
21421
+ Args: {
21422
+ p_connection_id: string;
21423
+ };
21424
+ Returns: string;
21425
+ };
21359
21426
  floriday_effective_price: {
21360
21427
  Args: {
21361
21428
  _buyer_id: string;
@@ -21373,6 +21440,34 @@ export type Database = {
21373
21440
  source_id: string;
21374
21441
  }[];
21375
21442
  };
21443
+ floriday_fill_publish_horizon: {
21444
+ Args: never;
21445
+ Returns: number;
21446
+ };
21447
+ floriday_ingest_sales_orders: {
21448
+ Args: {
21449
+ p_limit?: number;
21450
+ };
21451
+ Returns: number;
21452
+ };
21453
+ floriday_publish_horizon_weeks: {
21454
+ Args: never;
21455
+ Returns: number;
21456
+ };
21457
+ floriday_recompute_inventory: {
21458
+ Args: {
21459
+ p_connection_id: string;
21460
+ p_force?: boolean;
21461
+ p_product_id: string;
21462
+ };
21463
+ Returns: undefined;
21464
+ };
21465
+ floriday_requeue_dead_letters: {
21466
+ Args: {
21467
+ p_connection_id?: string;
21468
+ };
21469
+ Returns: number;
21470
+ };
21376
21471
  format_cart_number: {
21377
21472
  Args: {
21378
21473
  p_pick_date: string;
@@ -21589,6 +21684,131 @@ export type Database = {
21589
21684
  Args: never;
21590
21685
  Returns: string;
21591
21686
  };
21687
+ handover_get: {
21688
+ Args: {
21689
+ _module_id: string;
21690
+ };
21691
+ Returns: Json;
21692
+ };
21693
+ handover_kern_naam: {
21694
+ Args: {
21695
+ _naam: string;
21696
+ };
21697
+ Returns: string;
21698
+ };
21699
+ handover_ketenmodel: {
21700
+ Args: never;
21701
+ Returns: Json;
21702
+ };
21703
+ handover_kruisconflicten: {
21704
+ Args: never;
21705
+ Returns: Json;
21706
+ };
21707
+ handover_list: {
21708
+ Args: never;
21709
+ Returns: Json;
21710
+ };
21711
+ handover_mag_schrijven: {
21712
+ Args: {
21713
+ _module_id: string;
21714
+ };
21715
+ Returns: boolean;
21716
+ };
21717
+ handover_norm_naam: {
21718
+ Args: {
21719
+ _naam: string;
21720
+ };
21721
+ Returns: string;
21722
+ };
21723
+ handover_publish: {
21724
+ Args: {
21725
+ _bevindingen?: string;
21726
+ _bezit_tabellen?: string[];
21727
+ _conflicten_snapshot?: Json;
21728
+ _contractfuncties?: string[];
21729
+ _inhoud_md: string;
21730
+ _module_id: string;
21731
+ _module_titel: string;
21732
+ _ontbrekende_contracten?: string[];
21733
+ _samenvatting?: string;
21734
+ };
21735
+ Returns: number;
21736
+ };
21737
+ handover_publish_via_token: {
21738
+ Args: {
21739
+ _bevindingen?: string;
21740
+ _bezit_tabellen?: string[];
21741
+ _conflicten_snapshot?: Json;
21742
+ _contractfuncties?: string[];
21743
+ _inhoud_md: string;
21744
+ _module_id: string;
21745
+ _module_titel: string;
21746
+ _ontbrekende_contracten?: string[];
21747
+ _samenvatting?: string;
21748
+ _token_hash: string;
21749
+ };
21750
+ Returns: number;
21751
+ };
21752
+ handover_status: {
21753
+ Args: never;
21754
+ Returns: Json;
21755
+ };
21756
+ handover_synonym_kern: {
21757
+ Args: {
21758
+ _naam: string;
21759
+ };
21760
+ Returns: string;
21761
+ };
21762
+ handover_token_intrekken: {
21763
+ Args: {
21764
+ _id: string;
21765
+ };
21766
+ Returns: boolean;
21767
+ };
21768
+ handover_token_lijst: {
21769
+ Args: never;
21770
+ Returns: Json;
21771
+ };
21772
+ handover_token_maken: {
21773
+ Args: {
21774
+ _label?: string;
21775
+ _module_id: string;
21776
+ };
21777
+ Returns: string;
21778
+ };
21779
+ handover_update: {
21780
+ Args: {
21781
+ _bezit_tabellen?: string[];
21782
+ _contractfuncties?: string[];
21783
+ _herzieningstermijn_dagen?: number;
21784
+ _inhoud_md?: string;
21785
+ _module_id: string;
21786
+ _module_titel?: string;
21787
+ _samenvatting?: string;
21788
+ _versie: number;
21789
+ };
21790
+ Returns: boolean;
21791
+ } | {
21792
+ Args: {
21793
+ _bevindingen?: string;
21794
+ _bezit_tabellen?: string[];
21795
+ _contractfuncties?: string[];
21796
+ _herzieningstermijn_dagen?: number;
21797
+ _inhoud_md?: string;
21798
+ _module_id: string;
21799
+ _module_titel?: string;
21800
+ _ontbrekende_contracten?: string[];
21801
+ _samenvatting?: string;
21802
+ _versie: number;
21803
+ };
21804
+ Returns: boolean;
21805
+ };
21806
+ handover_versies: {
21807
+ Args: {
21808
+ _module_id: string;
21809
+ };
21810
+ Returns: Json;
21811
+ };
21592
21812
  has_module_permission: {
21593
21813
  Args: {
21594
21814
  _min: string;
@@ -21608,6 +21828,25 @@ export type Database = {
21608
21828
  Args: never;
21609
21829
  Returns: boolean;
21610
21830
  };
21831
+ instructie_get: {
21832
+ Args: {
21833
+ _sleutel: string;
21834
+ };
21835
+ Returns: Json;
21836
+ };
21837
+ instructie_list: {
21838
+ Args: never;
21839
+ Returns: Json;
21840
+ };
21841
+ instructie_publish: {
21842
+ Args: {
21843
+ _inhoud_md: string;
21844
+ _sleutel: string;
21845
+ _titel: string;
21846
+ _toelichting?: string;
21847
+ };
21848
+ Returns: number;
21849
+ };
21611
21850
  invoice_create_from_source: {
21612
21851
  Args: {
21613
21852
  _payload?: Json;
@@ -21868,6 +22107,10 @@ export type Database = {
21868
22107
  };
21869
22108
  Returns: number;
21870
22109
  };
22110
+ logistics_cancel_orphan_tasks: {
22111
+ Args: never;
22112
+ Returns: number;
22113
+ };
21871
22114
  logistics_capacity_day_check: {
21872
22115
  Args: {
21873
22116
  p_from?: string;
@@ -21888,6 +22131,25 @@ export type Database = {
21888
22131
  };
21889
22132
  Returns: number;
21890
22133
  };
22134
+ logistics_cart_index: {
22135
+ Args: {
22136
+ p_from?: string;
22137
+ p_to?: string;
22138
+ };
22139
+ Returns: {
22140
+ cart_id: string;
22141
+ cart_index: number;
22142
+ cart_label: string;
22143
+ is_shared: boolean;
22144
+ order_number: string;
22145
+ order_source: string;
22146
+ order_uuid: string;
22147
+ pick_date: string;
22148
+ printed_at: string;
22149
+ shifted: boolean;
22150
+ task_status: string;
22151
+ }[];
22152
+ };
21891
22153
  logistics_check_order_allowed: {
21892
22154
  Args: {
21893
22155
  p_lines: Json;
@@ -22036,6 +22298,17 @@ export type Database = {
22036
22298
  isSetofReturn: false;
22037
22299
  };
22038
22300
  };
22301
+ logistics_consistency_check: {
22302
+ Args: never;
22303
+ Returns: {
22304
+ agenda_carts: number;
22305
+ control_carts: number;
22306
+ ok: boolean;
22307
+ orphan_tasks: number;
22308
+ pick_date: string;
22309
+ raw_carts: number;
22310
+ }[];
22311
+ };
22039
22312
  logistics_delay_customer_email: {
22040
22313
  Args: {
22041
22314
  p_customer: string;
@@ -22061,6 +22334,12 @@ export type Database = {
22061
22334
  };
22062
22335
  Returns: string;
22063
22336
  };
22337
+ logistics_document_type_map: {
22338
+ Args: {
22339
+ _document_code: string;
22340
+ };
22341
+ Returns: Database["public"]["Enums"]["doc_layout_type"][];
22342
+ };
22064
22343
  logistics_emit_event: {
22065
22344
  Args: {
22066
22345
  p_event_type: string;
@@ -22119,6 +22398,16 @@ export type Database = {
22119
22398
  isSetofReturn: false;
22120
22399
  };
22121
22400
  };
22401
+ logistics_floriday_cart_plan: {
22402
+ Args: {
22403
+ p_order_id: string;
22404
+ };
22405
+ Returns: {
22406
+ carrier_type: string;
22407
+ idx: number;
22408
+ packages: number;
22409
+ }[];
22410
+ };
22122
22411
  logistics_floriday_claim_pushes: {
22123
22412
  Args: {
22124
22413
  _lease_seconds?: number;
@@ -22223,6 +22512,25 @@ export type Database = {
22223
22512
  };
22224
22513
  Returns: number;
22225
22514
  };
22515
+ logistics_order_overview: {
22516
+ Args: {
22517
+ p_from?: string;
22518
+ p_to?: string;
22519
+ };
22520
+ Returns: {
22521
+ cart_count: number;
22522
+ customer_name: string;
22523
+ delivery_date: string;
22524
+ order_number: string;
22525
+ order_source: string;
22526
+ order_uuid: string;
22527
+ pick_date: string;
22528
+ plant_count: number;
22529
+ printed_at: string;
22530
+ shifted: boolean;
22531
+ status: string;
22532
+ }[];
22533
+ };
22226
22534
  logistics_order_pick_day: {
22227
22535
  Args: {
22228
22536
  p_order_ref: string;
@@ -22235,6 +22543,22 @@ export type Database = {
22235
22543
  };
22236
22544
  Returns: string;
22237
22545
  };
22546
+ logistics_pick_agenda: {
22547
+ Args: {
22548
+ p_from?: string;
22549
+ p_to?: string;
22550
+ };
22551
+ Returns: {
22552
+ cart_count: number;
22553
+ in_preparation: number;
22554
+ order_count: number;
22555
+ orders: Json;
22556
+ pick_date: string;
22557
+ plant_count: number;
22558
+ ready: number;
22559
+ shifted_count: number;
22560
+ }[];
22561
+ };
22238
22562
  logistics_pick_email_purpose: {
22239
22563
  Args: never;
22240
22564
  Returns: string;
@@ -22289,6 +22613,13 @@ export type Database = {
22289
22613
  };
22290
22614
  Returns: undefined;
22291
22615
  };
22616
+ logistics_plan_floriday_order: {
22617
+ Args: {
22618
+ p_buffer_id?: string;
22619
+ p_order_id: string;
22620
+ };
22621
+ Returns: number;
22622
+ };
22292
22623
  logistics_plan_impact_orders: {
22293
22624
  Args: {
22294
22625
  p_order_id: string;
@@ -22394,6 +22725,15 @@ export type Database = {
22394
22725
  };
22395
22726
  Returns: Json;
22396
22727
  };
22728
+ logistics_resolve_pick_document: {
22729
+ Args: {
22730
+ _is_herprint: boolean;
22731
+ _queue_item_id: string;
22732
+ _session_id: string;
22733
+ _voorbeeld: boolean;
22734
+ };
22735
+ Returns: Json;
22736
+ };
22397
22737
  logistics_resolve_settings: {
22398
22738
  Args: {
22399
22739
  p_config_id: string;
@@ -22834,6 +23174,7 @@ export type Database = {
22834
23174
  };
22835
23175
  pick_enqueue_print_job: {
22836
23176
  Args: {
23177
+ _is_herprint?: boolean;
22837
23178
  _printer_id?: string;
22838
23179
  _queue_item_id: string;
22839
23180
  _session_id?: string;
@@ -22847,6 +23188,13 @@ export type Database = {
22847
23188
  };
22848
23189
  Returns: Json;
22849
23190
  };
23191
+ pick_preview_job: {
23192
+ Args: {
23193
+ _queue_item_id: string;
23194
+ _station_slug: string;
23195
+ };
23196
+ Returns: Json;
23197
+ };
22850
23198
  pick_print_job_status: {
22851
23199
  Args: {
22852
23200
  _job_id: string;
@@ -23024,6 +23372,84 @@ export type Database = {
23024
23372
  };
23025
23373
  Returns: undefined;
23026
23374
  };
23375
+ planning_cancel_item: {
23376
+ Args: {
23377
+ _id: string;
23378
+ };
23379
+ Returns: undefined;
23380
+ };
23381
+ planning_list: {
23382
+ Args: {
23383
+ _from: string;
23384
+ _to: string;
23385
+ };
23386
+ Returns: {
23387
+ assigned_monteur_id: string | null;
23388
+ assistants: Json | null;
23389
+ budget_mandate_cents: number | null;
23390
+ created_at: string | null;
23391
+ created_by: string | null;
23392
+ customer_id: string | null;
23393
+ customer_name: string | null;
23394
+ duration_minutes: number | null;
23395
+ end_at: string | null;
23396
+ id: string | null;
23397
+ needs_detail_review: boolean | null;
23398
+ notes: string | null;
23399
+ project_number: string | null;
23400
+ review_reasons: string[] | null;
23401
+ start_at: string | null;
23402
+ status: Database["public"]["Enums"]["planning_item_status"] | null;
23403
+ updated_at: string | null;
23404
+ viewer_role: string | null;
23405
+ werkbon_id: string | null;
23406
+ work_address: string | null;
23407
+ }[];
23408
+ SetofOptions: {
23409
+ from: "*";
23410
+ to: "planning_overview";
23411
+ isOneToOne: false;
23412
+ isSetofReturn: true;
23413
+ };
23414
+ };
23415
+ planning_set_assistants: {
23416
+ Args: {
23417
+ _monteur_ids: string[];
23418
+ _planning_item_id: string;
23419
+ };
23420
+ Returns: undefined;
23421
+ };
23422
+ planning_upsert_item: {
23423
+ Args: {
23424
+ _assigned_monteur_id: string;
23425
+ _end_at: string;
23426
+ _notes?: string;
23427
+ _start_at: string;
23428
+ _werkbon_id: string;
23429
+ };
23430
+ Returns: {
23431
+ action: string;
23432
+ id: string;
23433
+ }[];
23434
+ };
23435
+ print_preview_toestaan: {
23436
+ Args: {
23437
+ _max?: number;
23438
+ _queue_item_id: string;
23439
+ _station_slug: string;
23440
+ _venster_sec?: number;
23441
+ };
23442
+ Returns: Json;
23443
+ };
23444
+ print_preview_weiger: {
23445
+ Args: {
23446
+ _code: string;
23447
+ _queue_item_id: string;
23448
+ _reden: string;
23449
+ _station_slug: string;
23450
+ };
23451
+ Returns: undefined;
23452
+ };
23027
23453
  process_logistics_event: {
23028
23454
  Args: {
23029
23455
  p_event_id: string;
@@ -23141,6 +23567,14 @@ export type Database = {
23141
23567
  };
23142
23568
  Returns: undefined;
23143
23569
  };
23570
+ replace_order_carts: {
23571
+ Args: {
23572
+ p_buffer_id: string;
23573
+ p_carts: Json;
23574
+ p_order_id: string;
23575
+ };
23576
+ Returns: Json;
23577
+ };
23144
23578
  reset_floriday_sync_cursor: {
23145
23579
  Args: {
23146
23580
  p_connection_id: string;
@@ -23170,6 +23604,12 @@ export type Database = {
23170
23604
  };
23171
23605
  Returns: string;
23172
23606
  };
23607
+ resolve_print_job_printer_id: {
23608
+ Args: {
23609
+ _job: Database["public"]["Tables"]["print_jobs"]["Row"];
23610
+ };
23611
+ Returns: string;
23612
+ };
23173
23613
  resolve_product_id_for_item: {
23174
23614
  Args: {
23175
23615
  p_product_name: string;
@@ -23573,6 +24013,26 @@ export type Database = {
23573
24013
  };
23574
24014
  Returns: string[];
23575
24015
  };
24016
+ start_time_log_at: {
24017
+ Args: {
24018
+ p_clicked_at?: string;
24019
+ p_employee_id: string;
24020
+ p_start_lat?: number;
24021
+ p_start_lng?: number;
24022
+ p_type: string;
24023
+ p_work_order_id?: string;
24024
+ };
24025
+ Returns: Json;
24026
+ };
24027
+ stop_time_log: {
24028
+ Args: {
24029
+ p_employee_id: string;
24030
+ p_end_lat?: number;
24031
+ p_end_lng?: number;
24032
+ p_end_time: string;
24033
+ };
24034
+ Returns: Json;
24035
+ };
23576
24036
  switch_time_log: {
23577
24037
  Args: {
23578
24038
  p_employee_id: string;
@@ -23768,9 +24228,9 @@ type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
23768
24228
  type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
23769
24229
  export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
23770
24230
  schema: keyof DatabaseWithoutInternals;
23771
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
24231
+ }, TableName extends (DefaultSchemaTableNameOrOptions extends {
23772
24232
  schema: keyof DatabaseWithoutInternals;
23773
- } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
24233
+ } ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never) = never> = DefaultSchemaTableNameOrOptions extends {
23774
24234
  schema: keyof DatabaseWithoutInternals;
23775
24235
  } ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
23776
24236
  Row: infer R;
@@ -23779,9 +24239,9 @@ export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema[
23779
24239
  } ? R : never : never;
23780
24240
  export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
23781
24241
  schema: keyof DatabaseWithoutInternals;
23782
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
24242
+ }, TableName extends (DefaultSchemaTableNameOrOptions extends {
23783
24243
  schema: keyof DatabaseWithoutInternals;
23784
- } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
24244
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never) = never> = DefaultSchemaTableNameOrOptions extends {
23785
24245
  schema: keyof DatabaseWithoutInternals;
23786
24246
  } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
23787
24247
  Insert: infer I;
@@ -23790,9 +24250,9 @@ export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSc
23790
24250
  } ? I : never : never;
23791
24251
  export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
23792
24252
  schema: keyof DatabaseWithoutInternals;
23793
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
24253
+ }, TableName extends (DefaultSchemaTableNameOrOptions extends {
23794
24254
  schema: keyof DatabaseWithoutInternals;
23795
- } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
24255
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never) = never> = DefaultSchemaTableNameOrOptions extends {
23796
24256
  schema: keyof DatabaseWithoutInternals;
23797
24257
  } ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
23798
24258
  Update: infer U;
@@ -23801,16 +24261,16 @@ export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSc
23801
24261
  } ? U : never : never;
23802
24262
  export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
23803
24263
  schema: keyof DatabaseWithoutInternals;
23804
- }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
24264
+ }, EnumName extends (DefaultSchemaEnumNameOrOptions extends {
23805
24265
  schema: keyof DatabaseWithoutInternals;
23806
- } ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
24266
+ } ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never) = never> = DefaultSchemaEnumNameOrOptions extends {
23807
24267
  schema: keyof DatabaseWithoutInternals;
23808
24268
  } ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
23809
24269
  export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
23810
24270
  schema: keyof DatabaseWithoutInternals;
23811
- }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
24271
+ }, CompositeTypeName extends (PublicCompositeTypeNameOrOptions extends {
23812
24272
  schema: keyof DatabaseWithoutInternals;
23813
- } ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
24273
+ } ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never) = never> = PublicCompositeTypeNameOrOptions extends {
23814
24274
  schema: keyof DatabaseWithoutInternals;
23815
24275
  } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
23816
24276
  export declare const Constants: {