@livdot-tech/contracts 1.3.0 → 1.3.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/auth/index.d.mts +30 -132
- package/dist/auth/index.d.ts +30 -132
- package/dist/auth/index.js +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/booking/index.d.mts +35 -183
- package/dist/booking/index.d.ts +35 -183
- package/dist/booking/index.js +1 -1
- package/dist/booking/index.mjs +1 -1
- package/dist/chunk-24RINR6F.mjs +2 -0
- package/dist/chunk-24RINR6F.mjs.map +1 -0
- package/dist/chunk-4YYJEPT6.js +2 -0
- package/dist/chunk-4YYJEPT6.js.map +1 -0
- package/dist/chunk-C7FWAE4X.js +2 -0
- package/dist/chunk-C7FWAE4X.js.map +1 -0
- package/dist/chunk-CWGSFDFC.mjs +2 -0
- package/dist/chunk-CWGSFDFC.mjs.map +1 -0
- package/dist/chunk-DAQYQHNR.js +2 -0
- package/dist/chunk-DAQYQHNR.js.map +1 -0
- package/dist/chunk-DKCDBAZM.js +2 -0
- package/dist/chunk-DKCDBAZM.js.map +1 -0
- package/dist/chunk-FE3AMYQL.mjs +2 -0
- package/dist/chunk-FE3AMYQL.mjs.map +1 -0
- package/dist/chunk-GKYB3J5L.js +2 -0
- package/dist/chunk-GKYB3J5L.js.map +1 -0
- package/dist/chunk-MIIRC5BK.mjs +2 -0
- package/dist/chunk-MIIRC5BK.mjs.map +1 -0
- package/dist/chunk-MTV3P67L.js +2 -0
- package/dist/chunk-MTV3P67L.js.map +1 -0
- package/dist/chunk-QWCVJYX2.mjs +2 -0
- package/dist/chunk-QWCVJYX2.mjs.map +1 -0
- package/dist/chunk-SA4F4CDG.mjs +2 -0
- package/dist/chunk-SA4F4CDG.mjs.map +1 -0
- package/dist/chunk-SOOB6WM6.mjs +2 -0
- package/dist/chunk-SOOB6WM6.mjs.map +1 -0
- package/dist/chunk-T4UIJFC3.mjs +2 -0
- package/dist/chunk-T4UIJFC3.mjs.map +1 -0
- package/dist/chunk-VPAZHULG.js +2 -0
- package/dist/chunk-VPAZHULG.js.map +1 -0
- package/dist/chunk-ZOBM5OSW.js +2 -0
- package/dist/chunk-ZOBM5OSW.js.map +1 -0
- package/dist/chunk-ZWKP6KMZ.js +2 -0
- package/dist/chunk-ZWKP6KMZ.js.map +1 -0
- package/dist/chunk-ZWWSPLKF.mjs +2 -0
- package/dist/chunk-ZWWSPLKF.mjs.map +1 -0
- package/dist/common/index.d.mts +6 -214
- package/dist/common/index.d.ts +6 -214
- package/dist/common/index.js +1 -1
- package/dist/common/index.mjs +1 -1
- package/dist/dispute/index.d.mts +12 -42
- package/dist/dispute/index.d.ts +12 -42
- package/dist/dispute/index.js +1 -1
- package/dist/dispute/index.mjs +1 -1
- package/dist/event/index.d.mts +31 -147
- package/dist/event/index.d.ts +31 -147
- package/dist/event/index.js +1 -1
- package/dist/event/index.mjs +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/notification/index.d.mts +11 -41
- package/dist/notification/index.d.ts +11 -41
- package/dist/notification/index.js +1 -1
- package/dist/notification/index.mjs +1 -1
- package/dist/payment/index.d.mts +15 -67
- package/dist/payment/index.d.ts +15 -67
- package/dist/payment/index.js +1 -1
- package/dist/payment/index.mjs +1 -1
- package/dist/streaming/index.d.mts +8 -42
- package/dist/streaming/index.d.ts +8 -42
- package/dist/streaming/index.js +1 -1
- package/dist/streaming/index.mjs +1 -1
- package/dist/user/index.d.mts +184 -304
- package/dist/user/index.d.ts +184 -304
- package/dist/user/index.js +1 -1
- package/dist/user/index.mjs +1 -1
- package/package.json +6 -5
- package/dist/chunk-6GDUDLP2.js +0 -2
- package/dist/chunk-6GDUDLP2.js.map +0 -1
- package/dist/chunk-6UTUVCOM.mjs +0 -2
- package/dist/chunk-6UTUVCOM.mjs.map +0 -1
- package/dist/chunk-6ZN2TPBZ.js +0 -2
- package/dist/chunk-6ZN2TPBZ.js.map +0 -1
- package/dist/chunk-726BT6I5.js +0 -2
- package/dist/chunk-726BT6I5.js.map +0 -1
- package/dist/chunk-C2QIE2HZ.js +0 -2
- package/dist/chunk-C2QIE2HZ.js.map +0 -1
- package/dist/chunk-CIV62KPR.mjs +0 -2
- package/dist/chunk-CIV62KPR.mjs.map +0 -1
- package/dist/chunk-DF4E66H2.mjs +0 -2
- package/dist/chunk-DF4E66H2.mjs.map +0 -1
- package/dist/chunk-F663RS3D.js +0 -2
- package/dist/chunk-F663RS3D.js.map +0 -1
- package/dist/chunk-GY7PCU2T.js +0 -2
- package/dist/chunk-GY7PCU2T.js.map +0 -1
- package/dist/chunk-HI6UMYA4.mjs +0 -2
- package/dist/chunk-HI6UMYA4.mjs.map +0 -1
- package/dist/chunk-IJ2PAFAX.js +0 -2
- package/dist/chunk-IJ2PAFAX.js.map +0 -1
- package/dist/chunk-NSBUBEZK.mjs +0 -2
- package/dist/chunk-NSBUBEZK.mjs.map +0 -1
- package/dist/chunk-PHGWWUP2.mjs +0 -2
- package/dist/chunk-PHGWWUP2.mjs.map +0 -1
- package/dist/chunk-T7C4AYVD.mjs +0 -2
- package/dist/chunk-T7C4AYVD.mjs.map +0 -1
- package/dist/chunk-UDHBQDRU.js +0 -2
- package/dist/chunk-UDHBQDRU.js.map +0 -1
- package/dist/chunk-WCT4N7NS.mjs +0 -2
- package/dist/chunk-WCT4N7NS.mjs.map +0 -1
- package/dist/chunk-WEET4HBJ.mjs +0 -2
- package/dist/chunk-WEET4HBJ.mjs.map +0 -1
- package/dist/chunk-ZFINSMCH.js +0 -2
- package/dist/chunk-ZFINSMCH.js.map +0 -1
package/dist/user/index.d.ts
CHANGED
|
@@ -38,62 +38,72 @@ declare const ProducerVerificationStatus: {
|
|
|
38
38
|
readonly SUSPENDED: "SUSPENDED";
|
|
39
39
|
};
|
|
40
40
|
type ProducerVerificationStatus = (typeof ProducerVerificationStatus)[keyof typeof ProducerVerificationStatus];
|
|
41
|
+
declare const ProducerExperienceLevel: {
|
|
42
|
+
readonly BEGINNER: "BEGINNER";
|
|
43
|
+
readonly INTERMEDIATE: "INTERMEDIATE";
|
|
44
|
+
readonly EXPERT: "EXPERT";
|
|
45
|
+
};
|
|
46
|
+
type ProducerExperienceLevel = (typeof ProducerExperienceLevel)[keyof typeof ProducerExperienceLevel];
|
|
41
47
|
|
|
42
48
|
declare const HostProfileResponseSchema: z.ZodObject<{
|
|
43
|
-
id: z.
|
|
44
|
-
userId: z.
|
|
49
|
+
id: z.ZodUUID;
|
|
50
|
+
userId: z.ZodUUID;
|
|
45
51
|
businessName: z.ZodString;
|
|
46
52
|
totalEvents: z.ZodNumber;
|
|
47
53
|
totalSpent: z.ZodNumber;
|
|
48
54
|
averageRating: z.ZodNumber;
|
|
49
55
|
defaultCurrency: z.ZodString;
|
|
56
|
+
description: z.ZodOptional<z.ZodString>;
|
|
57
|
+
category: z.ZodArray<z.ZodEnum<{
|
|
58
|
+
readonly ART: "ART";
|
|
59
|
+
readonly TECHNOLOGY: "TECHNOLOGY";
|
|
60
|
+
readonly SCIENCE: "SCIENCE";
|
|
61
|
+
readonly TRAVEL: "TRAVEL";
|
|
62
|
+
readonly HISTORY: "HISTORY";
|
|
63
|
+
readonly LITERATURE: "LITERATURE";
|
|
64
|
+
readonly COOKING: "COOKING";
|
|
65
|
+
readonly FITNESS: "FITNESS";
|
|
66
|
+
readonly PHOTOGRAPHY: "PHOTOGRAPHY";
|
|
67
|
+
readonly GARDENING: "GARDENING";
|
|
68
|
+
readonly EDUCATION: "EDUCATION";
|
|
69
|
+
readonly FASHION: "FASHION";
|
|
70
|
+
readonly MOVIES: "MOVIES";
|
|
71
|
+
readonly SPORTS: "SPORTS";
|
|
72
|
+
readonly POLITICS: "POLITICS";
|
|
73
|
+
readonly HEALTH: "HEALTH";
|
|
74
|
+
readonly GAMING: "GAMING";
|
|
75
|
+
readonly FINANCE: "FINANCE";
|
|
76
|
+
readonly NATURE: "NATURE";
|
|
77
|
+
readonly CONCERT: "CONCERT";
|
|
78
|
+
readonly FESTIVAL: "FESTIVAL";
|
|
79
|
+
readonly WEDDING: "WEDDING";
|
|
80
|
+
readonly CORPORATE: "CORPORATE";
|
|
81
|
+
readonly RELIGIOUS: "RELIGIOUS";
|
|
82
|
+
readonly OTHER: "OTHER";
|
|
83
|
+
}>>;
|
|
84
|
+
logoUrl: z.ZodOptional<z.ZodURL>;
|
|
50
85
|
businessRegNumber: z.ZodOptional<z.ZodString>;
|
|
51
86
|
taxId: z.ZodOptional<z.ZodString>;
|
|
52
87
|
settlementBankCode: z.ZodOptional<z.ZodString>;
|
|
53
88
|
settlementAccountNumber: z.ZodOptional<z.ZodString>;
|
|
54
89
|
settlementAccountName: z.ZodOptional<z.ZodString>;
|
|
55
90
|
paystackSubaccountCode: z.ZodOptional<z.ZodString>;
|
|
56
|
-
createdAt: z.
|
|
57
|
-
},
|
|
58
|
-
id: string;
|
|
59
|
-
userId: string;
|
|
60
|
-
businessName: string;
|
|
61
|
-
totalEvents: number;
|
|
62
|
-
totalSpent: number;
|
|
63
|
-
averageRating: number;
|
|
64
|
-
defaultCurrency: string;
|
|
65
|
-
createdAt: string;
|
|
66
|
-
businessRegNumber?: string | undefined;
|
|
67
|
-
taxId?: string | undefined;
|
|
68
|
-
settlementBankCode?: string | undefined;
|
|
69
|
-
settlementAccountNumber?: string | undefined;
|
|
70
|
-
settlementAccountName?: string | undefined;
|
|
71
|
-
paystackSubaccountCode?: string | undefined;
|
|
72
|
-
}, {
|
|
73
|
-
id: string;
|
|
74
|
-
userId: string;
|
|
75
|
-
businessName: string;
|
|
76
|
-
totalEvents: number;
|
|
77
|
-
totalSpent: number;
|
|
78
|
-
averageRating: number;
|
|
79
|
-
defaultCurrency: string;
|
|
80
|
-
createdAt: string;
|
|
81
|
-
businessRegNumber?: string | undefined;
|
|
82
|
-
taxId?: string | undefined;
|
|
83
|
-
settlementBankCode?: string | undefined;
|
|
84
|
-
settlementAccountNumber?: string | undefined;
|
|
85
|
-
settlementAccountName?: string | undefined;
|
|
86
|
-
paystackSubaccountCode?: string | undefined;
|
|
87
|
-
}>;
|
|
91
|
+
createdAt: z.ZodISODateTime;
|
|
92
|
+
}, z.core.$strip>;
|
|
88
93
|
declare const ProducerProfileResponseSchema: z.ZodObject<{
|
|
89
|
-
id: z.
|
|
90
|
-
userId: z.
|
|
91
|
-
companyName: z.
|
|
92
|
-
bio: z.
|
|
94
|
+
id: z.ZodUUID;
|
|
95
|
+
userId: z.ZodUUID;
|
|
96
|
+
companyName: z.ZodString;
|
|
97
|
+
bio: z.ZodString;
|
|
93
98
|
yearsExperience: z.ZodOptional<z.ZodNumber>;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
99
|
+
experienceLevel: z.ZodEnum<{
|
|
100
|
+
readonly BEGINNER: "BEGINNER";
|
|
101
|
+
readonly INTERMEDIATE: "INTERMEDIATE";
|
|
102
|
+
readonly EXPERT: "EXPERT";
|
|
103
|
+
}>;
|
|
104
|
+
equipmentManifest: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
105
|
+
serviceAreas: z.ZodArray<z.ZodString>;
|
|
106
|
+
verificationStatus: z.ZodEnum<{
|
|
97
107
|
readonly PENDING: "PENDING";
|
|
98
108
|
readonly APPROVED: "APPROVED";
|
|
99
109
|
readonly REJECTED: "REJECTED";
|
|
@@ -104,114 +114,90 @@ declare const ProducerProfileResponseSchema: z.ZodObject<{
|
|
|
104
114
|
totalReviews: z.ZodNumber;
|
|
105
115
|
completionRate: z.ZodNumber;
|
|
106
116
|
isAvailable: z.ZodBoolean;
|
|
107
|
-
createdAt: z.
|
|
108
|
-
},
|
|
109
|
-
id: string;
|
|
110
|
-
userId: string;
|
|
111
|
-
averageRating: number;
|
|
112
|
-
createdAt: string;
|
|
113
|
-
equipmentManifest: Record<string, any>[];
|
|
114
|
-
serviceAreas: string[];
|
|
115
|
-
verificationStatus: "SUSPENDED" | "PENDING" | "SUBMITTED" | "REJECTED" | "APPROVED";
|
|
116
|
-
totalReviews: number;
|
|
117
|
-
completionRate: number;
|
|
118
|
-
isAvailable: boolean;
|
|
119
|
-
companyName?: string | undefined;
|
|
120
|
-
bio?: string | undefined;
|
|
121
|
-
yearsExperience?: number | undefined;
|
|
122
|
-
}, {
|
|
123
|
-
id: string;
|
|
124
|
-
userId: string;
|
|
125
|
-
averageRating: number;
|
|
126
|
-
createdAt: string;
|
|
127
|
-
equipmentManifest: Record<string, any>[];
|
|
128
|
-
serviceAreas: string[];
|
|
129
|
-
verificationStatus: "SUSPENDED" | "PENDING" | "SUBMITTED" | "REJECTED" | "APPROVED";
|
|
130
|
-
totalReviews: number;
|
|
131
|
-
completionRate: number;
|
|
132
|
-
isAvailable: boolean;
|
|
133
|
-
companyName?: string | undefined;
|
|
134
|
-
bio?: string | undefined;
|
|
135
|
-
yearsExperience?: number | undefined;
|
|
136
|
-
}>;
|
|
117
|
+
createdAt: z.ZodISODateTime;
|
|
118
|
+
}, z.core.$strip>;
|
|
137
119
|
declare const UserResponseSchema: z.ZodObject<{
|
|
138
|
-
id: z.
|
|
139
|
-
email: z.
|
|
120
|
+
id: z.ZodUUID;
|
|
121
|
+
email: z.ZodEmail;
|
|
140
122
|
emailVerified: z.ZodBoolean;
|
|
141
|
-
emailVerifiedAt: z.ZodOptional<z.
|
|
123
|
+
emailVerifiedAt: z.ZodOptional<z.ZodISODateTime>;
|
|
142
124
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
143
125
|
firstName: z.ZodOptional<z.ZodString>;
|
|
144
126
|
lastName: z.ZodOptional<z.ZodString>;
|
|
145
127
|
displayName: z.ZodOptional<z.ZodString>;
|
|
146
|
-
avatarUrl: z.ZodOptional<z.
|
|
128
|
+
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
147
129
|
role: z.ZodNumber;
|
|
148
|
-
accountStatus: z.
|
|
130
|
+
accountStatus: z.ZodEnum<{
|
|
149
131
|
readonly ACTIVE: "ACTIVE";
|
|
150
132
|
readonly SUSPENDED: "SUSPENDED";
|
|
151
133
|
readonly BANNED: "BANNED";
|
|
152
134
|
readonly DELETED: "DELETED";
|
|
153
135
|
}>;
|
|
154
|
-
kycStatus: z.
|
|
136
|
+
kycStatus: z.ZodEnum<{
|
|
155
137
|
readonly PENDING: "PENDING";
|
|
156
138
|
readonly SUBMITTED: "SUBMITTED";
|
|
157
139
|
readonly VERIFIED: "VERIFIED";
|
|
158
140
|
readonly REJECTED: "REJECTED";
|
|
159
141
|
}>;
|
|
160
142
|
hostProfile: z.ZodOptional<z.ZodObject<{
|
|
161
|
-
id: z.
|
|
162
|
-
userId: z.
|
|
143
|
+
id: z.ZodUUID;
|
|
144
|
+
userId: z.ZodUUID;
|
|
163
145
|
businessName: z.ZodString;
|
|
164
146
|
totalEvents: z.ZodNumber;
|
|
165
147
|
totalSpent: z.ZodNumber;
|
|
166
148
|
averageRating: z.ZodNumber;
|
|
167
149
|
defaultCurrency: z.ZodString;
|
|
150
|
+
description: z.ZodOptional<z.ZodString>;
|
|
151
|
+
category: z.ZodArray<z.ZodEnum<{
|
|
152
|
+
readonly ART: "ART";
|
|
153
|
+
readonly TECHNOLOGY: "TECHNOLOGY";
|
|
154
|
+
readonly SCIENCE: "SCIENCE";
|
|
155
|
+
readonly TRAVEL: "TRAVEL";
|
|
156
|
+
readonly HISTORY: "HISTORY";
|
|
157
|
+
readonly LITERATURE: "LITERATURE";
|
|
158
|
+
readonly COOKING: "COOKING";
|
|
159
|
+
readonly FITNESS: "FITNESS";
|
|
160
|
+
readonly PHOTOGRAPHY: "PHOTOGRAPHY";
|
|
161
|
+
readonly GARDENING: "GARDENING";
|
|
162
|
+
readonly EDUCATION: "EDUCATION";
|
|
163
|
+
readonly FASHION: "FASHION";
|
|
164
|
+
readonly MOVIES: "MOVIES";
|
|
165
|
+
readonly SPORTS: "SPORTS";
|
|
166
|
+
readonly POLITICS: "POLITICS";
|
|
167
|
+
readonly HEALTH: "HEALTH";
|
|
168
|
+
readonly GAMING: "GAMING";
|
|
169
|
+
readonly FINANCE: "FINANCE";
|
|
170
|
+
readonly NATURE: "NATURE";
|
|
171
|
+
readonly CONCERT: "CONCERT";
|
|
172
|
+
readonly FESTIVAL: "FESTIVAL";
|
|
173
|
+
readonly WEDDING: "WEDDING";
|
|
174
|
+
readonly CORPORATE: "CORPORATE";
|
|
175
|
+
readonly RELIGIOUS: "RELIGIOUS";
|
|
176
|
+
readonly OTHER: "OTHER";
|
|
177
|
+
}>>;
|
|
178
|
+
logoUrl: z.ZodOptional<z.ZodURL>;
|
|
168
179
|
businessRegNumber: z.ZodOptional<z.ZodString>;
|
|
169
180
|
taxId: z.ZodOptional<z.ZodString>;
|
|
170
181
|
settlementBankCode: z.ZodOptional<z.ZodString>;
|
|
171
182
|
settlementAccountNumber: z.ZodOptional<z.ZodString>;
|
|
172
183
|
settlementAccountName: z.ZodOptional<z.ZodString>;
|
|
173
184
|
paystackSubaccountCode: z.ZodOptional<z.ZodString>;
|
|
174
|
-
createdAt: z.
|
|
175
|
-
},
|
|
176
|
-
id: string;
|
|
177
|
-
userId: string;
|
|
178
|
-
businessName: string;
|
|
179
|
-
totalEvents: number;
|
|
180
|
-
totalSpent: number;
|
|
181
|
-
averageRating: number;
|
|
182
|
-
defaultCurrency: string;
|
|
183
|
-
createdAt: string;
|
|
184
|
-
businessRegNumber?: string | undefined;
|
|
185
|
-
taxId?: string | undefined;
|
|
186
|
-
settlementBankCode?: string | undefined;
|
|
187
|
-
settlementAccountNumber?: string | undefined;
|
|
188
|
-
settlementAccountName?: string | undefined;
|
|
189
|
-
paystackSubaccountCode?: string | undefined;
|
|
190
|
-
}, {
|
|
191
|
-
id: string;
|
|
192
|
-
userId: string;
|
|
193
|
-
businessName: string;
|
|
194
|
-
totalEvents: number;
|
|
195
|
-
totalSpent: number;
|
|
196
|
-
averageRating: number;
|
|
197
|
-
defaultCurrency: string;
|
|
198
|
-
createdAt: string;
|
|
199
|
-
businessRegNumber?: string | undefined;
|
|
200
|
-
taxId?: string | undefined;
|
|
201
|
-
settlementBankCode?: string | undefined;
|
|
202
|
-
settlementAccountNumber?: string | undefined;
|
|
203
|
-
settlementAccountName?: string | undefined;
|
|
204
|
-
paystackSubaccountCode?: string | undefined;
|
|
205
|
-
}>>;
|
|
185
|
+
createdAt: z.ZodISODateTime;
|
|
186
|
+
}, z.core.$strip>>;
|
|
206
187
|
producerProfile: z.ZodOptional<z.ZodObject<{
|
|
207
|
-
id: z.
|
|
208
|
-
userId: z.
|
|
209
|
-
companyName: z.
|
|
210
|
-
bio: z.
|
|
188
|
+
id: z.ZodUUID;
|
|
189
|
+
userId: z.ZodUUID;
|
|
190
|
+
companyName: z.ZodString;
|
|
191
|
+
bio: z.ZodString;
|
|
211
192
|
yearsExperience: z.ZodOptional<z.ZodNumber>;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
193
|
+
experienceLevel: z.ZodEnum<{
|
|
194
|
+
readonly BEGINNER: "BEGINNER";
|
|
195
|
+
readonly INTERMEDIATE: "INTERMEDIATE";
|
|
196
|
+
readonly EXPERT: "EXPERT";
|
|
197
|
+
}>;
|
|
198
|
+
equipmentManifest: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
199
|
+
serviceAreas: z.ZodArray<z.ZodString>;
|
|
200
|
+
verificationStatus: z.ZodEnum<{
|
|
215
201
|
readonly PENDING: "PENDING";
|
|
216
202
|
readonly APPROVED: "APPROVED";
|
|
217
203
|
readonly REJECTED: "REJECTED";
|
|
@@ -222,200 +208,94 @@ declare const UserResponseSchema: z.ZodObject<{
|
|
|
222
208
|
totalReviews: z.ZodNumber;
|
|
223
209
|
completionRate: z.ZodNumber;
|
|
224
210
|
isAvailable: z.ZodBoolean;
|
|
225
|
-
createdAt: z.
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
createdAt: string;
|
|
231
|
-
equipmentManifest: Record<string, any>[];
|
|
232
|
-
serviceAreas: string[];
|
|
233
|
-
verificationStatus: "SUSPENDED" | "PENDING" | "SUBMITTED" | "REJECTED" | "APPROVED";
|
|
234
|
-
totalReviews: number;
|
|
235
|
-
completionRate: number;
|
|
236
|
-
isAvailable: boolean;
|
|
237
|
-
companyName?: string | undefined;
|
|
238
|
-
bio?: string | undefined;
|
|
239
|
-
yearsExperience?: number | undefined;
|
|
240
|
-
}, {
|
|
241
|
-
id: string;
|
|
242
|
-
userId: string;
|
|
243
|
-
averageRating: number;
|
|
244
|
-
createdAt: string;
|
|
245
|
-
equipmentManifest: Record<string, any>[];
|
|
246
|
-
serviceAreas: string[];
|
|
247
|
-
verificationStatus: "SUSPENDED" | "PENDING" | "SUBMITTED" | "REJECTED" | "APPROVED";
|
|
248
|
-
totalReviews: number;
|
|
249
|
-
completionRate: number;
|
|
250
|
-
isAvailable: boolean;
|
|
251
|
-
companyName?: string | undefined;
|
|
252
|
-
bio?: string | undefined;
|
|
253
|
-
yearsExperience?: number | undefined;
|
|
254
|
-
}>>;
|
|
255
|
-
createdAt: z.ZodString;
|
|
256
|
-
updatedAt: z.ZodString;
|
|
257
|
-
}, "strip", z.ZodTypeAny, {
|
|
258
|
-
id: string;
|
|
259
|
-
createdAt: string;
|
|
260
|
-
email: string;
|
|
261
|
-
emailVerified: boolean;
|
|
262
|
-
role: number;
|
|
263
|
-
accountStatus: "ACTIVE" | "SUSPENDED" | "BANNED" | "DELETED";
|
|
264
|
-
kycStatus: "PENDING" | "SUBMITTED" | "VERIFIED" | "REJECTED";
|
|
265
|
-
updatedAt: string;
|
|
266
|
-
emailVerifiedAt?: string | undefined;
|
|
267
|
-
phoneNumber?: string | undefined;
|
|
268
|
-
firstName?: string | undefined;
|
|
269
|
-
lastName?: string | undefined;
|
|
270
|
-
displayName?: string | undefined;
|
|
271
|
-
avatarUrl?: string | undefined;
|
|
272
|
-
hostProfile?: {
|
|
273
|
-
id: string;
|
|
274
|
-
userId: string;
|
|
275
|
-
businessName: string;
|
|
276
|
-
totalEvents: number;
|
|
277
|
-
totalSpent: number;
|
|
278
|
-
averageRating: number;
|
|
279
|
-
defaultCurrency: string;
|
|
280
|
-
createdAt: string;
|
|
281
|
-
businessRegNumber?: string | undefined;
|
|
282
|
-
taxId?: string | undefined;
|
|
283
|
-
settlementBankCode?: string | undefined;
|
|
284
|
-
settlementAccountNumber?: string | undefined;
|
|
285
|
-
settlementAccountName?: string | undefined;
|
|
286
|
-
paystackSubaccountCode?: string | undefined;
|
|
287
|
-
} | undefined;
|
|
288
|
-
producerProfile?: {
|
|
289
|
-
id: string;
|
|
290
|
-
userId: string;
|
|
291
|
-
averageRating: number;
|
|
292
|
-
createdAt: string;
|
|
293
|
-
equipmentManifest: Record<string, any>[];
|
|
294
|
-
serviceAreas: string[];
|
|
295
|
-
verificationStatus: "SUSPENDED" | "PENDING" | "SUBMITTED" | "REJECTED" | "APPROVED";
|
|
296
|
-
totalReviews: number;
|
|
297
|
-
completionRate: number;
|
|
298
|
-
isAvailable: boolean;
|
|
299
|
-
companyName?: string | undefined;
|
|
300
|
-
bio?: string | undefined;
|
|
301
|
-
yearsExperience?: number | undefined;
|
|
302
|
-
} | undefined;
|
|
303
|
-
}, {
|
|
304
|
-
id: string;
|
|
305
|
-
createdAt: string;
|
|
306
|
-
email: string;
|
|
307
|
-
emailVerified: boolean;
|
|
308
|
-
role: number;
|
|
309
|
-
accountStatus: "ACTIVE" | "SUSPENDED" | "BANNED" | "DELETED";
|
|
310
|
-
kycStatus: "PENDING" | "SUBMITTED" | "VERIFIED" | "REJECTED";
|
|
311
|
-
updatedAt: string;
|
|
312
|
-
emailVerifiedAt?: string | undefined;
|
|
313
|
-
phoneNumber?: string | undefined;
|
|
314
|
-
firstName?: string | undefined;
|
|
315
|
-
lastName?: string | undefined;
|
|
316
|
-
displayName?: string | undefined;
|
|
317
|
-
avatarUrl?: string | undefined;
|
|
318
|
-
hostProfile?: {
|
|
319
|
-
id: string;
|
|
320
|
-
userId: string;
|
|
321
|
-
businessName: string;
|
|
322
|
-
totalEvents: number;
|
|
323
|
-
totalSpent: number;
|
|
324
|
-
averageRating: number;
|
|
325
|
-
defaultCurrency: string;
|
|
326
|
-
createdAt: string;
|
|
327
|
-
businessRegNumber?: string | undefined;
|
|
328
|
-
taxId?: string | undefined;
|
|
329
|
-
settlementBankCode?: string | undefined;
|
|
330
|
-
settlementAccountNumber?: string | undefined;
|
|
331
|
-
settlementAccountName?: string | undefined;
|
|
332
|
-
paystackSubaccountCode?: string | undefined;
|
|
333
|
-
} | undefined;
|
|
334
|
-
producerProfile?: {
|
|
335
|
-
id: string;
|
|
336
|
-
userId: string;
|
|
337
|
-
averageRating: number;
|
|
338
|
-
createdAt: string;
|
|
339
|
-
equipmentManifest: Record<string, any>[];
|
|
340
|
-
serviceAreas: string[];
|
|
341
|
-
verificationStatus: "SUSPENDED" | "PENDING" | "SUBMITTED" | "REJECTED" | "APPROVED";
|
|
342
|
-
totalReviews: number;
|
|
343
|
-
completionRate: number;
|
|
344
|
-
isAvailable: boolean;
|
|
345
|
-
companyName?: string | undefined;
|
|
346
|
-
bio?: string | undefined;
|
|
347
|
-
yearsExperience?: number | undefined;
|
|
348
|
-
} | undefined;
|
|
349
|
-
}>;
|
|
211
|
+
createdAt: z.ZodISODateTime;
|
|
212
|
+
}, z.core.$strip>>;
|
|
213
|
+
createdAt: z.ZodISODateTime;
|
|
214
|
+
updatedAt: z.ZodISODateTime;
|
|
215
|
+
}, z.core.$strip>;
|
|
350
216
|
declare const UpdateUserRequestSchema: z.ZodObject<{
|
|
351
217
|
firstName: z.ZodOptional<z.ZodString>;
|
|
352
218
|
lastName: z.ZodOptional<z.ZodString>;
|
|
353
219
|
displayName: z.ZodOptional<z.ZodString>;
|
|
354
|
-
avatarUrl: z.ZodOptional<z.
|
|
220
|
+
avatarUrl: z.ZodOptional<z.ZodURL>;
|
|
355
221
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
222
|
+
eventCategory: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
223
|
+
readonly ART: "ART";
|
|
224
|
+
readonly TECHNOLOGY: "TECHNOLOGY";
|
|
225
|
+
readonly SCIENCE: "SCIENCE";
|
|
226
|
+
readonly TRAVEL: "TRAVEL";
|
|
227
|
+
readonly HISTORY: "HISTORY";
|
|
228
|
+
readonly LITERATURE: "LITERATURE";
|
|
229
|
+
readonly COOKING: "COOKING";
|
|
230
|
+
readonly FITNESS: "FITNESS";
|
|
231
|
+
readonly PHOTOGRAPHY: "PHOTOGRAPHY";
|
|
232
|
+
readonly GARDENING: "GARDENING";
|
|
233
|
+
readonly EDUCATION: "EDUCATION";
|
|
234
|
+
readonly FASHION: "FASHION";
|
|
235
|
+
readonly MOVIES: "MOVIES";
|
|
236
|
+
readonly SPORTS: "SPORTS";
|
|
237
|
+
readonly POLITICS: "POLITICS";
|
|
238
|
+
readonly HEALTH: "HEALTH";
|
|
239
|
+
readonly GAMING: "GAMING";
|
|
240
|
+
readonly FINANCE: "FINANCE";
|
|
241
|
+
readonly NATURE: "NATURE";
|
|
242
|
+
readonly CONCERT: "CONCERT";
|
|
243
|
+
readonly FESTIVAL: "FESTIVAL";
|
|
244
|
+
readonly WEDDING: "WEDDING";
|
|
245
|
+
readonly CORPORATE: "CORPORATE";
|
|
246
|
+
readonly RELIGIOUS: "RELIGIOUS";
|
|
247
|
+
readonly OTHER: "OTHER";
|
|
248
|
+
}>>>;
|
|
249
|
+
}, z.core.$strip>;
|
|
369
250
|
declare const CreateHostProfileRequestSchema: z.ZodObject<{
|
|
370
251
|
businessName: z.ZodString;
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
252
|
+
description: z.ZodOptional<z.ZodString>;
|
|
253
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
254
|
+
category: z.ZodArray<z.ZodEnum<{
|
|
255
|
+
readonly ART: "ART";
|
|
256
|
+
readonly TECHNOLOGY: "TECHNOLOGY";
|
|
257
|
+
readonly SCIENCE: "SCIENCE";
|
|
258
|
+
readonly TRAVEL: "TRAVEL";
|
|
259
|
+
readonly HISTORY: "HISTORY";
|
|
260
|
+
readonly LITERATURE: "LITERATURE";
|
|
261
|
+
readonly COOKING: "COOKING";
|
|
262
|
+
readonly FITNESS: "FITNESS";
|
|
263
|
+
readonly PHOTOGRAPHY: "PHOTOGRAPHY";
|
|
264
|
+
readonly GARDENING: "GARDENING";
|
|
265
|
+
readonly EDUCATION: "EDUCATION";
|
|
266
|
+
readonly FASHION: "FASHION";
|
|
267
|
+
readonly MOVIES: "MOVIES";
|
|
268
|
+
readonly SPORTS: "SPORTS";
|
|
269
|
+
readonly POLITICS: "POLITICS";
|
|
270
|
+
readonly HEALTH: "HEALTH";
|
|
271
|
+
readonly GAMING: "GAMING";
|
|
272
|
+
readonly FINANCE: "FINANCE";
|
|
273
|
+
readonly NATURE: "NATURE";
|
|
274
|
+
readonly CONCERT: "CONCERT";
|
|
275
|
+
readonly FESTIVAL: "FESTIVAL";
|
|
276
|
+
readonly WEDDING: "WEDDING";
|
|
277
|
+
readonly CORPORATE: "CORPORATE";
|
|
278
|
+
readonly RELIGIOUS: "RELIGIOUS";
|
|
279
|
+
readonly OTHER: "OTHER";
|
|
280
|
+
}>>;
|
|
281
|
+
pin: z.ZodString;
|
|
282
|
+
}, z.core.$strip>;
|
|
394
283
|
declare const CreateProducerProfileRequestSchema: z.ZodObject<{
|
|
395
284
|
companyName: z.ZodString;
|
|
396
|
-
bio: z.
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
}, {
|
|
411
|
-
companyName: string;
|
|
412
|
-
equipmentManifest: Record<string, any>[];
|
|
413
|
-
serviceAreas: string[];
|
|
414
|
-
bio?: string | undefined;
|
|
415
|
-
yearsExperience?: number | undefined;
|
|
416
|
-
rateCard?: Record<string, any> | undefined;
|
|
417
|
-
maxDistanceKm?: number | undefined;
|
|
418
|
-
}>;
|
|
285
|
+
bio: z.ZodString;
|
|
286
|
+
logoUrl: z.ZodOptional<z.ZodString>;
|
|
287
|
+
serviceAreas: z.ZodArray<z.ZodString>;
|
|
288
|
+
yearsExperience: z.ZodNumber;
|
|
289
|
+
experienceLevel: z.ZodEnum<{
|
|
290
|
+
readonly BEGINNER: "BEGINNER";
|
|
291
|
+
readonly INTERMEDIATE: "INTERMEDIATE";
|
|
292
|
+
readonly EXPERT: "EXPERT";
|
|
293
|
+
}>;
|
|
294
|
+
minFee: z.ZodNumber;
|
|
295
|
+
maxFee: z.ZodNumber;
|
|
296
|
+
pin: z.ZodString;
|
|
297
|
+
isAvailable: z.ZodBoolean;
|
|
298
|
+
}, z.core.$strip>;
|
|
419
299
|
|
|
420
300
|
type UserResponse = z.infer<typeof UserResponseSchema>;
|
|
421
301
|
type UpdateUserRequest = z.infer<typeof UpdateUserRequestSchema>;
|
|
@@ -424,4 +304,4 @@ type HostProfileResponse = z.infer<typeof HostProfileResponseSchema>;
|
|
|
424
304
|
type CreateProducerProfileRequest = z.infer<typeof CreateProducerProfileRequestSchema>;
|
|
425
305
|
type ProducerProfileResponse = z.infer<typeof ProducerProfileResponseSchema>;
|
|
426
306
|
|
|
427
|
-
export { AccountStatus, AdminScopeCode, type CreateHostProfileRequest, CreateHostProfileRequestSchema, type CreateProducerProfileRequest, CreateProducerProfileRequestSchema, type HostProfileResponse, HostProfileResponseSchema, KycStatus, type ProducerProfileResponse, ProducerProfileResponseSchema, ProducerVerificationStatus, type UpdateUserRequest, UpdateUserRequestSchema, type UserResponse, UserResponseSchema, UserRole };
|
|
307
|
+
export { AccountStatus, AdminScopeCode, type CreateHostProfileRequest, CreateHostProfileRequestSchema, type CreateProducerProfileRequest, CreateProducerProfileRequestSchema, type HostProfileResponse, HostProfileResponseSchema, KycStatus, ProducerExperienceLevel, type ProducerProfileResponse, ProducerProfileResponseSchema, ProducerVerificationStatus, type UpdateUserRequest, UpdateUserRequestSchema, type UserResponse, UserResponseSchema, UserRole };
|
package/dist/user/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkDKCDBAZM_js=require('../chunk-DKCDBAZM.js');require('../chunk-ZWKP6KMZ.js');Object.defineProperty(exports,"AccountStatus",{enumerable:true,get:function(){return chunkDKCDBAZM_js.b}});Object.defineProperty(exports,"AdminScopeCode",{enumerable:true,get:function(){return chunkDKCDBAZM_js.d}});Object.defineProperty(exports,"CreateHostProfileRequestSchema",{enumerable:true,get:function(){return chunkDKCDBAZM_js.k}});Object.defineProperty(exports,"CreateProducerProfileRequestSchema",{enumerable:true,get:function(){return chunkDKCDBAZM_js.l}});Object.defineProperty(exports,"HostProfileResponseSchema",{enumerable:true,get:function(){return chunkDKCDBAZM_js.g}});Object.defineProperty(exports,"KycStatus",{enumerable:true,get:function(){return chunkDKCDBAZM_js.c}});Object.defineProperty(exports,"ProducerExperienceLevel",{enumerable:true,get:function(){return chunkDKCDBAZM_js.f}});Object.defineProperty(exports,"ProducerProfileResponseSchema",{enumerable:true,get:function(){return chunkDKCDBAZM_js.h}});Object.defineProperty(exports,"ProducerVerificationStatus",{enumerable:true,get:function(){return chunkDKCDBAZM_js.e}});Object.defineProperty(exports,"UpdateUserRequestSchema",{enumerable:true,get:function(){return chunkDKCDBAZM_js.j}});Object.defineProperty(exports,"UserResponseSchema",{enumerable:true,get:function(){return chunkDKCDBAZM_js.i}});Object.defineProperty(exports,"UserRole",{enumerable:true,get:function(){return chunkDKCDBAZM_js.a}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/user/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as AccountStatus,d as AdminScopeCode,
|
|
1
|
+
export{b as AccountStatus,d as AdminScopeCode,k as CreateHostProfileRequestSchema,l as CreateProducerProfileRequestSchema,g as HostProfileResponseSchema,c as KycStatus,f as ProducerExperienceLevel,h as ProducerProfileResponseSchema,e as ProducerVerificationStatus,j as UpdateUserRequestSchema,i as UserResponseSchema,a as UserRole}from'../chunk-24RINR6F.mjs';import'../chunk-QWCVJYX2.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livdot-tech/contracts",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Shared API contracts for the LivDot platform",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -49,9 +49,6 @@
|
|
|
49
49
|
"prepare": "husky",
|
|
50
50
|
"prepublishOnly": "npm run build && npm test"
|
|
51
51
|
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"zod": "^3.22.4"
|
|
54
|
-
},
|
|
55
52
|
"devDependencies": {
|
|
56
53
|
"@semantic-release/changelog": "^6.0.3",
|
|
57
54
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
@@ -76,6 +73,10 @@
|
|
|
76
73
|
"ts-jest": "^29.1.2",
|
|
77
74
|
"tsup": "^8.0.2",
|
|
78
75
|
"typedoc": "^0.25.10",
|
|
79
|
-
"typescript": "^5.3.3"
|
|
76
|
+
"typescript": "^5.3.3",
|
|
77
|
+
"zod": "^4.4.3"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"zod": "^4.4.3"
|
|
80
81
|
}
|
|
81
82
|
}
|
package/dist/chunk-6GDUDLP2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';var chunkUDHBQDRU_js=require('./chunk-UDHBQDRU.js'),zod=require('zod');var r=new RegExp("^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[ !\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~]).{8,}$"),n=zod.z.object({email:zod.z.string().email().toLowerCase(),password:zod.z.string().min(8).regex(r),firstName:zod.z.string(),lastName:zod.z.string(),role:zod.z.nativeEnum(chunkUDHBQDRU_js.a).optional()}),i=zod.z.object({username:zod.z.string(),reference:zod.z.string(),role:zod.z.nativeEnum(chunkUDHBQDRU_js.a).optional()}),a=zod.z.object({email:zod.z.string().email(),password:zod.z.string().min(8).regex(r),role:zod.z.nativeEnum(chunkUDHBQDRU_js.a).optional()}),c=zod.z.object({otp:zod.z.string().length(4),reference:zod.z.string(),type:zod.z.enum(["registration","passwordReset"])}),g=zod.z.object({reference:zod.z.string(),type:zod.z.enum(["registration","passwordReset"])}),m=zod.z.object({isValid:zod.z.boolean(),message:zod.z.string(),reference:zod.z.string().optional()}),p=zod.z.object({AccessToken:zod.z.string(),RefreshToken:zod.z.string(),IdToken:zod.z.string(),ExpiresIn:zod.z.number(),TokenType:zod.z.literal("Bearer")}),l=zod.z.object({refreshToken:zod.z.string()}),R=zod.z.object({refreshToken:zod.z.string(),accessToken:zod.z.string()}),u=zod.z.object({email:zod.z.string().email()}),x=zod.z.object({destination:zod.z.string(),deliveryMedium:zod.z.string(),attributeName:zod.z.string()}),b=zod.z.object({token:zod.z.string(),newPassword:zod.z.string().min(8).regex(r)}),h=zod.z.object({currentPassword:zod.z.string().min(8).regex(r),newPassword:zod.z.string().min(8).regex(r)}),d=zod.z.object({sub:zod.z.string(),email:zod.z.string().email(),role:zod.z.nativeEnum(chunkUDHBQDRU_js.a),iat:zod.z.number(),exp:zod.z.number()});exports.a=n;exports.b=i;exports.c=a;exports.d=c;exports.e=g;exports.f=m;exports.g=p;exports.h=l;exports.i=R;exports.j=u;exports.k=x;exports.l=b;exports.m=h;exports.n=d;//# sourceMappingURL=chunk-6GDUDLP2.js.map
|
|
2
|
-
//# sourceMappingURL=chunk-6GDUDLP2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/auth/auth.schemas.ts"],"names":["PASSWORD_REGEX","RegisterRequestSchema","z","UserRole","RegisterResponseSchema","LoginRequestSchema","VerifyOtpRequestSchema","ResendOtpRequestSchema","VerifyOtpResponseSchema","LoginResponseSchema","RefreshTokenRequestSchema","LogoutRequestSchema","ForgotPasswordRequestSchema","ForgotPasswordResponseSchema","ResetPasswordRequestSchema","ChangePasswordRequestSchema","CognitoTokenPayloadSchema"],"mappings":"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","file":"chunk-6GDUDLP2.js","sourcesContent":["import { z } from 'zod';\nimport { UserRole } from '../user';\n\nconst PASSWORD_REGEX = new RegExp(\n '^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[ !\"#$%&\\'()*+,-./:;<=>?@[\\\\]^_`{|}~]).{8,}$',\n);\n\n/**\n * Zod schema for registration request.\n */\nexport const RegisterRequestSchema = z.object({\n email: z.string().email().toLowerCase(),\n password: z.string().min(8).regex(PASSWORD_REGEX),\n firstName: z.string(),\n lastName: z.string(),\n role: z.nativeEnum(UserRole).optional(),\n});\n\n/**\n * Zod schema for registration response.\n */\nexport const RegisterResponseSchema = z.object({\n username: z.string(),\n reference: z.string(),\n role: z.nativeEnum(UserRole).optional(),\n});\n\n/**\n * Zod schema for login request.\n */\nexport const LoginRequestSchema = z.object({\n email: z.string().email(),\n password: z.string().min(8).regex(PASSWORD_REGEX),\n role: z.nativeEnum(UserRole).optional(),\n});\n\nexport const VerifyOtpRequestSchema = z.object({\n otp: z.string().length(4),\n reference: z.string(),\n type: z.enum(['registration', 'passwordReset']),\n});\n\nexport const ResendOtpRequestSchema = z.object({\n reference: z.string(),\n type: z.enum(['registration', 'passwordReset']),\n});\n\nexport const VerifyOtpResponseSchema = z.object({\n isValid: z.boolean(),\n message: z.string(),\n reference: z.string().optional(),\n});\n\n/**\n * Zod schema for login response.\n */\nexport const LoginResponseSchema = z.object({\n AccessToken: z.string(),\n RefreshToken: z.string(),\n IdToken: z.string(),\n ExpiresIn: z.number(),\n TokenType: z.literal('Bearer'),\n});\n\n/**\n * Zod schema for refresh token request.\n */\nexport const RefreshTokenRequestSchema = z.object({\n refreshToken: z.string(),\n});\n\nexport const LogoutRequestSchema = z.object({\n refreshToken: z.string(),\n accessToken: z.string(),\n});\n\n/**\n * Zod schema for forgot password request.\n */\nexport const ForgotPasswordRequestSchema = z.object({\n email: z.string().email(),\n});\n\nexport const ForgotPasswordResponseSchema = z.object({\n destination: z.string(),\n deliveryMedium: z.string(),\n attributeName: z.string(),\n});\n\n/**\n * Zod schema for reset password request.\n */\nexport const ResetPasswordRequestSchema = z.object({\n token: z.string(),\n newPassword: z.string().min(8).regex(PASSWORD_REGEX),\n});\n\n/**\n * Zod schema for change password request.\n */\nexport const ChangePasswordRequestSchema = z.object({\n currentPassword: z.string().min(8).regex(PASSWORD_REGEX),\n newPassword: z.string().min(8).regex(PASSWORD_REGEX),\n});\n\n/**\n * Zod schema for AWS Cognito token payload.\n */\nexport const CognitoTokenPayloadSchema = z.object({\n sub: z.string(),\n email: z.string().email(),\n role: z.nativeEnum(UserRole), // Bitmask\n iat: z.number(),\n exp: z.number(),\n});\n"]}
|
package/dist/chunk-6UTUVCOM.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import {z}from'zod';var o={PENDING:"pending",ACTIVE:"active",IDLE:"idle",ENDED:"ended",ERROR:"error"},e={RTMPS:"RTMPS",SRT:"SRT"};var p=z.object({token:z.string(),playbackUrl:z.string().url(),expiresAt:z.string().datetime()}),a=z.object({ingestEndpoint:z.string().url(),streamKey:z.string(),protocol:z.nativeEnum(e)}),i=z.object({eventId:z.string().uuid(),viewerCount:z.number().optional(),rebufferRate:z.number().optional(),bitrateKbps:z.number().optional(),latencyMs:z.number().optional(),playbackErrorRate:z.number().optional(),deviceType:z.string().optional(),region:z.string().optional()});export{o as a,e as b,p as c,a as d,i as e};//# sourceMappingURL=chunk-6UTUVCOM.mjs.map
|
|
2
|
-
//# sourceMappingURL=chunk-6UTUVCOM.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/streaming/streaming.enums.ts","../src/streaming/streaming.schemas.ts"],"names":["StreamStatus","IngestProtocol","PlaybackTokenResponseSchema","z","IngestCredentialsResponseSchema","TelemetryReportRequestSchema"],"mappings":"oBAAO,IAAMA,CAAAA,CAAe,CAC1B,OAAA,CAAS,SAAA,CACT,MAAA,CAAQ,QAAA,CACR,IAAA,CAAM,MAAA,CACN,KAAA,CAAO,OAAA,CACP,KAAA,CAAO,OACT,CAAA,CAGaC,CAAAA,CAAiB,CAC5B,KAAA,CAAO,OAAA,CACP,GAAA,CAAK,KACP,ECTO,IAAMC,CAAAA,CAA8BC,CAAAA,CAAE,MAAA,CAAO,CAClD,MAAOA,CAAAA,CAAE,MAAA,EAAO,CAChB,WAAA,CAAaA,CAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAC5B,SAAA,CAAWA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EACxB,CAAC,CAAA,CAEYC,CAAAA,CAAkCD,CAAAA,CAAE,MAAA,CAAO,CACtD,cAAA,CAAgBA,CAAAA,CAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAC/B,SAAA,CAAWA,CAAAA,CAAE,MAAA,GACb,QAAA,CAAUA,CAAAA,CAAE,UAAA,CAAWF,CAAc,CACvC,CAAC,CAAA,CAEYI,CAAAA,CAA+BF,CAAAA,CAAE,MAAA,CAAO,CACnD,OAAA,CAASA,CAAAA,CAAE,MAAA,EAAO,CAAE,IAAA,EAAK,CACzB,WAAA,CAAaA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CACjC,YAAA,CAAcA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CAClC,WAAA,CAAaA,EAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CACjC,SAAA,CAAWA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CAC/B,iBAAA,CAAmBA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CACvC,UAAA,CAAYA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS,CAChC,MAAA,CAAQA,CAAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EACrB,CAAC","file":"chunk-6UTUVCOM.mjs","sourcesContent":["export const StreamStatus = {\n PENDING: 'pending',\n ACTIVE: 'active',\n IDLE: 'idle',\n ENDED: 'ended',\n ERROR: 'error',\n} as const;\nexport type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];\n\nexport const IngestProtocol = {\n RTMPS: 'RTMPS',\n SRT: 'SRT',\n} as const;\nexport type IngestProtocol = (typeof IngestProtocol)[keyof typeof IngestProtocol];\n","import { z } from 'zod';\nimport { IngestProtocol } from './streaming.enums';\n\nexport const PlaybackTokenResponseSchema = z.object({\n token: z.string(),\n playbackUrl: z.string().url(),\n expiresAt: z.string().datetime(),\n});\n\nexport const IngestCredentialsResponseSchema = z.object({\n ingestEndpoint: z.string().url(),\n streamKey: z.string(),\n protocol: z.nativeEnum(IngestProtocol),\n});\n\nexport const TelemetryReportRequestSchema = z.object({\n eventId: z.string().uuid(),\n viewerCount: z.number().optional(),\n rebufferRate: z.number().optional(),\n bitrateKbps: z.number().optional(),\n latencyMs: z.number().optional(),\n playbackErrorRate: z.number().optional(),\n deviceType: z.string().optional(),\n region: z.string().optional(),\n});\n"]}
|