@mestra-dev/contract 0.0.281 → 0.0.283
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 +122 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3753,6 +3753,128 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
3753
3753
|
status: 200;
|
|
3754
3754
|
};
|
|
3755
3755
|
};
|
|
3756
|
+
} & {
|
|
3757
|
+
"/relations/:workspace/:customerId": {
|
|
3758
|
+
$get: {
|
|
3759
|
+
input: {
|
|
3760
|
+
param: {
|
|
3761
|
+
workspace: string;
|
|
3762
|
+
} & {
|
|
3763
|
+
customerId: string;
|
|
3764
|
+
};
|
|
3765
|
+
};
|
|
3766
|
+
output: {
|
|
3767
|
+
success: false;
|
|
3768
|
+
error: string;
|
|
3769
|
+
};
|
|
3770
|
+
outputFormat: "json";
|
|
3771
|
+
status: 404;
|
|
3772
|
+
} | {
|
|
3773
|
+
input: {
|
|
3774
|
+
param: {
|
|
3775
|
+
workspace: string;
|
|
3776
|
+
} & {
|
|
3777
|
+
customerId: string;
|
|
3778
|
+
};
|
|
3779
|
+
};
|
|
3780
|
+
output: {
|
|
3781
|
+
success: true;
|
|
3782
|
+
relations: {
|
|
3783
|
+
name: string;
|
|
3784
|
+
customerId: string;
|
|
3785
|
+
type: string;
|
|
3786
|
+
id: string;
|
|
3787
|
+
}[];
|
|
3788
|
+
};
|
|
3789
|
+
outputFormat: "json";
|
|
3790
|
+
status: 200;
|
|
3791
|
+
};
|
|
3792
|
+
};
|
|
3793
|
+
} & {
|
|
3794
|
+
"/relations/create": {
|
|
3795
|
+
$post: {
|
|
3796
|
+
input: {
|
|
3797
|
+
json: {
|
|
3798
|
+
workspace: string;
|
|
3799
|
+
customerId: string;
|
|
3800
|
+
relatedCustomerId: string;
|
|
3801
|
+
type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "other";
|
|
3802
|
+
};
|
|
3803
|
+
};
|
|
3804
|
+
output: {
|
|
3805
|
+
success: false;
|
|
3806
|
+
error: string;
|
|
3807
|
+
};
|
|
3808
|
+
outputFormat: "json";
|
|
3809
|
+
status: 404;
|
|
3810
|
+
} | {
|
|
3811
|
+
input: {
|
|
3812
|
+
json: {
|
|
3813
|
+
workspace: string;
|
|
3814
|
+
customerId: string;
|
|
3815
|
+
relatedCustomerId: string;
|
|
3816
|
+
type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "other";
|
|
3817
|
+
};
|
|
3818
|
+
};
|
|
3819
|
+
output: {
|
|
3820
|
+
success: false;
|
|
3821
|
+
error: string;
|
|
3822
|
+
};
|
|
3823
|
+
outputFormat: "json";
|
|
3824
|
+
status: 409;
|
|
3825
|
+
} | {
|
|
3826
|
+
input: {
|
|
3827
|
+
json: {
|
|
3828
|
+
workspace: string;
|
|
3829
|
+
customerId: string;
|
|
3830
|
+
relatedCustomerId: string;
|
|
3831
|
+
type: "friend" | "spouse" | "father" | "mother" | "parent" | "child" | "sibling" | "relative" | "colleague" | "other";
|
|
3832
|
+
};
|
|
3833
|
+
};
|
|
3834
|
+
output: {
|
|
3835
|
+
success: true;
|
|
3836
|
+
relation: {
|
|
3837
|
+
type: string;
|
|
3838
|
+
id: string;
|
|
3839
|
+
created_at: string;
|
|
3840
|
+
workspaceId: string;
|
|
3841
|
+
customerId: string;
|
|
3842
|
+
relatedCustomerId: string;
|
|
3843
|
+
};
|
|
3844
|
+
};
|
|
3845
|
+
outputFormat: "json";
|
|
3846
|
+
status: 201;
|
|
3847
|
+
};
|
|
3848
|
+
};
|
|
3849
|
+
} & {
|
|
3850
|
+
"/relations/delete": {
|
|
3851
|
+
$post: {
|
|
3852
|
+
input: {
|
|
3853
|
+
json: {
|
|
3854
|
+
workspace: string;
|
|
3855
|
+
relationId: string;
|
|
3856
|
+
};
|
|
3857
|
+
};
|
|
3858
|
+
output: {
|
|
3859
|
+
success: false;
|
|
3860
|
+
error: string;
|
|
3861
|
+
};
|
|
3862
|
+
outputFormat: "json";
|
|
3863
|
+
status: 404;
|
|
3864
|
+
} | {
|
|
3865
|
+
input: {
|
|
3866
|
+
json: {
|
|
3867
|
+
workspace: string;
|
|
3868
|
+
relationId: string;
|
|
3869
|
+
};
|
|
3870
|
+
};
|
|
3871
|
+
output: {
|
|
3872
|
+
success: true;
|
|
3873
|
+
};
|
|
3874
|
+
outputFormat: "json";
|
|
3875
|
+
status: 200;
|
|
3876
|
+
};
|
|
3877
|
+
};
|
|
3756
3878
|
}, "/customers"> | import("hono/types").MergeSchemaPath<{
|
|
3757
3879
|
"/create": {
|
|
3758
3880
|
$post: {
|