@mestra-dev/contract 0.0.98 → 0.0.99

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 +694 -40
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -86,7 +86,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
86
86
  },
87
87
  {
88
88
  readonly name: "Customers";
89
- readonly description: "Category-specific customer create. Real-estate workspaces persist leads on customer_real_estates. List, get, update, delete, and get-tasks are not currently exposed.";
89
+ readonly description: "Category-specific customer CRUD. Real-estate workspaces persist leads on customer_real_estates.";
90
90
  },
91
91
  {
92
92
  readonly name: "Events";
@@ -9247,6 +9247,555 @@ declare const routes: import("hono/hono-base").HonoBase<{
9247
9247
  };
9248
9248
  };
9249
9249
  };
9250
+ readonly "/customers/update": {
9251
+ readonly post: {
9252
+ readonly tags: readonly [
9253
+ "Customers"
9254
+ ];
9255
+ readonly summary: "Update a customer";
9256
+ readonly description: "Partially updates a category-specific customer in the specified workspace. Real-estate workspaces update only the provided lead fields on customer_real_estates. Requires workspace access, write access to crm::customers, and billing access for customers.";
9257
+ readonly security: readonly [
9258
+ never
9259
+ ];
9260
+ readonly requestBody: {
9261
+ readonly required: true;
9262
+ readonly content: {
9263
+ readonly "application/json": {
9264
+ readonly schema: {
9265
+ readonly type: "object";
9266
+ readonly required: readonly [
9267
+ "workspace",
9268
+ "customerId"
9269
+ ];
9270
+ readonly properties: {
9271
+ readonly workspace: {
9272
+ readonly type: "string";
9273
+ readonly format: "uuid";
9274
+ readonly description: "Workspace identifier where the customer belongs.";
9275
+ };
9276
+ readonly customerId: {
9277
+ readonly type: "string";
9278
+ readonly format: "uuid";
9279
+ readonly description: "Customer identifier to update.";
9280
+ };
9281
+ readonly name: {
9282
+ readonly type: "string";
9283
+ };
9284
+ readonly type: {
9285
+ readonly type: "string";
9286
+ readonly enum: readonly [
9287
+ "buyer",
9288
+ "seller",
9289
+ "tenant",
9290
+ "landlord",
9291
+ "investor",
9292
+ "agent"
9293
+ ];
9294
+ };
9295
+ readonly companyName: {
9296
+ readonly type: "string";
9297
+ };
9298
+ readonly phone: {
9299
+ readonly type: "string";
9300
+ readonly description: "E.164 phone number.";
9301
+ };
9302
+ readonly telegram: {
9303
+ readonly type: "string";
9304
+ };
9305
+ readonly whatsapp: {
9306
+ readonly type: "string";
9307
+ readonly description: "E.164 WhatsApp number.";
9308
+ };
9309
+ readonly email: {
9310
+ readonly type: "string";
9311
+ readonly format: "email";
9312
+ };
9313
+ readonly leadSource: {
9314
+ readonly type: "string";
9315
+ readonly enum: readonly [
9316
+ "cian",
9317
+ "avito",
9318
+ "vk",
9319
+ "yandex",
9320
+ "website",
9321
+ "referral",
9322
+ "walk_in"
9323
+ ];
9324
+ };
9325
+ readonly budgetMin: {
9326
+ readonly type: "number";
9327
+ readonly minimum: 0;
9328
+ };
9329
+ readonly budgetMax: {
9330
+ readonly type: "number";
9331
+ readonly minimum: 0;
9332
+ };
9333
+ readonly inHandBudget: {
9334
+ readonly type: "number";
9335
+ readonly minimum: 0;
9336
+ };
9337
+ readonly installmentBudget: {
9338
+ readonly type: "number";
9339
+ readonly minimum: 0;
9340
+ };
9341
+ readonly minArea: {
9342
+ readonly type: "number";
9343
+ readonly minimum: 0;
9344
+ };
9345
+ readonly maxArea: {
9346
+ readonly type: "number";
9347
+ readonly minimum: 0;
9348
+ };
9349
+ readonly roomsCount: {
9350
+ readonly type: "integer";
9351
+ readonly minimum: 0;
9352
+ };
9353
+ readonly preferredDistricts: {
9354
+ readonly type: "array";
9355
+ readonly items: {
9356
+ readonly type: "string";
9357
+ };
9358
+ };
9359
+ readonly propertyType: {
9360
+ readonly type: "string";
9361
+ };
9362
+ readonly maxMetroDistance: {
9363
+ readonly type: "number";
9364
+ readonly minimum: 0;
9365
+ };
9366
+ readonly dealStatus: {
9367
+ readonly type: "string";
9368
+ readonly enum: readonly [
9369
+ "just_browsing",
9370
+ "serious_buyer",
9371
+ "mortgage_approved",
9372
+ "signed_contract",
9373
+ "closed_deal"
9374
+ ];
9375
+ };
9376
+ readonly preferredPaymentMethod: {
9377
+ readonly type: "string";
9378
+ readonly enum: readonly [
9379
+ "full_payment",
9380
+ "mortgage",
9381
+ "installment"
9382
+ ];
9383
+ };
9384
+ readonly childrenCount: {
9385
+ readonly type: "integer";
9386
+ readonly minimum: 0;
9387
+ };
9388
+ readonly hasPets: {
9389
+ readonly type: "boolean";
9390
+ };
9391
+ readonly carsCount: {
9392
+ readonly type: "integer";
9393
+ readonly minimum: 0;
9394
+ };
9395
+ readonly birthDate: {
9396
+ readonly type: "string";
9397
+ readonly format: "date-time";
9398
+ };
9399
+ readonly notes: {
9400
+ readonly type: "string";
9401
+ };
9402
+ };
9403
+ };
9404
+ };
9405
+ };
9406
+ };
9407
+ readonly responses: {
9408
+ readonly 200: {
9409
+ readonly description: "Customer updated successfully.";
9410
+ readonly content: {
9411
+ readonly "application/json": {
9412
+ readonly schema: {
9413
+ readonly $ref: "#/components/schemas/UpdateCustomerSuccess";
9414
+ };
9415
+ };
9416
+ };
9417
+ };
9418
+ readonly 400: {
9419
+ readonly description: "Invalid request payload or unsupported workspace category.";
9420
+ readonly content: {
9421
+ readonly "application/json": {
9422
+ readonly schema: {
9423
+ readonly $ref: "#/components/schemas/ErrorResponse";
9424
+ };
9425
+ };
9426
+ };
9427
+ };
9428
+ readonly 404: {
9429
+ readonly description: "Customer or workspace not found.";
9430
+ readonly content: {
9431
+ readonly "application/json": {
9432
+ readonly schema: {
9433
+ readonly $ref: "#/components/schemas/ErrorResponse";
9434
+ };
9435
+ };
9436
+ };
9437
+ };
9438
+ readonly 401: {
9439
+ readonly description: "Unauthorized - Missing or invalid access token.";
9440
+ readonly content: {
9441
+ readonly "application/json": {
9442
+ readonly schema: {
9443
+ readonly $ref: "#/components/schemas/ErrorResponse";
9444
+ };
9445
+ };
9446
+ };
9447
+ };
9448
+ readonly 403: {
9449
+ readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, write access to crm::customers, or billing access for customers.";
9450
+ readonly content: {
9451
+ readonly "application/json": {
9452
+ readonly schema: {
9453
+ readonly $ref: "#/components/schemas/ErrorResponse";
9454
+ };
9455
+ };
9456
+ };
9457
+ };
9458
+ };
9459
+ };
9460
+ };
9461
+ readonly "/customers/get/{workspace}/{customerId}": {
9462
+ readonly get: {
9463
+ readonly tags: readonly [
9464
+ "Customers"
9465
+ ];
9466
+ readonly summary: "Get a customer by ID";
9467
+ readonly description: "Returns a single customer by ID within the workspace. Real-estate workspaces read from customer_real_estates. Requires workspace access and read access to crm::customers resource.";
9468
+ readonly security: readonly [
9469
+ never
9470
+ ];
9471
+ readonly parameters: readonly [
9472
+ {
9473
+ readonly name: "workspace";
9474
+ readonly in: "path";
9475
+ readonly required: true;
9476
+ readonly schema: {
9477
+ readonly type: "string";
9478
+ readonly format: "uuid";
9479
+ };
9480
+ readonly description: "Workspace identifier.";
9481
+ },
9482
+ {
9483
+ readonly name: "customerId";
9484
+ readonly in: "path";
9485
+ readonly required: true;
9486
+ readonly schema: {
9487
+ readonly type: "string";
9488
+ readonly format: "uuid";
9489
+ };
9490
+ readonly description: "Customer identifier.";
9491
+ }
9492
+ ];
9493
+ readonly responses: {
9494
+ readonly 200: {
9495
+ readonly description: "Customer fetched successfully.";
9496
+ readonly content: {
9497
+ readonly "application/json": {
9498
+ readonly schema: {
9499
+ readonly $ref: "#/components/schemas/GetCustomerSuccess";
9500
+ };
9501
+ };
9502
+ };
9503
+ };
9504
+ readonly 400: {
9505
+ readonly description: "Unsupported workspace category.";
9506
+ readonly content: {
9507
+ readonly "application/json": {
9508
+ readonly schema: {
9509
+ readonly $ref: "#/components/schemas/ErrorResponse";
9510
+ };
9511
+ };
9512
+ };
9513
+ };
9514
+ readonly 404: {
9515
+ readonly description: "Customer or workspace not found.";
9516
+ readonly content: {
9517
+ readonly "application/json": {
9518
+ readonly schema: {
9519
+ readonly $ref: "#/components/schemas/ErrorResponse";
9520
+ };
9521
+ };
9522
+ };
9523
+ };
9524
+ readonly 401: {
9525
+ readonly description: "Unauthorized - Missing or invalid access token.";
9526
+ readonly content: {
9527
+ readonly "application/json": {
9528
+ readonly schema: {
9529
+ readonly $ref: "#/components/schemas/ErrorResponse";
9530
+ };
9531
+ };
9532
+ };
9533
+ };
9534
+ readonly 403: {
9535
+ readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::customers resource.";
9536
+ readonly content: {
9537
+ readonly "application/json": {
9538
+ readonly schema: {
9539
+ readonly $ref: "#/components/schemas/ErrorResponse";
9540
+ };
9541
+ };
9542
+ };
9543
+ };
9544
+ };
9545
+ };
9546
+ };
9547
+ readonly "/customers/list/{workspace}": {
9548
+ readonly get: {
9549
+ readonly tags: readonly [
9550
+ "Customers"
9551
+ ];
9552
+ readonly summary: "List customers in workspace";
9553
+ readonly description: "Returns all customers in the specified workspace. Real-estate workspaces list leads from customer_real_estates. Requires workspace access and read access to crm::customers resource.";
9554
+ readonly security: readonly [
9555
+ never
9556
+ ];
9557
+ readonly parameters: readonly [
9558
+ {
9559
+ readonly name: "workspace";
9560
+ readonly in: "path";
9561
+ readonly required: true;
9562
+ readonly description: "Workspace identifier where customers belong.";
9563
+ readonly schema: {
9564
+ readonly type: "string";
9565
+ readonly format: "uuid";
9566
+ };
9567
+ }
9568
+ ];
9569
+ readonly responses: {
9570
+ readonly 200: {
9571
+ readonly description: "Customers fetched successfully.";
9572
+ readonly content: {
9573
+ readonly "application/json": {
9574
+ readonly schema: {
9575
+ readonly $ref: "#/components/schemas/ListCustomersSuccess";
9576
+ };
9577
+ };
9578
+ };
9579
+ };
9580
+ readonly 400: {
9581
+ readonly description: "Unsupported workspace category.";
9582
+ readonly content: {
9583
+ readonly "application/json": {
9584
+ readonly schema: {
9585
+ readonly $ref: "#/components/schemas/ErrorResponse";
9586
+ };
9587
+ };
9588
+ };
9589
+ };
9590
+ readonly 404: {
9591
+ readonly description: "Workspace not found.";
9592
+ readonly content: {
9593
+ readonly "application/json": {
9594
+ readonly schema: {
9595
+ readonly $ref: "#/components/schemas/ErrorResponse";
9596
+ };
9597
+ };
9598
+ };
9599
+ };
9600
+ readonly 401: {
9601
+ readonly description: "Unauthorized - Missing or invalid access token.";
9602
+ readonly content: {
9603
+ readonly "application/json": {
9604
+ readonly schema: {
9605
+ readonly $ref: "#/components/schemas/ErrorResponse";
9606
+ };
9607
+ };
9608
+ };
9609
+ };
9610
+ readonly 403: {
9611
+ readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::customers resource.";
9612
+ readonly content: {
9613
+ readonly "application/json": {
9614
+ readonly schema: {
9615
+ readonly $ref: "#/components/schemas/ErrorResponse";
9616
+ };
9617
+ };
9618
+ };
9619
+ };
9620
+ };
9621
+ };
9622
+ };
9623
+ readonly "/customers/delete": {
9624
+ readonly post: {
9625
+ readonly tags: readonly [
9626
+ "Customers"
9627
+ ];
9628
+ readonly summary: "Delete a customer";
9629
+ readonly description: "Deletes a customer in the specified workspace. Real-estate workspaces remove a lead from customer_real_estates. Requires workspace access and write access to crm::customers resource.";
9630
+ readonly security: readonly [
9631
+ never
9632
+ ];
9633
+ readonly requestBody: {
9634
+ readonly required: true;
9635
+ readonly content: {
9636
+ readonly "application/json": {
9637
+ readonly schema: {
9638
+ readonly type: "object";
9639
+ readonly required: readonly [
9640
+ "customerId",
9641
+ "workspace"
9642
+ ];
9643
+ readonly properties: {
9644
+ readonly customerId: {
9645
+ readonly type: "string";
9646
+ readonly format: "uuid";
9647
+ readonly description: "Customer identifier.";
9648
+ };
9649
+ readonly workspace: {
9650
+ readonly type: "string";
9651
+ readonly format: "uuid";
9652
+ readonly description: "Workspace identifier.";
9653
+ };
9654
+ };
9655
+ };
9656
+ };
9657
+ };
9658
+ };
9659
+ readonly responses: {
9660
+ readonly 200: {
9661
+ readonly description: "Customer deleted successfully.";
9662
+ readonly content: {
9663
+ readonly "application/json": {
9664
+ readonly schema: {
9665
+ readonly $ref: "#/components/schemas/SimpleSuccess";
9666
+ };
9667
+ };
9668
+ };
9669
+ };
9670
+ readonly 400: {
9671
+ readonly description: "Invalid request payload or unsupported workspace category.";
9672
+ readonly content: {
9673
+ readonly "application/json": {
9674
+ readonly schema: {
9675
+ readonly $ref: "#/components/schemas/ErrorResponse";
9676
+ };
9677
+ };
9678
+ };
9679
+ };
9680
+ readonly 404: {
9681
+ readonly description: "Customer or workspace not found.";
9682
+ readonly content: {
9683
+ readonly "application/json": {
9684
+ readonly schema: {
9685
+ readonly $ref: "#/components/schemas/ErrorResponse";
9686
+ };
9687
+ };
9688
+ };
9689
+ };
9690
+ readonly 401: {
9691
+ readonly description: "Unauthorized - Missing or invalid access token.";
9692
+ readonly content: {
9693
+ readonly "application/json": {
9694
+ readonly schema: {
9695
+ readonly $ref: "#/components/schemas/ErrorResponse";
9696
+ };
9697
+ };
9698
+ };
9699
+ };
9700
+ readonly 403: {
9701
+ readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks write access to crm::customers resource.";
9702
+ readonly content: {
9703
+ readonly "application/json": {
9704
+ readonly schema: {
9705
+ readonly $ref: "#/components/schemas/ErrorResponse";
9706
+ };
9707
+ };
9708
+ };
9709
+ };
9710
+ };
9711
+ };
9712
+ };
9713
+ readonly "/customers/get-tasks/{workspace}/{customerId}": {
9714
+ readonly get: {
9715
+ readonly tags: readonly [
9716
+ "Customers"
9717
+ ];
9718
+ readonly summary: "List tasks for a customer";
9719
+ readonly description: "Returns tasks linked to the specified customer in the workspace. Requires workspace access and read access to crm::tasks resource.";
9720
+ readonly security: readonly [
9721
+ never
9722
+ ];
9723
+ readonly parameters: readonly [
9724
+ {
9725
+ readonly name: "workspace";
9726
+ readonly in: "path";
9727
+ readonly required: true;
9728
+ readonly schema: {
9729
+ readonly type: "string";
9730
+ readonly format: "uuid";
9731
+ };
9732
+ readonly description: "Workspace identifier.";
9733
+ },
9734
+ {
9735
+ readonly name: "customerId";
9736
+ readonly in: "path";
9737
+ readonly required: true;
9738
+ readonly schema: {
9739
+ readonly type: "string";
9740
+ readonly format: "uuid";
9741
+ };
9742
+ readonly description: "Customer identifier.";
9743
+ }
9744
+ ];
9745
+ readonly responses: {
9746
+ readonly 200: {
9747
+ readonly description: "Tasks fetched successfully.";
9748
+ readonly content: {
9749
+ readonly "application/json": {
9750
+ readonly schema: {
9751
+ readonly $ref: "#/components/schemas/ListTasksSuccess";
9752
+ };
9753
+ };
9754
+ };
9755
+ };
9756
+ readonly 400: {
9757
+ readonly description: "Unsupported workspace category.";
9758
+ readonly content: {
9759
+ readonly "application/json": {
9760
+ readonly schema: {
9761
+ readonly $ref: "#/components/schemas/ErrorResponse";
9762
+ };
9763
+ };
9764
+ };
9765
+ };
9766
+ readonly 404: {
9767
+ readonly description: "Customer or workspace not found.";
9768
+ readonly content: {
9769
+ readonly "application/json": {
9770
+ readonly schema: {
9771
+ readonly $ref: "#/components/schemas/ErrorResponse";
9772
+ };
9773
+ };
9774
+ };
9775
+ };
9776
+ readonly 401: {
9777
+ readonly description: "Unauthorized - Missing or invalid access token.";
9778
+ readonly content: {
9779
+ readonly "application/json": {
9780
+ readonly schema: {
9781
+ readonly $ref: "#/components/schemas/ErrorResponse";
9782
+ };
9783
+ };
9784
+ };
9785
+ };
9786
+ readonly 403: {
9787
+ readonly description: "Forbidden - Token issuer is not 'access', user lacks workspace access, or user lacks read access to crm::tasks resource.";
9788
+ readonly content: {
9789
+ readonly "application/json": {
9790
+ readonly schema: {
9791
+ readonly $ref: "#/components/schemas/ErrorResponse";
9792
+ };
9793
+ };
9794
+ };
9795
+ };
9796
+ };
9797
+ };
9798
+ };
9250
9799
  readonly "/services/create": {
9251
9800
  readonly post: {
9252
9801
  readonly tags: readonly [
@@ -15683,6 +16232,18 @@ declare const routes: import("hono/hono-base").HonoBase<{
15683
16232
  } & {
15684
16233
  "/list/:workspace": {
15685
16234
  $get: {
16235
+ input: {
16236
+ param: {
16237
+ workspace: string;
16238
+ };
16239
+ };
16240
+ output: {
16241
+ success: false;
16242
+ error: string;
16243
+ };
16244
+ outputFormat: "json";
16245
+ status: 404;
16246
+ } | {
15686
16247
  input: {
15687
16248
  param: {
15688
16249
  workspace: string;
@@ -15698,22 +16259,47 @@ declare const routes: import("hono/hono-base").HonoBase<{
15698
16259
  created_at: string;
15699
16260
  id: string;
15700
16261
  workspaceId: string;
15701
- name: string;
15702
- email: string | null;
15703
- website: string | null;
15704
16262
  type: string | null;
15705
- description: string | null;
15706
- active: boolean | null;
16263
+ name: string;
16264
+ companyName: string | null;
15707
16265
  phone: string | null;
15708
- companyPhone: string | null;
15709
- companyAddress: string | null;
15710
- address: string | null;
16266
+ telegram: string | null;
16267
+ whatsapp: string | null;
16268
+ email: string | null;
16269
+ leadSource: string | null;
16270
+ budgetMin: number | null;
16271
+ budgetMax: number | null;
16272
+ inHandBudget: number | null;
16273
+ installmentBudget: number | null;
16274
+ minArea: number | null;
16275
+ maxArea: number | null;
16276
+ roomsCount: number | null;
16277
+ preferredDistricts: string[] | null;
16278
+ propertyType: string | null;
16279
+ maxMetroDistance: number | null;
16280
+ dealStatus: string | null;
16281
+ preferredPaymentMethod: string | null;
16282
+ childrenCount: number | null;
16283
+ hasPets: boolean | null;
16284
+ carsCount: number | null;
15711
16285
  birthDate: string | null;
15712
- utmSource: string | null;
16286
+ notes: string | null;
15713
16287
  }[];
15714
16288
  };
15715
16289
  outputFormat: "json";
15716
16290
  status: 200;
16291
+ } | {
16292
+ input: {
16293
+ param: {
16294
+ workspace: string;
16295
+ };
16296
+ };
16297
+ output: {
16298
+ success: false;
16299
+ error: string;
16300
+ };
16301
+ outputFormat: "json";
16302
+ status: 400;
15717
16303
  };
15718
16304
  };
15719
16305
  } & {
@@ -15750,22 +16336,49 @@ declare const routes: import("hono/hono-base").HonoBase<{
15750
16336
  created_at: string;
15751
16337
  id: string;
15752
16338
  workspaceId: string;
15753
- name: string;
15754
- email: string | null;
15755
- website: string | null;
15756
16339
  type: string | null;
15757
- description: string | null;
15758
- active: boolean | null;
16340
+ name: string;
16341
+ companyName: string | null;
15759
16342
  phone: string | null;
15760
- companyPhone: string | null;
15761
- companyAddress: string | null;
15762
- address: string | null;
16343
+ telegram: string | null;
16344
+ whatsapp: string | null;
16345
+ email: string | null;
16346
+ leadSource: string | null;
16347
+ budgetMin: number | null;
16348
+ budgetMax: number | null;
16349
+ inHandBudget: number | null;
16350
+ installmentBudget: number | null;
16351
+ minArea: number | null;
16352
+ maxArea: number | null;
16353
+ roomsCount: number | null;
16354
+ preferredDistricts: string[] | null;
16355
+ propertyType: string | null;
16356
+ maxMetroDistance: number | null;
16357
+ dealStatus: string | null;
16358
+ preferredPaymentMethod: string | null;
16359
+ childrenCount: number | null;
16360
+ hasPets: boolean | null;
16361
+ carsCount: number | null;
15763
16362
  birthDate: string | null;
15764
- utmSource: string | null;
15765
- }[];
16363
+ notes: string | null;
16364
+ };
15766
16365
  };
15767
16366
  outputFormat: "json";
15768
16367
  status: 200;
16368
+ } | {
16369
+ input: {
16370
+ param: {
16371
+ workspace: string;
16372
+ } & {
16373
+ customerId: string;
16374
+ };
16375
+ };
16376
+ output: {
16377
+ success: false;
16378
+ error: string;
16379
+ };
16380
+ outputFormat: "json";
16381
+ status: 400;
15769
16382
  };
15770
16383
  };
15771
16384
  } & {
@@ -15774,25 +16387,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
15774
16387
  input: {};
15775
16388
  output: {
15776
16389
  success: false;
15777
- error: never;
16390
+ error: string;
15778
16391
  };
15779
16392
  outputFormat: "json";
15780
- status: 400;
16393
+ status: 404;
15781
16394
  } | {
15782
16395
  input: {};
15783
16396
  output: {
15784
- success: false;
15785
- error: string;
16397
+ success: true;
15786
16398
  };
15787
16399
  outputFormat: "json";
15788
- status: 404;
16400
+ status: 200;
15789
16401
  } | {
15790
16402
  input: {};
15791
16403
  output: {
15792
- success: true;
16404
+ success: false;
16405
+ error: string;
15793
16406
  };
15794
16407
  outputFormat: "json";
15795
- status: 200;
16408
+ status: 400;
15796
16409
  };
