@mestra-dev/contract 0.0.322 → 0.0.323

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 +519 -9
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4602,6 +4602,80 @@ declare const routes: import("hono/hono-base").HonoBase<{
4602
4602
  name: string;
4603
4603
  description: string | null;
4604
4604
  }[];
4605
+ }[] | {
4606
+ type: string | null;
4607
+ description: string | null;
4608
+ name: string;
4609
+ active: boolean | null;
4610
+ stock: number | null;
4611
+ currency: string | null;
4612
+ price: number | null;
4613
+ qrCode: string | null;
4614
+ id: string;
4615
+ created_at: string;
4616
+ workspaceId: string;
4617
+ updated_at: string | null;
4618
+ deleted_at: string | null;
4619
+ verified_at: string | null;
4620
+ suspended_at: string | null;
4621
+ created_by: string | null;
4622
+ options: string[] | null;
4623
+ status: string | null;
4624
+ expiresAt: string | null;
4625
+ address: string | null;
4626
+ city: string | null;
4627
+ district: string | null;
4628
+ latitude: number | null;
4629
+ longitude: number | null;
4630
+ year: number | null;
4631
+ media: string[] | null;
4632
+ publishTags: string[] | null;
4633
+ publishPlatforms: string[] | null;
4634
+ publishedAt: string | null;
4635
+ serviceType: string | null;
4636
+ warranty: string | null;
4637
+ vin: string | null;
4638
+ mileage: number | null;
4639
+ makeModel: string | null;
4640
+ color: string | null;
4641
+ bodyType: string | null;
4642
+ engine: string | null;
4643
+ fuelType: string | null;
4644
+ transmission: string | null;
4645
+ drivetrain: string | null;
4646
+ previousOwners: number | null;
4647
+ accidentHistory: string | null;
4648
+ purchasePrice: number | null;
4649
+ preparationCosts: {
4650
+ [x: string]: string;
4651
+ }[] | null;
4652
+ tradeIn: boolean | null;
4653
+ onCommission: boolean | null;
4654
+ ownerCustomerId: string | null;
4655
+ commissionMode: string | null;
4656
+ commissionValue: number | null;
4657
+ normHours: number | null;
4658
+ normHourRate: number | null;
4659
+ durationMinutes: number | null;
4660
+ defaultParts: string[] | null;
4661
+ compatibility: string[] | null;
4662
+ oemNumber: string | null;
4663
+ manufacturer: string | null;
4664
+ manufacturerNumber: string | null;
4665
+ minStock: number | null;
4666
+ marginPercent: number | null;
4667
+ title: string;
4668
+ createdBy: {
4669
+ id: string;
4670
+ firstName: string | null;
4671
+ lastName: string | null;
4672
+ profilePicture: string | null;
4673
+ } | null;
4674
+ tags: {
4675
+ id: string;
4676
+ name: string;
4677
+ description: string | null;
4678
+ }[];
4605
4679
  }[];
4606
4680
  };
4607
4681
  outputFormat: "json";
@@ -5545,6 +5619,80 @@ declare const routes: import("hono/hono-base").HonoBase<{
5545
5619
  name: string;
5546
5620
  description: string | null;
5547
5621
  }[];
