@mestra-dev/contract 0.0.296 → 0.0.298

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 +21 -151
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3578,6 +3578,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
3578
3578
  landType: string | null;
3579
3579
  currency: string | null;
3580
3580
  propertyStatus: string | null;
3581
+ priceUnit: string | null;
3581
3582
  commercialClass: string | null;
3582
3583
  ownershipType: string | null;
3583
3584
  loadingDockAccess: boolean | null;
@@ -3595,6 +3596,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
3595
3596
  otherFeatures: string | null;
3596
3597
  pricePerSquareMeter: number | null;
3597
3598
  agencyCommission: number | null;
3599
+ agencyCommissionType: string | null;
3600
+ agencyCommissionAmount: number | null;
3601
+ agencyCommissionPaidBy: string | null;
3598
3602
  alternativeEURCurrency: boolean | null;
3599
3603
  alternativeRUBCurrency: boolean | null;
3600
3604
  alternativeUSDCurrency: boolean | null;
@@ -3678,6 +3682,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
3678
3682
  price: number | null;
3679
3683
  propertyType: string | null;
3680
3684
  propertyStatus: string | null;
3685
+ priceUnit: string | null;
3681
3686
  housingType: string | null;
3682
3687
  commercialType: string | null;
3683
3688
  commercialClass: string | null;
@@ -3704,6 +3709,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
3704
3709
  installmentPaymentAmount: number | null;
3705
3710
  pricePerSquareMeter: number | null;
3706
3711
  agencyCommission: number | null;
3712
+ agencyCommissionType: string | null;
3713
+ agencyCommissionAmount: number | null;
3714
+ agencyCommissionPaidBy: string | null;
3707
3715
  alternativeEURCurrency: boolean | null;
3708
3716
  alternativeRUBCurrency: boolean | null;
3709
3717
  alternativeUSDCurrency: boolean | null;
@@ -3800,6 +3808,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
3800
3808
  price: number | null;
3801
3809
  propertyType: string | null;
3802
3810
  propertyStatus: string | null;
3811
+ priceUnit: string | null;
3803
3812
  housingType: string | null;
3804
3813
  commercialType: string | null;
3805
3814
  commercialClass: string | null;
@@ -3826,6 +3835,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
3826
3835
  installmentPaymentAmount: number | null;
3827
3836
  pricePerSquareMeter: number | null;
3828
3837
  agencyCommission: number | null;
3838
+ agencyCommissionType: string | null;
3839
+ agencyCommissionAmount: number | null;
3840
+ agencyCommissionPaidBy: string | null;
3829
3841
  alternativeEURCurrency: boolean | null;
3830
3842
  alternativeRUBCurrency: boolean | null;
3831
3843
  alternativeUSDCurrency: boolean | null;
@@ -3951,6 +3963,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
3951
3963
  price: number | null;
3952
3964
  propertyType: string | null;
3953
3965
  propertyStatus: string | null;
3966
+ priceUnit: string | null;
3954
3967
  housingType: string | null;
3955
3968
  commercialType: string | null;
3956
3969
  commercialClass: string | null;
@@ -3977,6 +3990,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
3977
3990
  installmentPaymentAmount: number | null;
3978
3991
  pricePerSquareMeter: number | null;
3979
3992
  agencyCommission: number | null;
3993
+ agencyCommissionType: string | null;
3994
+ agencyCommissionAmount: number | null;
3995
+ agencyCommissionPaidBy: string | null;
3980
3996
  alternativeEURCurrency: boolean | null;
3981
3997
  alternativeRUBCurrency: boolean | null;
3982
3998
  alternativeUSDCurrency: boolean | null;
