controlresell 2.1.1 → 2.1.2
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/platforms/conversations/Conversation.d.ts +7 -7
- package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +9 -9
- package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +5 -5
- package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +7 -7
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.d.ts +3 -3
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.js +1 -1
- package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.ts +1 -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "controlresell",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
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.31",
|
|
21
21
|
"zod": "^3.24.3",
|
|
22
22
|
"zodable-idschema": "^1.0.0"
|
|
23
23
|
}
|
|
@@ -33,7 +33,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
33
33
|
createdAt: z.ZodDate;
|
|
34
34
|
offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
35
35
|
id: z.ZodString;
|
|
36
|
-
platformOfferId: z.ZodString
|
|
36
|
+
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
messageId: z.ZodString;
|
|
38
38
|
price: z.ZodNumber;
|
|
39
39
|
originalPrice: z.ZodNumber;
|
|
@@ -44,14 +44,14 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
44
44
|
price: number;
|
|
45
45
|
originalPrice: number;
|
|
46
46
|
messageId: string;
|
|
47
|
-
platformOfferId
|
|
47
|
+
platformOfferId?: string | null | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
50
50
|
id: string;
|
|
51
51
|
price: number;
|
|
52
52
|
originalPrice: number;
|
|
53
53
|
messageId: string;
|
|
54
|
-
platformOfferId
|
|
54
|
+
platformOfferId?: string | null | undefined;
|
|
55
55
|
}>>>;
|
|
56
56
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
57
57
|
fileId: z.ZodString;
|
|
@@ -111,7 +111,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
111
111
|
price: number;
|
|
112
112
|
originalPrice: number;
|
|
113
113
|
messageId: string;
|
|
114
|
-
platformOfferId
|
|
114
|
+
platformOfferId?: string | null | undefined;
|
|
115
115
|
} | null | undefined;
|
|
116
116
|
files?: {
|
|
117
117
|
fileId: string;
|
|
@@ -139,7 +139,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
139
139
|
price: number;
|
|
140
140
|
originalPrice: number;
|
|
141
141
|
messageId: string;
|
|
142
|
-
platformOfferId
|
|
142
|
+
platformOfferId?: string | null | undefined;
|
|
143
143
|
} | null | undefined;
|
|
144
144
|
files?: {
|
|
145
145
|
fileId: string;
|
|
@@ -241,7 +241,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
241
241
|
price: number;
|
|
242
242
|
originalPrice: number;
|
|
243
243
|
messageId: string;
|
|
244
|
-
platformOfferId
|
|
244
|
+
platformOfferId?: string | null | undefined;
|
|
245
245
|
} | null | undefined;
|
|
246
246
|
files?: {
|
|
247
247
|
fileId: string;
|
|
@@ -299,7 +299,7 @@ export declare const ConversationSchema: z.ZodObject<{
|
|
|
299
299
|
price: number;
|
|
300
300
|
originalPrice: number;
|
|
301
301
|
messageId: string;
|
|
302
|
-
platformOfferId
|
|
302
|
+
platformOfferId?: string | null | undefined;
|
|
303
303
|
} | null | undefined;
|
|
304
304
|
files?: {
|
|
305
305
|
fileId: string;
|
|
@@ -36,7 +36,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
36
36
|
createdAt: z.ZodDate;
|
|
37
37
|
offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
38
|
id: z.ZodString;
|
|
39
|
-
platformOfferId: z.ZodString
|
|
39
|
+
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
40
|
messageId: z.ZodString;
|
|
41
41
|
price: z.ZodNumber;
|
|
42
42
|
originalPrice: z.ZodNumber;
|
|
@@ -47,14 +47,14 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
47
47
|
price: number;
|
|
48
48
|
originalPrice: number;
|
|
49
49
|
messageId: string;
|
|
50
|
-
platformOfferId
|
|
50
|
+
platformOfferId?: string | null | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
53
53
|
id: string;
|
|
54
54
|
price: number;
|
|
55
55
|
originalPrice: number;
|
|
56
56
|
messageId: string;
|
|
57
|
-
platformOfferId
|
|
57
|
+
platformOfferId?: string | null | undefined;
|
|
58
58
|
}>>>;
|
|
59
59
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
60
60
|
fileId: z.ZodString;
|
|
@@ -114,7 +114,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
114
114
|
price: number;
|
|
115
115
|
originalPrice: number;
|
|
116
116
|
messageId: string;
|
|
117
|
-
platformOfferId
|
|
117
|
+
platformOfferId?: string | null | undefined;
|
|
118
118
|
} | null | undefined;
|
|
119
119
|
files?: {
|
|
120
120
|
fileId: string;
|
|
@@ -142,7 +142,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
142
142
|
price: number;
|
|
143
143
|
originalPrice: number;
|
|
144
144
|
messageId: string;
|
|
145
|
-
platformOfferId
|
|
145
|
+
platformOfferId?: string | null | undefined;
|
|
146
146
|
} | null | undefined;
|
|
147
147
|
files?: {
|
|
148
148
|
fileId: string;
|
|
@@ -244,7 +244,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
244
244
|
price: number;
|
|
245
245
|
originalPrice: number;
|
|
246
246
|
messageId: string;
|
|
247
|
-
platformOfferId
|
|
247
|
+
platformOfferId?: string | null | undefined;
|
|
248
248
|
} | null | undefined;
|
|
249
249
|
files?: {
|
|
250
250
|
fileId: string;
|
|
@@ -302,7 +302,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
302
302
|
price: number;
|
|
303
303
|
originalPrice: number;
|
|
304
304
|
messageId: string;
|
|
305
|
-
platformOfferId
|
|
305
|
+
platformOfferId?: string | null | undefined;
|
|
306
306
|
} | null | undefined;
|
|
307
307
|
files?: {
|
|
308
308
|
fileId: string;
|
|
@@ -365,7 +365,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
365
365
|
price: number;
|
|
366
366
|
originalPrice: number;
|
|
367
367
|
messageId: string;
|
|
368
|
-
platformOfferId
|
|
368
|
+
platformOfferId?: string | null | undefined;
|
|
369
369
|
} | null | undefined;
|
|
370
370
|
files?: {
|
|
371
371
|
fileId: string;
|
|
@@ -429,7 +429,7 @@ export declare const UserConversationsSchema: z.ZodObject<{
|
|
|
429
429
|
price: number;
|
|
430
430
|
originalPrice: number;
|
|
431
431
|
messageId: string;
|
|
432
|
-
platformOfferId
|
|
432
|
+
platformOfferId?: string | null | undefined;
|
|
433
433
|
} | null | undefined;
|
|
434
434
|
files?: {
|
|
435
435
|
fileId: string;
|
package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
9
9
|
createdAt: z.ZodDate;
|
|
10
10
|
offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
11
11
|
id: z.ZodString;
|
|
12
|
-
platformOfferId: z.ZodString
|
|
12
|
+
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
messageId: z.ZodString;
|
|
14
14
|
price: z.ZodNumber;
|
|
15
15
|
originalPrice: z.ZodNumber;
|
|
@@ -20,14 +20,14 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
20
20
|
price: number;
|
|
21
21
|
originalPrice: number;
|
|
22
22
|
messageId: string;
|
|
23
|
-
platformOfferId
|
|
23
|
+
platformOfferId?: string | null | undefined;
|
|
24
24
|
}, {
|
|
25
25
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
26
26
|
id: string;
|
|
27
27
|
price: number;
|
|
28
28
|
originalPrice: number;
|
|
29
29
|
messageId: string;
|
|
30
|
-
platformOfferId
|
|
30
|
+
platformOfferId?: string | null | undefined;
|
|
31
31
|
}>>>;
|
|
32
32
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
33
33
|
fileId: z.ZodString;
|
|
@@ -87,7 +87,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
87
87
|
price: number;
|
|
88
88
|
originalPrice: number;
|
|
89
89
|
messageId: string;
|
|
90
|
-
platformOfferId
|
|
90
|
+
platformOfferId?: string | null | undefined;
|
|
91
91
|
} | null | undefined;
|
|
92
92
|
files?: {
|
|
93
93
|
fileId: string;
|
|
@@ -115,7 +115,7 @@ export declare const ConversationMessageSchema: z.ZodObject<{
|
|
|
115
115
|
price: number;
|
|
116
116
|
originalPrice: number;
|
|
117
117
|
messageId: string;
|
|
118
|
-
platformOfferId
|
|
118
|
+
platformOfferId?: string | null | undefined;
|
|
119
119
|
} | null | undefined;
|
|
120
120
|
files?: {
|
|
121
121
|
fileId: string;
|
|
@@ -11,7 +11,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
11
11
|
createdAt: z.ZodDate;
|
|
12
12
|
offer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
13
13
|
id: z.ZodString;
|
|
14
|
-
platformOfferId: z.ZodString
|
|
14
|
+
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
messageId: z.ZodString;
|
|
16
16
|
price: z.ZodNumber;
|
|
17
17
|
originalPrice: z.ZodNumber;
|
|
@@ -22,14 +22,14 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
22
22
|
price: number;
|
|
23
23
|
originalPrice: number;
|
|
24
24
|
messageId: string;
|
|
25
|
-
platformOfferId
|
|
25
|
+
platformOfferId?: string | null | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
28
28
|
id: string;
|
|
29
29
|
price: number;
|
|
30
30
|
originalPrice: number;
|
|
31
31
|
messageId: string;
|
|
32
|
-
platformOfferId
|
|
32
|
+
platformOfferId?: string | null | undefined;
|
|
33
33
|
}>>>;
|
|
34
34
|
files: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
35
35
|
fileId: z.ZodString;
|
|
@@ -89,7 +89,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
89
89
|
price: number;
|
|
90
90
|
originalPrice: number;
|
|
91
91
|
messageId: string;
|
|
92
|
-
platformOfferId
|
|
92
|
+
platformOfferId?: string | null | undefined;
|
|
93
93
|
} | null | undefined;
|
|
94
94
|
files?: {
|
|
95
95
|
fileId: string;
|
|
@@ -117,7 +117,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
117
117
|
price: number;
|
|
118
118
|
originalPrice: number;
|
|
119
119
|
messageId: string;
|
|
120
|
-
platformOfferId
|
|
120
|
+
platformOfferId?: string | null | undefined;
|
|
121
121
|
} | null | undefined;
|
|
122
122
|
files?: {
|
|
123
123
|
fileId: string;
|
|
@@ -150,7 +150,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
150
150
|
price: number;
|
|
151
151
|
originalPrice: number;
|
|
152
152
|
messageId: string;
|
|
153
|
-
platformOfferId
|
|
153
|
+
platformOfferId?: string | null | undefined;
|
|
154
154
|
} | null | undefined;
|
|
155
155
|
files?: {
|
|
156
156
|
fileId: string;
|
|
@@ -183,7 +183,7 @@ export declare const PaginatedConversationMessagesSchema: z.ZodObject<{
|
|
|
183
183
|
price: number;
|
|
184
184
|
originalPrice: number;
|
|
185
185
|
messageId: string;
|
|
186
|
-
platformOfferId
|
|
186
|
+
platformOfferId?: string | null | undefined;
|
|
187
187
|
} | null | undefined;
|
|
188
188
|
files?: {
|
|
189
189
|
fileId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ConversationMessageOfferSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodString;
|
|
4
|
-
platformOfferId: z.ZodString
|
|
4
|
+
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
5
|
messageId: z.ZodString;
|
|
6
6
|
price: z.ZodNumber;
|
|
7
7
|
originalPrice: z.ZodNumber;
|
|
@@ -12,13 +12,13 @@ export declare const ConversationMessageOfferSchema: z.ZodObject<{
|
|
|
12
12
|
price: number;
|
|
13
13
|
originalPrice: number;
|
|
14
14
|
messageId: string;
|
|
15
|
-
platformOfferId
|
|
15
|
+
platformOfferId?: string | null | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
18
18
|
id: string;
|
|
19
19
|
price: number;
|
|
20
20
|
originalPrice: number;
|
|
21
21
|
messageId: string;
|
|
22
|
-
platformOfferId
|
|
22
|
+
platformOfferId?: string | null | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
export type ConversationMessageOffer = z.infer<typeof ConversationMessageOfferSchema>;
|
|
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
6
|
exports.ConversationMessageOfferSchema = zod_1.z.object({
|
|
7
7
|
id: zod_1.z.string().uuid(),
|
|
8
|
-
platformOfferId: zod_1.z.string(),
|
|
8
|
+
platformOfferId: zod_1.z.string().nullish(),
|
|
9
9
|
messageId: zod_1.z.string().uuid(),
|
|
10
10
|
price: zod_1.z.number(),
|
|
11
11
|
originalPrice: zod_1.z.number(),
|
|
@@ -3,7 +3,7 @@ import {JobConversationMessageOfferStatusSchema} from "controlresell-connector"
|
|
|
3
3
|
|
|
4
4
|
export const ConversationMessageOfferSchema = z.object({
|
|
5
5
|
id: z.string().uuid(),
|
|
6
|
-
platformOfferId: z.string(),
|
|
6
|
+
platformOfferId: z.string().nullish(),
|
|
7
7
|
messageId: z.string().uuid(),
|
|
8
8
|
price: z.number(),
|
|
9
9
|
originalPrice: z.number(),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const CreateConversationMessageOfferPayloadSchema: z.ZodObject<{
|
|
3
|
+
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3
4
|
price: z.ZodNumber;
|
|
4
5
|
originalPrice: z.ZodNumber;
|
|
5
6
|
status: z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>;
|
|
@@ -7,9 +8,11 @@ export declare const CreateConversationMessageOfferPayloadSchema: z.ZodObject<{
|
|
|
7
8
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
8
9
|
price: number;
|
|
9
10
|
originalPrice: number;
|
|
11
|
+
platformOfferId?: string | null | undefined;
|
|
10
12
|
}, {
|
|
11
13
|
status: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED";
|
|
12
14
|
price: number;
|
|
13
15
|
originalPrice: number;
|
|
16
|
+
platformOfferId?: string | null | undefined;
|
|
14
17
|
}>;
|
|
15
18
|
export type CreateConversationMessageOfferPayload = z.infer<typeof CreateConversationMessageOfferPayloadSchema>;
|
|
@@ -4,6 +4,7 @@ exports.CreateConversationMessageOfferPayloadSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
6
|
exports.CreateConversationMessageOfferPayloadSchema = zod_1.z.object({
|
|
7
|
+
platformOfferId: zod_1.z.string().nullish(),
|
|
7
8
|
price: zod_1.z.number(),
|
|
8
9
|
originalPrice: zod_1.z.number(),
|
|
9
10
|
status: controlresell_connector_1.JobConversationMessageOfferStatusSchema
|
|
@@ -2,6 +2,7 @@ import {z} from "zod"
|
|
|
2
2
|
import {JobConversationMessageOfferStatusSchema} from "controlresell-connector"
|
|
3
3
|
|
|
4
4
|
export const CreateConversationMessageOfferPayloadSchema = z.object({
|
|
5
|
+
platformOfferId: z.string().nullish(),
|
|
5
6
|
price: z.number(),
|
|
6
7
|
originalPrice: z.number(),
|
|
7
8
|
status: JobConversationMessageOfferStatusSchema
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const UpdateConversationMessageOfferPayloadSchema: z.ZodObject<{
|
|
3
|
+
platformOfferId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3
4
|
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["PENDING", "ACCEPTED", "REJECTED", "CANCELLED"]>>>;
|
|
4
5
|
}, "strip", z.ZodTypeAny, {
|
|
5
6
|
status?: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED" | null | undefined;
|
|
7
|
+
platformOfferId?: string | null | undefined;
|
|
6
8
|
}, {
|
|
7
9
|
status?: "PENDING" | "ACCEPTED" | "REJECTED" | "CANCELLED" | null | undefined;
|
|
10
|
+
platformOfferId?: string | null | undefined;
|
|
8
11
|
}>;
|
|
9
12
|
export type UpdateConversationMessageOfferPayload = z.infer<typeof UpdateConversationMessageOfferPayloadSchema>;
|
|
@@ -4,5 +4,6 @@ exports.UpdateConversationMessageOfferPayloadSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const controlresell_connector_1 = require("controlresell-connector");
|
|
6
6
|
exports.UpdateConversationMessageOfferPayloadSchema = zod_1.z.object({
|
|
7
|
+
platformOfferId: zod_1.z.string().nullish(),
|
|
7
8
|
status: controlresell_connector_1.JobConversationMessageOfferStatusSchema.nullish()
|
|
8
9
|
});
|
|
@@ -2,6 +2,7 @@ import {z} from "zod"
|
|
|
2
2
|
import {JobConversationMessageOfferStatusSchema} from "controlresell-connector"
|
|
3
3
|
|
|
4
4
|
export const UpdateConversationMessageOfferPayloadSchema = z.object({
|
|
5
|
+
platformOfferId: z.string().nullish(),
|
|
5
6
|
status: JobConversationMessageOfferStatusSchema.nullish()
|
|
6
7
|
})
|
|
7
8
|
export type UpdateConversationMessageOfferPayload = z.infer<typeof UpdateConversationMessageOfferPayloadSchema>
|