5622
+ }[] | {
5623
+ type: string | null;
5624
+ description: string | null;
5625
+ name: string;
5626
+ active: boolean | null;
5627
+ stock: number | null;
5628
+ currency: string | null;
5629
+ price: number | null;
5630
+ qrCode: string | null;
5631
+ id: string;
5632
+ created_at: string;
5633
+ workspaceId: string;
5634
+ updated_at: string | null;
5635
+ deleted_at: string | null;
5636
+ verified_at: string | null;
5637
+ suspended_at: string | null;
5638
+ created_by: string | null;
5639
+ options: string[] | null;
5640
+ status: string | null;
5641
+ expiresAt: string | null;
5642
+ address: string | null;
5643
+ city: string | null;
5644
+ district: string | null;
5645
+ latitude: number | null;
5646
+ longitude: number | null;
5647
+ year: number | null;
5648
+ media: string[] | null;
5649
+ publishTags: string[] | null;
5650
+ publishPlatforms: string[] | null;
5651
+ publishedAt: string | null;
5652
+ serviceType: string | null;
5653
+ warranty: string | null;
5654
+ vin: string | null;
5655
+ mileage: number | null;
5656
+ makeModel: string | null;
5657
+ color: string | null;
5658
+ bodyType: string | null;
5659
+ engine: string | null;
5660
+ fuelType: string | null;
5661
+ transmission: string | null;
5662
+ drivetrain: string | null;
5663
+ previousOwners: number | null;
5664
+ accidentHistory: string | null;
5665
+ purchasePrice: number | null;
5666
+ preparationCosts: {
5667
+ [x: string]: string;
5668
+ }[] | null;
5669
+ tradeIn: boolean | null;
5670
+ onCommission: boolean | null;
5671
+ ownerCustomerId: string | null;
5672
+ commissionMode: string | null;
5673
+ commissionValue: number | null;
5674
+ normHours: number | null;
5675
+ normHourRate: number | null;
5676
+ durationMinutes: number | null;
5677
+ defaultParts: string[] | null;
5678
+ compatibility: string[] | null;
5679
+ oemNumber: string | null;
5680
+ manufacturer: string | null;
5681
+ manufacturerNumber: string | null;
5682
+ minStock: number | null;
5683
+ marginPercent: number | null;
5684
+ title: string;
5685
+ createdBy: {
5686
+ id: string;
5687
+ firstName: string | null;
5688
+ lastName: string | null;
5689
+ profilePicture: string | null;
5690
+ } | null;
5691
+ tags: {
5692
+ id: string;
5693
+ name: string;
5694
+ description: string | null;
5695
+ }[];
5548
5696
  }[] | {
5549
5697
  updated_at: string | null;
5550
5698
  deleted_at: string | null;
@@ -6578,6 +6726,80 @@ declare const routes: import("hono/hono-base").HonoBase<{
6578
6726
  name: string;
6579
6727
  description: string | null;
6580
6728
  }[];
6729
+ }[] | {
6730
+ type: string | null;
6731
+ description: string | null;
6732
+ name: string;
6733
+ active: boolean | null;
6734
+ stock: number | null;
6735
+ currency: string | null;
6736
+ price: number | null;
6737
+ qrCode: string | null;
6738
+ id: string;
6739
+ created_at: string;
6740
+ workspaceId: string;
6741
+ updated_at: string | null;
6742
+ deleted_at: string | null;
6743
+ verified_at: string | null;
6744
+ suspended_at: string | null;
6745
+ created_by: string | null;
6746
+ options: string[] | null;
6747
+ status: string | null;
6748
+ expiresAt: string | null;
6749
+ address: string | null;
6750
+ city: string | null;
6751
+ district: string | null;
6752
+ latitude: number | null;
6753
+ longitude: number | null;
6754
+ year: number | null;
6755
+ media: string[] | null;
6756
+ publishTags: string[] | null;
6757
+ publishPlatforms: string[] | null;
6758
+ publishedAt: string | null;
6759
+ serviceType: string | null;
6760
+ warranty: string | null;
6761
+ vin: string | null;
6762
+ mileage: number | null;
6763
+ makeModel: string | null;
6764
+ color: string | null;
6765
+ bodyType: string | null;
6766
+ engine: string | null;
6767
+ fuelType: string | null;
6768
+ transmission: string | null;
6769
+ drivetrain: string | null;
6770
+ previousOwners: number | null;
6771
+ accidentHistory: string | null;
6772
+ purchasePrice: number | null;
6773
+ preparationCosts: {
6774
+ [x: string]: string;
6775
+ }[] | null;
6776
+ tradeIn: boolean | null;
6777
+ onCommission: boolean | null;
6778
+ ownerCustomerId: string | null;
6779
+ commissionMode: string | null;
6780
+ commissionValue: number | null;
6781
+ normHours: number | null;
6782
+ normHourRate: number | null;
6783
+ durationMinutes: number | null;
6784
+ defaultParts: string[] | null;
6785
+ compatibility: string[] | null;
6786
+ oemNumber: string | null;
6787
+ manufacturer: string | null;
6788
+ manufacturerNumber: string | null;
6789
+ minStock: number | null;
6790
+ marginPercent: number | null;
6791
+ title: string;
6792
+ createdBy: {
6793
+ id: string;
6794
+ firstName: string | null;
6795
+ lastName: string | null;
6796
+ profilePicture: string | null;
6797
+ } | null;
6798
+ tags: {
6799
+ id: string;
6800
+ name: string;
6801
+ description: string | null;
6802
+ }[];
6581
6803
  }[] | {
6582
6804
  createdBy: {
6583
6805
  id: string;
@@ -7651,6 +7873,80 @@ declare const routes: import("hono/hono-base").HonoBase<{
7651
7873
  name: string;
7652
7874
  description: string | null;
7653
7875
  }[];
7876
+ } | {
7877
+ type: string | null;
7878
+ description: string | null;
7879
+ name: string;
7880
+ active: boolean | null;
7881
+ stock: number | null;
7882
+ currency: string | null;
7883
+ price: number | null;
7884
+ qrCode: string | null;
7885
+ id: string;
7886
+ created_at: string;
7887
+ workspaceId: string;
7888
+ updated_at: string | null;
7889
+ deleted_at: string | null;
7890
+ verified_at: string | null;
7891
+ suspended_at: string | null;
7892
+ created_by: string | null;
7893
+ options: string[] | null;
7894
+ status: string | null;
7895
+ expiresAt: string | null;
7896
+ address: string | null;
7897
+ city: string | null;
7898
+ district: string | null;
7899
+ latitude: number | null;
7900
+ longitude: number | null;
7901
+ year: number | null;
7902
+ media: string[] | null;
7903
+ publishTags: string[] | null;
7904
+ publishPlatforms: string[] | null;
7905
+ publishedAt: string | null;
7906
+ serviceType: string | null;
7907
+ warranty: string | null;
7908
+ vin: string | null;
7909
+ mileage: number | null;
7910
+ makeModel: string | null;
7911
+ color: string | null;
7912
+ bodyType: string | null;
7913
+ engine: string | null;
7914
+ fuelType: string | null;
7915
+ transmission: string | null;
7916
+ drivetrain: string | null;
7917
+ previousOwners: number | null;
7918
+ accidentHistory: string | null;
7919
+ purchasePrice: number | null;
7920
+ preparationCosts: {
7921
+ [x: string]: string;
7922
+ }[] | null;
7923
+ tradeIn: boolean | null;
7924
+ onCommission: boolean | null;
7925
+ ownerCustomerId: string | null;
7926
+ commissionMode: string | null;
7927
+ commissionValue: number | null;
7928
+ normHours: number | null;
7929
+ normHourRate: number | null;
7930
+ durationMinutes: number | null;
7931
+ defaultParts: string[] | null;
7932
+ compatibility: string[] | null;
7933
+ oemNumber: string | null;
7934
+ manufacturer: string | null;
7935
+ manufacturerNumber: string | null;
7936
+ minStock: number | null;
7937
+ marginPercent: number | null;
7938
+ title: string;
7939
+ createdBy: {
7940
+ id: string;
7941
+ firstName: string | null;
7942
+ lastName: string | null;
7943
+ profilePicture: string | null;
7944
+ } | null;
7945
+ tags: {
7946
+ id: string;
7947
+ name: string;
7948
+ description: string | null;
7949
+ }[];
7654
7950
  } | {
7655
7951
  createdBy: {
7656
7952
  id: string;
@@ -7825,6 +8121,43 @@ declare const routes: import("hono/hono-base").HonoBase<{
7825
8121
  status: 200;
7826
8122
  };
7827
8123
  };
8124
+ } & {
8125
+ "/automotive-settings/:workspace": {
8126
+ $get: {
8127
+ input: {
8128
+ param: {
8129
+ workspace: string;
8130
+ };
8131
+ };
8132
+ output: {
8133
+ success: true;
8134
+ settings: {
8135
+ normHourRate: number;
8136
+ };
8137
+ };
8138
+ outputFormat: "json";
8139
+ status: 200;
8140
+ };
8141
+ };
8142
+ } & {
8143
+ "/automotive-settings/update": {
8144
+ $post: {
8145
+ input: {
8146
+ json: {
8147
+ workspace: string;
8148
+ normHourRate: unknown;
8149
+ };
8150
+ };
8151
+ output: {
8152
+ success: true;
8153
+ settings: {
8154
+ normHourRate: number;
8155
+ };
8156
+ };
8157
+ outputFormat: "json";
8158
+ status: 200;
8159
+ };
8160
+ };
7828
8161
  }, "/services"> | import("hono/types").MergeSchemaPath<{
7829
8162
  "/create": {
7830
8163
  $post: {
@@ -8638,6 +8971,50 @@ declare const routes: import("hono/hono-base").HonoBase<{
8638
8971
  name: string;
8639
8972
  description: string | null;
8640
8973
  }[];
8974
+ }[] | {
8975
+ type: string | null;
8976
+ email: string | null;
8977
+ description: string | null;
8978
+ name: string;
8979
+ active: boolean | null;
8980
+ phone: string | null;
8981
+ website: string | null;
8982
+ birthDate: string | null;
8983
+ companyPhone: string | null;
8984
+ companyAddress: string | null;
8985
+ address: string | null;
8986
+ utmSource: string | null;
8987
+ id: string;
8988
+ created_at: string;
8989
+ workspaceId: string;
8990
+ updated_at: string | null;
8991
+ deleted_at: string | null;
8992
+ verified_at: string | null;
8993
+ suspended_at: string | null;
8994
+ created_by: string | null;
8995
+ telegram: string | null;
8996
+ whatsapp: string | null;
8997
+ preferredCurrency: string | null;
8998
+ inn: string | null;
8999
+ preferredPayment: string[] | null;
9000
+ clientStatus: string | null;
9001
+ partnerKind: string | null;
9002
+ driverLicenceNumber: string | null;
9003
+ driverLicenceUntil: string | null;
9004
+ cars: {
9005
+ [x: string]: string;
9006
+ }[] | null;
9007
+ createdBy: {
9008
+ id: string;
9009
+ firstName: string | null;
9010
+ lastName: string | null;
9011
+ profilePicture: string | null;
9012
+ } | null;
9013
+ tags: {
9014
+ id: string;
9015
+ name: string;
9016
+ description: string | null;
9017
+ }[];
8641
9018
  }[];
8642
9019
  };
8643
9020
  outputFormat: "json";
@@ -9506,6 +9883,51 @@ declare const routes: import("hono/hono-base").HonoBase<{
9506
9883
  description: string | null;
9507
9884
  }[];
9508
9885
  subscriptionEndDate: string | null;
9886
+ }[] | {
9887
+ type: string | null;
9888
+ email: string | null;
9889
+ description: string | null;
9890
+ name: string;
9891
+ active: boolean | null;
9892
+ phone: string | null;
9893
+ website: string | null;
9894
+ birthDate: string | null;
9895
+ companyPhone: string | null;
9896
+ companyAddress: string | null;
9897
+ address: string | null;
9898
+ utmSource: string | null;
9899
+ id: string;
9900
+ created_at: string;
9901
+ workspaceId: string;
9902
+ updated_at: string | null;
9903
+ deleted_at: string | null;
9904
+ verified_at: string | null;
9905
+ suspended_at: string | null;
9906
+ created_by: string | null;
9907
+ telegram: string | null;
9908
+ whatsapp: string | null;
9909
+ preferredCurrency: string | null;
9910
+ inn: string | null;
9911
+ preferredPayment: string[] | null;
9912
+ clientStatus: string | null;
9913
+ partnerKind: string | null;
9914
+ driverLicenceNumber: string | null;
9915
+ driverLicenceUntil: string | null;
9916
+ cars: {
9917
+ [x: string]: string;
9918
+ }[] | null;
9919
+ createdBy: {
9920
+ id: string;
9921
+ firstName: string | null;
9922
+ lastName: string | null;
9923
+ profilePicture: string | null;
9924
+ } | null;
9925
+ tags: {
9926
+ id: string;
9927
+ name: string;
9928
+ description: string | null;
9929
+ }[];
9930
+ subscriptionEndDate: string | null;
9509
9931
  }[];
9510
9932
  };
