controlresell 2.5.3 → 2.6.1

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 (36) hide show
  1. package/package.json +4 -4
  2. package/src/com/controlresell/models/filters/SavedFilters.d.ts +5 -0
  3. package/src/com/controlresell/models/filters/SavedFilters.d.ts.map +1 -1
  4. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts +5 -0
  5. package/src/com/controlresell/models/filters/SavedFiltersPayload.d.ts.map +1 -1
  6. package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts +3 -0
  7. package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts.map +1 -1
  8. package/src/com/controlresell/models/platforms/PlatformFiltersContext.js +2 -1
  9. package/src/com/controlresell/models/platforms/PlatformFiltersContext.js.map +1 -1
  10. package/src/com/controlresell/models/platforms/PlatformFiltersContext.ts +2 -1
  11. package/src/com/controlresell/models/platforms/labels/CreateOrderLabelPayload.d.ts +3 -0
  12. package/src/com/controlresell/models/platforms/labels/CreateOrderLabelPayload.d.ts.map +1 -1
  13. package/src/com/controlresell/models/platforms/labels/CreateOrderLabelPayload.js +1 -0
  14. package/src/com/controlresell/models/platforms/labels/CreateOrderLabelPayload.js.map +1 -1
  15. package/src/com/controlresell/models/platforms/labels/CreateOrderLabelPayload.ts +1 -0
  16. package/src/com/controlresell/models/platforms/labels/OrderLabel.d.ts +36 -0
  17. package/src/com/controlresell/models/platforms/labels/OrderLabel.d.ts.map +1 -1
  18. package/src/com/controlresell/models/platforms/labels/OrderLabel.js +2 -0
  19. package/src/com/controlresell/models/platforms/labels/OrderLabel.js.map +1 -1
  20. package/src/com/controlresell/models/platforms/labels/OrderLabel.ts +2 -0
  21. package/src/com/controlresell/models/platforms/labels/UpdateOrderLabelPayload.d.ts +13 -0
  22. package/src/com/controlresell/models/platforms/labels/UpdateOrderLabelPayload.d.ts.map +1 -0
  23. package/src/com/controlresell/models/platforms/labels/UpdateOrderLabelPayload.js +9 -0
  24. package/src/com/controlresell/models/platforms/labels/UpdateOrderLabelPayload.js.map +1 -0
  25. package/src/com/controlresell/models/platforms/labels/UpdateOrderLabelPayload.ts +7 -0
  26. package/src/com/controlresell/models/platforms/orders/Order.d.ts +52 -0
  27. package/src/com/controlresell/models/platforms/orders/Order.d.ts.map +1 -1
  28. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +90 -0
  29. package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
  30. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +242 -48
  31. package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts.map +1 -1
  32. package/src/index.d.ts +1 -0
  33. package/src/index.d.ts.map +1 -1
  34. package/src/index.js +4 -2
  35. package/src/index.js.map +1 -1
  36. package/src/index.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "2.5.3",
3
+ "version": "2.6.1",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -17,10 +17,10 @@
17
17
  "typescript": "^5.9.2"
18
18
  },
