@zyacreatives/shared 1.3.9 → 1.4.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/schemas/user.d.ts +257 -0
- package/dist/schemas/user.js +21 -1
- package/package.json +1 -1
- package/src/schemas/user.ts +35 -0
package/dist/schemas/user.d.ts
CHANGED
|
@@ -194,6 +194,14 @@ export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
|
|
|
194
194
|
}, z.core.$strip>;
|
|
195
195
|
}, z.core.$strip>>;
|
|
196
196
|
}, z.core.$strip>;
|
|
197
|
+
export declare const GetUserFollowingInputSchema: z.ZodObject<{
|
|
198
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
199
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
export declare const GetUserFollowersInputSchema: z.ZodObject<{
|
|
202
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
203
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
204
|
+
}, z.core.$strip>;
|
|
197
205
|
export declare const UserWithFollowingEntitySchema: z.ZodObject<{
|
|
198
206
|
id: z.ZodCUID2;
|
|
199
207
|
username: z.ZodOptional<z.ZodString>;
|
|
@@ -246,3 +254,252 @@ export declare const UserWithFollowersEntitySchema: z.ZodObject<{
|
|
|
246
254
|
}>;
|
|
247
255
|
}, z.core.$strip>>;
|
|
248
256
|
}, z.core.$strip>;
|
|
257
|
+
export declare const GetUserFollowingOutputSchema: z.ZodObject<{
|
|
258
|
+
results: z.ZodObject<{
|
|
259
|
+
id: z.ZodCUID2;
|
|
260
|
+
username: z.ZodOptional<z.ZodString>;
|
|
261
|
+
email: z.ZodString;
|
|
262
|
+
name: z.ZodOptional<z.ZodString>;
|
|
263
|
+
image: z.ZodOptional<z.ZodString>;
|
|
264
|
+
role: z.ZodEnum<{
|
|
265
|
+
CREATIVE: "CREATIVE";
|
|
266
|
+
BRAND: "BRAND";
|
|
267
|
+
INVESTOR: "INVESTOR";
|
|
268
|
+
ADMIN: "ADMIN";
|
|
269
|
+
}>;
|
|
270
|
+
following: z.ZodArray<z.ZodObject<{
|
|
271
|
+
id: z.ZodCUID2;
|
|
272
|
+
username: z.ZodOptional<z.ZodString>;
|
|
273
|
+
email: z.ZodString;
|
|
274
|
+
name: z.ZodOptional<z.ZodString>;
|
|
275
|
+
image: z.ZodOptional<z.ZodString>;
|
|
276
|
+
role: z.ZodEnum<{
|
|
277
|
+
CREATIVE: "CREATIVE";
|
|
278
|
+
BRAND: "BRAND";
|
|
279
|
+
INVESTOR: "INVESTOR";
|
|
280
|
+
ADMIN: "ADMIN";
|
|
281
|
+
}>;
|
|
282
|
+
}, z.core.$strip>>;
|
|
283
|
+
}, z.core.$strip>;
|
|
284
|
+
}, z.core.$strip>;
|
|
285
|
+
export declare const GetUserFollowersOutputSchema: z.ZodObject<{
|
|
286
|
+
results: z.ZodObject<{
|
|
287
|
+
id: z.ZodCUID2;
|
|
288
|
+
username: z.ZodOptional<z.ZodString>;
|
|
289
|
+
email: z.ZodString;
|
|
290
|
+
name: z.ZodOptional<z.ZodString>;
|
|
291
|
+
image: z.ZodOptional<z.ZodString>;
|
|
292
|
+
role: z.ZodEnum<{
|
|
293
|
+
CREATIVE: "CREATIVE";
|
|
294
|
+
BRAND: "BRAND";
|
|
295
|
+
INVESTOR: "INVESTOR";
|
|
296
|
+
ADMIN: "ADMIN";
|
|
297
|
+
}>;
|
|
298
|
+
followers: z.ZodArray<z.ZodObject<{
|
|
299
|
+
id: z.ZodCUID2;
|
|
300
|
+
username: z.ZodOptional<z.ZodString>;
|
|
301
|
+
email: z.ZodString;
|
|
302
|
+
name: z.ZodOptional<z.ZodString>;
|
|
303
|
+
image: z.ZodOptional<z.ZodString>;
|
|
304
|
+
role: z.ZodEnum<{
|
|
305
|
+
CREATIVE: "CREATIVE";
|
|
306
|
+
BRAND: "BRAND";
|
|
307
|
+
INVESTOR: "INVESTOR";
|
|
308
|
+
ADMIN: "ADMIN";
|
|
309
|
+
}>;
|
|
310
|
+
}, z.core.$strip>>;
|
|
311
|
+
}, z.core.$strip>;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
export declare const GetAuthenticatedUserOutputSchema: z.ZodObject<{
|
|
314
|
+
id: z.ZodCUID2;
|
|
315
|
+
email: z.ZodString;
|
|
316
|
+
emailVerified: z.ZodBoolean;
|
|
317
|
+
name: z.ZodOptional<z.ZodString>;
|
|
318
|
+
image: z.ZodOptional<z.ZodString>;
|
|
319
|
+
username: z.ZodOptional<z.ZodString>;
|
|
320
|
+
displayUsername: z.ZodOptional<z.ZodString>;
|
|
321
|
+
role: z.ZodEnum<{
|
|
322
|
+
CREATIVE: "CREATIVE";
|
|
323
|
+
BRAND: "BRAND";
|
|
324
|
+
INVESTOR: "INVESTOR";
|
|
325
|
+
ADMIN: "ADMIN";
|
|
326
|
+
}>;
|
|
327
|
+
status: z.ZodEnum<{
|
|
328
|
+
ACTIVE: "ACTIVE";
|
|
329
|
+
SUSPENDED: "SUSPENDED";
|
|
330
|
+
DELETED: "DELETED";
|
|
331
|
+
}>;
|
|
332
|
+
onboardingPage: z.ZodEnum<{
|
|
333
|
+
EMAIL_VERIFICATION: "EMAIL_VERIFICATION";
|
|
334
|
+
USERNAME_SELECTION: "USERNAME_SELECTION";
|
|
335
|
+
ACCOUNT_TYPE_SELECTION: "ACCOUNT_TYPE_SELECTION";
|
|
336
|
+
CREATIVE_PROFILE_DETAILS: "CREATIVE_PROFILE_DETAILS";
|
|
337
|
+
CREATIVE_PROFILE_CUSTOMIZE_FEED: "CREATIVE_PROFILE_CUSTOMIZE_FEED";
|
|
338
|
+
CREATIVE_PROFILE_PORTFOLIO: "CREATIVE_PROFILE_PORTFOLIO";
|
|
339
|
+
BRAND_PROFILE_DETAILS: "BRAND_PROFILE_DETAILS";
|
|
340
|
+
BRAND_PROFILE_CUSTOMIZE_FEED: "BRAND_PROFILE_CUSTOMIZE_FEED";
|
|
341
|
+
BRAND_PROFILE_PORTFOLIO: "BRAND_PROFILE_PORTFOLIO";
|
|
342
|
+
INVESTOR_PROFILE_DETAILS: "INVESTOR_PROFILE_DETAILS";
|
|
343
|
+
INVESTOR_INVESTMENT_FOCUS: "INVESTOR_INVESTMENT_FOCUS";
|
|
344
|
+
INVESTOR_VERIFICATION: "INVESTOR_VERIFICATION";
|
|
345
|
+
DONE: "DONE";
|
|
346
|
+
}>;
|
|
347
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
348
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
349
|
+
followerCount: z.ZodOptional<z.ZodNumber>;
|
|
350
|
+
followingCount: z.ZodOptional<z.ZodNumber>;
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
export declare const GetAuthenticatedUserProfileOutputSchema: z.ZodObject<{
|
|
353
|
+
id: z.ZodCUID2;
|
|
354
|
+
email: z.ZodString;
|
|
355
|
+
emailVerified: z.ZodBoolean;
|
|
356
|
+
name: z.ZodOptional<z.ZodString>;
|
|
357
|
+
image: z.ZodOptional<z.ZodString>;
|
|
358
|
+
username: z.ZodOptional<z.ZodString>;
|
|
359
|
+
displayUsername: z.ZodOptional<z.ZodString>;
|
|
360
|
+
role: z.ZodEnum<{
|
|
361
|
+
CREATIVE: "CREATIVE";
|
|
362
|
+
BRAND: "BRAND";
|
|
363
|
+
INVESTOR: "INVESTOR";
|
|
364
|
+
ADMIN: "ADMIN";
|
|
365
|
+
}>;
|
|
366
|
+
status: z.ZodEnum<{
|
|
367
|
+
ACTIVE: "ACTIVE";
|
|
368
|
+
SUSPENDED: "SUSPENDED";
|
|
369
|
+
DELETED: "DELETED";
|
|
370
|
+
}>;
|
|
371
|
+
onboardingPage: z.ZodEnum<{
|
|
372
|
+
EMAIL_VERIFICATION: "EMAIL_VERIFICATION";
|
|
373
|
+
USERNAME_SELECTION: "USERNAME_SELECTION";
|
|
374
|
+
ACCOUNT_TYPE_SELECTION: "ACCOUNT_TYPE_SELECTION";
|
|
375
|
+
CREATIVE_PROFILE_DETAILS: "CREATIVE_PROFILE_DETAILS";
|
|
376
|
+
CREATIVE_PROFILE_CUSTOMIZE_FEED: "CREATIVE_PROFILE_CUSTOMIZE_FEED";
|
|
377
|
+
CREATIVE_PROFILE_PORTFOLIO: "CREATIVE_PROFILE_PORTFOLIO";
|
|
378
|
+
BRAND_PROFILE_DETAILS: "BRAND_PROFILE_DETAILS";
|
|
379
|
+
BRAND_PROFILE_CUSTOMIZE_FEED: "BRAND_PROFILE_CUSTOMIZE_FEED";
|
|
380
|
+
BRAND_PROFILE_PORTFOLIO: "BRAND_PROFILE_PORTFOLIO";
|
|
381
|
+
INVESTOR_PROFILE_DETAILS: "INVESTOR_PROFILE_DETAILS";
|
|
382
|
+
INVESTOR_INVESTMENT_FOCUS: "INVESTOR_INVESTMENT_FOCUS";
|
|
383
|
+
INVESTOR_VERIFICATION: "INVESTOR_VERIFICATION";
|
|
384
|
+
DONE: "DONE";
|
|
385
|
+
}>;
|
|
386
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
387
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
388
|
+
followerCount: z.ZodOptional<z.ZodNumber>;
|
|
389
|
+
followingCount: z.ZodOptional<z.ZodNumber>;
|
|
390
|
+
profileType: z.ZodOptional<z.ZodEnum<{
|
|
391
|
+
creative: "creative";
|
|
392
|
+
brand: "brand";
|
|
393
|
+
investor: "investor";
|
|
394
|
+
}>>;
|
|
395
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
396
|
+
location: z.ZodOptional<z.ZodString>;
|
|
397
|
+
experienceLevel: z.ZodOptional<z.ZodString>;
|
|
398
|
+
disciplines: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
399
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
400
|
+
brandName: z.ZodOptional<z.ZodString>;
|
|
401
|
+
websiteURL: z.ZodOptional<z.ZodString>;
|
|
402
|
+
investorType: z.ZodOptional<z.ZodString>;
|
|
403
|
+
investmentSize: z.ZodOptional<z.ZodString>;
|
|
404
|
+
geographicFocus: z.ZodOptional<z.ZodString>;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
|
+
export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
|
|
407
|
+
userId: z.ZodCUID2;
|
|
408
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
409
|
+
id: z.ZodString;
|
|
410
|
+
userId: z.ZodString;
|
|
411
|
+
description: z.ZodOptional<z.ZodString>;
|
|
412
|
+
title: z.ZodString;
|
|
413
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
414
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
415
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
416
|
+
url: z.ZodOptional<z.ZodString>;
|
|
417
|
+
imagePlaceholderUrl: z.ZodString;
|
|
418
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
419
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
420
|
+
projectCreatorType: z.ZodEnum<{
|
|
421
|
+
readonly CREATIVE: "CREATIVE";
|
|
422
|
+
readonly BRAND: "BRAND";
|
|
423
|
+
readonly INVESTOR: "INVESTOR";
|
|
424
|
+
readonly ADMIN: "ADMIN";
|
|
425
|
+
}>;
|
|
426
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
427
|
+
clientType: z.ZodOptional<z.ZodEnum<{
|
|
428
|
+
readonly CREATIVE: "CREATIVE";
|
|
429
|
+
readonly BRAND: "BRAND";
|
|
430
|
+
readonly NONE: "NONE";
|
|
431
|
+
}>>;
|
|
432
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
433
|
+
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
434
|
+
searchVector: z.ZodString;
|
|
435
|
+
}, z.core.$strip>>;
|
|
436
|
+
}, z.core.$strip>;
|
|
437
|
+
export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
|
438
|
+
userId: z.ZodCUID2;
|
|
439
|
+
projectBookmarks: z.ZodArray<z.ZodObject<{
|
|
440
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
441
|
+
userId: z.ZodCUID2;
|
|
442
|
+
projectId: z.ZodCUID2;
|
|
443
|
+
project: z.ZodObject<{
|
|
444
|
+
id: z.ZodString;
|
|
445
|
+
description: z.ZodOptional<z.ZodString>;
|
|
446
|
+
title: z.ZodString;
|
|
447
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
448
|
+
imagePlaceholderUrl: z.ZodString;
|
|
449
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
450
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
}, z.core.$strip>;
|
|
454
|
+
export declare const GetAuthenticatedUserWithUserFollowingOutputSchema: z.ZodObject<{
|
|
455
|
+
id: z.ZodCUID2;
|
|
456
|
+
username: z.ZodOptional<z.ZodString>;
|
|
457
|
+
email: z.ZodString;
|
|
458
|
+
name: z.ZodOptional<z.ZodString>;
|
|
459
|
+
image: z.ZodOptional<z.ZodString>;
|
|
460
|
+
role: z.ZodEnum<{
|
|
461
|
+
CREATIVE: "CREATIVE";
|
|
462
|
+
BRAND: "BRAND";
|
|
463
|
+
INVESTOR: "INVESTOR";
|
|
464
|
+
ADMIN: "ADMIN";
|
|
465
|
+
}>;
|
|
466
|
+
following: z.ZodArray<z.ZodObject<{
|
|
467
|
+
id: z.ZodCUID2;
|
|
468
|
+
username: z.ZodOptional<z.ZodString>;
|
|
469
|
+
email: z.ZodString;
|
|
470
|
+
name: z.ZodOptional<z.ZodString>;
|
|
471
|
+
image: z.ZodOptional<z.ZodString>;
|
|
472
|
+
role: z.ZodEnum<{
|
|
473
|
+
CREATIVE: "CREATIVE";
|
|
474
|
+
BRAND: "BRAND";
|
|
475
|
+
INVESTOR: "INVESTOR";
|
|
476
|
+
ADMIN: "ADMIN";
|
|
477
|
+
}>;
|
|
478
|
+
}, z.core.$strip>>;
|
|
479
|
+
}, z.core.$strip>;
|
|
480
|
+
export declare const GetAuthenticatedUserWithUserFollowersOutputSchema: z.ZodObject<{
|
|
481
|
+
id: z.ZodCUID2;
|
|
482
|
+
username: z.ZodOptional<z.ZodString>;
|
|
483
|
+
email: z.ZodString;
|
|
484
|
+
name: z.ZodOptional<z.ZodString>;
|
|
485
|
+
image: z.ZodOptional<z.ZodString>;
|
|
486
|
+
role: z.ZodEnum<{
|
|
487
|
+
CREATIVE: "CREATIVE";
|
|
488
|
+
BRAND: "BRAND";
|
|
489
|
+
INVESTOR: "INVESTOR";
|
|
490
|
+
ADMIN: "ADMIN";
|
|
491
|
+
}>;
|
|
492
|
+
followers: z.ZodArray<z.ZodObject<{
|
|
493
|
+
id: z.ZodCUID2;
|
|
494
|
+
username: z.ZodOptional<z.ZodString>;
|
|
495
|
+
email: z.ZodString;
|
|
496
|
+
name: z.ZodOptional<z.ZodString>;
|
|
497
|
+
image: z.ZodOptional<z.ZodString>;
|
|
498
|
+
role: z.ZodEnum<{
|
|
499
|
+
CREATIVE: "CREATIVE";
|
|
500
|
+
BRAND: "BRAND";
|
|
501
|
+
INVESTOR: "INVESTOR";
|
|
502
|
+
ADMIN: "ADMIN";
|
|
503
|
+
}>;
|
|
504
|
+
}, z.core.$strip>>;
|
|
505
|
+
}, z.core.$strip>;
|
package/dist/schemas/user.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserEntitySchema = exports.MinimalUserSchema = exports.BaseUserEntitySchema = exports.UserSocialGraphEntitySchema = void 0;
|
|
3
|
+
exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.GetAuthenticatedUserProfileOutputSchema = exports.GetAuthenticatedUserOutputSchema = exports.GetUserFollowersOutputSchema = exports.GetUserFollowingOutputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.GetUserFollowersInputSchema = exports.GetUserFollowingInputSchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserProfileEntitySchema = exports.UserEntitySchema = exports.MinimalUserSchema = exports.BaseUserEntitySchema = exports.UserSocialGraphEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const project_1 = require("./project");
|
|
@@ -93,6 +93,14 @@ exports.UserWithProjectBookmarksEntitySchema = zod_openapi_1.z
|
|
|
93
93
|
})),
|
|
94
94
|
})
|
|
95
95
|
.openapi("UserWithProjectBookmarksEntity");
|
|
96
|
+
exports.GetUserFollowingInputSchema = zod_openapi_1.z.object({
|
|
97
|
+
searchQuery: zod_openapi_1.z.string().optional().openapi({ example: "design systems" }),
|
|
98
|
+
offset: zod_openapi_1.z.number().int().nonnegative().optional().openapi({ example: 20 }),
|
|
99
|
+
});
|
|
100
|
+
exports.GetUserFollowersInputSchema = zod_openapi_1.z.object({
|
|
101
|
+
searchQuery: zod_openapi_1.z.string().optional().openapi({ example: "design systems" }),
|
|
102
|
+
offset: zod_openapi_1.z.number().int().nonnegative().optional().openapi({ example: 20 }),
|
|
103
|
+
});
|
|
96
104
|
exports.UserWithFollowingEntitySchema = exports.MinimalUserSchema.extend({
|
|
97
105
|
following: zod_openapi_1.z
|
|
98
106
|
.array(exports.MinimalUserSchema)
|
|
@@ -103,3 +111,15 @@ exports.UserWithFollowersEntitySchema = exports.MinimalUserSchema.extend({
|
|
|
103
111
|
.array(exports.MinimalUserSchema)
|
|
104
112
|
.openapi({ description: "List of users who follow this user." }),
|
|
105
113
|
}).openapi("UserWithFollowersEntity");
|
|
114
|
+
exports.GetUserFollowingOutputSchema = zod_openapi_1.z.object({
|
|
115
|
+
results: exports.UserWithFollowingEntitySchema,
|
|
116
|
+
});
|
|
117
|
+
exports.GetUserFollowersOutputSchema = zod_openapi_1.z.object({
|
|
118
|
+
results: exports.UserWithFollowersEntitySchema,
|
|
119
|
+
});
|
|
120
|
+
exports.GetAuthenticatedUserOutputSchema = exports.UserEntitySchema;
|
|
121
|
+
exports.GetAuthenticatedUserProfileOutputSchema = exports.UserProfileEntitySchema;
|
|
122
|
+
exports.GetAuthenticatedUserWithProjectsOutputSchema = exports.UserWithProjectsEntitySchema;
|
|
123
|
+
exports.GetAuthenticatedUserWithProjectBookmarksOutputSchema = exports.UserWithProjectBookmarksEntitySchema;
|
|
124
|
+
exports.GetAuthenticatedUserWithUserFollowingOutputSchema = exports.UserWithFollowingEntitySchema;
|
|
125
|
+
exports.GetAuthenticatedUserWithUserFollowersOutputSchema = exports.UserWithFollowersEntitySchema;
|
package/package.json
CHANGED
package/src/schemas/user.ts
CHANGED
|
@@ -105,7 +105,16 @@ export const UserWithProjectBookmarksEntitySchema = z
|
|
|
105
105
|
),
|
|
106
106
|
})
|
|
107
107
|
.openapi("UserWithProjectBookmarksEntity");
|
|
108
|
+
|
|
109
|
+
export const GetUserFollowingInputSchema = z.object({
|
|
110
|
+
searchQuery: z.string().optional().openapi({ example: "design systems" }),
|
|
111
|
+
offset: z.number().int().nonnegative().optional().openapi({ example: 20 }),
|
|
112
|
+
});
|
|
108
113
|
|
|
114
|
+
export const GetUserFollowersInputSchema = z.object({
|
|
115
|
+
searchQuery: z.string().optional().openapi({ example: "design systems" }),
|
|
116
|
+
offset: z.number().int().nonnegative().optional().openapi({ example: 20 }),
|
|
117
|
+
});
|
|
109
118
|
export const UserWithFollowingEntitySchema = MinimalUserSchema.extend({
|
|
110
119
|
following: z
|
|
111
120
|
.array(MinimalUserSchema)
|
|
@@ -117,3 +126,29 @@ export const UserWithFollowersEntitySchema = MinimalUserSchema.extend({
|
|
|
117
126
|
.array(MinimalUserSchema)
|
|
118
127
|
.openapi({ description: "List of users who follow this user." }),
|
|
119
128
|
}).openapi("UserWithFollowersEntity");
|
|
129
|
+
|
|
130
|
+
export const GetUserFollowingOutputSchema = z.object({
|
|
131
|
+
results: UserWithFollowingEntitySchema,
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
export const GetUserFollowersOutputSchema = z.object({
|
|
135
|
+
results: UserWithFollowersEntitySchema,
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
export const GetAuthenticatedUserOutputSchema = UserEntitySchema;
|
|
141
|
+
|
|
142
|
+
export const GetAuthenticatedUserProfileOutputSchema = UserProfileEntitySchema;
|
|
143
|
+
|
|
144
|
+
export const GetAuthenticatedUserWithProjectsOutputSchema =
|
|
145
|
+
UserWithProjectsEntitySchema;
|
|
146
|
+
|
|
147
|
+
export const GetAuthenticatedUserWithProjectBookmarksOutputSchema =
|
|
148
|
+
UserWithProjectBookmarksEntitySchema;
|
|
149
|
+
|
|
150
|
+
export const GetAuthenticatedUserWithUserFollowingOutputSchema =
|
|
151
|
+
UserWithFollowingEntitySchema;
|
|
152
|
+
|
|
153
|
+
export const GetAuthenticatedUserWithUserFollowersOutputSchema =
|
|
154
|
+
UserWithFollowersEntitySchema;
|