@mestra-dev/contract 0.0.321 → 0.0.322

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 (2) hide show
  1. package/dist/index.d.ts +576 -28
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { ApplyGlobalResponse } from 'hono/client';
2
2
  import type { JwtVariables } from 'hono/jwt';
3
3
 
4
+ type SessionRefusal = "PACKAGE_NOT_ACTIVE" | "PACKAGE_ENDED" | "NO_SESSIONS_LEFT";
4
5
  type FinanceAmountType = "revenue" | "commission" | "transit" | "advance" | "conditional";
5
6
  type FinanceExpenseType = "cogs" | "operating" | "transit_payout";
6
7
  type FinanceRefundDirection = "to_customer" | "from_supplier";
@@ -4536,6 +4537,71 @@ declare const routes: import("hono/hono-base").HonoBase<{
4536
4537
  name: string;
4537
4538
  description: string | null;
4538
4539
  }[];
4540
+ }[] | {
4541
+ type: string | null;
4542
+ description: string | null;
4543
+ name: string;
4544
+ active: boolean | null;
4545
+ stock: number | null;
4546
+ currency: string | null;
4547
+ price: number | null;
4548
+ qrCode: string | null;
4549
+ id: string;
4550
+ created_at: string;
4551
+ workspaceId: string;
4552
+ updated_at: string | null;
4553
+ deleted_at: string | null;
4554
+ verified_at: string | null;
4555
+ suspended_at: string | null;
4556
+ created_by: string | null;
4557
+ status: string | null;
4558
+ expiresAt: string | null;
4559
+ address: string | null;
4560
+ city: string | null;
4561
+ district: string | null;
4562
+ latitude: number | null;
4563
+ longitude: number | null;
4564
+ media: string[] | null;
4565
+ publishTags: string[] | null;
4566
+ publishPlatforms: string[] | null;
4567
+ publishedAt: string | null;
4568
+ serviceType: string | null;
4569
+ materials: string[] | null;
4570
+ sku: string | null;
4571
+ specifications: string | null;
4572
+ bom: {
4573
+ [x: string]: string;
4574
+ }[] | null;
4575
+ volumePrices: {
4576
+ [x: string]: string;
4577
+ }[] | null;
4578
+ moq: number | null;
4579
+ leadTimeDays: number | null;
4580
+ monthlyCapacity: string | null;
4581
+ setupTimeHours: number | null;
4582
+ productionLine: string | null;
4583
+ weight: string | null;
4584
+ dimensions: string | null;
4585
+ countryOfOrigin: string | null;
4586
+ batchTracking: boolean | null;
4587
+ qualityStandards: string[] | null;
4588
+ certificates: {
4589
+ [x: string]: string;
4590
+ }[] | null;
4591
+ customerMaterial: boolean | null;
4592
+ processingCost: number | null;
4593
+ title: string;
4594
+ createdBy: {
4595
+ id: string;
4596
+ firstName: string | null;
4597
+ lastName: string | null;
4598
+ profilePicture: string | null;
4599
+ } | null;
4600
+ tags: {
4601
+ id: string;
4602
+ name: string;
4603
+ description: string | null;
4604
+ }[];
4539
4605
  }[];
4540
4606
  };
4541
4607
  outputFormat: "json";
@@ -5414,6 +5480,71 @@ declare const routes: import("hono/hono-base").HonoBase<{
5414
5480
  name: string;
5415
5481
  description: string | null;
5416
5482
  }[];
