@mestra-dev/contract 0.0.313 → 0.0.315
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 +292 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4872,6 +4872,37 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
4872
4872
|
status: 201;
|
|
4873
4873
|
};
|
|
4874
4874
|
};
|
|
4875
|
+
} & {
|
|
4876
|
+
"/chat-room": {
|
|
4877
|
+
$post: {
|
|
4878
|
+
input: {
|
|
4879
|
+
json: {
|
|
4880
|
+
workspace: string;
|
|
4881
|
+
customerId: string;
|
|
4882
|
+
roomId: string;
|
|
4883
|
+
};
|
|
4884
|
+
};
|
|
4885
|
+
output: {
|
|
4886
|
+
success: false;
|
|
4887
|
+
error: string;
|
|
4888
|
+
};
|
|
4889
|
+
outputFormat: "json";
|
|
4890
|
+
status: 404;
|
|
4891
|
+
} | {
|
|
4892
|
+
input: {
|
|
4893
|
+
json: {
|
|
4894
|
+
workspace: string;
|
|
4895
|
+
customerId: string;
|
|
4896
|
+
roomId: string;
|
|
4897
|
+
};
|
|
4898
|
+
};
|
|
4899
|
+
output: {
|
|
4900
|
+
success: true;
|
|
4901
|
+
};
|
|
4902
|
+
outputFormat: "json";
|
|
4903
|
+
status: 200;
|
|
4904
|
+
};
|
|
4905
|
+
};
|
|
4875
4906
|
} & {
|
|
4876
4907
|
"/relations/delete": {
|
|
4877
4908
|
$post: {
|
|
@@ -6920,10 +6951,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6920
6951
|
assigneeId: string;
|
|
6921
6952
|
workspaceId: string;
|
|
6922
6953
|
collaboratorId: string;
|
|
6954
|
+
userId: string | null;
|
|
6923
6955
|
taskId: string;
|
|
6924
6956
|
startDate: string | null;
|
|
6925
6957
|
endDate: string | null;
|
|
6926
6958
|
description: string | null;
|
|
6959
|
+
workedMinutes: number | null;
|
|
6927
6960
|
profilePicture: string | null;
|
|
6928
6961
|
firstName: string | null;
|
|
6929
6962
|
lastName: string | null;
|
|
@@ -6946,6 +6979,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6946
6979
|
startDate?: string | number | undefined;
|
|
6947
6980
|
endDate?: string | number | undefined;
|
|
6948
6981
|
description?: string | undefined;
|
|
6982
|
+
workedMinutes?: number | undefined;
|
|
6949
6983
|
};
|
|
6950
6984
|
};
|
|
6951
6985
|
output: {
|
|
@@ -6963,6 +6997,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6963
6997
|
startDate?: string | number | undefined;
|
|
6964
6998
|
endDate?: string | number | undefined;
|
|
6965
6999
|
description?: string | undefined;
|
|
7000
|
+
workedMinutes?: number | undefined;
|
|
6966
7001
|
};
|
|
6967
7002
|
};
|
|
6968
7003
|
output: {
|
|
@@ -6980,6 +7015,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6980
7015
|
startDate?: string | number | undefined;
|
|
6981
7016
|
endDate?: string | number | undefined;
|
|
6982
7017
|
description?: string | undefined;
|
|
7018
|
+
workedMinutes?: number | undefined;
|
|
6983
7019
|
};
|
|
6984
7020
|
};
|
|
6985
7021
|
output: {
|
|
@@ -6998,6 +7034,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6998
7034
|
startDate: string | null;
|
|
6999
7035
|
endDate: string | null;
|
|
7000
7036
|
taskId: string;
|
|
7037
|
+
workedMinutes: number | null;
|
|
7001
7038
|
};
|
|
7002
7039
|
};
|
|
7003
7040
|
outputFormat: "json";
|
|
@@ -7046,6 +7083,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7046
7083
|
startDate?: string | number | null | undefined;
|
|
7047
7084
|
endDate?: string | number | null | undefined;
|
|
7048
7085
|
description?: string | undefined;
|
|
7086
|
+
workedMinutes?: number | null | undefined;
|
|
7049
7087
|
};
|
|
7050
7088
|
};
|
|
7051
7089
|
output: {
|
|
@@ -7063,6 +7101,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7063
7101
|
startDate?: string | number | null | undefined;
|
|
7064
7102
|
endDate?: string | number | null | undefined;
|
|
7065
7103
|
description?: string | undefined;
|
|
7104
|
+
workedMinutes?: number | null | undefined;
|
|
7066
7105
|
};
|
|
7067
7106
|
};
|
|
7068
7107
|
output: {
|
|
@@ -7080,6 +7119,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7080
7119
|
startDate?: string | number | null | undefined;
|
|
7081
7120
|
endDate?: string | number | null | undefined;
|
|
7082
7121
|
description?: string | undefined;
|
|
7122
|
+
workedMinutes?: number | null | undefined;
|
|
7083
7123
|
};
|
|
7084
7124
|
};
|
|
7085
7125
|
output: {
|
|
@@ -7096,6 +7136,54 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7096
7136
|
startDate: string | null;
|
|
7097
7137
|
endDate: string | null;
|
|
7098
7138
|
description: string | null;
|
|
7139
|
+
workedMinutes: number | null;
|
|
7140
|
+
workspaceId: string;
|
|
7141
|
+
created_by: string;
|
|
7142
|
+
};
|
|
7143
|
+
};
|
|
7144
|
+
outputFormat: "json";
|
|
7145
|
+
status: 200;
|
|
7146
|
+
};
|
|
7147
|
+
};
|
|
7148
|
+
} & {
|
|
7149
|
+
"/worked-time": {
|
|
7150
|
+
$post: {
|
|
7151
|
+
input: {
|
|
7152
|
+
json: {
|
|
7153
|
+
workspace: string;
|
|
7154
|
+
taskId: string;
|
|
7155
|
+
workedMinutes: number | null;
|
|
7156
|
+
};
|
|
7157
|
+
};
|
|
7158
|
+
output: {
|
|
7159
|
+
success: false;
|
|
7160
|
+
error: string;
|
|
7161
|
+
};
|
|
7162
|
+
outputFormat: "json";
|
|
7163
|
+
status: 404;
|
|
7164
|
+
} | {
|
|
7165
|
+
input: {
|
|
7166
|
+
json: {
|
|
7167
|
+
workspace: string;
|
|
7168
|
+
taskId: string;
|
|
7169
|
+
workedMinutes: number | null;
|
|
7170
|
+
};
|
|
7171
|
+
};
|
|
7172
|
+
output: {
|
|
7173
|
+
success: true;
|
|
7174
|
+
result: {
|
|
7175
|
+
updated_at: string | null;
|
|
7176
|
+
deleted_at: string | null;
|
|
7177
|
+
verified_at: string | null;
|
|
7178
|
+
suspended_at: string | null;
|
|
7179
|
+
created_at: string;
|
|
7180
|
+
id: string;
|
|
7181
|
+
taskId: string;
|
|
7182
|
+
collaboratorId: string;
|
|
7183
|
+
startDate: string | null;
|
|
7184
|
+
endDate: string | null;
|
|
7185
|
+
description: string | null;
|
|
7186
|
+
workedMinutes: number | null;
|
|
7099
7187
|
workspaceId: string;
|
|
7100
7188
|
created_by: string;
|
|
7101
7189
|
};
|
|
@@ -12095,6 +12183,208 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12095
12183
|
status: 200;
|
|
12096
12184
|
};
|
|
12097
12185
|
};
|
|
12186
|
+
} & {
|
|
12187
|
+
"/:workspace/ai-conversation-funnel": {
|
|
12188
|
+
$get: {
|
|
12189
|
+
input: {
|
|
12190
|
+
query: {
|
|
12191
|
+
from?: string | number | undefined;
|
|
12192
|
+
to?: string | number | undefined;
|
|
12193
|
+
};
|
|
12194
|
+
} & {
|
|
12195
|
+
param: {
|
|
12196
|
+
workspace: string;
|
|
12197
|
+
};
|
|
12198
|
+
};
|
|
12199
|
+
output: {
|
|
12200
|
+
success: false;
|
|
12201
|
+
error: string;
|
|
12202
|
+
};
|
|
12203
|
+
outputFormat: "json";
|
|
12204
|
+
status: 400;
|
|
12205
|
+
} | {
|
|
12206
|
+
input: {
|
|
12207
|
+
query: {
|
|
12208
|
+
from?: string | number | undefined;
|
|
12209
|
+
to?: string | number | undefined;
|
|
12210
|
+
};
|
|
12211
|
+
} & {
|
|
12212
|
+
param: {
|
|
12213
|
+
workspace: string;
|
|
12214
|
+
};
|
|
12215
|
+
};
|
|
12216
|
+
output: {
|
|
12217
|
+
success: false;
|
|
12218
|
+
error: string;
|
|
12219
|
+
};
|
|
12220
|
+
outputFormat: "json";
|
|
12221
|
+
status: 404;
|
|
12222
|
+
} | {
|
|
12223
|
+
input: {
|
|
12224
|
+
query: {
|
|
12225
|
+
from?: string | number | undefined;
|
|
12226
|
+
to?: string | number | undefined;
|
|
12227
|
+
};
|
|
12228
|
+
} & {
|
|
12229
|
+
param: {
|
|
12230
|
+
workspace: string;
|
|
12231
|
+
};
|
|
12232
|
+
};
|
|
12233
|
+
output: {
|
|
12234
|
+
chatCount: number;
|
|
12235
|
+
answeredChatCount: number;
|
|
12236
|
+
aiChatCount: number;
|
|
12237
|
+
aiOnlyChatCount: number;
|
|
12238
|
+
handoffChatCount: number;
|
|
12239
|
+
operatorOnlyChatCount: number;
|
|
12240
|
+
operatorMessageCount: number;
|
|
12241
|
+
aiMessageCount: number;
|
|
12242
|
+
aiEditedMessageCount: number;
|
|
12243
|
+
success: true;
|
|
12244
|
+
workspaceId: string;
|
|
12245
|
+
period: {
|
|
12246
|
+
from: string | null;
|
|
12247
|
+
to: string | null;
|
|
12248
|
+
};
|
|
12249
|
+
trackingSince: string | null;
|
|
12250
|
+
};
|
|
12251
|
+
outputFormat: "json";
|
|
12252
|
+
status: 200;
|
|
12253
|
+
};
|
|
12254
|
+
};
|
|
12255
|
+
} & {
|
|
12256
|
+
"/:workspace/ai-leads-deals": {
|
|
12257
|
+
$get: {
|
|
12258
|
+
input: {
|
|
12259
|
+
query: {
|
|
12260
|
+
from?: string | number | undefined;
|
|
12261
|
+
to?: string | number | undefined;
|
|
12262
|
+
};
|
|
12263
|
+
} & {
|
|
12264
|
+
param: {
|
|
12265
|
+
workspace: string;
|
|
12266
|
+
};
|
|
12267
|
+
};
|
|
12268
|
+
output: {
|
|
12269
|
+
success: false;
|
|
12270
|
+
error: string;
|
|
12271
|
+
};
|
|
12272
|
+
outputFormat: "json";
|
|
12273
|
+
status: 400;
|
|
12274
|
+
} | {
|
|
12275
|
+
input: {
|
|
12276
|
+
query: {
|
|
12277
|
+
from?: string | number | undefined;
|
|
12278
|
+
to?: string | number | undefined;
|
|
12279
|
+
};
|
|
12280
|
+
} & {
|
|
12281
|
+
param: {
|
|
12282
|
+
workspace: string;
|
|
12283
|
+
};
|
|
12284
|
+
};
|
|
12285
|
+
output: {
|
|
12286
|
+
success: false;
|
|
12287
|
+
error: string;
|
|
12288
|
+
};
|
|
12289
|
+
outputFormat: "json";
|
|
12290
|
+
status: 404;
|
|
12291
|
+
} | {
|
|
12292
|
+
input: {
|
|
12293
|
+
query: {
|
|
12294
|
+
from?: string | number | undefined;
|
|
12295
|
+
to?: string | number | undefined;
|
|
12296
|
+
};
|
|
12297
|
+
} & {
|
|
12298
|
+
param: {
|
|
12299
|
+
workspace: string;
|
|
12300
|
+
};
|
|
12301
|
+
};
|
|
12302
|
+
output: {
|
|
12303
|
+
leadCount: number;
|
|
12304
|
+
aiLeadCount: number;
|
|
12305
|
+
dealCount: number;
|
|
12306
|
+
aiDealCount: number;
|
|
12307
|
+
success: true;
|
|
12308
|
+
workspaceId: string;
|
|
12309
|
+
category: string;
|
|
12310
|
+
period: {
|
|
12311
|
+
from: string | null;
|
|
12312
|
+
to: string | null;
|
|
12313
|
+
};
|
|
12314
|
+
trackingSince: string | null;
|
|
12315
|
+
};
|
|
12316
|
+
outputFormat: "json";
|
|
12317
|
+
status: 200;
|
|
12318
|
+
};
|
|
12319
|
+
};
|
|
12320
|
+
} & {
|
|
12321
|
+
"/:workspace/ai-revenue": {
|
|
12322
|
+
$get: {
|
|
12323
|
+
input: {
|
|
12324
|
+
query: {
|
|
12325
|
+
from?: string | number | undefined;
|
|
12326
|
+
to?: string | number | undefined;
|
|
12327
|
+
};
|
|
12328
|
+
} & {
|
|
12329
|
+
param: {
|
|
12330
|
+
workspace: string;
|
|
12331
|
+
};
|
|
12332
|
+
};
|
|
12333
|
+
output: {
|
|
12334
|
+
success: false;
|
|
12335
|
+
error: string;
|
|
12336
|
+
};
|
|
12337
|
+
outputFormat: "json";
|
|
12338
|
+
status: 400;
|
|
12339
|
+
} | {
|
|
12340
|
+
input: {
|
|
12341
|
+
query: {
|
|
12342
|
+
from?: string | number | undefined;
|
|
12343
|
+
to?: string | number | undefined;
|
|
12344
|
+
};
|
|
12345
|
+
} & {
|
|
12346
|
+
param: {
|
|
12347
|
+
workspace: string;
|
|
12348
|
+
};
|
|
12349
|
+
};
|
|
12350
|
+
output: {
|
|
12351
|
+
success: false;
|
|
12352
|
+
error: string;
|
|
12353
|
+
};
|
|
12354
|
+
outputFormat: "json";
|
|
12355
|
+
status: 404;
|
|
12356
|
+
} | {
|
|
12357
|
+
input: {
|
|
12358
|
+
query: {
|
|
12359
|
+
from?: string | number | undefined;
|
|
12360
|
+
to?: string | number | undefined;
|
|
12361
|
+
};
|
|
12362
|
+
} & {
|
|
12363
|
+
param: {
|
|
12364
|
+
workspace: string;
|
|
12365
|
+
};
|
|
12366
|
+
};
|
|
12367
|
+
output: {
|
|
12368
|
+
success: true;
|
|
12369
|
+
workspaceId: string;
|
|
12370
|
+
category: string;
|
|
12371
|
+
period: {
|
|
12372
|
+
from: string | null;
|
|
12373
|
+
to: string | null;
|
|
12374
|
+
};
|
|
12375
|
+
trackingSince: string | null;
|
|
12376
|
+
currencies: {
|
|
12377
|
+
currency: string;
|
|
12378
|
+
totalMinor: number;
|
|
12379
|
+
aiMinor: number;
|
|
12380
|
+
invoiceCount: number;
|
|
12381
|
+
aiInvoiceCount: number;
|
|
12382
|
+
}[];
|
|
12383
|
+
};
|
|
12384
|
+
outputFormat: "json";
|
|
12385
|
+
status: 200;
|
|
12386
|
+
};
|
|
12387
|
+
};
|
|
12098
12388
|
} & {
|
|
12099
12389
|
"/chat-events": {
|
|
12100
12390
|
$post: {
|
|
@@ -12107,6 +12397,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12107
12397
|
direction: "customer" | "operator";
|
|
12108
12398
|
channel?: string | null | undefined;
|
|
12109
12399
|
sentAt: number;
|
|
12400
|
+
aiOperationId?: string | null | undefined;
|
|
12401
|
+
aiEdited?: boolean | null | undefined;
|
|
12110
12402
|
}[];
|
|
12111
12403
|
};
|
|
12112
12404
|
};
|