lancer-shared 1.0.57 → 1.0.58
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const upworkBusinessManagerAccountProvider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
2
3
|
export declare const upworkBusinessManagerAccountSchema: z.ZodObject<{
|
|
3
4
|
provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
4
5
|
email: z.ZodString;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.upworkBusinessManagerAccountSchema = void 0;
|
|
3
|
+
exports.upworkBusinessManagerAccountSchema = exports.upworkBusinessManagerAccountProvider = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.upworkBusinessManagerAccountProvider = zod_1.z.enum([
|
|
6
|
+
'user_provided',
|
|
7
|
+
'lancer_provided',
|
|
8
|
+
]);
|
|
5
9
|
exports.upworkBusinessManagerAccountSchema = zod_1.z.object({
|
|
6
|
-
provider:
|
|
10
|
+
provider: exports.upworkBusinessManagerAccountProvider,
|
|
7
11
|
email: zod_1.z.string().email(),
|
|
8
12
|
password: zod_1.z.string(),
|
|
9
13
|
cookies: zod_1.z.array(zod_1.z.any()).nullable(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { upworkBusinessManagerAccountSchema } from '../../schemas';
|
|
2
|
+
import { upworkBusinessManagerAccountProvider, upworkBusinessManagerAccountSchema } from '../../schemas';
|
|
3
3
|
export interface UpworkBusinessManagerAccount extends z.infer<typeof upworkBusinessManagerAccountSchema> {
|
|
4
4
|
}
|
|
5
|
+
export type UpworkBusinessManagerAccountProvider = z.infer<typeof upworkBusinessManagerAccountProvider>;
|