controlresell 0.0.51 → 0.0.53

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
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.2"
18
18
  },
19
19
  "dependencies": {
20
- "controlresell-connector": "^0.0.18",
20
+ "controlresell-connector": "^0.0.19",
21
21
  "zod": "^3.24.2",
22
22
  "zodable-idschema": "^1.0.0"
23
23
  }
@@ -1,3 +1,3 @@
1
1
  import { z } from "zod";
2
- export declare const RabbitMQRoutingKeySchema: z.ZodEnum<["ITEMS_PUBLISH"]>;
2
+ export declare const RabbitMQRoutingKeySchema: z.ZodEnum<["ITEMS_PUBLISH", "PLATFORMS_AUTH"]>;
3
3
  export type RabbitMQRoutingKey = z.infer<typeof RabbitMQRoutingKeySchema>;
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RabbitMQRoutingKeySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.RabbitMQRoutingKeySchema = zod_1.z.enum([
6
- "ITEMS_PUBLISH"
6
+ "ITEMS_PUBLISH", "PLATFORMS_AUTH"
7
7
  ]);
@@ -1,6 +1,6 @@
1
1
  import {z} from "zod"
2
2
 
3
3
  export const RabbitMQRoutingKeySchema = z.enum([
4
- "ITEMS_PUBLISH"
4
+ "ITEMS_PUBLISH", "PLATFORMS_AUTH"
5
5
  ])
6
6
  export type RabbitMQRoutingKey = z.infer<typeof RabbitMQRoutingKeySchema>
@@ -18,8 +18,8 @@ export declare const UpdateUserPayloadSchema: z.ZodObject<{
18
18
  defaultValue?: string | null | undefined;
19
19
  }>, "many">>>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- firstName?: string | null | undefined;
22
21
  username?: string | null | undefined;
22
+ firstName?: string | null | undefined;
23
23
  membership?: string | null | undefined;
24
24
  affiliate?: string | null | undefined;
25
25
  notificationToken?: string | null | undefined;
@@ -30,8 +30,8 @@ export declare const UpdateUserPayloadSchema: z.ZodObject<{
30
30
  defaultValue?: string | null | undefined;
31
31
  }[] | null | undefined;
