@zyacreatives/shared 2.5.79 → 2.5.80
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.
|
@@ -200,6 +200,7 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
|
|
|
200
200
|
itemContent: z.ZodOptional<z.ZodString>;
|
|
201
201
|
itemImgUrl: z.ZodOptional<z.ZodString>;
|
|
202
202
|
itemStatus: z.ZodOptional<z.ZodString>;
|
|
203
|
+
signalProjectId: z.ZodOptional<z.ZodString>;
|
|
203
204
|
}, z.core.$strip>;
|
|
204
205
|
export type NotificationDetailsEntity = z.infer<typeof NotificationDetailsEntitySchema>;
|
|
205
206
|
export declare const NotificationTabSchema: z.ZodEnum<{
|
|
@@ -402,6 +403,7 @@ export declare const NotificationInboxTabSchema: z.ZodEnum<{
|
|
|
402
403
|
following: "following";
|
|
403
404
|
all: "all";
|
|
404
405
|
archived: "archived";
|
|
406
|
+
signals: "signals";
|
|
405
407
|
}>;
|
|
406
408
|
export type NotificationInboxTab = z.infer<typeof NotificationInboxTabSchema>;
|
|
407
409
|
export declare const NotificationInboxCategorySchema: z.ZodEnum<{
|
|
@@ -410,6 +412,7 @@ export declare const NotificationInboxCategorySchema: z.ZodEnum<{
|
|
|
410
412
|
jobs: "jobs";
|
|
411
413
|
following: "following";
|
|
412
414
|
system: "system";
|
|
415
|
+
signals: "signals";
|
|
413
416
|
marketplace: "marketplace";
|
|
414
417
|
}>;
|
|
415
418
|
export declare const NotificationInboxKindSchema: z.ZodEnum<{
|
|
@@ -432,6 +435,10 @@ export declare const NotificationInboxKindSchema: z.ZodEnum<{
|
|
|
432
435
|
product_approved: "product_approved";
|
|
433
436
|
marketplace_drop: "marketplace_drop";
|
|
434
437
|
friend_product_added: "friend_product_added";
|
|
438
|
+
investment_signal_created: "investment_signal_created";
|
|
439
|
+
investment_signal_accepted: "investment_signal_accepted";
|
|
440
|
+
investment_signal_declined: "investment_signal_declined";
|
|
441
|
+
investment_signal_archived: "investment_signal_archived";
|
|
435
442
|
}>;
|
|
436
443
|
export declare const NotificationInboxItemSchema: z.ZodObject<{
|
|
437
444
|
id: z.ZodString;
|
|
@@ -455,6 +462,10 @@ export declare const NotificationInboxItemSchema: z.ZodObject<{
|
|
|
455
462
|
product_approved: "product_approved";
|
|
456
463
|
marketplace_drop: "marketplace_drop";
|
|
457
464
|
friend_product_added: "friend_product_added";
|
|
465
|
+
investment_signal_created: "investment_signal_created";
|
|
466
|
+
investment_signal_accepted: "investment_signal_accepted";
|
|
467
|
+
investment_signal_declined: "investment_signal_declined";
|
|
468
|
+
investment_signal_archived: "investment_signal_archived";
|
|
458
469
|
}>;
|
|
459
470
|
tab: z.ZodEnum<{
|
|
460
471
|
comments: "comments";
|
|
@@ -462,6 +473,7 @@ export declare const NotificationInboxItemSchema: z.ZodObject<{
|
|
|
462
473
|
jobs: "jobs";
|
|
463
474
|
following: "following";
|
|
464
475
|
system: "system";
|
|
476
|
+
signals: "signals";
|
|
465
477
|
marketplace: "marketplace";
|
|
466
478
|
}>;
|
|
467
479
|
isRead: z.ZodBoolean;
|
|
@@ -530,6 +542,7 @@ export declare const NotificationInboxItemSchema: z.ZodObject<{
|
|
|
530
542
|
JOB: "JOB";
|
|
531
543
|
POST: "POST";
|
|
532
544
|
PRODUCT: "PRODUCT";
|
|
545
|
+
SIGNAL: "SIGNAL";
|
|
533
546
|
COMMENT: "COMMENT";
|
|
534
547
|
JOB_APPLICATION: "JOB_APPLICATION";
|
|
535
548
|
CHAT: "CHAT";
|
|
@@ -641,6 +654,7 @@ export declare const ListNotificationInboxInputSchema: z.ZodObject<{
|
|
|
641
654
|
following: "following";
|
|
642
655
|
all: "all";
|
|
643
656
|
archived: "archived";
|
|
657
|
+
signals: "signals";
|
|
644
658
|
}>>>;
|
|
645
659
|
unreadOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
646
660
|
cursor: z.ZodOptional<z.ZodString>;
|
|
@@ -741,6 +755,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
|
|
|
741
755
|
itemContent: z.ZodOptional<z.ZodString>;
|
|
742
756
|
itemImgUrl: z.ZodOptional<z.ZodString>;
|
|
743
757
|
itemStatus: z.ZodOptional<z.ZodString>;
|
|
758
|
+
signalProjectId: z.ZodOptional<z.ZodString>;
|
|
744
759
|
}, z.core.$strip>>;
|
|
745
760
|
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
746
761
|
id: z.ZodString;
|
|
@@ -913,6 +928,10 @@ export declare const ListNotificationInboxOutputSchema: z.ZodObject<{
|
|
|
913
928
|
product_approved: "product_approved";
|
|
914
929
|
marketplace_drop: "marketplace_drop";
|
|
915
930
|
friend_product_added: "friend_product_added";
|
|
931
|
+
investment_signal_created: "investment_signal_created";
|
|
932
|
+
investment_signal_accepted: "investment_signal_accepted";
|
|
933
|
+
investment_signal_declined: "investment_signal_declined";
|
|
934
|
+
investment_signal_archived: "investment_signal_archived";
|
|
916
935
|
}>;
|
|
917
936
|
tab: z.ZodEnum<{
|
|
918
937
|
comments: "comments";
|
|
@@ -920,6 +939,7 @@ export declare const ListNotificationInboxOutputSchema: z.ZodObject<{
|
|
|
920
939
|
jobs: "jobs";
|
|
921
940
|
following: "following";
|
|
922
941
|
system: "system";
|
|
942
|
+
signals: "signals";
|
|
923
943
|
marketplace: "marketplace";
|
|
924
944
|
}>;
|
|
925
945
|
isRead: z.ZodBoolean;
|
|
@@ -988,6 +1008,7 @@ export declare const ListNotificationInboxOutputSchema: z.ZodObject<{
|
|
|
988
1008
|
JOB: "JOB";
|
|
989
1009
|
POST: "POST";
|
|
990
1010
|
PRODUCT: "PRODUCT";
|
|
1011
|
+
SIGNAL: "SIGNAL";
|
|
991
1012
|
COMMENT: "COMMENT";
|
|
992
1013
|
JOB_APPLICATION: "JOB_APPLICATION";
|
|
993
1014
|
CHAT: "CHAT";
|
|
@@ -1053,6 +1074,7 @@ export declare const ListNotificationInboxOutputSchema: z.ZodObject<{
|
|
|
1053
1074
|
following: z.ZodOptional<z.ZodInt>;
|
|
1054
1075
|
likes: z.ZodOptional<z.ZodInt>;
|
|
1055
1076
|
comments: z.ZodOptional<z.ZodInt>;
|
|
1077
|
+
signals: z.ZodOptional<z.ZodInt>;
|
|
1056
1078
|
archived: z.ZodOptional<z.ZodInt>;
|
|
1057
1079
|
}, z.core.$strip>>;
|
|
1058
1080
|
}, z.core.$strip>;
|
|
@@ -41,6 +41,7 @@ exports.NotificationDetailsEntitySchema = exports.NotificationEntitySchema.exten
|
|
|
41
41
|
itemContent: zod_openapi_1.z.string().optional(),
|
|
42
42
|
itemImgUrl: zod_openapi_1.z.string().optional(),
|
|
43
43
|
itemStatus: zod_openapi_1.z.string().optional(),
|
|
44
|
+
signalProjectId: zod_openapi_1.z.string().optional(),
|
|
44
45
|
});
|
|
45
46
|
exports.NotificationTabSchema = zod_openapi_1.z.enum([
|
|
46
47
|
"all",
|
|
@@ -106,6 +107,7 @@ exports.NotificationInboxTabSchema = zod_openapi_1.z.enum([
|
|
|
106
107
|
"following",
|
|
107
108
|
"likes",
|
|
108
109
|
"comments",
|
|
110
|
+
"signals",
|
|
109
111
|
"archived",
|
|
110
112
|
]);
|
|
111
113
|
exports.NotificationInboxCategorySchema = zod_openapi_1.z.enum([
|
|
@@ -115,6 +117,7 @@ exports.NotificationInboxCategorySchema = zod_openapi_1.z.enum([
|
|
|
115
117
|
"system",
|
|
116
118
|
"jobs",
|
|
117
119
|
"marketplace",
|
|
120
|
+
"signals",
|
|
118
121
|
]);
|
|
119
122
|
exports.NotificationInboxKindSchema = zod_openapi_1.z.enum([
|
|
120
123
|
"account_verified",
|
|
@@ -136,6 +139,10 @@ exports.NotificationInboxKindSchema = zod_openapi_1.z.enum([
|
|
|
136
139
|
"product_approved",
|
|
137
140
|
"marketplace_drop",
|
|
138
141
|
"friend_product_added",
|
|
142
|
+
"investment_signal_created",
|
|
143
|
+
"investment_signal_accepted",
|
|
144
|
+
"investment_signal_declined",
|
|
145
|
+
"investment_signal_archived",
|
|
139
146
|
]);
|
|
140
147
|
exports.NotificationInboxItemSchema = zod_openapi_1.z
|
|
141
148
|
.object({
|
|
@@ -196,6 +203,7 @@ exports.NotificationInboxItemSchema = zod_openapi_1.z
|
|
|
196
203
|
"PRODUCT",
|
|
197
204
|
"CHAT",
|
|
198
205
|
"SETTINGS",
|
|
206
|
+
"SIGNAL",
|
|
199
207
|
]),
|
|
200
208
|
entityId: zod_openapi_1.z.string().optional(),
|
|
201
209
|
})
|
|
@@ -294,6 +302,7 @@ exports.ListNotificationInboxOutputSchema = zod_openapi_1.z.object({
|
|
|
294
302
|
following: zod_openapi_1.z.int().optional(),
|
|
295
303
|
likes: zod_openapi_1.z.int().optional(),
|
|
296
304
|
comments: zod_openapi_1.z.int().optional(),
|
|
305
|
+
signals: zod_openapi_1.z.int().optional(),
|
|
297
306
|
archived: zod_openapi_1.z.int().optional(),
|
|
298
307
|
})
|
|
299
308
|
.optional(),
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
/**
|
|
3
|
-
* --------------------------------
|
|
4
|
-
* SHARED
|
|
5
|
-
* --------------------------------
|
|
6
|
-
*/
|
|
7
2
|
export declare const ProductDiscountEntitySchema: z.ZodObject<{
|
|
8
3
|
discountType: z.ZodEnum<{
|
|
9
4
|
readonly FIXED_AMOUNT: "Fixed Amount";
|
package/dist/schemas/product.js
CHANGED
|
@@ -4,11 +4,6 @@ exports.ProductPurchaseSnapshotSchema = exports.SellerDashboardStatsOutputSchema
|
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const file_1 = require("./file");
|
|
7
|
-
/**
|
|
8
|
-
* --------------------------------
|
|
9
|
-
* SHARED
|
|
10
|
-
* --------------------------------
|
|
11
|
-
*/
|
|
12
7
|
exports.ProductDiscountEntitySchema = zod_openapi_1.z.object({
|
|
13
8
|
discountType: zod_openapi_1.z.enum(constants_1.DISCOUNT_TYPES),
|
|
14
9
|
amount: zod_openapi_1.z.number().int().min(0),
|
package/package.json
CHANGED
|
@@ -47,10 +47,11 @@ export const NotificationDetailsEntitySchema = NotificationEntitySchema.extend({
|
|
|
47
47
|
actor: MinimalUserSchema,
|
|
48
48
|
recipient: MinimalUserSchema,
|
|
49
49
|
itemTitle: z.string().optional(),
|
|
50
|
-
itemContent: z.string().optional(),
|
|
51
|
-
itemImgUrl: z.string().optional(),
|
|
52
|
-
itemStatus: z.string().optional(),
|
|
53
|
-
|
|
50
|
+
itemContent: z.string().optional(),
|
|
51
|
+
itemImgUrl: z.string().optional(),
|
|
52
|
+
itemStatus: z.string().optional(),
|
|
53
|
+
signalProjectId: z.string().optional(),
|
|
54
|
+
});
|
|
54
55
|
|
|
55
56
|
export type NotificationDetailsEntity = z.infer<
|
|
56
57
|
typeof NotificationDetailsEntitySchema
|
|
@@ -132,6 +133,7 @@ export const NotificationInboxTabSchema = z.enum([
|
|
|
132
133
|
"following",
|
|
133
134
|
"likes",
|
|
134
135
|
"comments",
|
|
136
|
+
"signals",
|
|
135
137
|
"archived",
|
|
136
138
|
]);
|
|
137
139
|
|
|
@@ -146,6 +148,7 @@ export const NotificationInboxCategorySchema = z.enum([
|
|
|
146
148
|
"system",
|
|
147
149
|
"jobs",
|
|
148
150
|
"marketplace",
|
|
151
|
+
"signals",
|
|
149
152
|
]);
|
|
150
153
|
|
|
151
154
|
export const NotificationInboxKindSchema = z.enum([
|
|
@@ -168,6 +171,10 @@ export const NotificationInboxKindSchema = z.enum([
|
|
|
168
171
|
"product_approved",
|
|
169
172
|
"marketplace_drop",
|
|
170
173
|
"friend_product_added",
|
|
174
|
+
"investment_signal_created",
|
|
175
|
+
"investment_signal_accepted",
|
|
176
|
+
"investment_signal_declined",
|
|
177
|
+
"investment_signal_archived",
|
|
171
178
|
]);
|
|
172
179
|
|
|
173
180
|
export const NotificationInboxItemSchema = z
|
|
@@ -237,6 +244,7 @@ export const NotificationInboxItemSchema = z
|
|
|
237
244
|
"PRODUCT",
|
|
238
245
|
"CHAT",
|
|
239
246
|
"SETTINGS",
|
|
247
|
+
"SIGNAL",
|
|
240
248
|
]),
|
|
241
249
|
entityId: z.string().optional(),
|
|
242
250
|
})
|
|
@@ -382,6 +390,7 @@ export const ListNotificationInboxOutputSchema = z.object({
|
|
|
382
390
|
following: z.int().optional(),
|
|
383
391
|
likes: z.int().optional(),
|
|
384
392
|
comments: z.int().optional(),
|
|
393
|
+
signals: z.int().optional(),
|
|
385
394
|
archived: z.int().optional(),
|
|
386
395
|
})
|
|
387
396
|
.optional(),
|
package/src/schemas/product.ts
CHANGED
|
@@ -9,11 +9,7 @@ import {
|
|
|
9
9
|
|
|
10
10
|
import { CreateFileInputSchema, FileEntitySchema } from "./file";
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
* --------------------------------
|
|
14
|
-
* SHARED
|
|
15
|
-
* --------------------------------
|
|
16
|
-
*/
|
|
12
|
+
|
|
17
13
|
|
|
18
14
|
export const ProductDiscountEntitySchema = z.object({
|
|
19
15
|
discountType: z.enum(DISCOUNT_TYPES),
|
|
@@ -256,20 +252,20 @@ export const SearchProductInputSchema = z.object({
|
|
|
256
252
|
|
|
257
253
|
export type SearchProductInput = z.infer<typeof SearchProductInputSchema>;
|
|
258
254
|
|
|
259
|
-
export const ProductDiscountCheckInputSchema = z.object({
|
|
260
|
-
discountCode: z.string(),
|
|
261
|
-
productId: z.cuid2(),
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
export type ProductDiscountCheckInput = z.infer<
|
|
265
|
-
typeof ProductDiscountCheckInputSchema
|
|
266
|
-
>;
|
|
267
|
-
|
|
268
|
-
export const ProductIdInputSchema = z.object({
|
|
269
|
-
productId: z.cuid2().openapi({ example: "ckj1a2b3c0000xyz" }),
|
|
270
|
-
});
|
|
271
|
-
|
|
272
|
-
export type ProductIdInput = z.infer<typeof ProductIdInputSchema>;
|
|
255
|
+
export const ProductDiscountCheckInputSchema = z.object({
|
|
256
|
+
discountCode: z.string(),
|
|
257
|
+
productId: z.cuid2(),
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
export type ProductDiscountCheckInput = z.infer<
|
|
261
|
+
typeof ProductDiscountCheckInputSchema
|
|
262
|
+
>;
|
|
263
|
+
|
|
264
|
+
export const ProductIdInputSchema = z.object({
|
|
265
|
+
productId: z.cuid2().openapi({ example: "ckj1a2b3c0000xyz" }),
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
export type ProductIdInput = z.infer<typeof ProductIdInputSchema>;
|
|
273
269
|
|
|
274
270
|
export const RevenueChartInputSchema = z.object({
|
|
275
271
|
startDate: z.string().optional(),
|
|
@@ -451,4 +447,4 @@ export const ProductPurchaseSnapshotSchema = z.object({
|
|
|
451
447
|
|
|
452
448
|
export type ProductPurchaseSnapshot = z.infer<
|
|
453
449
|
typeof ProductPurchaseSnapshotSchema
|
|
454
|
-
>;
|
|
450
|
+
>;
|