@mestra-dev/contract 0.0.258 → 0.0.260
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 +271 -243
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -133,6 +133,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
133
133
|
};
|
|
134
134
|
outputFormat: "json";
|
|
135
135
|
status: 400;
|
|
136
|
+
} | {
|
|
137
|
+
input: {};
|
|
138
|
+
output: {
|
|
139
|
+
success: false;
|
|
140
|
+
error: string;
|
|
141
|
+
};
|
|
142
|
+
outputFormat: "json";
|
|
143
|
+
status: 502;
|
|
136
144
|
};
|
|
137
145
|
};
|
|
138
146
|
} & {
|
|
@@ -166,7 +174,15 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
166
174
|
error: string;
|
|
167
175
|
};
|
|
168
176
|
outputFormat: "json";
|
|
169
|
-
status:
|
|
177
|
+
status: 503;
|
|
178
|
+
} | {
|
|
179
|
+
input: {};
|
|
180
|
+
output: {
|
|
181
|
+
success: false;
|
|
182
|
+
error: string;
|
|
183
|
+
};
|
|
184
|
+
outputFormat: "json";
|
|
185
|
+
status: 403;
|
|
170
186
|
};
|
|
171
187
|
};
|
|
172
188
|
} & {
|
|
@@ -409,6 +425,14 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
409
425
|
} & {
|
|
410
426
|
"/refresh": {
|
|
411
427
|
$get: {
|
|
428
|
+
input: {};
|
|
429
|
+
output: {
|
|
430
|
+
success: false;
|
|
431
|
+
error: string;
|
|
432
|
+
};
|
|
433
|
+
outputFormat: "json";
|
|
434
|
+
status: 401;
|
|
435
|
+
} | {
|
|
412
436
|
input: {};
|
|
413
437
|
output: {
|
|
414
438
|
success: true;
|
|
@@ -1125,19 +1149,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1125
1149
|
};
|
|
1126
1150
|
outputFormat: "json";
|
|
1127
1151
|
status: 400;
|
|
1128
|
-
} | {
|
|
1129
|
-
input: {
|
|
1130
|
-
json: {
|
|
1131
|
-
workspace: string;
|
|
1132
|
-
collaboratorId: string;
|
|
1133
|
-
};
|
|
1134
|
-
};
|
|
1135
|
-
output: {
|
|
1136
|
-
success: false;
|
|
1137
|
-
error: string;
|
|
1138
|
-
};
|
|
1139
|
-
outputFormat: "json";
|
|
1140
|
-
status: 500;
|
|
1141
1152
|
} | {
|
|
1142
1153
|
input: {
|
|
1143
1154
|
json: {
|
|
@@ -1272,7 +1283,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1272
1283
|
error: string;
|
|
1273
1284
|
};
|
|
1274
1285
|
outputFormat: "json";
|
|
1275
|
-
status:
|
|
1286
|
+
status: 503;
|
|
1276
1287
|
} | {
|
|
1277
1288
|
input: {
|
|
1278
1289
|
json: {
|
|
@@ -1318,20 +1329,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1318
1329
|
};
|
|
1319
1330
|
outputFormat: "json";
|
|
1320
1331
|
status: 400;
|
|
1321
|
-
} | {
|
|
1322
|
-
input: {
|
|
1323
|
-
json: {
|
|
1324
|
-
workspace: string;
|
|
1325
|
-
collaboratorId: string;
|
|
1326
|
-
role: string;
|
|
1327
|
-
};
|
|
1328
|
-
};
|
|
1329
|
-
output: {
|
|
1330
|
-
success: false;
|
|
1331
|
-
error: string;
|
|
1332
|
-
};
|
|
1333
|
-
outputFormat: "json";
|
|
1334
|
-
status: 500;
|
|
1335
1332
|
} | {
|
|
1336
1333
|
input: {
|
|
1337
1334
|
json: {
|
|
@@ -1376,7 +1373,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1376
1373
|
error: string;
|
|
1377
1374
|
};
|
|
1378
1375
|
outputFormat: "json";
|
|
1379
|
-
status:
|
|
1376
|
+
status: 404;
|
|
1380
1377
|
} | {
|
|
1381
1378
|
input: {
|
|
1382
1379
|
json: {
|
|
@@ -1423,7 +1420,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1423
1420
|
error: string;
|
|
1424
1421
|
};
|
|
1425
1422
|
outputFormat: "json";
|
|
1426
|
-
status:
|
|
1423
|
+
status: 503;
|
|
1427
1424
|
} | {
|
|
1428
1425
|
input: {
|
|
1429
1426
|
json: {
|
|
@@ -1480,19 +1477,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1480
1477
|
};
|
|
1481
1478
|
outputFormat: "json";
|
|
1482
1479
|
status: 400 | 404 | 409 | 403 | 502 | 503;
|
|
1483
|
-
} | {
|
|
1484
|
-
input: {
|
|
1485
|
-
json: {
|
|
1486
|
-
workspace: string;
|
|
1487
|
-
confirm: string;
|
|
1488
|
-
};
|
|
1489
|
-
};
|
|
1490
|
-
output: {
|
|
1491
|
-
success: false;
|
|
1492
|
-
error: string;
|
|
1493
|
-
};
|
|
1494
|
-
outputFormat: "json";
|
|
1495
|
-
status: 500;
|
|
1496
1480
|
} | {
|
|
1497
1481
|
input: {
|
|
1498
1482
|
json: {
|
|
@@ -1533,18 +1517,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1533
1517
|
};
|
|
1534
1518
|
outputFormat: "json";
|
|
1535
1519
|
status: 400;
|
|
1536
|
-
} | {
|
|
1537
|
-
input: {
|
|
1538
|
-
param: {
|
|
1539
|
-
workspace: string;
|
|
1540
|
-
};
|
|
1541
|
-
};
|
|
1542
|
-
output: {
|
|
1543
|
-
success: false;
|
|
1544
|
-
error: string;
|
|
1545
|
-
};
|
|
1546
|
-
outputFormat: "json";
|
|
1547
|
-
status: 500;
|
|
1548
1520
|
} | {
|
|
1549
1521
|
input: {
|
|
1550
1522
|
param: {
|
|
@@ -1786,6 +1758,27 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1786
1758
|
};
|
|
1787
1759
|
outputFormat: "json";
|
|
1788
1760
|
status: 400;
|
|
1761
|
+
} | {
|
|
1762
|
+
input: {
|
|
1763
|
+
json: {
|
|
1764
|
+
workspace: string;
|
|
1765
|
+
customerId?: string | undefined;
|
|
1766
|
+
subject: string;
|
|
1767
|
+
description?: string | undefined;
|
|
1768
|
+
phaseId?: string | undefined;
|
|
1769
|
+
priority?: "low" | "medium" | "high" | undefined;
|
|
1770
|
+
assignees?: string[] | undefined;
|
|
1771
|
+
comments?: string[] | undefined;
|
|
1772
|
+
attachments?: string[] | undefined;
|
|
1773
|
+
visibility?: "public" | "private" | undefined;
|
|
1774
|
+
};
|
|
1775
|
+
};
|
|
1776
|
+
output: {
|
|
1777
|
+
success: false;
|
|
1778
|
+
error: string;
|
|
1779
|
+
};
|
|
1780
|
+
outputFormat: "json";
|
|
1781
|
+
status: 404;
|
|
1789
1782
|
} | {
|
|
1790
1783
|
input: {
|
|
1791
1784
|
json: {
|
|
@@ -2095,25 +2088,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
2095
2088
|
};
|
|
2096
2089
|
outputFormat: "json";
|
|
2097
2090
|
status: 400;
|
|
2098
|
-
} | {
|
|
2099
|
-
input: {
|
|
2100
|
-
json: {
|
|
2101
|
-
workspace: string;
|
|
2102
|
-
taskId: string;
|
|
2103
|
-
subject?: string | undefined;
|
|
2104
|
-
description?: string | undefined;
|
|
2105
|
-
phaseId?: string | undefined;
|
|
2106
|
-
priority?: "low" | "medium" | "high" | undefined;
|
|
2107
|
-
assignees?: string[] | undefined;
|
|
2108
|
-
visibility?: "public" | "private" | undefined;
|
|
2109
|
-
};
|
|
2110
|
-
};
|
|
2111
|
-
output: {
|
|
2112
|
-
success: false;
|
|
2113
|
-
error: string;
|
|
2114
|
-
};
|
|
2115
|
-
outputFormat: "json";
|
|
2116
|
-
status: 500;
|
|
2117
2091
|
} | {
|
|
2118
2092
|
input: {
|
|
2119
2093
|
json: {
|
|
@@ -3033,6 +3007,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3033
3007
|
};
|
|
3034
3008
|
outputFormat: "json";
|
|
3035
3009
|
status: 404;
|
|
3010
|
+
} | {
|
|
3011
|
+
input: {
|
|
3012
|
+
json: {
|
|
3013
|
+
serviceId: string;
|
|
3014
|
+
workspace: string;
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
3017
|
+
output: {
|
|
3018
|
+
success: false;
|
|
3019
|
+
error: string;
|
|
3020
|
+
code: string;
|
|
3021
|
+
};
|
|
3022
|
+
outputFormat: "json";
|
|
3023
|
+
status: 409;
|
|
3036
3024
|
} | {
|
|
3037
3025
|
input: {
|
|
3038
3026
|
json: {
|
|
@@ -3634,44 +3622,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3634
3622
|
$post: {
|
|
3635
3623
|
input: {
|
|
3636
3624
|
json: {
|
|
3625
|
+
installmentNumber?: number | null | undefined;
|
|
3626
|
+
totalInstallments?: number | null | undefined;
|
|
3627
|
+
installmentGroupId?: string | null | undefined;
|
|
3637
3628
|
workspace: string;
|
|
3638
3629
|
invoiceId: string;
|
|
3639
|
-
serviceId
|
|
3640
|
-
SellerFinanceAccountId: string;
|
|
3641
|
-
customerId: string;
|
|
3642
|
-
date: string | number;
|
|
3643
|
-
language: "ru" | "en";
|
|
3644
|
-
currency: "USD" | "EUR" | "RUB";
|
|
3645
|
-
vatOption: "vat_included" | "vat_excluded";
|
|
3646
|
-
vatRate?: number | undefined;
|
|
3647
|
-
buyerInn?: string | undefined;
|
|
3648
|
-
buyerKpp?: string | undefined;
|
|
3649
|
-
unitName: string;
|
|
3650
|
-
unitPrice: number;
|
|
3651
|
-
unitQuantity: number;
|
|
3652
|
-
notes?: string | undefined;
|
|
3653
|
-
status?: "pending" | "canceled" | "paid" | "refunded" | undefined;
|
|
3654
|
-
discount?: number | undefined;
|
|
3655
|
-
fullPayment?: boolean | undefined;
|
|
3656
|
-
installment?: boolean | undefined;
|
|
3657
|
-
subscription?: boolean | undefined;
|
|
3658
|
-
subscriptionStartDate?: string | number | undefined;
|
|
3659
|
-
subscriptionEndDate?: string | number | undefined;
|
|
3660
|
-
paymentMethod?: string | undefined;
|
|
3661
|
-
};
|
|
3662
|
-
};
|
|
3663
|
-
output: {
|
|
3664
|
-
success: false;
|
|
3665
|
-
error: string;
|
|
3666
|
-
};
|
|
3667
|
-
outputFormat: "json";
|
|
3668
|
-
status: 404;
|
|
3669
|
-
} | {
|
|
3670
|
-
input: {
|
|
3671
|
-
json: {
|
|
3672
|
-
workspace: string;
|
|
3673
|
-
invoiceId: string;
|
|
3674
|
-
serviceId: string;
|
|
3630
|
+
serviceId?: string | undefined;
|
|
3675
3631
|
SellerFinanceAccountId: string;
|
|
3676
3632
|
customerId: string;
|
|
3677
3633
|
date: string | number;
|
|
@@ -3681,9 +3637,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3681
3637
|
vatRate?: number | undefined;
|
|
3682
3638
|
buyerInn?: string | undefined;
|
|
3683
3639
|
buyerKpp?: string | undefined;
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3640
|
+
services?: {
|
|
3641
|
+
serviceId?: string | null | undefined;
|
|
3642
|
+
name: string;
|
|
3643
|
+
unitPrice: number;
|
|
3644
|
+
quantity?: number | undefined;
|
|
3645
|
+
discount?: number | undefined;
|
|
3646
|
+
description?: string | undefined;
|
|
3647
|
+
}[] | undefined;
|
|
3648
|
+
unitName?: string | undefined;
|
|
3649
|
+
unitPrice?: number | undefined;
|
|
3650
|
+
unitQuantity?: number | undefined;
|
|
3687
3651
|
notes?: string | undefined;
|
|
3688
3652
|
status?: "pending" | "canceled" | "paid" | "refunded" | undefined;
|
|
3689
3653
|
discount?: number | undefined;
|
|
@@ -3700,13 +3664,16 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3700
3664
|
error: string;
|
|
3701
3665
|
};
|
|
3702
3666
|
outputFormat: "json";
|
|
3703
|
-
status: 400;
|
|
3667
|
+
status: 400 | 404;
|
|
3704
3668
|
} | {
|
|
3705
3669
|
input: {
|
|
3706
3670
|
json: {
|
|
3671
|
+
installmentNumber?: number | null | undefined;
|
|
3672
|
+
totalInstallments?: number | null | undefined;
|
|
3673
|
+
installmentGroupId?: string | null | undefined;
|
|
3707
3674
|
workspace: string;
|
|
3708
3675
|
invoiceId: string;
|
|
3709
|
-
serviceId
|
|
3676
|
+
serviceId?: string | undefined;
|
|
3710
3677
|
SellerFinanceAccountId: string;
|
|
3711
3678
|
customerId: string;
|
|
3712
3679
|
date: string | number;
|
|
@@ -3716,9 +3683,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3716
3683
|
vatRate?: number | undefined;
|
|
3717
3684
|
buyerInn?: string | undefined;
|
|
3718
3685
|
buyerKpp?: string | undefined;
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3686
|
+
services?: {
|
|
3687
|
+
serviceId?: string | null | undefined;
|
|
3688
|
+
name: string;
|
|
3689
|
+
unitPrice: number;
|
|
3690
|
+
quantity?: number | undefined;
|
|
3691
|
+
discount?: number | undefined;
|
|
3692
|
+
description?: string | undefined;
|
|
3693
|
+
}[] | undefined;
|
|
3694
|
+
unitName?: string | undefined;
|
|
3695
|
+
unitPrice?: number | undefined;
|
|
3696
|
+
unitQuantity?: number | undefined;
|
|
3722
3697
|
notes?: string | undefined;
|
|
3723
3698
|
status?: "pending" | "canceled" | "paid" | "refunded" | undefined;
|
|
3724
3699
|
discount?: number | undefined;
|
|
@@ -3748,7 +3723,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3748
3723
|
installment: boolean | null;
|
|
3749
3724
|
notes: string | null;
|
|
3750
3725
|
currency: string;
|
|
3751
|
-
serviceId: string;
|
|
3726
|
+
serviceId: string | null;
|
|
3727
|
+
invoiceDiscount: number;
|
|
3728
|
+
discount: number;
|
|
3752
3729
|
SellerFinanceAccountId: string;
|
|
3753
3730
|
date: string;
|
|
3754
3731
|
language: string;
|
|
@@ -3756,15 +3733,30 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3756
3733
|
unitName: string;
|
|
3757
3734
|
unitPrice: number;
|
|
3758
3735
|
unitQuantity: number;
|
|
3736
|
+
installmentNumber: number | null;
|
|
3737
|
+
totalInstallments: number | null;
|
|
3738
|
+
installmentGroupId: string | null;
|
|
3759
3739
|
vatRate: number | null;
|
|
3760
3740
|
paidAt: string | null;
|
|
3761
3741
|
buyerInn: string | null;
|
|
3762
3742
|
buyerKpp: string | null;
|
|
3763
|
-
discount: number | null;
|
|
3764
3743
|
subscription: boolean | null;
|
|
3765
3744
|
subscriptionStartDate: string | null;
|
|
3766
3745
|
subscriptionEndDate: string | null;
|
|
3767
3746
|
paymentMethod: string | null;
|
|
3747
|
+
subtotal: number;
|
|
3748
|
+
lineDiscounts: number;
|
|
3749
|
+
total: number;
|
|
3750
|
+
services: {
|
|
3751
|
+
id: string;
|
|
3752
|
+
serviceId: string | null;
|
|
3753
|
+
position: number;
|
|
3754
|
+
name: string;
|
|
3755
|
+
unitPrice: number;
|
|
3756
|
+
quantity: number;
|
|
3757
|
+
discount: number;
|
|
3758
|
+
description: string | null;
|
|
3759
|
+
}[];
|
|
3768
3760
|
}[];
|
|
3769
3761
|
};
|
|
3770
3762
|
outputFormat: "json";
|
|
@@ -3850,39 +3842,94 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3850
3842
|
output: {
|
|
3851
3843
|
success: true;
|
|
3852
3844
|
cinvoices: {
|
|
3845
|
+
id: string;
|
|
3846
|
+
created_at: string;
|
|
3847
|
+
workspaceId: string;
|
|
3853
3848
|
updated_at: string | null;
|
|
3854
3849
|
deleted_at: string | null;
|
|
3855
3850
|
verified_at: string | null;
|
|
3856
3851
|
suspended_at: string | null;
|
|
3857
|
-
created_at: string;
|
|
3858
|
-
id: string;
|
|
3859
|
-
workspaceId: string;
|
|
3860
3852
|
invoiceId: string;
|
|
3861
|
-
|
|
3862
|
-
|
|
3853
|
+
status: string;
|
|
3854
|
+
created_by: string;
|
|
3863
3855
|
customerId: string;
|
|
3856
|
+
fullPayment: boolean | null;
|
|
3857
|
+
installment: boolean | null;
|
|
3858
|
+
notes: string | null;
|
|
3859
|
+
currency: string;
|
|
3860
|
+
serviceId: string | null;
|
|
3861
|
+
invoiceDiscount: number;
|
|
3862
|
+
discount: number;
|
|
3863
|
+
SellerFinanceAccountId: string;
|
|
3864
3864
|
date: string;
|
|
3865
3865
|
language: string;
|
|
3866
|
-
currency: string;
|
|
3867
3866
|
vatOption: string;
|
|
3868
|
-
vatRate: number | null;
|
|
3869
|
-
buyerInn: string | null;
|
|
3870
|
-
buyerKpp: string | null;
|
|
3871
3867
|
unitName: string;
|
|
3872
3868
|
unitPrice: number;
|
|
3873
3869
|
unitQuantity: number;
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3870
|
+
installmentNumber: number | null;
|
|
3871
|
+
totalInstallments: number | null;
|
|
3872
|
+
installmentGroupId: string | null;
|
|
3873
|
+
vatRate: number | null;
|
|
3874
|
+
paidAt: string | null;
|
|
3875
|
+
buyerInn: string | null;
|
|
3876
|
+
buyerKpp: string | null;
|
|
3878
3877
|
subscription: boolean | null;
|
|
3879
3878
|
subscriptionStartDate: string | null;
|
|
3880
3879
|
subscriptionEndDate: string | null;
|
|
3881
3880
|
paymentMethod: string | null;
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3881
|
+
subtotal: number;
|
|
3882
|
+
lineDiscounts: number;
|
|
3883
|
+
total: number;
|
|
3884
|
+
services: {
|
|
3885
|
+
id: string;
|
|
3886
|
+
serviceId: string | null;
|
|
3887
|
+
position: number;
|
|
3888
|
+
name: string;
|
|
3889
|
+
unitPrice: number;
|
|
3890
|
+
quantity: number;
|
|
3891
|
+
discount: number;
|
|
3892
|
+
description: string | null;
|
|
3893
|
+
}[];
|
|
3894
|
+
}[];
|
|
3895
|
+
};
|
|
3896
|
+
outputFormat: "json";
|
|
3897
|
+
status: 200;
|
|
3898
|
+
};
|
|
3899
|
+
};
|
|
3900
|
+
} & {
|
|
3901
|
+
"/services/usage/:workspace": {
|
|
3902
|
+
$get: {
|
|
3903
|
+
input: {
|
|
3904
|
+
query: {
|
|
3905
|
+
from?: string | number | undefined;
|
|
3906
|
+
to?: string | number | undefined;
|
|
3907
|
+
status?: "pending" | "canceled" | "paid" | "refunded" | undefined;
|
|
3908
|
+
customerId?: string | undefined;
|
|
3909
|
+
};
|
|
3910
|
+
} & {
|
|
3911
|
+
param: {
|
|
3912
|
+
workspace: string;
|
|
3913
|
+
};
|
|
3914
|
+
};
|
|
3915
|
+
output: {
|
|
3916
|
+
services: {
|
|
3917
|
+
serviceId: string | null;
|
|
3918
|
+
name: string;
|
|
3919
|
+
invoiceCount: number;
|
|
3920
|
+
quantity: number;
|
|
3921
|
+
amounts: {
|
|
3922
|
+
currency: string;
|
|
3923
|
+
amountMinor: number;
|
|
3924
|
+
}[];
|
|
3885
3925
|
}[];
|
|
3926
|
+
totals: {
|
|
3927
|
+
serviceCount: number;
|
|
3928
|
+
catalogServiceCount: number;
|
|
3929
|
+
invoiceCount: number;
|
|
3930
|
+
lineCount: number;
|
|
3931
|
+
};
|
|
3932
|
+
success: true;
|
|
3886
3933
|
};
|
|
3887
3934
|
outputFormat: "json";
|
|
3888
3935
|
status: 200;
|
|
@@ -3893,9 +3940,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3893
3940
|
$post: {
|
|
3894
3941
|
input: {
|
|
3895
3942
|
json: {
|
|
3943
|
+
installmentNumber?: number | null | undefined;
|
|
3944
|
+
totalInstallments?: number | null | undefined;
|
|
3945
|
+
installmentGroupId?: string | null | undefined;
|
|
3896
3946
|
cinvoiceId: string;
|
|
3897
3947
|
workspace: string;
|
|
3898
3948
|
invoiceId?: string | undefined;
|
|
3949
|
+
services?: {
|
|
3950
|
+
serviceId?: string | null | undefined;
|
|
3951
|
+
name: string;
|
|
3952
|
+
unitPrice: number;
|
|
3953
|
+
quantity?: number | undefined;
|
|
3954
|
+
discount?: number | undefined;
|
|
3955
|
+
description?: string | undefined;
|
|
3956
|
+
}[] | undefined;
|
|
3899
3957
|
serviceId?: string | undefined;
|
|
3900
3958
|
SellerFinanceAccountId?: string | undefined;
|
|
3901
3959
|
customerId?: string | undefined;
|
|
@@ -3929,9 +3987,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3929
3987
|
} | {
|
|
3930
3988
|
input: {
|
|
3931
3989
|
json: {
|
|
3990
|
+
installmentNumber?: number | null | undefined;
|
|
3991
|
+
totalInstallments?: number | null | undefined;
|
|
3992
|
+
installmentGroupId?: string | null | undefined;
|
|
3932
3993
|
cinvoiceId: string;
|
|
3933
3994
|
workspace: string;
|
|
3934
3995
|
invoiceId?: string | undefined;
|
|
3996
|
+
services?: {
|
|
3997
|
+
serviceId?: string | null | undefined;
|
|
3998
|
+
name: string;
|
|
3999
|
+
unitPrice: number;
|
|
4000
|
+
quantity?: number | undefined;
|
|
4001
|
+
discount?: number | undefined;
|
|
4002
|
+
description?: string | undefined;
|
|
4003
|
+
}[] | undefined;
|
|
3935
4004
|
serviceId?: string | undefined;
|
|
3936
4005
|
SellerFinanceAccountId?: string | undefined;
|
|
3937
4006
|
customerId?: string | undefined;
|
|
@@ -3974,7 +4043,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3974
4043
|
installment: boolean | null;
|
|
3975
4044
|
notes: string | null;
|
|
3976
4045
|
currency: string;
|
|
3977
|
-
serviceId: string;
|
|
4046
|
+
serviceId: string | null;
|
|
4047
|
+
invoiceDiscount: number;
|
|
4048
|
+
discount: number;
|
|
3978
4049
|
SellerFinanceAccountId: string;
|
|
3979
4050
|
date: string;
|
|
3980
4051
|
language: string;
|
|
@@ -3982,15 +4053,30 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3982
4053
|
unitName: string;
|
|
3983
4054
|
unitPrice: number;
|
|
3984
4055
|
unitQuantity: number;
|
|
4056
|
+
installmentNumber: number | null;
|
|
4057
|
+
totalInstallments: number | null;
|
|
4058
|
+
installmentGroupId: string | null;
|
|
3985
4059
|
vatRate: number | null;
|
|
3986
4060
|
paidAt: string | null;
|
|
3987
4061
|
buyerInn: string | null;
|
|
3988
4062
|
buyerKpp: string | null;
|
|
3989
|
-
discount: number | null;
|
|
3990
4063
|
subscription: boolean | null;
|
|
3991
4064
|
subscriptionStartDate: string | null;
|
|
3992
4065
|
subscriptionEndDate: string | null;
|
|
3993
4066
|
paymentMethod: string | null;
|
|
4067
|
+
subtotal: number;
|
|
4068
|
+
lineDiscounts: number;
|
|
4069
|
+
total: number;
|
|
4070
|
+
services: {
|
|
4071
|
+
id: string;
|
|
4072
|
+
serviceId: string | null;
|
|
4073
|
+
position: number;
|
|
4074
|
+
name: string;
|
|
4075
|
+
unitPrice: number;
|
|
4076
|
+
quantity: number;
|
|
4077
|
+
discount: number;
|
|
4078
|
+
description: string | null;
|
|
4079
|
+
}[];
|
|
3994
4080
|
}[];
|
|
3995
4081
|
};
|
|
3996
4082
|
outputFormat: "json";
|
|
@@ -5178,7 +5264,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
5178
5264
|
error: string;
|
|
5179
5265
|
};
|
|
5180
5266
|
outputFormat: "json";
|
|
5181
|
-
status:
|
|
5267
|
+
status: 503;
|
|
5182
5268
|
} | {
|
|
5183
5269
|
input: {};
|
|
5184
5270
|
output: {
|
|
@@ -5234,32 +5320,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
5234
5320
|
} & {
|
|
5235
5321
|
"/calendar/create-event": {
|
|
5236
5322
|
$post: {
|
|
5237
|
-
input: {
|
|
5238
|
-
json: {
|
|
5239
|
-
workspace: string;
|
|
5240
|
-
title: string;
|
|
5241
|
-
description?: string | undefined;
|
|
5242
|
-
startDate: string | number;
|
|
5243
|
-
endDate: string | number;
|
|
5244
|
-
type?: "event" | "conference" | "booking" | "meeting" | undefined;
|
|
5245
|
-
timeZone: string;
|
|
5246
|
-
attendees?: {
|
|
5247
|
-
email: string;
|
|
5248
|
-
}[] | undefined;
|
|
5249
|
-
conferenceData?: boolean | undefined;
|
|
5250
|
-
reminders?: {
|
|
5251
|
-
method: "email" | "popup";
|
|
5252
|
-
minutes: number;
|
|
5253
|
-
}[] | undefined;
|
|
5254
|
-
};
|
|
5255
|
-
};
|
|
5256
|
-
output: {
|
|
5257
|
-
success: false;
|
|
5258
|
-
error: string;
|
|
5259
|
-
};
|
|
5260
|
-
outputFormat: "json";
|
|
5261
|
-
status: 404;
|
|
5262
|
-
} | {
|
|
5263
5323
|
input: {
|
|
5264
5324
|
json: {
|
|
5265
5325
|
workspace: string;
|
|
@@ -7782,18 +7842,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7782
7842
|
} & {
|
|
7783
7843
|
"/calendar/:workspace/get-event": {
|
|
7784
7844
|
$get: {
|
|
7785
|
-
input: {
|
|
7786
|
-
param: {
|
|
7787
|
-
workspace: string;
|
|
7788
|
-
};
|
|
7789
|
-
};
|
|
7790
|
-
output: {
|
|
7791
|
-
success: false;
|
|
7792
|
-
error: string;
|
|
7793
|
-
};
|
|
7794
|
-
outputFormat: "json";
|
|
7795
|
-
status: 404;
|
|
7796
|
-
} | {
|
|
7797
7845
|
input: {
|
|
7798
7846
|
param: {
|
|
7799
7847
|
workspace: string;
|
|
@@ -7997,33 +8045,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7997
8045
|
} & {
|
|
7998
8046
|
"/calendar/update-event": {
|
|
7999
8047
|
$post: {
|
|
8000
|
-
input: {
|
|
8001
|
-
json: {
|
|
8002
|
-
eventId: string;
|
|
8003
|
-
workspace: string;
|
|
8004
|
-
title?: string | undefined;
|
|
8005
|
-
description?: string | undefined;
|
|
8006
|
-
type?: "event" | "conference" | "booking" | "meeting" | undefined;
|
|
8007
|
-
attendees?: {
|
|
8008
|
-
email: string;
|
|
8009
|
-
}[] | undefined;
|
|
8010
|
-
conferenceData?: boolean | undefined;
|
|
8011
|
-
reminders?: {
|
|
8012
|
-
method: "email" | "popup";
|
|
8013
|
-
minutes: number;
|
|
8014
|
-
}[] | undefined;
|
|
8015
|
-
startDate?: string | number | undefined;
|
|
8016
|
-
endDate?: string | number | undefined;
|
|
8017
|
-
timeZone?: string | undefined;
|
|
8018
|
-
};
|
|
8019
|
-
};
|
|
8020
|
-
output: {
|
|
8021
|
-
success: false;
|
|
8022
|
-
error: string;
|
|
8023
|
-
};
|
|
8024
|
-
outputFormat: "json";
|
|
8025
|
-
status: 404;
|
|
8026
|
-
} | {
|
|
8027
8048
|
input: {
|
|
8028
8049
|
json: {
|
|
8029
8050
|
eventId: string;
|
|
@@ -8257,19 +8278,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8257
8278
|
} & {
|
|
8258
8279
|
"/calendar/remove-event": {
|
|
8259
8280
|
$post: {
|
|
8260
|
-
input: {
|
|
8261
|
-
json: {
|
|
8262
|
-
eventId: string;
|
|
8263
|
-
workspace: string;
|
|
8264
|
-
};
|
|
8265
|
-
};
|
|
8266
|
-
output: {
|
|
8267
|
-
success: false;
|
|
8268
|
-
error: string;
|
|
8269
|
-
};
|
|
8270
|
-
outputFormat: "json";
|
|
8271
|
-
status: 404;
|
|
8272
|
-
} | {
|
|
8273
8281
|
input: {
|
|
8274
8282
|
json: {
|
|
8275
8283
|
eventId: string;
|
|
@@ -8286,19 +8294,6 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8286
8294
|
} & {
|
|
8287
8295
|
"/calendar/cancel-event": {
|
|
8288
8296
|
$post: {
|
|
8289
|
-
input: {
|
|
8290
|
-
json: {
|
|
8291
|
-
eventId: string;
|
|
8292
|
-
workspace: string;
|
|
8293
|
-
};
|
|
8294
|
-
};
|
|
8295
|
-
output: {
|
|
8296
|
-
success: false;
|
|
8297
|
-
error: string;
|
|
8298
|
-
};
|
|
8299
|
-
outputFormat: "json";
|
|
8300
|
-
status: 404;
|
|
8301
|
-
} | {
|
|
8302
8297
|
input: {
|
|
8303
8298
|
json: {
|
|
8304
8299
|
eventId: string;
|
|
@@ -8316,18 +8311,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8316
8311
|
"/calendar/:workspace/list-events-by-month": {
|
|
8317
8312
|
$get: {
|
|
8318
8313
|
input: {
|
|
8319
|
-
|
|
8320
|
-
|
|
8314
|
+
query: {
|
|
8315
|
+
year?: string | string[] | undefined;
|
|
8316
|
+
month: string | string[];
|
|
8321
8317
|
};
|
|
8322
|
-
}
|
|
8323
|
-
output: {
|
|
8324
|
-
success: false;
|
|
8325
|
-
error: string;
|
|
8326
|
-
};
|
|
8327
|
-
outputFormat: "json";
|
|
8328
|
-
status: 404;
|
|
8329
|
-
} | {
|
|
8330
|
-
input: {
|
|
8318
|
+
} & {
|
|
8331
8319
|
param: {
|
|
8332
8320
|
workspace: string;
|
|
8333
8321
|
};
|
|
@@ -8727,6 +8715,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8727
8715
|
} & {
|
|
8728
8716
|
"/pin": {
|
|
8729
8717
|
$post: {
|
|
8718
|
+
input: {
|
|
8719
|
+
json: {
|
|
8720
|
+
workspace: string;
|
|
8721
|
+
path: string;
|
|
8722
|
+
pin: boolean;
|
|
8723
|
+
};
|
|
8724
|
+
};
|
|
8725
|
+
output: {
|
|
8726
|
+
success: false;
|
|
8727
|
+
error: string;
|
|
8728
|
+
};
|
|
8729
|
+
outputFormat: "json";
|
|
8730
|
+
status: 404;
|
|
8731
|
+
} | {
|
|
8730
8732
|
input: {
|
|
8731
8733
|
json: {
|
|
8732
8734
|
workspace: string;
|
|
@@ -9695,7 +9697,19 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9695
9697
|
error: string;
|
|
9696
9698
|
};
|
|
9697
9699
|
outputFormat: "json";
|
|
9698
|
-
status:
|
|
9700
|
+
status: 503;
|
|
9701
|
+
} | {
|
|
9702
|
+
input: {
|
|
9703
|
+
json: {
|
|
9704
|
+
workspace: string;
|
|
9705
|
+
};
|
|
9706
|
+
};
|
|
9707
|
+
output: {
|
|
9708
|
+
success: false;
|
|
9709
|
+
error: string;
|
|
9710
|
+
};
|
|
9711
|
+
outputFormat: "json";
|
|
9712
|
+
status: 502;
|
|
9699
9713
|
} | {
|
|
9700
9714
|
input: {
|
|
9701
9715
|
json: {
|
|
@@ -11234,6 +11248,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11234
11248
|
};
|
|
11235
11249
|
outputFormat: "json";
|
|
11236
11250
|
status: 404;
|
|
11251
|
+
} | {
|
|
11252
|
+
input: {
|
|
11253
|
+
json: {
|
|
11254
|
+
accountId: string;
|
|
11255
|
+
workspace: string;
|
|
11256
|
+
};
|
|
11257
|
+
};
|
|
11258
|
+
output: {
|
|
11259
|
+
success: false;
|
|
11260
|
+
error: string;
|
|
11261
|
+
code: string;
|
|
11262
|
+
};
|
|
11263
|
+
outputFormat: "json";
|
|
11264
|
+
status: 409;
|
|
11237
11265
|
} | {
|
|
11238
11266
|
input: {
|
|
11239
11267
|
json: {
|