@wrcb/cb-common 1.0.872 → 1.0.873

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.
@@ -19,6 +19,7 @@ export declare enum JobListingSource {
19
19
  Adzuna = "Adzuna",
20
20
  Careerjet = "Careerjet",
21
21
  Jooble = "Jooble",
22
+ Himalayas = "Himalayas",
22
23
  Native = "Native"
23
24
  }
24
25
  export declare enum JobListingStatus {
@@ -81,6 +82,18 @@ export interface JobListingApplyInfo {
81
82
  mode: JobApplyMode;
82
83
  url: string | null;
83
84
  }
85
+ export declare enum ThoFavoriteType {
86
+ JobListing = "JobListing",
87
+ Freelancer = "Freelancer"
88
+ }
89
+ export interface ThoNotificationSummary {
90
+ unreadMessages: number;
91
+ jobApplicationsReceived: number;
92
+ proposalsReceived: number;
93
+ ordersReceivedToAct: number;
94
+ purchasesToReview: number;
95
+ total: number;
96
+ }
84
97
  export declare enum ServicePriceType {
85
98
  Fixed = "Fixed",
86
99
  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.JobApplyMode = exports.JobListingSort = exports.RemoteScope = exports.JobSeniority = exports.JobListingStatus = exports.JobListingSource = exports.JobListingOrigin = 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.ThoFavoriteType = 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";
@@ -41,6 +41,7 @@ var JobListingSource;
41
41
  JobListingSource["Adzuna"] = "Adzuna";
42
42
  JobListingSource["Careerjet"] = "Careerjet";
43
43
  JobListingSource["Jooble"] = "Jooble";
44
+ JobListingSource["Himalayas"] = "Himalayas";
44
45
  JobListingSource["Native"] = "Native";
45
46
  })(JobListingSource || (exports.JobListingSource = JobListingSource = {}));
46
47
  // Ciclo de vida da vaga no quadro.
@@ -93,6 +94,14 @@ var JobApplyMode;
93
94
  JobApplyMode["External"] = "External";
94
95
  JobApplyMode["Native"] = "Native";
95
96
  })(JobApplyMode || (exports.JobApplyMode = JobApplyMode = {}));
97
+ // Tipos de alvo que o usuário pode favoritar (coleção tho_favorites no
98
+ // home-office-backend). Polimórfico — `targetId` é o id da vaga (JobListing._id)
99
+ // ou o userId do freelancer.
100
+ var ThoFavoriteType;
101
+ (function (ThoFavoriteType) {
102
+ ThoFavoriteType["JobListing"] = "JobListing";
103
+ ThoFavoriteType["Freelancer"] = "Freelancer";
104
+ })(ThoFavoriteType || (exports.ThoFavoriteType = ThoFavoriteType = {}));
96
105
  var ServicePriceType;
97
106
  (function (ServicePriceType) {
98
107
  ServicePriceType["Fixed"] = "Fixed";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.872",
3
+ "version": "1.0.873",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",