@meerkapp/wms-contracts 0.3.0-beta.1 → 0.3.0-beta.3

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.
package/dist/index.d.ts CHANGED
@@ -22171,7 +22171,6 @@ declare const CharacteristicSchema: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodOb
22171
22171
  label: z$1.ZodString;
22172
22172
  type: z$1.ZodLiteral<"number">;
22173
22173
  required: z$1.ZodDefault<z$1.ZodBoolean>;
22174
- sku_dependent: z$1.ZodDefault<z$1.ZodBoolean>;
22175
22174
  validation: z$1.ZodOptional<z$1.ZodObject<{
22176
22175
  min: z$1.ZodOptional<z$1.ZodNumber>;
22177
22176
  max: z$1.ZodOptional<z$1.ZodNumber>;
@@ -22194,7 +22193,6 @@ declare const CharacteristicSchema: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodOb
22194
22193
  key: string;
22195
22194
  label: string;
22196
22195
  required: boolean;
22197
- sku_dependent: boolean;
22198
22196
  validation?: {
22199
22197
  min?: number | undefined;
22200
22198
  max?: number | undefined;
@@ -22211,7 +22209,6 @@ declare const CharacteristicSchema: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodOb
22211
22209
  max?: number | undefined;
22212
22210
  } | undefined;
22213
22211
  required?: boolean | undefined;
22214
- sku_dependent?: boolean | undefined;
22215
22212
  ui?: {
22216
22213
  suffix?: string | undefined;
22217
22214
  } | undefined;
@@ -22220,7 +22217,6 @@ declare const CharacteristicSchema: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodOb
22220
22217
  label: z$1.ZodString;
22221
22218
  type: z$1.ZodLiteral<"select">;
22222
22219
  required: z$1.ZodDefault<z$1.ZodBoolean>;
22223
- sku_dependent: z$1.ZodDefault<z$1.ZodBoolean>;
22224
22220
  options: z$1.ZodArray<z$1.ZodObject<{
22225
22221
  label: z$1.ZodString;
22226
22222
  value: z$1.ZodString;
@@ -22240,7 +22236,6 @@ declare const CharacteristicSchema: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodOb
22240
22236
  key: string;
22241
22237
  label: string;
22242
22238
  required: boolean;
22243
- sku_dependent: boolean;
22244
22239
  }, {
22245
22240
  options: {
22246
22241
  value: string;
@@ -22250,14 +22245,48 @@ declare const CharacteristicSchema: z$1.ZodDiscriminatedUnion<"type", [z$1.ZodOb
22250
22245
  key: string;
22251
22246
  label: string;
22252
22247
  required?: boolean | undefined;
22253
- sku_dependent?: boolean | undefined;
22248
+ }>, z$1.ZodObject<{
22249
+ key: z$1.ZodString;
22250
+ label: z$1.ZodString;
22251
+ type: z$1.ZodLiteral<"toggle">;
22252
+ required: z$1.ZodDefault<z$1.ZodBoolean>;
22253
+ true_label: z$1.ZodString;
22254
+ false_label: z$1.ZodString;
22255
+ }, "strip", z$1.ZodTypeAny, {
22256
+ type: "toggle";
22257
+ key: string;
22258
+ label: string;
22259
+ required: boolean;
22260
+ true_label: string;
22261
+ false_label: string;
22262
+ }, {
22263
+ type: "toggle";
22264
+ key: string;
22265
+ label: string;
22266
+ true_label: string;
22267
+ false_label: string;
22268
+ required?: boolean | undefined;
22269
+ }>, z$1.ZodObject<{
22270
+ key: z$1.ZodString;
22271
+ label: z$1.ZodString;
22272
+ type: z$1.ZodLiteral<"checkbox">;
22273
+ required: z$1.ZodDefault<z$1.ZodBoolean>;
22274
+ }, "strip", z$1.ZodTypeAny, {
22275
+ type: "checkbox";
22276
+ key: string;
22277
+ label: string;
22278
+ required: boolean;
22279
+ }, {
22280
+ type: "checkbox";
22281
+ key: string;
22282
+ label: string;
22283
+ required?: boolean | undefined;
22254
22284
  }>]>;
22255
22285
  declare const CharacteristicsSchemeSchema: z$1.ZodArray<z$1.ZodDiscriminatedUnion<"type", [z$1.ZodObject<{
22256
22286
  key: z$1.ZodString;
22257
22287
  label: z$1.ZodString;
22258
22288
  type: z$1.ZodLiteral<"number">;
22259
22289
  required: z$1.ZodDefault<z$1.ZodBoolean>;
22260
- sku_dependent: z$1.ZodDefault<z$1.ZodBoolean>;
22261
22290
  validation: z$1.ZodOptional<z$1.ZodObject<{
22262
22291
  min: z$1.ZodOptional<z$1.ZodNumber>;
22263
22292
  max: z$1.ZodOptional<z$1.ZodNumber>;
@@ -22280,7 +22309,6 @@ declare const CharacteristicsSchemeSchema: z$1.ZodArray<z$1.ZodDiscriminatedUnio
22280
22309
  key: string;
22281
22310
  label: string;
22282
22311
  required: boolean;
22283
- sku_dependent: boolean;
22284
22312
  validation?: {
22285
22313
  min?: number | undefined;
22286
22314
  max?: number | undefined;
@@ -22297,7 +22325,6 @@ declare const CharacteristicsSchemeSchema: z$1.ZodArray<z$1.ZodDiscriminatedUnio
22297
22325
  max?: number | undefined;
22298
22326
  } | undefined;
22299
22327
  required?: boolean | undefined;
22300
- sku_dependent?: boolean | undefined;
22301
22328
  ui?: {
22302
22329
  suffix?: string | undefined;
22303
22330
  } | undefined;
@@ -22306,7 +22333,6 @@ declare const CharacteristicsSchemeSchema: z$1.ZodArray<z$1.ZodDiscriminatedUnio
22306
22333
  label: z$1.ZodString;
22307
22334
  type: z$1.ZodLiteral<"select">;
22308
22335
  required: z$1.ZodDefault<z$1.ZodBoolean>;
22309
- sku_dependent: z$1.ZodDefault<z$1.ZodBoolean>;
22310
22336
  options: z$1.ZodArray<z$1.ZodObject<{
22311
22337
  label: z$1.ZodString;
22312
22338
  value: z$1.ZodString;
@@ -22326,7 +22352,6 @@ declare const CharacteristicsSchemeSchema: z$1.ZodArray<z$1.ZodDiscriminatedUnio
22326
22352
  key: string;
22327
22353
  label: string;
22328
22354
  required: boolean;
22329
- sku_dependent: boolean;
22330
22355
  }, {
22331
22356
  options: {
22332
22357
  value: string;
@@ -22336,13 +22361,47 @@ declare const CharacteristicsSchemeSchema: z$1.ZodArray<z$1.ZodDiscriminatedUnio
22336
22361
  key: string;
22337
22362
  label: string;
22338
22363
  required?: boolean | undefined;
22339
- sku_dependent?: boolean | undefined;
22364
+ }>, z$1.ZodObject<{
22365
+ key: z$1.ZodString;
22366
+ label: z$1.ZodString;
22367
+ type: z$1.ZodLiteral<"toggle">;
22368
+ required: z$1.ZodDefault<z$1.ZodBoolean>;
22369
+ true_label: z$1.ZodString;
22370
+ false_label: z$1.ZodString;
22371
+ }, "strip", z$1.ZodTypeAny, {
22372
+ type: "toggle";
22373
+ key: string;
22374
+ label: string;
22375
+ required: boolean;
22376
+ true_label: string;
22377
+ false_label: string;
22378
+ }, {
22379
+ type: "toggle";
22380
+ key: string;
22381
+ label: string;
22382
+ true_label: string;
22383
+ false_label: string;
22384
+ required?: boolean | undefined;
22385
+ }>, z$1.ZodObject<{
22386
+ key: z$1.ZodString;
22387
+ label: z$1.ZodString;
22388
+ type: z$1.ZodLiteral<"checkbox">;
22389
+ required: z$1.ZodDefault<z$1.ZodBoolean>;
22390
+ }, "strip", z$1.ZodTypeAny, {
22391
+ type: "checkbox";
22392
+ key: string;
22393
+ label: string;
22394
+ required: boolean;
22395
+ }, {
22396
+ type: "checkbox";
22397
+ key: string;
22398
+ label: string;
22399
+ required?: boolean | undefined;
22340
22400
  }>]>, "many">;
22341
22401
  type Characteristic = z$1.infer<typeof CharacteristicSchema>;
22342
22402
  type CharacteristicsScheme = z$1.infer<typeof CharacteristicsSchemeSchema>;
22343
22403
  declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObject<{
22344
22404
  name: z$1.ZodString;
22345
- code: z$1.ZodString;
22346
22405
  defaultWriteoffStrategy: z$1.ZodDefault<z$1.ZodEnum<["FIFO", "LIFO", "FEFO", "MANUAL"]>>;
22347
22406
  skuMode: z$1.ZodDefault<z$1.ZodEnum<["GLOBAL", "CUSTOM"]>>;
22348
22407
  skuTemplate: z$1.ZodNullable<z$1.ZodOptional<z$1.ZodString>>;
@@ -22351,7 +22410,6 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22351
22410
  label: z$1.ZodString;
22352
22411
  type: z$1.ZodLiteral<"number">;
22353
22412
  required: z$1.ZodDefault<z$1.ZodBoolean>;
22354
- sku_dependent: z$1.ZodDefault<z$1.ZodBoolean>;
22355
22413
  validation: z$1.ZodOptional<z$1.ZodObject<{
22356
22414
  min: z$1.ZodOptional<z$1.ZodNumber>;
22357
22415
  max: z$1.ZodOptional<z$1.ZodNumber>;
@@ -22374,7 +22432,6 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22374
22432
  key: string;
22375
22433
  label: string;
22376
22434
  required: boolean;
22377
- sku_dependent: boolean;
22378
22435
  validation?: {
22379
22436
  min?: number | undefined;
22380
22437
  max?: number | undefined;
@@ -22391,7 +22448,6 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22391
22448
  max?: number | undefined;
22392
22449
  } | undefined;
22393
22450
  required?: boolean | undefined;
22394
- sku_dependent?: boolean | undefined;
22395
22451
  ui?: {
22396
22452
  suffix?: string | undefined;
22397
22453
  } | undefined;
@@ -22400,7 +22456,6 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22400
22456
  label: z$1.ZodString;
22401
22457
  type: z$1.ZodLiteral<"select">;
22402
22458
  required: z$1.ZodDefault<z$1.ZodBoolean>;
22403
- sku_dependent: z$1.ZodDefault<z$1.ZodBoolean>;
22404
22459
  options: z$1.ZodArray<z$1.ZodObject<{
22405
22460
  label: z$1.ZodString;
22406
22461
  value: z$1.ZodString;
@@ -22420,7 +22475,6 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22420
22475
  key: string;
22421
22476
  label: string;
22422
22477
  required: boolean;
22423
- sku_dependent: boolean;
22424
22478
  }, {
22425
22479
  options: {
22426
22480
  value: string;
@@ -22430,20 +22484,53 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22430
22484
  key: string;
22431
22485
  label: string;
22432
22486
  required?: boolean | undefined;
22433
- sku_dependent?: boolean | undefined;
22487
+ }>, z$1.ZodObject<{
22488
+ key: z$1.ZodString;
22489
+ label: z$1.ZodString;
22490
+ type: z$1.ZodLiteral<"toggle">;
22491
+ required: z$1.ZodDefault<z$1.ZodBoolean>;
22492
+ true_label: z$1.ZodString;
22493
+ false_label: z$1.ZodString;
22494
+ }, "strip", z$1.ZodTypeAny, {
22495
+ type: "toggle";
22496
+ key: string;
22497
+ label: string;
22498
+ required: boolean;
22499
+ true_label: string;
22500
+ false_label: string;
22501
+ }, {
22502
+ type: "toggle";
22503
+ key: string;
22504
+ label: string;
22505
+ true_label: string;
22506
+ false_label: string;
22507
+ required?: boolean | undefined;
22508
+ }>, z$1.ZodObject<{
22509
+ key: z$1.ZodString;
22510
+ label: z$1.ZodString;
22511
+ type: z$1.ZodLiteral<"checkbox">;
22512
+ required: z$1.ZodDefault<z$1.ZodBoolean>;
22513
+ }, "strip", z$1.ZodTypeAny, {
22514
+ type: "checkbox";
22515
+ key: string;
22516
+ label: string;
22517
+ required: boolean;
22518
+ }, {
22519
+ type: "checkbox";
22520
+ key: string;
22521
+ label: string;
22522
+ required?: boolean | undefined;
22434
22523
  }>]>, "many">>>;
22435
22524
  }, "strip", z$1.ZodTypeAny, {
22436
- code: string;
22437
22525
  name: string;
22438
22526
  defaultWriteoffStrategy: "FIFO" | "LIFO" | "FEFO" | "MANUAL";
22439
- skuMode: "GLOBAL" | "CUSTOM";
22527
+ skuMode: "CUSTOM" | "GLOBAL";
22440
22528
  skuTemplate?: string | null | undefined;
22441
22529
  characteristicsScheme?: ({
22442
22530
  type: "number";
22443
22531
  key: string;
22444
22532
  label: string;
22445
22533
  required: boolean;
22446
- sku_dependent: boolean;
22447
22534
  validation?: {
22448
22535
  min?: number | undefined;
22449
22536
  max?: number | undefined;
@@ -22460,13 +22547,23 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22460
22547
  key: string;
22461
22548
  label: string;
22462
22549
  required: boolean;
22463
- sku_dependent: boolean;
22550
+ } | {
22551
+ type: "toggle";
22552
+ key: string;
22553
+ label: string;
22554
+ required: boolean;
22555
+ true_label: string;
22556
+ false_label: string;
22557
+ } | {
22558
+ type: "checkbox";
22559
+ key: string;
22560
+ label: string;
22561
+ required: boolean;
22464
22562
  })[] | null | undefined;
22465
22563
  }, {
22466
- code: string;
22467
22564
  name: string;
22468
22565
  defaultWriteoffStrategy?: "FIFO" | "LIFO" | "FEFO" | "MANUAL" | undefined;
22469
- skuMode?: "GLOBAL" | "CUSTOM" | undefined;
22566
+ skuMode?: "CUSTOM" | "GLOBAL" | undefined;
22470
22567
  skuTemplate?: string | null | undefined;
22471
22568
  characteristicsScheme?: ({
22472
22569
  type: "number";
@@ -22477,7 +22574,6 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22477
22574
  max?: number | undefined;
22478
22575
  } | undefined;
22479
22576
  required?: boolean | undefined;
22480
- sku_dependent?: boolean | undefined;
22481
22577
  ui?: {
22482
22578
  suffix?: string | undefined;
22483
22579
  } | undefined;
@@ -22490,20 +22586,29 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22490
22586
  key: string;
22491
22587
  label: string;
22492
22588
  required?: boolean | undefined;
22493
- sku_dependent?: boolean | undefined;
22589
+ } | {
22590
+ type: "toggle";
22591
+ key: string;
22592
+ label: string;
22593
+ true_label: string;
22594
+ false_label: string;
22595
+ required?: boolean | undefined;
22596
+ } | {
22597
+ type: "checkbox";
22598
+ key: string;
22599
+ label: string;
22600
+ required?: boolean | undefined;
22494
22601
  })[] | null | undefined;
22495
22602
  }>, {
22496
- code: string;
22497
22603
  name: string;
22498
22604
  defaultWriteoffStrategy: "FIFO" | "LIFO" | "FEFO" | "MANUAL";
22499
- skuMode: "GLOBAL" | "CUSTOM";
22605
+ skuMode: "CUSTOM" | "GLOBAL";
22500
22606
  skuTemplate?: string | null | undefined;
22501
22607
  characteristicsScheme?: ({
22502
22608
  type: "number";
22503
22609
  key: string;
22504
22610
  label: string;
22505
22611
  required: boolean;
22506
- sku_dependent: boolean;
22507
22612
  validation?: {
22508
22613
  min?: number | undefined;
22509
22614
  max?: number | undefined;
@@ -22520,13 +22625,23 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22520
22625
  key: string;
22521
22626
  label: string;
22522
22627
  required: boolean;
22523
- sku_dependent: boolean;
22628
+ } | {
22629
+ type: "toggle";
22630
+ key: string;
22631
+ label: string;
22632
+ required: boolean;
22633
+ true_label: string;
22634
+ false_label: string;
22635
+ } | {
22636
+ type: "checkbox";
22637
+ key: string;
22638
+ label: string;
22639
+ required: boolean;
22524
22640
  })[] | null | undefined;
22525
22641
  }, {
22526
- code: string;
22527
22642
  name: string;
22528
22643
  defaultWriteoffStrategy?: "FIFO" | "LIFO" | "FEFO" | "MANUAL" | undefined;
22529
- skuMode?: "GLOBAL" | "CUSTOM" | undefined;
22644
+ skuMode?: "CUSTOM" | "GLOBAL" | undefined;
22530
22645
  skuTemplate?: string | null | undefined;
22531
22646
  characteristicsScheme?: ({
22532
22647
  type: "number";
@@ -22537,7 +22652,6 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22537
22652
  max?: number | undefined;
22538
22653
  } | undefined;
22539
22654
  required?: boolean | undefined;
22540
- sku_dependent?: boolean | undefined;
22541
22655
  ui?: {
22542
22656
  suffix?: string | undefined;
22543
22657
  } | undefined;
@@ -22550,20 +22664,29 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22550
22664
  key: string;
22551
22665
  label: string;
22552
22666
  required?: boolean | undefined;
22553
- sku_dependent?: boolean | undefined;
22667
+ } | {
22668
+ type: "toggle";
22669
+ key: string;
22670
+ label: string;
22671
+ true_label: string;
22672
+ false_label: string;
22673
+ required?: boolean | undefined;
22674
+ } | {
22675
+ type: "checkbox";
22676
+ key: string;
22677
+ label: string;
22678
+ required?: boolean | undefined;
22554
22679
  })[] | null | undefined;
22555
22680
  }>, {
22556
- code: string;
22557
22681
  name: string;
22558
22682
  defaultWriteoffStrategy: "FIFO" | "LIFO" | "FEFO" | "MANUAL";
22559
- skuMode: "GLOBAL" | "CUSTOM";
22683
+ skuMode: "CUSTOM" | "GLOBAL";
22560
22684
  skuTemplate?: string | null | undefined;
22561
22685
  characteristicsScheme?: ({
22562
22686
  type: "number";
22563
22687
  key: string;
22564
22688
  label: string;
22565
22689
  required: boolean;
22566
- sku_dependent: boolean;
22567
22690
  validation?: {
22568
22691
  min?: number | undefined;
22569
22692
  max?: number | undefined;
@@ -22580,13 +22703,23 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22580
22703
  key: string;
22581
22704
  label: string;
22582
22705
  required: boolean;
22583
- sku_dependent: boolean;
22706
+ } | {
22707
+ type: "toggle";
22708
+ key: string;
22709
+ label: string;
22710
+ required: boolean;
22711
+ true_label: string;
22712
+ false_label: string;
22713
+ } | {
22714
+ type: "checkbox";
22715
+ key: string;
22716
+ label: string;
22717
+ required: boolean;
22584
22718
  })[] | null | undefined;
22585
22719
  }, {
22586
- code: string;
22587
22720
  name: string;
22588
22721
  defaultWriteoffStrategy?: "FIFO" | "LIFO" | "FEFO" | "MANUAL" | undefined;
22589
- skuMode?: "GLOBAL" | "CUSTOM" | undefined;
22722
+ skuMode?: "CUSTOM" | "GLOBAL" | undefined;
22590
22723
  skuTemplate?: string | null | undefined;
22591
22724
  characteristicsScheme?: ({
22592
22725
  type: "number";
@@ -22597,7 +22730,6 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22597
22730
  max?: number | undefined;
22598
22731
  } | undefined;
22599
22732
  required?: boolean | undefined;
22600
- sku_dependent?: boolean | undefined;
22601
22733
  ui?: {
22602
22734
  suffix?: string | undefined;
22603
22735
  } | undefined;
@@ -22610,12 +22742,22 @@ declare const CreateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22610
22742
  key: string;
22611
22743
  label: string;
22612
22744
  required?: boolean | undefined;
22613
- sku_dependent?: boolean | undefined;
22745
+ } | {
22746
+ type: "toggle";
22747
+ key: string;
22748
+ label: string;
22749
+ true_label: string;
22750
+ false_label: string;
22751
+ required?: boolean | undefined;
22752
+ } | {
22753
+ type: "checkbox";
22754
+ key: string;
22755
+ label: string;
22756
+ required?: boolean | undefined;
22614
22757
  })[] | null | undefined;
22615
22758
  }>;
22616
22759
  declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObject<{
22617
22760
  name: z$1.ZodOptional<z$1.ZodString>;
22618
- code: z$1.ZodOptional<z$1.ZodString>;
22619
22761
  defaultWriteoffStrategy: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<["FIFO", "LIFO", "FEFO", "MANUAL"]>>>;
22620
22762
  skuMode: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodEnum<["GLOBAL", "CUSTOM"]>>>;
22621
22763
  skuTemplate: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodOptional<z$1.ZodString>>>;
@@ -22624,7 +22766,6 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22624
22766
  label: z$1.ZodString;
22625
22767
  type: z$1.ZodLiteral<"number">;
22626
22768
  required: z$1.ZodDefault<z$1.ZodBoolean>;
22627
- sku_dependent: z$1.ZodDefault<z$1.ZodBoolean>;
22628
22769
  validation: z$1.ZodOptional<z$1.ZodObject<{
22629
22770
  min: z$1.ZodOptional<z$1.ZodNumber>;
22630
22771
  max: z$1.ZodOptional<z$1.ZodNumber>;
@@ -22647,7 +22788,6 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22647
22788
  key: string;
22648
22789
  label: string;
22649
22790
  required: boolean;
22650
- sku_dependent: boolean;
22651
22791
  validation?: {
22652
22792
  min?: number | undefined;
22653
22793
  max?: number | undefined;
@@ -22664,7 +22804,6 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22664
22804
  max?: number | undefined;
22665
22805
  } | undefined;
22666
22806
  required?: boolean | undefined;
22667
- sku_dependent?: boolean | undefined;
22668
22807
  ui?: {
22669
22808
  suffix?: string | undefined;
22670
22809
  } | undefined;
@@ -22673,7 +22812,6 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22673
22812
  label: z$1.ZodString;
22674
22813
  type: z$1.ZodLiteral<"select">;
22675
22814
  required: z$1.ZodDefault<z$1.ZodBoolean>;
22676
- sku_dependent: z$1.ZodDefault<z$1.ZodBoolean>;
22677
22815
  options: z$1.ZodArray<z$1.ZodObject<{
22678
22816
  label: z$1.ZodString;
22679
22817
  value: z$1.ZodString;
@@ -22693,7 +22831,6 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22693
22831
  key: string;
22694
22832
  label: string;
22695
22833
  required: boolean;
22696
- sku_dependent: boolean;
22697
22834
  }, {
22698
22835
  options: {
22699
22836
  value: string;
@@ -22703,20 +22840,53 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22703
22840
  key: string;
22704
22841
  label: string;
22705
22842
  required?: boolean | undefined;
22706
- sku_dependent?: boolean | undefined;
22843
+ }>, z$1.ZodObject<{
22844
+ key: z$1.ZodString;
22845
+ label: z$1.ZodString;
22846
+ type: z$1.ZodLiteral<"toggle">;
22847
+ required: z$1.ZodDefault<z$1.ZodBoolean>;
22848
+ true_label: z$1.ZodString;
22849
+ false_label: z$1.ZodString;
22850
+ }, "strip", z$1.ZodTypeAny, {
22851
+ type: "toggle";
22852
+ key: string;
22853
+ label: string;
22854
+ required: boolean;
22855
+ true_label: string;
22856
+ false_label: string;
22857
+ }, {
22858
+ type: "toggle";
22859
+ key: string;
22860
+ label: string;
22861
+ true_label: string;
22862
+ false_label: string;
22863
+ required?: boolean | undefined;
22864
+ }>, z$1.ZodObject<{
22865
+ key: z$1.ZodString;
22866
+ label: z$1.ZodString;
22867
+ type: z$1.ZodLiteral<"checkbox">;
22868
+ required: z$1.ZodDefault<z$1.ZodBoolean>;
22869
+ }, "strip", z$1.ZodTypeAny, {
22870
+ type: "checkbox";
22871
+ key: string;
22872
+ label: string;
22873
+ required: boolean;
22874
+ }, {
22875
+ type: "checkbox";
22876
+ key: string;
22877
+ label: string;
22878
+ required?: boolean | undefined;
22707
22879
  }>]>, "many">>>>;
22708
22880
  }, "strip", z$1.ZodTypeAny, {
22709
- code?: string | undefined;
22710
22881
  name?: string | undefined;
22711
22882
  defaultWriteoffStrategy?: "FIFO" | "LIFO" | "FEFO" | "MANUAL" | undefined;
22712
- skuMode?: "GLOBAL" | "CUSTOM" | undefined;
22883
+ skuMode?: "CUSTOM" | "GLOBAL" | undefined;
22713
22884
  skuTemplate?: string | null | undefined;
22714
22885
  characteristicsScheme?: ({
22715
22886
  type: "number";
22716
22887
  key: string;
22717
22888
  label: string;
22718
22889
  required: boolean;
22719
- sku_dependent: boolean;
22720
22890
  validation?: {
22721
22891
  min?: number | undefined;
22722
22892
  max?: number | undefined;
@@ -22733,13 +22903,23 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22733
22903
  key: string;
22734
22904
  label: string;
22735
22905
  required: boolean;
22736
- sku_dependent: boolean;
22906
+ } | {
22907
+ type: "toggle";
22908
+ key: string;
22909
+ label: string;
22910
+ required: boolean;
22911
+ true_label: string;
22912
+ false_label: string;
22913
+ } | {
22914
+ type: "checkbox";
22915
+ key: string;
22916
+ label: string;
22917
+ required: boolean;
22737
22918
  })[] | null | undefined;
22738
22919
  }, {
22739
- code?: string | undefined;
22740
22920
  name?: string | undefined;
22741
22921
  defaultWriteoffStrategy?: "FIFO" | "LIFO" | "FEFO" | "MANUAL" | undefined;
22742
- skuMode?: "GLOBAL" | "CUSTOM" | undefined;
22922
+ skuMode?: "CUSTOM" | "GLOBAL" | undefined;
22743
22923
  skuTemplate?: string | null | undefined;
22744
22924
  characteristicsScheme?: ({
22745
22925
  type: "number";
@@ -22750,7 +22930,6 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22750
22930
  max?: number | undefined;
22751
22931
  } | undefined;
22752
22932
  required?: boolean | undefined;
22753
- sku_dependent?: boolean | undefined;
22754
22933
  ui?: {
22755
22934
  suffix?: string | undefined;
22756
22935
  } | undefined;
@@ -22763,20 +22942,29 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22763
22942
  key: string;
22764
22943
  label: string;
22765
22944
  required?: boolean | undefined;
22766
- sku_dependent?: boolean | undefined;
22945
+ } | {
22946
+ type: "toggle";
22947
+ key: string;
22948
+ label: string;
22949
+ true_label: string;
22950
+ false_label: string;
22951
+ required?: boolean | undefined;
22952
+ } | {
22953
+ type: "checkbox";
22954
+ key: string;
22955
+ label: string;
22956
+ required?: boolean | undefined;
22767
22957
  })[] | null | undefined;
22768
22958
  }>, {
22769
- code?: string | undefined;
22770
22959
  name?: string | undefined;
22771
22960
  defaultWriteoffStrategy?: "FIFO" | "LIFO" | "FEFO" | "MANUAL" | undefined;
22772
- skuMode?: "GLOBAL" | "CUSTOM" | undefined;
22961
+ skuMode?: "CUSTOM" | "GLOBAL" | undefined;
22773
22962
  skuTemplate?: string | null | undefined;
22774
22963
  characteristicsScheme?: ({
22775
22964
  type: "number";
22776
22965
  key: string;
22777
22966
  label: string;
22778
22967
  required: boolean;
22779
- sku_dependent: boolean;
22780
22968
  validation?: {
22781
22969
  min?: number | undefined;
22782
22970
  max?: number | undefined;
@@ -22793,13 +22981,23 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22793
22981
  key: string;
22794
22982
  label: string;
22795
22983
  required: boolean;
22796
- sku_dependent: boolean;
22984
+ } | {
22985
+ type: "toggle";
22986
+ key: string;
22987
+ label: string;
22988
+ required: boolean;
22989
+ true_label: string;
22990
+ false_label: string;
22991
+ } | {
22992
+ type: "checkbox";
22993
+ key: string;
22994
+ label: string;
22995
+ required: boolean;
22797
22996
  })[] | null | undefined;
22798
22997
  }, {
22799
- code?: string | undefined;
22800
22998
  name?: string | undefined;
22801
22999
  defaultWriteoffStrategy?: "FIFO" | "LIFO" | "FEFO" | "MANUAL" | undefined;
22802
- skuMode?: "GLOBAL" | "CUSTOM" | undefined;
23000
+ skuMode?: "CUSTOM" | "GLOBAL" | undefined;
22803
23001
  skuTemplate?: string | null | undefined;
22804
23002
  characteristicsScheme?: ({
22805
23003
  type: "number";
@@ -22810,7 +23008,6 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22810
23008
  max?: number | undefined;
22811
23009
  } | undefined;
22812
23010
  required?: boolean | undefined;
22813
- sku_dependent?: boolean | undefined;
22814
23011
  ui?: {
22815
23012
  suffix?: string | undefined;
22816
23013
  } | undefined;
@@ -22823,20 +23020,29 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22823
23020
  key: string;
22824
23021
  label: string;
22825
23022
  required?: boolean | undefined;
22826
- sku_dependent?: boolean | undefined;
23023
+ } | {
23024
+ type: "toggle";
23025
+ key: string;
23026
+ label: string;
23027
+ true_label: string;
23028
+ false_label: string;
23029
+ required?: boolean | undefined;
23030
+ } | {
23031
+ type: "checkbox";
23032
+ key: string;
23033
+ label: string;
23034
+ required?: boolean | undefined;
22827
23035
  })[] | null | undefined;
22828
23036
  }>, {
22829
- code?: string | undefined;
22830
23037
  name?: string | undefined;
22831
23038
  defaultWriteoffStrategy?: "FIFO" | "LIFO" | "FEFO" | "MANUAL" | undefined;
22832
- skuMode?: "GLOBAL" | "CUSTOM" | undefined;
23039
+ skuMode?: "CUSTOM" | "GLOBAL" | undefined;
22833
23040
  skuTemplate?: string | null | undefined;
22834
23041
  characteristicsScheme?: ({
22835
23042
  type: "number";
22836
23043
  key: string;
22837
23044
  label: string;
22838
23045
  required: boolean;
22839
- sku_dependent: boolean;
22840
23046
  validation?: {
22841
23047
  min?: number | undefined;
22842
23048
  max?: number | undefined;
@@ -22853,13 +23059,23 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22853
23059
  key: string;
22854
23060
  label: string;
22855
23061
  required: boolean;
22856
- sku_dependent: boolean;
23062
+ } | {
23063
+ type: "toggle";
23064
+ key: string;
23065
+ label: string;
23066
+ required: boolean;
23067
+ true_label: string;
23068
+ false_label: string;
23069
+ } | {
23070
+ type: "checkbox";
23071
+ key: string;
23072
+ label: string;
23073
+ required: boolean;
22857
23074
  })[] | null | undefined;
22858
23075
  }, {
22859
- code?: string | undefined;
22860
23076
  name?: string | undefined;
22861
23077
  defaultWriteoffStrategy?: "FIFO" | "LIFO" | "FEFO" | "MANUAL" | undefined;
22862
- skuMode?: "GLOBAL" | "CUSTOM" | undefined;
23078
+ skuMode?: "CUSTOM" | "GLOBAL" | undefined;
22863
23079
  skuTemplate?: string | null | undefined;
22864
23080
  characteristicsScheme?: ({
22865
23081
  type: "number";
@@ -22870,7 +23086,6 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22870
23086
  max?: number | undefined;
22871
23087
  } | undefined;
22872
23088
  required?: boolean | undefined;
22873
- sku_dependent?: boolean | undefined;
22874
23089
  ui?: {
22875
23090
  suffix?: string | undefined;
22876
23091
  } | undefined;
@@ -22883,13 +23098,23 @@ declare const UpdateProductTypeSchema: z$1.ZodEffects<z$1.ZodEffects<z$1.ZodObje
22883
23098
  key: string;
22884
23099
  label: string;
22885
23100
  required?: boolean | undefined;
22886
- sku_dependent?: boolean | undefined;
23101
+ } | {
23102
+ type: "toggle";
23103
+ key: string;
23104
+ label: string;
23105
+ true_label: string;
23106
+ false_label: string;
23107
+ required?: boolean | undefined;
23108
+ } | {
23109
+ type: "checkbox";
23110
+ key: string;
23111
+ label: string;
23112
+ required?: boolean | undefined;
22887
23113
  })[] | null | undefined;
22888
23114
  }>;
22889
23115
  declare const ProductTypeSchema: z$1.ZodObject<{
22890
23116
  id: z$1.ZodNumber;
22891
23117
  name: z$1.ZodString;
22892
- code: z$1.ZodString;
22893
23118
  defaultWriteoffStrategy: z$1.ZodEnum<["FIFO", "LIFO", "FEFO", "MANUAL"]>;
22894
23119
  skuMode: z$1.ZodEnum<["GLOBAL", "CUSTOM"]>;
22895
23120
  skuTemplate: z$1.ZodNullable<z$1.ZodString>;
@@ -22899,7 +23124,6 @@ declare const ProductTypeSchema: z$1.ZodObject<{
22899
23124
  label: z$1.ZodString;
22900
23125
  type: z$1.ZodLiteral<"number">;
22901
23126
  required: z$1.ZodDefault<z$1.ZodBoolean>;
22902
- sku_dependent: z$1.ZodDefault<z$1.ZodBoolean>;
22903
23127
  validation: z$1.ZodOptional<z$1.ZodObject<{
22904
23128
  min: z$1.ZodOptional<z$1.ZodNumber>;
22905
23129
  max: z$1.ZodOptional<z$1.ZodNumber>;
@@ -22922,7 +23146,6 @@ declare const ProductTypeSchema: z$1.ZodObject<{
22922
23146
  key: string;
22923
23147
  label: string;
22924
23148
  required: boolean;
22925
- sku_dependent: boolean;
22926
23149
  validation?: {
22927
23150
  min?: number | undefined;
22928
23151
  max?: number | undefined;
@@ -22939,7 +23162,6 @@ declare const ProductTypeSchema: z$1.ZodObject<{
22939
23162
  max?: number | undefined;
22940
23163
  } | undefined;
22941
23164
  required?: boolean | undefined;
22942
- sku_dependent?: boolean | undefined;
22943
23165
  ui?: {
22944
23166
  suffix?: string | undefined;
22945
23167
  } | undefined;
@@ -22948,7 +23170,6 @@ declare const ProductTypeSchema: z$1.ZodObject<{
22948
23170
  label: z$1.ZodString;
22949
23171
  type: z$1.ZodLiteral<"select">;
22950
23172
  required: z$1.ZodDefault<z$1.ZodBoolean>;
22951
- sku_dependent: z$1.ZodDefault<z$1.ZodBoolean>;
22952
23173
  options: z$1.ZodArray<z$1.ZodObject<{
22953
23174
  label: z$1.ZodString;
22954
23175
  value: z$1.ZodString;
@@ -22968,7 +23189,6 @@ declare const ProductTypeSchema: z$1.ZodObject<{
22968
23189
  key: string;
22969
23190
  label: string;
22970
23191
  required: boolean;
22971
- sku_dependent: boolean;
22972
23192
  }, {
22973
23193
  options: {
22974
23194
  value: string;
@@ -22978,23 +23198,56 @@ declare const ProductTypeSchema: z$1.ZodObject<{
22978
23198
  key: string;
22979
23199
  label: string;
22980
23200
  required?: boolean | undefined;
22981
- sku_dependent?: boolean | undefined;
23201
+ }>, z$1.ZodObject<{
23202
+ key: z$1.ZodString;
23203
+ label: z$1.ZodString;
23204
+ type: z$1.ZodLiteral<"toggle">;
23205
+ required: z$1.ZodDefault<z$1.ZodBoolean>;
23206
+ true_label: z$1.ZodString;
23207
+ false_label: z$1.ZodString;
23208
+ }, "strip", z$1.ZodTypeAny, {
23209
+ type: "toggle";
23210
+ key: string;
23211
+ label: string;
23212
+ required: boolean;
23213
+ true_label: string;
23214
+ false_label: string;
23215
+ }, {
23216
+ type: "toggle";
23217
+ key: string;
23218
+ label: string;
23219
+ true_label: string;
23220
+ false_label: string;
23221
+ required?: boolean | undefined;
23222
+ }>, z$1.ZodObject<{
23223
+ key: z$1.ZodString;
23224
+ label: z$1.ZodString;
23225
+ type: z$1.ZodLiteral<"checkbox">;
23226
+ required: z$1.ZodDefault<z$1.ZodBoolean>;
23227
+ }, "strip", z$1.ZodTypeAny, {
23228
+ type: "checkbox";
23229
+ key: string;
23230
+ label: string;
23231
+ required: boolean;
23232
+ }, {
23233
+ type: "checkbox";
23234
+ key: string;
23235
+ label: string;
23236
+ required?: boolean | undefined;
22982
23237
  }>]>, "many">>;
22983
23238
  updatedAt: z$1.ZodString;
22984
23239
  }, "strip", z$1.ZodTypeAny, {
22985
- code: string;
22986
23240
  id: number;
22987
23241
  updatedAt: string;
22988
23242
  name: string;
22989
23243
  defaultWriteoffStrategy: "FIFO" | "LIFO" | "FEFO" | "MANUAL";
22990
- skuMode: "GLOBAL" | "CUSTOM";
23244
+ skuMode: "CUSTOM" | "GLOBAL";
22991
23245
  skuTemplate: string | null;
22992
23246
  characteristicsScheme: ({
22993
23247
  type: "number";
22994
23248
  key: string;
22995
23249
  label: string;
22996
23250
  required: boolean;
22997
- sku_dependent: boolean;
22998
23251
  validation?: {
22999
23252
  min?: number | undefined;
23000
23253
  max?: number | undefined;
@@ -23011,16 +23264,26 @@ declare const ProductTypeSchema: z$1.ZodObject<{
23011
23264
  key: string;
23012
23265
  label: string;
23013
23266
  required: boolean;
23014
- sku_dependent: boolean;
23267
+ } | {
23268
+ type: "toggle";
23269
+ key: string;
23270
+ label: string;
23271
+ required: boolean;
23272
+ true_label: string;
23273
+ false_label: string;
23274
+ } | {
23275
+ type: "checkbox";
23276
+ key: string;
23277
+ label: string;
23278
+ required: boolean;
23015
23279
  })[] | null;
23016
23280
  skuCounter: number;
23017
23281
  }, {
23018
- code: string;
23019
23282
  id: number;
23020
23283
  updatedAt: string;
23021
23284
  name: string;
23022
23285
  defaultWriteoffStrategy: "FIFO" | "LIFO" | "FEFO" | "MANUAL";
23023
- skuMode: "GLOBAL" | "CUSTOM";
23286
+ skuMode: "CUSTOM" | "GLOBAL";
23024
23287
  skuTemplate: string | null;
23025
23288
  characteristicsScheme: ({
23026
23289
  type: "number";
@@ -23031,7 +23294,6 @@ declare const ProductTypeSchema: z$1.ZodObject<{
23031
23294
  max?: number | undefined;
23032
23295
  } | undefined;
23033
23296
  required?: boolean | undefined;
23034
- sku_dependent?: boolean | undefined;
23035
23297
  ui?: {
23036
23298
  suffix?: string | undefined;
23037
23299
  } | undefined;
@@ -23044,7 +23306,18 @@ declare const ProductTypeSchema: z$1.ZodObject<{
23044
23306
  key: string;
23045
23307
  label: string;
23046
23308
  required?: boolean | undefined;
23047
- sku_dependent?: boolean | undefined;
23309
+ } | {
23310
+ type: "toggle";
23311
+ key: string;
23312
+ label: string;
23313
+ true_label: string;
23314
+ false_label: string;
23315
+ required?: boolean | undefined;
23316
+ } | {
23317
+ type: "checkbox";
23318
+ key: string;
23319
+ label: string;
23320
+ required?: boolean | undefined;
23048
23321
  })[] | null;
23049
23322
  skuCounter: number;
23050
23323
  }>;