controlresell 0.0.34 → 0.0.36

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.
@@ -9,6 +9,22 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
9
9
  platformUrl: z.ZodString;
10
10
  platformPrice: z.ZodNumber;
11
11
  status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
12
+ account: z.ZodOptional<z.ZodNullable<z.ZodObject<{
13
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
14
+ accountId: z.ZodString;
15
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
16
+ name: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ platform: "VINTED" | "SHOPIFY";
19
+ accountId: string;
20
+ userId: string | number;
21
+ name: string;
22
+ }, {
23
+ platform: "VINTED" | "SHOPIFY";
24
+ accountId: string;
25
+ userId: string | number;
26
+ name: string;
27
+ }>>>;
12
28
  }, "strip", z.ZodTypeAny, {
13
29
  status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
14
30
  id: string;
@@ -17,6 +33,12 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
17
33
  platformId: string;
18
34
  platformUrl: string;
19
35
  platformPrice: number;
36
+ account?: {
37
+ platform: "VINTED" | "SHOPIFY";
38
+ accountId: string;
39
+ userId: string | number;
40
+ name: string;
41
+ } | null | undefined;
20
42
  }, {
21
43
  status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
22
44
  id: string;
@@ -25,6 +47,12 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
25
47
  platformId: string;
26
48
  platformUrl: string;
27
49
  platformPrice: number;
50
+ account?: {
51
+ platform: "VINTED" | "SHOPIFY";
52
+ accountId: string;
53
+ userId: string | number;
54
+ name: string;
55
+ } | null | undefined;
28
56
  }>;
29
57
  export type ItemOnPlatform = z.infer<typeof ItemOnPlatformSchema>;
30
58
  export declare const CreateItemOnPlatformPayloadSchema: z.ZodObject<{
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ItemOnPlatformsRequestSchema = exports.UpdateItemOnPlatformPayloadSchema = exports.CreateItemOnPlatformPayloadSchema = exports.ItemOnPlatformSchema = exports.ItemOnPlatformStatusSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const primitives_1 = require("../primitives");
6
+ const userOnPlatform_1 = require("../users/userOnPlatform");
6
7
  exports.ItemOnPlatformStatusSchema = zod_1.z.enum([
7
8
  "ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE",
8
9
  ]);
@@ -14,6 +15,7 @@ exports.ItemOnPlatformSchema = zod_1.z.object({
14
15
  platformUrl: zod_1.z.string().url(),
15
16
  platformPrice: zod_1.z.number(),
16
17
  status: exports.ItemOnPlatformStatusSchema,
18
+ account: userOnPlatform_1.UserOnPlatformSchema.nullish(),
17
19
  });
18
20
  exports.CreateItemOnPlatformPayloadSchema = zod_1.z.object({
19
21
  accountId: zod_1.z.string().uuid(),
@@ -3,25 +3,31 @@ export declare const UserOnPlatformSchema: z.ZodObject<{
3
3
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
4
4
  accountId: z.ZodString;
5
5
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
6
+ name: z.ZodString;
6
7
  }, "strip", z.ZodTypeAny, {
7
8
  platform: "VINTED" | "SHOPIFY";
8
9
  accountId: string;
9
10
  userId: string | number;
11
+ name: string;
10
12
  }, {
11
13
  platform: "VINTED" | "SHOPIFY";
12
14
  accountId: string;
13
15
  userId: string | number;
16
+ name: string;
14
17
  }>;
15
18
  export type UserOnPlatform = z.infer<typeof UserOnPlatformSchema>;
16
19
  export declare const CreateUserOnPlatformPayloadSchema: z.ZodObject<{
17
20
  accountId: z.ZodString;
18
21
  platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
22
+ name: z.ZodString;
19
23
  }, "strip", z.ZodTypeAny, {
20
24
  platform: "VINTED" | "SHOPIFY";
21
25
  accountId: string;
26
+ name: string;
22
27
  }, {
23
28
  platform: "VINTED" | "SHOPIFY";
24
29
  accountId: string;
30
+ name: string;
25
31
  }>;
26
32
  export type CreateUserOnPlatformPayload = z.infer<typeof CreateUserOnPlatformPayloadSchema>;
27
33
  export declare const UserOnPlatformRequestSchema: z.ZodObject<{
@@ -8,10 +8,12 @@ exports.UserOnPlatformSchema = zod_1.z.object({
8
8
  userId: primitives_1.IdSchema,
9
9
  accountId: zod_1.z.string().uuid(),
10
10
  platform: account_1.ConnectorAccountPlatformSchema,
11
+ name: zod_1.z.string(),
11
12
  });
12
13
  exports.CreateUserOnPlatformPayloadSchema = zod_1.z.object({
13
14
  accountId: zod_1.z.string().uuid(),
14
15
  platform: account_1.ConnectorAccountPlatformSchema,
16
+ name: zod_1.z.string(),
15
17
  });
16
18
  exports.UserOnPlatformRequestSchema = zod_1.z.object({
17
19
  platform: account_1.ConnectorAccountPlatformSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",