32
32
  }, {
33
- firstName?: string | null | undefined;
34
33
  username?: string | null | undefined;
34
+ firstName?: string | null | undefined;
35
35
  membership?: string | null | undefined;
36
36
  affiliate?: string | null | undefined;
37
37
  notificationToken?: string | null | undefined;
@@ -77,13 +77,14 @@ export declare const UserSchema: z.ZodObject<{
77
77
  updatedAt: z.ZodDate;
78
78
  }, "strip", z.ZodTypeAny, {
79
79
  id: string | number;
80
+ username: string;
80
81
  createdAt: Date;
81
82
  updatedAt: Date;
82
- username: string;
83
83
  membership: string;
84
84
  anonymous: boolean;
85
85
  isPro: boolean;
86
86
  isShop: boolean;
87
+ password?: string | null | undefined;
87
88
  firstName?: string | null | undefined;
88
89
  email?: string | null | undefined;
89
90
  affiliate?: string | null | undefined;
@@ -94,7 +95,6 @@ export declare const UserSchema: z.ZodObject<{
94
95
  id: string;
95
96
  defaultValue?: string | null | undefined;
96
97
  }[] | null | undefined;
97
- password?: string | null | undefined;
98
98
  wallet?: {
99
99
  profit: number;
100
100
  revenue: number;
@@ -115,13 +115,14 @@ export declare const UserSchema: z.ZodObject<{
115
115
  }[] | null | undefined;
116
116
  }, {
117
117
  id: string | number;
118
+ username: string;
118
119
  createdAt: Date;
119
120
  updatedAt: Date;
120
- username: string;
121
121
  membership: string;
122
122
  anonymous: boolean;
123
123
  isPro: boolean;
124
124
  isShop: boolean;
125
+ password?: string | null | undefined;
125
126
  firstName?: string | null | undefined;
126
127
  email?: string | null | undefined;
127
128
  affiliate?: string | null | undefined;
@@ -132,7 +133,6 @@ export declare const UserSchema: z.ZodObject<{
132
133
  id: string;
133
134
  defaultValue?: string | null | undefined;
134
135
  }[] | null | undefined;
135
- password?: string | null | undefined;
136
136
  wallet?: {
137
137
  profit: number;
138
138
  revenue: number;
@@ -0,0 +1,37 @@
1
+ import { z } from "zod";
2
+ export declare const PlatformAuthRequestSchema: z.ZodObject<{
3
+ account: z.ZodObject<{
4
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
5
+ accountId: z.ZodString;
6
+ platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
7
+ name: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ platform: "VINTED" | "SHOPIFY";
10
+ accountId: string;
11
+ userId: string | number;
12
+ name: string;
13
+ }, {
14
+ platform: "VINTED" | "SHOPIFY";
15
+ accountId: string;
16
+ userId: string | number;
17
+ name: string;
18
+ }>;
19
+ otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ account: {
22
+ platform: "VINTED" | "SHOPIFY";
23
+ accountId: string;
24
+ userId: string | number;
25
+ name: string;
26
+ };
27
+ otp?: number | null | undefined;
28
+ }, {
29
+ account: {
30
+ platform: "VINTED" | "SHOPIFY";
31
+ accountId: string;
32
+ userId: string | number;
33
+ name: string;
34
+ };
35
+ otp?: number | null | undefined;
36
+ }>;
37
+ export type PlatformAuthRequest = z.infer<typeof PlatformAuthRequestSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformAuthRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const UserOnPlatform_1 = require("./UserOnPlatform");
6
+ exports.PlatformAuthRequestSchema = zod_1.z.object({
7
+ account: UserOnPlatform_1.UserOnPlatformSchema,
8
+ otp: zod_1.z.number().int().nullish()
9
+ });
@@ -0,0 +1,8 @@
1
+ import {z} from "zod"
2
+ import {UserOnPlatformSchema} from "./UserOnPlatform"
3
+
4
+ export const PlatformAuthRequestSchema = z.object({
5
+ account: UserOnPlatformSchema,
6
+ otp: z.number().int().nullish()
7
+ })
8
+ export type PlatformAuthRequest = z.infer<typeof PlatformAuthRequestSchema>
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export declare const UserOnPlatformSessionMessageSchema: z.ZodObject<{
3
+ otp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4
+ }, "strip", z.ZodTypeAny, {
5
+ otp?: number | null | undefined;
6
+ }, {
7
+ otp?: number | null | undefined;
8
+ }>;
9
+ export type UserOnPlatformSessionMessage = z.infer<typeof UserOnPlatformSessionMessageSchema>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserOnPlatformSessionMessageSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.UserOnPlatformSessionMessageSchema = zod_1.z.object({
6
+ otp: zod_1.z.number().int().nullish()
7
+ });
@@ -0,0 +1,6 @@
1
+ import {z} from "zod"
2
+
3
+ export const UserOnPlatformSessionMessageSchema = z.object({
4
+ otp: z.number().int().nullish()
5
+ })
6
+ export type UserOnPlatformSessionMessage = z.infer<typeof UserOnPlatformSessionMessageSchema>
package/src/index.d.ts CHANGED
@@ -75,5 +75,7 @@ export * from "./com/controlresell/models/users/fields/FieldType";
75
75
  export * from "./com/controlresell/models/users/files/CreateFilePayload";
76
76
  export * from "./com/controlresell/models/users/files/File";
77
77
  export * from "./com/controlresell/models/users/platforms/CreateUserOnPlatformPayload";
78
+ export * from "./com/controlresell/models/users/platforms/PlatformAuthRequest";
78
79
  export * from "./com/controlresell/models/users/platforms/UserOnPlatform";
80
+ export * from "./com/controlresell/models/users/platforms/UserOnPlatformSessionMessage";
79
81
  export * from "./com/controlresell/models/users/preferences/UserPreference";
package/src/index.js CHANGED
@@ -91,5 +91,7 @@ __exportStar(require("./com/controlresell/models/users/fields/FieldType"), expor
91
91
  __exportStar(require("./com/controlresell/models/users/files/CreateFilePayload"), exports);
92
92
  __exportStar(require("./com/controlresell/models/users/files/File"), exports);
93
93
  __exportStar(require("./com/controlresell/models/users/platforms/CreateUserOnPlatformPayload"), exports);
94
+ __exportStar(require("./com/controlresell/models/users/platforms/PlatformAuthRequest"), exports);
94
95
  __exportStar(require("./com/controlresell/models/users/platforms/UserOnPlatform"), exports);
96
+ __exportStar(require("./com/controlresell/models/users/platforms/UserOnPlatformSessionMessage"), exports);
95
97
  __exportStar(require("./com/controlresell/models/users/preferences/UserPreference"), exports);
package/src/index.ts CHANGED
@@ -75,5 +75,7 @@ export * from "./com/controlresell/models/users/fields/FieldType"
75
75
  export * from "./com/controlresell/models/users/files/CreateFilePayload"
76
76
  export * from "./com/controlresell/models/users/files/File"
77
77
  export * from "./com/controlresell/models/users/platforms/CreateUserOnPlatformPayload"
78
+ export * from "./com/controlresell/models/users/platforms/PlatformAuthRequest"
78
79
  export * from "./com/controlresell/models/users/platforms/UserOnPlatform"
80
+ export * from "./com/controlresell/models/users/platforms/UserOnPlatformSessionMessage"
79
81
  export * from "./com/controlresell/models/users/preferences/UserPreference"