lancer-shared 1.0.138 → 1.0.140
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.
|
@@ -15,9 +15,11 @@ export declare const bidConfigSchema: z.ZodObject<{
|
|
|
15
15
|
bidderId: string | null;
|
|
16
16
|
specialisedProfile: string | null;
|
|
17
17
|
}>;
|
|
18
|
+
export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
|
|
18
19
|
export declare const organizationSchema: z.ZodObject<{
|
|
19
20
|
id: z.ZodString;
|
|
20
21
|
name: z.ZodString;
|
|
22
|
+
type: z.ZodEnum<["agency", "freelancer"]>;
|
|
21
23
|
bidConfig: z.ZodObject<{
|
|
22
24
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
23
25
|
bidderId: z.ZodNullable<z.ZodString>;
|
|
@@ -37,6 +39,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
37
39
|
createdAt: z.ZodDate;
|
|
38
40
|
updatedAt: z.ZodDate;
|
|
39
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
type: "agency" | "freelancer";
|
|
40
43
|
id: string;
|
|
41
44
|
name: string;
|
|
42
45
|
createdAt: Date;
|
|
@@ -48,6 +51,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
48
51
|
specialisedProfile: string | null;
|
|
49
52
|
};
|
|
50
53
|
}, {
|
|
54
|
+
type: "agency" | "freelancer";
|
|
51
55
|
id: string;
|
|
52
56
|
name: string;
|
|
53
57
|
createdAt: Date;
|
|
@@ -59,3 +63,8 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
59
63
|
specialisedProfile: string | null;
|
|
60
64
|
};
|
|
61
65
|
}>;
|
|
66
|
+
export interface Organization extends z.infer<typeof organizationSchema> {
|
|
67
|
+
}
|
|
68
|
+
export interface BidConfig extends z.infer<typeof bidConfigSchema> {
|
|
69
|
+
}
|
|
70
|
+
export type OrganizationType = z.infer<typeof organizationTypeSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.organizationSchema = exports.bidConfigSchema = void 0;
|
|
3
|
+
exports.organizationSchema = exports.organizationTypeSchema = exports.bidConfigSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.bidConfigSchema = zod_1.z.object({
|
|
6
6
|
agencyName: zod_1.z.string().nullable(),
|
|
@@ -8,9 +8,11 @@ exports.bidConfigSchema = zod_1.z.object({
|
|
|
8
8
|
contractorName: zod_1.z.string().nullable(),
|
|
9
9
|
specialisedProfile: zod_1.z.string().nullable(),
|
|
10
10
|
});
|
|
11
|
+
exports.organizationTypeSchema = zod_1.z.enum(['agency', 'freelancer']);
|
|
11
12
|
exports.organizationSchema = zod_1.z.object({
|
|
12
13
|
id: zod_1.z.string(),
|
|
13
14
|
name: zod_1.z.string(),
|
|
15
|
+
type: exports.organizationTypeSchema,
|
|
14
16
|
bidConfig: exports.bidConfigSchema,
|
|
15
17
|
createdAt: zod_1.z.date(),
|
|
16
18
|
updatedAt: zod_1.z.date(),
|