@grapadigital/shared-schemas 1.0.106 → 1.0.108

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.
@@ -153,10 +153,7 @@ export declare class Payment {
153
153
  _id?: Types.ObjectId;
154
154
  title: string;
155
155
  phase: 'pending' | 'review' | 'approval' | 'awaiting' | 'requested' | 'queued' | 'paid' | 'client' | 'canceled';
156
- attachments?: {
157
- name: string;
158
- url: string;
159
- }[];
156
+ attachments?: Attachment[];
160
157
  pending?: Pending;
161
158
  review?: Review;
162
159
  requested?: Requested;
@@ -253,10 +253,12 @@ let Attachment = class Attachment {
253
253
  };
254
254
  __decorate([
255
255
  (0, swagger_1.ApiProperty)({ description: 'Nome do arquivo' }),
256
+ (0, mongoose_1.Prop)(),
256
257
  __metadata("design:type", String)
257
258
  ], Attachment.prototype, "name", void 0);
258
259
  __decorate([
259
260
  (0, swagger_1.ApiProperty)({ description: 'URL do arquivo' }),
261
+ (0, mongoose_1.Prop)(),
260
262
  __metadata("design:type", String)
261
263
  ], Attachment.prototype, "url", void 0);
262
264
  Attachment = __decorate([
@@ -121,7 +121,7 @@ export declare const CollabSchema: MongooseSchema<Collab, import("mongoose").Mod
121
121
  export declare class Exclusivity {
122
122
  startDate: Date;
123
123
  endDate: Date;
124
- categoty: string;
124
+ category: string;
125
125
  }
126
126
  export declare const ExclusivitySchema: MongooseSchema<Exclusivity, import("mongoose").Model<Exclusivity, any, any, any, import("mongoose").Document<unknown, any, Exclusivity, any, {}> & Exclusivity & {
127
127
  _id: Types.ObjectId;
@@ -165,7 +165,7 @@ __decorate([
165
165
  __decorate([
166
166
  (0, mongoose_1.Prop)(),
167
167
  __metadata("design:type", String)
168
- ], Exclusivity.prototype, "categoty", void 0);
168
+ ], Exclusivity.prototype, "category", void 0);
169
169
  Exclusivity = __decorate([
170
170
  (0, mongoose_1.Schema)({ _id: false })
171
171
  ], Exclusivity);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grapadigital/shared-schemas",
3
- "version": "1.0.106",
3
+ "version": "1.0.108",
4
4
  "description": "Shared Mongoose Schemas",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -189,10 +189,10 @@ export const NoteSchema = SchemaFactory.createForClass(Note);
189
189
  @Schema({ _id: false })
190
190
  export class Attachment {
191
191
  @ApiProperty({ description: 'Nome do arquivo' })
192
- name: string;
192
+ @Prop() name: string;
193
193
 
194
194
  @ApiProperty({ description: 'URL do arquivo' })
195
- url: string;
195
+ @Prop() url: string;
196
196
  }
197
197
  export const AttachmentSchema = SchemaFactory.createForClass(Attachment);
198
198
 
@@ -221,7 +221,7 @@ export class Payment {
221
221
  required: false,
222
222
  default: []
223
223
  })
224
- attachments?: { name: string, url: string }[];
224
+ attachments?: Attachment[];
225
225
 
226
226
  @ApiProperty({ type: () => Pending })
227
227
  @Prop({ type: PendingSchema, required: false })
@@ -118,7 +118,7 @@ export class Exclusivity {
118
118
  endDate: Date;
119
119
 
120
120
  @Prop()
121
- categoty: string;
121
+ category: string;
122
122
  }
123
123
 
124
124
  export const ExclusivitySchema = SchemaFactory.createForClass(Exclusivity);