@grapadigital/shared-schemas 2.6.0 → 2.7.0

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.
@@ -26,6 +26,7 @@ declare class Review {
26
26
  revisedDueDate: Date;
27
27
  po?: string;
28
28
  invoiceEmails?: string[];
29
+ invoiceDescription?: string;
29
30
  }
30
31
  declare class Invoiced {
31
32
  code: string;
@@ -44,6 +44,7 @@ __decorate([
44
44
  __decorate([
45
45
  (0, swagger_1.ApiProperty)({
46
46
  example: "Descrição que deve contar na nota fiscal referente à prestação de serviços",
47
+ description: "Legado: a descrição da nota passou para review.invoiceDescription. Fica gravado nas faturas antigas, que seguem lendo daqui",
47
48
  }),
48
49
  (0, mongoose_1.Prop)(),
49
50
  __metadata("design:type", String)
@@ -131,6 +132,15 @@ __decorate([
131
132
  (0, mongoose_1.Prop)({ type: [String], default: undefined }),
132
133
  __metadata("design:type", Array)
133
134
  ], Review.prototype, "invoiceEmails", void 0);
135
+ __decorate([
136
+ (0, swagger_1.ApiProperty)({
137
+ example: "Serviços de marketing de influência referentes à campanha de dezembro",
138
+ required: false,
139
+ description: "Descrição do serviço que vai na nota fiscal, escrita na Revisão financeira e enviada na descrição da OS. Faturas antigas têm esse texto em inbox.invoiceDescription",
140
+ }),
141
+ (0, mongoose_1.Prop)(),
142
+ __metadata("design:type", String)
143
+ ], Review.prototype, "invoiceDescription", void 0);
134
144
  Review = __decorate([
135
145
  (0, mongoose_1.Schema)({ _id: false })
136
146
  ], Review);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "2.6.0",
3
+ "version": "2.7.0",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",