@ttctl/core 0.0.0 → 0.1.0-rc.1
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/README.md +49 -9
- package/dist/__generated__/gateway.d.ts +4546 -0
- package/dist/__generated__/gateway.d.ts.map +1 -0
- package/dist/__generated__/gateway.js +9 -0
- package/dist/__generated__/gateway.js.map +1 -0
- package/dist/__generated__/talent-profile-zod-schemas.d.ts +1187 -0
- package/dist/__generated__/talent-profile-zod-schemas.d.ts.map +1 -0
- package/dist/__generated__/talent-profile-zod-schemas.js +1136 -0
- package/dist/__generated__/talent-profile-zod-schemas.js.map +1 -0
- package/dist/__generated__/talent-profile.d.ts +1397 -0
- package/dist/__generated__/talent-profile.d.ts.map +1 -0
- package/dist/__generated__/talent-profile.js +9 -0
- package/dist/__generated__/talent-profile.js.map +1 -0
- package/dist/__generated__/zod-schemas.d.ts +2895 -0
- package/dist/__generated__/zod-schemas.d.ts.map +1 -0
- package/dist/__generated__/zod-schemas.js +3121 -0
- package/dist/__generated__/zod-schemas.js.map +1 -0
- package/dist/__tests__/fixtures/profile/builders.d.ts +74 -0
- package/dist/__tests__/fixtures/profile/builders.d.ts.map +1 -0
- package/dist/__tests__/fixtures/profile/builders.js +196 -0
- package/dist/__tests__/fixtures/profile/builders.js.map +1 -0
- package/dist/__tests__/fixtures/profile/data.d.ts +39 -0
- package/dist/__tests__/fixtures/profile/data.d.ts.map +1 -0
- package/dist/__tests__/fixtures/profile/data.js +230 -0
- package/dist/__tests__/fixtures/profile/data.js.map +1 -0
- package/dist/__tests__/fixtures/profile/index.d.ts +9 -0
- package/dist/__tests__/fixtures/profile/index.d.ts.map +1 -0
- package/dist/__tests__/fixtures/profile/index.js +10 -0
- package/dist/__tests__/fixtures/profile/index.js.map +1 -0
- package/dist/__tests__/fixtures/profile/types.d.ts +53 -0
- package/dist/__tests__/fixtures/profile/types.d.ts.map +1 -0
- package/dist/__tests__/fixtures/profile/types.js +4 -0
- package/dist/__tests__/fixtures/profile/types.js.map +1 -0
- package/dist/auth/errors.d.ts +82 -0
- package/dist/auth/errors.d.ts.map +1 -0
- package/dist/auth/errors.js +68 -0
- package/dist/auth/errors.js.map +1 -0
- package/dist/auth.d.ts +192 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +294 -0
- package/dist/auth.js.map +1 -0
- package/dist/config.d.ts +212 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +349 -0
- package/dist/config.js.map +1 -0
- package/dist/configLock.d.ts +50 -0
- package/dist/configLock.d.ts.map +1 -0
- package/dist/configLock.js +88 -0
- package/dist/configLock.js.map +1 -0
- package/dist/configWriter.d.ts +97 -0
- package/dist/configWriter.d.ts.map +1 -0
- package/dist/configWriter.js +687 -0
- package/dist/configWriter.js.map +1 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/kill-switch.d.ts +161 -0
- package/dist/kill-switch.d.ts.map +1 -0
- package/dist/kill-switch.js +235 -0
- package/dist/kill-switch.js.map +1 -0
- package/dist/lib/date.d.ts +58 -0
- package/dist/lib/date.d.ts.map +1 -0
- package/dist/lib/date.js +104 -0
- package/dist/lib/date.js.map +1 -0
- package/dist/lib/diagnostic-log.d.ts +159 -0
- package/dist/lib/diagnostic-log.d.ts.map +1 -0
- package/dist/lib/diagnostic-log.js +186 -0
- package/dist/lib/diagnostic-log.js.map +1 -0
- package/dist/lib/package-version.d.ts +19 -0
- package/dist/lib/package-version.d.ts.map +1 -0
- package/dist/lib/package-version.js +38 -0
- package/dist/lib/package-version.js.map +1 -0
- package/dist/lib/redact.d.ts +153 -0
- package/dist/lib/redact.d.ts.map +1 -0
- package/dist/lib/redact.js +207 -0
- package/dist/lib/redact.js.map +1 -0
- package/dist/lib/text.d.ts +14 -0
- package/dist/lib/text.d.ts.map +1 -0
- package/dist/lib/text.js +21 -0
- package/dist/lib/text.js.map +1 -0
- package/dist/lib/wire-shape.d.ts +131 -0
- package/dist/lib/wire-shape.d.ts.map +1 -0
- package/dist/lib/wire-shape.js +376 -0
- package/dist/lib/wire-shape.js.map +1 -0
- package/dist/onepassword.d.ts +29 -0
- package/dist/onepassword.d.ts.map +1 -0
- package/dist/onepassword.js +112 -0
- package/dist/onepassword.js.map +1 -0
- package/dist/services/_shared/transport.d.ts +148 -0
- package/dist/services/_shared/transport.d.ts.map +1 -0
- package/dist/services/_shared/transport.js +102 -0
- package/dist/services/_shared/transport.js.map +1 -0
- package/dist/services/applications/index.d.ts +210 -0
- package/dist/services/applications/index.d.ts.map +1 -0
- package/dist/services/applications/index.js +240 -0
- package/dist/services/applications/index.js.map +1 -0
- package/dist/services/availability/index.d.ts +254 -0
- package/dist/services/availability/index.d.ts.map +1 -0
- package/dist/services/availability/index.js +310 -0
- package/dist/services/availability/index.js.map +1 -0
- package/dist/services/contracts/index.d.ts +132 -0
- package/dist/services/contracts/index.d.ts.map +1 -0
- package/dist/services/contracts/index.js +211 -0
- package/dist/services/contracts/index.js.map +1 -0
- package/dist/services/engagements/index.d.ts +504 -0
- package/dist/services/engagements/index.d.ts.map +1 -0
- package/dist/services/engagements/index.js +613 -0
- package/dist/services/engagements/index.js.map +1 -0
- package/dist/services/jobs/index.d.ts +490 -0
- package/dist/services/jobs/index.d.ts.map +1 -0
- package/dist/services/jobs/index.js +753 -0
- package/dist/services/jobs/index.js.map +1 -0
- package/dist/services/payments/index.d.ts +415 -0
- package/dist/services/payments/index.d.ts.map +1 -0
- package/dist/services/payments/index.js +636 -0
- package/dist/services/payments/index.js.map +1 -0
- package/dist/services/profile/__tests__/fixtures.d.ts +214 -0
- package/dist/services/profile/__tests__/fixtures.d.ts.map +1 -0
- package/dist/services/profile/__tests__/fixtures.js +176 -0
- package/dist/services/profile/__tests__/fixtures.js.map +1 -0
- package/dist/services/profile/basic/index.d.ts +390 -0
- package/dist/services/profile/basic/index.d.ts.map +1 -0
- package/dist/services/profile/basic/index.js +1007 -0
- package/dist/services/profile/basic/index.js.map +1 -0
- package/dist/services/profile/certifications/index.d.ts +74 -0
- package/dist/services/profile/certifications/index.d.ts.map +1 -0
- package/dist/services/profile/certifications/index.js +169 -0
- package/dist/services/profile/certifications/index.js.map +1 -0
- package/dist/services/profile/education/index.d.ts +73 -0
- package/dist/services/profile/education/index.d.ts.map +1 -0
- package/dist/services/profile/education/index.js +168 -0
- package/dist/services/profile/education/index.js.map +1 -0
- package/dist/services/profile/employment/index.d.ts +111 -0
- package/dist/services/profile/employment/index.d.ts.map +1 -0
- package/dist/services/profile/employment/index.js +202 -0
- package/dist/services/profile/employment/index.js.map +1 -0
- package/dist/services/profile/external/index.d.ts +219 -0
- package/dist/services/profile/external/index.d.ts.map +1 -0
- package/dist/services/profile/external/index.js +560 -0
- package/dist/services/profile/external/index.js.map +1 -0
- package/dist/services/profile/index.d.ts +24 -0
- package/dist/services/profile/index.d.ts.map +1 -0
- package/dist/services/profile/index.js +26 -0
- package/dist/services/profile/index.js.map +1 -0
- package/dist/services/profile/industries/index.d.ts +130 -0
- package/dist/services/profile/industries/index.d.ts.map +1 -0
- package/dist/services/profile/industries/index.js +292 -0
- package/dist/services/profile/industries/index.js.map +1 -0
- package/dist/services/profile/portfolio/index.d.ts +352 -0
- package/dist/services/profile/portfolio/index.d.ts.map +1 -0
- package/dist/services/profile/portfolio/index.js +833 -0
- package/dist/services/profile/portfolio/index.js.map +1 -0
- package/dist/services/profile/resume/index.d.ts +60 -0
- package/dist/services/profile/resume/index.d.ts.map +1 -0
- package/dist/services/profile/resume/index.js +212 -0
- package/dist/services/profile/resume/index.js.map +1 -0
- package/dist/services/profile/reviews/index.d.ts +137 -0
- package/dist/services/profile/reviews/index.d.ts.map +1 -0
- package/dist/services/profile/reviews/index.js +431 -0
- package/dist/services/profile/reviews/index.js.map +1 -0
- package/dist/services/profile/shared.d.ts +127 -0
- package/dist/services/profile/shared.d.ts.map +1 -0
- package/dist/services/profile/shared.js +155 -0
- package/dist/services/profile/shared.js.map +1 -0
- package/dist/services/profile/skills/index.d.ts +212 -0
- package/dist/services/profile/skills/index.d.ts.map +1 -0
- package/dist/services/profile/skills/index.js +461 -0
- package/dist/services/profile/skills/index.js.map +1 -0
- package/dist/services/profile/visas/index.d.ts +74 -0
- package/dist/services/profile/visas/index.d.ts.map +1 -0
- package/dist/services/profile/visas/index.js +306 -0
- package/dist/services/profile/visas/index.js.map +1 -0
- package/dist/services/timesheet/index.d.ts +326 -0
- package/dist/services/timesheet/index.d.ts.map +1 -0
- package/dist/services/timesheet/index.js +324 -0
- package/dist/services/timesheet/index.js.map +1 -0
- package/dist/services/translations.d.ts +79 -0
- package/dist/services/translations.d.ts.map +1 -0
- package/dist/services/translations.js +136 -0
- package/dist/services/translations.js.map +1 -0
- package/dist/transport-resilience.d.ts +136 -0
- package/dist/transport-resilience.d.ts.map +1 -0
- package/dist/transport-resilience.js +247 -0
- package/dist/transport-resilience.js.map +1 -0
- package/dist/transport.d.ts +408 -0
- package/dist/transport.d.ts.map +1 -0
- package/dist/transport.js +691 -0
- package/dist/transport.js.map +1 -0
- package/dist/types.d.ts +41 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +18 -0
- package/dist/types.js.map +1 -0
- package/package.json +40 -12
- package/index.js +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/profile/portfolio/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC5E,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,KAAK,CAAC,CAAC;IAChD,MAAM,IAAI,GAAG,MAAM,iBAAiB,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC3D,MAAM,GAAG,GAAG,MAAM,mBAAmB,CAAC,qBAAqB,EAAE,KAAK,IAAI,EAAE,CACtE,8BAA8B,CAAC;QAC7B,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE;YACJ,aAAa,EAAE,qBAAqB;YACpC,KAAK,EAAE,8BAA8B;YACrC,SAAS,EAAE;gBACT,SAAS;gBACT,IAAI,EAAE,IAAI;aACX;SACF;QACD,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE;QACpB,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,EAAE;KACjC,CAAC,CACH,CAAC;IACF,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,CAA+B,CAAC;IACzF,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC1D,IAAI,OAAO,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC;QAC9B,MAAM,IAAI,cAAc,CACtB,YAAY,EACZ,6CAA6C,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAC3F,CAAC;IACJ,CAAC;IACD,OAAO;QACL,aAAa,EAAE,OAAO,CAAC,aAAa,IAAI,IAAI;QAC5C,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,IAAI;KACjC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resume sub-domain error codes. Cross-cutting auth/Cloudflare failures
|
|
3
|
+
* propagate as `TtctlError` subclasses unchanged.
|
|
4
|
+
*/
|
|
5
|
+
export type ResumeErrorCode = "GRAPHQL_ERROR" | "NETWORK_ERROR" | "USER_ERROR" | "VALIDATION_ERROR" | "FILE_NOT_FOUND" | "FILE_READ_ERROR" | "NO_VIEWER" | "WIRE_SHAPE_ERROR" | "UNKNOWN";
|
|
6
|
+
export declare class ResumeError extends Error {
|
|
7
|
+
readonly code: ResumeErrorCode;
|
|
8
|
+
readonly name = "ResumeError";
|
|
9
|
+
constructor(code: ResumeErrorCode, message: string, options?: {
|
|
10
|
+
cause?: unknown;
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Source for the resume file. Mirrors the {@link FileSource} pattern in
|
|
15
|
+
* the portfolio service: CLI surface uses the `path` variant, MCP surface
|
|
16
|
+
* uses the `buffer` variant (after base64-decoding).
|
|
17
|
+
*/
|
|
18
|
+
export type FileSource = {
|
|
19
|
+
kind: "path";
|
|
20
|
+
path: string;
|
|
21
|
+
} | {
|
|
22
|
+
kind: "buffer";
|
|
23
|
+
filename: string;
|
|
24
|
+
content: Buffer | Uint8Array;
|
|
25
|
+
contentType?: string;
|
|
26
|
+
};
|
|
27
|
+
export interface UploadResumeResult {
|
|
28
|
+
success: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Upload a resume file. Returns `{ success: true }` on a server-confirmed
|
|
32
|
+
* success; throws `ResumeError` on any failure path.
|
|
33
|
+
*/
|
|
34
|
+
export declare function upload(token: string, source: FileSource): Promise<UploadResumeResult>;
|
|
35
|
+
export interface CancelResumeUploadResult {
|
|
36
|
+
success: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Cancel any in-flight resume upload, clearing half-uploaded server-side
|
|
40
|
+
* state. Requires `profileId` on the input (the synthesized SDL marks
|
|
41
|
+
* `CancelResumeUploadInput` as Pattern 7 — `_placeholder` only — but
|
|
42
|
+
* the live server rejects empty input with a GRAPHQL validation error
|
|
43
|
+
* "Variable $input ... profileId (Expected value to not be null)";
|
|
44
|
+
* see #318).
|
|
45
|
+
*
|
|
46
|
+
* Empirical behavior (verified 2026-05-15 via live E2E): against a
|
|
47
|
+
* quiescent state (no in-flight upload), the server returns a
|
|
48
|
+
* deterministic USER_ERROR envelope (`key: "base"`, message
|
|
49
|
+
* "Something went wrong. Please try again later.") rather than the
|
|
50
|
+
* `success: true` originally speculated. The mutation is therefore
|
|
51
|
+
* NOT idempotent against quiescent state — that claim was authored
|
|
52
|
+
* speculatively in PR #75 and never empirically verified.
|
|
53
|
+
*
|
|
54
|
+
* Success path (`success: true`) requires an in-flight upload on the
|
|
55
|
+
* caller's profile. Driving an upload from TTCtl is destructive (see
|
|
56
|
+
* `upload` above), so the live-E2E coverage for the success path is
|
|
57
|
+
* deferred until a non-destructive upload-state setup is available.
|
|
58
|
+
*/
|
|
59
|
+
export declare function cancelUpload(token: string): Promise<CancelResumeUploadResult>;
|
|
60
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/profile/resume/index.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,MAAM,MAAM,eAAe,GACvB,eAAe,GACf,eAAe,GACf,YAAY,GACZ,kBAAkB,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,WAAW,GACX,kBAAkB,GAClB,SAAS,CAAC;AAEd,qBAAa,WAAY,SAAQ,KAAK;aAGlB,IAAI,EAAE,eAAe;IAFvC,SAAkB,IAAI,iBAAiB;gBAErB,IAAI,EAAE,eAAe,EACrC,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;CAIhC;AAkBD;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAClB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,UAAU,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAkH7F,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAsB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAgC3F;AA6BD,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAmBnF"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
// Copyright (C) 2026 Oleksii PELYKH
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
4
|
+
import { basename } from "node:path";
|
|
5
|
+
import { AuthRevokedError, TtctlError } from "../../../auth/errors.js";
|
|
6
|
+
import { impersonatedMultipartTransport, impersonatedTransport } from "../../../transport.js";
|
|
7
|
+
import { extractProfileId, isAuthRevokedExtensionCode } from "../shared.js";
|
|
8
|
+
export class ResumeError extends Error {
|
|
9
|
+
code;
|
|
10
|
+
name = "ResumeError";
|
|
11
|
+
constructor(code, message, options) {
|
|
12
|
+
super(message, options);
|
|
13
|
+
this.code = code;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
async function resolveFileSource(source) {
|
|
17
|
+
if (source.kind === "buffer") {
|
|
18
|
+
return {
|
|
19
|
+
filename: source.filename,
|
|
20
|
+
content: source.content,
|
|
21
|
+
...(source.contentType !== undefined ? { contentType: source.contentType } : {}),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
let content;
|
|
25
|
+
try {
|
|
26
|
+
content = await readFile(source.path);
|
|
27
|
+
}
|
|
28
|
+
catch (err) {
|
|
29
|
+
const code = err.code;
|
|
30
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
31
|
+
if (code === "ENOENT") {
|
|
32
|
+
throw new ResumeError("FILE_NOT_FOUND", `resume upload: file not found: ${source.path}`);
|
|
33
|
+
}
|
|
34
|
+
throw new ResumeError("FILE_READ_ERROR", `resume upload: failed to read ${source.path}: ${message}`);
|
|
35
|
+
}
|
|
36
|
+
return { filename: basename(source.path), content };
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Common "200 with errors" shape handler. Returns the unwrapped payload
|
|
40
|
+
* (the value of the single root data field) as `unknown`; callers narrow
|
|
41
|
+
* to their per-operation payload shape at the call site.
|
|
42
|
+
*/
|
|
43
|
+
function unwrapResponse(res, operationName) {
|
|
44
|
+
if (res.status === 401) {
|
|
45
|
+
throw new AuthRevokedError("Session is invalid or expired.");
|
|
46
|
+
}
|
|
47
|
+
if (res.status < 200 || res.status >= 300) {
|
|
48
|
+
throw new ResumeError("UNKNOWN", `${operationName} returned HTTP ${res.status.toString()}`);
|
|
49
|
+
}
|
|
50
|
+
const body = res.body;
|
|
51
|
+
if (body && Array.isArray(body.errors) && body.errors.length > 0) {
|
|
52
|
+
const first = body.errors[0];
|
|
53
|
+
if (isAuthRevokedExtensionCode(first?.extensions?.code)) {
|
|
54
|
+
throw new AuthRevokedError("Session is invalid or expired.");
|
|
55
|
+
}
|
|
56
|
+
throw new ResumeError("GRAPHQL_ERROR", `${operationName} failed: ${first?.message ?? "GraphQL error"}`);
|
|
57
|
+
}
|
|
58
|
+
if (!body?.data) {
|
|
59
|
+
throw new ResumeError("UNKNOWN", `${operationName} response had no \`data\` field`);
|
|
60
|
+
}
|
|
61
|
+
const keys = Object.keys(body.data);
|
|
62
|
+
if (keys.length === 0) {
|
|
63
|
+
throw new ResumeError("UNKNOWN", `${operationName} response had empty \`data\``);
|
|
64
|
+
}
|
|
65
|
+
const firstKey = keys[0];
|
|
66
|
+
const payload = body.data[firstKey];
|
|
67
|
+
if (payload === null || payload === undefined) {
|
|
68
|
+
throw new ResumeError("UNKNOWN", `${operationName} response had \`null\` payload`);
|
|
69
|
+
}
|
|
70
|
+
return payload;
|
|
71
|
+
}
|
|
72
|
+
function rejectIfUserErrors(errors, operationName) {
|
|
73
|
+
if (Array.isArray(errors) && errors.length > 0) {
|
|
74
|
+
const first = errors[0];
|
|
75
|
+
const fieldHint = first?.key ? ` (${first.key})` : "";
|
|
76
|
+
throw new ResumeError("USER_ERROR", `${operationName} rejected${fieldHint}: ${first?.message ?? "unknown error"}`);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Note on the upstream resolution helper: `extractProfileId` from
|
|
81
|
+
* `../shared.js` returns the viewer's `profileId` so this module can pass
|
|
82
|
+
* `CancelResumeUploadInput.profileId`, which the server requires despite
|
|
83
|
+
* the synthesized SDL marking the input as Pattern 7 (`_placeholder` only).
|
|
84
|
+
* The decompile gap means the requirement only surfaces empirically via the
|
|
85
|
+
* live wire, not via codegen.
|
|
86
|
+
*/
|
|
87
|
+
async function withTransportErrors(operationName, fn) {
|
|
88
|
+
try {
|
|
89
|
+
return await fn();
|
|
90
|
+
}
|
|
91
|
+
catch (err) {
|
|
92
|
+
if (err instanceof TtctlError)
|
|
93
|
+
throw err;
|
|
94
|
+
if (err instanceof ResumeError)
|
|
95
|
+
throw err;
|
|
96
|
+
throw new ResumeError("NETWORK_ERROR", `${operationName} request failed: ${err.message}`, {
|
|
97
|
+
cause: err,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Full-document `uploadResume` mutation. The wire shape carries the file
|
|
103
|
+
* via the GraphQL multipart spec — `variables.input.file` is the slot
|
|
104
|
+
* the multipart map binds to.
|
|
105
|
+
*
|
|
106
|
+
* The server-side `UploadResumeInput` is partially documented (placeholder
|
|
107
|
+
* in the synthesized SDL); empirically the only required member is the
|
|
108
|
+
* `Upload`-typed `file` field. If the server rejects the wrapper key or
|
|
109
|
+
* names a different field, capture the live shape via curl.
|
|
110
|
+
*/
|
|
111
|
+
const UPLOAD_RESUME_MUTATION = `mutation uploadResume($input: UploadResumeInput!) {
|
|
112
|
+
uploadResume(input: $input) {
|
|
113
|
+
success
|
|
114
|
+
errors {
|
|
115
|
+
code
|
|
116
|
+
key
|
|
117
|
+
message
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}`;
|
|
121
|
+
/**
|
|
122
|
+
* Upload a resume file. Returns `{ success: true }` on a server-confirmed
|
|
123
|
+
* success; throws `ResumeError` on any failure path.
|
|
124
|
+
*/
|
|
125
|
+
export async function upload(token, source) {
|
|
126
|
+
const file = await resolveFileSource(source);
|
|
127
|
+
// Destructive — overwrites the maintainer's published resume file with no
|
|
128
|
+
// safe rollback path. The cancelResumeUpload semantic only clears
|
|
129
|
+
// half-uploaded server-side state; if the upload commits before cancel
|
|
130
|
+
// arrives, the file is replaced. The impersonatedMultipartTransport wire
|
|
131
|
+
// path is covered transitively by uploadPortfolioCover / uploadPortfolioFile
|
|
132
|
+
// in packages/e2e/src/36-profile-portfolio.e2e.test.ts; the talent-profile
|
|
133
|
+
// JSON mutation wire shape is covered for this sub-domain by
|
|
134
|
+
// cancelResumeUpload in packages/e2e/src/39-profile-resume.e2e.test.ts.
|
|
135
|
+
const res = await withTransportErrors("uploadResume", async () => impersonatedMultipartTransport({
|
|
136
|
+
surface: "talent-profile",
|
|
137
|
+
authToken: token,
|
|
138
|
+
body: {
|
|
139
|
+
// e2e-exempt: destructive — see comment above the withTransportErrors call.
|
|
140
|
+
operationName: "uploadResume",
|
|
141
|
+
query: UPLOAD_RESUME_MUTATION,
|
|
142
|
+
variables: {
|
|
143
|
+
input: { file: null },
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
files: { "0": file },
|
|
147
|
+
map: { "0": ["variables.input.file"] },
|
|
148
|
+
}));
|
|
149
|
+
const payload = unwrapResponse(res, "uploadResume");
|
|
150
|
+
rejectIfUserErrors(payload.errors, "uploadResume");
|
|
151
|
+
if (payload.success === false) {
|
|
152
|
+
throw new ResumeError("USER_ERROR", "uploadResume reported success=false");
|
|
153
|
+
}
|
|
154
|
+
return { success: payload.success === true };
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Full-document `cancelResumeUpload` mutation. Despite the synthesized
|
|
158
|
+
* SDL marking `CancelResumeUploadInput` as Pattern 7 (the empty-wrapper
|
|
159
|
+
* `_placeholder`-only shape), the live server requires `profileId` —
|
|
160
|
+
* verified empirically (live E2E, 2026-05-15, #318). The decompile gap
|
|
161
|
+
* means the requirement surfaces only via the live wire, not codegen.
|
|
162
|
+
*/
|
|
163
|
+
const CANCEL_RESUME_UPLOAD_MUTATION = `mutation cancelResumeUpload($input: CancelResumeUploadInput!) {
|
|
164
|
+
cancelResumeUpload(input: $input) {
|
|
165
|
+
success
|
|
166
|
+
errors {
|
|
167
|
+
code
|
|
168
|
+
key
|
|
169
|
+
message
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}`;
|
|
173
|
+
/**
|
|
174
|
+
* Cancel any in-flight resume upload, clearing half-uploaded server-side
|
|
175
|
+
* state. Requires `profileId` on the input (the synthesized SDL marks
|
|
176
|
+
* `CancelResumeUploadInput` as Pattern 7 — `_placeholder` only — but
|
|
177
|
+
* the live server rejects empty input with a GRAPHQL validation error
|
|
178
|
+
* "Variable $input ... profileId (Expected value to not be null)";
|
|
179
|
+
* see #318).
|
|
180
|
+
*
|
|
181
|
+
* Empirical behavior (verified 2026-05-15 via live E2E): against a
|
|
182
|
+
* quiescent state (no in-flight upload), the server returns a
|
|
183
|
+
* deterministic USER_ERROR envelope (`key: "base"`, message
|
|
184
|
+
* "Something went wrong. Please try again later.") rather than the
|
|
185
|
+
* `success: true` originally speculated. The mutation is therefore
|
|
186
|
+
* NOT idempotent against quiescent state — that claim was authored
|
|
187
|
+
* speculatively in PR #75 and never empirically verified.
|
|
188
|
+
*
|
|
189
|
+
* Success path (`success: true`) requires an in-flight upload on the
|
|
190
|
+
* caller's profile. Driving an upload from TTCtl is destructive (see
|
|
191
|
+
* `upload` above), so the live-E2E coverage for the success path is
|
|
192
|
+
* deferred until a non-destructive upload-state setup is available.
|
|
193
|
+
*/
|
|
194
|
+
export async function cancelUpload(token) {
|
|
195
|
+
const profileId = await extractProfileId(token);
|
|
196
|
+
const variables = {
|
|
197
|
+
input: { profileId },
|
|
198
|
+
};
|
|
199
|
+
const res = await withTransportErrors("cancelResumeUpload", async () => impersonatedTransport({
|
|
200
|
+
surface: "talent-profile",
|
|
201
|
+
authToken: token,
|
|
202
|
+
body: {
|
|
203
|
+
operationName: "cancelResumeUpload",
|
|
204
|
+
query: CANCEL_RESUME_UPLOAD_MUTATION,
|
|
205
|
+
variables,
|
|
206
|
+
},
|
|
207
|
+
}));
|
|
208
|
+
const payload = unwrapResponse(res, "cancelResumeUpload");
|
|
209
|
+
rejectIfUserErrors(payload.errors, "cancelResumeUpload");
|
|
210
|
+
return { success: payload.success === true };
|
|
211
|
+
}
|
|
212
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/profile/resume/index.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAiB5E,MAAM,OAAO,WAAY,SAAQ,KAAK;IAGlB;IAFA,IAAI,GAAG,aAAa,CAAC;IACvC,YACkB,IAAqB,EACrC,OAAe,EACf,OAA6B;QAE7B,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAJR,SAAI,GAAJ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F,MAAM,GAAG,GAAG,MAAM,mBAAmB,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE,CACrE,qBAAqB,CAAC;QACpB,OAAO,EAAE,gBAAgB;QACzB,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE;YACJ,aAAa,EAAE,oBAAoB;YACnC,KAAK,EAAE,6BAA6B;YACpC,SAAS;SACV;KACF,CAAC,CACH,CAAC;IACF,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,EAAE,oBAAoB,CAA8B,CAAC;IACvF,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IACzD,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;AAC/C,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { ProfileError } from "../basic/index.js";
|
|
2
|
+
import type { ProfileErrorCode } from "../basic/index.js";
|
|
3
|
+
export { ProfileError };
|
|
4
|
+
export type { ProfileErrorCode };
|
|
5
|
+
/**
|
|
6
|
+
* One pending item inside a {@link SectionReview}.
|
|
7
|
+
*
|
|
8
|
+
* `id` is the SectionReviewItem's own ID; `itemId` is the underlying entity's
|
|
9
|
+
* ID (e.g. the Education / Employment / SkillSet that's pending review).
|
|
10
|
+
* Both are surfaced because callers (CLI / MCP) typically want both — `id` to
|
|
11
|
+
* pass to `approveItem`, `itemId` to cross-reference the entity in question.
|
|
12
|
+
*/
|
|
13
|
+
export interface SectionReviewItem {
|
|
14
|
+
id: string;
|
|
15
|
+
itemId: string;
|
|
16
|
+
requestedAt: string | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* One section-level review entry. `section` is a `ReviewSection` enum value
|
|
20
|
+
* (e.g. `EDUCATION`, `SKILLS`); we surface it as a plain string because the
|
|
21
|
+
* enum vocabulary is not catalogued in the schema.
|
|
22
|
+
*/
|
|
23
|
+
export interface SectionReview {
|
|
24
|
+
id: string;
|
|
25
|
+
section: string | null;
|
|
26
|
+
requestedAt: string | null;
|
|
27
|
+
items: SectionReviewItem[];
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* List pending section reviews for the signed-in user. Returns an empty
|
|
31
|
+
* array (not a `null` or thrown error) when no reviews are pending. This
|
|
32
|
+
* includes the talent_profile "field hidden due to permissions" response
|
|
33
|
+
* (see {@link isFieldHiddenSectionReviews}) — empirically the
|
|
34
|
+
* no-pending-reviews surface form for accounts that have no review activity.
|
|
35
|
+
*
|
|
36
|
+
* Errors: `AuthRevokedError`, `ProfileError(GRAPHQL_ERROR)`,
|
|
37
|
+
* `ProfileError(NETWORK_ERROR)`, `Cf403Error` (and other `TtctlError`
|
|
38
|
+
* subclasses) propagate verbatim.
|
|
39
|
+
*/
|
|
40
|
+
export declare function list(token: string): Promise<SectionReview[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Input parameters for {@link approveItem}. All three fields are required.
|
|
43
|
+
*
|
|
44
|
+
* - `reviewId`: the ID of the parent SectionReview (from `list`)
|
|
45
|
+
* - `itemId`: the ID of the SectionReviewItem (from `list`'s `items[].id`)
|
|
46
|
+
* - `itemKind`: an `ItemReviewKind` enum value as a plain string
|
|
47
|
+
*
|
|
48
|
+
* The schema does not enumerate `ItemReviewKind` values; the inferred set
|
|
49
|
+
* per `research/notes/10-mutation-input-patterns.md` includes `EDUCATION`,
|
|
50
|
+
* `EMPLOYMENT`, etc. Pass it as the server expects it; an invalid value
|
|
51
|
+
* surfaces as a `USER_ERROR` (the message will name the rejected value).
|
|
52
|
+
*/
|
|
53
|
+
export interface ApproveItemReviewArgs {
|
|
54
|
+
reviewId: string;
|
|
55
|
+
itemId: string;
|
|
56
|
+
itemKind: string;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Server-confirmed result of {@link approveItem}. The mutation returns the
|
|
60
|
+
* updated `sectionReviews` payload (now without the approved item, if the
|
|
61
|
+
* server was the only pending item; the section may still be returned with
|
|
62
|
+
* other pending items). We surface the post-approval list verbatim so the
|
|
63
|
+
* caller can re-render the pending queue.
|
|
64
|
+
*/
|
|
65
|
+
export interface ApproveItemReviewResult {
|
|
66
|
+
sectionReviews: SectionReview[];
|
|
67
|
+
notice: string | null;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Approve a single pending item within a section review. Returns the
|
|
71
|
+
* server-confirmed updated list of pending section reviews.
|
|
72
|
+
*
|
|
73
|
+
* **Destructive**: approval is final per the platform's review semantics —
|
|
74
|
+
* once approved, the change is published and cannot be reverted from this
|
|
75
|
+
* surface. Callers are expected to confirm intent (the CLI does so by
|
|
76
|
+
* requiring explicit `--review-id` / `--item-id` / `--kind` flags rather
|
|
77
|
+
* than auto-discovering pending items).
|
|
78
|
+
*
|
|
79
|
+
* Errors:
|
|
80
|
+
* - `ProfileError("VALIDATION_ERROR")` when any of `reviewId / itemId /
|
|
81
|
+
* itemKind` is empty
|
|
82
|
+
* - `ProfileError("USER_ERROR")` when the server rejects the input (e.g.
|
|
83
|
+
* unknown item kind, item already approved)
|
|
84
|
+
* - `AuthRevokedError`, `Cf403Error`, other `TtctlError` subclasses
|
|
85
|
+
* propagate verbatim
|
|
86
|
+
*/
|
|
87
|
+
export declare function approveItem(token: string, args: ApproveItemReviewArgs): Promise<ApproveItemReviewResult>;
|
|
88
|
+
/**
|
|
89
|
+
* Input parameters for {@link approveSection}. Both fields are required.
|
|
90
|
+
*
|
|
91
|
+
* - `reviewId`: the ID of the SectionReview (from `list`)
|
|
92
|
+
* - `section`: a `ReviewSection` enum value as a plain string
|
|
93
|
+
*
|
|
94
|
+
* Same string-pass-through rationale as {@link ApproveItemReviewArgs#itemKind}.
|
|
95
|
+
*/
|
|
96
|
+
export interface ApproveSectionReviewArgs {
|
|
97
|
+
reviewId: string;
|
|
98
|
+
section: string;
|
|
99
|
+
}
|
|
100
|
+
/** Result of {@link approveSection}. Same shape as {@link ApproveItemReviewResult}. */
|
|
101
|
+
export type ApproveSectionReviewResult = ApproveItemReviewResult;
|
|
102
|
+
/**
|
|
103
|
+
* Approve all pending items within a section review. Returns the
|
|
104
|
+
* server-confirmed updated list of pending section reviews.
|
|
105
|
+
*
|
|
106
|
+
* **Destructive**: same caveat as {@link approveItem} — approvals are final.
|
|
107
|
+
*
|
|
108
|
+
* Errors: same taxonomy as {@link approveItem}.
|
|
109
|
+
*/
|
|
110
|
+
export declare function approveSection(token: string, args: ApproveSectionReviewArgs): Promise<ApproveSectionReviewResult>;
|
|
111
|
+
/**
|
|
112
|
+
* Server-confirmed result of {@link submitForReview}. We surface only
|
|
113
|
+
* `notice` (textual confirmation) at v0; the upstream `activation` payload
|
|
114
|
+
* is implementation-detail (a per-step list of activation gates) that the
|
|
115
|
+
* user doesn't need at the CLI level.
|
|
116
|
+
*/
|
|
117
|
+
export interface SubmitForReviewResult {
|
|
118
|
+
notice: string | null;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Re-submit the talent's profile for platform-side re-review. Used after
|
|
122
|
+
* profile edits that require the platform reviewer to re-verify the
|
|
123
|
+
* content (skills, employments, etc.).
|
|
124
|
+
*
|
|
125
|
+
* **INFERRED — UNVERIFIED** input shape: `{ profileId: ID! }` per
|
|
126
|
+
* `research/notes/10-mutation-input-patterns.md` Pattern 2. No live curl
|
|
127
|
+
* capture exists for this mutation. Deviations would surface as
|
|
128
|
+
* `USER_ERROR` at runtime.
|
|
129
|
+
*
|
|
130
|
+
* Errors:
|
|
131
|
+
* - `ProfileError("USER_ERROR")` when the server rejects the submission
|
|
132
|
+
* (e.g. profile not yet ready per `getProfileReadiness`)
|
|
133
|
+
* - `AuthRevokedError`, `Cf403Error`, other `TtctlError` subclasses
|
|
134
|
+
* propagate verbatim
|
|
135
|
+
*/
|
|
136
|
+
export declare function submitForReview(token: string): Promise<SubmitForReviewResult>;
|
|
137
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/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