5483
+ }[] | {
5484
+ type: string | null;
5485
+ description: string | null;
5486
+ name: string;
5487
+ active: boolean | null;
5488
+ stock: number | null;
5489
+ currency: string | null;
5490
+ price: number | null;
5491
+ qrCode: string | null;
5492
+ id: string;
5493
+ created_at: string;
5494
+ workspaceId: string;
5495
+ updated_at: string | null;
5496
+ deleted_at: string | null;
5497
+ verified_at: string | null;
5498
+ suspended_at: string | null;
5499
+ created_by: string | null;
5500
+ status: string | null;
5501
+ expiresAt: string | null;
5502
+ address: string | null;
5503
+ city: string | null;
5504
+ district: string | null;
5505
+ latitude: number | null;
5506
+ longitude: number | null;
5507
+ media: string[] | null;
5508
+ publishTags: string[] | null;
5509
+ publishPlatforms: string[] | null;
5510
+ publishedAt: string | null;
5511
+ serviceType: string | null;
5512
+ materials: string[] | null;
5513
+ sku: string | null;
5514
+ specifications: string | null;
5515
+ bom: {
5516
+ [x: string]: string;
5517
+ }[] | null;
5518
+ volumePrices: {
5519
+ [x: string]: string;
5520
+ }[] | null;
5521
+ moq: number | null;
5522
+ leadTimeDays: number | null;
5523
+ monthlyCapacity: string | null;
5524
+ setupTimeHours: number | null;
5525
+ productionLine: string | null;
5526
+ weight: string | null;
5527
+ dimensions: string | null;
5528
+ countryOfOrigin: string | null;
5529
+ batchTracking: boolean | null;
5530
+ qualityStandards: string[] | null;
5531
+ certificates: {
5532
+ [x: string]: string;
5533
+ }[] | null;
5534
+ customerMaterial: boolean | null;
5535
+ processingCost: number | null;
5536
+ title: string;
5537
+ createdBy: {
5538
+ id: string;
5539
+ firstName: string | null;
5540
+ lastName: string | null;
5541
+ profilePicture: string | null;
5542
+ } | null;
5543
+ tags: {
5544
+ id: string;
5545
+ name: string;
5546
+ description: string | null;
5547
+ }[];
5417
5548
  }[] | {
5418
5549
  updated_at: string | null;
5419
5550
  deleted_at: string | null;
@@ -6382,6 +6513,71 @@ declare const routes: import("hono/hono-base").HonoBase<{
6382
6513
  name: string;
6383
6514
  description: string | null;
6384
6515
  }[];
6516
+ }[] | {
6517
+ type: string | null;
6518
+ description: string | null;
6519
+ name: string;
6520
+ active: boolean | null;
6521
+ stock: number | null;
6522
+ currency: string | null;
6523
+ price: number | null;
6524
+ qrCode: string | null;
6525
+ id: string;
6526
+ created_at: string;
6527
+ workspaceId: string;
6528
+ updated_at: string | null;
6529
+ deleted_at: string | null;
6530
+ verified_at: string | null;
6531
+ suspended_at: string | null;
6532
+ created_by: string | null;
6533
+ status: string | null;
6534
+ expiresAt: string | null;
6535
+ address: string | null;
6536
+ city: string | null;
6537
+ district: string | null;
6538
+ latitude: number | null;
6539
+ longitude: number | null;
6540
+ media: string[] | null;
6541
+ publishTags: string[] | null;
6542
+ publishPlatforms: string[] | null;
6543
+ publishedAt: string | null;
6544
+ serviceType: string | null;
6545
+ materials: string[] | null;
6546
+ sku: string | null;
6547
+ specifications: string | null;
6548
+ bom: {
6549
+ [x: string]: string;
6550
+ }[] | null;
6551
+ volumePrices: {
6552
+ [x: string]: string;
6553
+ }[] | null;
6554
+ moq: number | null;
6555
+ leadTimeDays: number | null;
6556
+ monthlyCapacity: string | null;
6557
+ setupTimeHours: number | null;
6558
+ productionLine: string | null;
6559
+ weight: string | null;
6560
+ dimensions: string | null;
6561
+ countryOfOrigin: string | null;
6562
+ batchTracking: boolean | null;
6563
+ qualityStandards: string[] | null;
6564
+ certificates: {
6565
+ [x: string]: string;
6566
+ }[] | null;
6567
+ customerMaterial: boolean | null;
6568
+ processingCost: number | null;
6569
+ title: string;
6570
+ createdBy: {
6571
+ id: string;
6572
+ firstName: string | null;
6573
+ lastName: string | null;
6574
+ profilePicture: string | null;
6575
+ } | null;
6576
+ tags: {
6577
+ id: string;
6578
+ name: string;
6579
+ description: string | null;
6580
+ }[];
6385
6581
  }[] | {
6386
6582
  createdBy: {
6387
6583
  id: string;
@@ -7390,6 +7586,71 @@ declare const routes: import("hono/hono-base").HonoBase<{
7390
7586
  name: string;
7391
7587
  description: string | null;
7392
7588
  }[];
7589
+ } | {
7590
+ type: string | null;
7591
+ description: string | null;
7592
+ name: string;
7593
+ active: boolean | null;
7594
+ stock: number | null;
7595
+ currency: string | null;
7596
+ price: number | null;
7597
+ qrCode: string | null;
7598
+ id: string;
7599
+ created_at: string;
7600
+ workspaceId: string;
7601
+ updated_at: string | null;
7602
+ deleted_at: string | null;
7603
+ verified_at: string | null;
7604
+ suspended_at: string | null;
7605
+ created_by: string | null;
7606
+ status: string | null;
7607
+ expiresAt: string | null;
7608
+ address: string | null;
7609
+ city: string | null;
7610
+ district: string | null;
7611
+ latitude: number | null;
7612
+ longitude: number | null;
7613
+ media: string[] | null;
7614
+ publishTags: string[] | null;
7615
+ publishPlatforms: string[] | null;
7616
+ publishedAt: string | null;
7617
+ serviceType: string | null;
7618
+ materials: string[] | null;
7619
+ sku: string | null;
7620
+ specifications: string | null;
7621
+ bom: {
7622
+ [x: string]: string;
7623
+ }[] | null;
7624
+ volumePrices: {
7625
+ [x: string]: string;
7626
+ }[] | null;
7627
+ moq: number | null;
7628
+ leadTimeDays: number | null;
7629
+ monthlyCapacity: string | null;
7630
+ setupTimeHours: number | null;
7631
+ productionLine: string | null;
7632
+ weight: string | null;
7633
+ dimensions: string | null;
7634
+ countryOfOrigin: string | null;
7635
+ batchTracking: boolean | null;
7636
+ qualityStandards: string[] | null;
7637
+ certificates: {
7638
+ [x: string]: string;
7639
+ }[] | null;
7640
+ customerMaterial: boolean | null;
7641
+ processingCost: number | null;
7642
+ title: string;
7643
+ createdBy: {
7644
+ id: string;
7645
+ firstName: string | null;
7646
+ lastName: string | null;
7647
+ profilePicture: string | null;
7648
+ } | null;
7649
+ tags: {
7650
+ id: string;
7651
+ name: string;
7652
+ description: string | null;
7653
+ }[];
7393
7654
  } | {
7394
7655
  createdBy: {
7395
7656
  id: string;
@@ -7683,13 +7944,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
7683
7944
  verified_at: string | null;
7684
7945
  suspended_at: string | null;
7685
7946
  created_by: string | null;
7947
+ companyName: string | null;
7686
7948
  telegram: string | null;
7687
7949
  whatsapp: string | null;
7688
- clientId: string | null;
7689
- gender: string | null;
7690
- accessCardNumber: string | null;
7691
- emergencyContactName: string | null;
7692
- emergencyContactPhone: string | null;
7693
7950
  membershipStatus: string | null;
7694
7951
  goals: string[] | null;
7695
7952
  level: string | null;
@@ -7697,6 +7954,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
7697
7954
  preferredPayments: string[] | null;
7698
7955
  healthNotes: string | null;
7699
7956
  medicalClearanceUntil: string | null;
7957
+ inn: string | null;
7958
+ kpp: string | null;
7959
+ ogrn: string | null;
7960
+ clientId: string | null;
7961
+ gender: string | null;
7962
+ accessCardNumber: string | null;
7963
+ emergencyContactName: string | null;
7964
+ emergencyContactPhone: string | null;
7700
7965
  createdBy: {
7701
7966
  id: string;
7702
7967
  firstName: string | null;
@@ -8015,8 +8280,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
8015
8280
  telegram: string | null;
8016
8281
  whatsapp: string | null;
8017
8282
  maternityCapital: boolean | null;
8018
- gender: string | null;
8019
8283
  level: string | null;
8284
+ gender: string | null;
8020
8285
  preferredPayment: string[] | null;
8021
8286
  studentId: string | null;
8022
8287
  schoolGrade: string | null;
@@ -8331,6 +8596,48 @@ declare const routes: import("hono/hono-base").HonoBase<{
8331
8596
  name: string;
8332
8597
  description: string | null;
8333
8598
  }[];
8599
+ }[] | {
8600
+ type: string | null;
8601
+ email: string | null;
8602
+ description: string | null;
8603
+ name: string;
8604
+ active: boolean | null;
8605
+ phone: string | null;
8606
+ website: string | null;
8607
+ birthDate: string | null;
8608
+ companyPhone: string | null;
8609
+ companyAddress: string | null;
8610
+ address: string | null;
8611
+ utmSource: string | null;
8612
+ id: string;
8613
+ created_at: string;
8614
+ workspaceId: string;
8615
+ updated_at: string | null;
8616
+ deleted_at: string | null;
8617
+ verified_at: string | null;
8618
+ suspended_at: string | null;
8619
+ created_by: string | null;
8620
+ telegram: string | null;
8621
+ whatsapp: string | null;
8622
+ preferredCurrency: string | null;
8623
+ preferredPayments: string[] | null;
8624
+ inn: string | null;
8625
+ industry: string | null;
8626
+ clientStatus: string | null;
8627
+ requisites: string | null;
8628
+ paymentDeferralDays: number | null;
8629
+ creditLimit: number | null;
8630
+ createdBy: {
8631
+ id: string;
8632
+ firstName: string | null;
8633
+ lastName: string | null;
8634
+ profilePicture: string | null;
8635
+ } | null;
8636
+ tags: {
8637
+ id: string;
8638
+ name: string;
8639
+ description: string | null;
8640
+ }[];
8334
8641
  }[];
8335
8642
  };
8336
8643
  outputFormat: "json";
@@ -8491,13 +8798,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
8491
8798
  verified_at: string | null;
8492
8799
  suspended_at: string | null;
8493
8800
  created_by: string | null;
8801
+ companyName: string | null;
8494
8802
  telegram: string | null;
8495
8803
  whatsapp: string | null;
8496
- clientId: string | null;
8497
- gender: string | null;
8498
- accessCardNumber: string | null;
8499
- emergencyContactName: string | null;
8500
- emergencyContactPhone: string | null;
8501
8804
  membershipStatus: string | null;
8502
8805
  goals: string[] | null;
8503
8806
  level: string | null;
@@ -8505,6 +8808,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
8505
8808
  preferredPayments: string[] | null;
8506
8809
  healthNotes: string | null;
8507
8810
  medicalClearanceUntil: string | null;
8811
+ inn: string | null;
8812
+ kpp: string | null;
8813
+ ogrn: string | null;
8814
+ clientId: string | null;
8815
+ gender: string | null;
8816
+ accessCardNumber: string | null;
8817
+ emergencyContactName: string | null;
8818
+ emergencyContactPhone: string | null;
8508
8819
  createdBy: {
8509
8820
  id: string;
8510
8821
  firstName: string | null;
@@ -8829,8 +9140,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
8829
9140
  telegram: string | null;
8830
9141
  whatsapp: string | null;
8831
9142
  maternityCapital: boolean | null;
8832
- gender: string | null;
8833
9143
  level: string | null;
9144
+ gender: string | null;
8834
9145
  preferredPayment: string[] | null;
8835
9146
  studentId: string | null;
8836
9147
  schoolGrade: string | null;
@@ -9152,6 +9463,49 @@ declare const routes: import("hono/hono-base").HonoBase<{
9152
9463
  description: string | null;
9153
9464
  }[];
9154
9465
  subscriptionEndDate: string | null;
9466
+ }[] | {
9467
+ type: string | null;
9468
+ email: string | null;
9469
+ description: string | null;
9470
+ name: string;
9471
+ active: boolean | null;
9472
+ phone: string | null;
9473
+ website: string | null;
9474
+ birthDate: string | null;
9475
+ companyPhone: string | null;
9476
+ companyAddress: string | null;
9477
+ address: string | null;
9478
+ utmSource: string | null;
9479
+ id: string;
9480
+ created_at: string;
9481
+ workspaceId: string;
9482
+ updated_at: string | null;
9483
+ deleted_at: string | null;
9484
+ verified_at: string | null;
9485
+ suspended_at: string | null;
9486
+ created_by: string | null;
9487
+ telegram: string | null;
9488
+ whatsapp: string | null;
9489
+ preferredCurrency: string | null;
9490
+ preferredPayments: string[] | null;
9491
+ inn: string | null;
9492
+ industry: string | null;
9493
+ clientStatus: string | null;
9494
+ requisites: string | null;
9495
+ paymentDeferralDays: number | null;
9496
+ creditLimit: number | null;
9497
+ createdBy: {
9498
+ id: string;
9499
+ firstName: string | null;
9500
+ lastName: string | null;
9501
+ profilePicture: string | null;
9502
+ } | null;
9503
+ tags: {
9504
+ id: string;
9505
+ name: string;
9506
+ description: string | null;
9507
+ }[];
9508
+ subscriptionEndDate: string | null;
9155
9509
  }[];
9156
9510
  };
9157
9511
  outputFormat: "json";
@@ -9316,13 +9670,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
9316
9670
  verified_at: string | null;
9317
9671
  suspended_at: string | null;
9318
9672
  created_by: string | null;
9673
+ companyName: string | null;
9319
9674
  telegram: string | null;
9320
9675
  whatsapp: string | null;
9321
- clientId: string | null;
9322
- gender: string | null;
9323
- accessCardNumber: string | null;
9324
- emergencyContactName: string | null;
9325
- emergencyContactPhone: string | null;
9326
9676
  membershipStatus: string | null;
9327
9677
  goals: string[] | null;
9328
9678
  level: string | null;
@@ -9330,6 +9680,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
9330
9680
  preferredPayments: string[] | null;
9331
9681
  healthNotes: string | null;
9332
9682
  medicalClearanceUntil: string | null;
9683
+ inn: string | null;
9684
+ kpp: string | null;
9685
+ ogrn: string | null;
9686
+ clientId: string | null;
9687
+ gender: string | null;
9688
+ accessCardNumber: string | null;
9689
+ emergencyContactName: string | null;
9690
+ emergencyContactPhone: string | null;
9333
9691
  createdBy: {
9334
9692
  id: string;
9335
9693
  firstName: string | null;
@@ -9648,8 +10006,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
9648
10006
  telegram: string | null;
9649
10007
  whatsapp: string | null;
9650
10008
  maternityCapital: boolean | null;
9651
- gender: string | null;
9652
10009
  level: string | null;
10010
+ gender: string | null;
9653
10011
  preferredPayment: string[] | null;
9654
10012
  studentId: string | null;
9655
10013
  schoolGrade: string | null;
@@ -9964,6 +10322,48 @@ declare const routes: import("hono/hono-base").HonoBase<{
9964
10322
  name: string;
9965
10323
  description: string | null;
9966
10324
  }[];
10325
+ } | {
10326
+ type: string | null;
10327
+ email: string | null;
10328
+ description: string | null;
10329
+ name: string;
10330
+ active: boolean | null;
10331
+ phone: string | null;
10332
+ website: string | null;
10333
+ birthDate: string | null;
10334
+ companyPhone: string | null;
10335
+ companyAddress: string | null;
10336
+ address: string | null;
10337
+ utmSource: string | null;
10338
+ id: string;
10339
+ created_at: string;
10340
+ workspaceId: string;
10341
+ updated_at: string | null;
10342
+ deleted_at: string | null;
10343
+ verified_at: string | null;
10344
+ suspended_at: string | null;
10345
+ created_by: string | null;
10346
+ telegram: string | null;
10347
+ whatsapp: string | null;
10348
+ preferredCurrency: string | null;
10349
+ preferredPayments: string[] | null;
10350
+ inn: string | null;
10351
+ industry: string | null;
10352
+ clientStatus: string | null;
10353
+ requisites: string | null;
10354
+ paymentDeferralDays: number | null;
10355
+ creditLimit: number | null;
10356
+ createdBy: {
10357
+ id: string;
10358
+ firstName: string | null;
10359
+ lastName: string | null;
10360
+ profilePicture: string | null;
10361
+ } | null;
10362
+ tags: {
10363
+ id: string;
10364
+ name: string;
10365
+ description: string | null;
10366
+ }[];
9967
10367
  };
9968
10368
  };
