controlresell 2.1.2 → 2.1.5
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/package.json +2 -2
- package/src/com/controlresell/models/application/ControlResellEnvironment.d.ts +1 -1
- package/src/com/controlresell/models/application/ControlResellEnvironment.js +1 -1
- package/src/com/controlresell/models/application/ControlResellEnvironment.ts +1 -1
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.d.ts +1 -1
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.js +1 -1
- package/src/com/controlresell/models/application/RabbitMQRoutingKey.ts +1 -1
- package/src/com/controlresell/models/items/CreatedItems.d.ts +11 -11
- package/src/com/controlresell/models/items/Item.d.ts +7 -7
- package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +2 -2
- package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
- package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +11 -11
- package/src/com/controlresell/models/items/UpdatedItem.d.ts +11 -11
- package/src/com/controlresell/models/items/history/CreateItemHistoryPayload.d.ts +3 -3
- package/src/com/controlresell/models/items/history/ItemHistory.d.ts +3 -3
- package/src/com/controlresell/models/items/history/ItemHistoryType.d.ts +1 -1
- package/src/com/controlresell/models/items/history/ItemHistoryType.js +1 -1
- package/src/com/controlresell/models/items/history/ItemHistoryType.ts +1 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.d.ts +3 -0
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.js +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequest.ts +2 -1
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +11 -730
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.js +2 -2
- package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.ts +2 -2
- package/src/com/controlresell/models/items/platforms/PlatformInfo.d.ts +15 -0
- package/src/com/controlresell/models/items/platforms/PlatformInfo.js +9 -0
- package/src/com/controlresell/models/items/platforms/PlatformInfo.ts +8 -0
- package/src/com/controlresell/models/notifications/CreateNotificationPayload.d.ts +27 -0
- package/src/com/controlresell/models/notifications/CreateNotificationPayload.js +13 -0
- package/src/com/controlresell/models/notifications/CreateNotificationPayload.ts +12 -0
- package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.d.ts +9 -0
- package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.js +7 -0
- package/src/com/controlresell/models/notifications/CreateNotificationTokenPayload.ts +6 -0
- package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.d.ts +24 -0
- package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.js +12 -0
- package/src/com/controlresell/models/notifications/CreateUserNotificationPayload.ts +11 -0
- package/src/com/controlresell/models/notifications/NotificationToken.d.ts +15 -0
- package/src/com/controlresell/models/notifications/NotificationToken.js +9 -0
- package/src/com/controlresell/models/notifications/NotificationToken.ts +8 -0
- package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +7 -0
- package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +9 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +5 -0
- package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +7 -0
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +0 -33
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +1 -3
- package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +1 -3
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.d.ts +3 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.js +1 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.ts +1 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.d.ts +3 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.js +2 -1
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.ts +2 -1
- package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.d.ts +3 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.js +1 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.ts +1 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.d.ts +3 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.js +1 -0
- package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.ts +1 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +11 -11
- package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +11 -11
- package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +3 -3
- package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
- package/src/index.d.ts +5 -0
- package/src/index.js +5 -0
- package/src/index.ts +5 -0
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ItemOnPlatformsRequestWithItemSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const ItemOnPlatformsRequest_1 = require("./ItemOnPlatformsRequest");
|
|
6
|
-
const Item_1 = require("../Item");
|
|
7
6
|
exports.ItemOnPlatformsRequestWithItemSchema = zod_1.z.object({
|
|
8
7
|
request: ItemOnPlatformsRequest_1.ItemOnPlatformsRequestSchema,
|
|
9
|
-
|
|
8
|
+
itemId: zod_1.z.number(),
|
|
9
|
+
userId: zod_1.z.number()
|
|
10
10
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
2
|
import {ItemOnPlatformsRequestSchema} from "./ItemOnPlatformsRequest"
|
|
3
|
-
import {ItemSchema} from "../Item"
|
|
4
3
|
|
|
5
4
|
export const ItemOnPlatformsRequestWithItemSchema = z.object({
|
|
6
5
|
request: ItemOnPlatformsRequestSchema,
|
|
7
|
-
|
|
6
|
+
itemId: z.number(),
|
|
7
|
+
userId: z.number()
|
|
8
8
|
})
|
|
9
9
|
export type ItemOnPlatformsRequestWithItem = z.infer<typeof ItemOnPlatformsRequestWithItemSchema>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PlatformInfoSchema: z.ZodObject<{
|
|
3
|
+
platformId: z.ZodString;
|
|
4
|
+
platformUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
platformPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
platformId: string;
|
|
8
|
+
platformUrl?: string | null | undefined;
|
|
9
|
+
platformPrice?: number | null | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
platformId: string;
|
|
12
|
+
platformUrl?: string | null | undefined;
|
|
13
|
+
platformPrice?: number | null | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type PlatformInfo = z.infer<typeof PlatformInfoSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlatformInfoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PlatformInfoSchema = zod_1.z.object({
|
|
6
|
+
platformId: zod_1.z.string(),
|
|
7
|
+
platformUrl: zod_1.z.string().nullish(),
|
|
8
|
+
platformPrice: zod_1.z.number().nullish()
|
|
9
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreateNotificationPayloadSchema: z.ZodObject<{
|
|
3
|
+
token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
topic: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
title: z.ZodString;
|
|
6
|
+
body: z.ZodString;
|
|
7
|
+
titleArgs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
8
|
+
bodyArgs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
9
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
title: string;
|
|
12
|
+
body: string;
|
|
13
|
+
data?: Record<string, string> | null | undefined;
|
|
14
|
+
token?: string | null | undefined;
|
|
15
|
+
topic?: string | null | undefined;
|
|
16
|
+
titleArgs?: string[] | null | undefined;
|
|
17
|
+
bodyArgs?: string[] | null | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
title: string;
|
|
20
|
+
body: string;
|
|
21
|
+
data?: Record<string, string> | null | undefined;
|
|
22
|
+
token?: string | null | undefined;
|
|
23
|
+
topic?: string | null | undefined;
|
|
24
|
+
titleArgs?: string[] | null | undefined;
|
|
25
|
+
bodyArgs?: string[] | null | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export type CreateNotificationPayload = z.infer<typeof CreateNotificationPayloadSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateNotificationPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.CreateNotificationPayloadSchema = zod_1.z.object({
|
|
6
|
+
token: zod_1.z.string().nullish(),
|
|
7
|
+
topic: zod_1.z.string().nullish(),
|
|
8
|
+
title: zod_1.z.string(),
|
|
9
|
+
body: zod_1.z.string(),
|
|
10
|
+
titleArgs: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
11
|
+
bodyArgs: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
12
|
+
data: zod_1.z.record(zod_1.z.coerce.string(), zod_1.z.string()).nullish()
|
|
13
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const CreateNotificationPayloadSchema = z.object({
|
|
4
|
+
token: z.string().nullish(),
|
|
5
|
+
topic: z.string().nullish(),
|
|
6
|
+
title: z.string(),
|
|
7
|
+
body: z.string(),
|
|
8
|
+
titleArgs: z.array(z.string()).nullish(),
|
|
9
|
+
bodyArgs: z.array(z.string()).nullish(),
|
|
10
|
+
data: z.record(z.coerce.string(), z.string()).nullish()
|
|
11
|
+
})
|
|
12
|
+
export type CreateNotificationPayload = z.infer<typeof CreateNotificationPayloadSchema>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreateNotificationTokenPayloadSchema: z.ZodObject<{
|
|
3
|
+
token: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
token: string;
|
|
6
|
+
}, {
|
|
7
|
+
token: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type CreateNotificationTokenPayload = z.infer<typeof CreateNotificationTokenPayloadSchema>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreateUserNotificationPayloadSchema: z.ZodObject<{
|
|
3
|
+
userId: z.ZodNumber;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
body: z.ZodString;
|
|
6
|
+
titleArgs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
7
|
+
bodyArgs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
8
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
title: string;
|
|
11
|
+
userId: number;
|
|
12
|
+
body: string;
|
|
13
|
+
data?: Record<string, string> | null | undefined;
|
|
14
|
+
titleArgs?: string[] | null | undefined;
|
|
15
|
+
bodyArgs?: string[] | null | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
title: string;
|
|
18
|
+
userId: number;
|
|
19
|
+
body: string;
|
|
20
|
+
data?: Record<string, string> | null | undefined;
|
|
21
|
+
titleArgs?: string[] | null | undefined;
|
|
22
|
+
bodyArgs?: string[] | null | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export type CreateUserNotificationPayload = z.infer<typeof CreateUserNotificationPayloadSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateUserNotificationPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.CreateUserNotificationPayloadSchema = zod_1.z.object({
|
|
6
|
+
userId: zod_1.z.number(),
|
|
7
|
+
title: zod_1.z.string(),
|
|
8
|
+
body: zod_1.z.string(),
|
|
9
|
+
titleArgs: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
10
|
+
bodyArgs: zod_1.z.array(zod_1.z.string()).nullish(),
|
|
11
|
+
data: zod_1.z.record(zod_1.z.coerce.string(), zod_1.z.string()).nullish()
|
|
12
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const CreateUserNotificationPayloadSchema = z.object({
|
|
4
|
+
userId: z.number(),
|
|
5
|
+
title: z.string(),
|
|
6
|
+
body: z.string(),
|
|
7
|
+
titleArgs: z.array(z.string()).nullish(),
|
|
8
|
+
bodyArgs: z.array(z.string()).nullish(),
|
|
9
|
+
data: z.record(z.coerce.string(), z.string()).nullish()
|
|
10
|
+
})
|
|
11
|
+
export type CreateUserNotificationPayload = z.infer<typeof CreateUserNotificationPayloadSchema>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const NotificationTokenSchema: z.ZodObject<{
|
|
3
|
+
token: z.ZodString;
|
|
4
|
+
userId: z.ZodNumber;
|
|
5
|
+
expiresAt: z.ZodDate;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
userId: number;
|
|
8
|
+
expiresAt: Date;
|
|
9
|
+
token: string;
|
|
10
|
+
}, {
|
|
11
|
+
userId: number;
|
|
12
|
+
expiresAt: Date;
|
|
13
|
+
token: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type NotificationToken = z.infer<typeof NotificationTokenSchema>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotificationTokenSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.NotificationTokenSchema = zod_1.z.object({
|
|
6
|
+
token: zod_1.z.string(),
|
|
7
|
+
userId: zod_1.z.number(),
|
|
8
|
+
expiresAt: zod_1.z.coerce.date()
|
|
9
|
+
});
|
|
@@ -35,6 +35,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
35
35
|
id: z.ZodString;
|
|
36
36
|
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
messageId: z.ZodString;
|
|
38
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
39
|
price: z.ZodNumber;
|
|
39
40
|
originalPrice: z.ZodNumber;
|
|
40
41
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
|
|
@@ -44,6 +45,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
44
45
|
price: number;
|
|
45
46
|
originalPrice: number;
|
|
46
47
|
messageId: string;
|
|
48
|
+
transactionId?: string | null | undefined;
|
|
47
49
|
platformOfferId?: string | null | undefined;
|
|
48
50
|
}, {
|
|
49
51
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
@@ -51,6 +53,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
51
53
|
price: number;
|
|
52
54
|
originalPrice: number;
|
|
53
55
|
messageId: string;
|
|
56
|
+
transactionId?: string | null | undefined;
|
|
54
57
|
platformOfferId?: string | null | undefined;
|
|
55
58
|
}>>>;
|
|
56
59
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -111,6 +114,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
111
114
|
price: number;
|
|
112
115
|
originalPrice: number;
|
|
113
116
|
messageId: string;
|
|
117
|
+
transactionId?: string | null | undefined;
|
|
114
118
|
platformOfferId?: string | null | undefined;
|
|
115
119
|
} | null | undefined;
|
|
116
120
|
files?: {
|
|
@@ -139,6 +143,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
139
143
|
price: number;
|
|
140
144
|
originalPrice: number;
|
|
141
145
|
messageId: string;
|
|
146
|
+
transactionId?: string | null | undefined;
|
|
142
147
|
platformOfferId?: string | null | undefined;
|
|
143
148
|
} | null | undefined;
|
|
144
149
|
files?: {
|
|
@@ -241,6 +246,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
241
246
|
price: number;
|
|
242
247
|
originalPrice: number;
|
|
243
248
|
messageId: string;
|
|
249
|
+
transactionId?: string | null | undefined;
|
|
244
250
|
platformOfferId?: string | null | undefined;
|
|
245
251
|
} | null | undefined;
|
|
246
252
|
files?: {
|
|
@@ -299,6 +305,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
299
305
|
price: number;
|
|
300
306
|
originalPrice: number;
|
|
301
307
|
messageId: string;
|
|
308
|
+
transactionId?: string | null | undefined;
|
|
302
309
|
platformOfferId?: string | null | undefined;
|
|
303
310
|
} | null | undefined;
|
|
304
311
|
files?: {
|
|
@@ -38,6 +38,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
38
38
|
id: z.ZodString;
|
|
39
39
|
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
40
|
messageId: z.ZodString;
|
|
41
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
42
|
price: z.ZodNumber;
|
|
42
43
|
originalPrice: z.ZodNumber;
|
|
43
44
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
|
|
@@ -47,6 +48,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
47
48
|
price: number;
|
|
48
49
|
originalPrice: number;
|
|
49
50
|
messageId: string;
|
|
51
|
+
transactionId?: string | null | undefined;
|
|
50
52
|
platformOfferId?: string | null | undefined;
|
|
51
53
|
}, {
|
|
52
54
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
@@ -54,6 +56,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
54
56
|
price: number;
|
|
55
57
|
originalPrice: number;
|
|
56
58
|
messageId: string;
|
|
59
|
+
transactionId?: string | null | undefined;
|
|
57
60
|
platformOfferId?: string | null | undefined;
|
|
58
61
|
}>>>;
|
|
59
62
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -114,6 +117,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
114
117
|
price: number;
|
|
115
118
|
originalPrice: number;
|
|
116
119
|
messageId: string;
|
|
120
|
+
transactionId?: string | null | undefined;
|
|
117
121
|
platformOfferId?: string | null | undefined;
|
|
118
122
|
} | null | undefined;
|
|
119
123
|
files?: {
|
|
@@ -142,6 +146,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
142
146
|
price: number;
|
|
143
147
|
originalPrice: number;
|
|
144
148
|
messageId: string;
|
|
149
|
+
transactionId?: string | null | undefined;
|
|
145
150
|
platformOfferId?: string | null | undefined;
|
|
146
151
|
} | null | undefined;
|
|
147
152
|
files?: {
|
|
@@ -244,6 +249,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
244
249
|
price: number;
|
|
245
250
|
originalPrice: number;
|
|
246
251
|
messageId: string;
|
|
252
|
+
transactionId?: string | null | undefined;
|
|
247
253
|
platformOfferId?: string | null | undefined;
|
|
248
254
|
} | null | undefined;
|
|
249
255
|
files?: {
|
|
@@ -302,6 +308,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
302
308
|
price: number;
|
|
303
309
|
originalPrice: number;
|
|
304
310
|
messageId: string;
|
|
311
|
+
transactionId?: string | null | undefined;
|
|
305
312
|
platformOfferId?: string | null | undefined;
|
|
306
313
|
} | null | undefined;
|
|
307
314
|
files?: {
|
|
@@ -365,6 +372,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
365
372
|
price: number;
|
|
366
373
|
originalPrice: number;
|
|
367
374
|
messageId: string;
|
|
375
|
+
transactionId?: string | null | undefined;
|
|
368
376
|
platformOfferId?: string | null | undefined;
|
|
369
377
|
} | null | undefined;
|
|
370
378
|
files?: {
|
|
@@ -429,6 +437,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
429
437
|
price: number;
|
|
430
438
|
originalPrice: number;
|
|
431
439
|
messageId: string;
|
|
440
|
+
transactionId?: string | null | undefined;
|
|
432
441
|
platformOfferId?: string | null | undefined;
|
|
433
442
|
} | null | undefined;
|
|
434
443
|
files?: {
|
package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
11
11
|
id: z.ZodString;
|
|
12
12
|
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
messageId: z.ZodString;
|
|
14
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
15
|
price: z.ZodNumber;
|
|
15
16
|
originalPrice: z.ZodNumber;
|
|
16
17
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
|
|
@@ -20,6 +21,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
20
21
|
price: number;
|
|
21
22
|
originalPrice: number;
|
|
22
23
|
messageId: string;
|
|
24
|
+
transactionId?: string | null | undefined;
|
|
23
25
|
platformOfferId?: string | null | undefined;
|
|
24
26
|
}, {
|
|
25
27
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
@@ -27,6 +29,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
27
29
|
price: number;
|
|
28
30
|
originalPrice: number;
|
|
29
31
|
messageId: string;
|
|
32
|
+
transactionId?: string | null | undefined;
|
|
30
33
|
platformOfferId?: string | null | undefined;
|
|
31
34
|
}>>>;
|
|
32
35
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -87,6 +90,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
87
90
|
price: number;
|
|
88
91
|
originalPrice: number;
|
|
89
92
|
messageId: string;
|
|
93
|
+
transactionId?: string | null | undefined;
|
|
90
94
|
platformOfferId?: string | null | undefined;
|
|
91
95
|
} | null | undefined;
|
|
92
96
|
files?: {
|
|
@@ -115,6 +119,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
115
119
|
price: number;
|
|
116
120
|
originalPrice: number;
|
|
117
121
|
messageId: string;
|
|
122
|
+
transactionId?: string | null | undefined;
|
|
118
123
|
platformOfferId?: string | null | undefined;
|
|
119
124
|
} | null | undefined;
|
|
120
125
|
files?: {
|
|
@@ -13,6 +13,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
13
13
|
id: z.ZodString;
|
|
14
14
|
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
messageId: z.ZodString;
|
|
16
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
17
|
price: z.ZodNumber;
|
|
17
18
|
originalPrice: z.ZodNumber;
|
|
18
19
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
|
|
@@ -22,6 +23,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
22
23
|
price: number;
|
|
23
24
|
originalPrice: number;
|
|
24
25
|
messageId: string;
|
|
26
|
+
transactionId?: string | null | undefined;
|
|
25
27
|
platformOfferId?: string | null | undefined;
|
|
26
28
|
}, {
|
|
27
29
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
@@ -29,6 +31,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
29
31
|
price: number;
|
|
30
32
|
originalPrice: number;
|
|
31
33
|
messageId: string;
|
|
34
|
+
transactionId?: string | null | undefined;
|
|
32
35
|
platformOfferId?: string | null | undefined;
|
|
33
36
|
}>>>;
|
|
34
37
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
@@ -89,6 +92,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
89
92
|
price: number;
|
|
90
93
|
originalPrice: number;
|
|
91
94
|
messageId: string;
|
|
95
|
+
transactionId?: string | null | undefined;
|
|
92
96
|
platformOfferId?: string | null | undefined;
|
|
93
97
|
} | null | undefined;
|
|
94
98
|
files?: {
|
|
@@ -117,6 +121,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
117
121
|
price: number;
|
|
118
122
|
originalPrice: number;
|
|
119
123
|
messageId: string;
|
|
124
|
+
transactionId?: string | null | undefined;
|
|
120
125
|
platformOfferId?: string | null | undefined;
|
|
121
126
|
} | null | undefined;
|
|
122
127
|
files?: {
|
|
@@ -150,6 +155,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
150
155
|
price: number;
|
|
151
156
|
originalPrice: number;
|
|
152
157
|
messageId: string;
|
|
158
|
+
transactionId?: string | null | undefined;
|
|
153
159
|
platformOfferId?: string | null | undefined;
|
|
154
160
|
} | null | undefined;
|
|
155
161
|
files?: {
|
|
@@ -183,6 +189,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
183
189
|
price: number;
|
|
184
190
|
originalPrice: number;
|
|
185
191
|
messageId: string;
|
|
192
|
+
transactionId?: string | null | undefined;
|
|
186
193
|
platformOfferId?: string | null | undefined;
|
|
187
194
|
} | null | undefined;
|
|
188
195
|
files?: {
|
|
@@ -2,44 +2,11 @@ import { z } from "zod";
|
|
|
2
2
|
export declare const UpdateConversationMessagePayloadSchema: z.ZodObject<{
|
|
3
3
|
platformMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
4
|
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
-
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
6
|
-
id: z.ZodString;
|
|
7
|
-
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
8
|
-
path: z.ZodString;
|
|
9
|
-
signedUrl: z.ZodString;
|
|
10
|
-
createdAt: z.ZodDate;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
path: string;
|
|
13
|
-
id: string;
|
|
14
|
-
userId: string | number;
|
|
15
|
-
signedUrl: string;
|
|
16
|
-
createdAt: Date;
|
|
17
|
-
}, {
|
|
18
|
-
path: string;
|
|
19
|
-
id: string;
|
|
20
|
-
userId: string | number;
|
|
21
|
-
signedUrl: string;
|
|
22
|
-
createdAt: Date;
|
|
23
|
-
}>, "many">>>;
|
|
24
5
|
}, "strip", z.ZodTypeAny, {
|
|
25
6
|
body?: string | null | undefined;
|
|
26
|
-
files?: {
|
|
27
|
-
path: string;
|
|
28
|
-
id: string;
|
|
29
|
-
userId: string | number;
|
|
30
|
-
signedUrl: string;
|
|
31
|
-
createdAt: Date;
|
|
32
|
-
}[] | null | undefined;
|
|
33
7
|
platformMessageId?: string | null | undefined;
|
|
34
8
|
}, {
|
|
35
9
|
body?: string | null | undefined;
|
|
36
|
-
files?: {
|
|
37
|
-
path: string;
|
|
38
|
-
id: string;
|
|
39
|
-
userId: string | number;
|
|
40
|
-
signedUrl: string;
|
|
41
|
-
createdAt: Date;
|
|
42
|
-
}[] | null | undefined;
|
|
43
10
|
platformMessageId?: string | null | undefined;
|
|
44
11
|
}>;
|
|
45
12
|
export type UpdateConversationMessagePayload = z.infer<typeof UpdateConversationMessagePayloadSchema>;
|
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateConversationMessagePayloadSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const File_1 = require("../../../users/files/File");
|
|
6
5
|
exports.UpdateConversationMessagePayloadSchema = zod_1.z.object({
|
|
7
6
|
platformMessageId: zod_1.z.string().nullish(),
|
|
8
|
-
body: zod_1.z.string().nullish()
|
|
9
|
-
files: zod_1.z.array(File_1.FileSchema).nullish()
|
|
7
|
+
body: zod_1.z.string().nullish()
|
|
10
8
|
});
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
|
-
import {FileSchema} from "../../../users/files/File"
|
|
3
2
|
|
|
4
3
|
export const UpdateConversationMessagePayloadSchema = z.object({
|
|
5
4
|
platformMessageId: z.string().nullish(),
|
|
6
|
-
body: z.string().nullish()
|
|
7
|
-
files: z.array(FileSchema).nullish()
|
|
5
|
+
body: z.string().nullish()
|
|
8
6
|
})
|
|
9
7
|
export type UpdateConversationMessagePayload = z.infer<typeof UpdateConversationMessagePayloadSchema>
|
|
@@ -3,6 +3,7 @@ export declare const ConversationMessageOfferSchema: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
messageId: z.ZodString;
|
|
6
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
7
|
price: z.ZodNumber;
|
|
7
8
|
originalPrice: z.ZodNumber;
|
|
8
9
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
|
|
@@ -12,6 +13,7 @@ export declare const ConversationMessageOfferSchema: z.ZodObject<{
|
|
|
12
13
|
price: number;
|
|
13
14
|
originalPrice: number;
|
|
14
15
|
messageId: string;
|
|
16
|
+
transactionId?: string | null | undefined;
|
|
15
17
|
platformOfferId?: string | null | undefined;
|
|
16
18
|
}, {
|
|
17
19
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
@@ -19,6 +21,7 @@ export declare const ConversationMessageOfferSchema: z.ZodObject<{
|
|
|
19
21
|
price: number;
|
|
20
22
|
originalPrice: number;
|
|
21
23
|
messageId: string;
|
|
24
|
+
transactionId?: string | null | undefined;
|
|
22
25
|
platformOfferId?: string | null | undefined;
|
|
23
26
|
}>;
|
|
24
27
|
export type ConversationMessageOffer = z.infer<typeof ConversationMessageOfferSchema>;
|
|
@@ -7,6 +7,7 @@ exports.ConversationMessageOfferSchema = zod_1.z.object({
|
|
|
7
7
|
id: zod_1.z.string().uuid(),
|
|
8
8
|
platformOfferId: zod_1.z.string().nullish(),
|
|
9
9
|
messageId: zod_1.z.string().uuid(),
|
|
10
|
+
transactionId: zod_1.z.string().uuid().nullish(),
|
|
10
11
|
price: zod_1.z.number(),
|
|
11
12
|
originalPrice: zod_1.z.number(),
|
|
12
13
|
status: controlresell_connector_1.JobConversationMessageOfferStatusSchema
|
|
@@ -5,6 +5,7 @@ export const ConversationMessageOfferSchema = z.object({
|
|
|
5
5
|
id: z.string().uuid(),
|
|
6
6
|
platformOfferId: z.string().nullish(),
|
|
7
7
|
messageId: z.string().uuid(),
|
|
8
|
+
transactionId: z.string().uuid().nullish(),
|
|
8
9
|
price: z.number(),
|
|
9
10
|
originalPrice: z.number(),
|
|
10
11
|
status: JobConversationMessageOfferStatusSchema
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ConversationOfferRequestSchema: z.ZodObject<{
|
|
3
3
|
price: z.ZodNumber;
|
|
4
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
5
6
|
price: number;
|
|
7
|
+
transactionId?: string | null | undefined;
|
|
6
8
|
}, {
|
|
7
9
|
price: number;
|
|
10
|
+
transactionId?: string | null | undefined;
|
|
8
11
|
}>;
|
|
9
12
|
export type ConversationOfferRequest = z.infer<typeof ConversationOfferRequestSchema>;
|
|
@@ -3,5 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConversationOfferRequestSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.ConversationOfferRequestSchema = zod_1.z.object({
|
|
6
|
-
price: zod_1.z.number()
|
|
6
|
+
price: zod_1.z.number(),
|
|
7
|
+
transactionId: zod_1.z.string().uuid().nullish()
|
|
7
8
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CreateConversationMessageOfferPayloadSchema: z.ZodObject<{
|
|
3
3
|
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
5
|
price: z.ZodNumber;
|
|
5
6
|
originalPrice: z.ZodNumber;
|
|
6
7
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
|
|
@@ -8,11 +9,13 @@ export declare const CreateConversationMessageOfferPayloadSchema: z.ZodObject<{
|
|
|
8
9
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
9
10
|
price: number;
|
|
10
11
|
originalPrice: number;
|
|
12
|
+
transactionId?: string | null | undefined;
|
|
11
13
|
platformOfferId?: string | null | undefined;
|
|
12
14
|
}, {
|
|
13
15
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
14
16
|
price: number;
|
|
15
17
|
originalPrice: number;
|
|
18
|
+
transactionId?: string | null | undefined;
|
|
16
19
|
platformOfferId?: string | null | undefined;
|
|
17
20
|
}>;
|
|
18
21
|
export type CreateConversationMessageOfferPayload = z.infer<typeof CreateConversationMessageOfferPayloadSchema>;
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
6
|
exports.CreateConversationMessageOfferPayloadSchema = zod_1.z.object({
|
|
7
7
|
platformOfferId: zod_1.z.string().nullish(),
|
|
8
|
+
transactionId: zod_1.z.string().uuid().nullish(),
|
|
8
9
|
price: zod_1.z.number(),
|
|
9
10
|
originalPrice: zod_1.z.number(),
|
|
10
11
|
status: controlresell_connector_1.JobConversationMessageOfferStatusSchema
|
|
@@ -3,6 +3,7 @@ import {JobConversationMessageOfferStatusSchema} from "controlresell-connector"
|
|
|
3
3
|
|
|
4
4
|
export const CreateConversationMessageOfferPayloadSchema = z.object({
|
|
5
5
|
platformOfferId: z.string().nullish(),
|
|
6
|
+
transactionId: z.string().uuid().nullish(),
|
|
6
7
|
price: z.number(),
|
|
7
8
|
originalPrice: z.number(),
|
|
8
9
|
status: JobConversationMessageOfferStatusSchema
|