pangea-server 3.3.91 → 3.3.92
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.
|
@@ -16,7 +16,9 @@ declare global {
|
|
|
16
16
|
id: ModelId;
|
|
17
17
|
};
|
|
18
18
|
type Where<BM extends BaseModel> = WhereOptions<BM> & Record<symbol, any>;
|
|
19
|
-
type InsertParams<BM extends BaseModel> = OptionalIfNullish<IncludeHidden<StripRelations<InferCreationAttributes<BM
|
|
19
|
+
type InsertParams<BM extends BaseModel> = OptionalIfNullish<IncludeHidden<StripRelations<Omit<InferCreationAttributes<BM>, 'id'>>>> & {
|
|
20
|
+
id?: ModelId;
|
|
21
|
+
};
|
|
20
22
|
type UpdateParams<BM extends BaseModel> = Partial<InsertParams<BM>>;
|
|
21
23
|
type UpdateParamsWithId<BM extends BaseModel> = UpdateParams<BM> & {
|
|
22
24
|
id: ModelId;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Model, Column } from 'sequelize-typescript';
|
|
2
|
-
import type { NonAttribute
|
|
2
|
+
import type { NonAttribute } from 'sequelize';
|
|
3
3
|
import type { Index, DefaultValue, GetModelFn } from '../database.types';
|
|
4
4
|
type Column = {
|
|
5
5
|
allowNull: boolean;
|
|
@@ -19,7 +19,7 @@ export declare abstract class BaseModel extends Model {
|
|
|
19
19
|
private static __Columns?;
|
|
20
20
|
private static __ColumnIndexes?;
|
|
21
21
|
private static __Relations?;
|
|
22
|
-
id:
|
|
22
|
+
id: ModelId;
|
|
23
23
|
version: NonAttribute<number>;
|
|
24
24
|
static get HiddenAttributes(): string[];
|
|
25
25
|
static get Columns(): Columns;
|