@mestra-dev/contract 0.0.97 → 0.0.98
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 +192 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -15680,6 +15680,198 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
15680
15680
|
status: 201;
|
|
15681
15681
|
};
|
|
15682
15682
|
};
|
|
15683
|
+
} & {
|
|
15684
|
+
"/list/:workspace": {
|
|
15685
|
+
$get: {
|
|
15686
|
+
input: {
|
|
15687
|
+
param: {
|
|
15688
|
+
workspace: string;
|
|
15689
|
+
};
|
|
15690
|
+
};
|
|
15691
|
+
output: {
|
|
15692
|
+
success: true;
|
|
15693
|
+
customers: {
|
|
15694
|
+
updated_at: string | null;
|
|
15695
|
+
deleted_at: string | null;
|
|
15696
|
+
verified_at: string | null;
|
|
15697
|
+
suspended_at: string | null;
|
|
15698
|
+
created_at: string;
|
|
15699
|
+
id: string;
|
|
15700
|
+
workspaceId: string;
|
|
15701
|
+
name: string;
|
|
15702
|
+
email: string | null;
|
|
15703
|
+
website: string | null;
|
|
15704
|
+
type: string | null;
|
|
15705
|
+
description: string | null;
|
|
15706
|
+
active: boolean | null;
|
|
15707
|
+
phone: string | null;
|
|
15708
|
+
companyPhone: string | null;
|
|
15709
|
+
companyAddress: string | null;
|
|
15710
|
+
address: string | null;
|
|
15711
|
+
birthDate: string | null;
|
|
15712
|
+
utmSource: string | null;
|
|
15713
|
+
}[];
|
|
15714
|
+
};
|
|
15715
|
+
outputFormat: "json";
|
|
15716
|
+
status: 200;
|
|
15717
|
+
};
|
|
15718
|
+
};
|
|
15719
|
+
} & {
|
|
15720
|
+
"/get/:workspace/:customerId": {
|
|
15721
|
+
$get: {
|
|
15722
|
+
input: {
|
|
15723
|
+
param: {
|
|
15724
|
+
workspace: string;
|
|
15725
|
+
} & {
|
|
15726
|
+
customerId: string;
|
|
15727
|
+
};
|
|
15728
|
+
};
|
|
15729
|
+
output: {
|
|
15730
|
+
success: false;
|
|
15731
|
+
error: string;
|
|
15732
|
+
};
|
|
15733
|
+
outputFormat: "json";
|
|
15734
|
+
status: 404;
|
|
15735
|
+
} | {
|
|
15736
|
+
input: {
|
|
15737
|
+
param: {
|
|
15738
|
+
workspace: string;
|
|
15739
|
+
} & {
|
|
15740
|
+
customerId: string;
|
|
15741
|
+
};
|
|
15742
|
+
};
|
|
15743
|
+
output: {
|
|
15744
|
+
success: true;
|
|
15745
|
+
customer: {
|
|
15746
|
+
updated_at: string | null;
|
|
15747
|
+
deleted_at: string | null;
|
|
15748
|
+
verified_at: string | null;
|
|
15749
|
+
suspended_at: string | null;
|
|
15750
|
+
created_at: string;
|
|
15751
|
+
id: string;
|
|
15752
|
+
workspaceId: string;
|
|
15753
|
+
name: string;
|
|
15754
|
+
email: string | null;
|
|
15755
|
+
website: string | null;
|
|
15756
|
+
type: string | null;
|
|
15757
|
+
description: string | null;
|
|
15758
|
+
active: boolean | null;
|
|
15759
|
+
phone: string | null;
|
|
15760
|
+
companyPhone: string | null;
|
|
15761
|
+
companyAddress: string | null;
|
|
15762
|
+
address: string | null;
|
|
15763
|
+
birthDate: string | null;
|
|
15764
|
+
utmSource: string | null;
|
|
15765
|
+
}[];
|
|
15766
|
+
};
|
|
15767
|
+
outputFormat: "json";
|
|
15768
|
+
status: 200;
|
|
15769
|
+
};
|
|
15770
|
+
};
|
|
15771
|
+
} & {
|
|
15772
|
+
"/delete": {
|
|
15773
|
+
$post: {
|
|
15774
|
+
input: {};
|
|
15775
|
+
output: {
|
|
15776
|
+
success: false;
|
|
15777
|
+
error: never;
|
|
15778
|
+
};
|
|
15779
|
+
outputFormat: "json";
|
|
15780
|
+
status: 400;
|
|
15781
|
+
} | {
|
|
15782
|
+
input: {};
|
|
15783
|
+
output: {
|
|
15784
|
+
success: false;
|
|
15785
|
+
error: string;
|
|
15786
|
+
};
|
|
15787
|
+
outputFormat: "json";
|
|
15788
|
+
status: 404;
|
|
15789
|
+
} | {
|
|
15790
|
+
input: {};
|
|
15791
|
+
output: {
|
|
15792
|
+
success: true;
|
|
15793
|
+
};
|
|
15794
|
+
outputFormat: "json";
|
|
15795
|
+
status: 200;
|
|
15796
|
+
};
|
|
15797
|
+
};
|
|
15798
|
+
} & {
|
|
15799
|
+
"/update": {
|
|
15800
|
+
$post: {
|
|
15801
|
+
input: {};
|
|
15802
|
+
output: {
|
|
15803
|
+
success: false;
|
|
15804
|
+
error: never;
|
|
15805
|
+
};
|
|
15806
|
+
outputFormat: "json";
|
|
15807
|
+
status: 400;
|
|
15808
|
+
} | {
|
|
15809
|
+
input: {};
|
|
15810
|
+
output: {
|
|
15811
|
+
success: false;
|
|
15812
|
+
error: string;
|
|
15813
|
+
};
|
|
15814
|
+
outputFormat: "json";
|
|
15815
|
+
status: 404;
|
|
15816
|
+
} | {
|
|
15817
|
+
input: {};
|
|
15818
|
+
output: {
|
|
15819
|
+
success: true;
|
|
15820
|
+
customer: {
|
|
15821
|
+
updated_at: string | null;
|
|
15822
|
+
deleted_at: string | null;
|
|
15823
|
+
verified_at: string | null;
|
|
15824
|
+
suspended_at: string | null;
|
|
15825
|
+
created_at: string;
|
|
15826
|
+
id: string;
|
|
15827
|
+
workspaceId: string;
|
|
15828
|
+
name: string;
|
|
15829
|
+
email: string | null;
|
|
15830
|
+
website: string | null;
|
|
15831
|
+
type: string | null;
|
|
15832
|
+
description: string | null;
|
|
15833
|
+
active: boolean | null;
|
|
15834
|
+
phone: string | null;
|
|
15835
|
+
companyPhone: string | null;
|
|
15836
|
+
companyAddress: string | null;
|
|
15837
|
+
address: string | null;
|
|
15838
|
+
birthDate: string | null;
|
|
15839
|
+
utmSource: string | null;
|
|
15840
|
+
};
|
|
15841
|
+
};
|
|
15842
|
+
outputFormat: "json";
|
|
15843
|
+
status: 200;
|
|
15844
|
+
};
|
|
15845
|
+
};
|
|
15846
|
+
} & {
|
|
15847
|
+
"/get-tasks/:workspace/:customerId": {
|
|
15848
|
+
$get: {
|
|
15849
|
+
input: {
|
|
15850
|
+
param: {
|
|
15851
|
+
workspace: string;
|
|
15852
|
+
} & {
|
|
15853
|
+
customerId: string;
|
|
15854
|
+
};
|
|
15855
|
+
};
|
|
15856
|
+
output: {
|
|
15857
|
+
success: true;
|
|
15858
|
+
tasks: {
|
|
15859
|
+
id: string;
|
|
15860
|
+
subject: string;
|
|
15861
|
+
description: string | null;
|
|
15862
|
+
visibility: string | null;
|
|
15863
|
+
status: string | null;
|
|
15864
|
+
priority: string | null;
|
|
15865
|
+
created_at: string;
|
|
15866
|
+
workspaceId: string;
|
|
15867
|
+
created_by: string;
|
|
15868
|
+
comments_count: number;
|
|
15869
|
+
}[] | null;
|
|
15870
|
+
};
|
|
15871
|
+
outputFormat: "json";
|
|
15872
|
+
status: 200;
|
|
15873
|
+
};
|
|
15874
|
+
};
|
|
15683
15875
|
}, "/customers"> | import("hono/types").MergeSchemaPath<{
|
|
15684
15876
|
"/create": {
|
|
15685
15877
|
$post: {
|