@@ -11507,17 +11523,15 @@ declare const routes: import("hono/hono-base").HonoBase<{
11507
11523
  suspensionReason: null;
11508
11524
  promoCode: null;
11509
11525
  referralUrl: null;
11510
- teamPromoCode: null;
11511
11526
  clientDiscountPercent: number;
11512
- teamDiscountPercent: number;
11527
+ isAdmin: boolean;
11513
11528
  } | {
11514
11529
  status: "pending" | "active" | "suspended";
11515
11530
  suspensionReason: string | null;
11516
11531
  promoCode: string | null;
11517
11532
  referralUrl: string | null;
11518
- teamPromoCode: string | null;
11519
11533
  clientDiscountPercent: number;
11520
- teamDiscountPercent: number;
11534
+ isAdmin: boolean;
11521
11535
  };
11522
11536
  };
11523
11537
  outputFormat: "json";
@@ -11542,17 +11556,15 @@ declare const routes: import("hono/hono-base").HonoBase<{
11542
11556
  suspensionReason: null;
11543
11557
  promoCode: null;
11544
11558
  referralUrl: null;
11545
- teamPromoCode: null;
11546
11559
  clientDiscountPercent: number;
11547
- teamDiscountPercent: number;
11560
+ isAdmin: boolean;
11548
11561
  } | {
11549
11562
  status: "pending" | "active" | "suspended";
11550
11563
  suspensionReason: string | null;
11551
11564
  promoCode: string | null;
11552
11565
  referralUrl: string | null;
11553
- teamPromoCode: string | null;
11554
11566
  clientDiscountPercent: number;
11555
- teamDiscountPercent: number;
11567
+ isAdmin: boolean;
11556
11568
  };
11557
11569
  };
11558
11570
  outputFormat: "json";
