@voyantjs/legal 0.83.0 → 0.84.1
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/contracts/routes.d.ts +38 -38
- package/dist/contracts/routes.d.ts.map +1 -1
- package/dist/contracts/routes.js +29 -9
- package/dist/contracts/schema.d.ts +1 -1
- package/dist/contracts/service-auto-generate.d.ts.map +1 -1
- package/dist/contracts/service-auto-generate.js +1 -0
- package/dist/contracts/service-contracts.d.ts +11 -11
- package/dist/contracts/service.d.ts +11 -11
- package/dist/contracts/validation.d.ts +10 -6
- package/dist/contracts/validation.d.ts.map +1 -1
- package/dist/contracts/validation.js +14 -0
- package/package.json +10 -10
|
@@ -642,7 +642,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
642
642
|
id: string;
|
|
643
643
|
contractNumber: string | null;
|
|
644
644
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
645
|
-
status: "executed" | "void" | "
|
|
645
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
646
646
|
stageHistory: {
|
|
647
647
|
stage: import("./schema.js").ContractStatus;
|
|
648
648
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -703,7 +703,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
703
703
|
id: string;
|
|
704
704
|
contractNumber: string | null;
|
|
705
705
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
706
|
-
status: "executed" | "void" | "
|
|
706
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
707
707
|
stageHistory: {
|
|
708
708
|
stage: import("./schema.js").ContractStatus;
|
|
709
709
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -754,7 +754,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
754
754
|
expiresAt: string | null;
|
|
755
755
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
756
756
|
organizationId: string | null;
|
|
757
|
-
status: "executed" | "void" | "
|
|
757
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
758
758
|
bookingId: string | null;
|
|
759
759
|
title: string;
|
|
760
760
|
personId: string | null;
|
|
@@ -809,7 +809,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
809
809
|
id: string;
|
|
810
810
|
contractNumber: string | null;
|
|
811
811
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
812
|
-
status: "executed" | "void" | "
|
|
812
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
813
813
|
stageHistory: {
|
|
814
814
|
stage: import("./schema.js").ContractStatus;
|
|
815
815
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -868,7 +868,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
868
868
|
id: string;
|
|
869
869
|
contractNumber: string | null;
|
|
870
870
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
871
|
-
status: "executed" | "void" | "
|
|
871
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
872
872
|
stageHistory: {
|
|
873
873
|
stage: import("./schema.js").ContractStatus;
|
|
874
874
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -975,7 +975,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
975
975
|
id: string;
|
|
976
976
|
contractNumber: string | null;
|
|
977
977
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
978
|
-
status: "executed" | "void" | "
|
|
978
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
979
979
|
stageHistory: {
|
|
980
980
|
stage: import("./schema.js").ContractStatus;
|
|
981
981
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -1045,7 +1045,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1045
1045
|
id: string;
|
|
1046
1046
|
contractNumber: string | null;
|
|
1047
1047
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
1048
|
-
status: "executed" | "void" | "
|
|
1048
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
1049
1049
|
stageHistory: {
|
|
1050
1050
|
stage: import("./schema.js").ContractStatus;
|
|
1051
1051
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -1078,7 +1078,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1078
1078
|
id: string;
|
|
1079
1079
|
contractNumber: string | null;
|
|
1080
1080
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
1081
|
-
status: "executed" | "void" | "
|
|
1081
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
1082
1082
|
stageHistory: {
|
|
1083
1083
|
stage: import("./schema.js").ContractStatus;
|
|
1084
1084
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -1149,7 +1149,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1149
1149
|
id: string;
|
|
1150
1150
|
contractNumber: string | null;
|
|
1151
1151
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
1152
|
-
status: "executed" | "void" | "
|
|
1152
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
1153
1153
|
stageHistory: {
|
|
1154
1154
|
stage: import("./schema.js").ContractStatus;
|
|
1155
1155
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -1237,7 +1237,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1237
1237
|
id: string;
|
|
1238
1238
|
contractNumber: string | null;
|
|
1239
1239
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
1240
|
-
status: "executed" | "void" | "
|
|
1240
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
1241
1241
|
stageHistory: {
|
|
1242
1242
|
stage: import("./schema.js").ContractStatus;
|
|
1243
1243
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -1307,7 +1307,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1307
1307
|
id: string;
|
|
1308
1308
|
contractNumber: string | null;
|
|
1309
1309
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
1310
|
-
status: "executed" | "void" | "
|
|
1310
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
1311
1311
|
stageHistory: {
|
|
1312
1312
|
stage: import("./schema.js").ContractStatus;
|
|
1313
1313
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -1440,7 +1440,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1440
1440
|
data: {
|
|
1441
1441
|
status: "generated";
|
|
1442
1442
|
contractId: string;
|
|
1443
|
-
contractStatus: "executed" | "void" | "
|
|
1443
|
+
contractStatus: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
1444
1444
|
renderedBodyFormat: "markdown" | "html" | "lexical_json";
|
|
1445
1445
|
renderedBody: string;
|
|
1446
1446
|
attachment: {
|
|
@@ -1448,11 +1448,11 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1448
1448
|
name: string;
|
|
1449
1449
|
id: string;
|
|
1450
1450
|
createdAt: string;
|
|
1451
|
+
storageKey: string | null;
|
|
1451
1452
|
kind: string;
|
|
1452
1453
|
contractId: string;
|
|
1453
1454
|
mimeType: string | null;
|
|
1454
1455
|
fileSize: number | null;
|
|
1455
|
-
storageKey: string | null;
|
|
1456
1456
|
checksum: string | null;
|
|
1457
1457
|
};
|
|
1458
1458
|
};
|
|
@@ -1517,7 +1517,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1517
1517
|
data: {
|
|
1518
1518
|
status: "generated";
|
|
1519
1519
|
contractId: string;
|
|
1520
|
-
contractStatus: "executed" | "void" | "
|
|
1520
|
+
contractStatus: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
1521
1521
|
renderedBodyFormat: "markdown" | "html" | "lexical_json";
|
|
1522
1522
|
renderedBody: string;
|
|
1523
1523
|
attachment: {
|
|
@@ -1525,11 +1525,11 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1525
1525
|
name: string;
|
|
1526
1526
|
id: string;
|
|
1527
1527
|
createdAt: string;
|
|
1528
|
+
storageKey: string | null;
|
|
1528
1529
|
kind: string;
|
|
1529
1530
|
contractId: string;
|
|
1530
1531
|
mimeType: string | null;
|
|
1531
1532
|
fileSize: number | null;
|
|
1532
|
-
storageKey: string | null;
|
|
1533
1533
|
checksum: string | null;
|
|
1534
1534
|
};
|
|
1535
1535
|
};
|
|
@@ -1594,7 +1594,7 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1594
1594
|
data: {
|
|
1595
1595
|
status: "generated";
|
|
1596
1596
|
contractId: string;
|
|
1597
|
-
contractStatus: "executed" | "void" | "
|
|
1597
|
+
contractStatus: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
1598
1598
|
renderedBodyFormat: "markdown" | "html" | "lexical_json";
|
|
1599
1599
|
renderedBody: string;
|
|
1600
1600
|
attachment: {
|
|
@@ -1602,11 +1602,11 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1602
1602
|
name: string;
|
|
1603
1603
|
id: string;
|
|
1604
1604
|
createdAt: string;
|
|
1605
|
+
storageKey: string | null;
|
|
1605
1606
|
kind: string;
|
|
1606
1607
|
contractId: string;
|
|
1607
1608
|
mimeType: string | null;
|
|
1608
1609
|
fileSize: number | null;
|
|
1609
|
-
storageKey: string | null;
|
|
1610
1610
|
checksum: string | null;
|
|
1611
1611
|
};
|
|
1612
1612
|
};
|
|
@@ -1697,11 +1697,11 @@ export declare function createContractsAdminRoutes(options?: ContractsRouteOptio
|
|
|
1697
1697
|
name: string;
|
|
1698
1698
|
id: string;
|
|
1699
1699
|
createdAt: string;
|
|
1700
|
+
storageKey: string | null;
|
|
1700
1701
|
kind: string;
|
|
1701
1702
|
contractId: string;
|
|
1702
1703
|
mimeType: string | null;
|
|
1703
1704
|
fileSize: number | null;
|
|
1704
|
-
storageKey: string | null;
|
|
1705
1705
|
checksum: string | null;
|
|
1706
1706
|
};
|
|
1707
1707
|
};
|
|
@@ -2520,7 +2520,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
2520
2520
|
id: string;
|
|
2521
2521
|
contractNumber: string | null;
|
|
2522
2522
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
2523
|
-
status: "executed" | "void" | "
|
|
2523
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
2524
2524
|
stageHistory: {
|
|
2525
2525
|
stage: import("./schema.js").ContractStatus;
|
|
2526
2526
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -2581,7 +2581,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
2581
2581
|
id: string;
|
|
2582
2582
|
contractNumber: string | null;
|
|
2583
2583
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
2584
|
-
status: "executed" | "void" | "
|
|
2584
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
2585
2585
|
stageHistory: {
|
|
2586
2586
|
stage: import("./schema.js").ContractStatus;
|
|
2587
2587
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -2632,7 +2632,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
2632
2632
|
expiresAt: string | null;
|
|
2633
2633
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
2634
2634
|
organizationId: string | null;
|
|
2635
|
-
status: "executed" | "void" | "
|
|
2635
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
2636
2636
|
bookingId: string | null;
|
|
2637
2637
|
title: string;
|
|
2638
2638
|
personId: string | null;
|
|
@@ -2687,7 +2687,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
2687
2687
|
id: string;
|
|
2688
2688
|
contractNumber: string | null;
|
|
2689
2689
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
2690
|
-
status: "executed" | "void" | "
|
|
2690
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
2691
2691
|
stageHistory: {
|
|
2692
2692
|
stage: import("./schema.js").ContractStatus;
|
|
2693
2693
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -2746,7 +2746,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
2746
2746
|
id: string;
|
|
2747
2747
|
contractNumber: string | null;
|
|
2748
2748
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
2749
|
-
status: "executed" | "void" | "
|
|
2749
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
2750
2750
|
stageHistory: {
|
|
2751
2751
|
stage: import("./schema.js").ContractStatus;
|
|
2752
2752
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -2853,7 +2853,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
2853
2853
|
id: string;
|
|
2854
2854
|
contractNumber: string | null;
|
|
2855
2855
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
2856
|
-
status: "executed" | "void" | "
|
|
2856
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
2857
2857
|
stageHistory: {
|
|
2858
2858
|
stage: import("./schema.js").ContractStatus;
|
|
2859
2859
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -2923,7 +2923,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
2923
2923
|
id: string;
|
|
2924
2924
|
contractNumber: string | null;
|
|
2925
2925
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
2926
|
-
status: "executed" | "void" | "
|
|
2926
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
2927
2927
|
stageHistory: {
|
|
2928
2928
|
stage: import("./schema.js").ContractStatus;
|
|
2929
2929
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -2956,7 +2956,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
2956
2956
|
id: string;
|
|
2957
2957
|
contractNumber: string | null;
|
|
2958
2958
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
2959
|
-
status: "executed" | "void" | "
|
|
2959
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
2960
2960
|
stageHistory: {
|
|
2961
2961
|
stage: import("./schema.js").ContractStatus;
|
|
2962
2962
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -3027,7 +3027,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
3027
3027
|
id: string;
|
|
3028
3028
|
contractNumber: string | null;
|
|
3029
3029
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
3030
|
-
status: "executed" | "void" | "
|
|
3030
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
3031
3031
|
stageHistory: {
|
|
3032
3032
|
stage: import("./schema.js").ContractStatus;
|
|
3033
3033
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -3115,7 +3115,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
3115
3115
|
id: string;
|
|
3116
3116
|
contractNumber: string | null;
|
|
3117
3117
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
3118
|
-
status: "executed" | "void" | "
|
|
3118
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
3119
3119
|
stageHistory: {
|
|
3120
3120
|
stage: import("./schema.js").ContractStatus;
|
|
3121
3121
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -3185,7 +3185,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
3185
3185
|
id: string;
|
|
3186
3186
|
contractNumber: string | null;
|
|
3187
3187
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
3188
|
-
status: "executed" | "void" | "
|
|
3188
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
3189
3189
|
stageHistory: {
|
|
3190
3190
|
stage: import("./schema.js").ContractStatus;
|
|
3191
3191
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -3318,7 +3318,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
3318
3318
|
data: {
|
|
3319
3319
|
status: "generated";
|
|
3320
3320
|
contractId: string;
|
|
3321
|
-
contractStatus: "executed" | "void" | "
|
|
3321
|
+
contractStatus: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
3322
3322
|
renderedBodyFormat: "markdown" | "html" | "lexical_json";
|
|
3323
3323
|
renderedBody: string;
|
|
3324
3324
|
attachment: {
|
|
@@ -3326,11 +3326,11 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
3326
3326
|
name: string;
|
|
3327
3327
|
id: string;
|
|
3328
3328
|
createdAt: string;
|
|
3329
|
+
storageKey: string | null;
|
|
3329
3330
|
kind: string;
|
|
3330
3331
|
contractId: string;
|
|
3331
3332
|
mimeType: string | null;
|
|
3332
3333
|
fileSize: number | null;
|
|
3333
|
-
storageKey: string | null;
|
|
3334
3334
|
checksum: string | null;
|
|
3335
3335
|
};
|
|
3336
3336
|
};
|
|
@@ -3395,7 +3395,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
3395
3395
|
data: {
|
|
3396
3396
|
status: "generated";
|
|
3397
3397
|
contractId: string;
|
|
3398
|
-
contractStatus: "executed" | "void" | "
|
|
3398
|
+
contractStatus: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
3399
3399
|
renderedBodyFormat: "markdown" | "html" | "lexical_json";
|
|
3400
3400
|
renderedBody: string;
|
|
3401
3401
|
attachment: {
|
|
@@ -3403,11 +3403,11 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
3403
3403
|
name: string;
|
|
3404
3404
|
id: string;
|
|
3405
3405
|
createdAt: string;
|
|
3406
|
+
storageKey: string | null;
|
|
3406
3407
|
kind: string;
|
|
3407
3408
|
contractId: string;
|
|
3408
3409
|
mimeType: string | null;
|
|
3409
3410
|
fileSize: number | null;
|
|
3410
|
-
storageKey: string | null;
|
|
3411
3411
|
checksum: string | null;
|
|
3412
3412
|
};
|
|
3413
3413
|
};
|
|
@@ -3472,7 +3472,7 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
3472
3472
|
data: {
|
|
3473
3473
|
status: "generated";
|
|
3474
3474
|
contractId: string;
|
|
3475
|
-
contractStatus: "executed" | "void" | "
|
|
3475
|
+
contractStatus: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
3476
3476
|
renderedBodyFormat: "markdown" | "html" | "lexical_json";
|
|
3477
3477
|
renderedBody: string;
|
|
3478
3478
|
attachment: {
|
|
@@ -3480,11 +3480,11 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
3480
3480
|
name: string;
|
|
3481
3481
|
id: string;
|
|
3482
3482
|
createdAt: string;
|
|
3483
|
+
storageKey: string | null;
|
|
3483
3484
|
kind: string;
|
|
3484
3485
|
contractId: string;
|
|
3485
3486
|
mimeType: string | null;
|
|
3486
3487
|
fileSize: number | null;
|
|
3487
|
-
storageKey: string | null;
|
|
3488
3488
|
checksum: string | null;
|
|
3489
3489
|
};
|
|
3490
3490
|
};
|
|
@@ -3575,11 +3575,11 @@ export declare const contractsAdminRoutes: import("hono/hono-base").HonoBase<Env
|
|
|
3575
3575
|
name: string;
|
|
3576
3576
|
id: string;
|
|
3577
3577
|
createdAt: string;
|
|
3578
|
+
storageKey: string | null;
|
|
3578
3579
|
kind: string;
|
|
3579
3580
|
contractId: string;
|
|
3580
3581
|
mimeType: string | null;
|
|
3581
3582
|
fileSize: number | null;
|
|
3582
|
-
storageKey: string | null;
|
|
3583
3583
|
checksum: string | null;
|
|
3584
3584
|
};
|
|
3585
3585
|
};
|
|
@@ -4004,7 +4004,7 @@ export declare function createContractsPublicRoutes(options?: ContractsRouteOpti
|
|
|
4004
4004
|
id: string;
|
|
4005
4005
|
contractNumber: string | null;
|
|
4006
4006
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
4007
|
-
status: "executed" | "void" | "
|
|
4007
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
4008
4008
|
stageHistory: {
|
|
4009
4009
|
stage: import("./schema.js").ContractStatus;
|
|
4010
4010
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -4319,7 +4319,7 @@ export declare const contractsPublicRoutes: import("hono/hono-base").HonoBase<En
|
|
|
4319
4319
|
id: string;
|
|
4320
4320
|
contractNumber: string | null;
|
|
4321
4321
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
4322
|
-
status: "executed" | "void" | "
|
|
4322
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
4323
4323
|
stageHistory: {
|
|
4324
4324
|
stage: import("./schema.js").ContractStatus;
|
|
4325
4325
|
previousStage: import("./schema.js").ContractStatus | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/contracts/routes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAA+B,CAAA;AAsDhE,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,qBAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAyC9E;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAgC,CAAA;AAElE,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAA;AAC9D,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAA"}
|
package/dist/contracts/routes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { idempotencyKey, parseJsonBody, parseOptionalJsonBody, parseQuery, resolveStoredDocumentDownload, } from "@voyantjs/hono";
|
|
1
|
+
import { createDrizzlePublicDocumentDeliveryGrantStore, createPublicDocumentDeliveryGrant, idempotencyKey, parseJsonBody, parseOptionalJsonBody, parseQuery, resolveStoredDocumentDownload, } from "@voyantjs/hono";
|
|
2
2
|
import { Hono } from "hono";
|
|
3
3
|
import { buildContractsRouteRuntime, CONTRACTS_ROUTE_RUNTIME_CONTAINER_KEY, } from "./route-runtime.js";
|
|
4
4
|
import { renderPreviewResponse } from "./route-template-preview.js";
|
|
@@ -145,7 +145,8 @@ async function regenerateContractDocument(c, options, contractId) {
|
|
|
145
145
|
if (!generator) {
|
|
146
146
|
return c.json({ error: "Contract document generator is not configured" }, 501);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
148
|
+
const input = await parseOptionalJsonBody(c, generateContractDocumentInputSchema);
|
|
149
|
+
const result = await contractsService.regenerateContractDocument(c.get("db"), contractId, input, {
|
|
149
150
|
generator,
|
|
150
151
|
bindings: c.env,
|
|
151
152
|
eventBus: runtime.eventBus,
|
|
@@ -165,7 +166,7 @@ async function regenerateContractDocument(c, options, contractId) {
|
|
|
165
166
|
if (!("attachment" in result)) {
|
|
166
167
|
return c.json({ error: "Contract document generation failed" }, 502);
|
|
167
168
|
}
|
|
168
|
-
return c.json({ data: await attachDownloadEnvelope(c
|
|
169
|
+
return c.json({ data: await attachDownloadEnvelope(c, runtime, result, input) });
|
|
169
170
|
}
|
|
170
171
|
async function generateContractDocumentForBooking(c, options) {
|
|
171
172
|
const runtime = getRuntime(options, c.env, (key) => c.var.container?.resolve(key));
|
|
@@ -219,7 +220,7 @@ async function generateContractDocumentForBooking(c, options) {
|
|
|
219
220
|
return c.json({ error: "Generated contract document could not be loaded" }, 500);
|
|
220
221
|
}
|
|
221
222
|
return c.json({
|
|
222
|
-
data: await attachDownloadEnvelope(c
|
|
223
|
+
data: await attachDownloadEnvelope(c, runtime, { contract, attachment }, input),
|
|
223
224
|
}, 201);
|
|
224
225
|
}
|
|
225
226
|
export function createContractsAdminRoutes(options = {}) {
|
|
@@ -403,7 +404,8 @@ export function createContractsAdminRoutes(options = {}) {
|
|
|
403
404
|
if (!generator) {
|
|
404
405
|
return c.json({ error: "Contract document generator is not configured" }, 501);
|
|
405
406
|
}
|
|
406
|
-
const
|
|
407
|
+
const input = await parseOptionalJsonBody(c, generateContractDocumentInputSchema);
|
|
408
|
+
const result = await contractsService.generateContractDocument(c.get("db"), c.req.param("id"), input, {
|
|
407
409
|
generator,
|
|
408
410
|
bindings: c.env,
|
|
409
411
|
eventBus: runtime.eventBus,
|
|
@@ -423,7 +425,7 @@ export function createContractsAdminRoutes(options = {}) {
|
|
|
423
425
|
if (!("attachment" in result)) {
|
|
424
426
|
return c.json({ error: "Contract document generation failed" }, 502);
|
|
425
427
|
}
|
|
426
|
-
return c.json({ data: await attachDownloadEnvelope(c
|
|
428
|
+
return c.json({ data: await attachDownloadEnvelope(c, runtime, result, input) }, 201);
|
|
427
429
|
})
|
|
428
430
|
.post("/:id/regenerate-document", async (c) => {
|
|
429
431
|
return regenerateContractDocument(c, options, c.req.param("id"));
|
|
@@ -512,12 +514,30 @@ export function createContractsAdminRoutes(options = {}) {
|
|
|
512
514
|
});
|
|
513
515
|
}
|
|
514
516
|
export const contractsAdminRoutes = createContractsAdminRoutes();
|
|
515
|
-
async function attachDownloadEnvelope(
|
|
517
|
+
async function attachDownloadEnvelope(c, runtime, result, input) {
|
|
516
518
|
const download = await resolveStoredDocumentDownload({ ...result.attachment, filename: result.attachment.name }, {
|
|
517
|
-
bindings,
|
|
519
|
+
bindings: c.env,
|
|
518
520
|
resolveDocumentDownloadUrl: runtime.resolveDocumentDownloadUrl,
|
|
519
521
|
});
|
|
520
|
-
|
|
522
|
+
const withAdminDownload = download.status === "ready" ? { ...result, download: download.download } : result;
|
|
523
|
+
if (!input.publicDelivery || !result.attachment.storageKey) {
|
|
524
|
+
return withAdminDownload;
|
|
525
|
+
}
|
|
526
|
+
const publicDownload = await createPublicDocumentDeliveryGrant(createDrizzlePublicDocumentDeliveryGrantStore(c.get("db")), {
|
|
527
|
+
storageKey: result.attachment.storageKey,
|
|
528
|
+
publicBaseUrl: new URL(c.req.url).origin,
|
|
529
|
+
ttlSeconds: input.publicDeliveryTtlSeconds,
|
|
530
|
+
filename: result.attachment.name ?? (download.status === "ready" ? download.download.filename : null),
|
|
531
|
+
contentType: result.attachment.mimeType,
|
|
532
|
+
source: {
|
|
533
|
+
module: "legal",
|
|
534
|
+
entity: "contract_attachment",
|
|
535
|
+
id: result.attachment.id ?? null,
|
|
536
|
+
},
|
|
537
|
+
createdBy: c.get("userId") ?? null,
|
|
538
|
+
createdByType: c.get("userId") ? "staff" : null,
|
|
539
|
+
});
|
|
540
|
+
return { ...withAdminDownload, publicDownload };
|
|
521
541
|
}
|
|
522
542
|
export function createContractsPublicRoutes(options = {}) {
|
|
523
543
|
return (new Hono()
|
|
@@ -728,7 +728,7 @@ export declare const contracts: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
728
728
|
tableName: "contracts";
|
|
729
729
|
dataType: "string";
|
|
730
730
|
columnType: "PgEnumColumn";
|
|
731
|
-
data: "executed" | "void" | "
|
|
731
|
+
data: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
732
732
|
driverParam: string;
|
|
733
733
|
notNull: true;
|
|
734
734
|
hasDefault: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service-auto-generate.d.ts","sourceRoot":"","sources":["../../src/contracts/service-auto-generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAGpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAE3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AAKvE,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,iBAAiB,CAAA;AAEtE;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,MAAM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CAAA;CAAE,GAC7C;IACE,MAAM,EAAE,SAAS,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAEL,MAAM,MAAM,gCAAgC,GACxC,0BAA0B,GAC1B;IAAE,MAAM,EAAE,kBAAkB,CAAA;CAAE,GAC9B;IAAE,MAAM,EAAE,kBAAkB,CAAA;CAAE,CAAA;AAElC;;;;;;GAMG;AACH,wBAAsB,sCAAsC,CAC1D,EAAE,EAAE,kBAAkB,EACtB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,+BAA+B,EACtC,OAAO,EAAE,2BAA2B,EACpC,OAAO,GAAE,MAAM,GAAG,IAAW,GAC5B,OAAO,CAAC,gCAAgC,CAAC,CA6C3C;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,8BAA8B,CAClD,EAAE,EAAE,kBAAkB,EACtB,KAAK,EAAE,yBAAyB,EAChC,OAAO,EAAE,2BAA2B,EACpC,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,0BAA0B,CAAC,CAwcrC"}
|
|
@@ -465,6 +465,7 @@ export async function autoGenerateContractForBooking(db, event, options, runtime
|
|
|
465
465
|
issueIfDraft: true,
|
|
466
466
|
replaceExisting: true,
|
|
467
467
|
kind: "document",
|
|
468
|
+
publicDelivery: false,
|
|
468
469
|
}, {
|
|
469
470
|
generator: runtime.generator,
|
|
470
471
|
eventBus: runtime.eventBus,
|
|
@@ -11,7 +11,7 @@ export declare const contractRecordsService: {
|
|
|
11
11
|
id: string;
|
|
12
12
|
contractNumber: string | null;
|
|
13
13
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
14
|
-
status: "executed" | "void" | "
|
|
14
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
15
15
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
16
16
|
title: string;
|
|
17
17
|
templateVersionId: string | null;
|
|
@@ -43,7 +43,7 @@ export declare const contractRecordsService: {
|
|
|
43
43
|
id: string;
|
|
44
44
|
contractNumber: string | null;
|
|
45
45
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
46
|
-
status: "executed" | "void" | "
|
|
46
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
47
47
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
48
48
|
title: string;
|
|
49
49
|
templateVersionId: string | null;
|
|
@@ -75,7 +75,7 @@ export declare const contractRecordsService: {
|
|
|
75
75
|
expiresAt: Date | null;
|
|
76
76
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
77
77
|
organizationId: string | null;
|
|
78
|
-
status: "executed" | "void" | "
|
|
78
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
79
79
|
bookingId: string | null;
|
|
80
80
|
title: string;
|
|
81
81
|
personId: string | null;
|
|
@@ -99,7 +99,7 @@ export declare const contractRecordsService: {
|
|
|
99
99
|
id: string;
|
|
100
100
|
contractNumber: string | null;
|
|
101
101
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
102
|
-
status: "executed" | "void" | "
|
|
102
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
103
103
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
104
104
|
title: string;
|
|
105
105
|
templateVersionId: string | null;
|
|
@@ -144,7 +144,7 @@ export declare const contractRecordsService: {
|
|
|
144
144
|
id: string;
|
|
145
145
|
contractNumber: string | null;
|
|
146
146
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
147
|
-
status: "executed" | "void" | "
|
|
147
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
148
148
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
149
149
|
title: string;
|
|
150
150
|
templateVersionId: string | null;
|
|
@@ -188,7 +188,7 @@ export declare const contractRecordsService: {
|
|
|
188
188
|
id: string;
|
|
189
189
|
contractNumber: string | null;
|
|
190
190
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
191
|
-
status: "executed" | "void" | "
|
|
191
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
192
192
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
193
193
|
title: string;
|
|
194
194
|
templateVersionId: string | null;
|
|
@@ -219,7 +219,7 @@ export declare const contractRecordsService: {
|
|
|
219
219
|
id: string;
|
|
220
220
|
contractNumber: string | null;
|
|
221
221
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
222
|
-
status: "executed" | "void" | "
|
|
222
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
223
223
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
224
224
|
title: string;
|
|
225
225
|
templateVersionId: string | null;
|
|
@@ -259,7 +259,7 @@ export declare const contractRecordsService: {
|
|
|
259
259
|
id: string;
|
|
260
260
|
contractNumber: string | null;
|
|
261
261
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
262
|
-
status: "executed" | "void" | "
|
|
262
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
263
263
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
264
264
|
title: string;
|
|
265
265
|
templateVersionId: string | null;
|
|
@@ -830,7 +830,7 @@ export declare const contractRecordsService: {
|
|
|
830
830
|
id: string;
|
|
831
831
|
contractNumber: string | null;
|
|
832
832
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
833
|
-
status: "executed" | "void" | "
|
|
833
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
834
834
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
835
835
|
title: string;
|
|
836
836
|
templateVersionId: string | null;
|
|
@@ -887,7 +887,7 @@ export declare const contractRecordsService: {
|
|
|
887
887
|
id: string;
|
|
888
888
|
contractNumber: string | null;
|
|
889
889
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
890
|
-
status: "executed" | "void" | "
|
|
890
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
891
891
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
892
892
|
title: string;
|
|
893
893
|
templateVersionId: string | null;
|
|
@@ -1284,11 +1284,11 @@ export declare const contractRecordsService: {
|
|
|
1284
1284
|
name: string;
|
|
1285
1285
|
id: string;
|
|
1286
1286
|
createdAt: Date;
|
|
1287
|
+
storageKey: string | null;
|
|
1287
1288
|
kind: string;
|
|
1288
1289
|
contractId: string;
|
|
1289
1290
|
mimeType: string | null;
|
|
1290
1291
|
fileSize: number | null;
|
|
1291
|
-
storageKey: string | null;
|
|
1292
1292
|
checksum: string | null;
|
|
1293
1293
|
} | null>;
|
|
1294
1294
|
updateAttachment(db: PostgresJsDatabase, attachmentId: string, data: UpdateContractAttachmentInput): Promise<{
|
|
@@ -23,7 +23,7 @@ export declare const contractsService: {
|
|
|
23
23
|
id: string;
|
|
24
24
|
contractNumber: string | null;
|
|
25
25
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
26
|
-
status: "executed" | "void" | "
|
|
26
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
27
27
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
28
28
|
title: string;
|
|
29
29
|
templateVersionId: string | null;
|
|
@@ -55,7 +55,7 @@ export declare const contractsService: {
|
|
|
55
55
|
id: string;
|
|
56
56
|
contractNumber: string | null;
|
|
57
57
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
58
|
-
status: "executed" | "void" | "
|
|
58
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
59
59
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
60
60
|
title: string;
|
|
61
61
|
templateVersionId: string | null;
|
|
@@ -87,7 +87,7 @@ export declare const contractsService: {
|
|
|
87
87
|
expiresAt: Date | null;
|
|
88
88
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
89
89
|
organizationId: string | null;
|
|
90
|
-
status: "executed" | "void" | "
|
|
90
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
91
91
|
bookingId: string | null;
|
|
92
92
|
title: string;
|
|
93
93
|
personId: string | null;
|
|
@@ -111,7 +111,7 @@ export declare const contractsService: {
|
|
|
111
111
|
id: string;
|
|
112
112
|
contractNumber: string | null;
|
|
113
113
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
114
|
-
status: "executed" | "void" | "
|
|
114
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
115
115
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
116
116
|
title: string;
|
|
117
117
|
templateVersionId: string | null;
|
|
@@ -156,7 +156,7 @@ export declare const contractsService: {
|
|
|
156
156
|
id: string;
|
|
157
157
|
contractNumber: string | null;
|
|
158
158
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
159
|
-
status: "executed" | "void" | "
|
|
159
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
160
160
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
161
161
|
title: string;
|
|
162
162
|
templateVersionId: string | null;
|
|
@@ -200,7 +200,7 @@ export declare const contractsService: {
|
|
|
200
200
|
id: string;
|
|
201
201
|
contractNumber: string | null;
|
|
202
202
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
203
|
-
status: "executed" | "void" | "
|
|
203
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
204
204
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
205
205
|
title: string;
|
|
206
206
|
templateVersionId: string | null;
|
|
@@ -231,7 +231,7 @@ export declare const contractsService: {
|
|
|
231
231
|
id: string;
|
|
232
232
|
contractNumber: string | null;
|
|
233
233
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
234
|
-
status: "executed" | "void" | "
|
|
234
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
235
235
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
236
236
|
title: string;
|
|
237
237
|
templateVersionId: string | null;
|
|
@@ -271,7 +271,7 @@ export declare const contractsService: {
|
|
|
271
271
|
id: string;
|
|
272
272
|
contractNumber: string | null;
|
|
273
273
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
274
|
-
status: "executed" | "void" | "
|
|
274
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
275
275
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
276
276
|
title: string;
|
|
277
277
|
templateVersionId: string | null;
|
|
@@ -842,7 +842,7 @@ export declare const contractsService: {
|
|
|
842
842
|
id: string;
|
|
843
843
|
contractNumber: string | null;
|
|
844
844
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
845
|
-
status: "executed" | "void" | "
|
|
845
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
846
846
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
847
847
|
title: string;
|
|
848
848
|
templateVersionId: string | null;
|
|
@@ -899,7 +899,7 @@ export declare const contractsService: {
|
|
|
899
899
|
id: string;
|
|
900
900
|
contractNumber: string | null;
|
|
901
901
|
scope: "customer" | "partner" | "supplier" | "other" | "channel";
|
|
902
|
-
status: "executed" | "void" | "
|
|
902
|
+
status: "executed" | "void" | "expired" | "draft" | "sent" | "issued" | "signed";
|
|
903
903
|
stageHistory: import("./schema.js").ContractStageHistoryEntry[];
|
|
904
904
|
title: string;
|
|
905
905
|
templateVersionId: string | null;
|
|
@@ -1296,11 +1296,11 @@ export declare const contractsService: {
|
|
|
1296
1296
|
name: string;
|
|
1297
1297
|
id: string;
|
|
1298
1298
|
createdAt: Date;
|
|
1299
|
+
storageKey: string | null;
|
|
1299
1300
|
kind: string;
|
|
1300
1301
|
contractId: string;
|
|
1301
1302
|
mimeType: string | null;
|
|
1302
1303
|
fileSize: number | null;
|
|
1303
|
-
storageKey: string | null;
|
|
1304
1304
|
checksum: string | null;
|
|
1305
1305
|
} | null>;
|
|
1306
1306
|
updateAttachment(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, attachmentId: string, data: import("./service-shared.js").UpdateContractAttachmentInput): Promise<{
|
|
@@ -9,9 +9,9 @@ export declare const contractScopeSchema: z.ZodEnum<{
|
|
|
9
9
|
export declare const contractStatusSchema: z.ZodEnum<{
|
|
10
10
|
executed: "executed";
|
|
11
11
|
void: "void";
|
|
12
|
+
expired: "expired";
|
|
12
13
|
draft: "draft";
|
|
13
14
|
sent: "sent";
|
|
14
|
-
expired: "expired";
|
|
15
15
|
issued: "issued";
|
|
16
16
|
signed: "signed";
|
|
17
17
|
}>;
|
|
@@ -19,18 +19,18 @@ export declare const contractStageHistoryEntrySchema: z.ZodObject<{
|
|
|
19
19
|
stage: z.ZodEnum<{
|
|
20
20
|
executed: "executed";
|
|
21
21
|
void: "void";
|
|
22
|
+
expired: "expired";
|
|
22
23
|
draft: "draft";
|
|
23
24
|
sent: "sent";
|
|
24
|
-
expired: "expired";
|
|
25
25
|
issued: "issued";
|
|
26
26
|
signed: "signed";
|
|
27
27
|
}>;
|
|
28
28
|
previousStage: z.ZodNullable<z.ZodEnum<{
|
|
29
29
|
executed: "executed";
|
|
30
30
|
void: "void";
|
|
31
|
+
expired: "expired";
|
|
31
32
|
draft: "draft";
|
|
32
33
|
sent: "sent";
|
|
33
|
-
expired: "expired";
|
|
34
34
|
issued: "issued";
|
|
35
35
|
signed: "signed";
|
|
36
36
|
}>>;
|
|
@@ -206,9 +206,9 @@ export declare const insertContractSchema: z.ZodObject<{
|
|
|
206
206
|
status: z.ZodDefault<z.ZodEnum<{
|
|
207
207
|
executed: "executed";
|
|
208
208
|
void: "void";
|
|
209
|
+
expired: "expired";
|
|
209
210
|
draft: "draft";
|
|
210
211
|
sent: "sent";
|
|
211
|
-
expired: "expired";
|
|
212
212
|
issued: "issued";
|
|
213
213
|
signed: "signed";
|
|
214
214
|
}>>;
|
|
@@ -262,9 +262,9 @@ export declare const contractListQuerySchema: z.ZodObject<{
|
|
|
262
262
|
status: z.ZodOptional<z.ZodEnum<{
|
|
263
263
|
executed: "executed";
|
|
264
264
|
void: "void";
|
|
265
|
+
expired: "expired";
|
|
265
266
|
draft: "draft";
|
|
266
267
|
sent: "sent";
|
|
267
|
-
expired: "expired";
|
|
268
268
|
issued: "issued";
|
|
269
269
|
signed: "signed";
|
|
270
270
|
}>>;
|
|
@@ -286,6 +286,8 @@ export declare const generateContractDocumentInputSchema: z.ZodObject<{
|
|
|
286
286
|
kind: z.ZodDefault<z.ZodString>;
|
|
287
287
|
replaceExisting: z.ZodDefault<z.ZodBoolean>;
|
|
288
288
|
issueIfDraft: z.ZodDefault<z.ZodBoolean>;
|
|
289
|
+
publicDelivery: z.ZodDefault<z.ZodBoolean>;
|
|
290
|
+
publicDeliveryTtlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
289
291
|
}, z.core.$strip>;
|
|
290
292
|
export declare const generateContractForBookingInputSchema: z.ZodObject<{
|
|
291
293
|
scope: z.ZodDefault<z.ZodEnum<{
|
|
@@ -299,6 +301,8 @@ export declare const generateContractForBookingInputSchema: z.ZodObject<{
|
|
|
299
301
|
channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
300
302
|
fallbackLanguages: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
301
303
|
requireNumberSeries: z.ZodDefault<z.ZodBoolean>;
|
|
304
|
+
publicDelivery: z.ZodDefault<z.ZodBoolean>;
|
|
305
|
+
publicDeliveryTtlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
302
306
|
}, z.core.$strip>;
|
|
303
307
|
export type GenerateContractForBookingInput = z.infer<typeof generateContractForBookingInputSchema>;
|
|
304
308
|
/**
|
|
@@ -330,9 +334,9 @@ export declare const generatedContractDocumentResultSchema: z.ZodObject<{
|
|
|
330
334
|
contractStatus: z.ZodEnum<{
|
|
331
335
|
executed: "executed";
|
|
332
336
|
void: "void";
|
|
337
|
+
expired: "expired";
|
|
333
338
|
draft: "draft";
|
|
334
339
|
sent: "sent";
|
|
335
|
-
expired: "expired";
|
|
336
340
|
issued: "issued";
|
|
337
341
|
signed: "signed";
|
|
338
342
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/contracts/validation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,mBAAmB;;;;;;EAAkE,CAAA;AAElG,eAAO,MAAM,oBAAoB;;;;;;;;EAQ/B,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM1C,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;EAAwD,CAAA;AAElG,eAAO,MAAM,iCAAiC;;;;EAAyC,CAAA;AAEvF,eAAO,MAAM,wBAAwB;;;;EAA+C,CAAA;AA6CpF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;iBAA6B,CAAA;AACtE,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;iBAAuC,CAAA;AAEhF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;iBAM1C,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;iBAe7C,CAAA;AAIF,eAAO,MAAM,mCAAmC;;;;;iBAK9C,CAAA;AAiBF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;iBAAiC,CAAA;AAC9E,eAAO,MAAM,gCAAgC;;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;;;;;;;;;;;;;;;;;;;iBAA2C,CAAA;AACxF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;iBAG9C,CAAA;AAuBF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAqB,CAAA;AACtD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;iBAKrB,CAAA;AAEZ,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;iBASlC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;iBAGpC,CAAA;AAEF,eAAO,MAAM,sCAAsC;;iBAEjD,CAAA;AAEF,eAAO,MAAM,mCAAmC;;;;;;iBAW9C,CAAA;AAEF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;iBAahD,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAA;AAEnG;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE,eAAO,MAAM,yCAAyC;;;;;;;;;;;iBAWpD,CAAA;AAEF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMhD,CAAA;AAkBF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;iBAA8B,CAAA;AAcxE,eAAO,MAAM,8BAA8B;;;;;;;;iBAA+B,CAAA;AAC1E,eAAO,MAAM,8BAA8B;;;;;;;;iBAAyC,CAAA;AAEpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA"}
|
|
@@ -155,6 +155,13 @@ export const generateContractDocumentInputSchema = z.object({
|
|
|
155
155
|
kind: z.string().min(1).max(50).default("document"),
|
|
156
156
|
replaceExisting: z.boolean().default(true),
|
|
157
157
|
issueIfDraft: z.boolean().default(true),
|
|
158
|
+
publicDelivery: z.boolean().default(false),
|
|
159
|
+
publicDeliveryTtlSeconds: z
|
|
160
|
+
.number()
|
|
161
|
+
.int()
|
|
162
|
+
.min(1)
|
|
163
|
+
.max(30 * 24 * 60 * 60)
|
|
164
|
+
.optional(),
|
|
158
165
|
});
|
|
159
166
|
export const generateContractForBookingInputSchema = z.object({
|
|
160
167
|
scope: contractScopeSchema.default("customer"),
|
|
@@ -162,6 +169,13 @@ export const generateContractForBookingInputSchema = z.object({
|
|
|
162
169
|
channelId: z.string().optional().nullable(),
|
|
163
170
|
fallbackLanguages: z.array(z.string().min(2).max(10)).optional().default([]),
|
|
164
171
|
requireNumberSeries: z.boolean().default(true),
|
|
172
|
+
publicDelivery: z.boolean().default(false),
|
|
173
|
+
publicDeliveryTtlSeconds: z
|
|
174
|
+
.number()
|
|
175
|
+
.int()
|
|
176
|
+
.min(1)
|
|
177
|
+
.max(30 * 24 * 60 * 60)
|
|
178
|
+
.optional(),
|
|
165
179
|
});
|
|
166
180
|
/**
|
|
167
181
|
* Optional customization the operator typed in the Send-contract dialog.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/legal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
"drizzle-orm": "^0.45.2",
|
|
60
60
|
"hono": "^4.12.10",
|
|
61
61
|
"zod": "^4.3.6",
|
|
62
|
-
"@voyantjs/bookings": "0.
|
|
63
|
-
"@voyantjs/core": "0.
|
|
64
|
-
"@voyantjs/crm": "0.
|
|
65
|
-
"@voyantjs/db": "0.
|
|
66
|
-
"@voyantjs/finance": "0.
|
|
67
|
-
"@voyantjs/hono": "0.
|
|
68
|
-
"@voyantjs/suppliers": "0.
|
|
69
|
-
"@voyantjs/utils": "0.
|
|
70
|
-
"@voyantjs/storage": "0.
|
|
62
|
+
"@voyantjs/bookings": "0.84.1",
|
|
63
|
+
"@voyantjs/core": "0.84.1",
|
|
64
|
+
"@voyantjs/crm": "0.84.1",
|
|
65
|
+
"@voyantjs/db": "0.84.1",
|
|
66
|
+
"@voyantjs/finance": "0.84.1",
|
|
67
|
+
"@voyantjs/hono": "0.84.1",
|
|
68
|
+
"@voyantjs/suppliers": "0.84.1",
|
|
69
|
+
"@voyantjs/utils": "0.84.1",
|
|
70
|
+
"@voyantjs/storage": "0.84.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"typescript": "^6.0.2",
|