9969
10369
  outputFormat: "json";
@@ -10064,13 +10464,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
10064
10464
  verified_at: string | null;
10065
10465
  suspended_at: string | null;
10066
10466
  created_by: string | null;
10467
+ companyName: string | null;
10067
10468
  telegram: string | null;
10068
10469
  whatsapp: string | null;
10069
- clientId: string | null;
10070
- gender: string | null;
10071
- accessCardNumber: string | null;
10072
- emergencyContactName: string | null;
10073
- emergencyContactPhone: string | null;
10074
10470
  membershipStatus: string | null;
10075
10471
  goals: string[] | null;
10076
10472
  level: string | null;
@@ -10078,6 +10474,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
10078
10474
  preferredPayments: string[] | null;
10079
10475
  healthNotes: string | null;
10080
10476
  medicalClearanceUntil: string | null;
10477
+ inn: string | null;
10478
+ kpp: string | null;
10479
+ ogrn: string | null;
10480
+ clientId: string | null;
10481
+ gender: string | null;
10482
+ accessCardNumber: string | null;
10483
+ emergencyContactName: string | null;
10484
+ emergencyContactPhone: string | null;
10081
10485
  createdBy: {
10082
10486
  id: string;
10083
10487
  firstName: string | null;
@@ -10396,8 +10800,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
10396
10800
  telegram: string | null;
10397
10801
  whatsapp: string | null;
10398
10802
  maternityCapital: boolean | null;
10399
- gender: string | null;
10400
10803
  level: string | null;
10804
+ gender: string | null;
10401
10805
  preferredPayment: string[] | null;
10402
10806
  studentId: string | null;
10403
10807
  schoolGrade: string | null;
@@ -10712,6 +11116,48 @@ declare const routes: import("hono/hono-base").HonoBase<{
10712
11116
  name: string;
10713
11117
  description: string | null;
10714
11118
  }[];
11119
+ }[] | {
11120
+ type: string | null;
11121
+ email: string | null;
11122
+ description: string | null;
11123
+ name: string;
11124
+ active: boolean | null;
11125
+ phone: string | null;
11126
+ website: string | null;
11127
+ birthDate: string | null;
11128
+ companyPhone: string | null;
11129
+ companyAddress: string | null;
11130
+ address: string | null;
11131
+ utmSource: string | null;
11132
+ id: string;
11133
+ created_at: string;
11134
+ workspaceId: string;
11135
+ updated_at: string | null;
11136
+ deleted_at: string | null;
11137
+ verified_at: string | null;
11138
+ suspended_at: string | null;
11139
+ created_by: string | null;
11140
+ telegram: string | null;
11141
+ whatsapp: string | null;
11142
+ preferredCurrency: string | null;
11143
+ preferredPayments: string[] | null;
11144
+ inn: string | null;
11145
+ industry: string | null;
11146
+ clientStatus: string | null;
11147
+ requisites: string | null;
11148
+ paymentDeferralDays: number | null;
11149
+ creditLimit: number | null;
11150
+ createdBy: {
11151
+ id: string;
11152
+ firstName: string | null;
11153
+ lastName: string | null;
11154
+ profilePicture: string | null;
11155
+ } | null;
11156
+ tags: {
11157
+ id: string;
11158
+ name: string;
11159
+ description: string | null;
11160
+ }[];
10715
11161
  }[] | {
10716
11162
  updated_at: string | null;
10717
11163
  deleted_at: string | null;
@@ -11074,9 +11520,52 @@ declare const routes: import("hono/hono-base").HonoBase<{
11074
11520
  updatedAt: string;
11075
11521
  createdBy: string | null;
11076
11522
  };
11523
+ related: {
11524
+ type: string;
11525
+ customerId: string;
11526
+ date: string;
11527
+ status: string | null;
11528
+ id: string;
11529
+ fields: {
11530
+ [x: string]: import("hono/utils/types").JSONValue;
11531
+ };
11532
+ events: {
11533
+ [x: string]: string;
11534
+ } | null;
11535
+ workspaceId: string;
11536
+ createdAt: string;
11537
+ updatedAt: string;
11538
+ createdBy: string | null;
11539
+ }[];
11077
11540
  };