9511
9933
  outputFormat: "json";
@@ -10364,6 +10786,50 @@ declare const routes: import("hono/hono-base").HonoBase<{
10364
10786
  name: string;
10365
10787
  description: string | null;
10366
10788
  }[];
10789
+ } | {
10790
+ type: string | null;
10791
+ email: string | null;
10792
+ description: string | null;
10793
+ name: string;
10794
+ active: boolean | null;
10795
+ phone: string | null;
10796
+ website: string | null;
10797
+ birthDate: string | null;
10798
+ companyPhone: string | null;
10799
+ companyAddress: string | null;
10800
+ address: string | null;
10801
+ utmSource: string | null;
10802
+ id: string;
10803
+ created_at: string;
10804
+ workspaceId: string;
10805
+ updated_at: string | null;
10806
+ deleted_at: string | null;
10807
+ verified_at: string | null;
10808
+ suspended_at: string | null;
10809
+ created_by: string | null;
10810
+ telegram: string | null;
10811
+ whatsapp: string | null;
10812
+ preferredCurrency: string | null;
10813
+ inn: string | null;
10814
+ preferredPayment: string[] | null;
10815
+ clientStatus: string | null;
10816
+ partnerKind: string | null;
10817
+ driverLicenceNumber: string | null;
10818
+ driverLicenceUntil: string | null;
10819
+ cars: {
10820
+ [x: string]: string;
10821
+ }[] | null;
10822
+ createdBy: {
10823
+ id: string;
10824
+ firstName: string | null;
10825
+ lastName: string | null;
10826
+ profilePicture: string | null;
10827
+ } | null;
10828
+ tags: {
10829
+ id: string;
10830
+ name: string;
10831
+ description: string | null;
10832
+ }[];
10367
10833
  };
