@mestra-dev/contract 0.0.259 → 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 +162 -64
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3622,44 +3622,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3622
3622
|
$post: {
|
|
3623
3623
|
input: {
|
|
3624
3624
|
json: {
|
|
3625
|
+
installmentNumber?: number | null | undefined;
|
|
3626
|
+
totalInstallments?: number | null | undefined;
|
|
3627
|
+
installmentGroupId?: string | null | undefined;
|
|
3625
3628
|
workspace: string;
|
|
3626
3629
|
invoiceId: string;
|
|
3627
|
-
serviceId
|
|
3628
|
-
SellerFinanceAccountId: string;
|
|
3629
|
-
customerId: string;
|
|
3630
|
-
date: string | number;
|
|
3631
|
-
language: "ru" | "en";
|
|
3632
|
-
currency: "USD" | "EUR" | "RUB";
|
|
3633
|
-
vatOption: "vat_included" | "vat_excluded";
|
|
3634
|
-
vatRate?: number | undefined;
|
|
3635
|
-
buyerInn?: string | undefined;
|
|
3636
|
-
buyerKpp?: string | undefined;
|
|
3637
|
-
unitName: string;
|
|
3638
|
-
unitPrice: number;
|
|
3639
|
-
unitQuantity: number;
|
|
3640
|
-
notes?: string | undefined;
|
|
3641
|
-
status?: "pending" | "canceled" | "paid" | "refunded" | undefined;
|
|
3642
|
-
discount?: number | undefined;
|
|
3643
|
-
fullPayment?: boolean | undefined;
|
|
3644
|
-
installment?: boolean | undefined;
|
|
3645
|
-
subscription?: boolean | undefined;
|
|
3646
|
-
subscriptionStartDate?: string | number | undefined;
|
|
3647
|
-
subscriptionEndDate?: string | number | undefined;
|
|
3648
|
-
paymentMethod?: string | undefined;
|
|
3649
|
-
};
|
|
3650
|
-
};
|
|
3651
|
-
output: {
|
|
3652
|
-
success: false;
|
|
3653
|
-
error: string;
|
|
3654
|
-
};
|
|
3655
|
-
outputFormat: "json";
|
|
3656
|
-
status: 404;
|
|
3657
|
-
} | {
|
|
3658
|
-
input: {
|
|
3659
|
-
json: {
|
|
3660
|
-
workspace: string;
|
|
3661
|
-
invoiceId: string;
|
|
3662
|
-
serviceId: string;
|
|
3630
|
+
serviceId?: string | undefined;
|
|
3663
3631
|
SellerFinanceAccountId: string;
|
|
3664
3632
|
customerId: string;
|
|
3665
3633
|
date: string | number;
|
|
@@ -3669,9 +3637,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3669
3637
|
vatRate?: number | undefined;
|
|
3670
3638
|
buyerInn?: string | undefined;
|
|
3671
3639
|
buyerKpp?: string | undefined;
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
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;
|
|
3675
3651
|
notes?: string | undefined;
|
|
3676
3652
|
status?: "pending" | "canceled" | "paid" | "refunded" | undefined;
|
|
3677
3653
|
discount?: number | undefined;
|
|
@@ -3688,13 +3664,16 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3688
3664
|
error: string;
|
|
3689
3665
|
};
|
|
3690
3666
|
outputFormat: "json";
|
|
3691
|
-
status: 400;
|
|
3667
|
+
status: 400 | 404;
|
|
3692
3668
|
} | {
|
|
3693
3669
|
input: {
|
|
3694
3670
|
json: {
|
|
3671
|
+
installmentNumber?: number | null | undefined;
|
|
3672
|
+
totalInstallments?: number | null | undefined;
|
|
3673
|
+
installmentGroupId?: string | null | undefined;
|
|
3695
3674
|
workspace: string;
|
|
3696
3675
|
invoiceId: string;
|
|
3697
|
-
serviceId
|
|
3676
|
+
serviceId?: string | undefined;
|
|
3698
3677
|
SellerFinanceAccountId: string;
|
|
3699
3678
|
customerId: string;
|
|
3700
3679
|
date: string | number;
|
|
@@ -3704,9 +3683,17 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3704
3683
|
vatRate?: number | undefined;
|
|
3705
3684
|
buyerInn?: string | undefined;
|
|
3706
3685
|
buyerKpp?: string | undefined;
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
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;
|
|
3710
3697
|
notes?: string | undefined;
|
|
3711
3698
|
status?: "pending" | "canceled" | "paid" | "refunded" | undefined;
|
|
3712
3699
|
discount?: number | undefined;
|
|
@@ -3736,7 +3723,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3736
3723
|
installment: boolean | null;
|
|
3737
3724
|
notes: string | null;
|
|
3738
3725
|
currency: string;
|
|
3739
|
-
serviceId: string;
|
|
3726
|
+
serviceId: string | null;
|
|
3727
|
+
invoiceDiscount: number;
|
|
3728
|
+
discount: number;
|
|
3740
3729
|
SellerFinanceAccountId: string;
|
|
3741
3730
|
date: string;
|
|
3742
3731
|
language: string;
|
|
@@ -3744,15 +3733,30 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3744
3733
|
unitName: string;
|
|
3745
3734
|
unitPrice: number;
|
|
3746
3735
|
unitQuantity: number;
|
|
3736
|
+
installmentNumber: number | null;
|
|
3737
|
+
totalInstallments: number | null;
|
|
3738
|
+
installmentGroupId: string | null;
|
|
3747
3739
|
vatRate: number | null;
|
|
3748
3740
|
paidAt: string | null;
|
|
3749
3741
|
buyerInn: string | null;
|
|
3750
3742
|
buyerKpp: string | null;
|
|
3751
|
-
discount: number | null;
|
|
3752
3743
|
subscription: boolean | null;
|
|
3753
3744
|
subscriptionStartDate: string | null;
|
|
3754
3745
|
subscriptionEndDate: string | null;
|
|
3755
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
|
+
}[];
|
|
3756
3760
|
}[];
|
|
3757
3761
|
};
|
|
3758
3762
|
outputFormat: "json";
|
|
@@ -3838,39 +3842,94 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3838
3842
|
output: {
|
|
3839
3843
|
success: true;
|
|
3840
3844
|
cinvoices: {
|
|
3845
|
+
id: string;
|
|
3846
|
+
created_at: string;
|
|
3847
|
+
workspaceId: string;
|
|
3841
3848
|
updated_at: string | null;
|
|
3842
3849
|
deleted_at: string | null;
|
|
3843
3850
|
verified_at: string | null;
|
|
3844
3851
|
suspended_at: string | null;
|
|
3845
|
-
created_at: string;
|
|
3846
|
-
id: string;
|
|
3847
|
-
workspaceId: string;
|
|
3848
3852
|
invoiceId: string;
|
|
3849
|
-
|
|
3850
|
-
|
|
3853
|
+
status: string;
|
|
3854
|
+
created_by: string;
|
|
3851
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;
|
|
3852
3864
|
date: string;
|
|
3853
3865
|
language: string;
|
|
3854
|
-
currency: string;
|
|
3855
3866
|
vatOption: string;
|
|
3856
|
-
vatRate: number | null;
|
|
3857
|
-
buyerInn: string | null;
|
|
3858
|
-
buyerKpp: string | null;
|
|
3859
3867
|
unitName: string;
|
|
3860
3868
|
unitPrice: number;
|
|
3861
3869
|
unitQuantity: number;
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
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;
|
|
3866
3877
|
subscription: boolean | null;
|
|
3867
3878
|
subscriptionStartDate: string | null;
|
|
3868
3879
|
subscriptionEndDate: string | null;
|
|
3869
3880
|
paymentMethod: string | null;
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
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
|
+
}[];
|
|
3873
3925
|
}[];
|
|
3926
|
+
totals: {
|
|
3927
|
+
serviceCount: number;
|
|
3928
|
+
catalogServiceCount: number;
|
|
3929
|
+
invoiceCount: number;
|
|
3930
|
+
lineCount: number;
|
|
3931
|
+
};
|
|
3932
|
+
success: true;
|
|
3874
3933
|
};
|
|
3875
3934
|
outputFormat: "json";
|
|
3876
3935
|
status: 200;
|
|
@@ -3881,9 +3940,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3881
3940
|
$post: {
|
|
3882
3941
|
input: {
|
|
3883
3942
|
json: {
|
|
3943
|
+
installmentNumber?: number | null | undefined;
|
|
3944
|
+
totalInstallments?: number | null | undefined;
|
|
3945
|
+
installmentGroupId?: string | null | undefined;
|
|
3884
3946
|
cinvoiceId: string;
|
|
3885
3947
|
workspace: string;
|
|
3886
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;
|
|
3887
3957
|
serviceId?: string | undefined;
|
|
3888
3958
|
SellerFinanceAccountId?: string | undefined;
|
|
3889
3959
|
customerId?: string | undefined;
|
|
@@ -3917,9 +3987,20 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3917
3987
|
} | {
|
|
3918
3988
|
input: {
|
|
3919
3989
|
json: {
|
|
3990
|
+
installmentNumber?: number | null | undefined;
|
|
3991
|
+
totalInstallments?: number | null | undefined;
|
|
3992
|
+
installmentGroupId?: string | null | undefined;
|
|
3920
3993
|
cinvoiceId: string;
|
|
3921
3994
|
workspace: string;
|
|
3922
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;
|
|
3923
4004
|
serviceId?: string | undefined;
|
|
3924
4005
|
SellerFinanceAccountId?: string | undefined;
|
|
3925
4006
|
customerId?: string | undefined;
|
|
@@ -3962,7 +4043,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3962
4043
|
installment: boolean | null;
|
|
3963
4044
|
notes: string | null;
|
|
3964
4045
|
currency: string;
|
|
3965
|
-
serviceId: string;
|
|
4046
|
+
serviceId: string | null;
|
|
4047
|
+
invoiceDiscount: number;
|
|
4048
|
+
discount: number;
|
|
3966
4049
|
SellerFinanceAccountId: string;
|
|
3967
4050
|
date: string;
|
|
3968
4051
|
language: string;
|
|
@@ -3970,15 +4053,30 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3970
4053
|
unitName: string;
|
|
3971
4054
|
unitPrice: number;
|
|
3972
4055
|
unitQuantity: number;
|
|
4056
|
+
installmentNumber: number | null;
|
|
4057
|
+
totalInstallments: number | null;
|
|
4058
|
+
installmentGroupId: string | null;
|
|
3973
4059
|
vatRate: number | null;
|
|
3974
4060
|
paidAt: string | null;
|
|
3975
4061
|
buyerInn: string | null;
|
|
3976
4062
|
buyerKpp: string | null;
|
|
3977
|
-
discount: number | null;
|
|
3978
4063
|
subscription: boolean | null;
|
|
3979
4064
|
subscriptionStartDate: string | null;
|
|
3980
4065
|
subscriptionEndDate: string | null;
|
|
3981
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
|
+
}[];
|
|
3982
4080
|
}[];
|
|
3983
4081
|
};
|
|
3984
4082
|
outputFormat: "json";
|