@livdot-tech/contracts 1.0.0 → 1.1.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/auth/index.d.mts +225 -0
- package/dist/auth/index.d.ts +225 -0
- package/dist/auth/index.js +2 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/index.mjs +2 -0
- package/dist/auth/index.mjs.map +1 -0
- package/dist/booking/index.d.mts +294 -0
- package/dist/booking/index.d.ts +294 -0
- package/dist/booking/index.js +2 -0
- package/dist/booking/index.js.map +1 -0
- package/dist/booking/index.mjs +2 -0
- package/dist/booking/index.mjs.map +1 -0
- package/dist/chunk-3CP6L2MG.js +2 -0
- package/dist/chunk-3CP6L2MG.js.map +1 -0
- package/dist/chunk-4FNHHHYR.mjs +2 -0
- package/dist/chunk-4FNHHHYR.mjs.map +1 -0
- package/dist/chunk-6G6C3SHC.js +2 -0
- package/dist/chunk-6G6C3SHC.js.map +1 -0
- package/dist/chunk-6UTUVCOM.mjs +2 -0
- package/dist/chunk-6UTUVCOM.mjs.map +1 -0
- package/dist/chunk-726BT6I5.js +2 -0
- package/dist/chunk-726BT6I5.js.map +1 -0
- package/dist/chunk-CLWT3LEH.mjs +2 -0
- package/dist/chunk-CLWT3LEH.mjs.map +1 -0
- package/dist/chunk-F663RS3D.js +2 -0
- package/dist/chunk-F663RS3D.js.map +1 -0
- package/dist/chunk-FSQX27QM.mjs +2 -0
- package/dist/chunk-FSQX27QM.mjs.map +1 -0
- package/dist/chunk-I75WHCI2.js +2 -0
- package/dist/chunk-I75WHCI2.js.map +1 -0
- package/dist/chunk-JT7SH43N.js +2 -0
- package/dist/chunk-JT7SH43N.js.map +1 -0
- package/dist/chunk-MRGEHWW3.js +2 -0
- package/dist/chunk-MRGEHWW3.js.map +1 -0
- package/dist/chunk-OGZ42P7K.js +2 -0
- package/dist/chunk-OGZ42P7K.js.map +1 -0
- package/dist/chunk-PQC527QJ.mjs +2 -0
- package/dist/chunk-PQC527QJ.mjs.map +1 -0
- package/dist/chunk-Q3PSIS6S.mjs +2 -0
- package/dist/chunk-Q3PSIS6S.mjs.map +1 -0
- package/dist/chunk-Q4VUDG2H.js +2 -0
- package/dist/chunk-Q4VUDG2H.js.map +1 -0
- package/dist/chunk-QBA77JOP.mjs +2 -0
- package/dist/chunk-QBA77JOP.mjs.map +1 -0
- package/dist/chunk-SHD2H6WD.mjs +2 -0
- package/dist/chunk-SHD2H6WD.mjs.map +1 -0
- package/dist/chunk-SILY3VKG.js +2 -0
- package/dist/chunk-SILY3VKG.js.map +1 -0
- package/dist/chunk-TTDRYA7J.mjs +2 -0
- package/dist/chunk-TTDRYA7J.mjs.map +1 -0
- package/dist/chunk-WEET4HBJ.mjs +2 -0
- package/dist/chunk-WEET4HBJ.mjs.map +1 -0
- package/dist/common/index.d.mts +315 -0
- package/dist/common/index.d.ts +315 -0
- package/dist/common/index.js +2 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/index.mjs +2 -0
- package/dist/common/index.mjs.map +1 -0
- package/dist/dispute/index.d.mts +79 -0
- package/dist/dispute/index.d.ts +79 -0
- package/dist/dispute/index.js +2 -0
- package/dist/dispute/index.js.map +1 -0
- package/dist/dispute/index.mjs +2 -0
- package/dist/dispute/index.mjs.map +1 -0
- package/dist/errors/index.d.mts +67 -0
- package/dist/errors/index.d.ts +67 -0
- package/dist/errors/index.js +2 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/index.mjs +2 -0
- package/dist/errors/index.mjs.map +1 -0
- package/dist/event/index.d.mts +270 -0
- package/dist/event/index.d.ts +270 -0
- package/dist/event/index.js +2 -0
- package/dist/event/index.js.map +1 -0
- package/dist/event/index.mjs +2 -0
- package/dist/event/index.mjs.map +1 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/notification/index.d.mts +113 -0
- package/dist/notification/index.d.ts +113 -0
- package/dist/notification/index.js +2 -0
- package/dist/notification/index.js.map +1 -0
- package/dist/notification/index.mjs +2 -0
- package/dist/notification/index.mjs.map +1 -0
- package/dist/payment/index.d.mts +119 -0
- package/dist/payment/index.d.ts +119 -0
- package/dist/payment/index.js +2 -0
- package/dist/payment/index.js.map +1 -0
- package/dist/payment/index.mjs +2 -0
- package/dist/payment/index.mjs.map +1 -0
- package/dist/streaming/index.d.mts +79 -0
- package/dist/streaming/index.d.ts +79 -0
- package/dist/streaming/index.js +2 -0
- package/dist/streaming/index.js.map +1 -0
- package/dist/streaming/index.mjs +2 -0
- package/dist/streaming/index.mjs.map +1 -0
- package/dist/user/index.d.mts +236 -0
- package/dist/user/index.d.ts +236 -0
- package/dist/user/index.js +2 -0
- package/dist/user/index.js.map +1 -0
- package/dist/user/index.mjs +2 -0
- package/dist/user/index.mjs.map +1 -0
- package/package.json +27 -5
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const UserRole: {
|
|
4
|
+
readonly HOST: 1;
|
|
5
|
+
readonly PRODUCER: 2;
|
|
6
|
+
readonly VIEWER: 4;
|
|
7
|
+
readonly ADMIN: 8;
|
|
8
|
+
};
|
|
9
|
+
type UserRole = (typeof UserRole)[keyof typeof UserRole];
|
|
10
|
+
declare const AccountStatus: {
|
|
11
|
+
readonly ACTIVE: "active";
|
|
12
|
+
readonly SUSPENDED: "suspended";
|
|
13
|
+
readonly DEACTIVATED: "deactivated";
|
|
14
|
+
};
|
|
15
|
+
type AccountStatus = (typeof AccountStatus)[keyof typeof AccountStatus];
|
|
16
|
+
declare const KycStatus: {
|
|
17
|
+
readonly PENDING: "pending";
|
|
18
|
+
readonly SUBMITTED: "submitted";
|
|
19
|
+
readonly VERIFIED: "verified";
|
|
20
|
+
readonly REJECTED: "rejected";
|
|
21
|
+
};
|
|
22
|
+
type KycStatus = (typeof KycStatus)[keyof typeof KycStatus];
|
|
23
|
+
declare const ProducerVerificationStatus: {
|
|
24
|
+
readonly PENDING: "pending";
|
|
25
|
+
readonly VERIFIED: "verified";
|
|
26
|
+
readonly REJECTED: "rejected";
|
|
27
|
+
};
|
|
28
|
+
type ProducerVerificationStatus = (typeof ProducerVerificationStatus)[keyof typeof ProducerVerificationStatus];
|
|
29
|
+
|
|
30
|
+
declare const UserResponseSchema: z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
email: z.ZodString;
|
|
33
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
34
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
35
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
36
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
37
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
38
|
+
roles: z.ZodNativeEnum<{
|
|
39
|
+
readonly HOST: 1;
|
|
40
|
+
readonly PRODUCER: 2;
|
|
41
|
+
readonly VIEWER: 4;
|
|
42
|
+
readonly ADMIN: 8;
|
|
43
|
+
}>;
|
|
44
|
+
accountStatus: z.ZodNativeEnum<{
|
|
45
|
+
readonly ACTIVE: "active";
|
|
46
|
+
readonly SUSPENDED: "suspended";
|
|
47
|
+
readonly DEACTIVATED: "deactivated";
|
|
48
|
+
}>;
|
|
49
|
+
kycStatus: z.ZodNativeEnum<{
|
|
50
|
+
readonly PENDING: "pending";
|
|
51
|
+
readonly SUBMITTED: "submitted";
|
|
52
|
+
readonly VERIFIED: "verified";
|
|
53
|
+
readonly REJECTED: "rejected";
|
|
54
|
+
}>;
|
|
55
|
+
paystackSubaccountCode: z.ZodOptional<z.ZodString>;
|
|
56
|
+
createdAt: z.ZodString;
|
|
57
|
+
updatedAt: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
id: string;
|
|
60
|
+
email: string;
|
|
61
|
+
roles: 1 | 2 | 4 | 8;
|
|
62
|
+
accountStatus: "active" | "suspended" | "deactivated";
|
|
63
|
+
kycStatus: "pending" | "submitted" | "verified" | "rejected";
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
phoneNumber?: string | undefined;
|
|
67
|
+
firstName?: string | undefined;
|
|
68
|
+
lastName?: string | undefined;
|
|
69
|
+
displayName?: string | undefined;
|
|
70
|
+
avatarUrl?: string | undefined;
|
|
71
|
+
paystackSubaccountCode?: string | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
id: string;
|
|
74
|
+
email: string;
|
|
75
|
+
roles: 1 | 2 | 4 | 8;
|
|
76
|
+
accountStatus: "active" | "suspended" | "deactivated";
|
|
77
|
+
kycStatus: "pending" | "submitted" | "verified" | "rejected";
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
|
+
phoneNumber?: string | undefined;
|
|
81
|
+
firstName?: string | undefined;
|
|
82
|
+
lastName?: string | undefined;
|
|
83
|
+
displayName?: string | undefined;
|
|
84
|
+
avatarUrl?: string | undefined;
|
|
85
|
+
paystackSubaccountCode?: string | undefined;
|
|
86
|
+
}>;
|
|
87
|
+
declare const UpdateUserRequestSchema: z.ZodObject<{
|
|
88
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
89
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
90
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
91
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
92
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
phoneNumber?: string | undefined;
|
|
95
|
+
firstName?: string | undefined;
|
|
96
|
+
lastName?: string | undefined;
|
|
97
|
+
displayName?: string | undefined;
|
|
98
|
+
avatarUrl?: string | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
phoneNumber?: string | undefined;
|
|
101
|
+
firstName?: string | undefined;
|
|
102
|
+
lastName?: string | undefined;
|
|
103
|
+
displayName?: string | undefined;
|
|
104
|
+
avatarUrl?: string | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
declare const CreateHostProfileRequestSchema: z.ZodObject<{
|
|
107
|
+
businessName: z.ZodOptional<z.ZodString>;
|
|
108
|
+
businessRegNumber: z.ZodOptional<z.ZodString>;
|
|
109
|
+
taxId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
defaultCurrency: z.ZodDefault<z.ZodString>;
|
|
111
|
+
settlementBankCode: z.ZodOptional<z.ZodString>;
|
|
112
|
+
settlementAccountNumber: z.ZodOptional<z.ZodString>;
|
|
113
|
+
settlementAccountName: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
defaultCurrency: string;
|
|
116
|
+
businessName?: string | undefined;
|
|
117
|
+
businessRegNumber?: string | undefined;
|
|
118
|
+
taxId?: string | undefined;
|
|
119
|
+
settlementBankCode?: string | undefined;
|
|
120
|
+
settlementAccountNumber?: string | undefined;
|
|
121
|
+
settlementAccountName?: string | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
businessName?: string | undefined;
|
|
124
|
+
businessRegNumber?: string | undefined;
|
|
125
|
+
taxId?: string | undefined;
|
|
126
|
+
defaultCurrency?: string | undefined;
|
|
127
|
+
settlementBankCode?: string | undefined;
|
|
128
|
+
settlementAccountNumber?: string | undefined;
|
|
129
|
+
settlementAccountName?: string | undefined;
|
|
130
|
+
}>;
|
|
131
|
+
declare const HostProfileResponseSchema: z.ZodObject<{
|
|
132
|
+
id: z.ZodString;
|
|
133
|
+
userId: z.ZodString;
|
|
134
|
+
businessName: z.ZodString;
|
|
135
|
+
totalEvents: z.ZodNumber;
|
|
136
|
+
totalSpent: z.ZodNumber;
|
|
137
|
+
averageRating: z.ZodNumber;
|
|
138
|
+
createdAt: z.ZodString;
|
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
|
140
|
+
id: string;
|
|
141
|
+
createdAt: string;
|
|
142
|
+
businessName: string;
|
|
143
|
+
userId: string;
|
|
144
|
+
totalEvents: number;
|
|
145
|
+
totalSpent: number;
|
|
146
|
+
averageRating: number;
|
|
147
|
+
}, {
|
|
148
|
+
id: string;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
businessName: string;
|
|
151
|
+
userId: string;
|
|
152
|
+
totalEvents: number;
|
|
153
|
+
totalSpent: number;
|
|
154
|
+
averageRating: number;
|
|
155
|
+
}>;
|
|
156
|
+
declare const CreateProducerProfileRequestSchema: z.ZodObject<{
|
|
157
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
158
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
159
|
+
yearsExperience: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
equipmentManifest: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
|
|
161
|
+
rateCard: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
162
|
+
serviceAreas: z.ZodArray<z.ZodString, "many">;
|
|
163
|
+
maxDistanceKm: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
equipmentManifest: Record<string, any>[];
|
|
166
|
+
serviceAreas: string[];
|
|
167
|
+
companyName?: string | undefined;
|
|
168
|
+
bio?: string | undefined;
|
|
169
|
+
yearsExperience?: number | undefined;
|
|
170
|
+
rateCard?: Record<string, any> | undefined;
|
|
171
|
+
maxDistanceKm?: number | undefined;
|
|
172
|
+
}, {
|
|
173
|
+
equipmentManifest: Record<string, any>[];
|
|
174
|
+
serviceAreas: string[];
|
|
175
|
+
companyName?: string | undefined;
|
|
176
|
+
bio?: string | undefined;
|
|
177
|
+
yearsExperience?: number | undefined;
|
|
178
|
+
rateCard?: Record<string, any> | undefined;
|
|
179
|
+
maxDistanceKm?: number | undefined;
|
|
180
|
+
}>;
|
|
181
|
+
declare const ProducerProfileResponseSchema: z.ZodObject<{
|
|
182
|
+
id: z.ZodString;
|
|
183
|
+
userId: z.ZodString;
|
|
184
|
+
companyName: z.ZodOptional<z.ZodString>;
|
|
185
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
186
|
+
yearsExperience: z.ZodOptional<z.ZodNumber>;
|
|
187
|
+
equipmentManifest: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
|
|
188
|
+
serviceAreas: z.ZodArray<z.ZodString, "many">;
|
|
189
|
+
verificationStatus: z.ZodNativeEnum<{
|
|
190
|
+
readonly PENDING: "pending";
|
|
191
|
+
readonly VERIFIED: "verified";
|
|
192
|
+
readonly REJECTED: "rejected";
|
|
193
|
+
}>;
|
|
194
|
+
averageRating: z.ZodNumber;
|
|
195
|
+
totalReviews: z.ZodNumber;
|
|
196
|
+
completionRate: z.ZodNumber;
|
|
197
|
+
isAvailable: z.ZodBoolean;
|
|
198
|
+
createdAt: z.ZodString;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
id: string;
|
|
201
|
+
createdAt: string;
|
|
202
|
+
userId: string;
|
|
203
|
+
averageRating: number;
|
|
204
|
+
equipmentManifest: Record<string, any>[];
|
|
205
|
+
serviceAreas: string[];
|
|
206
|
+
verificationStatus: "pending" | "verified" | "rejected";
|
|
207
|
+
totalReviews: number;
|
|
208
|
+
completionRate: number;
|
|
209
|
+
isAvailable: boolean;
|
|
210
|
+
companyName?: string | undefined;
|
|
211
|
+
bio?: string | undefined;
|
|
212
|
+
yearsExperience?: number | undefined;
|
|
213
|
+
}, {
|
|
214
|
+
id: string;
|
|
215
|
+
createdAt: string;
|
|
216
|
+
userId: string;
|
|
217
|
+
averageRating: number;
|
|
218
|
+
equipmentManifest: Record<string, any>[];
|
|
219
|
+
serviceAreas: string[];
|
|
220
|
+
verificationStatus: "pending" | "verified" | "rejected";
|
|
221
|
+
totalReviews: number;
|
|
222
|
+
completionRate: number;
|
|
223
|
+
isAvailable: boolean;
|
|
224
|
+
companyName?: string | undefined;
|
|
225
|
+
bio?: string | undefined;
|
|
226
|
+
yearsExperience?: number | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
|
|
229
|
+
type UserResponse = z.infer<typeof UserResponseSchema>;
|
|
230
|
+
type UpdateUserRequest = z.infer<typeof UpdateUserRequestSchema>;
|
|
231
|
+
type CreateHostProfileRequest = z.infer<typeof CreateHostProfileRequestSchema>;
|
|
232
|
+
type HostProfileResponse = z.infer<typeof HostProfileResponseSchema>;
|
|
233
|
+
type CreateProducerProfileRequest = z.infer<typeof CreateProducerProfileRequestSchema>;
|
|
234
|
+
type ProducerProfileResponse = z.infer<typeof ProducerProfileResponseSchema>;
|
|
235
|
+
|
|
236
|
+
export { AccountStatus, type CreateHostProfileRequest, CreateHostProfileRequestSchema, type CreateProducerProfileRequest, CreateProducerProfileRequestSchema, type HostProfileResponse, HostProfileResponseSchema, KycStatus, type ProducerProfileResponse, ProducerProfileResponseSchema, ProducerVerificationStatus, type UpdateUserRequest, UpdateUserRequestSchema, type UserResponse, UserResponseSchema, UserRole };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkI75WHCI2_js=require('../chunk-I75WHCI2.js');Object.defineProperty(exports,"AccountStatus",{enumerable:true,get:function(){return chunkI75WHCI2_js.b}});Object.defineProperty(exports,"CreateHostProfileRequestSchema",{enumerable:true,get:function(){return chunkI75WHCI2_js.g}});Object.defineProperty(exports,"CreateProducerProfileRequestSchema",{enumerable:true,get:function(){return chunkI75WHCI2_js.i}});Object.defineProperty(exports,"HostProfileResponseSchema",{enumerable:true,get:function(){return chunkI75WHCI2_js.h}});Object.defineProperty(exports,"KycStatus",{enumerable:true,get:function(){return chunkI75WHCI2_js.c}});Object.defineProperty(exports,"ProducerProfileResponseSchema",{enumerable:true,get:function(){return chunkI75WHCI2_js.j}});Object.defineProperty(exports,"ProducerVerificationStatus",{enumerable:true,get:function(){return chunkI75WHCI2_js.d}});Object.defineProperty(exports,"UpdateUserRequestSchema",{enumerable:true,get:function(){return chunkI75WHCI2_js.f}});Object.defineProperty(exports,"UserResponseSchema",{enumerable:true,get:function(){return chunkI75WHCI2_js.e}});Object.defineProperty(exports,"UserRole",{enumerable:true,get:function(){return chunkI75WHCI2_js.a}});//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{b as AccountStatus,g as CreateHostProfileRequestSchema,i as CreateProducerProfileRequestSchema,h as HostProfileResponseSchema,c as KycStatus,j as ProducerProfileResponseSchema,d as ProducerVerificationStatus,f as UpdateUserRequestSchema,e as UserResponseSchema,a as UserRole}from'../chunk-PQC527QJ.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livdot-tech/contracts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Shared API contracts for the LivDot platform",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -17,12 +17,23 @@
|
|
|
17
17
|
"require": "./dist/*/index.js"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/LivDotTech/shared-schemas"
|
|
23
|
+
},
|
|
20
24
|
"publishConfig": {
|
|
21
|
-
"access": "public"
|
|
25
|
+
"access": "public",
|
|
26
|
+
"provenance": false
|
|
22
27
|
},
|
|
23
28
|
"files": [
|
|
24
29
|
"dist"
|
|
25
30
|
],
|
|
31
|
+
"lint-staged": {
|
|
32
|
+
"*.ts": [
|
|
33
|
+
"prettier --write",
|
|
34
|
+
"eslint --fix --max-warnings=0"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
26
37
|
"scripts": {
|
|
27
38
|
"build": "tsup",
|
|
28
39
|
"dev": "tsup --watch",
|
|
@@ -34,26 +45,37 @@
|
|
|
34
45
|
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
35
46
|
"typecheck": "tsc --noEmit",
|
|
36
47
|
"docs": "typedoc --out docs/api",
|
|
37
|
-
"release": "standard-version"
|
|
48
|
+
"release": "standard-version",
|
|
49
|
+
"prepare": "husky",
|
|
50
|
+
"prepublishOnly": "npm run build && npm test"
|
|
38
51
|
},
|
|
39
52
|
"dependencies": {
|
|
40
53
|
"zod": "^3.22.4"
|
|
41
54
|
},
|
|
42
55
|
"devDependencies": {
|
|
56
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
57
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
58
|
+
"@semantic-release/git": "^10.0.1",
|
|
59
|
+
"@semantic-release/github": "^12.0.6",
|
|
60
|
+
"@semantic-release/npm": "^13.1.5",
|
|
61
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
43
62
|
"@types/jest": "^29.5.12",
|
|
44
63
|
"@types/node": "^20.11.24",
|
|
45
64
|
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
46
65
|
"@typescript-eslint/parser": "^8.59.0",
|
|
66
|
+
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
47
67
|
"eslint": "^8.57.1",
|
|
48
68
|
"eslint-config-prettier": "^10.1.8",
|
|
49
69
|
"eslint-plugin-prettier": "^5.5.5",
|
|
70
|
+
"husky": "^9.1.7",
|
|
50
71
|
"jest": "^29.7.0",
|
|
51
72
|
"jest-environment-node": "^29.7.0",
|
|
73
|
+
"lint-staged": "^16.4.0",
|
|
52
74
|
"prettier": "^3.2.5",
|
|
53
|
-
"
|
|
75
|
+
"semantic-release": "^25.0.3",
|
|
54
76
|
"ts-jest": "^29.1.2",
|
|
55
77
|
"tsup": "^8.0.2",
|
|
56
78
|
"typedoc": "^0.25.10",
|
|
57
79
|
"typescript": "^5.3.3"
|
|
58
80
|
}
|
|
59
|
-
}
|
|
81
|
+
}
|