@flowselections/floriday-klanten-module 1.0.11 → 1.0.12

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.
@@ -2804,6 +2804,7 @@ export type Database = {
2804
2804
  };
2805
2805
  floricode_sync_state: {
2806
2806
  Row: {
2807
+ cursor_skip: number;
2807
2808
  error_message: string | null;
2808
2809
  last_change_date_time: string | null;
2809
2810
  last_sequence_number: number;
@@ -2813,6 +2814,7 @@ export type Database = {
2813
2814
  updated_at: string;
2814
2815
  };
2815
2816
  Insert: {
2817
+ cursor_skip?: number;
2816
2818
  error_message?: string | null;
2817
2819
  last_change_date_time?: string | null;
2818
2820
  last_sequence_number?: number;
@@ -2822,6 +2824,7 @@ export type Database = {
2822
2824
  updated_at?: string;
2823
2825
  };
2824
2826
  Update: {
2827
+ cursor_skip?: number;
2825
2828
  error_message?: string | null;
2826
2829
  last_change_date_time?: string | null;
2827
2830
  last_sequence_number?: number;
@@ -5260,6 +5263,97 @@ export type Database = {
5260
5263
  };
5261
5264
  Relationships: [];
5262
5265
  };
5266
+ manufacture_product_components: {
5267
+ Row: {
5268
+ component_type: string;
5269
+ created_at: string;
5270
+ id: string;
5271
+ manufacture_product_id: string;
5272
+ product_group_id: string | null;
5273
+ quantity: number;
5274
+ trade_item_id: string | null;
5275
+ unit: string;
5276
+ };
5277
+ Insert: {
5278
+ component_type: string;
5279
+ created_at?: string;
5280
+ id?: string;
5281
+ manufacture_product_id: string;
5282
+ product_group_id?: string | null;
5283
+ quantity?: number;
5284
+ trade_item_id?: string | null;
5285
+ unit?: string;
5286
+ };
5287
+ Update: {
5288
+ component_type?: string;
5289
+ created_at?: string;
5290
+ id?: string;
5291
+ manufacture_product_id?: string;
5292
+ product_group_id?: string | null;
5293
+ quantity?: number;
5294
+ trade_item_id?: string | null;
5295
+ unit?: string;
5296
+ };
5297
+ Relationships: [
5298
+ {
5299
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5300
+ columns: ["manufacture_product_id"];
5301
+ isOneToOne: false;
5302
+ referencedRelation: "manufacture_product_possible_stock_view";
5303
+ referencedColumns: ["manufacture_product_id"];
5304
+ },
5305
+ {
5306
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5307
+ columns: ["manufacture_product_id"];
5308
+ isOneToOne: false;
5309
+ referencedRelation: "manufacture_products";
5310
+ referencedColumns: ["id"];
5311
+ },
5312
+ {
5313
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
5314
+ columns: ["product_group_id"];
5315
+ isOneToOne: false;
5316
+ referencedRelation: "product_groups";
5317
+ referencedColumns: ["id"];
5318
+ }
5319
+ ];
5320
+ };
5321
+ manufacture_products: {
5322
+ Row: {
5323
+ created_at: string;
5324
+ description: string | null;
5325
+ id: string;
5326
+ is_active: boolean;
5327
+ name: string;
5328
+ produced_stock: number;
5329
+ product_code: string;
5330
+ tenant_id: string;
5331
+ updated_at: string;
5332
+ };
5333
+ Insert: {
5334
+ created_at?: string;
5335
+ description?: string | null;
5336
+ id?: string;
5337
+ is_active?: boolean;
5338
+ name: string;
5339
+ produced_stock?: number;
5340
+ product_code: string;
5341
+ tenant_id: string;
5342
+ updated_at?: string;
5343
+ };
5344
+ Update: {
5345
+ created_at?: string;
5346
+ description?: string | null;
5347
+ id?: string;
5348
+ is_active?: boolean;
5349
+ name?: string;
5350
+ produced_stock?: number;
5351
+ product_code?: string;
5352
+ tenant_id?: string;
5353
+ updated_at?: string;
5354
+ };
5355
+ Relationships: [];
5356
+ };
5263
5357
  monteurs: {
5264
5358
  Row: {
5265
5359
  avatar_url: string | null;
@@ -6252,6 +6346,68 @@ export type Database = {
6252
6346
  };
6253
6347
  Relationships: [];
6254
6348
  };
6349
+ product_group_items: {
6350
+ Row: {
6351
+ created_at: string;
6352
+ id: string;
6353
+ product_group_id: string;
6354
+ quantity: number;
6355
+ trade_item_id: string;
6356
+ };
6357
+ Insert: {
6358
+ created_at?: string;
6359
+ id?: string;
6360
+ product_group_id: string;
6361
+ quantity?: number;
6362
+ trade_item_id: string;
6363
+ };
6364
+ Update: {
6365
+ created_at?: string;
6366
+ id?: string;
6367
+ product_group_id?: string;
6368
+ quantity?: number;
6369
+ trade_item_id?: string;
6370
+ };
6371
+ Relationships: [
6372
+ {
6373
+ foreignKeyName: "product_group_items_product_group_id_fkey";
6374
+ columns: ["product_group_id"];
6375
+ isOneToOne: false;
6376
+ referencedRelation: "product_groups";
6377
+ referencedColumns: ["id"];
6378
+ }
6379
+ ];
6380
+ };
6381
+ product_groups: {
6382
+ Row: {
6383
+ created_at: string;
6384
+ description: string | null;
6385
+ id: string;
6386
+ is_active: boolean;
6387
+ name: string;
6388
+ tenant_id: string;
6389
+ updated_at: string;
6390
+ };
6391
+ Insert: {
6392
+ created_at?: string;
6393
+ description?: string | null;
6394
+ id?: string;
6395
+ is_active?: boolean;
6396
+ name: string;
6397
+ tenant_id: string;
6398
+ updated_at?: string;
6399
+ };
6400
+ Update: {
6401
+ created_at?: string;
6402
+ description?: string | null;
6403
+ id?: string;
6404
+ is_active?: boolean;
6405
+ name?: string;
6406
+ tenant_id?: string;
6407
+ updated_at?: string;
6408
+ };
6409
+ Relationships: [];
6410
+ };
6255
6411
  products: {
6256
6412
  Row: {
6257
6413
  barcode: string | null;
@@ -7453,6 +7609,48 @@ export type Database = {
7453
7609
  };
7454
7610
  Relationships: [];
7455
7611
  };
7612
+ trade_item_stock: {
7613
+ Row: {
7614
+ connection_id: string;
7615
+ created_at: string;
7616
+ id: string;
7617
+ incoming_stock: number;
7618
+ minimum_stock: number;
7619
+ notes: string | null;
7620
+ physical_stock: number;
7621
+ reserved_stock: number;
7622
+ trade_item_key: string;
7623
+ updated_at: string;
7624
+ user_id: string;
7625
+ };
7626
+ Insert: {
7627
+ connection_id: string;
7628
+ created_at?: string;
7629
+ id?: string;
7630
+ incoming_stock?: number;
7631
+ minimum_stock?: number;
7632
+ notes?: string | null;
7633
+ physical_stock?: number;
7634
+ reserved_stock?: number;
7635
+ trade_item_key: string;
7636
+ updated_at?: string;
7637
+ user_id: string;
7638
+ };
7639
+ Update: {
7640
+ connection_id?: string;
7641
+ created_at?: string;
7642
+ id?: string;
7643
+ incoming_stock?: number;
7644
+ minimum_stock?: number;
7645
+ notes?: string | null;
7646
+ physical_stock?: number;
7647
+ reserved_stock?: number;
7648
+ trade_item_key?: string;
7649
+ updated_at?: string;
7650
+ user_id?: string;
7651
+ };
7652
+ Relationships: [];
7653
+ };
7456
7654
  twinfield_connections: {
7457
7655
  Row: {
7458
7656
  access_token: string | null;
@@ -8659,6 +8857,37 @@ export type Database = {
8659
8857
  };
8660
8858
  Relationships: [];
8661
8859
  };
8860
+ manufacture_product_possible_stock_view: {
8861
+ Row: {
8862
+ component_count: number | null;
8863
+ manufacture_product_id: string | null;
8864
+ possible_stock: number | null;
8865
+ };
8866
+ Relationships: [];
8867
+ };
8868
+ product_group_stock_view: {
8869
+ Row: {
8870
+ item_count: number | null;
8871
+ product_group_id: string | null;
8872
+ total_stock: number | null;
8873
+ };
8874
+ Relationships: [
8875
+ {
8876
+ foreignKeyName: "product_group_items_product_group_id_fkey";
8877
+ columns: ["product_group_id"];
8878
+ isOneToOne: false;
8879
+ referencedRelation: "product_groups";
8880
+ referencedColumns: ["id"];
8881
+ }
8882
+ ];
8883
+ };
8884
+ trade_item_stock_view: {
8885
+ Row: {
8886
+ stock: number | null;
8887
+ trade_item_id: string | null;
8888
+ };
8889
+ Relationships: [];
8890
+ };
8662
8891
  v_external_customers_exact: {
8663
8892
  Row: {
8664
8893
  account_number: string | null;
@@ -9239,6 +9468,12 @@ export type Database = {
9239
9468
  row_count: number;
9240
9469
  }[];
9241
9470
  };
9471
+ refresh_floricode_derived_for_product: {
9472
+ Args: {
9473
+ p_product_code: string;
9474
+ };
9475
+ Returns: number;
9476
+ };
9242
9477
  reset_floriday_sync_cursor: {
9243
9478
  Args: {
9244
9479
  p_connection_id: string;