11078
11541
  outputFormat: "json";
11079
11542
  status: 201;
11543
+ } | {
11544
+ input: {
11545
+ json: {
11546
+ workspace: string;
11547
+ customerId: string;
11548
+ type: string;
11549
+ status?: string | null | undefined;
11550
+ date: string;
11551
+ fields?: {
11552
+ [x: string]: string | number | boolean | string[] | {
11553
+ [x: string]: string;
11554
+ }[] | null;
11555
+ } | undefined;
11556
+ events?: {
11557
+ [x: string]: string;
11558
+ } | null | undefined;
11559
+ };
11560
+ };
11561
+ output: {
11562
+ success: false;
11563
+ error: string;
11564
+ code: SessionRefusal;
11565
+ packageId: string;
11566
+ };
11567
+ outputFormat: "json";
11568
+ status: 409;
11080
11569
  };
11081
11570
  };
11082
11571
  } & {
@@ -11163,9 +11652,51 @@ declare const routes: import("hono/hono-base").HonoBase<{
11163
11652
  updatedAt: string;
11164
11653
  createdBy: string | null;
11165
11654
  };
11655
+ related: {
11656
+ type: string;
11657
+ customerId: string;
11658
+ date: string;
11659
+ status: string | null;
11660
+ id: string;
11661
+ fields: {
11662
+ [x: string]: import("hono/utils/types").JSONValue;
11663
+ };
11664
+ events: {
11665
+ [x: string]: string;
11666
+ } | null;
11667
+ workspaceId: string;
11668
+ createdAt: string;
11669
+ updatedAt: string;
11670
+ createdBy: string | null;
11671
+ }[];
11166
11672
  };
