@mestra-dev/contract 0.0.100 → 0.0.101
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 +72 -45
- 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";
|
|
@@ -8336,7 +8336,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8336
8336
|
"Tasks"
|
|
8337
8337
|
];
|
|
8338
8338
|
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.";
|
|
8339
|
+
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
8340
|
readonly security: readonly [
|
|
8341
8341
|
never
|
|
8342
8342
|
];
|
|
@@ -8373,7 +8373,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8373
8373
|
};
|
|
8374
8374
|
};
|
|
8375
8375
|
readonly responses: {
|
|
8376
|
-
readonly
|
|
8376
|
+
readonly 200: {
|
|
8377
8377
|
readonly description: "Customer assigned to task successfully.";
|
|
8378
8378
|
readonly content: {
|
|
8379
8379
|
readonly "application/json": {
|
|
@@ -8384,7 +8384,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8384
8384
|
};
|
|
8385
8385
|
};
|
|
8386
8386
|
readonly 400: {
|
|
8387
|
-
readonly description: "Invalid request payload.";
|
|
8387
|
+
readonly description: "Invalid request payload or unsupported workspace category.";
|
|
8388
8388
|
readonly content: {
|
|
8389
8389
|
readonly "application/json": {
|
|
8390
8390
|
readonly schema: {
|
|
@@ -8414,7 +8414,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8414
8414
|
};
|
|
8415
8415
|
};
|
|
8416
8416
|
readonly 404: {
|
|
8417
|
-
readonly description: "
|
|
8417
|
+
readonly description: "Workspace, customer, or task not found.";
|
|
8418
8418
|
readonly content: {
|
|
8419
8419
|
readonly "application/json": {
|
|
8420
8420
|
readonly schema: {
|
|
@@ -8432,7 +8432,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8432
8432
|
"Tasks"
|
|
8433
8433
|
];
|
|
8434
8434
|
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.";
|
|
8435
|
+
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
8436
|
readonly security: readonly [
|
|
8437
8437
|
never
|
|
8438
8438
|
];
|
|
@@ -8480,7 +8480,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8480
8480
|
};
|
|
8481
8481
|
};
|
|
8482
8482
|
readonly 400: {
|
|
8483
|
-
readonly description: "Invalid request payload.";
|
|
8483
|
+
readonly description: "Invalid request payload or unsupported workspace category.";
|
|
8484
8484
|
readonly content: {
|
|
8485
8485
|
readonly "application/json": {
|
|
8486
8486
|
readonly schema: {
|
|
@@ -8510,7 +8510,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8510
8510
|
};
|
|
8511
8511
|
};
|
|
8512
8512
|
readonly 404: {
|
|
8513
|
-
readonly description: "
|
|
8513
|
+
readonly description: "Workspace, customer, or task not found.";
|
|
8514
8514
|
readonly content: {
|
|
8515
8515
|
readonly "application/json": {
|
|
8516
8516
|
readonly schema: {
|
|
@@ -12068,7 +12068,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12068
12068
|
"Tags"
|
|
12069
12069
|
];
|
|
12070
12070
|
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.";
|
|
12071
|
+
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
12072
|
readonly security: readonly [
|
|
12073
12073
|
never
|
|
12074
12074
|
];
|
|
@@ -12116,7 +12116,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12116
12116
|
};
|
|
12117
12117
|
};
|
|
12118
12118
|
readonly 400: {
|
|
12119
|
-
readonly description: "Invalid request payload.";
|
|
12119
|
+
readonly description: "Invalid request payload or unsupported workspace category.";
|
|
12120
12120
|
readonly content: {
|
|
12121
12121
|
readonly "application/json": {
|
|
12122
12122
|
readonly schema: {
|
|
@@ -12146,7 +12146,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12146
12146
|
};
|
|
12147
12147
|
};
|
|
12148
12148
|
readonly 404: {
|
|
12149
|
-
readonly description: "
|
|
12149
|
+
readonly description: "Workspace, tag, or customer not found.";
|
|
12150
12150
|
readonly content: {
|
|
12151
12151
|
readonly "application/json": {
|
|
12152
12152
|
readonly schema: {
|
|
@@ -12164,7 +12164,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12164
12164
|
"Tags"
|
|
12165
12165
|
];
|
|
12166
12166
|
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.";
|
|
12167
|
+
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
12168
|
readonly security: readonly [
|
|
12169
12169
|
never
|
|
12170
12170
|
];
|
|
@@ -12212,7 +12212,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12212
12212
|
};
|
|
12213
12213
|
};
|
|
12214
12214
|
readonly 400: {
|
|
12215
|
-
readonly description: "Invalid request payload.";
|
|
12215
|
+
readonly description: "Invalid request payload or unsupported workspace category.";
|
|
12216
12216
|
readonly content: {
|
|
12217
12217
|
readonly "application/json": {
|
|
12218
12218
|
readonly schema: {
|
|
@@ -12242,7 +12242,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12242
12242
|
};
|
|
12243
12243
|
};
|
|
12244
12244
|
readonly 404: {
|
|
12245
|
-
readonly description: "
|
|
12245
|
+
readonly description: "Workspace, tag, or customer not found.";
|
|
12246
12246
|
readonly content: {
|
|
12247
12247
|
readonly "application/json": {
|
|
12248
12248
|
readonly schema: {
|
|
@@ -15980,11 +15980,38 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
15980
15980
|
profilePicture: string | null;
|
|
15981
15981
|
}[];
|
|
15982
15982
|
customer: {
|
|
15983
|
+
updated_at: string | null;
|
|
15984
|
+
deleted_at: string | null;
|
|
15985
|
+
verified_at: string | null;
|
|
15986
|
+
suspended_at: string | null;
|
|
15987
|
+
created_at: string;
|
|
15983
15988
|
id: string;
|
|
15989
|
+
workspaceId: string;
|
|
15990
|
+
type: string | null;
|
|
15984
15991
|
name: string;
|
|
15985
|
-
|
|
15992
|
+
companyName: string | null;
|
|
15986
15993
|
phone: string | null;
|
|
15987
|
-
|
|
15994
|
+
telegram: string | null;
|
|
15995
|
+
whatsapp: string | null;
|
|
15996
|
+
email: string | null;
|
|
15997
|
+
leadSource: string | null;
|
|
15998
|
+
budgetMin: number | null;
|
|
15999
|
+
budgetMax: number | null;
|
|
16000
|
+
inHandBudget: number | null;
|
|
16001
|
+
installmentBudget: number | null;
|
|
16002
|
+
minArea: number | null;
|
|
16003
|
+
maxArea: number | null;
|
|
16004
|
+
roomsCount: number | null;
|
|
16005
|
+
preferredDistricts: string[] | null;
|
|
16006
|
+
propertyType: string | null;
|
|
16007
|
+
maxMetroDistance: number | null;
|
|
16008
|
+
dealStatus: string | null;
|
|
16009
|
+
preferredPaymentMethod: string | null;
|
|
16010
|
+
childrenCount: number | null;
|
|
16011
|
+
hasPets: boolean | null;
|
|
16012
|
+
carsCount: number | null;
|
|
16013
|
+
birthDate: string | null;
|
|
16014
|
+
notes: string | null;
|
|
15988
16015
|
}[];
|
|
15989
16016
|
};
|
|
15990
16017
|
outputFormat: "json";
|
|
@@ -16040,25 +16067,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16040
16067
|
input: {};
|
|
16041
16068
|
output: {
|
|
16042
16069
|
success: false;
|
|
16043
|
-
error:
|
|
16070
|
+
error: string;
|
|
16044
16071
|
};
|
|
16045
16072
|
outputFormat: "json";
|
|
16046
|
-
status:
|
|
16073
|
+
status: 404;
|
|
16047
16074
|
} | {
|
|
16048
16075
|
input: {};
|
|
16049
16076
|
output: {
|
|
16050
|
-
success:
|
|
16051
|
-
error: string;
|
|
16077
|
+
success: true;
|
|
16052
16078
|
};
|
|
16053
16079
|
outputFormat: "json";
|
|
16054
|
-
status:
|
|
16080
|
+
status: 200;
|
|
16055
16081
|
} | {
|
|
16056
16082
|
input: {};
|
|
16057
16083
|
output: {
|
|
16058
|
-
success:
|
|
16084
|
+
success: false;
|
|
16085
|
+
error: string;
|
|
16059
16086
|
};
|
|
16060
16087
|
outputFormat: "json";
|
|
16061
|
-
status:
|
|
16088
|
+
status: 400;
|
|
16062
16089
|
};
|
|
16063
16090
|
};
|
|
16064
16091
|
} & {
|
|
@@ -16067,25 +16094,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16067
16094
|
input: {};
|
|
16068
16095
|
output: {
|
|
16069
16096
|
success: false;
|
|
16070
|
-
error:
|
|
16097
|
+
error: string;
|
|
16071
16098
|
};
|
|
16072
16099
|
outputFormat: "json";
|
|
16073
|
-
status:
|
|
16100
|
+
status: 404;
|
|
16074
16101
|
} | {
|
|
16075
16102
|
input: {};
|
|
16076
16103
|
output: {
|
|
16077
|
-
success:
|
|
16078
|
-
error: string;
|
|
16104
|
+
success: true;
|
|
16079
16105
|
};
|
|
16080
16106
|
outputFormat: "json";
|
|
16081
|
-
status:
|
|
16107
|
+
status: 200;
|
|
16082
16108
|
} | {
|
|
16083
16109
|
input: {};
|
|
16084
16110
|
output: {
|
|
16085
|
-
success:
|
|
16111
|
+
success: false;
|
|
16112
|
+
error: string;
|
|
16086
16113
|
};
|
|
16087
16114
|
outputFormat: "json";
|
|
16088
|
-
status:
|
|
16115
|
+
status: 400;
|
|
16089
16116
|
};
|
|
16090
16117
|
};
|
|
16091
16118
|
}, "/tasks"> | import("hono/types").MergeSchemaPath<{
|
|
@@ -16587,7 +16614,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16587
16614
|
verified_at: string | null;
|
|
16588
16615
|
suspended_at: string | null;
|
|
16589
16616
|
phone: string | null;
|
|
16590
|
-
birthDate: string | null;
|
|
16591
16617
|
telegram: string | null;
|
|
16592
16618
|
whatsapp: string | null;
|
|
16593
16619
|
leadSource: string | null;
|
|
@@ -16606,6 +16632,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
16606
16632
|
childrenCount: number | null;
|
|
16607
16633
|
hasPets: boolean | null;
|
|
16608
16634
|
carsCount: number | null;
|
|
16635
|
+
birthDate: string | null;
|
|
16609
16636
|
notes: string | null;
|
|
16610
16637
|
}[];
|
|
16611
16638
|
};
|
|
@@ -17394,25 +17421,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17394
17421
|
input: {};
|
|
17395
17422
|
output: {
|
|
17396
17423
|
success: false;
|
|
17397
|
-
error:
|
|
17424
|
+
error: string;
|
|
17398
17425
|
};
|
|
17399
17426
|
outputFormat: "json";
|
|
17400
|
-
status:
|
|
17427
|
+
status: 404;
|
|
17401
17428
|
} | {
|
|
17402
17429
|
input: {};
|
|
17403
17430
|
output: {
|
|
17404
|
-
success:
|
|
17405
|
-
error: string;
|
|
17431
|
+
success: true;
|
|
17406
17432
|
};
|
|
17407
17433
|
outputFormat: "json";
|
|
17408
|
-
status:
|
|
17434
|
+
status: 200;
|
|
17409
17435
|
} | {
|
|
17410
17436
|
input: {};
|
|
17411
17437
|
output: {
|
|
17412
|
-
success:
|
|
17438
|
+
success: false;
|
|
17439
|
+
error: string;
|
|
17413
17440
|
};
|
|
17414
17441
|
outputFormat: "json";
|
|
17415
|
-
status:
|
|
17442
|
+
status: 400;
|
|
17416
17443
|
};
|
|
17417
17444
|
};
|
|
17418
17445
|
} & {
|
|
@@ -17421,25 +17448,25 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17421
17448
|
input: {};
|
|
17422
17449
|
output: {
|
|
17423
17450
|
success: false;
|
|
17424
|
-
error:
|
|
17451
|
+
error: string;
|
|
17425
17452
|
};
|
|
17426
17453
|
outputFormat: "json";
|
|
17427
|
-
status:
|
|
17454
|
+
status: 404;
|
|
17428
17455
|
} | {
|
|
17429
17456
|
input: {};
|
|
17430
17457
|
output: {
|
|
17431
|
-
success:
|
|
17432
|
-
error: string;
|
|
17458
|
+
success: true;
|
|
17433
17459
|
};
|
|
17434
17460
|
outputFormat: "json";
|
|
17435
|
-
status:
|
|
17461
|
+
status: 200;
|
|
17436
17462
|
} | {
|
|
17437
17463
|
input: {};
|
|
17438
17464
|
output: {
|
|
17439
|
-
success:
|
|
17465
|
+
success: false;
|
|
17466
|
+
error: string;
|
|
17440
17467
|
};
|
|
17441
17468
|
outputFormat: "json";
|
|
17442
|
-
status:
|
|
17469
|
+
status: 400;
|
|
17443
17470
|
};
|
|
17444
17471
|
};
|
|
17445
17472
|
} & {
|