10368
10834
  };
10369
10835
  outputFormat: "json";
@@ -11158,6 +11624,50 @@ declare const routes: import("hono/hono-base").HonoBase<{
11158
11624
  name: string;
11159
11625
  description: string | null;
11160
11626
  }[];
11627
+ }[] | {
11628
+ type: string | null;
11629
+ email: string | null;
11630
+ description: string | null;
11631
+ name: string;
11632
+ active: boolean | null;
11633
+ phone: string | null;
11634
+ website: string | null;
11635
+ birthDate: string | null;
11636
+ companyPhone: string | null;
11637
+ companyAddress: string | null;
11638
+ address: string | null;
11639
+ utmSource: string | null;
11640
+ id: string;
11641
+ created_at: string;
11642
+ workspaceId: string;
11643
+ updated_at: string | null;
11644
+ deleted_at: string | null;
11645
+ verified_at: string | null;
11646
+ suspended_at: string | null;
11647
+ created_by: string | null;
11648
+ telegram: string | null;
11649
+ whatsapp: string | null;
11650
+ preferredCurrency: string | null;
11651
+ inn: string | null;
11652
+ preferredPayment: string[] | null;
11653
+ clientStatus: string | null;
11654
+ partnerKind: string | null;
11655
+ driverLicenceNumber: string | null;
11656
+ driverLicenceUntil: string | null;
11657
+ cars: {
11658
+ [x: string]: string;
11659
+ }[] | null;
11660
+ createdBy: {
11661
+ id: string;
11662
+ firstName: string | null;
11663
+ lastName: string | null;
11664
+ profilePicture: string | null;
11665
+ } | null;
11666
+ tags: {
11667
+ id: string;
11668
+ name: string;
11669
+ description: string | null;
11670
+ }[];
11161
11671
  }[] | {
11162
11672
  updated_at: string | null;
11163
11673
  deleted_at: string | null;
@@ -11979,7 +12489,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
11979
12489
  viaAgencyBefore: boolean;
11980
12490
  } | null | undefined;
