@voyantjs/distribution 0.9.0 → 0.11.0
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.d.ts +10 -10
- package/dist/schema-core.d.ts +3 -3
- package/dist/schema-shared.d.ts +1 -1
- package/dist/schema-shared.d.ts.map +1 -1
- package/dist/schema-shared.js +1 -0
- package/dist/service.d.ts +8 -8
- package/dist/validation.d.ts +10 -5
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +1 -0
- package/package.json +8 -8
package/dist/routes.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
14
14
|
id: string;
|
|
15
15
|
name: string;
|
|
16
16
|
description: string | null;
|
|
17
|
-
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
17
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner" | "connect";
|
|
18
18
|
status: "pending" | "active" | "archived" | "inactive";
|
|
19
19
|
metadata: {
|
|
20
20
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -42,7 +42,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
42
42
|
id: string;
|
|
43
43
|
name: string;
|
|
44
44
|
description: string | null;
|
|
45
|
-
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
45
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner" | "connect";
|
|
46
46
|
status: "pending" | "active" | "archived" | "inactive";
|
|
47
47
|
metadata: {
|
|
48
48
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -67,7 +67,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
67
67
|
id: string;
|
|
68
68
|
name: string;
|
|
69
69
|
description: string | null;
|
|
70
|
-
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
70
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner" | "connect";
|
|
71
71
|
status: "pending" | "active" | "archived" | "inactive";
|
|
72
72
|
metadata: {
|
|
73
73
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -130,7 +130,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
130
130
|
id: string;
|
|
131
131
|
name: string;
|
|
132
132
|
description: string | null;
|
|
133
|
-
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
133
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner" | "connect";
|
|
134
134
|
status: "pending" | "active" | "archived" | "inactive";
|
|
135
135
|
metadata: {
|
|
136
136
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -170,7 +170,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
170
170
|
id: string;
|
|
171
171
|
name: string;
|
|
172
172
|
description: string | null;
|
|
173
|
-
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
173
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner" | "connect";
|
|
174
174
|
status: "pending" | "active" | "archived" | "inactive";
|
|
175
175
|
metadata: {
|
|
176
176
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -522,7 +522,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
522
522
|
id: string;
|
|
523
523
|
channelId: string;
|
|
524
524
|
supplierId: string | null;
|
|
525
|
-
status: "
|
|
525
|
+
status: "active" | "draft" | "expired" | "terminated";
|
|
526
526
|
startsAt: string;
|
|
527
527
|
endsAt: string | null;
|
|
528
528
|
paymentOwner: "split" | "operator" | "channel";
|
|
@@ -549,7 +549,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
549
549
|
id: string;
|
|
550
550
|
createdAt: string;
|
|
551
551
|
updatedAt: string;
|
|
552
|
-
status: "
|
|
552
|
+
status: "active" | "draft" | "expired" | "terminated";
|
|
553
553
|
notes: string | null;
|
|
554
554
|
paymentOwner: "split" | "operator" | "channel";
|
|
555
555
|
supplierId: string | null;
|
|
@@ -573,7 +573,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
573
573
|
id: string;
|
|
574
574
|
channelId: string;
|
|
575
575
|
supplierId: string | null;
|
|
576
|
-
status: "
|
|
576
|
+
status: "active" | "draft" | "expired" | "terminated";
|
|
577
577
|
startsAt: string;
|
|
578
578
|
endsAt: string | null;
|
|
579
579
|
paymentOwner: "split" | "operator" | "channel";
|
|
@@ -635,7 +635,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
635
635
|
id: string;
|
|
636
636
|
channelId: string;
|
|
637
637
|
supplierId: string | null;
|
|
638
|
-
status: "
|
|
638
|
+
status: "active" | "draft" | "expired" | "terminated";
|
|
639
639
|
startsAt: string;
|
|
640
640
|
endsAt: string | null;
|
|
641
641
|
paymentOwner: "split" | "operator" | "channel";
|
|
@@ -674,7 +674,7 @@ export declare const distributionRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
674
674
|
id: string;
|
|
675
675
|
channelId: string;
|
|
676
676
|
supplierId: string | null;
|
|
677
|
-
status: "
|
|
677
|
+
status: "active" | "draft" | "expired" | "terminated";
|
|
678
678
|
startsAt: string;
|
|
679
679
|
endsAt: string | null;
|
|
680
680
|
paymentOwner: "split" | "operator" | "channel";
|
package/dist/schema-core.d.ts
CHANGED
|
@@ -58,14 +58,14 @@ export declare const channels: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
58
58
|
tableName: "channels";
|
|
59
59
|
dataType: "string";
|
|
60
60
|
columnType: "PgEnumColumn";
|
|
61
|
-
data: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
61
|
+
data: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner" | "connect";
|
|
62
62
|
driverParam: string;
|
|
63
63
|
notNull: true;
|
|
64
64
|
hasDefault: false;
|
|
65
65
|
isPrimaryKey: false;
|
|
66
66
|
isAutoincrement: false;
|
|
67
67
|
hasRuntimeDefault: false;
|
|
68
|
-
enumValues: ["direct", "affiliate", "ota", "reseller", "marketplace", "api_partner"];
|
|
68
|
+
enumValues: ["direct", "affiliate", "ota", "reseller", "marketplace", "api_partner", "connect"];
|
|
69
69
|
baseColumn: never;
|
|
70
70
|
identity: undefined;
|
|
71
71
|
generated: undefined;
|
|
@@ -346,7 +346,7 @@ export declare const channelContracts: import("drizzle-orm/pg-core").PgTableWith
|
|
|
346
346
|
tableName: "channel_contracts";
|
|
347
347
|
dataType: "string";
|
|
348
348
|
columnType: "PgEnumColumn";
|
|
349
|
-
data: "
|
|
349
|
+
data: "active" | "draft" | "expired" | "terminated";
|
|
350
350
|
driverParam: string;
|
|
351
351
|
notNull: true;
|
|
352
352
|
hasDefault: true;
|
package/dist/schema-shared.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const channelKindEnum: import("drizzle-orm/pg-core").PgEnum<["direct", "affiliate", "ota", "reseller", "marketplace", "api_partner"]>;
|
|
1
|
+
export declare const channelKindEnum: import("drizzle-orm/pg-core").PgEnum<["direct", "affiliate", "ota", "reseller", "marketplace", "api_partner", "connect"]>;
|
|
2
2
|
export declare const channelStatusEnum: import("drizzle-orm/pg-core").PgEnum<["active", "inactive", "pending", "archived"]>;
|
|
3
3
|
export declare const channelContractStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "active", "expired", "terminated"]>;
|
|
4
4
|
export declare const distributionPaymentOwnerEnum: import("drizzle-orm/pg-core").PgEnum<["operator", "channel", "split"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-shared.d.ts","sourceRoot":"","sources":["../src/schema-shared.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"schema-shared.d.ts","sourceRoot":"","sources":["../src/schema-shared.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,2HAQ1B,CAAA;AAEF,eAAO,MAAM,iBAAiB,qFAK5B,CAAA;AAEF,eAAO,MAAM,yBAAyB,oFAKpC,CAAA;AAEF,eAAO,MAAM,4BAA4B,wEAIvC,CAAA;AAEF,eAAO,MAAM,iCAAiC,wEAI5C,CAAA;AAEF,eAAO,MAAM,0BAA0B,kFAKrC,CAAA;AAEF,eAAO,MAAM,yBAAyB,+DAA6D,CAAA;AAEnG,eAAO,MAAM,wBAAwB,qFAKnC,CAAA;AAEF,eAAO,MAAM,+BAA+B,+DAG1C,CAAA;AAEF,eAAO,MAAM,gCAAgC,uFAI3C,CAAA;AAEF,eAAO,MAAM,8BAA8B,mFAMzC,CAAA;AAEF,eAAO,MAAM,+BAA+B,2FAM1C,CAAA;AAEF,eAAO,MAAM,kCAAkC,qFAK7C,CAAA;AAEF,eAAO,MAAM,kCAAkC,+IAO7C,CAAA;AAEF,eAAO,MAAM,iCAAiC,oEAI5C,CAAA;AAEF,eAAO,MAAM,yCAAyC,uEAGrD,CAAA;AAED,eAAO,MAAM,iCAAiC,qFAK5C,CAAA;AAEF,eAAO,MAAM,iCAAiC,8FAK5C,CAAA;AAEF,eAAO,MAAM,oCAAoC,gFAK/C,CAAA;AAEF,eAAO,MAAM,wCAAwC,gFAGpD,CAAA;AAED,eAAO,MAAM,8BAA8B,qEAIzC,CAAA;AAEF,eAAO,MAAM,oCAAoC,wFAK/C,CAAA;AAEF,eAAO,MAAM,mCAAmC,2EAI9C,CAAA"}
|
package/dist/schema-shared.js
CHANGED
package/dist/service.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export declare const distributionService: {
|
|
|
71
71
|
id: string;
|
|
72
72
|
name: string;
|
|
73
73
|
description: string | null;
|
|
74
|
-
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
74
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner" | "connect";
|
|
75
75
|
status: "pending" | "active" | "archived" | "inactive";
|
|
76
76
|
metadata: Record<string, unknown> | null;
|
|
77
77
|
createdAt: Date;
|
|
@@ -85,7 +85,7 @@ export declare const distributionService: {
|
|
|
85
85
|
id: string;
|
|
86
86
|
name: string;
|
|
87
87
|
description: string | null;
|
|
88
|
-
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
88
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner" | "connect";
|
|
89
89
|
status: "pending" | "active" | "archived" | "inactive";
|
|
90
90
|
metadata: Record<string, unknown> | null;
|
|
91
91
|
createdAt: Date;
|
|
@@ -95,7 +95,7 @@ export declare const distributionService: {
|
|
|
95
95
|
id: string;
|
|
96
96
|
name: string;
|
|
97
97
|
description: string | null;
|
|
98
|
-
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
98
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner" | "connect";
|
|
99
99
|
status: "pending" | "active" | "archived" | "inactive";
|
|
100
100
|
metadata: Record<string, unknown> | null;
|
|
101
101
|
createdAt: Date;
|
|
@@ -105,7 +105,7 @@ export declare const distributionService: {
|
|
|
105
105
|
id: string;
|
|
106
106
|
name: string;
|
|
107
107
|
description: string | null;
|
|
108
|
-
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner";
|
|
108
|
+
kind: "reseller" | "direct" | "affiliate" | "ota" | "marketplace" | "api_partner" | "connect";
|
|
109
109
|
status: "pending" | "active" | "archived" | "inactive";
|
|
110
110
|
metadata: Record<string, unknown> | null;
|
|
111
111
|
createdAt: Date;
|
|
@@ -212,7 +212,7 @@ export declare const distributionService: {
|
|
|
212
212
|
id: string;
|
|
213
213
|
channelId: string;
|
|
214
214
|
supplierId: string | null;
|
|
215
|
-
status: "
|
|
215
|
+
status: "active" | "draft" | "expired" | "terminated";
|
|
216
216
|
startsAt: string;
|
|
217
217
|
endsAt: string | null;
|
|
218
218
|
paymentOwner: "split" | "operator" | "channel";
|
|
@@ -230,7 +230,7 @@ export declare const distributionService: {
|
|
|
230
230
|
id: string;
|
|
231
231
|
channelId: string;
|
|
232
232
|
supplierId: string | null;
|
|
233
|
-
status: "
|
|
233
|
+
status: "active" | "draft" | "expired" | "terminated";
|
|
234
234
|
startsAt: string;
|
|
235
235
|
endsAt: string | null;
|
|
236
236
|
paymentOwner: "split" | "operator" | "channel";
|
|
@@ -244,7 +244,7 @@ export declare const distributionService: {
|
|
|
244
244
|
id: string;
|
|
245
245
|
createdAt: Date;
|
|
246
246
|
updatedAt: Date;
|
|
247
|
-
status: "
|
|
247
|
+
status: "active" | "draft" | "expired" | "terminated";
|
|
248
248
|
notes: string | null;
|
|
249
249
|
paymentOwner: "split" | "operator" | "channel";
|
|
250
250
|
supplierId: string | null;
|
|
@@ -258,7 +258,7 @@ export declare const distributionService: {
|
|
|
258
258
|
id: string;
|
|
259
259
|
channelId: string;
|
|
260
260
|
supplierId: string | null;
|
|
261
|
-
status: "
|
|
261
|
+
status: "active" | "draft" | "expired" | "terminated";
|
|
262
262
|
startsAt: string;
|
|
263
263
|
endsAt: string | null;
|
|
264
264
|
paymentOwner: "split" | "operator" | "channel";
|
package/dist/validation.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare const channelKindSchema: z.ZodEnum<{
|
|
|
6
6
|
ota: "ota";
|
|
7
7
|
marketplace: "marketplace";
|
|
8
8
|
api_partner: "api_partner";
|
|
9
|
+
connect: "connect";
|
|
9
10
|
}>;
|
|
10
11
|
export declare const channelStatusSchema: z.ZodEnum<{
|
|
11
12
|
pending: "pending";
|
|
@@ -14,8 +15,8 @@ export declare const channelStatusSchema: z.ZodEnum<{
|
|
|
14
15
|
inactive: "inactive";
|
|
15
16
|
}>;
|
|
16
17
|
export declare const channelContractStatusSchema: z.ZodEnum<{
|
|
17
|
-
draft: "draft";
|
|
18
18
|
active: "active";
|
|
19
|
+
draft: "draft";
|
|
19
20
|
expired: "expired";
|
|
20
21
|
terminated: "terminated";
|
|
21
22
|
}>;
|
|
@@ -142,6 +143,7 @@ export declare const channelCoreSchema: z.ZodObject<{
|
|
|
142
143
|
ota: "ota";
|
|
143
144
|
marketplace: "marketplace";
|
|
144
145
|
api_partner: "api_partner";
|
|
146
|
+
connect: "connect";
|
|
145
147
|
}>;
|
|
146
148
|
status: z.ZodDefault<z.ZodEnum<{
|
|
147
149
|
pending: "pending";
|
|
@@ -164,6 +166,7 @@ export declare const insertChannelSchema: z.ZodObject<{
|
|
|
164
166
|
ota: "ota";
|
|
165
167
|
marketplace: "marketplace";
|
|
166
168
|
api_partner: "api_partner";
|
|
169
|
+
connect: "connect";
|
|
167
170
|
}>;
|
|
168
171
|
status: z.ZodDefault<z.ZodEnum<{
|
|
169
172
|
pending: "pending";
|
|
@@ -186,6 +189,7 @@ export declare const updateChannelSchema: z.ZodObject<{
|
|
|
186
189
|
ota: "ota";
|
|
187
190
|
marketplace: "marketplace";
|
|
188
191
|
api_partner: "api_partner";
|
|
192
|
+
connect: "connect";
|
|
189
193
|
}>>;
|
|
190
194
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
191
195
|
pending: "pending";
|
|
@@ -208,6 +212,7 @@ export declare const channelListQuerySchema: z.ZodObject<{
|
|
|
208
212
|
ota: "ota";
|
|
209
213
|
marketplace: "marketplace";
|
|
210
214
|
api_partner: "api_partner";
|
|
215
|
+
connect: "connect";
|
|
211
216
|
}>>;
|
|
212
217
|
status: z.ZodOptional<z.ZodEnum<{
|
|
213
218
|
pending: "pending";
|
|
@@ -220,8 +225,8 @@ export declare const channelContractCoreSchema: z.ZodObject<{
|
|
|
220
225
|
channelId: z.ZodString;
|
|
221
226
|
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
222
227
|
status: z.ZodDefault<z.ZodEnum<{
|
|
223
|
-
draft: "draft";
|
|
224
228
|
active: "active";
|
|
229
|
+
draft: "draft";
|
|
225
230
|
expired: "expired";
|
|
226
231
|
terminated: "terminated";
|
|
227
232
|
}>>;
|
|
@@ -244,8 +249,8 @@ export declare const insertChannelContractSchema: z.ZodObject<{
|
|
|
244
249
|
channelId: z.ZodString;
|
|
245
250
|
supplierId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
246
251
|
status: z.ZodDefault<z.ZodEnum<{
|
|
247
|
-
draft: "draft";
|
|
248
252
|
active: "active";
|
|
253
|
+
draft: "draft";
|
|
249
254
|
expired: "expired";
|
|
250
255
|
terminated: "terminated";
|
|
251
256
|
}>>;
|
|
@@ -268,8 +273,8 @@ export declare const updateChannelContractSchema: z.ZodObject<{
|
|
|
268
273
|
channelId: z.ZodOptional<z.ZodString>;
|
|
269
274
|
supplierId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
270
275
|
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
271
|
-
draft: "draft";
|
|
272
276
|
active: "active";
|
|
277
|
+
draft: "draft";
|
|
273
278
|
expired: "expired";
|
|
274
279
|
terminated: "terminated";
|
|
275
280
|
}>>>;
|
|
@@ -294,8 +299,8 @@ export declare const channelContractListQuerySchema: z.ZodObject<{
|
|
|
294
299
|
channelId: z.ZodOptional<z.ZodString>;
|
|
295
300
|
supplierId: z.ZodOptional<z.ZodString>;
|
|
296
301
|
status: z.ZodOptional<z.ZodEnum<{
|
|
297
|
-
draft: "draft";
|
|
298
302
|
active: "active";
|
|
303
|
+
draft: "draft";
|
|
299
304
|
expired: "expired";
|
|
300
305
|
terminated: "terminated";
|
|
301
306
|
}>>;
|
package/dist/validation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAUvB,eAAO,MAAM,iBAAiB
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AACF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;iBAAmC,CAAA;AAClF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;iBAA6C,CAAA;AAC5F,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;iBAIhD,CAAA;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;iBAW/C,CAAA;AACF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;iBAAuC,CAAA;AAC1F,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;iBAAiD,CAAA;AACpG,eAAO,MAAM,yCAAyC;;;;;;;;;;;;iBAKpD,CAAA;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;iBAO9C,CAAA;AACF,eAAO,MAAM,qCAAqC;;;;;;;;;;;iBAAsC,CAAA;AACxF,eAAO,MAAM,qCAAqC;;;;;;;;;;;iBAAgD,CAAA;AAClG,eAAO,MAAM,wCAAwC;;;;;;;;;iBAGnD,CAAA"}
|
package/dist/validation.js
CHANGED
|
@@ -13,6 +13,7 @@ export const channelKindSchema = z.enum([
|
|
|
13
13
|
"reseller",
|
|
14
14
|
"marketplace",
|
|
15
15
|
"api_partner",
|
|
16
|
+
"connect",
|
|
16
17
|
]);
|
|
17
18
|
export const channelStatusSchema = z.enum(["active", "inactive", "pending", "archived"]);
|
|
18
19
|
export const channelContractStatusSchema = z.enum(["draft", "active", "expired", "terminated"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/distribution",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"license": "FSL-1.1-Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"drizzle-orm": "^0.45.2",
|
|
30
30
|
"hono": "^4.12.10",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@voyantjs/availability": "0.
|
|
33
|
-
"@voyantjs/core": "0.
|
|
34
|
-
"@voyantjs/db": "0.
|
|
35
|
-
"@voyantjs/hono": "0.
|
|
36
|
-
"@voyantjs/identity": "0.
|
|
37
|
-
"@voyantjs/products": "0.
|
|
38
|
-
"@voyantjs/suppliers": "0.
|
|
32
|
+
"@voyantjs/availability": "0.11.0",
|
|
33
|
+
"@voyantjs/core": "0.11.0",
|
|
34
|
+
"@voyantjs/db": "0.11.0",
|
|
35
|
+
"@voyantjs/hono": "0.11.0",
|
|
36
|
+
"@voyantjs/identity": "0.11.0",
|
|
37
|
+
"@voyantjs/products": "0.11.0",
|
|
38
|
+
"@voyantjs/suppliers": "0.11.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"typescript": "^6.0.2",
|