15797
16410
  };
15798
16411
  } & {
@@ -15801,10 +16414,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
15801
16414
  input: {};
15802
16415
  output: {
15803
16416
  success: false;
15804
- error: never;
16417
+ error: string;
15805
16418
  };
15806
16419
  outputFormat: "json";
15807
- status: 400;
16420
+ status: 404;
15808
16421
  } | {
15809
16422
  input: {};
15810
16423
  output: {
@@ -15812,7 +16425,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
15812
16425
  error: string;
15813
16426
  };
15814
16427
  outputFormat: "json";
15815
- status: 404;
16428
+ status: 400;
15816
16429
  } | {
15817
16430
  input: {};
15818
16431
  output: {
@@ -15825,19 +16438,32 @@ declare const routes: import("hono/hono-base").HonoBase<{
15825
16438
  created_at: string;
15826
16439
  id: string;
15827
16440
  workspaceId: string;
15828
- name: string;
15829
- email: string | null;
15830
- website: string | null;
15831
16441
  type: string | null;
15832
- description: string | null;
15833
- active: boolean | null;
16442
+ name: string;
16443
+ companyName: string | null;
15834
16444
  phone: string | null;
15835
- companyPhone: string | null;
15836
- companyAddress: string | null;
15837
- address: string | null;
16445
+ telegram: string | null;
16446
+ whatsapp: string | null;
16447
+ email: string | null;
16448
+ leadSource: string | null;
16449
+ budgetMin: number | null;
16450
+ budgetMax: number | null;
16451
+ inHandBudget: number | null;
16452
+ installmentBudget: number | null;
16453
+ minArea: number | null;
16454
+ maxArea: number | null;
16455
+ roomsCount: number | null;
16456
+ preferredDistricts: string[] | null;
16457
+ propertyType: string | null;
16458
+ maxMetroDistance: number | null;
16459
+ dealStatus: string | null;
16460
+ preferredPaymentMethod: string | null;
16461
+ childrenCount: number | null;
16462
+ hasPets: boolean | null;
16463
+ carsCount: number | null;
15838
16464
  birthDate: string | null;
15839
- utmSource: string | null;
15840
- };
16465
+ notes: string | null;
16466
+ }[];
15841
16467
  };
