@voyantjs/transactions 0.4.0 → 0.4.2
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/routes-offers.d.ts +8 -8
- package/dist/routes-orders.d.ts +16 -16
- package/dist/schema/participant-identity.d.ts +1 -1
- package/dist/schema/participant-identity.d.ts.map +1 -1
- package/dist/schema/participant-identity.js +1 -1
- package/dist/schema-orders.d.ts +2 -2
- package/dist/service-offers.d.ts +16 -16
- package/dist/service-orders.d.ts +16 -16
- package/dist/validation.d.ts +8 -8
- package/package.json +5 -5
package/dist/routes-offers.d.ts
CHANGED
|
@@ -49,15 +49,15 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
|
|
|
49
49
|
data: {
|
|
50
50
|
createdAt: string;
|
|
51
51
|
updatedAt: string;
|
|
52
|
-
currency: string;
|
|
53
|
-
notes: string | null;
|
|
54
52
|
id: string;
|
|
55
53
|
metadata: import("hono/utils/types").JSONValue;
|
|
54
|
+
organizationId: string | null;
|
|
55
|
+
status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
|
|
56
|
+
currency: string;
|
|
57
|
+
notes: string | null;
|
|
56
58
|
offerNumber: string;
|
|
57
59
|
title: string;
|
|
58
|
-
status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
|
|
59
60
|
personId: string | null;
|
|
60
|
-
organizationId: string | null;
|
|
61
61
|
opportunityId: string | null;
|
|
62
62
|
quoteId: string | null;
|
|
63
63
|
marketId: string | null;
|
|
@@ -590,11 +590,11 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
|
|
|
590
590
|
createdAt: string;
|
|
591
591
|
updatedAt: string;
|
|
592
592
|
description: string | null;
|
|
593
|
-
notes: string | null;
|
|
594
593
|
id: string;
|
|
595
594
|
metadata: import("hono/utils/types").JSONValue;
|
|
596
|
-
title: string;
|
|
597
595
|
status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
|
|
596
|
+
notes: string | null;
|
|
597
|
+
title: string;
|
|
598
598
|
taxAmountCents: number | null;
|
|
599
599
|
feeAmountCents: number | null;
|
|
600
600
|
productId: string | null;
|
|
@@ -778,11 +778,11 @@ export declare const transactionOfferRoutes: import("hono/hono-base").HonoBase<E
|
|
|
778
778
|
output: {
|
|
779
779
|
data: {
|
|
780
780
|
createdAt: string;
|
|
781
|
-
participantId: string;
|
|
782
781
|
id: string;
|
|
782
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
783
|
+
participantId: string;
|
|
783
784
|
isPrimary: boolean;
|
|
784
785
|
offerItemId: string;
|
|
785
|
-
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
786
786
|
} | null;
|
|
787
787
|
};
|
|
788
788
|
outputFormat: "json";
|
package/dist/routes-orders.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
9
9
|
orderNumber: string;
|
|
10
10
|
offerId: string | null;
|
|
11
11
|
title: string;
|
|
12
|
-
status: "
|
|
12
|
+
status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
|
|
13
13
|
personId: string | null;
|
|
14
14
|
organizationId: string | null;
|
|
15
15
|
opportunityId: string | null;
|
|
@@ -50,14 +50,15 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
50
50
|
offerId: string | null;
|
|
51
51
|
createdAt: string;
|
|
52
52
|
updatedAt: string;
|
|
53
|
-
currency: string;
|
|
54
|
-
notes: string | null;
|
|
55
53
|
id: string;
|
|
54
|
+
expiresAt: string | null;
|
|
56
55
|
metadata: import("hono/utils/types").JSONValue;
|
|
56
|
+
organizationId: string | null;
|
|
57
|
+
status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
|
|
58
|
+
currency: string;
|
|
59
|
+
notes: string | null;
|
|
57
60
|
title: string;
|
|
58
|
-
status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
|
|
59
61
|
personId: string | null;
|
|
60
|
-
organizationId: string | null;
|
|
61
62
|
opportunityId: string | null;
|
|
62
63
|
quoteId: string | null;
|
|
63
64
|
marketId: string | null;
|
|
@@ -73,7 +74,6 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
73
74
|
orderedAt: string | null;
|
|
74
75
|
confirmedAt: string | null;
|
|
75
76
|
cancelledAt: string | null;
|
|
76
|
-
expiresAt: string | null;
|
|
77
77
|
} | null;
|
|
78
78
|
};
|
|
79
79
|
outputFormat: "json";
|
|
@@ -105,7 +105,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
105
105
|
orderNumber: string;
|
|
106
106
|
offerId: string | null;
|
|
107
107
|
title: string;
|
|
108
|
-
status: "
|
|
108
|
+
status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
|
|
109
109
|
personId: string | null;
|
|
110
110
|
organizationId: string | null;
|
|
111
111
|
opportunityId: string | null;
|
|
@@ -159,7 +159,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
159
159
|
orderNumber: string;
|
|
160
160
|
offerId: string | null;
|
|
161
161
|
title: string;
|
|
162
|
-
status: "
|
|
162
|
+
status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
|
|
163
163
|
personId: string | null;
|
|
164
164
|
organizationId: string | null;
|
|
165
165
|
opportunityId: string | null;
|
|
@@ -591,11 +591,11 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
591
591
|
createdAt: string;
|
|
592
592
|
updatedAt: string;
|
|
593
593
|
description: string | null;
|
|
594
|
-
notes: string | null;
|
|
595
594
|
id: string;
|
|
596
595
|
metadata: import("hono/utils/types").JSONValue;
|
|
597
|
-
title: string;
|
|
598
596
|
status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
|
|
597
|
+
notes: string | null;
|
|
598
|
+
title: string;
|
|
599
599
|
taxAmountCents: number | null;
|
|
600
600
|
feeAmountCents: number | null;
|
|
601
601
|
productId: string | null;
|
|
@@ -782,10 +782,10 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
782
782
|
output: {
|
|
783
783
|
data: {
|
|
784
784
|
createdAt: string;
|
|
785
|
-
participantId: string;
|
|
786
785
|
id: string;
|
|
787
|
-
isPrimary: boolean;
|
|
788
786
|
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
787
|
+
participantId: string;
|
|
788
|
+
isPrimary: boolean;
|
|
789
789
|
orderItemId: string;
|
|
790
790
|
} | null;
|
|
791
791
|
};
|
|
@@ -900,7 +900,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
900
900
|
language: string | null;
|
|
901
901
|
required: boolean;
|
|
902
902
|
sortOrder: number;
|
|
903
|
-
acceptanceStatus: "
|
|
903
|
+
acceptanceStatus: "pending" | "accepted" | "not_required" | "declined";
|
|
904
904
|
acceptedAt: string | null;
|
|
905
905
|
acceptedBy: string | null;
|
|
906
906
|
metadata: import("hono/utils/types").JSONValue;
|
|
@@ -934,7 +934,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
934
934
|
language: string | null;
|
|
935
935
|
required: boolean;
|
|
936
936
|
sortOrder: number;
|
|
937
|
-
acceptanceStatus: "
|
|
937
|
+
acceptanceStatus: "pending" | "accepted" | "not_required" | "declined";
|
|
938
938
|
acceptedBy: string | null;
|
|
939
939
|
} | null;
|
|
940
940
|
};
|
|
@@ -972,7 +972,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
972
972
|
language: string | null;
|
|
973
973
|
required: boolean;
|
|
974
974
|
sortOrder: number;
|
|
975
|
-
acceptanceStatus: "
|
|
975
|
+
acceptanceStatus: "pending" | "accepted" | "not_required" | "declined";
|
|
976
976
|
acceptedAt: string | null;
|
|
977
977
|
acceptedBy: string | null;
|
|
978
978
|
metadata: import("hono/utils/types").JSONValue;
|
|
@@ -1014,7 +1014,7 @@ export declare const transactionOrderRoutes: import("hono/hono-base").HonoBase<E
|
|
|
1014
1014
|
language: string | null;
|
|
1015
1015
|
required: boolean;
|
|
1016
1016
|
sortOrder: number;
|
|
1017
|
-
acceptanceStatus: "
|
|
1017
|
+
acceptanceStatus: "pending" | "accepted" | "not_required" | "declined";
|
|
1018
1018
|
acceptedAt: string | null;
|
|
1019
1019
|
acceptedBy: string | null;
|
|
1020
1020
|
metadata: import("hono/utils/types").JSONValue;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type KmsEnvelope } from "@voyantjs/db/schema/iam";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export declare const transactionParticipantIdentitySchema: z.ZodObject<{
|
|
4
4
|
dateOfBirth: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"participant-identity.d.ts","sourceRoot":"","sources":["../../src/schema/participant-identity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"participant-identity.d.ts","sourceRoot":"","sources":["../../src/schema/participant-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAqB,MAAM,yBAAyB,CAAA;AAC7E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,oCAAoC;;;iBAG/C,CAAA;AAEF,eAAO,MAAM,6CAA6C;;;;;;;;;;iBAOxD,CAAA;AAEF,eAAO,MAAM,4CAA4C;;;;iBAEvD,CAAA;AAEF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAA;AACjG,MAAM,MAAM,sCAAsC,GAAG;IACnD,iBAAiB,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;CACvC,CAAA;AACD,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC3D,OAAO,6CAA6C,CACrD,CAAA"}
|
package/dist/schema-orders.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export declare const orders: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
75
75
|
tableName: "orders";
|
|
76
76
|
dataType: "string";
|
|
77
77
|
columnType: "PgEnumColumn";
|
|
78
|
-
data: "
|
|
78
|
+
data: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
|
|
79
79
|
driverParam: string;
|
|
80
80
|
notNull: true;
|
|
81
81
|
hasDefault: true;
|
|
@@ -1469,7 +1469,7 @@ export declare const orderTerms: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
1469
1469
|
tableName: "order_terms";
|
|
1470
1470
|
dataType: "string";
|
|
1471
1471
|
columnType: "PgEnumColumn";
|
|
1472
|
-
data: "
|
|
1472
|
+
data: "pending" | "accepted" | "not_required" | "declined";
|
|
1473
1473
|
driverParam: string;
|
|
1474
1474
|
notNull: true;
|
|
1475
1475
|
hasDefault: true;
|
package/dist/service-offers.d.ts
CHANGED
|
@@ -66,15 +66,15 @@ export declare function getOfferById(db: PostgresJsDatabase, id: string): Promis
|
|
|
66
66
|
export declare function createOffer(db: PostgresJsDatabase, data: CreateOfferInput): Promise<{
|
|
67
67
|
createdAt: Date;
|
|
68
68
|
updatedAt: Date;
|
|
69
|
-
currency: string;
|
|
70
|
-
notes: string | null;
|
|
71
69
|
id: string;
|
|
72
70
|
metadata: unknown;
|
|
71
|
+
organizationId: string | null;
|
|
72
|
+
status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
|
|
73
|
+
currency: string;
|
|
74
|
+
notes: string | null;
|
|
73
75
|
offerNumber: string;
|
|
74
76
|
title: string;
|
|
75
|
-
status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
|
|
76
77
|
personId: string | null;
|
|
77
|
-
organizationId: string | null;
|
|
78
78
|
opportunityId: string | null;
|
|
79
79
|
quoteId: string | null;
|
|
80
80
|
marketId: string | null;
|
|
@@ -96,15 +96,15 @@ export declare function createOfferBundle(db: PostgresJsDatabase, input: CreateO
|
|
|
96
96
|
offer: {
|
|
97
97
|
createdAt: Date;
|
|
98
98
|
updatedAt: Date;
|
|
99
|
-
currency: string;
|
|
100
|
-
notes: string | null;
|
|
101
99
|
id: string;
|
|
102
100
|
metadata: unknown;
|
|
101
|
+
organizationId: string | null;
|
|
102
|
+
status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
|
|
103
|
+
currency: string;
|
|
104
|
+
notes: string | null;
|
|
103
105
|
offerNumber: string;
|
|
104
106
|
title: string;
|
|
105
|
-
status: "draft" | "published" | "sent" | "accepted" | "expired" | "withdrawn" | "converted";
|
|
106
107
|
personId: string | null;
|
|
107
|
-
organizationId: string | null;
|
|
108
108
|
opportunityId: string | null;
|
|
109
109
|
quoteId: string | null;
|
|
110
110
|
marketId: string | null;
|
|
@@ -144,11 +144,11 @@ export declare function createOfferBundle(db: PostgresJsDatabase, input: CreateO
|
|
|
144
144
|
createdAt: Date;
|
|
145
145
|
updatedAt: Date;
|
|
146
146
|
description: string | null;
|
|
147
|
-
notes: string | null;
|
|
148
147
|
id: string;
|
|
149
148
|
metadata: unknown;
|
|
150
|
-
title: string;
|
|
151
149
|
status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
|
|
150
|
+
notes: string | null;
|
|
151
|
+
title: string;
|
|
152
152
|
taxAmountCents: number | null;
|
|
153
153
|
feeAmountCents: number | null;
|
|
154
154
|
productId: string | null;
|
|
@@ -169,11 +169,11 @@ export declare function createOfferBundle(db: PostgresJsDatabase, input: CreateO
|
|
|
169
169
|
}[];
|
|
170
170
|
itemParticipants: {
|
|
171
171
|
createdAt: Date;
|
|
172
|
-
participantId: string;
|
|
173
172
|
id: string;
|
|
173
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
174
|
+
participantId: string;
|
|
174
175
|
isPrimary: boolean;
|
|
175
176
|
offerItemId: string;
|
|
176
|
-
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
177
177
|
}[];
|
|
178
178
|
} | null>;
|
|
179
179
|
export declare function updateOffer(db: PostgresJsDatabase, id: string, data: UpdateOfferInput): Promise<{
|
|
@@ -350,11 +350,11 @@ export declare function createOfferItem(db: PostgresJsDatabase, data: CreateOffe
|
|
|
350
350
|
createdAt: Date;
|
|
351
351
|
updatedAt: Date;
|
|
352
352
|
description: string | null;
|
|
353
|
-
notes: string | null;
|
|
354
353
|
id: string;
|
|
355
354
|
metadata: unknown;
|
|
356
|
-
title: string;
|
|
357
355
|
status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
|
|
356
|
+
notes: string | null;
|
|
357
|
+
title: string;
|
|
358
358
|
taxAmountCents: number | null;
|
|
359
359
|
feeAmountCents: number | null;
|
|
360
360
|
productId: string | null;
|
|
@@ -427,11 +427,11 @@ export declare function getOfferItemParticipantById(db: PostgresJsDatabase, id:
|
|
|
427
427
|
} | null>;
|
|
428
428
|
export declare function createOfferItemParticipant(db: PostgresJsDatabase, data: CreateOfferItemParticipantInput): Promise<{
|
|
429
429
|
createdAt: Date;
|
|
430
|
-
participantId: string;
|
|
431
430
|
id: string;
|
|
431
|
+
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
432
|
+
participantId: string;
|
|
432
433
|
isPrimary: boolean;
|
|
433
434
|
offerItemId: string;
|
|
434
|
-
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
435
435
|
} | null>;
|
|
436
436
|
export declare function updateOfferItemParticipant(db: PostgresJsDatabase, id: string, data: UpdateOfferItemParticipantInput): Promise<{
|
|
437
437
|
id: string;
|
package/dist/service-orders.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare function listOrders(db: PostgresJsDatabase, query: OrderListQuery
|
|
|
6
6
|
orderNumber: string;
|
|
7
7
|
offerId: string | null;
|
|
8
8
|
title: string;
|
|
9
|
-
status: "
|
|
9
|
+
status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
|
|
10
10
|
personId: string | null;
|
|
11
11
|
organizationId: string | null;
|
|
12
12
|
opportunityId: string | null;
|
|
@@ -39,7 +39,7 @@ export declare function getOrderById(db: PostgresJsDatabase, id: string): Promis
|
|
|
39
39
|
orderNumber: string;
|
|
40
40
|
offerId: string | null;
|
|
41
41
|
title: string;
|
|
42
|
-
status: "
|
|
42
|
+
status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
|
|
43
43
|
personId: string | null;
|
|
44
44
|
organizationId: string | null;
|
|
45
45
|
opportunityId: string | null;
|
|
@@ -67,14 +67,15 @@ export declare function createOrder(db: PostgresJsDatabase, data: CreateOrderInp
|
|
|
67
67
|
offerId: string | null;
|
|
68
68
|
createdAt: Date;
|
|
69
69
|
updatedAt: Date;
|
|
70
|
-
currency: string;
|
|
71
|
-
notes: string | null;
|
|
72
70
|
id: string;
|
|
71
|
+
expiresAt: Date | null;
|
|
73
72
|
metadata: unknown;
|
|
73
|
+
organizationId: string | null;
|
|
74
|
+
status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
|
|
75
|
+
currency: string;
|
|
76
|
+
notes: string | null;
|
|
74
77
|
title: string;
|
|
75
|
-
status: "draft" | "expired" | "pending" | "confirmed" | "fulfilled" | "cancelled";
|
|
76
78
|
personId: string | null;
|
|
77
|
-
organizationId: string | null;
|
|
78
79
|
opportunityId: string | null;
|
|
79
80
|
quoteId: string | null;
|
|
80
81
|
marketId: string | null;
|
|
@@ -90,14 +91,13 @@ export declare function createOrder(db: PostgresJsDatabase, data: CreateOrderInp
|
|
|
90
91
|
orderedAt: Date | null;
|
|
91
92
|
confirmedAt: Date | null;
|
|
92
93
|
cancelledAt: Date | null;
|
|
93
|
-
expiresAt: Date | null;
|
|
94
94
|
} | null>;
|
|
95
95
|
export declare function updateOrder(db: PostgresJsDatabase, id: string, data: UpdateOrderInput): Promise<{
|
|
96
96
|
id: string;
|
|
97
97
|
orderNumber: string;
|
|
98
98
|
offerId: string | null;
|
|
99
99
|
title: string;
|
|
100
|
-
status: "
|
|
100
|
+
status: "pending" | "draft" | "expired" | "confirmed" | "fulfilled" | "cancelled";
|
|
101
101
|
personId: string | null;
|
|
102
102
|
organizationId: string | null;
|
|
103
103
|
opportunityId: string | null;
|
|
@@ -268,11 +268,11 @@ export declare function createOrderItem(db: PostgresJsDatabase, data: CreateOrde
|
|
|
268
268
|
createdAt: Date;
|
|
269
269
|
updatedAt: Date;
|
|
270
270
|
description: string | null;
|
|
271
|
-
notes: string | null;
|
|
272
271
|
id: string;
|
|
273
272
|
metadata: unknown;
|
|
274
|
-
title: string;
|
|
275
273
|
status: "draft" | "confirmed" | "fulfilled" | "cancelled" | "priced";
|
|
274
|
+
notes: string | null;
|
|
275
|
+
title: string;
|
|
276
276
|
taxAmountCents: number | null;
|
|
277
277
|
feeAmountCents: number | null;
|
|
278
278
|
productId: string | null;
|
|
@@ -347,10 +347,10 @@ export declare function getOrderItemParticipantById(db: PostgresJsDatabase, id:
|
|
|
347
347
|
} | null>;
|
|
348
348
|
export declare function createOrderItemParticipant(db: PostgresJsDatabase, data: CreateOrderItemParticipantInput): Promise<{
|
|
349
349
|
createdAt: Date;
|
|
350
|
-
participantId: string;
|
|
351
350
|
id: string;
|
|
352
|
-
isPrimary: boolean;
|
|
353
351
|
role: "other" | "traveler" | "occupant" | "primary_contact" | "beneficiary" | "service_assignee";
|
|
352
|
+
participantId: string;
|
|
353
|
+
isPrimary: boolean;
|
|
354
354
|
orderItemId: string;
|
|
355
355
|
} | null>;
|
|
356
356
|
export declare function updateOrderItemParticipant(db: PostgresJsDatabase, id: string, data: UpdateOrderItemParticipantInput): Promise<{
|
|
@@ -375,7 +375,7 @@ export declare function listOrderTerms(db: PostgresJsDatabase, query: OrderTermL
|
|
|
375
375
|
language: string | null;
|
|
376
376
|
required: boolean;
|
|
377
377
|
sortOrder: number;
|
|
378
|
-
acceptanceStatus: "
|
|
378
|
+
acceptanceStatus: "pending" | "accepted" | "not_required" | "declined";
|
|
379
379
|
acceptedAt: Date | null;
|
|
380
380
|
acceptedBy: string | null;
|
|
381
381
|
metadata: unknown;
|
|
@@ -396,7 +396,7 @@ export declare function getOrderTermById(db: PostgresJsDatabase, id: string): Pr
|
|
|
396
396
|
language: string | null;
|
|
397
397
|
required: boolean;
|
|
398
398
|
sortOrder: number;
|
|
399
|
-
acceptanceStatus: "
|
|
399
|
+
acceptanceStatus: "pending" | "accepted" | "not_required" | "declined";
|
|
400
400
|
acceptedAt: Date | null;
|
|
401
401
|
acceptedBy: string | null;
|
|
402
402
|
metadata: unknown;
|
|
@@ -417,7 +417,7 @@ export declare function createOrderTerm(db: PostgresJsDatabase, data: CreateOrde
|
|
|
417
417
|
language: string | null;
|
|
418
418
|
required: boolean;
|
|
419
419
|
sortOrder: number;
|
|
420
|
-
acceptanceStatus: "
|
|
420
|
+
acceptanceStatus: "pending" | "accepted" | "not_required" | "declined";
|
|
421
421
|
acceptedBy: string | null;
|
|
422
422
|
} | null>;
|
|
423
423
|
export declare function updateOrderTerm(db: PostgresJsDatabase, id: string, data: UpdateOrderTermInput): Promise<{
|
|
@@ -430,7 +430,7 @@ export declare function updateOrderTerm(db: PostgresJsDatabase, id: string, data
|
|
|
430
430
|
language: string | null;
|
|
431
431
|
required: boolean;
|
|
432
432
|
sortOrder: number;
|
|
433
|
-
acceptanceStatus: "
|
|
433
|
+
acceptanceStatus: "pending" | "accepted" | "not_required" | "declined";
|
|
434
434
|
acceptedAt: Date | null;
|
|
435
435
|
acceptedBy: string | null;
|
|
436
436
|
metadata: unknown;
|
package/dist/validation.d.ts
CHANGED
|
@@ -55,9 +55,9 @@ export declare const offerStatusSchema: z.ZodEnum<{
|
|
|
55
55
|
converted: "converted";
|
|
56
56
|
}>;
|
|
57
57
|
export declare const orderStatusSchema: z.ZodEnum<{
|
|
58
|
+
pending: "pending";
|
|
58
59
|
draft: "draft";
|
|
59
60
|
expired: "expired";
|
|
60
|
-
pending: "pending";
|
|
61
61
|
confirmed: "confirmed";
|
|
62
62
|
fulfilled: "fulfilled";
|
|
63
63
|
cancelled: "cancelled";
|
|
@@ -114,8 +114,8 @@ export declare const orderTermTypeSchema: z.ZodEnum<{
|
|
|
114
114
|
commission: "commission";
|
|
115
115
|
}>;
|
|
116
116
|
export declare const orderTermAcceptanceStatusSchema: z.ZodEnum<{
|
|
117
|
-
accepted: "accepted";
|
|
118
117
|
pending: "pending";
|
|
118
|
+
accepted: "accepted";
|
|
119
119
|
not_required: "not_required";
|
|
120
120
|
declined: "declined";
|
|
121
121
|
}>;
|
|
@@ -444,9 +444,9 @@ export declare const insertOrderSchema: z.ZodObject<{
|
|
|
444
444
|
offerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
445
445
|
title: z.ZodString;
|
|
446
446
|
status: z.ZodDefault<z.ZodEnum<{
|
|
447
|
+
pending: "pending";
|
|
447
448
|
draft: "draft";
|
|
448
449
|
expired: "expired";
|
|
449
|
-
pending: "pending";
|
|
450
450
|
confirmed: "confirmed";
|
|
451
451
|
fulfilled: "fulfilled";
|
|
452
452
|
cancelled: "cancelled";
|
|
@@ -477,9 +477,9 @@ export declare const updateOrderSchema: z.ZodObject<{
|
|
|
477
477
|
offerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
478
478
|
title: z.ZodOptional<z.ZodString>;
|
|
479
479
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
480
|
+
pending: "pending";
|
|
480
481
|
draft: "draft";
|
|
481
482
|
expired: "expired";
|
|
482
|
-
pending: "pending";
|
|
483
483
|
confirmed: "confirmed";
|
|
484
484
|
fulfilled: "fulfilled";
|
|
485
485
|
cancelled: "cancelled";
|
|
@@ -509,9 +509,9 @@ export declare const orderListQuerySchema: z.ZodObject<{
|
|
|
509
509
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
510
510
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
511
511
|
status: z.ZodOptional<z.ZodEnum<{
|
|
512
|
+
pending: "pending";
|
|
512
513
|
draft: "draft";
|
|
513
514
|
expired: "expired";
|
|
514
|
-
pending: "pending";
|
|
515
515
|
confirmed: "confirmed";
|
|
516
516
|
fulfilled: "fulfilled";
|
|
517
517
|
cancelled: "cancelled";
|
|
@@ -736,8 +736,8 @@ export declare const insertOrderTermSchema: z.ZodObject<{
|
|
|
736
736
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
737
737
|
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
738
738
|
acceptanceStatus: z.ZodDefault<z.ZodEnum<{
|
|
739
|
-
accepted: "accepted";
|
|
740
739
|
pending: "pending";
|
|
740
|
+
accepted: "accepted";
|
|
741
741
|
not_required: "not_required";
|
|
742
742
|
declined: "declined";
|
|
743
743
|
}>>;
|
|
@@ -763,8 +763,8 @@ export declare const updateOrderTermSchema: z.ZodObject<{
|
|
|
763
763
|
required: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
764
764
|
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
765
765
|
acceptanceStatus: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
766
|
-
accepted: "accepted";
|
|
767
766
|
pending: "pending";
|
|
767
|
+
accepted: "accepted";
|
|
768
768
|
not_required: "not_required";
|
|
769
769
|
declined: "declined";
|
|
770
770
|
}>>>;
|
|
@@ -787,8 +787,8 @@ export declare const orderTermListQuerySchema: z.ZodObject<{
|
|
|
787
787
|
commission: "commission";
|
|
788
788
|
}>>;
|
|
789
789
|
acceptanceStatus: z.ZodOptional<z.ZodEnum<{
|
|
790
|
-
accepted: "accepted";
|
|
791
790
|
pending: "pending";
|
|
791
|
+
accepted: "accepted";
|
|
792
792
|
not_required: "not_required";
|
|
793
793
|
declined: "declined";
|
|
794
794
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/transactions",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"drizzle-orm": "^0.45.2",
|
|
30
30
|
"hono": "^4.12.10",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@voyantjs/core": "0.4.
|
|
33
|
-
"@voyantjs/db": "0.4.
|
|
34
|
-
"@voyantjs/hono": "0.4.
|
|
35
|
-
"@voyantjs/utils": "0.4.
|
|
32
|
+
"@voyantjs/core": "0.4.2",
|
|
33
|
+
"@voyantjs/db": "0.4.2",
|
|
34
|
+
"@voyantjs/hono": "0.4.2",
|
|
35
|
+
"@voyantjs/utils": "0.4.2"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"typescript": "^6.0.2",
|