@flowselections/floriday-klanten-module 1.0.97 → 1.0.98

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.
@@ -7,6 +7,331 @@ export type Database = {
7
7
  };
8
8
  public: {
9
9
  Tables: {
10
+ accounting_exchange_log: {
11
+ Row: {
12
+ created_at: string;
13
+ entity_id: string | null;
14
+ entity_type: string | null;
15
+ id: string;
16
+ ok: boolean;
17
+ outbox_id: string | null;
18
+ profile_id: string | null;
19
+ request: string | null;
20
+ response: string | null;
21
+ summary: string;
22
+ };
23
+ Insert: {
24
+ created_at?: string;
25
+ entity_id?: string | null;
26
+ entity_type?: string | null;
27
+ id?: string;
28
+ ok: boolean;
29
+ outbox_id?: string | null;
30
+ profile_id?: string | null;
31
+ request?: string | null;
32
+ response?: string | null;
33
+ summary: string;
34
+ };
35
+ Update: {
36
+ created_at?: string;
37
+ entity_id?: string | null;
38
+ entity_type?: string | null;
39
+ id?: string;
40
+ ok?: boolean;
41
+ outbox_id?: string | null;
42
+ profile_id?: string | null;
43
+ request?: string | null;
44
+ response?: string | null;
45
+ summary?: string;
46
+ };
47
+ Relationships: [
48
+ {
49
+ foreignKeyName: "accounting_exchange_log_profile_id_fkey";
50
+ columns: ["profile_id"];
51
+ isOneToOne: false;
52
+ referencedRelation: "accounting_profiles";
53
+ referencedColumns: ["id"];
54
+ }
55
+ ];
56
+ };
57
+ accounting_links: {
58
+ Row: {
59
+ administration_code: string;
60
+ base_snapshot: Json | null;
61
+ created_at: string;
62
+ entity_id: string;
63
+ entity_type: string;
64
+ external_code: string | null;
65
+ external_id: string | null;
66
+ external_scope: string | null;
67
+ external_version: string | null;
68
+ id: string;
69
+ last_hash: string | null;
70
+ missing_since: string | null;
71
+ present: boolean;
72
+ profile_id: string;
73
+ provider: string;
74
+ source: string;
75
+ sync_error: string | null;
76
+ synced_at: string | null;
77
+ updated_at: string;
78
+ };
79
+ Insert: {
80
+ administration_code: string;
81
+ base_snapshot?: Json | null;
82
+ created_at?: string;
83
+ entity_id: string;
84
+ entity_type: string;
85
+ external_code?: string | null;
86
+ external_id?: string | null;
87
+ external_scope?: string | null;
88
+ external_version?: string | null;
89
+ id?: string;
90
+ last_hash?: string | null;
91
+ missing_since?: string | null;
92
+ present?: boolean;
93
+ profile_id: string;
94
+ provider: string;
95
+ source?: string;
96
+ sync_error?: string | null;
97
+ synced_at?: string | null;
98
+ updated_at?: string;
99
+ };
100
+ Update: {
101
+ administration_code?: string;
102
+ base_snapshot?: Json | null;
103
+ created_at?: string;
104
+ entity_id?: string;
105
+ entity_type?: string;
106
+ external_code?: string | null;
107
+ external_id?: string | null;
108
+ external_scope?: string | null;
109
+ external_version?: string | null;
110
+ id?: string;
111
+ last_hash?: string | null;
112
+ missing_since?: string | null;
113
+ present?: boolean;
114
+ profile_id?: string;
115
+ provider?: string;
116
+ source?: string;
117
+ sync_error?: string | null;
118
+ synced_at?: string | null;
119
+ updated_at?: string;
120
+ };
121
+ Relationships: [
122
+ {
123
+ foreignKeyName: "accounting_links_profile_id_fkey";
124
+ columns: ["profile_id"];
125
+ isOneToOne: false;
126
+ referencedRelation: "accounting_profiles";
127
+ referencedColumns: ["id"];
128
+ }
129
+ ];
130
+ };
131
+ accounting_mappings: {
132
+ Row: {
133
+ confirmed_at: string | null;
134
+ confirmed_by: string | null;
135
+ created_at: string;
136
+ erp_value: string;
137
+ external_code: string | null;
138
+ external_id: string | null;
139
+ id: string;
140
+ kind: string;
141
+ label: string | null;
142
+ profile_id: string;
143
+ updated_at: string;
144
+ };
145
+ Insert: {
146
+ confirmed_at?: string | null;
147
+ confirmed_by?: string | null;
148
+ created_at?: string;
149
+ erp_value: string;
150
+ external_code?: string | null;
151
+ external_id?: string | null;
152
+ id?: string;
153
+ kind: string;
154
+ label?: string | null;
155
+ profile_id: string;
156
+ updated_at?: string;
157
+ };
158
+ Update: {
159
+ confirmed_at?: string | null;
160
+ confirmed_by?: string | null;
161
+ created_at?: string;
162
+ erp_value?: string;
163
+ external_code?: string | null;
164
+ external_id?: string | null;
165
+ id?: string;
166
+ kind?: string;
167
+ label?: string | null;
168
+ profile_id?: string;
169
+ updated_at?: string;
170
+ };
171
+ Relationships: [
172
+ {
173
+ foreignKeyName: "accounting_mappings_profile_id_fkey";
174
+ columns: ["profile_id"];
175
+ isOneToOne: false;
176
+ referencedRelation: "accounting_profiles";
177
+ referencedColumns: ["id"];
178
+ }
179
+ ];
180
+ };
181
+ accounting_outbox: {
182
+ Row: {
183
+ action: string;
184
+ attempts: number;
185
+ claimed_at: string | null;
186
+ created_at: string;
187
+ entity_id: string;
188
+ entity_type: string;
189
+ error_kind: string | null;
190
+ id: string;
191
+ idem_key: string;
192
+ last_error: string | null;
193
+ next_attempt_at: string;
194
+ payload: Json | null;
195
+ priority: number;
196
+ profile_id: string;
197
+ status: string;
198
+ updated_at: string;
199
+ };
200
+ Insert: {
201
+ action: string;
202
+ attempts?: number;
203
+ claimed_at?: string | null;
204
+ created_at?: string;
205
+ entity_id: string;
206
+ entity_type: string;
207
+ error_kind?: string | null;
208
+ id?: string;
209
+ idem_key: string;
210
+ last_error?: string | null;
211
+ next_attempt_at?: string;
212
+ payload?: Json | null;
213
+ priority?: number;
214
+ profile_id: string;
215
+ status?: string;
216
+ updated_at?: string;
217
+ };
218
+ Update: {
219
+ action?: string;
220
+ attempts?: number;
221
+ claimed_at?: string | null;
222
+ created_at?: string;
223
+ entity_id?: string;
224
+ entity_type?: string;
225
+ error_kind?: string | null;
226
+ id?: string;
227
+ idem_key?: string;
228
+ last_error?: string | null;
229
+ next_attempt_at?: string;
230
+ payload?: Json | null;
231
+ priority?: number;
232
+ profile_id?: string;
233
+ status?: string;
234
+ updated_at?: string;
235
+ };
236
+ Relationships: [
237
+ {
238
+ foreignKeyName: "accounting_outbox_profile_id_fkey";
239
+ columns: ["profile_id"];
240
+ isOneToOne: false;
241
+ referencedRelation: "accounting_profiles";
242
+ referencedColumns: ["id"];
243
+ }
244
+ ];
245
+ };
246
+ accounting_profile_events: {
247
+ Row: {
248
+ actor: string | null;
249
+ after: Json;
250
+ before: Json | null;
251
+ created_at: string;
252
+ event: string;
253
+ id: string;
254
+ profile_id: string;
255
+ };
256
+ Insert: {
257
+ actor?: string | null;
258
+ after: Json;
259
+ before?: Json | null;
260
+ created_at?: string;
261
+ event: string;
262
+ id?: string;
263
+ profile_id: string;
264
+ };
265
+ Update: {
266
+ actor?: string | null;
267
+ after?: Json;
268
+ before?: Json | null;
269
+ created_at?: string;
270
+ event?: string;
271
+ id?: string;
272
+ profile_id?: string;
273
+ };
274
+ Relationships: [
275
+ {
276
+ foreignKeyName: "accounting_profile_events_profile_id_fkey";
277
+ columns: ["profile_id"];
278
+ isOneToOne: false;
279
+ referencedRelation: "accounting_profiles";
280
+ referencedColumns: ["id"];
281
+ }
282
+ ];
283
+ };
284
+ accounting_profiles: {
285
+ Row: {
286
+ administration_code: string;
287
+ chosen_at: string;
288
+ chosen_by: string | null;
289
+ connection_ref: string;
290
+ created_at: string;
291
+ environment: string | null;
292
+ id: string;
293
+ is_active: boolean;
294
+ notes: string | null;
295
+ provider: string;
296
+ source: string;
297
+ status: string;
298
+ updated_at: string;
299
+ write_enabled: boolean;
300
+ };
301
+ Insert: {
302
+ administration_code: string;
303
+ chosen_at?: string;
304
+ chosen_by?: string | null;
305
+ connection_ref: string;
306
+ created_at?: string;
307
+ environment?: string | null;
308
+ id?: string;
309
+ is_active?: boolean;
310
+ notes?: string | null;
311
+ provider: string;
312
+ source?: string;
313
+ status?: string;
314
+ updated_at?: string;
315
+ write_enabled?: boolean;
316
+ };
317
+ Update: {
318
+ administration_code?: string;
319
+ chosen_at?: string;
320
+ chosen_by?: string | null;
321
+ connection_ref?: string;
322
+ created_at?: string;
323
+ environment?: string | null;
324
+ id?: string;
325
+ is_active?: boolean;
326
+ notes?: string | null;
327
+ provider?: string;
328
+ source?: string;
329
+ status?: string;
330
+ updated_at?: string;
331
+ write_enabled?: boolean;
332
+ };
333
+ Relationships: [];
334
+ };
10
335
  afh_shell_settings: {
11
336
  Row: {
12
337
  changed_at: string | null;
@@ -30391,6 +30716,51 @@ export type Database = {
30391
30716
  };
30392
30717
  Relationships: [];
30393
30718
  };
30719
+ verkoop_inhaal_items: {
30720
+ Row: {
30721
+ aangevraagd_at: string;
30722
+ categorie: string;
30723
+ created_at: string;
30724
+ melding: string | null;
30725
+ order_id: string | null;
30726
+ pogingen: number;
30727
+ run_id: string;
30728
+ sales_order_id: string;
30729
+ sinds: string;
30730
+ status: string;
30731
+ updated_at: string;
30732
+ verwerkt_at: string | null;
30733
+ };
30734
+ Insert: {
30735
+ aangevraagd_at?: string;
30736
+ categorie: string;
30737
+ created_at?: string;
30738
+ melding?: string | null;
30739
+ order_id?: string | null;
30740
+ pogingen?: number;
30741
+ run_id: string;
30742
+ sales_order_id: string;
30743
+ sinds: string;
30744
+ status?: string;
30745
+ updated_at?: string;
30746
+ verwerkt_at?: string | null;
30747
+ };
30748
+ Update: {
30749
+ aangevraagd_at?: string;
30750
+ categorie?: string;
30751
+ created_at?: string;
30752
+ melding?: string | null;
30753
+ order_id?: string | null;
30754
+ pogingen?: number;
30755
+ run_id?: string;
30756
+ sales_order_id?: string;
30757
+ sinds?: string;
30758
+ status?: string;
30759
+ updated_at?: string;
30760
+ verwerkt_at?: string | null;
30761
+ };
30762
+ Relationships: [];
30763
+ };
30394
30764
  verkoop_klok_events: {
30395
30765
  Row: {
30396
30766
  actie: string;
@@ -34585,6 +34955,12 @@ export type Database = {
34585
34955
  };
34586
34956
  Returns: Json;
34587
34957
  };
34958
+ _logistics_order_karren_vast: {
34959
+ Args: {
34960
+ p_order_id: string;
34961
+ };
34962
+ Returns: boolean;
34963
+ };
34588
34964
  _mailbox_norm: {
34589
34965
  Args: {
34590
34966
  p: string;
@@ -34687,6 +35063,26 @@ export type Database = {
34687
35063
  };
34688
35064
  Returns: undefined;
34689
35065
  };
35066
+ _productie_order_plan: {
35067
+ Args: {
35068
+ p_aanmaken: boolean;
35069
+ p_aantal: number;
35070
+ p_product_id: string;
35071
+ };
35072
+ Returns: {
35073
+ aantal: number;
35074
+ naam: string;
35075
+ product_id: string;
35076
+ trade_item_key: string;
35077
+ }[];
35078
+ };
35079
+ _productie_order_sleutel: {
35080
+ Args: {
35081
+ p_aanmaken: boolean;
35082
+ p_ref: string;
35083
+ };
35084
+ Returns: string;
35085
+ };
34690
35086
  _productie_order_verwerken_kern: {
34691
35087
  Args: {
34692
35088
  p_bron: Json;
@@ -35335,6 +35731,34 @@ export type Database = {
35335
35731
  Args: never;
35336
35732
  Returns: number;
35337
35733
  };
35734
+ boekhoud_vertaal_ensure_defaults: {
35735
+ Args: never;
35736
+ Returns: Json;
35737
+ };
35738
+ boekhoud_vertaal_install_check: {
35739
+ Args: never;
35740
+ Returns: Json;
35741
+ };
35742
+ boekhoud_vertaal_is_beheerder: {
35743
+ Args: never;
35744
+ Returns: boolean;
35745
+ };
35746
+ boekhoud_vertaal_is_server: {
35747
+ Args: never;
35748
+ Returns: boolean;
35749
+ };
35750
+ boekhoud_vertaal_prune_log: {
35751
+ Args: {
35752
+ p_days?: number;
35753
+ };
35754
+ Returns: number;
35755
+ };
35756
+ boekhoud_vertaal_toegang: {
35757
+ Args: {
35758
+ p_niveau: string;
35759
+ };
35760
+ Returns: undefined;
35761
+ };
35338
35762
  calculate_floriday_desired_stock: {
35339
35763
  Args: {
35340
35764
  p_connection_id: string;
@@ -35448,6 +35872,36 @@ export type Database = {
35448
35872
  };
35449
35873
  Returns: Json;
35450
35874
  };
35875
+ claim_accounting_outbox_batch: {
35876
+ Args: {
35877
+ p_entity_type: string;
35878
+ p_limit?: number;
35879
+ };
35880
+ Returns: {
35881
+ action: string;
35882
+ attempts: number;
35883
+ claimed_at: string | null;
35884
+ created_at: string;
35885
+ entity_id: string;
35886
+ entity_type: string;
35887
+ error_kind: string | null;
35888
+ id: string;
35889
+ idem_key: string;
35890
+ last_error: string | null;
35891
+ next_attempt_at: string;
35892
+ payload: Json | null;
35893
+ priority: number;
35894
+ profile_id: string;
35895
+ status: string;
35896
+ updated_at: string;
35897
+ }[];
35898
+ SetofOptions: {
35899
+ from: "*";
35900
+ to: "accounting_outbox";
35901
+ isOneToOne: false;
35902
+ isSetofReturn: true;
35903
+ };
35904
+ };
35451
35905
  claim_cloud_print_jobs: {
35452
35906
  Args: {
35453
35907
  _max?: number;
@@ -41273,6 +41727,12 @@ export type Database = {
41273
41727
  };
41274
41728
  Returns: Json;
41275
41729
  };
41730
+ logistics_order_is_backfill: {
41731
+ Args: {
41732
+ p_order_id: string;
41733
+ };
41734
+ Returns: boolean;
41735
+ };
41276
41736
  logistics_order_is_backlog: {
41277
41737
  Args: {
41278
41738
  p_order_id: string;
@@ -42658,6 +43118,10 @@ export type Database = {
42658
43118
  };
42659
43119
  Returns: Json;
42660
43120
  };
43121
+ logistics_schema_versie: {
43122
+ Args: never;
43123
+ Returns: string;
43124
+ };
42661
43125
  logistics_set_components_scaled: {
42662
43126
  Args: {
42663
43127
  p_order_item_id: string;
@@ -46388,6 +46852,13 @@ export type Database = {
46388
46852
  };
46389
46853
  Returns: Json;
46390
46854
  };
46855
+ productie_order_voorbeeld: {
46856
+ Args: {
46857
+ p_aantal: number;
46858
+ p_product_id: string;
46859
+ };
46860
+ Returns: Json;
46861
+ };
46391
46862
  productie_orders_lijst: {
46392
46863
  Args: {
46393
46864
  p_limit?: number;
@@ -49033,12 +49504,29 @@ export type Database = {
49033
49504
  opm: string;
49034
49505
  }[];
49035
49506
  };
49507
+ verkoop_inhaal_ondersteund: {
49508
+ Args: never;
49509
+ Returns: Json;
49510
+ };
49036
49511
  verkoop_inhaal_preview: {
49037
49512
  Args: {
49038
49513
  p_sinds: string;
49039
49514
  };
49040
49515
  Returns: Json;
49041
49516
  };
49517
+ verkoop_inhaal_status: {
49518
+ Args: {
49519
+ p_run_id?: string;
49520
+ };
49521
+ Returns: Json;
49522
+ };
49523
+ verkoop_inhaal_uitvoeren: {
49524
+ Args: {
49525
+ p_max?: number;
49526
+ p_sinds: string;
49527
+ };
49528
+ Returns: Json;
49529
+ };
49042
49530
  verkoop_insert_manual_order: {
49043
49531
  Args: {
49044
49532
  p_idempotency_key: string;
@@ -49708,6 +50196,10 @@ export type Database = {
49708
50196
  };
49709
50197
  Returns: undefined;
49710
50198
  };
50199
+ voorraad_ingest_taak_status: {
50200
+ Args: never;
50201
+ Returns: Json;
50202
+ };
49711
50203
  voorraad_install_check: {
49712
50204
  Args: never;
49713
50205
  Returns: Json;
@@ -49831,6 +50323,12 @@ export type Database = {
49831
50323
  };
49832
50324
  Returns: boolean;
49833
50325
  };
50326
+ voorraad_order_is_backfill: {
50327
+ Args: {
50328
+ p_order_id: string;
50329
+ };
50330
+ Returns: boolean;
50331
+ };
49834
50332
  voorraad_order_terugdraaien: {
49835
50333
  Args: {
49836
50334
  p_order_id: string;
@@ -49935,6 +50433,16 @@ export type Database = {
49935
50433
  Args: never;
49936
50434
  Returns: Json;
49937
50435
  };
50436
+ voorraad_taak_fout_tekst: {
50437
+ Args: {
50438
+ p_fout: string;
50439
+ };
50440
+ Returns: string;
50441
+ };
50442
+ voorraad_taken_status: {
50443
+ Args: never;
50444
+ Returns: Json;
50445
+ };
49938
50446
  voorraad_telmoment_lijst: {
49939
50447
  Args: {
49940
50448
  p_keys?: string[];