@wrcb/cb-common 1.0.868 → 1.0.870

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,6 +15,10 @@ export declare enum ServicePriceType {
15
15
  Fixed = "Fixed",
16
16
  Negotiable = "Negotiable"
17
17
  }
18
+ export declare enum DeliveryUnit {
19
+ Days = "Days",
20
+ Hours = "Hours"
21
+ }
18
22
  export declare enum ApplicationStatus {
19
23
  Pending = "Pending",
20
24
  Accepted = "Accepted",
@@ -45,6 +49,7 @@ export interface ServiceAddon {
45
49
  title: string;
46
50
  priceCents?: number;
47
51
  deliveryDays?: number;
52
+ deliveryUnit?: DeliveryUnit;
48
53
  }
49
54
  export interface OrderLineInput {
50
55
  kind: ThoOrderLineKind;
@@ -69,6 +74,10 @@ export declare enum ThoRatingCriterion {
69
74
  Communication = "Communication",
70
75
  ScopeAdherence = "ScopeAdherence"
71
76
  }
77
+ export declare enum ThoPaymentMode {
78
+ Live = "live",
79
+ Test = "test"
80
+ }
72
81
  export interface ThoSettingsData {
73
82
  platformFeePercent: number;
74
83
  autoReleaseDays: number;
@@ -76,4 +85,6 @@ export interface ThoSettingsData {
76
85
  maxRevisionsPerService: number;
77
86
  defaultRevisionsIncluded: number;
78
87
  ordersEnabled: boolean;
88
+ stripeMode: ThoPaymentMode;
89
+ pixMode: ThoPaymentMode;
79
90
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThoRatingCriterion = exports.ThoOrderSettlementReason = exports.ThoDisputeResolution = exports.ThoOrderLineKind = exports.ThoOrderStatus = exports.ConversationContextType = exports.ApplicationStatus = 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.JobPostingStatus = exports.WorkRegime = exports.JobContractType = void 0;
4
4
  var JobContractType;
5
5
  (function (JobContractType) {
6
6
  JobContractType["Clt"] = "Clt";
@@ -22,6 +22,15 @@ var ServicePriceType;
22
22
  ServicePriceType["Fixed"] = "Fixed";
23
23
  ServicePriceType["Negotiable"] = "Negotiable";
24
24
  })(ServicePriceType || (exports.ServicePriceType = ServicePriceType = {}));
25
+ // Unidade do prazo de entrega de um serviço (e de cada adicional). O número
26
+ // guardado (`deliveryDays`) é só o valor; a unidade diz se são dias ou horas —
27
+ // um serviço pode prometer entrega em 8 horas, por exemplo. Ausente = Days
28
+ // (linhas criadas antes deste campo).
29
+ var DeliveryUnit;
30
+ (function (DeliveryUnit) {
31
+ DeliveryUnit["Days"] = "Days";
32
+ DeliveryUnit["Hours"] = "Hours";
33
+ })(DeliveryUnit || (exports.DeliveryUnit = DeliveryUnit = {}));
25
34
  var ApplicationStatus;
26
35
  (function (ApplicationStatus) {
27
36
  ApplicationStatus["Pending"] = "Pending";
@@ -98,3 +107,12 @@ var ThoRatingCriterion;
98
107
  ThoRatingCriterion["Communication"] = "Communication";
99
108
  ThoRatingCriterion["ScopeAdherence"] = "ScopeAdherence";
100
109
  })(ThoRatingCriterion || (exports.ThoRatingCriterion = ThoRatingCriterion = {}));
110
+ // Ambiente do provedor de pagamento (Stripe/cartão e Woovi/Pix), alternável
111
+ // pelo administrador no painel. `Live` usa as chaves de produção; `Test` usa as
112
+ // chaves de sandbox — cada provedor tem o seu, definidos como env/secret no
113
+ // cb-payments e no frontend.
114
+ var ThoPaymentMode;
115
+ (function (ThoPaymentMode) {
116
+ ThoPaymentMode["Live"] = "live";
117
+ ThoPaymentMode["Test"] = "test";
118
+ })(ThoPaymentMode || (exports.ThoPaymentMode = ThoPaymentMode = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrcb/cb-common",
3
- "version": "1.0.868",
3
+ "version": "1.0.870",
4
4
  "description": "Common resources between services",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",