@wrcb/cb-common 1.0.871 → 1.0.872
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.
|
@@ -11,6 +11,76 @@ export declare enum JobPostingStatus {
|
|
|
11
11
|
Open = "Open",
|
|
12
12
|
Closed = "Closed"
|
|
13
13
|
}
|
|
14
|
+
export declare enum JobListingOrigin {
|
|
15
|
+
Aggregated = "Aggregated",
|
|
16
|
+
Native = "Native"
|
|
17
|
+
}
|
|
18
|
+
export declare enum JobListingSource {
|
|
19
|
+
Adzuna = "Adzuna",
|
|
20
|
+
Careerjet = "Careerjet",
|
|
21
|
+
Jooble = "Jooble",
|
|
22
|
+
Native = "Native"
|
|
23
|
+
}
|
|
24
|
+
export declare enum JobListingStatus {
|
|
25
|
+
Active = "Active",
|
|
26
|
+
Expired = "Expired",
|
|
27
|
+
Closed = "Closed",
|
|
28
|
+
Draft = "Draft"
|
|
29
|
+
}
|
|
30
|
+
export declare enum JobSeniority {
|
|
31
|
+
Intern = "Intern",
|
|
32
|
+
Junior = "Junior",
|
|
33
|
+
Mid = "Mid",
|
|
34
|
+
Senior = "Senior",
|
|
35
|
+
Lead = "Lead",
|
|
36
|
+
Unknown = "Unknown"
|
|
37
|
+
}
|
|
38
|
+
export declare enum RemoteScope {
|
|
39
|
+
Brazil = "Brazil",
|
|
40
|
+
Latam = "Latam",
|
|
41
|
+
Global = "Global",
|
|
42
|
+
Unknown = "Unknown"
|
|
43
|
+
}
|
|
44
|
+
export declare enum JobListingSort {
|
|
45
|
+
Recent = "Recent",
|
|
46
|
+
Relevant = "Relevant",
|
|
47
|
+
SalaryDesc = "SalaryDesc"
|
|
48
|
+
}
|
|
49
|
+
export declare enum JobApplyMode {
|
|
50
|
+
External = "External",
|
|
51
|
+
Native = "Native"
|
|
52
|
+
}
|
|
53
|
+
export interface JobListingDTO {
|
|
54
|
+
id: string;
|
|
55
|
+
slug: string;
|
|
56
|
+
origin: JobListingOrigin;
|
|
57
|
+
source: JobListingSource;
|
|
58
|
+
applyMode: JobApplyMode;
|
|
59
|
+
title: string;
|
|
60
|
+
companyName: string;
|
|
61
|
+
description: string;
|
|
62
|
+
categoryId: string | null;
|
|
63
|
+
seniority: JobSeniority;
|
|
64
|
+
contractType: JobContractType | null;
|
|
65
|
+
workRegime: WorkRegime;
|
|
66
|
+
remoteScope: RemoteScope;
|
|
67
|
+
requiresEnglish: boolean;
|
|
68
|
+
salaryMinCents: number | null;
|
|
69
|
+
salaryMaxCents: number | null;
|
|
70
|
+
salaryRaw: string | null;
|
|
71
|
+
salaryIsEstimated: boolean;
|
|
72
|
+
location: string | null;
|
|
73
|
+
status: JobListingStatus;
|
|
74
|
+
publishedAt: string;
|
|
75
|
+
expiresAt: string | null;
|
|
76
|
+
sourceAttribution: string | null;
|
|
77
|
+
ownerConsumerId: string | null;
|
|
78
|
+
ownerConsumerNickName: string | null;
|
|
79
|
+
}
|
|
80
|
+
export interface JobListingApplyInfo {
|
|
81
|
+
mode: JobApplyMode;
|
|
82
|
+
url: string | null;
|
|
83
|
+
}
|
|
14
84
|
export declare enum ServicePriceType {
|
|
15
85
|
Fixed = "Fixed",
|
|
16
86
|
Negotiable = "Negotiable"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThoPaymentMode = exports.ThoRatingCriterion = exports.ThoOrderSettlementReason = exports.ThoDisputeResolution = exports.ThoOrderLineKind = exports.ThoOrderStatus = exports.ConversationContextType = exports.ApplicationStatus = exports.DeliveryUnit = exports.ServicePriceType = exports.JobPostingStatus = exports.WorkRegime = exports.JobContractType = void 0;
|
|
3
|
+
exports.ThoPaymentMode = exports.ThoRatingCriterion = exports.ThoOrderSettlementReason = exports.ThoDisputeResolution = exports.ThoOrderLineKind = exports.ThoOrderStatus = exports.ConversationContextType = exports.ApplicationStatus = exports.DeliveryUnit = exports.ServicePriceType = exports.JobApplyMode = exports.JobListingSort = exports.RemoteScope = exports.JobSeniority = exports.JobListingStatus = exports.JobListingSource = exports.JobListingOrigin = exports.JobPostingStatus = exports.WorkRegime = exports.JobContractType = void 0;
|
|
4
4
|
var JobContractType;
|
|
5
5
|
(function (JobContractType) {
|
|
6
6
|
JobContractType["Clt"] = "Clt";
|
|
@@ -17,6 +17,82 @@ var JobPostingStatus;
|
|
|
17
17
|
JobPostingStatus["Open"] = "Open";
|
|
18
18
|
JobPostingStatus["Closed"] = "Closed";
|
|
19
19
|
})(JobPostingStatus || (exports.JobPostingStatus = JobPostingStatus = {}));
|
|
20
|
+
// ---------------------------------------------------------------------------
|
|
21
|
+
// Vagas (quadro unificado — coleção tho_job_listings no home-office-backend)
|
|
22
|
+
//
|
|
23
|
+
// Uma vaga pode vir de fora (importada de uma API de emprego como a Adzuna) ou
|
|
24
|
+
// ter nascido no próprio site. Os dois casos moram no mesmo model, separados
|
|
25
|
+
// por `origin`. Só entram vagas 100% remotas.
|
|
26
|
+
// ---------------------------------------------------------------------------
|
|
27
|
+
// De onde a vaga veio. Decide o fluxo de candidatura: `Aggregated` redireciona
|
|
28
|
+
// para a URL de origem (liberado só para logado); `Native` usa o fluxo interno
|
|
29
|
+
// de candidatura pelo chat (JobApplication + conversa).
|
|
30
|
+
var JobListingOrigin;
|
|
31
|
+
(function (JobListingOrigin) {
|
|
32
|
+
JobListingOrigin["Aggregated"] = "Aggregated";
|
|
33
|
+
JobListingOrigin["Native"] = "Native";
|
|
34
|
+
})(JobListingOrigin || (exports.JobListingOrigin = JobListingOrigin = {}));
|
|
35
|
+
// Fonte concreta da vaga. `Native` = publicada no site. As demais são as APIs
|
|
36
|
+
// externas; cada uma tem um adapter em `src/jobSources/` no home-office-backend.
|
|
37
|
+
// Enum novo aqui NÃO quebra consumidores porque nenhum serviço faz
|
|
38
|
+
// `Record<JobListingSource, ...>` — mas conferir antes de publicar.
|
|
39
|
+
var JobListingSource;
|
|
40
|
+
(function (JobListingSource) {
|
|
41
|
+
JobListingSource["Adzuna"] = "Adzuna";
|
|
42
|
+
JobListingSource["Careerjet"] = "Careerjet";
|
|
43
|
+
JobListingSource["Jooble"] = "Jooble";
|
|
44
|
+
JobListingSource["Native"] = "Native";
|
|
45
|
+
})(JobListingSource || (exports.JobListingSource = JobListingSource = {}));
|
|
46
|
+
// Ciclo de vida da vaga no quadro.
|
|
47
|
+
// Active — aparece na listagem pública.
|
|
48
|
+
// Expired — agregada que sumiu do feed da origem (ou passou de `expiresAt`).
|
|
49
|
+
// Closed — nativa encerrada pelo autor.
|
|
50
|
+
// Draft — nativa ainda não publicada.
|
|
51
|
+
var JobListingStatus;
|
|
52
|
+
(function (JobListingStatus) {
|
|
53
|
+
JobListingStatus["Active"] = "Active";
|
|
54
|
+
JobListingStatus["Expired"] = "Expired";
|
|
55
|
+
JobListingStatus["Closed"] = "Closed";
|
|
56
|
+
JobListingStatus["Draft"] = "Draft";
|
|
57
|
+
})(JobListingStatus || (exports.JobListingStatus = JobListingStatus = {}));
|
|
58
|
+
// Senioridade inferida do título/descrição na ingestão (agregada) ou escolhida
|
|
59
|
+
// pelo autor (nativa). `Unknown` quando não dá para determinar.
|
|
60
|
+
var JobSeniority;
|
|
61
|
+
(function (JobSeniority) {
|
|
62
|
+
JobSeniority["Intern"] = "Intern";
|
|
63
|
+
JobSeniority["Junior"] = "Junior";
|
|
64
|
+
JobSeniority["Mid"] = "Mid";
|
|
65
|
+
JobSeniority["Senior"] = "Senior";
|
|
66
|
+
JobSeniority["Lead"] = "Lead";
|
|
67
|
+
JobSeniority["Unknown"] = "Unknown";
|
|
68
|
+
})(JobSeniority || (exports.JobSeniority = JobSeniority = {}));
|
|
69
|
+
// Abrangência geográfica do trabalho remoto — de onde a pessoa pode estar.
|
|
70
|
+
// Brazil — remoto para quem está no Brasil.
|
|
71
|
+
// Latam — aceita candidatos na América Latina.
|
|
72
|
+
// Global — aceita de qualquer lugar.
|
|
73
|
+
// Unknown — a origem não informou.
|
|
74
|
+
var RemoteScope;
|
|
75
|
+
(function (RemoteScope) {
|
|
76
|
+
RemoteScope["Brazil"] = "Brazil";
|
|
77
|
+
RemoteScope["Latam"] = "Latam";
|
|
78
|
+
RemoteScope["Global"] = "Global";
|
|
79
|
+
RemoteScope["Unknown"] = "Unknown";
|
|
80
|
+
})(RemoteScope || (exports.RemoteScope = RemoteScope = {}));
|
|
81
|
+
// Ordenação disponível na listagem de vagas.
|
|
82
|
+
var JobListingSort;
|
|
83
|
+
(function (JobListingSort) {
|
|
84
|
+
JobListingSort["Recent"] = "Recent";
|
|
85
|
+
JobListingSort["Relevant"] = "Relevant";
|
|
86
|
+
JobListingSort["SalaryDesc"] = "SalaryDesc";
|
|
87
|
+
})(JobListingSort || (exports.JobListingSort = JobListingSort = {}));
|
|
88
|
+
// Como o front deve tratar o botão de candidatura, derivado de `origin`.
|
|
89
|
+
// External — abrir `applyUrl` (obtido na rota autenticada) em nova aba.
|
|
90
|
+
// Native — renderizar o formulário de candidatura interno.
|
|
91
|
+
var JobApplyMode;
|
|
92
|
+
(function (JobApplyMode) {
|
|
93
|
+
JobApplyMode["External"] = "External";
|
|
94
|
+
JobApplyMode["Native"] = "Native";
|
|
95
|
+
})(JobApplyMode || (exports.JobApplyMode = JobApplyMode = {}));
|
|
20
96
|
var ServicePriceType;
|
|
21
97
|
(function (ServicePriceType) {
|
|
22
98
|
ServicePriceType["Fixed"] = "Fixed";
|