19
19
  "dependencies": {
20
- "controlresell-auth": "^0.0.1",
20
+ "controlresell-auth": "^0.0.3",
21
21
  "controlresell-connector": "^0.6.9",
22
- "controlresell-inbox": "^0.0.1",
23
- "controlresell-inventory": "^0.0.1",
22
+ "controlresell-inbox": "^0.0.2",
23
+ "controlresell-inventory": "^0.0.4",
24
24
  "controlresell-storage": "^0.0.1",
25
25
  "zod": "^3.25.76",
26
26
  "zodable-idschema": "^1.0.0"
@@ -144,12 +144,15 @@ export declare const SavedFiltersSchema: z.ZodObject<{
144
144
  platformFilters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
145
145
  accountIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
146
146
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["VINTED", "SHOPIFY"]>, "many">>>;
147
+ hasNewMessages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
147
148
  }, "strip", z.ZodTypeAny, {
148
149
  platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
149
150
  accountIds?: string[] | null | undefined;
151
+ hasNewMessages?: boolean | null | undefined;
150
152
  }, {
151
153
  platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
152
154
  accountIds?: string[] | null | undefined;
155
+ hasNewMessages?: boolean | null | undefined;
153
156
  }>>>;
154
157
  }, "strip", z.ZodTypeAny, {
155
158
  id: string;
@@ -194,6 +197,7 @@ export declare const SavedFiltersSchema: z.ZodObject<{
194
197
  platformFilters?: {
195
198
  platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
196
199
  accountIds?: string[] | null | undefined;
200
+ hasNewMessages?: boolean | null | undefined;
197
201
  } | null | undefined;
198
202
  }, {
199
203
  id: string;
@@ -238,6 +242,7 @@ export declare const SavedFiltersSchema: z.ZodObject<{
238
242
  platformFilters?: {
239
243
  platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
240
244
  accountIds?: string[] | null | undefined;
245
+ hasNewMessages?: boolean | null | undefined;
241
246
  } | null | undefined;
242
247
  }>;
243
248
  export type SavedFilters = z.infer<typeof SavedFiltersSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"SavedFilters.d.ts","sourceRoot":"","sources":["SavedFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAKrB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
1
+ {"version":3,"file":"SavedFilters.d.ts","sourceRoot":"","sources":["SavedFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAKrB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA"}
@@ -142,12 +142,15 @@ export declare const SavedFiltersPayloadSchema: z.ZodObject<{
142
142
  platformFilters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
143
143
  accountIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
144
144
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["VINTED", "SHOPIFY"]>, "many">>>;
145
+ hasNewMessages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
145
146
  }, "strip", z.ZodTypeAny, {
146
147
  platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
147
148
  accountIds?: string[] | null | undefined;
149
+ hasNewMessages?: boolean | null | undefined;
148
150
  }, {
149
151
  platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
150
152
  accountIds?: string[] | null | undefined;
153
+ hasNewMessages?: boolean | null | undefined;
151
154
  }>>>;
152
155
  }, "strip", z.ZodTypeAny, {
153
156
  itemFilters?: {
@@ -190,6 +193,7 @@ export declare const SavedFiltersPayloadSchema: z.ZodObject<{
190
193
  platformFilters?: {
191
194
  platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
192
195
  accountIds?: string[] | null | undefined;
196
+ hasNewMessages?: boolean | null | undefined;
193
197
  } | null | undefined;
194
198
  }, {
195
199
  itemFilters?: {
@@ -232,6 +236,7 @@ export declare const SavedFiltersPayloadSchema: z.ZodObject<{
232
236
  platformFilters?: {
233
237
  platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
234
238
  accountIds?: string[] | null | undefined;
239
+ hasNewMessages?: boolean | null | undefined;
235
240
  } | null | undefined;
236
241
  }>;
237
242
  export type SavedFiltersPayload = z.infer<typeof SavedFiltersPayloadSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"SavedFiltersPayload.d.ts","sourceRoot":"","sources":["SavedFiltersPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAIrB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
1
+ {"version":3,"file":"SavedFiltersPayload.d.ts","sourceRoot":"","sources":["SavedFiltersPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAIrB,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
@@ -2,12 +2,15 @@ import { z } from "zod";
2
2
  export declare const PlatformFiltersContextSchema: z.ZodObject<{
3
3
  accountIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
4
4
  platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<["VINTED", "SHOPIFY"]>, "many">>>;
5
+ hasNewMessages: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5
6
  }, "strip", z.ZodTypeAny, {
6
7
  platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
7
8
  accountIds?: string[] | null | undefined;
9
+ hasNewMessages?: boolean | null | undefined;
8
10
  }, {
9
11
  platforms?: ("VINTED" | "SHOPIFY")[] | null | undefined;
10
12
  accountIds?: string[] | null | undefined;
13
+ hasNewMessages?: boolean | null | undefined;
11
14
  }>;
12
15
  export type PlatformFiltersContext = z.infer<typeof PlatformFiltersContextSchema>;
13
16
  //# sourceMappingURL=PlatformFiltersContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformFiltersContext.d.ts","sourceRoot":"","sources":["PlatformFiltersContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,4BAA4B;;;;;;;;;EAGvC,CAAA;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
1
+ {"version":3,"file":"PlatformFiltersContext.d.ts","sourceRoot":"","sources":["PlatformFiltersContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAA;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const controlresell_connector_1 = require("controlresell-connector");
6
6
  exports.PlatformFiltersContextSchema = zod_1.z.object({
7
7
  accountIds: zod_1.z.array(zod_1.z.string().uuid()).nullish(),
8
- platforms: zod_1.z.array(controlresell_connector_1.AccountPlatformSchema).nullish()
8
+ platforms: zod_1.z.array(controlresell_connector_1.AccountPlatformSchema).nullish(),
9
+ hasNewMessages: zod_1.z.boolean().nullish()
9
10
  });
10
11
  //# sourceMappingURL=PlatformFiltersContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformFiltersContext.js","sourceRoot":"","sources":["PlatformFiltersContext.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AACrB,qEAA6D;AAEhD,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;IAChD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,+CAAqB,CAAC,CAAC,OAAO,EAAE;CACtD,CAAC,CAAA"}
1
+ {"version":3,"file":"PlatformFiltersContext.js","sourceRoot":"","sources":["PlatformFiltersContext.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AACrB,qEAA6D;AAEhD,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;IAChD,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,+CAAqB,CAAC,CAAC,OAAO,EAAE;IACnD,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;CACxC,CAAC,CAAA"}
@@ -3,6 +3,7 @@ import {AccountPlatformSchema} from "controlresell-connector"
3
3
 
4
4
  export const PlatformFiltersContextSchema = z.object({
5
5
  accountIds: z.array(z.string().uuid()).nullish(),
6
- platforms: z.array(AccountPlatformSchema).nullish()
6
+ platforms: z.array(AccountPlatformSchema).nullish(),
7
+ hasNewMessages: z.boolean().nullish()
7
8
  })
8
9
  export type PlatformFiltersContext = z.infer<typeof PlatformFiltersContextSchema>
@@ -1,12 +1,15 @@
1
1
  import { z } from "zod";
2
2
  export declare const CreateOrderLabelPayloadSchema: z.ZodObject<{
3
3
  fileId: z.ZodString;
4
+ nonCroppedFileId: z.ZodString;
4
5
  originalFile: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
6
  }, "strip", z.ZodTypeAny, {
6
7
  fileId: string;
8
+ nonCroppedFileId: string;
7
9
  originalFile?: string | null | undefined;
8
10
  }, {
9
11
  fileId: string;
12
+ nonCroppedFileId: string;
10
13
  originalFile?: string | null | undefined;
11
14
  }>;
12
15
  export type CreateOrderLabelPayload = z.infer<typeof CreateOrderLabelPayloadSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"CreateOrderLabelPayload.d.ts","sourceRoot":"","sources":["CreateOrderLabelPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
1
+ {"version":3,"file":"CreateOrderLabelPayload.d.ts","sourceRoot":"","sources":["CreateOrderLabelPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAIxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
@@ -4,6 +4,7 @@ exports.CreateOrderLabelPayloadSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.CreateOrderLabelPayloadSchema = zod_1.z.object({
6
6
  fileId: zod_1.z.string().uuid(),
7
+ nonCroppedFileId: zod_1.z.string().uuid(),
7
8
  originalFile: zod_1.z.string().uuid().nullish()
8
9
  });
9
10
  //# sourceMappingURL=CreateOrderLabelPayload.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateOrderLabelPayload.js","sourceRoot":"","sources":["CreateOrderLabelPayload.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AAER,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;CAC5C,CAAC,CAAA"}
1
+ {"version":3,"file":"CreateOrderLabelPayload.js","sourceRoot":"","sources":["CreateOrderLabelPayload.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AAER,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzB,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACnC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;CAC5C,CAAC,CAAA"}
@@ -2,6 +2,7 @@ import {z} from "zod"
2
2
 
3
3
  export const CreateOrderLabelPayloadSchema = z.object({
4
4
  fileId: z.string().uuid(),
5
+ nonCroppedFileId: z.string().uuid(),
5
6
  originalFile: z.string().uuid().nullish()
6
7
  })
7
8
  export type CreateOrderLabelPayload = z.infer<typeof CreateOrderLabelPayloadSchema>
@@ -3,6 +3,7 @@ export declare const OrderLabelSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  orderId: z.ZodString;
5
5
  fileId: z.ZodString;
6
+ nonCroppedFileId: z.ZodString;
6
7
  originalFileId: z.ZodString;
7
8
  file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
9
  id: z.ZodString;
@@ -23,6 +24,25 @@ export declare const OrderLabelSchema: z.ZodObject<{
23
24
  signedUrl: string;
24
25
  createdAt: Date;
25
26
  }>>>;
27
+ nonCroppedFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
28
+ id: z.ZodString;
29
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
30
+ path: z.ZodString;
31
+ signedUrl: z.ZodString;
32
+ createdAt: z.ZodDate;
33
+ }, "strip", z.ZodTypeAny, {
34
+ path: string;
35
+ id: string;
36
+ userId: string | number;
37
+ signedUrl: string;
38
+ createdAt: Date;
39
+ }, {
40
+ path: string;
41
+ id: string;
42
+ userId: string | number;
43
+ signedUrl: string;
44
+ createdAt: Date;
45
+ }>>>;
26
46
  originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
27
47
  id: z.ZodString;
28
48
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -46,6 +66,7 @@ export declare const OrderLabelSchema: z.ZodObject<{
46
66
  id: string;
47
67
  fileId: string;
48
68
  orderId: string;
69
+ nonCroppedFileId: string;
49
70
  originalFileId: string;
50
71
  file?: {
51
72
  path: string;
@@ -61,10 +82,18 @@ export declare const OrderLabelSchema: z.ZodObject<{
61
82
  signedUrl: string;
62
83
  createdAt: Date;
63
84
  } | null | undefined;
85
+ nonCroppedFile?: {
86
+ path: string;
87
+ id: string;
88
+ userId: string | number;
89
+ signedUrl: string;
90
+ createdAt: Date;
91
+ } | null | undefined;
64
92
  }, {
65
93
  id: string;
66
94
  fileId: string;
67
95
  orderId: string;
96
+ nonCroppedFileId: string;
68
97
  originalFileId: string;
69
98
  file?: {
70
99
  path: string;
@@ -80,6 +109,13 @@ export declare const OrderLabelSchema: z.ZodObject<{
80
109
  signedUrl: string;
81
110
  createdAt: Date;
82
111
  } | null | undefined;
112
+ nonCroppedFile?: {
113
+ path: string;
114
+ id: string;
115
+ userId: string | number;
116
+ signedUrl: string;
117
+ createdAt: Date;
118
+ } | null | undefined;
83
119
  }>;
84
120
  export type OrderLabel = z.infer<typeof OrderLabelSchema>;
85
121
  //# sourceMappingURL=OrderLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OrderLabel.d.ts","sourceRoot":"","sources":["OrderLabel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO3B,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
1
+ {"version":3,"file":"OrderLabel.d.ts","sourceRoot":"","sources":["OrderLabel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS3B,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA"}
@@ -7,8 +7,10 @@ exports.OrderLabelSchema = zod_1.z.object({
7
7
  id: zod_1.z.string().uuid(),
8
8
  orderId: zod_1.z.string().uuid(),
9
9
  fileId: zod_1.z.string().uuid(),
10
+ nonCroppedFileId: zod_1.z.string().uuid(),
10
11
  originalFileId: zod_1.z.string().uuid(),
11
12
  file: controlresell_storage_1.FileSchema.nullish(),
13
+ nonCroppedFile: controlresell_storage_1.FileSchema.nullish(),
12
14
  originalFile: controlresell_storage_1.FileSchema.nullish()
13
15
  });
14
16
  //# sourceMappingURL=OrderLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OrderLabel.js","sourceRoot":"","sources":["OrderLabel.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AACrB,iEAAgD;AAEnC,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC1B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACjC,IAAI,EAAE,kCAAU,CAAC,OAAO,EAAE;IAC1B,YAAY,EAAE,kCAAU,CAAC,OAAO,EAAE;CACrC,CAAC,CAAA"}
1
+ {"version":3,"file":"OrderLabel.js","sourceRoot":"","sources":["OrderLabel.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AACrB,iEAAgD;AAEnC,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACrB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC1B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzB,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACnC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACjC,IAAI,EAAE,kCAAU,CAAC,OAAO,EAAE;IAC1B,cAAc,EAAE,kCAAU,CAAC,OAAO,EAAE;IACpC,YAAY,EAAE,kCAAU,CAAC,OAAO,EAAE;CACrC,CAAC,CAAA"}
@@ -5,8 +5,10 @@ export const OrderLabelSchema = z.object({
5
5
  id: z.string().uuid(),
6
6
  orderId: z.string().uuid(),
7
7
  fileId: z.string().uuid(),
8
+ nonCroppedFileId: z.string().uuid(),
8
9
  originalFileId: z.string().uuid(),
9
10
  file: FileSchema.nullish(),
11
+ nonCroppedFile: FileSchema.nullish(),
10
12
  originalFile: FileSchema.nullish()
11
13
  })
12
14
  export type OrderLabel = z.infer<typeof OrderLabelSchema>
@@ -0,0 +1,13 @@
1
+ import { z } from "zod";
2
+ export declare const UpdateOrderLabelPayloadSchema: z.ZodObject<{
3
+ fileId: z.ZodString;
4
+ nonCroppedFileId: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ fileId: string;
7
+ nonCroppedFileId: string;
8
+ }, {
9
+ fileId: string;
10
+ nonCroppedFileId: string;
11
+ }>;
12
+ export type UpdateOrderLabelPayload = z.infer<typeof UpdateOrderLabelPayloadSchema>;
13
+ //# sourceMappingURL=UpdateOrderLabelPayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateOrderLabelPayload.d.ts","sourceRoot":"","sources":["UpdateOrderLabelPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateOrderLabelPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.UpdateOrderLabelPayloadSchema = zod_1.z.object({
6
+ fileId: zod_1.z.string().uuid(),
7
+ nonCroppedFileId: zod_1.z.string().uuid()
8
+ });
9
+ //# sourceMappingURL=UpdateOrderLabelPayload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateOrderLabelPayload.js","sourceRoot":"","sources":["UpdateOrderLabelPayload.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AAER,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACzB,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CACtC,CAAC,CAAA"}
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+
3
+ export const UpdateOrderLabelPayloadSchema = z.object({
4
+ fileId: z.string().uuid(),
5
+ nonCroppedFileId: z.string().uuid()
6
+ })
7
+ export type UpdateOrderLabelPayload = z.infer<typeof UpdateOrderLabelPayloadSchema>
@@ -153,6 +153,7 @@ export declare const OrderSchema: z.ZodObject<{
153
153
  id: z.ZodString;
154
154
  orderId: z.ZodString;
155
155
  fileId: z.ZodString;
156
+ nonCroppedFileId: z.ZodString;
156
157
  originalFileId: z.ZodString;
157
158
  file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
158
159
  id: z.ZodString;
@@ -173,6 +174,25 @@ export declare const OrderSchema: z.ZodObject<{
173
174
  signedUrl: string;
174
175
  createdAt: Date;
175
176
  }>>>;
177
+ nonCroppedFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
178
+ id: z.ZodString;
179
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
180
+ path: z.ZodString;
181
+ signedUrl: z.ZodString;
182
+ createdAt: z.ZodDate;
183
+ }, "strip", z.ZodTypeAny, {
184
+ path: string;
185
+ id: string;
186
+ userId: string | number;
187
+ signedUrl: string;
188
+ createdAt: Date;
189
+ }, {
190
+ path: string;
191
+ id: string;
192
+ userId: string | number;
193
+ signedUrl: string;
194
+ createdAt: Date;
195
+ }>>>;
176
196
  originalFile: z.ZodOptional<z.ZodNullable<z.ZodObject<{
177
197
  id: z.ZodString;
178
198
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -196,6 +216,7 @@ export declare const OrderSchema: z.ZodObject<{
196
216
  id: string;
197
217
  fileId: string;
198
218
  orderId: string;
219
+ nonCroppedFileId: string;
199
220
  originalFileId: string;
200
221
  file?: {
201
222
  path: string;
@@ -211,10 +232,18 @@ export declare const OrderSchema: z.ZodObject<{
211
232
  signedUrl: string;
212
233
  createdAt: Date;
213
234
  } | null | undefined;
235
+ nonCroppedFile?: {
236
+ path: string;
237
+ id: string;
238
+ userId: string | number;
239
+ signedUrl: string;
240
+ createdAt: Date;
241
+ } | null | undefined;
214
242
  }, {
215
243
  id: string;
216
244
  fileId: string;
217
245
  orderId: string;
246
+ nonCroppedFileId: string;
218
247
  originalFileId: string;
219
248
  file?: {
220
249
  path: string;
@@ -230,6 +259,13 @@ export declare const OrderSchema: z.ZodObject<{
230
259
  signedUrl: string;
231
260
  createdAt: Date;
232
261
  } | null | undefined;
262
+ nonCroppedFile?: {
263
+ path: string;
264
+ id: string;
265
+ userId: string | number;
266
+ signedUrl: string;
267
+ createdAt: Date;
268
+ } | null | undefined;
233
269
  }>, "many">>>;
234
270
  }, "strip", z.ZodTypeAny, {
235
271
  status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
@@ -269,6 +305,7 @@ export declare const OrderSchema: z.ZodObject<{
269
305
  id: string;
270
306
  fileId: string;
271
307
  orderId: string;
308
+ nonCroppedFileId: string;
272
309
  originalFileId: string;
273
310
  file?: {
274
311
  path: string;
@@ -284,6 +321,13 @@ export declare const OrderSchema: z.ZodObject<{
284
321
  signedUrl: string;
285
322
  createdAt: Date;
286
323
  } | null | undefined;
324
+ nonCroppedFile?: {
325
+ path: string;
326
+ id: string;
327
+ userId: string | number;
328
+ signedUrl: string;
329
+ createdAt: Date;
330
+ } | null | undefined;
287
331
  }[] | null | undefined;
288
332
  }, {
289
333
  status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
@@ -323,6 +367,7 @@ export declare const OrderSchema: z.ZodObject<{
323
367
  id: string;
324
368
  fileId: string;
325
369
  orderId: string;
370
+ nonCroppedFileId: string;
326
371
  originalFileId: string;
327
372
  file?: {
328
373
  path: string;
@@ -338,6 +383,13 @@ export declare const OrderSchema: z.ZodObject<{
338
383
  signedUrl: string;
339
384
  createdAt: Date;
340
385
  } | null | undefined;
386
+ nonCroppedFile?: {
387
+ path: string;
388
+ id: string;
389
+ userId: string | number;
390
+ signedUrl: string;
391
+ createdAt: Date;
392
+ } | null | undefined;
341
393
  }[] | null | undefined;
342
394
  }>;
343
395
  export type Order = z.infer<typeof OrderSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["Order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAKrB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWtB,CAAA;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA"}
1
+ {"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["Order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAKrB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWtB,CAAA;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA"}