controlresell 2.0.10 → 2.1.0

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.
Files changed (108) hide show
  1. package/package.json +2 -2
  2. package/src/com/controlresell/models/customers/VerifyCustomerRequest.d.ts +9 -0
  3. package/src/com/controlresell/models/customers/VerifyCustomerRequest.js +7 -0
  4. package/src/com/controlresell/models/customers/VerifyCustomerRequest.ts +6 -0
  5. package/src/com/controlresell/models/customers/contracts/Contract.d.ts +4 -4
  6. package/src/com/controlresell/models/customers/contracts/PrepareContractResponse.d.ts +4 -4
  7. package/src/com/controlresell/models/fees/Fee.d.ts +6 -6
  8. package/src/com/controlresell/models/items/CreatedItems.d.ts +74 -74
  9. package/src/com/controlresell/models/items/Item.d.ts +48 -48
  10. package/src/com/controlresell/models/items/ItemFiltersContext.d.ts +6 -6
  11. package/src/com/controlresell/models/items/ItemFiltersContext.js +2 -2
  12. package/src/com/controlresell/models/items/ItemFiltersContext.ts +2 -2
  13. package/src/com/controlresell/models/items/ItemPayload.d.ts +2 -2
  14. package/src/com/controlresell/models/items/ItemsWithFilters.d.ts +70 -70
  15. package/src/com/controlresell/models/items/UpdatedItem.d.ts +74 -74
  16. package/src/com/controlresell/models/items/files/ItemFile.d.ts +6 -6
  17. package/src/com/controlresell/models/items/labels/ItemLabel.d.ts +4 -4
  18. package/src/com/controlresell/models/items/platforms/ItemOnPlatform.d.ts +10 -10
  19. package/src/com/controlresell/models/items/platforms/ItemOnPlatformsRequestWithItem.d.ts +70 -70
  20. package/src/com/controlresell/models/metadata/brands/Brand.d.ts +2 -2
  21. package/src/com/controlresell/models/metadata/labels/Label.d.ts +2 -2
  22. package/src/com/controlresell/models/metadata/places/Place.d.ts +2 -2
  23. package/src/com/controlresell/models/platforms/conversations/Conversation.d.ts +149 -55
  24. package/src/com/controlresell/models/platforms/conversations/UserConversations.d.ts +193 -75
  25. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.d.ts +97 -27
  26. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.js +6 -4
  27. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessage.ts +6 -4
  28. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.d.ts +12 -0
  29. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.js +8 -0
  30. package/src/com/controlresell/models/platforms/conversations/messages/ConversationMessageRequest.ts +7 -0
  31. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.d.ts +5 -5
  32. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.js +1 -1
  33. package/src/com/controlresell/models/platforms/conversations/messages/CreateConversationMessagePayload.ts +1 -1
  34. package/src/com/controlresell/models/platforms/conversations/messages/PaginatedConversationMessages.d.ts +133 -39
  35. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.d.ts +45 -0
  36. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.js +10 -0
  37. package/src/com/controlresell/models/platforms/conversations/messages/UpdateConversationMessagePayload.ts +9 -0
  38. package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.d.ts +48 -0
  39. package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.js +11 -0
  40. package/src/com/controlresell/models/platforms/conversations/messages/files/ConversationMessageFile.ts +10 -0
  41. package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.d.ts +12 -0
  42. package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.js +8 -0
  43. package/src/com/controlresell/models/platforms/conversations/messages/files/CreateConversationMessageFilePayload.ts +7 -0
  44. package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.d.ts +9 -0
  45. package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.js +7 -0
  46. package/src/com/controlresell/models/platforms/conversations/messages/files/UpdateConversationMessageFilePayload.ts +6 -0
  47. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.d.ts +21 -0
  48. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.js +12 -0
  49. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationMessageOffer.ts +11 -0
  50. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.d.ts +9 -0
  51. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.js +7 -0
  52. package/src/com/controlresell/models/platforms/conversations/messages/offers/ConversationOfferRequest.ts +6 -0
  53. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.d.ts +15 -0
  54. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.js +10 -0
  55. package/src/com/controlresell/models/platforms/conversations/messages/offers/CreateConversationMessageOfferPayload.ts +9 -0
  56. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.d.ts +9 -0
  57. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.js +8 -0
  58. package/src/com/controlresell/models/platforms/conversations/messages/offers/UpdateConversationMessageOfferPayload.ts +7 -0
  59. package/src/com/controlresell/models/platforms/conversations/users/ConversationUser.d.ts +4 -4
  60. package/src/com/controlresell/models/platforms/labels/OrderLabel.d.ts +10 -10
  61. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -0
  62. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.js +1 -0
  63. package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.ts +1 -0
  64. package/src/com/controlresell/models/platforms/orders/Order.d.ts +45 -42
  65. package/src/com/controlresell/models/platforms/orders/Order.js +1 -0
  66. package/src/com/controlresell/models/platforms/orders/Order.ts +1 -0
  67. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.d.ts +5 -2
  68. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.js +1 -0
  69. package/src/com/controlresell/models/platforms/orders/UpdateOrderPayload.ts +1 -0
  70. package/src/com/controlresell/models/platforms/orders/items/ItemInOrder.d.ts +16 -16
  71. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +1126 -0
  72. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.js +10 -0
  73. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.ts +9 -0
  74. package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.d.ts +21 -0
  75. package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.js +11 -0
  76. package/src/com/controlresell/models/platforms/transactions/CreateTransactionPayload.ts +10 -0
  77. package/src/com/controlresell/models/platforms/transactions/Transaction.d.ts +167 -0
  78. package/src/com/controlresell/models/platforms/transactions/Transaction.js +15 -0
  79. package/src/com/controlresell/models/platforms/transactions/Transaction.ts +14 -0
  80. package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.d.ts +18 -0
  81. package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.js +10 -0
  82. package/src/com/controlresell/models/platforms/transactions/UpdateTransactionPayload.ts +9 -0
  83. package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.d.ts +9 -0
  84. package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.js +7 -0
  85. package/src/com/controlresell/models/platforms/transactions/items/CreateItemInTransactionPayload.ts +6 -0
  86. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.d.ts +102 -0
  87. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.js +10 -0
  88. package/src/com/controlresell/models/platforms/transactions/items/ItemInTransaction.ts +9 -0
  89. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.d.ts +959 -0
  90. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.js +10 -0
  91. package/src/com/controlresell/models/platforms/transactions/items/TransactionWithItems.ts +9 -0
  92. package/src/com/controlresell/models/users/UpdateUserPayload.d.ts +2 -2
  93. package/src/com/controlresell/models/users/User.d.ts +2 -2
  94. package/src/com/controlresell/models/users/fields/Field.d.ts +2 -2
  95. package/src/com/controlresell/models/users/fields/FieldsWithData.d.ts +4 -4
  96. package/src/com/controlresell/models/users/files/File.d.ts +2 -2
  97. package/src/com/controlresell/models/users/platforms/CreateUserOnPlatformPayload.d.ts +2 -2
  98. package/src/com/controlresell/models/users/platforms/PlatformAuthRequest.d.ts +8 -8
  99. package/src/com/controlresell/models/users/platforms/PlatformJobUpdate.d.ts +11 -11
  100. package/src/com/controlresell/models/users/platforms/UpdateUserOnPlatformPayload.d.ts +2 -2
  101. package/src/com/controlresell/models/users/platforms/UserOnPlatform.d.ts +4 -4
  102. package/src/com/controlresell/models/users/platforms/UserOnPlatformSessionMessage.d.ts +6 -6
  103. package/src/index.d.ts +18 -1
  104. package/src/index.js +18 -1
  105. package/src/index.ts +18 -1
  106. package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.d.ts +2 -2
  107. /package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.js +0 -0
  108. /package/src/com/controlresell/models/{connector → users/platforms}/UserOnPlatformRequest.ts +0 -0
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderWithItemsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const Order_1 = require("../Order");
6
+ const Item_1 = require("../../../items/Item");
7
+ exports.OrderWithItemsSchema = zod_1.z.object({
8
+ order: Order_1.OrderSchema,
9
+ items: zod_1.z.array(Item_1.ItemSchema)
10
+ });
@@ -0,0 +1,9 @@
1
+ import {z} from "zod"
2
+ import {OrderSchema} from "../Order"
3
+ import {ItemSchema} from "../../../items/Item"
4
+
5
+ export const OrderWithItemsSchema = z.object({
6
+ order: OrderSchema,
7
+ items: z.array(ItemSchema)
8
+ })
9
+ export type OrderWithItems = z.infer<typeof OrderWithItemsSchema>
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ export declare const CreateTransactionPayloadSchema: z.ZodObject<{
3
+ platformTransactionId: z.ZodString;
4
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ buyerPlatformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ sellerPlatformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ shipmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ platformTransactionId: string;
10
+ shipmentId?: string | null | undefined;
11
+ conversationId?: string | null | undefined;
12
+ buyerPlatformId?: string | null | undefined;
13
+ sellerPlatformId?: string | null | undefined;
14
+ }, {
15
+ platformTransactionId: string;
16
+ shipmentId?: string | null | undefined;
17
+ conversationId?: string | null | undefined;
18
+ buyerPlatformId?: string | null | undefined;
19
+ sellerPlatformId?: string | null | undefined;
20
+ }>;
21
+ export type CreateTransactionPayload = z.infer<typeof CreateTransactionPayloadSchema>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateTransactionPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.CreateTransactionPayloadSchema = zod_1.z.object({
6
+ platformTransactionId: zod_1.z.string(),
7
+ conversationId: zod_1.z.string().uuid().nullish(),
8
+ buyerPlatformId: zod_1.z.string().nullish(),
9
+ sellerPlatformId: zod_1.z.string().nullish(),
10
+ shipmentId: zod_1.z.string().nullish()
11
+ });
@@ -0,0 +1,10 @@
1
+ import {z} from "zod"
2
+
3
+ export const CreateTransactionPayloadSchema = z.object({
4
+ platformTransactionId: z.string(),
5
+ conversationId: z.string().uuid().nullish(),
6
+ buyerPlatformId: z.string().nullish(),
7
+ sellerPlatformId: z.string().nullish(),
8
+ shipmentId: z.string().nullish()
9
+ })
10
+ export type CreateTransactionPayload = z.infer<typeof CreateTransactionPayloadSchema>
@@ -0,0 +1,167 @@
1
+ import { z } from "zod";
2
+ export declare const TransactionSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ accountId: z.ZodString;
5
+ platformTransactionId: z.ZodString;
6
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ buyerPlatformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ sellerPlatformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ shipmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11
+ itemOnPlatformId: z.ZodString;
12
+ transactionId: z.ZodString;
13
+ itemOnPlatform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ id: z.ZodString;
15
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
16
+ accountId: z.ZodString;
17
+ platformId: z.ZodString;
18
+ platformUrl: z.ZodString;
19
+ platformPrice: z.ZodNumber;
20
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
21
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
23
+ accountId: z.ZodString;
24
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
25
+ name: z.ZodString;
26
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
29
+ userId: string | number;
30
+ name: string;
31
+ platform: "VINTED" | "SHOPIFY";
32
+ accountId: string;
33
+ }, {
34
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
35
+ userId: string | number;
36
+ name: string;
37
+ platform: "VINTED" | "SHOPIFY";
38
+ accountId: string;
39
+ }>>>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
42
+ id: string;
43
+ itemId: string | number;
44
+ accountId: string;
45
+ platformId: string;
46
+ platformUrl: string;
47
+ platformPrice: number;
48
+ account?: {
49
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
50
+ userId: string | number;
51
+ name: string;
52
+ platform: "VINTED" | "SHOPIFY";
53
+ accountId: string;
54
+ } | null | undefined;
55
+ }, {
56
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
57
+ id: string;
58
+ itemId: string | number;
59
+ accountId: string;
60
+ platformId: string;
61
+ platformUrl: string;
62
+ platformPrice: number;
63
+ account?: {
64
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
65
+ userId: string | number;
66
+ name: string;
67
+ platform: "VINTED" | "SHOPIFY";
68
+ accountId: string;
69
+ } | null | undefined;
70
+ }>>>;
71
+ }, "strip", z.ZodTypeAny, {
72
+ transactionId: string;
73
+ itemOnPlatformId: string;
74
+ itemOnPlatform?: {
75
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
76
+ id: string;
77
+ itemId: string | number;
78
+ accountId: string;
79
+ platformId: string;
80
+ platformUrl: string;
81
+ platformPrice: number;
82
+ account?: {
83
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
84
+ userId: string | number;
85
+ name: string;
86
+ platform: "VINTED" | "SHOPIFY";
87
+ accountId: string;
88
+ } | null | undefined;
89
+ } | null | undefined;
90
+ }, {
91
+ transactionId: string;
92
+ itemOnPlatformId: string;
93
+ itemOnPlatform?: {
94
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
95
+ id: string;
96
+ itemId: string | number;
97
+ accountId: string;
98
+ platformId: string;
99
+ platformUrl: string;
100
+ platformPrice: number;
101
+ account?: {
102
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
103
+ userId: string | number;
104
+ name: string;
105
+ platform: "VINTED" | "SHOPIFY";
106
+ accountId: string;
107
+ } | null | undefined;
108
+ } | null | undefined;
109
+ }>, "many">>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ id: string;
112
+ accountId: string;
113
+ platformTransactionId: string;
114
+ items?: {
115
+ transactionId: string;
116
+ itemOnPlatformId: string;
117
+ itemOnPlatform?: {
118
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
119
+ id: string;
120
+ itemId: string | number;
121
+ accountId: string;
122
+ platformId: string;
123
+ platformUrl: string;
124
+ platformPrice: number;
125
+ account?: {
126
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
127
+ userId: string | number;
128
+ name: string;
129
+ platform: "VINTED" | "SHOPIFY";
130
+ accountId: string;
131
+ } | null | undefined;
132
+ } | null | undefined;
133
+ }[] | null | undefined;
134
+ shipmentId?: string | null | undefined;
135
+ conversationId?: string | null | undefined;
136
+ buyerPlatformId?: string | null | undefined;
137
+ sellerPlatformId?: string | null | undefined;
138
+ }, {
139
+ id: string;
140
+ accountId: string;
141
+ platformTransactionId: string;
142
+ items?: {
143
+ transactionId: string;
144
+ itemOnPlatformId: string;
145
+ itemOnPlatform?: {
146
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
147
+ id: string;
148
+ itemId: string | number;
149
+ accountId: string;
150
+ platformId: string;
151
+ platformUrl: string;
152
+ platformPrice: number;
153
+ account?: {
154
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
155
+ userId: string | number;
156
+ name: string;
157
+ platform: "VINTED" | "SHOPIFY";
158
+ accountId: string;
159
+ } | null | undefined;
160
+ } | null | undefined;
161
+ }[] | null | undefined;
162
+ shipmentId?: string | null | undefined;
163
+ conversationId?: string | null | undefined;
164
+ buyerPlatformId?: string | null | undefined;
165
+ sellerPlatformId?: string | null | undefined;
166
+ }>;
167
+ export type Transaction = z.infer<typeof TransactionSchema>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const ItemInTransaction_1 = require("./items/ItemInTransaction");
6
+ exports.TransactionSchema = zod_1.z.object({
7
+ id: zod_1.z.string().uuid(),
8
+ accountId: zod_1.z.string().uuid(),
9
+ platformTransactionId: zod_1.z.string(),
10
+ conversationId: zod_1.z.string().uuid().nullish(),
11
+ buyerPlatformId: zod_1.z.string().nullish(),
12
+ sellerPlatformId: zod_1.z.string().nullish(),
13
+ shipmentId: zod_1.z.string().nullish(),
14
+ items: zod_1.z.array(ItemInTransaction_1.ItemInTransactionSchema).nullish()
15
+ });
@@ -0,0 +1,14 @@
1
+ import {z} from "zod"
2
+ import {ItemInTransactionSchema} from "./items/ItemInTransaction"
3
+
4
+ export const TransactionSchema = z.object({
5
+ id: z.string().uuid(),
6
+ accountId: z.string().uuid(),
7
+ platformTransactionId: z.string(),
8
+ conversationId: z.string().uuid().nullish(),
9
+ buyerPlatformId: z.string().nullish(),
10
+ sellerPlatformId: z.string().nullish(),
11
+ shipmentId: z.string().nullish(),
12
+ items: z.array(ItemInTransactionSchema).nullish()
13
+ })
14
+ export type Transaction = z.infer<typeof TransactionSchema>
@@ -0,0 +1,18 @@
1
+ import { z } from "zod";
2
+ export declare const UpdateTransactionPayloadSchema: z.ZodObject<{
3
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ buyerPlatformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ sellerPlatformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ shipmentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ shipmentId?: string | null | undefined;
9
+ conversationId?: string | null | undefined;
10
+ buyerPlatformId?: string | null | undefined;
11
+ sellerPlatformId?: string | null | undefined;
12
+ }, {
13
+ shipmentId?: string | null | undefined;
14
+ conversationId?: string | null | undefined;
15
+ buyerPlatformId?: string | null | undefined;
16
+ sellerPlatformId?: string | null | undefined;
17
+ }>;
18
+ export type UpdateTransactionPayload = z.infer<typeof UpdateTransactionPayloadSchema>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateTransactionPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.UpdateTransactionPayloadSchema = zod_1.z.object({
6
+ conversationId: zod_1.z.string().uuid().nullish(),
7
+ buyerPlatformId: zod_1.z.string().nullish(),
8
+ sellerPlatformId: zod_1.z.string().nullish(),
9
+ shipmentId: zod_1.z.string().nullish()
10
+ });
@@ -0,0 +1,9 @@
1
+ import {z} from "zod"
2
+
3
+ export const UpdateTransactionPayloadSchema = z.object({
4
+ conversationId: z.string().uuid().nullish(),
5
+ buyerPlatformId: z.string().nullish(),
6
+ sellerPlatformId: z.string().nullish(),
7
+ shipmentId: z.string().nullish()
8
+ })
9
+ export type UpdateTransactionPayload = z.infer<typeof UpdateTransactionPayloadSchema>
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export declare const CreateItemInTransactionPayloadSchema: z.ZodObject<{
3
+ itemOnPlatformId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ itemOnPlatformId: string;
6
+ }, {
7
+ itemOnPlatformId: string;
8
+ }>;
9
+ export type CreateItemInTransactionPayload = z.infer<typeof CreateItemInTransactionPayloadSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateItemInTransactionPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.CreateItemInTransactionPayloadSchema = zod_1.z.object({
6
+ itemOnPlatformId: zod_1.z.string().uuid()
7
+ });
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const CreateItemInTransactionPayloadSchema = z.object({
4
+ itemOnPlatformId: z.string().uuid()
5
+ })
6
+ export type CreateItemInTransactionPayload = z.infer<typeof CreateItemInTransactionPayloadSchema>
@@ -0,0 +1,102 @@
1
+ import { z } from "zod";
2
+ export declare const ItemInTransactionSchema: z.ZodObject<{
3
+ itemOnPlatformId: z.ZodString;
4
+ transactionId: z.ZodString;
5
+ itemOnPlatform: z.ZodOptional<z.ZodNullable<z.ZodObject<{
6
+ id: z.ZodString;
7
+ itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
8
+ accountId: z.ZodString;
9
+ platformId: z.ZodString;
10
+ platformUrl: z.ZodString;
11
+ platformPrice: z.ZodNumber;
12
+ status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
13
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
14
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
15
+ accountId: z.ZodString;
16
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
17
+ name: z.ZodString;
18
+ status: z.ZodEnum<["CONNECTED", "DISCONNECTED", "ERROR"]>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
21
+ userId: string | number;
22
+ name: string;
23
+ platform: "VINTED" | "SHOPIFY";
24
+ accountId: string;
25
+ }, {
26
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
27
+ userId: string | number;
28
+ name: string;
29
+ platform: "VINTED" | "SHOPIFY";
30
+ accountId: string;
31
+ }>>>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
34
+ id: string;
35
+ itemId: string | number;
36
+ accountId: string;
37
+ platformId: string;
38
+ platformUrl: string;
39
+ platformPrice: number;
40
+ account?: {
41
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
42
+ userId: string | number;
43
+ name: string;
44
+ platform: "VINTED" | "SHOPIFY";
45
+ accountId: string;
46
+ } | null | undefined;
47
+ }, {
48
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
49
+ id: string;
50
+ itemId: string | number;
51
+ accountId: string;
52
+ platformId: string;
53
+ platformUrl: string;
54
+ platformPrice: number;
55
+ account?: {
56
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
57
+ userId: string | number;
58
+ name: string;
59
+ platform: "VINTED" | "SHOPIFY";
60
+ accountId: string;
61
+ } | null | undefined;
62
+ }>>>;
63
+ }, "strip", z.ZodTypeAny, {
64
+ transactionId: string;
65
+ itemOnPlatformId: string;
66
+ itemOnPlatform?: {
67
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
68
+ id: string;
69
+ itemId: string | number;
70
+ accountId: string;
71
+ platformId: string;
72
+ platformUrl: string;
73
+ platformPrice: number;
74
+ account?: {
75
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
76
+ userId: string | number;
77
+ name: string;
78
+ platform: "VINTED" | "SHOPIFY";
79
+ accountId: string;
80
+ } | null | undefined;
81
+ } | null | undefined;
82
+ }, {
83
+ transactionId: string;
84
+ itemOnPlatformId: string;
85
+ itemOnPlatform?: {
86
+ status: "DELETED" | "ONLINE" | "DRAFT" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
87
+ id: string;
88
+ itemId: string | number;
89
+ accountId: string;
90
+ platformId: string;
91
+ platformUrl: string;
92
+ platformPrice: number;
93
+ account?: {
94
+ status: "ERROR" | "CONNECTED" | "DISCONNECTED";
95
+ userId: string | number;
96
+ name: string;
97
+ platform: "VINTED" | "SHOPIFY";
98
+ accountId: string;
99
+ } | null | undefined;
100
+ } | null | undefined;
101
+ }>;
102
+ export type ItemInTransaction = z.infer<typeof ItemInTransactionSchema>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemInTransactionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const ItemOnPlatform_1 = require("../../../items/platforms/ItemOnPlatform");
6
+ exports.ItemInTransactionSchema = zod_1.z.object({
7
+ itemOnPlatformId: zod_1.z.string().uuid(),
8
+ transactionId: zod_1.z.string().uuid(),
9
+ itemOnPlatform: ItemOnPlatform_1.ItemOnPlatformSchema.nullish()
10
+ });
@@ -0,0 +1,9 @@
1
+ import {z} from "zod"
2
+ import {ItemOnPlatformSchema} from "../../../items/platforms/ItemOnPlatform"
3
+
4
+ export const ItemInTransactionSchema = z.object({
5
+ itemOnPlatformId: z.string().uuid(),
6
+ transactionId: z.string().uuid(),
7
+ itemOnPlatform: ItemOnPlatformSchema.nullish()
8
+ })
9
+ export type ItemInTransaction = z.infer<typeof ItemInTransactionSchema>