11167
11673
  outputFormat: "json";
11168
11674
  status: 200;
11675
+ } | {
11676
+ input: {
11677
+ json: {
11678
+ workspace: string;
11679
+ recordId: string;
11680
+ status?: string | null | undefined;
11681
+ date?: string | undefined;
11682
+ fields?: {
11683
+ [x: string]: string | number | boolean | string[] | {
11684
+ [x: string]: string;
11685
+ }[] | null;
11686
+ } | undefined;
11687
+ events?: {
11688
+ [x: string]: string;
11689
+ } | null | undefined;
11690
+ };
11691
+ };
11692
+ output: {
11693
+ success: false;
11694
+ error: string;
11695
+ code: SessionRefusal;
11696
+ packageId: string;
11697
+ };
11698
+ outputFormat: "json";
11699
+ status: 409;
11169
11700
  };
11170
11701
  };
11171
11702
  } & {
@@ -11192,6 +11723,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
11192
11723
  };
11193
11724
  output: {
11194
11725
  success: true;
11726
+ related: {
11727
+ type: string;
11728
+ customerId: string;
11729
+ date: string;
11730
+ status: string | null;
11731
+ id: string;
11732
+ fields: {
11733
+ [x: string]: import("hono/utils/types").JSONValue;
11734
+ };
11735
+ events: {
11736
+ [x: string]: string;
11737
+ } | null;
11738
+ workspaceId: string;
11739
+ createdAt: string;
11740
+ updatedAt: string;
11741
+ createdBy: string | null;
11742
+ }[];
11195
11743
  };
