controlresell 2.0.7 → 2.0.8
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/items/ItemSoldPayload.d.ts +18 -0
- package/src/com/controlresell/models/items/ItemSoldPayload.js +10 -0
- package/src/com/controlresell/models/items/ItemSoldPayload.ts +9 -0
- package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +90 -0
- package/src/com/controlresell/models/platforms/conversations/Conversation.js +3 -1
- package/src/com/controlresell/models/platforms/conversations/Conversation.ts +3 -1
- package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +168 -0
- package/src/com/controlresell/models/platforms/conversations/UserConversations.js +12 -0
- package/src/com/controlresell/models/platforms/conversations/UserConversations.ts +11 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +60 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +16 -0
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +15 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +21 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +12 -0
- package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +11 -0
- package/src/com/controlresell/models/platforms/conversations/users/ConversationUser.d.ts +63 -0
- package/src/com/controlresell/models/platforms/conversations/users/ConversationUser.js +16 -0
- package/src/com/controlresell/models/platforms/conversations/users/ConversationUser.ts +15 -0
- package/src/com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload.d.ts +24 -0
- package/src/com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload.js +12 -0
- package/src/com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload.ts +11 -0
- package/src/com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload.d.ts +21 -0
- package/src/com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload.js +11 -0
- package/src/com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload.ts +10 -0
- package/src/index.d.ts +7 -0
- package/src/index.js +7 -0
- package/src/index.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"typescript": "^5.8.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"controlresell-connector": "^0.0.
|
|
20
|
+
"controlresell-connector": "^0.0.29",
|
|
21
21
|
"zod": "^3.24.2",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ItemSoldPayloadSchema: z.ZodObject<{
|
|
3
|
+
sold: z.ZodBoolean;
|
|
4
|
+
sellingPrice: z.ZodNumber;
|
|
5
|
+
sellingDate: z.ZodDate;
|
|
6
|
+
sellingPlaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
sold: boolean;
|
|
9
|
+
sellingPrice: number;
|
|
10
|
+
sellingDate: Date;
|
|
11
|
+
sellingPlaceId?: number | null | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
sold: boolean;
|
|
14
|
+
sellingPrice: number;
|
|
15
|
+
sellingDate: Date;
|
|
16
|
+
sellingPlaceId?: number | null | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type ItemSoldPayload = z.infer<typeof ItemSoldPayloadSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemSoldPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ItemSoldPayloadSchema = zod_1.z.object({
|
|
6
|
+
sold: zod_1.z.boolean(),
|
|
7
|
+
sellingPrice: zod_1.z.number(),
|
|
8
|
+
sellingDate: zod_1.z.coerce.date(),
|
|
9
|
+
sellingPlaceId: zod_1.z.number().nullish()
|
|
10
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const ItemSoldPayloadSchema = z.object({
|
|
4
|
+
sold: z.boolean(),
|
|
5
|
+
sellingPrice: z.number(),
|
|
6
|
+
sellingDate: z.coerce.date(),
|
|
7
|
+
sellingPlaceId: z.number().nullish()
|
|
8
|
+
})
|
|
9
|
+
export type ItemSoldPayload = z.infer<typeof ItemSoldPayloadSchema>
|
|
@@ -4,15 +4,105 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
4
4
|
accountId: z.ZodString;
|
|
5
5
|
platformConversationId: z.ZodString;
|
|
6
6
|
updatedAt: z.ZodDate;
|
|
7
|
+
lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
8
|
+
id: z.ZodString;
|
|
9
|
+
conversationId: z.ZodString;
|
|
10
|
+
conversationUserId: z.ZodString;
|
|
11
|
+
platformMessageId: z.ZodString;
|
|
12
|
+
type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
|
|
13
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
15
|
+
id: z.ZodString;
|
|
16
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
17
|
+
path: z.ZodString;
|
|
18
|
+
signedUrl: z.ZodString;
|
|
19
|
+
createdAt: z.ZodDate;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
path: string;
|
|
22
|
+
id: string;
|
|
23
|
+
userId: string | number;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
signedUrl: string;
|
|
26
|
+
}, {
|
|
27
|
+
path: string;
|
|
28
|
+
id: string;
|
|
29
|
+
userId: string | number;
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
signedUrl: string;
|
|
32
|
+
}>, "many">>>;
|
|
33
|
+
createdAt: z.ZodDate;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
36
|
+
id: string;
|
|
37
|
+
createdAt: Date;
|
|
38
|
+
conversationId: string;
|
|
39
|
+
conversationUserId: string;
|
|
40
|
+
platformMessageId: string;
|
|
41
|
+
body?: string | null | undefined;
|
|
42
|
+
files?: {
|
|
43
|
+
path: string;
|
|
44
|
+
id: string;
|
|
45
|
+
userId: string | number;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
signedUrl: string;
|
|
48
|
+
}[] | null | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
51
|
+
id: string;
|
|
52
|
+
createdAt: Date;
|
|
53
|
+
conversationId: string;
|
|
54
|
+
conversationUserId: string;
|
|
55
|
+
platformMessageId: string;
|
|
56
|
+
body?: string | null | undefined;
|
|
57
|
+
files?: {
|
|
58
|
+
path: string;
|
|
59
|
+
id: string;
|
|
60
|
+
userId: string | number;
|
|
61
|
+
createdAt: Date;
|
|
62
|
+
signedUrl: string;
|
|
63
|
+
}[] | null | undefined;
|
|
64
|
+
}>>>;
|
|
7
65
|
}, "strip", z.ZodTypeAny, {
|
|
8
66
|
id: string;
|
|
9
67
|
accountId: string;
|
|
10
68
|
updatedAt: Date;
|
|
11
69
|
platformConversationId: string;
|
|
70
|
+
lastMessage?: {
|
|
71
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
72
|
+
id: string;
|
|
73
|
+
createdAt: Date;
|
|
74
|
+
conversationId: string;
|
|
75
|
+
conversationUserId: string;
|
|
76
|
+
platformMessageId: string;
|
|
77
|
+
body?: string | null | undefined;
|
|
78
|
+
files?: {
|
|
79
|
+
path: string;
|
|
80
|
+
id: string;
|
|
81
|
+
userId: string | number;
|
|
82
|
+
createdAt: Date;
|
|
83
|
+
signedUrl: string;
|
|
84
|
+
}[] | null | undefined;
|
|
85
|
+
} | null | undefined;
|
|
12
86
|
}, {
|
|
13
87
|
id: string;
|
|
14
88
|
accountId: string;
|
|
15
89
|
updatedAt: Date;
|
|
16
90
|
platformConversationId: string;
|
|
91
|
+
lastMessage?: {
|
|
92
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
93
|
+
id: string;
|
|
94
|
+
createdAt: Date;
|
|
95
|
+
conversationId: string;
|
|
96
|
+
conversationUserId: string;
|
|
97
|
+
platformMessageId: string;
|
|
98
|
+
body?: string | null | undefined;
|
|
99
|
+
files?: {
|
|
100
|
+
path: string;
|
|
101
|
+
id: string;
|
|
102
|
+
userId: string | number;
|
|
103
|
+
createdAt: Date;
|
|
104
|
+
signedUrl: string;
|
|
105
|
+
}[] | null | undefined;
|
|
106
|
+
} | null | undefined;
|
|
17
107
|
}>;
|
|
18
108
|
export type Conversation = z.infer<typeof ConversationSchema>;
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConversationSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const ConversationMessage_1 = require("./messages/ConversationMessage");
|
|
5
6
|
exports.ConversationSchema = zod_1.z.object({
|
|
6
7
|
id: zod_1.z.string().uuid(),
|
|
7
8
|
accountId: zod_1.z.string().uuid(),
|
|
8
9
|
platformConversationId: zod_1.z.string(),
|
|
9
|
-
updatedAt: zod_1.z.coerce.date()
|
|
10
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
11
|
+
lastMessage: ConversationMessage_1.ConversationMessageSchema.nullish()
|
|
10
12
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {z} from "zod"
|
|
2
|
+
import {ConversationMessageSchema} from "./messages/ConversationMessage"
|
|
2
3
|
|
|
3
4
|
export const ConversationSchema = z.object({
|
|
4
5
|
id: z.string().uuid(),
|
|
5
6
|
accountId: z.string().uuid(),
|
|
6
7
|
platformConversationId: z.string(),
|
|
7
|
-
updatedAt: z.coerce.date()
|
|
8
|
+
updatedAt: z.coerce.date(),
|
|
9
|
+
lastMessage: ConversationMessageSchema.nullish()
|
|
8
10
|
})
|
|
9
11
|
export type Conversation = z.infer<typeof ConversationSchema>
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const UserConversationsSchema: z.ZodObject<{
|
|
3
|
+
count: z.ZodNumber;
|
|
4
|
+
allConversationsCount: z.ZodNumber;
|
|
5
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
accountId: z.ZodString;
|
|
8
|
+
platformConversationId: z.ZodString;
|
|
9
|
+
updatedAt: z.ZodDate;
|
|
10
|
+
lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
conversationId: z.ZodString;
|
|
13
|
+
conversationUserId: z.ZodString;
|
|
14
|
+
platformMessageId: z.ZodString;
|
|
15
|
+
type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
|
|
16
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
20
|
+
path: z.ZodString;
|
|
21
|
+
signedUrl: z.ZodString;
|
|
22
|
+
createdAt: z.ZodDate;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
path: string;
|
|
25
|
+
id: string;
|
|
26
|
+
userId: string | number;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
signedUrl: string;
|
|
29
|
+
}, {
|
|
30
|
+
path: string;
|
|
31
|
+
id: string;
|
|
32
|
+
userId: string | number;
|
|
33
|
+
createdAt: Date;
|
|
34
|
+
signedUrl: string;
|
|
35
|
+
}>, "many">>>;
|
|
36
|
+
createdAt: z.ZodDate;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
39
|
+
id: string;
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
conversationId: string;
|
|
42
|
+
conversationUserId: string;
|
|
43
|
+
platformMessageId: string;
|
|
44
|
+
body?: string | null | undefined;
|
|
45
|
+
files?: {
|
|
46
|
+
path: string;
|
|
47
|
+
id: string;
|
|
48
|
+
userId: string | number;
|
|
49
|
+
createdAt: Date;
|
|
50
|
+
signedUrl: string;
|
|
51
|
+
}[] | null | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
54
|
+
id: string;
|
|
55
|
+
createdAt: Date;
|
|
56
|
+
conversationId: string;
|
|
57
|
+
conversationUserId: string;
|
|
58
|
+
platformMessageId: string;
|
|
59
|
+
body?: string | null | undefined;
|
|
60
|
+
files?: {
|
|
61
|
+
path: string;
|
|
62
|
+
id: string;
|
|
63
|
+
userId: string | number;
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
signedUrl: string;
|
|
66
|
+
}[] | null | undefined;
|
|
67
|
+
}>>>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
id: string;
|
|
70
|
+
accountId: string;
|
|
71
|
+
updatedAt: Date;
|
|
72
|
+
platformConversationId: string;
|
|
73
|
+
lastMessage?: {
|
|
74
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
75
|
+
id: string;
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
conversationId: string;
|
|
78
|
+
conversationUserId: string;
|
|
79
|
+
platformMessageId: string;
|
|
80
|
+
body?: string | null | undefined;
|
|
81
|
+
files?: {
|
|
82
|
+
path: string;
|
|
83
|
+
id: string;
|
|
84
|
+
userId: string | number;
|
|
85
|
+
createdAt: Date;
|
|
86
|
+
signedUrl: string;
|
|
87
|
+
}[] | null | undefined;
|
|
88
|
+
} | null | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
id: string;
|
|
91
|
+
accountId: string;
|
|
92
|
+
updatedAt: Date;
|
|
93
|
+
platformConversationId: string;
|
|
94
|
+
lastMessage?: {
|
|
95
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
96
|
+
id: string;
|
|
97
|
+
createdAt: Date;
|
|
98
|
+
conversationId: string;
|
|
99
|
+
conversationUserId: string;
|
|
100
|
+
platformMessageId: string;
|
|
101
|
+
body?: string | null | undefined;
|
|
102
|
+
files?: {
|
|
103
|
+
path: string;
|
|
104
|
+
id: string;
|
|
105
|
+
userId: string | number;
|
|
106
|
+
createdAt: Date;
|
|
107
|
+
signedUrl: string;
|
|
108
|
+
}[] | null | undefined;
|
|
109
|
+
} | null | undefined;
|
|
110
|
+
}>, "many">;
|
|
111
|
+
currentPage: z.ZodNumber;
|
|
112
|
+
totalPages: z.ZodNumber;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
count: number;
|
|
115
|
+
rows: {
|
|
116
|
+
id: string;
|
|
117
|
+
accountId: string;
|
|
118
|
+
updatedAt: Date;
|
|
119
|
+
platformConversationId: string;
|
|
120
|
+
lastMessage?: {
|
|
121
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
122
|
+
id: string;
|
|
123
|
+
createdAt: Date;
|
|
124
|
+
conversationId: string;
|
|
125
|
+
conversationUserId: string;
|
|
126
|
+
platformMessageId: string;
|
|
127
|
+
body?: string | null | undefined;
|
|
128
|
+
files?: {
|
|
129
|
+
path: string;
|
|
130
|
+
id: string;
|
|
131
|
+
userId: string | number;
|
|
132
|
+
createdAt: Date;
|
|
133
|
+
signedUrl: string;
|
|
134
|
+
}[] | null | undefined;
|
|
135
|
+
} | null | undefined;
|
|
136
|
+
}[];
|
|
137
|
+
currentPage: number;
|
|
138
|
+
totalPages: number;
|
|
139
|
+
allConversationsCount: number;
|
|
140
|
+
}, {
|
|
141
|
+
count: number;
|
|
142
|
+
rows: {
|
|
143
|
+
id: string;
|
|
144
|
+
accountId: string;
|
|
145
|
+
updatedAt: Date;
|
|
146
|
+
platformConversationId: string;
|
|
147
|
+
lastMessage?: {
|
|
148
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
149
|
+
id: string;
|
|
150
|
+
createdAt: Date;
|
|
151
|
+
conversationId: string;
|
|
152
|
+
conversationUserId: string;
|
|
153
|
+
platformMessageId: string;
|
|
154
|
+
body?: string | null | undefined;
|
|
155
|
+
files?: {
|
|
156
|
+
path: string;
|
|
157
|
+
id: string;
|
|
158
|
+
userId: string | number;
|
|
159
|
+
createdAt: Date;
|
|
160
|
+
signedUrl: string;
|
|
161
|
+
}[] | null | undefined;
|
|
162
|
+
} | null | undefined;
|
|
163
|
+
}[];
|
|
164
|
+
currentPage: number;
|
|
165
|
+
totalPages: number;
|
|
166
|
+
allConversationsCount: number;
|
|
167
|
+
}>;
|
|
168
|
+
export type UserConversations = z.infer<typeof UserConversationsSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserConversationsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const Conversation_1 = require("./Conversation");
|
|
6
|
+
exports.UserConversationsSchema = zod_1.z.object({
|
|
7
|
+
count: zod_1.z.number(),
|
|
8
|
+
allConversationsCount: zod_1.z.number(),
|
|
9
|
+
rows: zod_1.z.array(Conversation_1.ConversationSchema),
|
|
10
|
+
currentPage: zod_1.z.number(),
|
|
11
|
+
totalPages: zod_1.z.number()
|
|
12
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {ConversationSchema} from "./Conversation"
|
|
3
|
+
|
|
4
|
+
export const UserConversationsSchema = z.object({
|
|
5
|
+
count: z.number(),
|
|
6
|
+
allConversationsCount: z.number(),
|
|
7
|
+
rows: z.array(ConversationSchema),
|
|
8
|
+
currentPage: z.number(),
|
|
9
|
+
totalPages: z.number()
|
|
10
|
+
})
|
|
11
|
+
export type UserConversations = z.infer<typeof UserConversationsSchema>
|
package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ConversationMessageSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
conversationId: z.ZodString;
|
|
5
|
+
conversationUserId: z.ZodString;
|
|
6
|
+
platformMessageId: z.ZodString;
|
|
7
|
+
type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
|
|
8
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
12
|
+
path: z.ZodString;
|
|
13
|
+
signedUrl: z.ZodString;
|
|
14
|
+
createdAt: z.ZodDate;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
path: string;
|
|
17
|
+
id: string;
|
|
18
|
+
userId: string | number;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
signedUrl: string;
|
|
21
|
+
}, {
|
|
22
|
+
path: string;
|
|
23
|
+
id: string;
|
|
24
|
+
userId: string | number;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
signedUrl: string;
|
|
27
|
+
}>, "many">>>;
|
|
28
|
+
createdAt: z.ZodDate;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
31
|
+
id: string;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
conversationId: string;
|
|
34
|
+
conversationUserId: string;
|
|
35
|
+
platformMessageId: string;
|
|
36
|
+
body?: string | null | undefined;
|
|
37
|
+
files?: {
|
|
38
|
+
path: string;
|
|
39
|
+
id: string;
|
|
40
|
+
userId: string | number;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
signedUrl: string;
|
|
43
|
+
}[] | null | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
46
|
+
id: string;
|
|
47
|
+
createdAt: Date;
|
|
48
|
+
conversationId: string;
|
|
49
|
+
conversationUserId: string;
|
|
50
|
+
platformMessageId: string;
|
|
51
|
+
body?: string | null | undefined;
|
|
52
|
+
files?: {
|
|
53
|
+
path: string;
|
|
54
|
+
id: string;
|
|
55
|
+
userId: string | number;
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
signedUrl: string;
|
|
58
|
+
}[] | null | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
export type ConversationMessage = z.infer<typeof ConversationMessageSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConversationMessageSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
|
+
const File_1 = require("../../../users/files/File");
|
|
7
|
+
exports.ConversationMessageSchema = zod_1.z.object({
|
|
8
|
+
id: zod_1.z.string().uuid(),
|
|
9
|
+
conversationId: zod_1.z.string().uuid(),
|
|
10
|
+
conversationUserId: zod_1.z.string().uuid(),
|
|
11
|
+
platformMessageId: zod_1.z.string(),
|
|
12
|
+
type: controlresell_connector_1.JobConversationMessageTypeSchema,
|
|
13
|
+
body: zod_1.z.string().nullish(),
|
|
14
|
+
files: zod_1.z.array(File_1.FileSchema).nullish(),
|
|
15
|
+
createdAt: zod_1.z.coerce.date()
|
|
16
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {JobConversationMessageTypeSchema} from "controlresell-connector"
|
|
3
|
+
import {FileSchema} from "../../../users/files/File"
|
|
4
|
+
|
|
5
|
+
export const ConversationMessageSchema = z.object({
|
|
6
|
+
id: z.string().uuid(),
|
|
7
|
+
conversationId: z.string().uuid(),
|
|
8
|
+
conversationUserId: z.string().uuid(),
|
|
9
|
+
platformMessageId: z.string(),
|
|
10
|
+
type: JobConversationMessageTypeSchema,
|
|
11
|
+
body: z.string().nullish(),
|
|
12
|
+
files: z.array(FileSchema).nullish(),
|
|
13
|
+
createdAt: z.coerce.date()
|
|
14
|
+
})
|
|
15
|
+
export type ConversationMessage = z.infer<typeof ConversationMessageSchema>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreateConversationMessagePayloadSchema: z.ZodObject<{
|
|
3
|
+
conversationUserId: z.ZodString;
|
|
4
|
+
platformMessageId: z.ZodString;
|
|
5
|
+
type: z.ZodEnum<["MESSAGE", "STATUS_MESSAGE", "ACTION_MESSAGE", "OFFER_REQUEST_MESSAGE", "OFFER_MESSAGE"]>;
|
|
6
|
+
body: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
10
|
+
conversationUserId: string;
|
|
11
|
+
platformMessageId: string;
|
|
12
|
+
body?: string | null | undefined;
|
|
13
|
+
createdAt?: Date | null | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
type: "MESSAGE" | "STATUS_MESSAGE" | "ACTION_MESSAGE" | "OFFER_REQUEST_MESSAGE" | "OFFER_MESSAGE";
|
|
16
|
+
conversationUserId: string;
|
|
17
|
+
platformMessageId: string;
|
|
18
|
+
body?: string | null | undefined;
|
|
19
|
+
createdAt?: Date | null | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export type CreateConversationMessagePayload = z.infer<typeof CreateConversationMessagePayloadSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateConversationMessagePayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
|
+
exports.CreateConversationMessagePayloadSchema = zod_1.z.object({
|
|
7
|
+
conversationUserId: zod_1.z.string().uuid(),
|
|
8
|
+
platformMessageId: zod_1.z.string(),
|
|
9
|
+
type: controlresell_connector_1.JobConversationMessageTypeSchema,
|
|
10
|
+
body: zod_1.z.string().nullish(),
|
|
11
|
+
createdAt: zod_1.z.coerce.date().nullish()
|
|
12
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {JobConversationMessageTypeSchema} from "controlresell-connector"
|
|
3
|
+
|
|
4
|
+
export const CreateConversationMessagePayloadSchema = z.object({
|
|
5
|
+
conversationUserId: z.string().uuid(),
|
|
6
|
+
platformMessageId: z.string(),
|
|
7
|
+
type: JobConversationMessageTypeSchema,
|
|
8
|
+
body: z.string().nullish(),
|
|
9
|
+
createdAt: z.coerce.date().nullish()
|
|
10
|
+
})
|
|
11
|
+
export type CreateConversationMessagePayload = z.infer<typeof CreateConversationMessagePayloadSchema>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ConversationUserSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
platformUserId: z.ZodString;
|
|
5
|
+
conversationId: z.ZodString;
|
|
6
|
+
login: z.ZodString;
|
|
7
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
photoFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
14
|
+
path: z.ZodString;
|
|
15
|
+
signedUrl: z.ZodString;
|
|
16
|
+
createdAt: z.ZodDate;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
path: string;
|
|
19
|
+
id: string;
|
|
20
|
+
userId: string | number;
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
signedUrl: string;
|
|
23
|
+
}, {
|
|
24
|
+
path: string;
|
|
25
|
+
id: string;
|
|
26
|
+
userId: string | number;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
signedUrl: string;
|
|
29
|
+
}>>>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
id: string;
|
|
32
|
+
login: string;
|
|
33
|
+
conversationId: string;
|
|
34
|
+
platformUserId: string;
|
|
35
|
+
reviewCount?: number | null | undefined;
|
|
36
|
+
reviewValue?: number | null | undefined;
|
|
37
|
+
location?: string | null | undefined;
|
|
38
|
+
photoFileId?: string | null | undefined;
|
|
39
|
+
photoFile?: {
|
|
40
|
+
path: string;
|
|
41
|
+
id: string;
|
|
42
|
+
userId: string | number;
|
|
43
|
+
createdAt: Date;
|
|
44
|
+
signedUrl: string;
|
|
45
|
+
} | null | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
id: string;
|
|
48
|
+
login: string;
|
|
49
|
+
conversationId: string;
|
|
50
|
+
platformUserId: string;
|
|
51
|
+
reviewCount?: number | null | undefined;
|
|
52
|
+
reviewValue?: number | null | undefined;
|
|
53
|
+
location?: string | null | undefined;
|
|
54
|
+
photoFileId?: string | null | undefined;
|
|
55
|
+
photoFile?: {
|
|
56
|
+
path: string;
|
|
57
|
+
id: string;
|
|
58
|
+
userId: string | number;
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
signedUrl: string;
|
|
61
|
+
} | null | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
export type ConversationUser = z.infer<typeof ConversationUserSchema>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConversationUserSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const File_1 = require("../../../users/files/File");
|
|
6
|
+
exports.ConversationUserSchema = zod_1.z.object({
|
|
7
|
+
id: zod_1.z.string().uuid(),
|
|
8
|
+
platformUserId: zod_1.z.string(),
|
|
9
|
+
conversationId: zod_1.z.string().uuid(),
|
|
10
|
+
login: zod_1.z.string(),
|
|
11
|
+
location: zod_1.z.string().nullish(),
|
|
12
|
+
reviewCount: zod_1.z.number().int().nullish(),
|
|
13
|
+
reviewValue: zod_1.z.number().nullish(),
|
|
14
|
+
photoFileId: zod_1.z.string().uuid().nullish(),
|
|
15
|
+
photoFile: File_1.FileSchema.nullish()
|
|
16
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {FileSchema} from "../../../users/files/File"
|
|
3
|
+
|
|
4
|
+
export const ConversationUserSchema = z.object({
|
|
5
|
+
id: z.string().uuid(),
|
|
6
|
+
platformUserId: z.string(),
|
|
7
|
+
conversationId: z.string().uuid(),
|
|
8
|
+
login: z.string(),
|
|
9
|
+
location: z.string().nullish(),
|
|
10
|
+
reviewCount: z.number().int().nullish(),
|
|
11
|
+
reviewValue: z.number().nullish(),
|
|
12
|
+
photoFileId: z.string().uuid().nullish(),
|
|
13
|
+
photoFile: FileSchema.nullish()
|
|
14
|
+
})
|
|
15
|
+
export type ConversationUser = z.infer<typeof ConversationUserSchema>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreateConversationUserPayloadSchema: z.ZodObject<{
|
|
3
|
+
platformUserId: z.ZodString;
|
|
4
|
+
login: z.ZodString;
|
|
5
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
+
reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
8
|
+
photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
login: string;
|
|
11
|
+
platformUserId: string;
|
|
12
|
+
reviewCount?: number | null | undefined;
|
|
13
|
+
reviewValue?: number | null | undefined;
|
|
14
|
+
location?: string | null | undefined;
|
|
15
|
+
photoFileId?: string | null | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
login: string;
|
|
18
|
+
platformUserId: string;
|
|
19
|
+
reviewCount?: number | null | undefined;
|
|
20
|
+
reviewValue?: number | null | undefined;
|
|
21
|
+
location?: string | null | undefined;
|
|
22
|
+
photoFileId?: string | null | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export type CreateConversationUserPayload = z.infer<typeof CreateConversationUserPayloadSchema>;
|
package/src/com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateConversationUserPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.CreateConversationUserPayloadSchema = zod_1.z.object({
|
|
6
|
+
platformUserId: zod_1.z.string(),
|
|
7
|
+
login: zod_1.z.string(),
|
|
8
|
+
location: zod_1.z.string().nullish(),
|
|
9
|
+
reviewCount: zod_1.z.number().int().nullish(),
|
|
10
|
+
reviewValue: zod_1.z.number().nullish(),
|
|
11
|
+
photoFileId: zod_1.z.string().uuid().nullish()
|
|
12
|
+
});
|
package/src/com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const CreateConversationUserPayloadSchema = z.object({
|
|
4
|
+
platformUserId: z.string(),
|
|
5
|
+
login: z.string(),
|
|
6
|
+
location: z.string().nullish(),
|
|
7
|
+
reviewCount: z.number().int().nullish(),
|
|
8
|
+
reviewValue: z.number().nullish(),
|
|
9
|
+
photoFileId: z.string().uuid().nullish()
|
|
10
|
+
})
|
|
11
|
+
export type CreateConversationUserPayload = z.infer<typeof CreateConversationUserPayloadSchema>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const UpdateConversationUserPayloadSchema: z.ZodObject<{
|
|
3
|
+
login: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4
|
+
location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
reviewCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
reviewValue: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
7
|
+
photoFileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
login?: string | null | undefined;
|
|
10
|
+
reviewCount?: number | null | undefined;
|
|
11
|
+
reviewValue?: number | null | undefined;
|
|
12
|
+
location?: string | null | undefined;
|
|
13
|
+
photoFileId?: string | null | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
login?: string | null | undefined;
|
|
16
|
+
reviewCount?: number | null | undefined;
|
|
17
|
+
reviewValue?: number | null | undefined;
|
|
18
|
+
location?: string | null | undefined;
|
|
19
|
+
photoFileId?: string | null | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export type UpdateConversationUserPayload = z.infer<typeof UpdateConversationUserPayloadSchema>;
|
package/src/com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateConversationUserPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.UpdateConversationUserPayloadSchema = zod_1.z.object({
|
|
6
|
+
login: zod_1.z.string().nullish(),
|
|
7
|
+
location: zod_1.z.string().nullish(),
|
|
8
|
+
reviewCount: zod_1.z.number().int().nullish(),
|
|
9
|
+
reviewValue: zod_1.z.number().nullish(),
|
|
10
|
+
photoFileId: zod_1.z.string().uuid().nullish()
|
|
11
|
+
});
|
package/src/com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const UpdateConversationUserPayloadSchema = z.object({
|
|
4
|
+
login: z.string().nullish(),
|
|
5
|
+
location: z.string().nullish(),
|
|
6
|
+
reviewCount: z.number().int().nullish(),
|
|
7
|
+
reviewValue: z.number().nullish(),
|
|
8
|
+
photoFileId: z.string().uuid().nullish()
|
|
9
|
+
})
|
|
10
|
+
export type UpdateConversationUserPayload = z.infer<typeof UpdateConversationUserPayloadSchema>
|
package/src/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from "./com/controlresell/models/items/CreatedItems";
|
|
|
28
28
|
export * from "./com/controlresell/models/items/Item";
|
|
29
29
|
export * from "./com/controlresell/models/items/ItemFiltersContext";
|
|
30
30
|
export * from "./com/controlresell/models/items/ItemPayload";
|
|
31
|
+
export * from "./com/controlresell/models/items/ItemSoldPayload";
|
|
31
32
|
export * from "./com/controlresell/models/items/ItemSort";
|
|
32
33
|
export * from "./com/controlresell/models/items/ItemsWithFilters";
|
|
33
34
|
export * from "./com/controlresell/models/items/UpdatedItem";
|
|
@@ -64,6 +65,12 @@ export * from "./com/controlresell/models/metadata/statuses/Status";
|
|
|
64
65
|
export * from "./com/controlresell/models/platforms/conversations/Conversation";
|
|
65
66
|
export * from "./com/controlresell/models/platforms/conversations/CreateConversationPayload";
|
|
66
67
|
export * from "./com/controlresell/models/platforms/conversations/UpdateConversationPayload";
|
|
68
|
+
export * from "./com/controlresell/models/platforms/conversations/UserConversations";
|
|
69
|
+
export * from "./com/controlresell/models/platforms/conversations/messages/ConversationMessage";
|
|
70
|
+
export * from "./com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload";
|
|
71
|
+
export * from "./com/controlresell/models/platforms/conversations/users/ConversationUser";
|
|
72
|
+
export * from "./com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload";
|
|
73
|
+
export * from "./com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload";
|
|
67
74
|
export * from "./com/controlresell/models/platforms/labels/CreateOrderLabelPayload";
|
|
68
75
|
export * from "./com/controlresell/models/platforms/labels/OrderLabel";
|
|
69
76
|
export * from "./com/controlresell/models/platforms/orders/CreateOrderPayload";
|
package/src/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __exportStar(require("./com/controlresell/models/items/CreatedItems"), exports);
|
|
|
44
44
|
__exportStar(require("./com/controlresell/models/items/Item"), exports);
|
|
45
45
|
__exportStar(require("./com/controlresell/models/items/ItemFiltersContext"), exports);
|
|
46
46
|
__exportStar(require("./com/controlresell/models/items/ItemPayload"), exports);
|
|
47
|
+
__exportStar(require("./com/controlresell/models/items/ItemSoldPayload"), exports);
|
|
47
48
|
__exportStar(require("./com/controlresell/models/items/ItemSort"), exports);
|
|
48
49
|
__exportStar(require("./com/controlresell/models/items/ItemsWithFilters"), exports);
|
|
49
50
|
__exportStar(require("./com/controlresell/models/items/UpdatedItem"), exports);
|
|
@@ -80,6 +81,12 @@ __exportStar(require("./com/controlresell/models/metadata/statuses/Status"), exp
|
|
|
80
81
|
__exportStar(require("./com/controlresell/models/platforms/conversations/Conversation"), exports);
|
|
81
82
|
__exportStar(require("./com/controlresell/models/platforms/conversations/CreateConversationPayload"), exports);
|
|
82
83
|
__exportStar(require("./com/controlresell/models/platforms/conversations/UpdateConversationPayload"), exports);
|
|
84
|
+
__exportStar(require("./com/controlresell/models/platforms/conversations/UserConversations"), exports);
|
|
85
|
+
__exportStar(require("./com/controlresell/models/platforms/conversations/messages/ConversationMessage"), exports);
|
|
86
|
+
__exportStar(require("./com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload"), exports);
|
|
87
|
+
__exportStar(require("./com/controlresell/models/platforms/conversations/users/ConversationUser"), exports);
|
|
88
|
+
__exportStar(require("./com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload"), exports);
|
|
89
|
+
__exportStar(require("./com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload"), exports);
|
|
83
90
|
__exportStar(require("./com/controlresell/models/platforms/labels/CreateOrderLabelPayload"), exports);
|
|
84
91
|
__exportStar(require("./com/controlresell/models/platforms/labels/OrderLabel"), exports);
|
|
85
92
|
__exportStar(require("./com/controlresell/models/platforms/orders/CreateOrderPayload"), exports);
|
package/src/index.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from "./com/controlresell/models/items/CreatedItems"
|
|
|
28
28
|
export * from "./com/controlresell/models/items/Item"
|
|
29
29
|
export * from "./com/controlresell/models/items/ItemFiltersContext"
|
|
30
30
|
export * from "./com/controlresell/models/items/ItemPayload"
|
|
31
|
+
export * from "./com/controlresell/models/items/ItemSoldPayload"
|
|
31
32
|
export * from "./com/controlresell/models/items/ItemSort"
|
|
32
33
|
export * from "./com/controlresell/models/items/ItemsWithFilters"
|
|
33
34
|
export * from "./com/controlresell/models/items/UpdatedItem"
|
|
@@ -64,6 +65,12 @@ export * from "./com/controlresell/models/metadata/statuses/Status"
|
|
|
64
65
|
export * from "./com/controlresell/models/platforms/conversations/Conversation"
|
|
65
66
|
export * from "./com/controlresell/models/platforms/conversations/CreateConversationPayload"
|
|
66
67
|
export * from "./com/controlresell/models/platforms/conversations/UpdateConversationPayload"
|
|
68
|
+
export * from "./com/controlresell/models/platforms/conversations/UserConversations"
|
|
69
|
+
export * from "./com/controlresell/models/platforms/conversations/messages/ConversationMessage"
|
|
70
|
+
export * from "./com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload"
|
|
71
|
+
export * from "./com/controlresell/models/platforms/conversations/users/ConversationUser"
|
|
72
|
+
export * from "./com/controlresell/models/platforms/conversations/users/CreateConversationUserPayload"
|
|
73
|
+
export * from "./com/controlresell/models/platforms/conversations/users/UpdateConversationUserPayload"
|
|
67
74
|
export * from "./com/controlresell/models/platforms/labels/CreateOrderLabelPayload"
|
|
68
75
|
export * from "./com/controlresell/models/platforms/labels/OrderLabel"
|
|
69
76
|
export * from "./com/controlresell/models/platforms/orders/CreateOrderPayload"
|