@mikemajesty/microservice-crud 6.0.11 → 6.0.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikemajesty/microservice-crud",
3
- "version": "6.0.11",
3
+ "version": "6.0.13",
4
4
  "description": "Monorepo CLI",
5
5
  "main": "src/cli.js",
6
6
  "scripts": {
@@ -24,7 +24,7 @@ export const ${capitalizeFirstLetter(name)}EntitySchema = z.object({
24
24
  type ${capitalizeFirstLetter(name)} = z.infer<typeof ${capitalizeFirstLetter(name)}EntitySchema>;
25
25
 
26
26
  export class ${capitalizeFirstLetter(name)}Entity extends BaseEntity<${capitalizeFirstLetter(name)}Entity>(${capitalizeFirstLetter(name)}EntitySchema) {
27
- name: string;
27
+ name!: string;
28
28
 
29
29
  constructor(entity: ${capitalizeFirstLetter(name)}) {
30
30
  super();
@@ -20,13 +20,13 @@ export type ${capitalizeFirstLetter(name)}Document = Document & ${capitalizeFirs
20
20
  })
21
21
  export class ${capitalizeFirstLetter(name)} {
22
22
  @Prop({ type: String })
23
- _id: string;
23
+ _id!: string;
24
24
 
25
25
  @Prop({ index: true, min: 1, max: 200, required: true, type: String })
26
- name: string;
26
+ name!: string;
27
27
 
28
28
  @Prop({ type: Date, default: null })
29
- deletedAt: Date;
29
+ deletedAt!: Date;
30
30
  }
31
31
 
32
32
  const ${capitalizeFirstLetter(name)}Schema = SchemaFactory.createForClass(${capitalizeFirstLetter(name)});
@@ -24,7 +24,7 @@ export const ${capitalizeFirstLetter(name)}EntitySchema = z.object({
24
24
  type ${capitalizeFirstLetter(name)} = z.infer<typeof ${capitalizeFirstLetter(name)}EntitySchema>;
25
25
 
26
26
  export class ${capitalizeFirstLetter(name)}Entity extends BaseEntity<${capitalizeFirstLetter(name)}Entity>(${capitalizeFirstLetter(name)}EntitySchema) {
27
- name: string;
27
+ name!: string;
28
28
 
29
29
  constructor(entity: ${capitalizeFirstLetter(name)}) {
30
30
  super();
@@ -18,19 +18,19 @@ const getModuleSchema = (name) => `import {
18
18
  @Entity({ name: '${pluralize(name)}' })
19
19
  export class ${capitalizeFirstLetter(name)}Schema extends BaseEntity {
20
20
  @Column({ type: 'uuid', primary: true })
21
- id: string;
21
+ id!: string;
22
22
 
23
23
  @Column('text')
24
- name: string;
24
+ name!: string;
25
25
 
26
26
  @CreateDateColumn()
27
- createdAt: Date;
27
+ createdAt!: Date;
28
28
 
29
29
  @UpdateDateColumn()
30
- updatedAt: Date;
30
+ updatedAt!: Date;
31
31
 
32
32
  @DeleteDateColumn({ nullable: true })
33
- deletedAt: Date;
33
+ deletedAt!: Date;
34
34
  }
35
35
  `
36
36