11981
12491
  executors?: {
11982
- personKind: "member" | "partner";
12492
+ personKind: "partner" | "member";
11983
12493
  personId?: string | null | undefined;
11984
12494
  name: string;
11985
12495
  role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
@@ -12092,7 +12602,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
12092
12602
  viaAgencyBefore: boolean;
12093
12603
  } | null | undefined;
12094
12604
  executors?: {
12095
- personKind: "member" | "partner";
12605
+ personKind: "partner" | "member";
12096
12606
  personId?: string | null | undefined;
12097
12607
  name: string;
12098
12608
  role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
@@ -12583,7 +13093,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
12583
13093
  viaAgencyBefore: boolean;
12584
13094
  } | null | undefined;
12585
13095
  executors?: {
12586
- personKind: "member" | "partner";
13096
+ personKind: "partner" | "member";
12587
13097
  personId?: string | null | undefined;
12588
13098
  name: string;
12589
13099
  role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
@@ -12697,7 +13207,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
12697
13207
  viaAgencyBefore: boolean;
12698
13208
  } | null | undefined;
12699
13209
  executors?: {
12700
- personKind: "member" | "partner";
13210
+ personKind: "partner" | "member";
12701
13211
  personId?: string | null | undefined;
12702
13212
  name: string;
12703
13213
  role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
@@ -12924,7 +13434,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
12924
13434
  viaAgencyBefore: boolean;
12925
13435
  } | null | undefined;
