summaryrefslogtreecommitdiff
path: root/lib/docuSign/types.ts
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-03-25 15:55:45 +0900
committerjoonhoekim <26rote@gmail.com>2025-03-25 15:55:45 +0900
commit1a2241c40e10193c5ff7008a7b7b36cc1d855d96 (patch)
tree8a5587f10ca55b162d7e3254cb088b323a34c41b /lib/docuSign/types.ts
initial commit
Diffstat (limited to 'lib/docuSign/types.ts')
-rw-r--r--lib/docuSign/types.ts37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/docuSign/types.ts b/lib/docuSign/types.ts
new file mode 100644
index 00000000..450199ce
--- /dev/null
+++ b/lib/docuSign/types.ts
@@ -0,0 +1,37 @@
+export interface ContractInfo {
+ tabLabel: string;
+ value: string;
+}
+
+export interface ContractorInfo {
+ email: string;
+ name: string;
+ roleName: string;
+}
+
+export type poTabLabes =
+ | "po_no"
+ | "vendor_name"
+ | "po_date"
+ | "project_name"
+ | "vendor_location"
+ | "shi_email"
+ | "vendor_email"
+ | "po_desc"
+ | "qty"
+ | "unit_price"
+ | "total"
+ | "grand_total_amount"
+ | "tax_rate"
+ | "tax_total"
+ | "payment_amount"
+ | "remark";
+
+type ContentMap<T extends string> = {
+ [K in T]: {
+ tabLabel: K;
+ value: string;
+ };
+};
+
+export type POContent = ContentMap<poTabLabes>[poTabLabes][];