15842
16468
  outputFormat: "json";
15843
16469
  status: 200;
@@ -15846,6 +16472,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
15846
16472
  } & {
15847
16473
  "/get-tasks/:workspace/:customerId": {
15848
16474
  $get: {
16475
+ input: {
16476
+ param: {
16477
+ workspace: string;
16478
+ } & {
16479
+ customerId: string;
16480
+ };
16481
+ };
16482
+ output: {
16483
+ success: false;
16484
+ error: string;
16485
+ };
16486
+ outputFormat: "json";
16487
+ status: 404;
16488
+ } | {
15849
16489
  input: {
15850
16490
  param: {
15851
16491
  workspace: string;
@@ -15870,6 +16510,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
15870
16510
  };
15871
16511
  outputFormat: "json";
15872
16512
  status: 200;
16513
+ } | {
16514
+ input: {
16515
+ param: {
16516
+ workspace: string;
16517
+ } & {
16518
+ customerId: string;
16519
+ };
16520
+ };
16521
+ output: {
16522
+ success: false;
16523
+ error: string;
16524
+ };
16525
+ outputFormat: "json";
16526
+ status: 400;
15873
16527
  };
15874
16528
  };
15875
16529
  }, "/customers"> | import("hono/types").MergeSchemaPath<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.98",
3
+ "version": "0.0.99",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,