@@ -11788,7 +11800,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
11788
11800
  codes: {
11789
11801
  id: string;
11790
11802
  code: string;
11791
- kind: "main" | "custom" | "team";
11803
+ kind: "main" | "custom";
11792
11804
  discountPercent: number;
11793
11805
  isActive: boolean;
11794
11806
  clients: number;
@@ -11872,14 +11884,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11872
11884
  } & {
11873
11885
  "/admin/promo-requests": {
11874
11886
  $get: {
11875
- input: {};
11876
- output: {
11877
- success: false;
11878
- error: string;
11879
- };
11880
- outputFormat: "json";
11881
- status: 401;
11882
- } | {
11883
11887
  input: {};
11884
11888
  output: {
11885
11889
  success: true;
@@ -11901,22 +11905,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11901
11905
  } & {
11902
11906
  "/admin/promo-requests/:requestId/approve": {
11903
11907
  $post: {
11904
- input: {
11905
- json: {
11906
- percent?: number | undefined;
11907
- };
11908
- } & {
11909
- param: {
11910
- requestId: string;
11911
- };
11912
- };
11913
- output: {
11914
- success: false;
11915
- error: string;
11916
- };
11917
- outputFormat: "json";
11918
- status: 401;
11919
- } | {
11920
11908
  input: {
11921
11909
  json: {
11922
11910
  percent?: number | undefined;
@@ -11936,22 +11924,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11936
11924
  } & {
11937
11925
  "/admin/promo-requests/:requestId/reject": {
11938
11926
  $post: {
11939
- input: {
11940
- json: {
11941
- reason: string;
11942
- };
11943
- } & {
11944
- param: {
11945
- requestId: string;
11946
- };
11947
- };
11948
- output: {
11949
- success: false;
11950
- error: string;
11951
- };
11952
- outputFormat: "json";
11953
- status: 401;
11954
- } | {
11955
11927
  input: {
11956
11928
  json: {
11957
11929
  reason: string;
@@ -11971,14 +11943,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
11971
11943
  } & {
11972
11944
  "/admin/payouts": {
11973
11945
  $get: {
11974
- input: {};
11975
- output: {
11976
- success: false;
11977
- error: string;
11978
- };
11979
- outputFormat: "json";
11980
- status: 401;
11981
- } | {
11982
11946
  input: {};
11983
11947
  output: {
11984
11948
  success: true;
@@ -12008,18 +11972,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12008
11972
  } & {
12009
11973
  "/admin/commissions/:entryId/reverse": {
12010
11974
  $post: {
12011
- input: {
12012
- param: {
12013
- entryId: string;
12014
- };
12015
- };
12016
- output: {
12017
- success: false;
12018
- error: string;
12019
- };
12020
- outputFormat: "json";
12021
- status: 401;
12022
- } | {
12023
11975
  input: {
12024
11976
  param: {
12025
11977
  entryId: string;
@@ -12039,18 +11991,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12039
11991
  } & {
12040
11992
  "/admin": {
12041
11993
  $get: {
12042
- input: {
12043
- query: {
12044
- status?: "pending" | "active" | "suspended" | undefined;
12045
- };
12046
- };
12047
- output: {
12048
- success: false;
12049
- error: string;
12050
- };
12051
- outputFormat: "json";
12052
- status: 401;
12053
- } | {
12054
11994
  input: {
12055
11995
  query: {
12056
11996
  status?: "pending" | "active" | "suspended" | undefined;
@@ -12086,22 +12026,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12086
12026
  } & {
12087
12027
  "/admin/:partnerId/activate": {
12088
12028
  $post: {
12089
- input: {
12090
- json: {
12091
- promoCode: string;
12092
- };
12093
- } & {
12094
- param: {
12095
- partnerId: string;
12096
- };
12097
- };
12098
- output: {
12099
- success: false;
12100
- error: string;
12101
- };
12102
- outputFormat: "json";
12103
- status: 401;
12104
- } | {
12105
12029
  input: {
12106
12030
  json: {
12107
12031
  promoCode: string;
@@ -12121,18 +12045,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12121
12045
  } & {
12122
12046
  "/admin/:partnerId/reject": {
12123
12047
  $post: {
12124
- input: {
12125
- param: {
12126
- partnerId: string;
12127
- };
12128
- };
12129
- output: {
12130
- success: false;
12131
- error: string;
12132
- };
12133
- outputFormat: "json";
12134
- status: 401;
12135
- } | {
12136
12048
  input: {
12137
12049
  param: {
12138
12050
  partnerId: string;
@@ -12148,22 +12060,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12148
12060
  } & {
12149
12061
  "/admin/:partnerId/suspend": {
12150
12062
  $post: {
12151
- input: {
12152
- json: {
12153
- reason: string;
12154
- };
12155
- } & {
12156
- param: {
12157
- partnerId: string;
12158
- };
12159
- };
12160
- output: {
12161
- success: false;
12162
- error: string;
12163
- };
12164
- outputFormat: "json";
12165
- status: 401;
12166
- } | {
12167
12063
  input: {
12168
12064
  json: {
12169
12065
  reason: string;
@@ -12183,18 +12079,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12183
12079
  } & {
12184
12080
  "/admin/:partnerId/reactivate": {
12185
12081
  $post: {
12186
- input: {
12187
- param: {
12188
- partnerId: string;
12189
- };
12190
- };
12191
- output: {
12192
- success: false;
12193
- error: string;
12194
- };
12195
- outputFormat: "json";
12196
- status: 401;
12197
- } | {
12198
12082
  input: {
12199
12083
  param: {
12200
12084
  partnerId: string;
@@ -12210,20 +12094,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
12210
12094
  } & {
12211
12095
  "/admin/:partnerId/payouts/:period/paid": {
12212
12096
  $post: {
12213
- input: {
12214
- param: {
12215
- period: string;
12216
- } & {
12217
- partnerId: string;
12218
- };
12219
- };
12220
- output: {
12221
- success: false;
12222
- error: string;
12223
- };
12224
- outputFormat: "json";
12225
- status: 401;
12226
- } | {
12227
12097
  input: {
12228
12098
  param: {
12229
12099
  period: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.296",
3
+ "version": "0.0.298",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,