@mestra-dev/contract 0.0.100 → 0.0.102
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 +119 -47
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2950,7 +2950,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
2950
2950
|
};
|
|
2951
2951
|
readonly customer: {
|
|
2952
2952
|
readonly nullable: true;
|
|
2953
|
-
readonly description: "Customer associated with the task, if any.";
|
|
2953
|
+
readonly description: "Customer associated with the task, if any. Real-estate workspaces return the customer_real_estates lead.";
|
|
2954
2954
|
readonly allOf: readonly [
|
|
2955
2955
|
{
|
|
2956
2956
|
readonly $ref: "#/components/schemas/Customer";
|
|
@@ -3297,6 +3297,18 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3297
3297
|
readonly type: "string";
|
|
3298
3298
|
readonly nullable: true;
|
|
3299
3299
|
};
|
|
3300
|
+
readonly housingType: {
|
|
3301
|
+
readonly type: "string";
|
|
3302
|
+
readonly nullable: true;
|
|
3303
|
+
};
|
|
3304
|
+
readonly commercialType: {
|
|
3305
|
+
readonly type: "string";
|
|
3306
|
+
readonly nullable: true;
|
|
3307
|
+
};
|
|
3308
|
+
readonly landType: {
|
|
3309
|
+
readonly type: "string";
|
|
3310
|
+
readonly nullable: true;
|
|
3311
|
+
};
|
|
3300
3312
|
readonly maxMetroDistance: {
|
|
3301
3313
|
readonly type: "integer";
|
|
3302
3314
|
readonly nullable: true;
|
|
@@ -8336,7 +8348,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8336
8348
|
"Tasks"
|
|
8337
8349
|
];
|
|
8338
8350
|
readonly summary: "Assign a customer to a task";
|
|
8339
|
-
readonly description: "Assigns a customer to an existing task in the specified workspace. Requires workspace access and write access to crm::tasks resource.";
|
|
8351
|
+
readonly description: "Assigns a category-specific customer to an existing task in the specified workspace. Real-estate workspaces resolve the customer from customer_real_estates. Requires workspace access and write access to crm::tasks resource.";
|
|
8340
8352
|
readonly security: readonly [
|
|
8341
8353
|
never
|
|
8342
8354
|
];
|
|
@@ -8373,7 +8385,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8373
8385
|
};
|
|
8374
8386
|
};
|
|
8375
8387
|
readonly responses: {
|
|
8376
|
-
readonly
|
|
8388
|
+
readonly 200: {
|
|
8377
8389
|
readonly description: "Customer assigned to task successfully.";
|
|
8378
8390
|
readonly content: {
|
|
8379
8391
|
readonly "application/json": {
|
|
@@ -8384,7 +8396,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8384
8396
|
};
|
|
8385
8397
|
};
|
|
8386
8398
|
readonly 400: {
|
|
8387
|
-
readonly description: "Invalid request payload.";
|
|
8399
|
+
readonly description: "Invalid request payload or unsupported workspace category.";
|
|
8388
8400
|
readonly content: {
|
|
8389
8401
|
readonly "application/json": {
|
|
8390
8402
|
readonly schema: {
|
|
@@ -8414,7 +8426,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8414
8426
|
};
|
|
8415
8427
|
};
|
|
8416
8428
|
readonly 404: {
|
|
8417
|
-
readonly description: "
|
|
8429
|
+
readonly description: "Workspace, customer, or task not found.";
|
|
8418
8430
|
readonly content: {
|
|
8419
8431
|
readonly "application/json": {
|
|
8420
8432
|
readonly schema: {
|
|
@@ -8432,7 +8444,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8432
8444
|
"Tasks"
|
|
8433
8445
|
];
|
|
8434
8446
|
readonly summary: "Remove a customer from a task";
|
|
8435
|
-
readonly description: "Removes the customer association from an existing task in the specified workspace. Requires workspace access and write access to crm::tasks resource.";
|
|
8447
|
+
readonly description: "Removes the customer association from an existing task in the specified workspace. Real-estate workspaces resolve the customer from customer_real_estates. Requires workspace access and write access to crm::tasks resource.";
|
|
8436
8448
|
readonly security: readonly [
|
|
8437
8449
|
never
|
|
8438
8450
|
];
|
|
@@ -8480,7 +8492,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8480
8492
|
};
|
|
8481
8493
|
};
|
|
8482
8494
|
readonly 400: {
|
|
8483
|
-
readonly description: "Invalid request payload.";
|
|
8495
|
+
readonly description: "Invalid request payload or unsupported workspace category.";
|
|
8484
8496
|
readonly content: {
|
|
8485
8497
|
readonly "application/json": {
|
|
8486
8498
|
readonly schema: {
|
|
@@ -8510,7 +8522,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8510
8522
|
};
|
|
8511
8523
|
};
|
|
8512
8524
|
readonly 404: {
|
|
8513
|
-
readonly description: "
|
|
8525
|
+
readonly description: "Workspace, customer, or task not found.";
|
|
8514
8526
|
readonly content: {
|
|
8515
8527
|
readonly "application/json": {
|
|
8516
8528
|
readonly schema: {
|
|
@@ -9344,6 +9356,15 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9344
9356
|
readonly propertyType: {
|
|
9345
9357
|
readonly type: "string";
|
|
9346
9358
|
};
|
|
9359
|
+
readonly housingType: {
|
|
9360
|
+
readonly type: "string";
|
|
9361
|
+
};
|
|
9362
|
+
readonly commercialType: {
|
|
9363
|
+
readonly type: "string";
|
|
9364
|
+
};
|
|
9365
|
+
readonly landType: {
|
|
9366
|
+
readonly type: "string";
|
|
9367
|
+
};
|
|
9347
9368
|
readonly maxMetroDistance: {
|
|
9348
9369
|
readonly type: "number";
|
|
9349
9370
|
readonly minimum: 0;
|
|
@@ -9545,6 +9566,15 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9545
9566
|
readonly propertyType: {
|
|
9546
9567
|
readonly type: "string";
|
|
9547
9568
|
};
|
|
9569
|
+
readonly housingType: {
|
|
9570
|
+
readonly type: "string";
|
|
9571
|
+
};
|
|
9572
|
+
readonly commercialType: {
|
|
9573
|
+
readonly type: "string";
|
|
9574
|
+
};
|
|
9575
|
+
readonly landType: {
|
|
9576
|
+
readonly type: "string";
|
|
9577
|
+
};
|
|
9548
9578
|
readonly maxMetroDistance: {
|
|
9549
9579
|
readonly type: "number";
|
|
9550
9580
|
readonly minimum: 0;
|
|
@@ -12068,7 +12098,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12068
12098
|
"Tags"
|
|
12069
12099
|
];
|
|
12070
12100
|
readonly summary: "Assign a tag to a customer";
|
|
12071
|
-
readonly description: "Links an existing workspace tag to a customer. Requires workspace access and write access to crm::customers resource.";
|
|
12101
|
+
readonly description: "Links an existing workspace tag to a category-specific customer. Real-estate workspaces resolve the customer from customer_real_estates. Requires workspace access and write access to crm::customers resource.";
|
|
12072
12102
|
readonly security: readonly [
|
|
12073
12103
|
never
|
|
12074
12104
|
];
|
|
@@ -12116,7 +12146,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12116
12146
|
};
|
|
12117
12147
|
};
|
|
12118
12148
|
readonly 400: {
|
|
12119
|
-
readonly description: "Invalid request payload.";
|
|
12149
|
+
readonly description: "Invalid request payload or unsupported workspace category.";
|
|
12120
12150
|
readonly content: {
|
|
12121
12151
|
readonly "application/json": {
|
|
12122
12152
|
readonly schema: {
|
|
@@ -12146,7 +12176,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12146
12176
|
};
|
|
12147
12177
|
};
|
|
12148
12178
|
readonly 404: {
|
|
12149
|
-
readonly description: "
|
|
12179
|
+
readonly description: "Workspace, tag, or customer not found.";
|
|
12150
12180
|
readonly content: {
|
|
12151
12181
|
readonly "application/json": {
|
|
12152
12182
|
readonly schema: {
|
|
@@ -12164,7 +12194,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12164
12194
|
"Tags"
|
|
12165
12195
|
];
|
|
12166
12196
|
readonly summary: "Remove a tag from a customer";
|
|
12167
|
-
readonly description: "Unlinks a tag from a customer. Requires workspace access and write access to crm::customers resource.";
|
|
12197
|
+
readonly description: "Unlinks a tag from a category-specific customer. Real-estate workspaces resolve the customer from customer_real_estates. Requires workspace access and write access to crm::customers resource.";
|
|
12168
12198
|
readonly security: readonly [
|
|
12169
12199
|
never
|
|
12170
12200
|
];
|
|
@@ -12212,7 +12242,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12212
12242
|
};
|
|
12213
12243
|
};
|
|
12214
12244
|
readonly 400: {
|
|
12215
|
-
readonly description: "Invalid request payload.";
|
|
12245
|
+
readonly description: "Invalid request payload or unsupported workspace category.";
|
|
12216
12246
|
readonly content: {
|
|
12217
12247
|
readonly "application/json": {
|
|
12218
12248
|
readonly schema: {
|
|
@@ -12242,7 +12272,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12242
12272
|
};
|
|
12243
12273
|
};
|
|
12244
12274
|
readonly 404: {
|
|
12245
|
-
readonly description: "
|
|
12275
|
+
readonly description: "Workspace, tag, or customer not found.";
|
|
12246
12276
|
readonly content: {
|
|
12247
12277
|
readonly "application/json": {
|
|
12248
12278
|
readonly schema: {
|
|
@@ -15980,11 +16010,41 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
15980
16010
|
profilePicture: string | null;
|
|
15981
16011
|
}[];
|
|
15982
16012
|
customer: {
|
|
16013
|
+
updated_at: string | null;
|
|
16014
|
+
deleted_at: string | null;
|
|
16015
|
+
verified_at: string | null;
|
|
16016
|
+
suspended_at: string | null;
|
|
16017
|
+
created_at: string;
|
|
15983
16018
|
id: string;
|
|
16019
|
+
workspaceId: string;
|
|
16020
|
+
type: string | null;
|
|
15984
16021
|
name: string;
|
|
15985
|
-
|
|
16022
|
+
companyName: string | null;
|
|
15986
16023
|
phone: string | null;
|
|
15987
|
-
|
|
16024
|
+
telegram: string | null;
|
|
16025
|
+
whatsapp: string | null;
|
|
16026
|
+
email: string | null;
|
|
16027
|
+
leadSource: string | null;
|
|
16028
|
+
budgetMin: number | null;
|
|
16029
|
+
budgetMax: number | null;
|
|
16030
|
+
inHandBudget: number | null;
|
|
16031
|
+
installmentBudget: number | null;
|
|
16032
|
+
minArea: number | null;
|
|
16033
|
+
maxArea: number | null;
|
|
16034
|
+
roomsCount: number | null;
|
|
16035
|
+
preferredDistricts: string[] | null;
|
|
16036
|
+
propertyType: string | null;
|
|
16037
|
+
housingType: string | null;
|
|
16038
|
+
commercialType: string | null;
|
|
16039
|
+
landType: string | null;
|
|
16040
|
+
maxMetroDistance: number | null;
|
|
16041
|
+
dealStatus: string | null;
|
|
16042
|
+
preferredPaymentMethod: string | null;
|
|
16043
|
+
childrenCount: number | null;
|
|
16044
|
+
hasPets: boolean | null;
|
|
16045
|
+
carsCount: number | null;
|
|
16046
|
+
birthDate: string | null;
|
|
16047
|
+
notes: string | null;
|
|
15988
16048
|
}[];
|
|
15989
16049
|
};
|
|
15990
16050
|
outputFormat: "json";
|
|
@@ -16040,25 +16100,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16040
16100
|
input: {};
|
|
16041
16101
|
output: {
|
|
16042
16102
|
success: false;
|
|
16043
|
-
error:
|
|
16103
|
+
error: string;
|
|
16044
16104
|
};
|
|
16045
16105
|
outputFormat: "json";
|
|
16046
|
-
status:
|
|
16106
|
+
status: 404;
|
|
16047
16107
|
} | {
|
|
16048
16108
|
input: {};
|
|
16049
16109
|
output: {
|
|
16050
|
-
success:
|
|
16051
|
-
error: string;
|
|
16110
|
+
success: true;
|
|
16052
16111
|
};
|
|
16053
16112
|
outputFormat: "json";
|
|
16054
|
-
status:
|
|
16113
|
+
status: 200;
|
|
16055
16114
|
} | {
|
|
16056
16115
|
input: {};
|
|
16057
16116
|
output: {
|
|
16058
|
-
success:
|
|
16117
|
+
success: false;
|
|
16118
|
+
error: string;
|
|
16059
16119
|
};
|
|
16060
16120
|
outputFormat: "json";
|
|
16061
|
-
status:
|
|
16121
|
+
status: 400;
|
|
16062
16122
|
};
|
|
16063
16123
|
};
|
|
16064
16124
|
} & {
|
|
@@ -16067,25 +16127,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16067
16127
|
input: {};
|
|
16068
16128
|
output: {
|
|
16069
16129
|
success: false;
|
|
16070
|
-
error:
|
|
16130
|
+
error: string;
|
|
16071
16131
|
};
|
|
16072
16132
|
outputFormat: "json";
|
|
16073
|
-
status:
|
|
16133
|
+
status: 404;
|
|
16074
16134
|
} | {
|
|
16075
16135
|
input: {};
|
|
16076
16136
|
output: {
|
|
16077
|
-
success:
|
|
16078
|
-
error: string;
|
|
16137
|
+
success: true;
|
|
16079
16138
|
};
|
|
16080
16139
|
outputFormat: "json";
|
|
16081
|
-
status:
|
|
16140
|
+
status: 200;
|
|
16082
16141
|
} | {
|
|
16083
16142
|
input: {};
|
|
16084
16143
|
output: {
|
|
16085
|
-
success:
|
|
16144
|
+
success: false;
|
|
16145
|
+
error: string;
|
|
16086
16146
|
};
|
|
16087
16147
|
outputFormat: "json";
|
|
16088
|
-
status:
|
|
16148
|
+
status: 400;
|
|
16089
16149
|
};
|
|
16090
16150
|
};
|
|
16091
16151
|
}, "/tasks"> | import("hono/types").MergeSchemaPath<{
|
|
@@ -16197,10 +16257,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16197
16257
|
suspended_at: string | null;
|
|
16198
16258
|
roomsCount: number | null;
|
|
16199
16259
|
propertyType: string | null;
|
|
16200
|
-
propertyStatus: string | null;
|
|
16201
16260
|
commercialType: string | null;
|
|
16202
|
-
commercialClass: string | null;
|
|
16203
16261
|
landType: string | null;
|
|
16262
|
+
propertyStatus: string | null;
|
|
16263
|
+
commercialClass: string | null;
|
|
16204
16264
|
ownershipType: string | null;
|
|
16205
16265
|
loadingDockAccess: boolean | null;
|
|
16206
16266
|
waterAccess: boolean | null;
|
|
@@ -16587,7 +16647,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16587
16647
|
verified_at: string | null;
|
|
16588
16648
|
suspended_at: string | null;
|
|
16589
16649
|
phone: string | null;
|
|
16590
|
-
birthDate: string | null;
|
|
16591
16650
|
telegram: string | null;
|
|
16592
16651
|
whatsapp: string | null;
|
|
16593
16652
|
leadSource: string | null;
|
|
@@ -16600,12 +16659,16 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16600
16659
|
roomsCount: number | null;
|
|
16601
16660
|
preferredDistricts: string[] | null;
|
|
16602
16661
|
propertyType: string | null;
|
|
16662
|
+
housingType: string | null;
|
|
16663
|
+
commercialType: string | null;
|
|
16664
|
+
landType: string | null;
|
|
16603
16665
|
maxMetroDistance: number | null;
|
|
16604
16666
|
dealStatus: string | null;
|
|
16605
16667
|
preferredPaymentMethod: string | null;
|
|
16606
16668
|
childrenCount: number | null;
|
|
16607
16669
|
hasPets: boolean | null;
|
|
16608
16670
|
carsCount: number | null;
|
|
16671
|
+
birthDate: string | null;
|
|
16609
16672
|
notes: string | null;
|
|
16610
16673
|
}[];
|
|
16611
16674
|
};
|
|
@@ -16660,6 +16723,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16660
16723
|
roomsCount: number | null;
|
|
16661
16724
|
preferredDistricts: string[] | null;
|
|
16662
16725
|
propertyType: string | null;
|
|
16726
|
+
housingType: string | null;
|
|
16727
|
+
commercialType: string | null;
|
|
16728
|
+
landType: string | null;
|
|
16663
16729
|
maxMetroDistance: number | null;
|
|
16664
16730
|
dealStatus: string | null;
|
|
16665
16731
|
preferredPaymentMethod: string | null;
|
|
@@ -16737,6 +16803,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16737
16803
|
roomsCount: number | null;
|
|
16738
16804
|
preferredDistricts: string[] | null;
|
|
16739
16805
|
propertyType: string | null;
|
|
16806
|
+
housingType: string | null;
|
|
16807
|
+
commercialType: string | null;
|
|
16808
|
+
landType: string | null;
|
|
16740
16809
|
maxMetroDistance: number | null;
|
|
16741
16810
|
dealStatus: string | null;
|
|
16742
16811
|
preferredPaymentMethod: string | null;
|
|
@@ -16839,6 +16908,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16839
16908
|
roomsCount: number | null;
|
|
16840
16909
|
preferredDistricts: string[] | null;
|
|
16841
16910
|
propertyType: string | null;
|
|
16911
|
+
housingType: string | null;
|
|
16912
|
+
commercialType: string | null;
|
|
16913
|
+
landType: string | null;
|
|
16842
16914
|
maxMetroDistance: number | null;
|
|
16843
16915
|
dealStatus: string | null;
|
|
16844
16916
|
preferredPaymentMethod: string | null;
|
|
@@ -17394,25 +17466,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17394
17466
|
input: {};
|
|
17395
17467
|
output: {
|
|
17396
17468
|
success: false;
|
|
17397
|
-
error:
|
|
17469
|
+
error: string;
|
|
17398
17470
|
};
|
|
17399
17471
|
outputFormat: "json";
|
|
17400
|
-
status:
|
|
17472
|
+
status: 404;
|
|
17401
17473
|
} | {
|
|
17402
17474
|
input: {};
|
|
17403
17475
|
output: {
|
|
17404
|
-
success:
|
|
17405
|
-
error: string;
|
|
17476
|
+
success: true;
|
|
17406
17477
|
};
|
|
17407
17478
|
outputFormat: "json";
|
|
17408
|
-
status:
|
|
17479
|
+
status: 200;
|
|
17409
17480
|
} | {
|
|
17410
17481
|
input: {};
|
|
17411
17482
|
output: {
|
|
17412
|
-
success:
|
|
17483
|
+
success: false;
|
|
17484
|
+
error: string;
|
|
17413
17485
|
};
|
|
17414
17486
|
outputFormat: "json";
|
|
17415
|
-
status:
|
|
17487
|
+
status: 400;
|
|
17416
17488
|
};
|
|
17417
17489
|
};
|
|
17418
17490
|
} & {
|
|
@@ -17421,25 +17493,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17421
17493
|
input: {};
|
|
17422
17494
|
output: {
|
|
17423
17495
|
success: false;
|
|
17424
|
-
error:
|
|
17496
|
+
error: string;
|
|
17425
17497
|
};
|
|
17426
17498
|
outputFormat: "json";
|
|
17427
|
-
status:
|
|
17499
|
+
status: 404;
|
|
17428
17500
|
} | {
|
|
17429
17501
|
input: {};
|
|
17430
17502
|
output: {
|
|
17431
|
-
success:
|
|
17432
|
-
error: string;
|
|
17503
|
+
success: true;
|
|
17433
17504
|
};
|
|
17434
17505
|
outputFormat: "json";
|
|
17435
|
-
status:
|
|
17506
|
+
status: 200;
|
|
17436
17507
|
} | {
|
|
17437
17508
|
input: {};
|
|
17438
17509
|
output: {
|
|
17439
|
-
success:
|
|
17510
|
+
success: false;
|
|
17511
|
+
error: string;
|
|
17440
17512
|
};
|
|
17441
17513
|
outputFormat: "json";
|
|
17442
|
-
status:
|
|
17514
|
+
status: 400;
|
|
17443
17515
|
};
|
|
17444
17516
|
};
|
|
17445
17517
|
} & {
|