12926
13436
  executors?: {
12927
- personKind: "member" | "partner";
13437
+ personKind: "partner" | "member";
12928
13438
  personId?: string | null | undefined;
12929
13439
  name: string;
12930
13440
  role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
@@ -13023,7 +13533,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
13023
13533
  viaAgencyBefore: boolean;
13024
13534
  } | null | undefined;
13025
13535
  executors?: {
13026
- personKind: "member" | "partner";
13536
+ personKind: "partner" | "member";
13027
13537
  personId?: string | null | undefined;
13028
13538
  name: string;
13029
13539
  role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
@@ -13135,7 +13645,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
13135
13645
  viaAgencyBefore: boolean;
13136
13646
  } | null | undefined;
13137
13647
  executors?: {
13138
- personKind: "member" | "partner";
13648
+ personKind: "partner" | "member";
13139
13649
  personId?: string | null | undefined;
13140
13650
  name: string;
13141
13651
  role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
@@ -13234,7 +13744,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
13234
13744
  viaAgencyBefore: boolean;
13235
13745
  } | null | undefined;
13236
13746
  executors?: {
13237
- personKind: "member" | "partner";
13747
+ personKind: "partner" | "member";
13238
13748
  personId?: string | null | undefined;
13239
13749
  name: string;
13240
13750
  role: "lead" | "partner" | "co_agent" | "buyer_agent" | "seller_agent";
@@ -21007,9 +21517,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
21007
21517
  quantity: number;
21008
21518
  id: string;
21009
21519
  sku: string;
21520
+ minStock: number;
21010
21521
  warehouseId: string;
21011
21522
  productName: string;
21012
- minStock: number;
21013
21523
  workspaceId: string;
21014
21524
  };
21015
21525
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.322",
3
+ "version": "0.0.323",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,