postgresdk 0.16.9 → 0.16.10
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/dist/cli.js +9 -3
- package/dist/index.js +9 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4119,7 +4119,9 @@ ${baseSelectType}
|
|
|
4119
4119
|
* @example Insert${Type}<{ metadata: MyMetadataType }>
|
|
4120
4120
|
*/
|
|
4121
4121
|
export type Insert${Type}<TJsonb extends Partial<_Insert${Type}Base> = {}> =
|
|
4122
|
-
|
|
4122
|
+
{} extends TJsonb
|
|
4123
|
+
? _Insert${Type}Base
|
|
4124
|
+
: Omit<_Insert${Type}Base, keyof TJsonb> & TJsonb;
|
|
4123
4125
|
|
|
4124
4126
|
/**
|
|
4125
4127
|
* Type for updating an existing ${table.name} record.
|
|
@@ -4129,7 +4131,9 @@ export type Insert${Type}<TJsonb extends Partial<_Insert${Type}Base> = {}> =
|
|
|
4129
4131
|
* @example Update${Type}<{ metadata: MyMetadataType }>
|
|
4130
4132
|
*/
|
|
4131
4133
|
export type Update${Type}<TJsonb extends Partial<_Select${Type}Base> = {}> =
|
|
4132
|
-
|
|
4134
|
+
{} extends TJsonb
|
|
4135
|
+
? Partial<_Insert${Type}Base>
|
|
4136
|
+
: Partial<Omit<_Insert${Type}Base, keyof TJsonb> & TJsonb>;
|
|
4133
4137
|
|
|
4134
4138
|
/**
|
|
4135
4139
|
* Type representing a ${table.name} record from the database.
|
|
@@ -4139,7 +4143,9 @@ export type Update${Type}<TJsonb extends Partial<_Select${Type}Base> = {}> =
|
|
|
4139
4143
|
* @example Select${Type}<{ metadata: MyMetadataType }>
|
|
4140
4144
|
*/
|
|
4141
4145
|
export type Select${Type}<TJsonb extends Partial<_Select${Type}Base> = {}> =
|
|
4142
|
-
|
|
4146
|
+
{} extends TJsonb
|
|
4147
|
+
? _Select${Type}Base
|
|
4148
|
+
: Omit<_Select${Type}Base, keyof TJsonb> & TJsonb;
|
|
4143
4149
|
`;
|
|
4144
4150
|
}
|
|
4145
4151
|
return `/**
|
package/dist/index.js
CHANGED
|
@@ -3218,7 +3218,9 @@ ${baseSelectType}
|
|
|
3218
3218
|
* @example Insert${Type}<{ metadata: MyMetadataType }>
|
|
3219
3219
|
*/
|
|
3220
3220
|
export type Insert${Type}<TJsonb extends Partial<_Insert${Type}Base> = {}> =
|
|
3221
|
-
|
|
3221
|
+
{} extends TJsonb
|
|
3222
|
+
? _Insert${Type}Base
|
|
3223
|
+
: Omit<_Insert${Type}Base, keyof TJsonb> & TJsonb;
|
|
3222
3224
|
|
|
3223
3225
|
/**
|
|
3224
3226
|
* Type for updating an existing ${table.name} record.
|
|
@@ -3228,7 +3230,9 @@ export type Insert${Type}<TJsonb extends Partial<_Insert${Type}Base> = {}> =
|
|
|
3228
3230
|
* @example Update${Type}<{ metadata: MyMetadataType }>
|
|
3229
3231
|
*/
|
|
3230
3232
|
export type Update${Type}<TJsonb extends Partial<_Select${Type}Base> = {}> =
|
|
3231
|
-
|
|
3233
|
+
{} extends TJsonb
|
|
3234
|
+
? Partial<_Insert${Type}Base>
|
|
3235
|
+
: Partial<Omit<_Insert${Type}Base, keyof TJsonb> & TJsonb>;
|
|
3232
3236
|
|
|
3233
3237
|
/**
|
|
3234
3238
|
* Type representing a ${table.name} record from the database.
|
|
@@ -3238,7 +3242,9 @@ export type Update${Type}<TJsonb extends Partial<_Select${Type}Base> = {}> =
|
|
|
3238
3242
|
* @example Select${Type}<{ metadata: MyMetadataType }>
|
|
3239
3243
|
*/
|
|
3240
3244
|
export type Select${Type}<TJsonb extends Partial<_Select${Type}Base> = {}> =
|
|
3241
|
-
|
|
3245
|
+
{} extends TJsonb
|
|
3246
|
+
? _Select${Type}Base
|
|
3247
|
+
: Omit<_Select${Type}Base, keyof TJsonb> & TJsonb;
|
|
3242
3248
|
`;
|
|
3243
3249
|
}
|
|
3244
3250
|
return `/**
|