lancer-shared 1.0.85 → 1.0.87

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.
@@ -73,14 +73,10 @@ export declare const ROUTES: {
73
73
  readonly ADMIN: {
74
74
  readonly BASE: "admin";
75
75
  readonly MANAGER_ACCOUNTS: {
76
- readonly LANCER_PROVIDED: {
77
- readonly BASE: "admin/manager-accounts/lancer-provided";
78
- readonly BY_ID: (id: string) => string;
79
- };
80
- readonly USER_PROVIDED: {
81
- readonly BASE: "admin/manager-accounts/user-provided";
82
- readonly BY_ID: (id: string) => string;
83
- };
76
+ readonly BASE: "admin/manager-accounts";
77
+ readonly BY_ID: (id: string) => string;
78
+ readonly BY_PROVIDER: (provider: string) => string;
79
+ readonly BY_PROVIDER_AND_ID: (provider: string, id: string) => string;
84
80
  };
85
81
  readonly SCRAPER_ACCOUNTS: {
86
82
  readonly BASE: "admin/scraper-accounts";
@@ -76,14 +76,10 @@ exports.ROUTES = {
76
76
  ADMIN: {
77
77
  BASE: 'admin',
78
78
  MANAGER_ACCOUNTS: {
79
- LANCER_PROVIDED: {
80
- BASE: 'admin/manager-accounts/lancer-provided',
81
- BY_ID: (id) => `admin/manager-accounts/lancer-provided/${id}`,
82
- },
83
- USER_PROVIDED: {
84
- BASE: 'admin/manager-accounts/user-provided',
85
- BY_ID: (id) => `admin/manager-accounts/user-provided/${id}`,
86
- },
79
+ BASE: 'admin/manager-accounts',
80
+ BY_ID: (id) => `admin/manager-accounts/${id}`,
81
+ BY_PROVIDER: (provider) => `admin/manager-accounts/${provider}`,
82
+ BY_PROVIDER_AND_ID: (provider, id) => `admin/manager-accounts/${provider}/${id}`,
87
83
  },
88
84
  SCRAPER_ACCOUNTS: {
89
85
  BASE: 'admin/scraper-accounts',
@@ -12,10 +12,14 @@ export declare const managerAccountSchema: z.ZodObject<{
12
12
  isActive: z.ZodBoolean;
13
13
  assignedOrganizations: z.ZodArray<z.ZodString, "many">;
14
14
  lastUsed: z.ZodNullable<z.ZodNumber>;
15
+ createdAt: z.ZodNumber;
16
+ updatedAt: z.ZodNumber;
15
17
  }, "strip", z.ZodTypeAny, {
16
18
  id: string;
17
19
  email: string;
18
20
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
21
+ createdAt: number;
22
+ updatedAt: number;
19
23
  cookies: any[] | null;
20
24
  password: string;
21
25
  isActive: boolean;
@@ -28,6 +32,8 @@ export declare const managerAccountSchema: z.ZodObject<{
28
32
  id: string;
29
33
  email: string;
30
34
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
35
+ createdAt: number;
36
+ updatedAt: number;
31
37
  cookies: any[] | null;
32
38
  password: string;
33
39
  isActive: boolean;
@@ -49,6 +55,8 @@ export declare const createManagerAccountSchema: z.ZodObject<Pick<{
49
55
  isActive: z.ZodBoolean;
50
56
  assignedOrganizations: z.ZodArray<z.ZodString, "many">;
51
57
  lastUsed: z.ZodNullable<z.ZodNumber>;
58
+ createdAt: z.ZodNumber;
59
+ updatedAt: z.ZodNumber;
52
60
  }, "email" | "status" | "password" | "isActive" | "provider" | "proxy" | "verified">, "strip", z.ZodTypeAny, {
53
61
  email: string;
54
62
  status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
@@ -69,6 +77,8 @@ export declare const createManagerAccountSchema: z.ZodObject<Pick<{
69
77
  export declare const updateManagerAccountSchema: z.ZodObject<{
70
78
  email: z.ZodOptional<z.ZodString>;
71
79
  status: z.ZodOptional<z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>>;
80
+ createdAt: z.ZodOptional<z.ZodNumber>;
81
+ updatedAt: z.ZodOptional<z.ZodNumber>;
72
82
  cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
73
83
  password: z.ZodOptional<z.ZodString>;
74
84
  isActive: z.ZodOptional<z.ZodBoolean>;
@@ -80,6 +90,8 @@ export declare const updateManagerAccountSchema: z.ZodObject<{
80
90
  }, "strip", z.ZodTypeAny, {
81
91
  email?: string | undefined;
82
92
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
93
+ createdAt?: number | undefined;
94
+ updatedAt?: number | undefined;
83
95
  cookies?: any[] | null | undefined;
84
96
  password?: string | undefined;
85
97
  isActive?: boolean | undefined;
@@ -91,6 +103,8 @@ export declare const updateManagerAccountSchema: z.ZodObject<{
91
103
  }, {
92
104
  email?: string | undefined;
93
105
  status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
106
+ createdAt?: number | undefined;
107
+ updatedAt?: number | undefined;
94
108
  cookies?: any[] | null | undefined;
95
109
  password?: string | undefined;
96
110
  isActive?: boolean | undefined;
@@ -19,6 +19,8 @@ exports.managerAccountSchema = zod_1.z.object({
19
19
  isActive: zod_1.z.boolean(),
20
20
  assignedOrganizations: zod_1.z.array(zod_1.z.string()),
21
21
  lastUsed: zod_1.z.number().nullable(),
22
+ createdAt: zod_1.z.number(),
23
+ updatedAt: zod_1.z.number(),
22
24
  });
23
25
  exports.createManagerAccountSchema = exports.managerAccountSchema.pick({
24
26
  email: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "name": "lancer-shared",
4
- "version": "1.0.85",
4
+ "version": "1.0.87",
5
5
  "description": "This package contains shared stuff.",
6
6
  "types": "./dist/index.d.ts",
7
7
  "main": "./dist/index.js",