lancer-shared 1.2.2 → 1.2.3
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/dist/constants/collections.js +11 -13
- package/dist/constants/common-questions.js +1 -4
- package/dist/constants/index.js +10 -32
- package/dist/constants/job-filter-options.js +1 -4
- package/dist/constants/job-status.js +7 -12
- package/dist/constants/mappings/countryMapping.js +1 -3
- package/dist/constants/mappings/regionMapping.js +1 -3
- package/dist/constants/routes.js +43 -35
- package/dist/constants/upwork-accounts.js +3 -6
- package/dist/index.js +4 -20
- package/dist/schemas/account/account-status.js +2 -5
- package/dist/schemas/account/bidder-account.js +22 -24
- package/dist/schemas/account/index.js +3 -19
- package/dist/schemas/account/scraper-account.js +21 -24
- package/dist/schemas/ai/ai-config.js +8 -11
- package/dist/schemas/ai/index.js +3 -19
- package/dist/schemas/ai/proposal.js +10 -13
- package/dist/schemas/ai/suitability.js +8 -11
- package/dist/schemas/bid/bid-result.js +9 -13
- package/dist/schemas/bid/bid.js +29 -30
- package/dist/schemas/bid/index.js +2 -18
- package/dist/schemas/campaign/campaign-ai-metrics.js +5 -8
- package/dist/schemas/campaign/campaign-analytics.js +32 -31
- package/dist/schemas/campaign/campaign-expenses.js +5 -8
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.js +10 -13
- package/dist/schemas/campaign/campaign-job-count.js +3 -6
- package/dist/schemas/campaign/campaign.js +32 -35
- package/dist/schemas/campaign/index.js +7 -23
- package/dist/schemas/chat-message/chat-message.js +7 -10
- package/dist/schemas/chat-message/index.js +1 -17
- package/dist/schemas/config/agency-config.js +6 -9
- package/dist/schemas/config/index.js +1 -17
- package/dist/schemas/event/index.d.ts +58 -0
- package/dist/schemas/index.js +17 -32
- package/dist/schemas/job/index.d.ts +95 -3
- package/dist/schemas/job-filters/index.js +1 -17
- package/dist/schemas/job-filters/job-filters.js +62 -65
- package/dist/schemas/lead/index.js +173 -19
- package/dist/schemas/lead/lead-note.js +13 -16
- package/dist/schemas/lead/lead-status.js +3 -6
- package/dist/schemas/lead/nuxt.js +287 -0
- package/dist/schemas/logger/index.js +1 -17
- package/dist/schemas/logger/log-event.js +100 -49
- package/dist/schemas/organization/index.js +70 -17
- package/dist/schemas/organization/member.js +7 -0
- package/dist/schemas/organization/organization.d.ts +177 -7
- package/dist/schemas/organization/organization.js +14 -17
- package/dist/schemas/organization/subscription.js +17 -0
- package/dist/schemas/proxy/index.js +3 -17
- package/dist/schemas/proxy/proxy-available-replacements.js +3 -0
- package/dist/schemas/proxy/proxy-country.js +249 -0
- package/dist/schemas/proxy/proxy.js +25 -17
- package/dist/schemas/saved-search/index.js +8 -11
- package/dist/schemas/scraper/index.js +2 -18
- package/dist/schemas/scraper/scrape-payload.js +19 -14
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.js +12 -9
- package/dist/schemas/time-filter/index.js +5 -8
- package/dist/schemas/transaction/index.js +17 -0
- package/dist/schemas/usage/index.js +18 -0
- package/dist/schemas/user/index.js +38 -41
- package/dist/types/account/account-status.js +1 -2
- package/dist/types/account/bidder-account.js +1 -2
- package/dist/types/account/index.js +3 -19
- package/dist/types/account/scraper-account.js +1 -2
- package/dist/types/ai/ai-config.js +1 -2
- package/dist/types/ai/index.js +3 -19
- package/dist/types/ai/proposal.js +1 -2
- package/dist/types/ai/suitability.js +1 -2
- package/dist/types/bid/bid-result.js +1 -2
- package/dist/types/bid/bid.js +1 -2
- package/dist/types/bid/index.js +2 -18
- package/dist/types/campaign/campaign-analytics.js +1 -2
- package/dist/types/campaign/campaign-expenses.js +1 -2
- package/dist/types/campaign/campaign-insights.js +1 -2
- package/dist/types/campaign/campaign-integrations.js +1 -2
- package/dist/types/campaign/campaign-job-count.js +1 -2
- package/dist/types/campaign/campaign.js +1 -2
- package/dist/types/campaign/index.js +6 -22
- package/dist/types/chat-message/chat-message.js +1 -2
- package/dist/types/chat-message/index.js +1 -17
- package/dist/types/config/agency-config.js +1 -2
- package/dist/types/config/index.js +1 -17
- package/dist/types/index.js +15 -29
- package/dist/types/job/index.js +3 -19
- package/dist/types/job/job-note.js +1 -2
- package/dist/types/job/job-status.js +1 -4
- package/dist/types/job/nuxt.js +1 -0
- package/dist/types/job-filters/index.js +1 -17
- package/dist/types/job-filters/job-filters.js +1 -2
- package/dist/types/logger/index.js +1 -17
- package/dist/types/logger/log-event.js +1 -2
- package/dist/types/saved-search/index.js +1 -2
- package/dist/types/scraper/index.js +2 -18
- package/dist/types/scraper/scrape-payload.js +1 -2
- package/dist/types/scraper/scrape-result.js +1 -2
- package/dist/types/shared.js +1 -0
- package/dist/types/time-filter/index.js +1 -2
- package/dist/types/transaction/index.js +1 -0
- package/dist/types/usage/index.js +1 -0
- package/dist/types/user/index.js +1 -2
- package/dist/utils/index.js +1 -17
- package/dist/utils/try-catch.js +8 -23
- package/package.json +2 -2
- package/dist/constants/account-status.d.ts +0 -3
- package/dist/constants/account-status.js +0 -17
- package/dist/schemas/account/manager-account.d.ts +0 -116
- package/dist/schemas/account/manager-account.js +0 -38
- package/dist/schemas/bidding/index.d.ts +0 -1
- package/dist/schemas/bidding/index.js +0 -17
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +0 -26
- package/dist/schemas/bidding/proposal-bidding-status.js +0 -18
- package/dist/schemas/job/index.js +0 -19
- package/dist/schemas/job/job-details.d.ts +0 -335
- package/dist/schemas/job/job-details.js +0 -29
- package/dist/schemas/job/job-note.d.ts +0 -83
- package/dist/schemas/job/job-note.js +0 -30
- package/dist/schemas/job/job-status.d.ts +0 -3
- package/dist/schemas/job/job-status.js +0 -27
- package/dist/schemas/job/job.d.ts +0 -1160
- package/dist/schemas/job/job.js +0 -90
- package/dist/schemas/job/pipeline-job.d.ts +0 -602
- package/dist/schemas/job/pipeline-job.js +0 -42
- package/dist/schemas/job/upwork-job.d.ts +0 -334
- package/dist/schemas/job/upwork-job.js +0 -60
- package/dist/schemas/lead/lead.d.ts +0 -1897
- package/dist/schemas/lead/lead.js +0 -143
- package/dist/schemas/upwork-account/index.d.ts +0 -3
- package/dist/schemas/upwork-account/index.js +0 -19
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +0 -2
- package/dist/schemas/upwork-account/upwork-account-status.js +0 -11
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +0 -95
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +0 -35
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +0 -90
- package/dist/schemas/upwork-account/upwork-scraping-account.js +0 -29
- package/dist/types/account/manager-account.d.ts +0 -7
- package/dist/types/account/manager-account.js +0 -2
- package/dist/types/bidding/index.d.ts +0 -1
- package/dist/types/bidding/index.js +0 -17
- package/dist/types/bidding/proposal-bidding-status.d.ts +0 -3
- package/dist/types/bidding/proposal-bidding-status.js +0 -2
- package/dist/types/job/job-details.d.ts +0 -36
- package/dist/types/job/job-details.js +0 -2
- package/dist/types/job/job.d.ts +0 -36
- package/dist/types/job/job.js +0 -2
- package/dist/types/upwork-account/index.d.ts +0 -3
- package/dist/types/upwork-account/index.js +0 -19
- package/dist/types/upwork-account/upwork-account-status.d.ts +0 -3
- package/dist/types/upwork-account/upwork-account-status.js +0 -2
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +0 -7
- package/dist/types/upwork-account/upwork-business-manager-account.js +0 -2
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +0 -5
- package/dist/types/upwork-account/upwork-scraping-account.js +0 -2
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/user/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
package/dist/utils/index.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./try-catch"), exports);
|
|
1
|
+
export * from './try-catch';
|
package/dist/utils/try-catch.js
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.tryCatch = void 0;
|
|
13
1
|
// Main wrapper function
|
|
14
|
-
function tryCatch(promise) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
});
|
|
2
|
+
export async function tryCatch(promise) {
|
|
3
|
+
try {
|
|
4
|
+
const data = await promise;
|
|
5
|
+
return { data, error: null };
|
|
6
|
+
}
|
|
7
|
+
catch (error) {
|
|
8
|
+
return { data: null, error: error };
|
|
9
|
+
}
|
|
24
10
|
}
|
|
25
|
-
exports.tryCatch = tryCatch;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lancer-shared",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "This package contains shared stuff.",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "dist/bundle.cjs.js",
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"rollup-watch": "4.3.1",
|
|
44
44
|
"typescript": "5.4.5"
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.accountStatusDisplayMap = exports.accountStatusOrder = void 0;
|
|
4
|
-
exports.accountStatusOrder = [
|
|
5
|
-
'verification_required',
|
|
6
|
-
'shadow_banned',
|
|
7
|
-
'healthy',
|
|
8
|
-
'banned',
|
|
9
|
-
'suspended',
|
|
10
|
-
];
|
|
11
|
-
exports.accountStatusDisplayMap = {
|
|
12
|
-
verification_required: 'Verification Required',
|
|
13
|
-
shadow_banned: 'Shadow Banned',
|
|
14
|
-
healthy: 'Healthy',
|
|
15
|
-
banned: 'Banned',
|
|
16
|
-
suspended: 'Suspended',
|
|
17
|
-
};
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const managerAccountProvider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
3
|
-
export declare const managerAccountSchema: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
6
|
-
email: z.ZodString;
|
|
7
|
-
password: z.ZodString;
|
|
8
|
-
cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
9
|
-
proxy: z.ZodString;
|
|
10
|
-
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
11
|
-
verified: z.ZodBoolean;
|
|
12
|
-
isActive: z.ZodBoolean;
|
|
13
|
-
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
14
|
-
lastUsed: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
createdAt: z.ZodNumber;
|
|
16
|
-
updatedAt: z.ZodNumber;
|
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
id: string;
|
|
19
|
-
email: string;
|
|
20
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
21
|
-
createdAt: number;
|
|
22
|
-
updatedAt: number;
|
|
23
|
-
cookies: any[] | null;
|
|
24
|
-
password: string;
|
|
25
|
-
isActive: boolean;
|
|
26
|
-
provider: "user_provided" | "lancer_provided";
|
|
27
|
-
proxy: string;
|
|
28
|
-
verified: boolean;
|
|
29
|
-
assignedOrganizations: string[];
|
|
30
|
-
lastUsed: number | null;
|
|
31
|
-
}, {
|
|
32
|
-
id: string;
|
|
33
|
-
email: string;
|
|
34
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
35
|
-
createdAt: number;
|
|
36
|
-
updatedAt: number;
|
|
37
|
-
cookies: any[] | null;
|
|
38
|
-
password: string;
|
|
39
|
-
isActive: boolean;
|
|
40
|
-
provider: "user_provided" | "lancer_provided";
|
|
41
|
-
proxy: string;
|
|
42
|
-
verified: boolean;
|
|
43
|
-
assignedOrganizations: string[];
|
|
44
|
-
lastUsed: number | null;
|
|
45
|
-
}>;
|
|
46
|
-
export declare const createManagerAccountSchema: z.ZodObject<Pick<{
|
|
47
|
-
id: z.ZodString;
|
|
48
|
-
provider: z.ZodEnum<["user_provided", "lancer_provided"]>;
|
|
49
|
-
email: z.ZodString;
|
|
50
|
-
password: z.ZodString;
|
|
51
|
-
cookies: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
52
|
-
proxy: z.ZodString;
|
|
53
|
-
status: z.ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
|
|
54
|
-
verified: z.ZodBoolean;
|
|
55
|
-
isActive: z.ZodBoolean;
|
|
56
|
-
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
57
|
-
lastUsed: z.ZodNullable<z.ZodNumber>;
|
|
58
|
-
createdAt: z.ZodNumber;
|
|
59
|
-
updatedAt: z.ZodNumber;
|
|
60
|
-
}, "email" | "status" | "password" | "isActive" | "provider" | "proxy" | "verified">, "strip", z.ZodTypeAny, {
|
|
61
|
-
email: string;
|
|
62
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
63
|
-
password: string;
|
|
64
|
-
isActive: boolean;
|
|
65
|
-
provider: "user_provided" | "lancer_provided";
|
|
66
|
-
proxy: string;
|
|
67
|
-
verified: boolean;
|
|
68
|
-
}, {
|
|
69
|
-
email: string;
|
|
70
|
-
status: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned";
|
|
71
|
-
password: string;
|
|
72
|
-
isActive: boolean;
|
|
73
|
-
provider: "user_provided" | "lancer_provided";
|
|
74
|
-
proxy: string;
|
|
75
|
-
verified: boolean;
|
|
76
|
-
}>;
|
|
77
|
-
export declare const updateManagerAccountSchema: z.ZodObject<{
|
|
78
|
-
email: z.ZodOptional<z.ZodString>;
|
|
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>;
|
|
82
|
-
cookies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodAny, "many">>>;
|
|
83
|
-
password: z.ZodOptional<z.ZodString>;
|
|
84
|
-
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
provider: z.ZodOptional<z.ZodEnum<["user_provided", "lancer_provided"]>>;
|
|
86
|
-
proxy: z.ZodOptional<z.ZodString>;
|
|
87
|
-
verified: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
-
assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
89
|
-
lastUsed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
|
-
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
email?: string | undefined;
|
|
92
|
-
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
93
|
-
createdAt?: number | undefined;
|
|
94
|
-
updatedAt?: number | undefined;
|
|
95
|
-
cookies?: any[] | null | undefined;
|
|
96
|
-
password?: string | undefined;
|
|
97
|
-
isActive?: boolean | undefined;
|
|
98
|
-
provider?: "user_provided" | "lancer_provided" | undefined;
|
|
99
|
-
proxy?: string | undefined;
|
|
100
|
-
verified?: boolean | undefined;
|
|
101
|
-
assignedOrganizations?: string[] | undefined;
|
|
102
|
-
lastUsed?: number | null | undefined;
|
|
103
|
-
}, {
|
|
104
|
-
email?: string | undefined;
|
|
105
|
-
status?: "suspended" | "verification_required" | "shadow_banned" | "healthy" | "banned" | undefined;
|
|
106
|
-
createdAt?: number | undefined;
|
|
107
|
-
updatedAt?: number | undefined;
|
|
108
|
-
cookies?: any[] | null | undefined;
|
|
109
|
-
password?: string | undefined;
|
|
110
|
-
isActive?: boolean | undefined;
|
|
111
|
-
provider?: "user_provided" | "lancer_provided" | undefined;
|
|
112
|
-
proxy?: string | undefined;
|
|
113
|
-
verified?: boolean | undefined;
|
|
114
|
-
assignedOrganizations?: string[] | undefined;
|
|
115
|
-
lastUsed?: number | null | undefined;
|
|
116
|
-
}>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateManagerAccountSchema = exports.createManagerAccountSchema = exports.managerAccountSchema = exports.managerAccountProvider = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const account_status_1 = require("./account-status");
|
|
6
|
-
exports.managerAccountProvider = zod_1.z.enum([
|
|
7
|
-
'user_provided',
|
|
8
|
-
'lancer_provided',
|
|
9
|
-
]);
|
|
10
|
-
exports.managerAccountSchema = zod_1.z.object({
|
|
11
|
-
id: zod_1.z.string(),
|
|
12
|
-
provider: exports.managerAccountProvider,
|
|
13
|
-
email: zod_1.z.string().email(),
|
|
14
|
-
password: zod_1.z.string(),
|
|
15
|
-
cookies: zod_1.z.array(zod_1.z.any()).nullable(),
|
|
16
|
-
proxy: zod_1.z.string(),
|
|
17
|
-
status: account_status_1.accountStatusSchema,
|
|
18
|
-
verified: zod_1.z.boolean(),
|
|
19
|
-
isActive: zod_1.z.boolean(),
|
|
20
|
-
assignedOrganizations: zod_1.z.array(zod_1.z.string()),
|
|
21
|
-
lastUsed: zod_1.z.number().nullable(),
|
|
22
|
-
createdAt: zod_1.z.number(),
|
|
23
|
-
updatedAt: zod_1.z.number(),
|
|
24
|
-
});
|
|
25
|
-
exports.createManagerAccountSchema = exports.managerAccountSchema.pick({
|
|
26
|
-
email: true,
|
|
27
|
-
password: true,
|
|
28
|
-
provider: true,
|
|
29
|
-
proxy: true,
|
|
30
|
-
status: true,
|
|
31
|
-
verified: true,
|
|
32
|
-
isActive: true,
|
|
33
|
-
});
|
|
34
|
-
exports.updateManagerAccountSchema = exports.managerAccountSchema
|
|
35
|
-
.omit({
|
|
36
|
-
id: true,
|
|
37
|
-
})
|
|
38
|
-
.partial();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './proposal-bidding-status';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./proposal-bidding-status"), exports);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const proposalBiddingStatusSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
3
|
-
status: z.ZodLiteral<"success">;
|
|
4
|
-
biddingAmount: z.ZodNumber;
|
|
5
|
-
boosted: z.ZodBoolean;
|
|
6
|
-
boostingAmount: z.ZodNumber;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
status: "success";
|
|
9
|
-
biddingAmount: number;
|
|
10
|
-
boosted: boolean;
|
|
11
|
-
boostingAmount: number;
|
|
12
|
-
}, {
|
|
13
|
-
status: "success";
|
|
14
|
-
biddingAmount: number;
|
|
15
|
-
boosted: boolean;
|
|
16
|
-
boostingAmount: number;
|
|
17
|
-
}>, z.ZodObject<{
|
|
18
|
-
status: z.ZodLiteral<"failed">;
|
|
19
|
-
errorMessage: z.ZodString;
|
|
20
|
-
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
status: "failed";
|
|
22
|
-
errorMessage: string;
|
|
23
|
-
}, {
|
|
24
|
-
status: "failed";
|
|
25
|
-
errorMessage: string;
|
|
26
|
-
}>]>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.proposalBiddingStatusSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.proposalBiddingStatusSchema = zod_1.z.discriminatedUnion('status', [
|
|
6
|
-
// Success case
|
|
7
|
-
zod_1.z.object({
|
|
8
|
-
status: zod_1.z.literal('success'),
|
|
9
|
-
biddingAmount: zod_1.z.number(),
|
|
10
|
-
boosted: zod_1.z.boolean(),
|
|
11
|
-
boostingAmount: zod_1.z.number(),
|
|
12
|
-
}),
|
|
13
|
-
// Failed case
|
|
14
|
-
zod_1.z.object({
|
|
15
|
-
status: zod_1.z.literal('failed'),
|
|
16
|
-
errorMessage: zod_1.z.string(),
|
|
17
|
-
}),
|
|
18
|
-
]);
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./job"), exports);
|
|
18
|
-
__exportStar(require("./job-note"), exports);
|
|
19
|
-
__exportStar(require("./job-status"), exports);
|