@omnifyjp/ts 3.1.0 → 3.2.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +11 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -32,6 +32,12 @@ export interface SchemasJson {
32
32
  readonly enums: Record<string, string[]>;
33
33
  };
34
34
  readonly fileConfig?: FileConfigExport;
35
+ readonly auditConfig?: {
36
+ readonly model?: string;
37
+ readonly createdBy?: boolean;
38
+ readonly updatedBy?: boolean;
39
+ readonly deletedBy?: boolean;
40
+ };
35
41
  readonly packages?: Record<string, PackageExportInfo>;
36
42
  readonly schemas: Record<string, SchemaDefinition>;
37
43
  }
@@ -112,6 +118,11 @@ export interface SchemaOptions {
112
118
  readonly indexes?: readonly unknown[];
113
119
  readonly unique?: readonly unknown[];
114
120
  readonly api?: ApiOptions;
121
+ readonly audit?: {
122
+ readonly createdBy?: boolean;
123
+ readonly updatedBy?: boolean;
124
+ readonly deletedBy?: boolean;
125
+ };
115
126
  }
116
127
  /** Schema definition from schemas.json. */
117
128
  export interface SchemaDefinition {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnifyjp/ts",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "TypeScript model type generator from Omnify schemas.json",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",