11196
11744
  outputFormat: "json";
11197
11745
  status: 200;
@@ -11247,7 +11795,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
11247
11795
  workspace: string;
11248
11796
  customerId: string;
11249
11797
  relatedCustomerId: string;
11250
- type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "other";
11798
+ type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "engineer" | "engineer_at" | "other";
11251
11799
  };
11252
11800
  };
11253
11801
  output: {
@@ -11262,7 +11810,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
11262
11810
  workspace: string;
11263
11811
  customerId: string;
11264
11812
  relatedCustomerId: string;
11265
- type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "other";
11813
+ type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "engineer" | "engineer_at" | "other";
11266
11814
  };
11267
11815
  };
11268
11816
  output: {
@@ -11277,7 +11825,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
11277
11825
  workspace: string;
11278
11826
  customerId: string;
11279
11827
  relatedCustomerId: string;
11280
- type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "other";
11828
+ type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "engineer" | "engineer_at" | "other";
11281
11829
  };
11282
11830
  };
11283
11831
  output: {
@@ -20458,8 +21006,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
20458
21006
  variant: string | null;
20459
21007
  quantity: number;
20460
21008
  id: string;
20461
- warehouseId: string;
20462
21009
  sku: string;
21010
+ warehouseId: string;
20463
21011
  productName: string;
20464
21012
  minStock: number;
20465
21013
  workspaceId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.321",
3
+ "version": "0.0.322",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,