@mestra-dev/contract 0.0.319 → 0.0.321
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 +593 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4486,6 +4486,56 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
4486
4486
|
name: string;
|
|
4487
4487
|
description: string | null;
|
|
4488
4488
|
}[];
|
|
4489
|
+
}[] | {
|
|
4490
|
+
type: string | null;
|
|
4491
|
+
description: string | null;
|
|
4492
|
+
name: string;
|
|
4493
|
+
active: boolean | null;
|
|
4494
|
+
stock: number | null;
|
|
4495
|
+
currency: string | null;
|
|
4496
|
+
price: number | null;
|
|
4497
|
+
qrCode: string | null;
|
|
4498
|
+
id: string;
|
|
4499
|
+
created_at: string;
|
|
4500
|
+
workspaceId: string;
|
|
4501
|
+
updated_at: string | null;
|
|
4502
|
+
deleted_at: string | null;
|
|
4503
|
+
verified_at: string | null;
|
|
4504
|
+
suspended_at: string | null;
|
|
4505
|
+
created_by: string | null;
|
|
4506
|
+
status: string | null;
|
|
4507
|
+
expiresAt: string | null;
|
|
4508
|
+
seats: number | null;
|
|
4509
|
+
media: string[] | null;
|
|
4510
|
+
publishTags: string[] | null;
|
|
4511
|
+
publishedAt: string | null;
|
|
4512
|
+
serviceType: string | null;
|
|
4513
|
+
hourlyRate: number | null;
|
|
4514
|
+
platforms: string[] | null;
|
|
4515
|
+
keyFeatures: string[] | null;
|
|
4516
|
+
billingModel: string | null;
|
|
4517
|
+
pricePerUser: number | null;
|
|
4518
|
+
pricePerExtraUser: number | null;
|
|
4519
|
+
minimumTermMonths: number | null;
|
|
4520
|
+
trialDays: number | null;
|
|
4521
|
+
planLimits: string[] | null;
|
|
4522
|
+
amountType: string | null;
|
|
4523
|
+
uptimeSla: number | null;
|
|
4524
|
+
dataResidency: string | null;
|
|
4525
|
+
integrations: string[] | null;
|
|
4526
|
+
security: string[] | null;
|
|
4527
|
+
title: string;
|
|
4528
|
+
createdBy: {
|
|
4529
|
+
id: string;
|
|
4530
|
+
firstName: string | null;
|
|
4531
|
+
lastName: string | null;
|
|
4532
|
+
profilePicture: string | null;
|
|
4533
|
+
} | null;
|
|
4534
|
+
tags: {
|
|
4535
|
+
id: string;
|
|
4536
|
+
name: string;
|
|
4537
|
+
description: string | null;
|
|
4538
|
+
}[];
|
|
4489
4539
|
}[];
|
|
4490
4540
|
};
|
|
4491
4541
|
outputFormat: "json";
|
|
@@ -5314,6 +5364,56 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
5314
5364
|
name: string;
|
|
5315
5365
|
description: string | null;
|
|
5316
5366
|
}[];
|
|
5367
|
+
}[] | {
|
|
5368
|
+
type: string | null;
|
|
5369
|
+
description: string | null;
|
|
5370
|
+
name: string;
|
|
5371
|
+
active: boolean | null;
|
|
5372
|
+
stock: number | null;
|
|
5373
|
+
currency: string | null;
|
|
5374
|
+
price: number | null;
|
|
5375
|
+
qrCode: string | null;
|
|
5376
|
+
id: string;
|
|
5377
|
+
created_at: string;
|
|
5378
|
+
workspaceId: string;
|
|
5379
|
+
updated_at: string | null;
|
|
5380
|
+
deleted_at: string | null;
|
|
5381
|
+
verified_at: string | null;
|
|
5382
|
+
suspended_at: string | null;
|
|
5383
|
+
created_by: string | null;
|
|
5384
|
+
status: string | null;
|
|
5385
|
+
expiresAt: string | null;
|
|
5386
|
+
seats: number | null;
|
|
5387
|
+
media: string[] | null;
|
|
5388
|
+
publishTags: string[] | null;
|
|
5389
|
+
publishedAt: string | null;
|
|
5390
|
+
serviceType: string | null;
|
|
5391
|
+
hourlyRate: number | null;
|
|
5392
|
+
platforms: string[] | null;
|
|
5393
|
+
keyFeatures: string[] | null;
|
|
5394
|
+
billingModel: string | null;
|
|
5395
|
+
pricePerUser: number | null;
|
|
5396
|
+
pricePerExtraUser: number | null;
|
|
5397
|
+
minimumTermMonths: number | null;
|
|
5398
|
+
trialDays: number | null;
|
|
5399
|
+
planLimits: string[] | null;
|
|
5400
|
+
amountType: string | null;
|
|
5401
|
+
uptimeSla: number | null;
|
|
5402
|
+
dataResidency: string | null;
|
|
5403
|
+
integrations: string[] | null;
|
|
5404
|
+
security: string[] | null;
|
|
5405
|
+
title: string;
|
|
5406
|
+
createdBy: {
|
|
5407
|
+
id: string;
|
|
5408
|
+
firstName: string | null;
|
|
5409
|
+
lastName: string | null;
|
|
5410
|
+
profilePicture: string | null;
|
|
5411
|
+
} | null;
|
|
5412
|
+
tags: {
|
|
5413
|
+
id: string;
|
|
5414
|
+
name: string;
|
|
5415
|
+
description: string | null;
|
|
5416
|
+
}[];
|
|
5317
5417
|
}[] | {
|
|
5318
5418
|
updated_at: string | null;
|
|
5319
5419
|
deleted_at: string | null;
|
|
@@ -6232,6 +6332,56 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6232
6332
|
name: string;
|
|
6233
6333
|
description: string | null;
|
|
6234
6334
|
}[];
|
|
6335
|
+
}[] | {
|
|
6336
|
+
type: string | null;
|
|
6337
|
+
description: string | null;
|
|
6338
|
+
name: string;
|
|
6339
|
+
active: boolean | null;
|
|
6340
|
+
stock: number | null;
|
|
6341
|
+
currency: string | null;
|
|
6342
|
+
price: number | null;
|
|
6343
|
+
qrCode: string | null;
|
|
6344
|
+
id: string;
|
|
6345
|
+
created_at: string;
|
|
6346
|
+
workspaceId: string;
|
|
6347
|
+
updated_at: string | null;
|
|
6348
|
+
deleted_at: string | null;
|
|
6349
|
+
verified_at: string | null;
|
|
6350
|
+
suspended_at: string | null;
|
|
6351
|
+
created_by: string | null;
|
|
6352
|
+
status: string | null;
|
|
6353
|
+
expiresAt: string | null;
|
|
6354
|
+
seats: number | null;
|
|
6355
|
+
media: string[] | null;
|
|
6356
|
+
publishTags: string[] | null;
|
|
6357
|
+
publishedAt: string | null;
|
|
6358
|
+
serviceType: string | null;
|
|
6359
|
+
hourlyRate: number | null;
|
|
6360
|
+
platforms: string[] | null;
|
|
6361
|
+
keyFeatures: string[] | null;
|
|
6362
|
+
billingModel: string | null;
|
|
6363
|
+
pricePerUser: number | null;
|
|
6364
|
+
pricePerExtraUser: number | null;
|
|
6365
|
+
minimumTermMonths: number | null;
|
|
6366
|
+
trialDays: number | null;
|
|
6367
|
+
planLimits: string[] | null;
|
|
6368
|
+
amountType: string | null;
|
|
6369
|
+
uptimeSla: number | null;
|
|
6370
|
+
dataResidency: string | null;
|
|
6371
|
+
integrations: string[] | null;
|
|
6372
|
+
security: string[] | null;
|
|
6373
|
+
title: string;
|
|
6374
|
+
createdBy: {
|
|
6375
|
+
id: string;
|
|
6376
|
+
firstName: string | null;
|
|
6377
|
+
lastName: string | null;
|
|
6378
|
+
profilePicture: string | null;
|
|
6379
|
+
} | null;
|
|
6380
|
+
tags: {
|
|
6381
|
+
id: string;
|
|
6382
|
+
name: string;
|
|
6383
|
+
description: string | null;
|
|
6384
|
+
}[];
|
|
6235
6385
|
}[] | {
|
|
6236
6386
|
createdBy: {
|
|
6237
6387
|
id: string;
|
|
@@ -7190,6 +7340,56 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7190
7340
|
name: string;
|
|
7191
7341
|
description: string | null;
|
|
7192
7342
|
}[];
|
|
7343
|
+
} | {
|
|
7344
|
+
type: string | null;
|
|
7345
|
+
description: string | null;
|
|
7346
|
+
name: string;
|
|
7347
|
+
active: boolean | null;
|
|
7348
|
+
stock: number | null;
|
|
7349
|
+
currency: string | null;
|
|
7350
|
+
price: number | null;
|
|
7351
|
+
qrCode: string | null;
|
|
7352
|
+
id: string;
|
|
7353
|
+
created_at: string;
|
|
7354
|
+
workspaceId: string;
|
|
7355
|
+
updated_at: string | null;
|
|
7356
|
+
deleted_at: string | null;
|
|
7357
|
+
verified_at: string | null;
|
|
7358
|
+
suspended_at: string | null;
|
|
7359
|
+
created_by: string | null;
|
|
7360
|
+
status: string | null;
|
|
7361
|
+
expiresAt: string | null;
|
|
7362
|
+
seats: number | null;
|
|
7363
|
+
media: string[] | null;
|
|
7364
|
+
publishTags: string[] | null;
|
|
7365
|
+
publishedAt: string | null;
|
|
7366
|
+
serviceType: string | null;
|
|
7367
|
+
hourlyRate: number | null;
|
|
7368
|
+
platforms: string[] | null;
|
|
7369
|
+
keyFeatures: string[] | null;
|
|
7370
|
+
billingModel: string | null;
|
|
7371
|
+
pricePerUser: number | null;
|
|
7372
|
+
pricePerExtraUser: number | null;
|
|
7373
|
+
minimumTermMonths: number | null;
|
|
7374
|
+
trialDays: number | null;
|
|
7375
|
+
planLimits: string[] | null;
|
|
7376
|
+
amountType: string | null;
|
|
7377
|
+
uptimeSla: number | null;
|
|
7378
|
+
dataResidency: string | null;
|
|
7379
|
+
integrations: string[] | null;
|
|
7380
|
+
security: string[] | null;
|
|
7381
|
+
title: string;
|
|
7382
|
+
createdBy: {
|
|
7383
|
+
id: string;
|
|
7384
|
+
firstName: string | null;
|
|
7385
|
+
lastName: string | null;
|
|
7386
|
+
profilePicture: string | null;
|
|
7387
|
+
} | null;
|
|
7388
|
+
tags: {
|
|
7389
|
+
id: string;
|
|
7390
|
+
name: string;
|
|
7391
|
+
description: string | null;
|
|
7392
|
+
}[];
|
|
7193
7393
|
} | {
|
|
7194
7394
|
createdBy: {
|
|
7195
7395
|
id: string;
|
|
@@ -8084,6 +8284,53 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8084
8284
|
name: string;
|
|
8085
8285
|
description: string | null;
|
|
8086
8286
|
}[];
|
|
8287
|
+
}[] | {
|
|
8288
|
+
type: string | null;
|
|
8289
|
+
email: string | null;
|
|
8290
|
+
description: string | null;
|
|
8291
|
+
name: string;
|
|
8292
|
+
active: boolean | null;
|
|
8293
|
+
phone: string | null;
|
|
8294
|
+
website: string | null;
|
|
8295
|
+
birthDate: string | null;
|
|
8296
|
+
companyPhone: string | null;
|
|
8297
|
+
companyAddress: string | null;
|
|
8298
|
+
address: string | null;
|
|
8299
|
+
utmSource: string | null;
|
|
8300
|
+
id: string;
|
|
8301
|
+
created_at: string;
|
|
8302
|
+
workspaceId: string;
|
|
8303
|
+
updated_at: string | null;
|
|
8304
|
+
deleted_at: string | null;
|
|
8305
|
+
verified_at: string | null;
|
|
8306
|
+
suspended_at: string | null;
|
|
8307
|
+
created_by: string | null;
|
|
8308
|
+
plan: string | null;
|
|
8309
|
+
telegram: string | null;
|
|
8310
|
+
whatsapp: string | null;
|
|
8311
|
+
preferredCurrency: string | null;
|
|
8312
|
+
inn: string | null;
|
|
8313
|
+
industry: string | null;
|
|
8314
|
+
clientStatus: string | null;
|
|
8315
|
+
churnDate: string | null;
|
|
8316
|
+
churnReason: string | null;
|
|
8317
|
+
churnedTo: string | null;
|
|
8318
|
+
winBack: string | null;
|
|
8319
|
+
churnComment: string | null;
|
|
8320
|
+
users: number | null;
|
|
8321
|
+
trialEndsAt: string | null;
|
|
8322
|
+
renewalDate: string | null;
|
|
8323
|
+
createdBy: {
|
|
8324
|
+
id: string;
|
|
8325
|
+
firstName: string | null;
|
|
8326
|
+
lastName: string | null;
|
|
8327
|
+
profilePicture: string | null;
|
|
8328
|
+
} | null;
|
|
8329
|
+
tags: {
|
|
8330
|
+
id: string;
|
|
8331
|
+
name: string;
|
|
8332
|
+
description: string | null;
|
|
8333
|
+
}[];
|
|
8087
8334
|
}[];
|
|
8088
8335
|
};
|
|
8089
8336
|
outputFormat: "json";
|
|
@@ -8857,6 +9104,54 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8857
9104
|
description: string | null;
|
|
8858
9105
|
}[];
|
|
8859
9106
|
subscriptionEndDate: string | null;
|
|
9107
|
+
}[] | {
|
|
9108
|
+
type: string | null;
|
|
9109
|
+
email: string | null;
|
|
9110
|
+
description: string | null;
|
|
9111
|
+
name: string;
|
|
9112
|
+
active: boolean | null;
|
|
9113
|
+
phone: string | null;
|
|
9114
|
+
website: string | null;
|
|
9115
|
+
birthDate: string | null;
|
|
9116
|
+
companyPhone: string | null;
|
|
9117
|
+
companyAddress: string | null;
|
|
9118
|
+
address: string | null;
|
|
9119
|
+
utmSource: string | null;
|
|
9120
|
+
id: string;
|
|
9121
|
+
created_at: string;
|
|
9122
|
+
workspaceId: string;
|
|
9123
|
+
updated_at: string | null;
|
|
9124
|
+
deleted_at: string | null;
|
|
9125
|
+
verified_at: string | null;
|
|
9126
|
+
suspended_at: string | null;
|
|
9127
|
+
created_by: string | null;
|
|
9128
|
+
plan: string | null;
|
|
9129
|
+
telegram: string | null;
|
|
9130
|
+
whatsapp: string | null;
|
|
9131
|
+
preferredCurrency: string | null;
|
|
9132
|
+
inn: string | null;
|
|
9133
|
+
industry: string | null;
|
|
9134
|
+
clientStatus: string | null;
|
|
9135
|
+
churnDate: string | null;
|
|
9136
|
+
churnReason: string | null;
|
|
9137
|
+
churnedTo: string | null;
|
|
9138
|
+
winBack: string | null;
|
|
9139
|
+
churnComment: string | null;
|
|
9140
|
+
users: number | null;
|
|
9141
|
+
trialEndsAt: string | null;
|
|
9142
|
+
renewalDate: string | null;
|
|
9143
|
+
createdBy: {
|
|
9144
|
+
id: string;
|
|
9145
|
+
firstName: string | null;
|
|
9146
|
+
lastName: string | null;
|
|
9147
|
+
profilePicture: string | null;
|
|
9148
|
+
} | null;
|
|
9149
|
+
tags: {
|
|
9150
|
+
id: string;
|
|
9151
|
+
name: string;
|
|
9152
|
+
description: string | null;
|
|
9153
|
+
}[];
|
|
9154
|
+
subscriptionEndDate: string | null;
|
|
8860
9155
|
}[];
|
|
8861
9156
|
};
|
|
8862
9157
|
outputFormat: "json";
|
|
@@ -9622,6 +9917,53 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9622
9917
|
name: string;
|
|
9623
9918
|
description: string | null;
|
|
9624
9919
|
}[];
|
|
9920
|
+
} | {
|
|
9921
|
+
type: string | null;
|
|
9922
|
+
email: string | null;
|
|
9923
|
+
description: string | null;
|
|
9924
|
+
name: string;
|
|
9925
|
+
active: boolean | null;
|
|
9926
|
+
phone: string | null;
|
|
9927
|
+
website: string | null;
|
|
9928
|
+
birthDate: string | null;
|
|
9929
|
+
companyPhone: string | null;
|
|
9930
|
+
companyAddress: string | null;
|
|
9931
|
+
address: string | null;
|
|
9932
|
+
utmSource: string | null;
|
|
9933
|
+
id: string;
|
|
9934
|
+
created_at: string;
|
|
9935
|
+
workspaceId: string;
|
|
9936
|
+
updated_at: string | null;
|
|
9937
|
+
deleted_at: string | null;
|
|
9938
|
+
verified_at: string | null;
|
|
9939
|
+
suspended_at: string | null;
|
|
9940
|
+
created_by: string | null;
|
|
9941
|
+
plan: string | null;
|
|
9942
|
+
telegram: string | null;
|
|
9943
|
+
whatsapp: string | null;
|
|
9944
|
+
preferredCurrency: string | null;
|
|
9945
|
+
inn: string | null;
|
|
9946
|
+
industry: string | null;
|
|
9947
|
+
clientStatus: string | null;
|
|
9948
|
+
churnDate: string | null;
|
|
9949
|
+
churnReason: string | null;
|
|
9950
|
+
churnedTo: string | null;
|
|
9951
|
+
winBack: string | null;
|
|
9952
|
+
churnComment: string | null;
|
|
9953
|
+
users: number | null;
|
|
9954
|
+
trialEndsAt: string | null;
|
|
9955
|
+
renewalDate: string | null;
|
|
9956
|
+
createdBy: {
|
|
9957
|
+
id: string;
|
|
9958
|
+
firstName: string | null;
|
|
9959
|
+
lastName: string | null;
|
|
9960
|
+
profilePicture: string | null;
|
|
9961
|
+
} | null;
|
|
9962
|
+
tags: {
|
|
9963
|
+
id: string;
|
|
9964
|
+
name: string;
|
|
9965
|
+
description: string | null;
|
|
9966
|
+
}[];
|
|
9625
9967
|
};
|
|
9626
9968
|
};
|
|
9627
9969
|
outputFormat: "json";
|
|
@@ -10323,6 +10665,53 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
10323
10665
|
name: string;
|
|
10324
10666
|
description: string | null;
|
|
10325
10667
|
}[];
|
|
10668
|
+
}[] | {
|
|
10669
|
+
type: string | null;
|
|
10670
|
+
email: string | null;
|
|
10671
|
+
description: string | null;
|
|
10672
|
+
name: string;
|
|
10673
|
+
active: boolean | null;
|
|
10674
|
+
phone: string | null;
|
|
10675
|
+
website: string | null;
|
|
10676
|
+
birthDate: string | null;
|
|
10677
|
+
companyPhone: string | null;
|
|
10678
|
+
companyAddress: string | null;
|
|
10679
|
+
address: string | null;
|
|
10680
|
+
utmSource: string | null;
|
|
10681
|
+
id: string;
|
|
10682
|
+
created_at: string;
|
|
10683
|
+
workspaceId: string;
|
|
10684
|
+
updated_at: string | null;
|
|
10685
|
+
deleted_at: string | null;
|
|
10686
|
+
verified_at: string | null;
|
|
10687
|
+
suspended_at: string | null;
|
|
10688
|
+
created_by: string | null;
|
|
10689
|
+
plan: string | null;
|
|
10690
|
+
telegram: string | null;
|
|
10691
|
+
whatsapp: string | null;
|
|
10692
|
+
preferredCurrency: string | null;
|
|
10693
|
+
inn: string | null;
|
|
10694
|
+
industry: string | null;
|
|
10695
|
+
clientStatus: string | null;
|
|
10696
|
+
churnDate: string | null;
|
|
10697
|
+
churnReason: string | null;
|
|
10698
|
+
churnedTo: string | null;
|
|
10699
|
+
winBack: string | null;
|
|
10700
|
+
churnComment: string | null;
|
|
10701
|
+
users: number | null;
|
|
10702
|
+
trialEndsAt: string | null;
|
|
10703
|
+
renewalDate: string | null;
|
|
10704
|
+
createdBy: {
|
|
10705
|
+
id: string;
|
|
10706
|
+
firstName: string | null;
|
|
10707
|
+
lastName: string | null;
|
|
10708
|
+
profilePicture: string | null;
|
|
10709
|
+
} | null;
|
|
10710
|
+
tags: {
|
|
10711
|
+
id: string;
|
|
10712
|
+
name: string;
|
|
10713
|
+
description: string | null;
|
|
10714
|
+
}[];
|
|
10326
10715
|
}[] | {
|
|
10327
10716
|
updated_at: string | null;
|
|
10328
10717
|
deleted_at: string | null;
|
|
@@ -10673,13 +11062,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
10673
11062
|
customerId: string;
|
|
10674
11063
|
date: string;
|
|
10675
11064
|
status: string | null;
|
|
11065
|
+
id: string;
|
|
10676
11066
|
fields: {
|
|
10677
11067
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
10678
11068
|
};
|
|
10679
11069
|
events: {
|
|
10680
11070
|
[x: string]: string;
|
|
10681
11071
|
} | null;
|
|
10682
|
-
id: string;
|
|
10683
11072
|
workspaceId: string;
|
|
10684
11073
|
createdAt: string;
|
|
10685
11074
|
updatedAt: string;
|
|
@@ -10762,13 +11151,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
10762
11151
|
customerId: string;
|
|
10763
11152
|
date: string;
|
|
10764
11153
|
status: string | null;
|
|
11154
|
+
id: string;
|
|
10765
11155
|
fields: {
|
|
10766
11156
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
10767
11157
|
};
|
|
10768
11158
|
events: {
|
|
10769
11159
|
[x: string]: string;
|
|
10770
11160
|
} | null;
|
|
10771
|
-
id: string;
|
|
10772
11161
|
workspaceId: string;
|
|
10773
11162
|
createdAt: string;
|
|
10774
11163
|
updatedAt: string;
|
|
@@ -10808,6 +11197,48 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
10808
11197
|
status: 200;
|
|
10809
11198
|
};
|
|
10810
11199
|
};
|
|
11200
|
+
} & {
|
|
11201
|
+
"/churn-reasons/:workspace": {
|
|
11202
|
+
$get: {
|
|
11203
|
+
input: {
|
|
11204
|
+
param: {
|
|
11205
|
+
workspace: string;
|
|
11206
|
+
};
|
|
11207
|
+
};
|
|
11208
|
+
output: {
|
|
11209
|
+
success: true;
|
|
11210
|
+
reasons: {
|
|
11211
|
+
id: string;
|
|
11212
|
+
title: string | null;
|
|
11213
|
+
}[];
|
|
11214
|
+
};
|
|
11215
|
+
outputFormat: "json";
|
|
11216
|
+
status: 200;
|
|
11217
|
+
};
|
|
11218
|
+
};
|
|
11219
|
+
} & {
|
|
11220
|
+
"/churn-reasons/update": {
|
|
11221
|
+
$post: {
|
|
11222
|
+
input: {
|
|
11223
|
+
json: {
|
|
11224
|
+
workspace: string;
|
|
11225
|
+
reasons: {
|
|
11226
|
+
id: string;
|
|
11227
|
+
title: string | null;
|
|
11228
|
+
}[];
|
|
11229
|
+
};
|
|
11230
|
+
};
|
|
11231
|
+
output: {
|
|
11232
|
+
success: true;
|
|
11233
|
+
reasons: {
|
|
11234
|
+
id: string;
|
|
11235
|
+
title: string | null;
|
|
11236
|
+
}[];
|
|
11237
|
+
};
|
|
11238
|
+
outputFormat: "json";
|
|
11239
|
+
status: 200;
|
|
11240
|
+
};
|
|
11241
|
+
};
|
|
10811
11242
|
} & {
|
|
10812
11243
|
"/relations/create": {
|
|
10813
11244
|
$post: {
|
|
@@ -10816,7 +11247,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
10816
11247
|
workspace: string;
|
|
10817
11248
|
customerId: string;
|
|
10818
11249
|
relatedCustomerId: string;
|
|
10819
|
-
type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "other";
|
|
11250
|
+
type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "other";
|
|
10820
11251
|
};
|
|
10821
11252
|
};
|
|
10822
11253
|
output: {
|
|
@@ -10831,7 +11262,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
10831
11262
|
workspace: string;
|
|
10832
11263
|
customerId: string;
|
|
10833
11264
|
relatedCustomerId: string;
|
|
10834
|
-
type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "other";
|
|
11265
|
+
type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "other";
|
|
10835
11266
|
};
|
|
10836
11267
|
};
|
|
10837
11268
|
output: {
|
|
@@ -10846,7 +11277,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
10846
11277
|
workspace: string;
|
|
10847
11278
|
customerId: string;
|
|
10848
11279
|
relatedCustomerId: string;
|
|
10849
|
-
type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "other";
|
|
11280
|
+
type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "co_buyer" | "lawyer" | "client" | "payer" | "payee" | "contact_person" | "represents" | "decision_maker" | "decision_maker_at" | "technical_contact" | "technical_contact_at" | "accountant" | "accountant_at" | "account_admin" | "account_admin_at" | "account_user" | "account_user_at" | "other";
|
|
10850
11281
|
};
|
|
10851
11282
|
};
|
|
10852
11283
|
output: {
|
|
@@ -11160,8 +11591,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11160
11591
|
currency: string;
|
|
11161
11592
|
discount: number;
|
|
11162
11593
|
subscription: boolean | null;
|
|
11163
|
-
|
|
11594
|
+
id: string;
|
|
11164
11595
|
amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
|
|
11596
|
+
unitPrice: number;
|
|
11165
11597
|
vatRate: number | null;
|
|
11166
11598
|
branchId: string | null;
|
|
11167
11599
|
responsibleId: string | null;
|
|
@@ -11191,7 +11623,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11191
11623
|
subscriptionStartDate: string | null;
|
|
11192
11624
|
subscriptionEndDate: string | null;
|
|
11193
11625
|
paymentMethod: string | null;
|
|
11194
|
-
id: string;
|
|
11195
11626
|
created_at: string;
|
|
11196
11627
|
workspaceId: string;
|
|
11197
11628
|
updated_at: string | null;
|
|
@@ -11298,6 +11729,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11298
11729
|
currency: FinanceCurrency;
|
|
11299
11730
|
country: string | null;
|
|
11300
11731
|
legalAddress: string | null;
|
|
11732
|
+
id: string;
|
|
11301
11733
|
vatRate: number | null;
|
|
11302
11734
|
branchId: string | null;
|
|
11303
11735
|
cardColor: string;
|
|
@@ -11313,7 +11745,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11313
11745
|
bankInn: string | null;
|
|
11314
11746
|
bankKpp: string | null;
|
|
11315
11747
|
pricesIncludeVat: boolean;
|
|
11316
|
-
id: string;
|
|
11317
11748
|
created_at: string;
|
|
11318
11749
|
workspaceId: string;
|
|
11319
11750
|
updated_at: string | null;
|
|
@@ -11378,8 +11809,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11378
11809
|
currency: string;
|
|
11379
11810
|
discount: number;
|
|
11380
11811
|
subscription: boolean | null;
|
|
11381
|
-
|
|
11812
|
+
id: string;
|
|
11382
11813
|
amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
|
|
11814
|
+
unitPrice: number;
|
|
11383
11815
|
vatRate: number | null;
|
|
11384
11816
|
branchId: string | null;
|
|
11385
11817
|
responsibleId: string | null;
|
|
@@ -11409,7 +11841,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11409
11841
|
subscriptionStartDate: string | null;
|
|
11410
11842
|
subscriptionEndDate: string | null;
|
|
11411
11843
|
paymentMethod: string | null;
|
|
11412
|
-
id: string;
|
|
11413
11844
|
created_at: string;
|
|
11414
11845
|
workspaceId: string;
|
|
11415
11846
|
updated_at: string | null;
|
|
@@ -11775,8 +12206,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11775
12206
|
currency: string;
|
|
11776
12207
|
discount: number;
|
|
11777
12208
|
subscription: boolean | null;
|
|
11778
|
-
|
|
12209
|
+
id: string;
|
|
11779
12210
|
amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
|
|
12211
|
+
unitPrice: number;
|
|
11780
12212
|
vatRate: number | null;
|
|
11781
12213
|
branchId: string | null;
|
|
11782
12214
|
responsibleId: string | null;
|
|
@@ -11806,7 +12238,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11806
12238
|
subscriptionStartDate: string | null;
|
|
11807
12239
|
subscriptionEndDate: string | null;
|
|
11808
12240
|
paymentMethod: string | null;
|
|
11809
|
-
id: string;
|
|
11810
12241
|
created_at: string;
|
|
11811
12242
|
workspaceId: string;
|
|
11812
12243
|
updated_at: string | null;
|
|
@@ -12328,8 +12759,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12328
12759
|
currency: string;
|
|
12329
12760
|
discount: number;
|
|
12330
12761
|
subscription: boolean | null;
|
|
12331
|
-
|
|
12762
|
+
id: string;
|
|
12332
12763
|
amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
|
|
12764
|
+
unitPrice: number;
|
|
12333
12765
|
vatRate: number | null;
|
|
12334
12766
|
branchId: string | null;
|
|
12335
12767
|
responsibleId: string | null;
|
|
@@ -12359,7 +12791,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12359
12791
|
subscriptionStartDate: string | null;
|
|
12360
12792
|
subscriptionEndDate: string | null;
|
|
12361
12793
|
paymentMethod: string | null;
|
|
12362
|
-
id: string;
|
|
12363
12794
|
created_at: string;
|
|
12364
12795
|
workspaceId: string;
|
|
12365
12796
|
updated_at: string | null;
|
|
@@ -12500,8 +12931,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12500
12931
|
currency: string;
|
|
12501
12932
|
discount: number;
|
|
12502
12933
|
subscription: boolean | null;
|
|
12503
|
-
|
|
12934
|
+
id: string;
|
|
12504
12935
|
amountType: "transit" | "revenue" | "commission" | "advance" | "conditional";
|
|
12936
|
+
unitPrice: number;
|
|
12505
12937
|
vatRate: number | null;
|
|
12506
12938
|
branchId: string | null;
|
|
12507
12939
|
responsibleId: string | null;
|
|
@@ -12531,7 +12963,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
12531
12963
|
subscriptionStartDate: string | null;
|
|
12532
12964
|
subscriptionEndDate: string | null;
|
|
12533
12965
|
paymentMethod: string | null;
|
|
12534
|
-
id: string;
|
|
12535
12966
|
created_at: string;
|
|
12536
12967
|
workspaceId: string;
|
|
12537
12968
|
updated_at: string | null;
|
|
@@ -18018,6 +18449,72 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18018
18449
|
status: 200;
|
|
18019
18450
|
};
|
|
18020
18451
|
};
|
|
18452
|
+
} & {
|
|
18453
|
+
"/:workspace/churn-reasons": {
|
|
18454
|
+
$get: {
|
|
18455
|
+
input: {
|
|
18456
|
+
query: {
|
|
18457
|
+
from?: string | number | undefined;
|
|
18458
|
+
to?: string | number | undefined;
|
|
18459
|
+
};
|
|
18460
|
+
} & {
|
|
18461
|
+
param: {
|
|
18462
|
+
workspace: string;
|
|
18463
|
+
};
|
|
18464
|
+
};
|
|
18465
|
+
output: {
|
|
18466
|
+
success: false;
|
|
18467
|
+
error: string;
|
|
18468
|
+
};
|
|
18469
|
+
outputFormat: "json";
|
|
18470
|
+
status: 400;
|
|
18471
|
+
} | {
|
|
18472
|
+
input: {
|
|
18473
|
+
query: {
|
|
18474
|
+
from?: string | number | undefined;
|
|
18475
|
+
to?: string | number | undefined;
|
|
18476
|
+
};
|
|
18477
|
+
} & {
|
|
18478
|
+
param: {
|
|
18479
|
+
workspace: string;
|
|
18480
|
+
};
|
|
18481
|
+
};
|
|
18482
|
+
output: {
|
|
18483
|
+
success: false;
|
|
18484
|
+
error: string;
|
|
18485
|
+
};
|
|
18486
|
+
outputFormat: "json";
|
|
18487
|
+
status: 404;
|
|
18488
|
+
} | {
|
|
18489
|
+
input: {
|
|
18490
|
+
query: {
|
|
18491
|
+
from?: string | number | undefined;
|
|
18492
|
+
to?: string | number | undefined;
|
|
18493
|
+
};
|
|
18494
|
+
} & {
|
|
18495
|
+
param: {
|
|
18496
|
+
workspace: string;
|
|
18497
|
+
};
|
|
18498
|
+
};
|
|
18499
|
+
output: {
|
|
18500
|
+
success: true;
|
|
18501
|
+
workspaceId: string;
|
|
18502
|
+
period: {
|
|
18503
|
+
from: string | null;
|
|
18504
|
+
to: string | null;
|
|
18505
|
+
};
|
|
18506
|
+
churnedCount: number;
|
|
18507
|
+
unattributedCount: number;
|
|
18508
|
+
reasons: {
|
|
18509
|
+
share: number;
|
|
18510
|
+
reasonId: string;
|
|
18511
|
+
count: number;
|
|
18512
|
+
}[];
|
|
18513
|
+
};
|
|
18514
|
+
outputFormat: "json";
|
|
18515
|
+
status: 200;
|
|
18516
|
+
};
|
|
18517
|
+
};
|
|
18021
18518
|
} & {
|
|
18022
18519
|
"/:workspace/first-response-time": {
|
|
18023
18520
|
$get: {
|
|
@@ -18434,6 +18931,49 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18434
18931
|
};
|
|
18435
18932
|
};
|
|
18436
18933
|
}, "/analytics"> | import("hono/types").MergeSchemaPath<{
|
|
18934
|
+
"/status/:bridge": {
|
|
18935
|
+
$post: {
|
|
18936
|
+
input: {
|
|
18937
|
+
json: {
|
|
18938
|
+
state_event: string;
|
|
18939
|
+
remote_id?: string | undefined;
|
|
18940
|
+
remote_name?: string | undefined;
|
|
18941
|
+
error?: string | undefined;
|
|
18942
|
+
message?: string | undefined;
|
|
18943
|
+
};
|
|
18944
|
+
} & {
|
|
18945
|
+
param: {
|
|
18946
|
+
bridge: string;
|
|
18947
|
+
};
|
|
18948
|
+
};
|
|
18949
|
+
output: {
|
|
18950
|
+
success: false;
|
|
18951
|
+
error: string;
|
|
18952
|
+
};
|
|
18953
|
+
outputFormat: "json";
|
|
18954
|
+
status: 401;
|
|
18955
|
+
} | {
|
|
18956
|
+
input: {
|
|
18957
|
+
json: {
|
|
18958
|
+
state_event: string;
|
|
18959
|
+
remote_id?: string | undefined;
|
|
18960
|
+
remote_name?: string | undefined;
|
|
18961
|
+
error?: string | undefined;
|
|
18962
|
+
message?: string | undefined;
|
|
18963
|
+
};
|
|
18964
|
+
} & {
|
|
18965
|
+
param: {
|
|
18966
|
+
bridge: string;
|
|
18967
|
+
};
|
|
18968
|
+
};
|
|
18969
|
+
output: {
|
|
18970
|
+
success: true;
|
|
18971
|
+
};
|
|
18972
|
+
outputFormat: "json";
|
|
18973
|
+
status: 200;
|
|
18974
|
+
};
|
|
18975
|
+
};
|
|
18976
|
+
}, "/bridges"> | import("hono/types").MergeSchemaPath<{
|
|
18437
18977
|
"/accounts/list/:workspace": {
|
|
18438
18978
|
$get: {
|
|
18439
18979
|
input: {
|
|
@@ -19570,8 +20110,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
19570
20110
|
telegram: string;
|
|
19571
20111
|
whatsapp: string;
|
|
19572
20112
|
address: string;
|
|
19573
|
-
timeZone: string;
|
|
19574
20113
|
id: string;
|
|
20114
|
+
timeZone: string;
|
|
19575
20115
|
franchiseeId: string | null;
|
|
19576
20116
|
openedAt: string | null;
|
|
19577
20117
|
managerId: string | null;
|
|
@@ -19763,9 +20303,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
19763
20303
|
warehouse: {
|
|
19764
20304
|
name: string;
|
|
19765
20305
|
address: string | null;
|
|
20306
|
+
id: string;
|
|
19766
20307
|
branchId: string;
|
|
19767
20308
|
responsibleId: string | null;
|
|
19768
|
-
id: string;
|
|
19769
20309
|
attributes: {
|
|
19770
20310
|
[x: string]: ResourceAttributeValue;
|
|
19771
20311
|
};
|
|
@@ -20586,7 +21126,41 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
20586
21126
|
status: 200;
|
|
20587
21127
|
};
|
|
20588
21128
|
};
|
|
20589
|
-
}, "/partners"
|
|
21129
|
+
}, "/partners"> | import("hono/types").MergeSchemaPath<{
|
|
21130
|
+
"/me": {
|
|
21131
|
+
$get: {
|
|
21132
|
+
input: {};
|
|
21133
|
+
output: {
|
|
21134
|
+
success: true;
|
|
21135
|
+
isAdmin: boolean;
|
|
21136
|
+
};
|
|
21137
|
+
outputFormat: "json";
|
|
21138
|
+
status: 200;
|
|
21139
|
+
};
|
|
21140
|
+
};
|
|
21141
|
+
} & {
|
|
21142
|
+
"/clients": {
|
|
21143
|
+
$get: {
|
|
21144
|
+
input: {};
|
|
21145
|
+
output: {
|
|
21146
|
+
success: true;
|
|
21147
|
+
clients: {
|
|
21148
|
+
id: string;
|
|
21149
|
+
firstName: string | null;
|
|
21150
|
+
lastName: string | null;
|
|
21151
|
+
email: string | null;
|
|
21152
|
+
phone: string | null;
|
|
21153
|
+
profilePicture: string | null;
|
|
21154
|
+
lastSeenAt: string | null;
|
|
21155
|
+
signedUpAt: string;
|
|
21156
|
+
workspaces: string[];
|
|
21157
|
+
}[];
|
|
21158
|
+
};
|
|
21159
|
+
outputFormat: "json";
|
|
21160
|
+
status: 200;
|
|
21161
|
+
};
|
|
21162
|
+
};
|
|
21163
|
+
}, "/admin">, "/", "/">;
|
|
20590
21164
|
type GlobalErrorResponses = {
|
|
20591
21165
|
400: {
|
|
20592
21166
|
json: ApiError;
|