@powfix/core-js 0.13.28 → 0.13.30

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.
@@ -0,0 +1,2 @@
1
+ import { Model } from "sequelize-typescript";
2
+ export type UpsertResult<M extends Model> = [M, boolean];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export * from './index.browser';
2
+ export * from './UpsertResult';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./index.browser"), exports);
18
+ __exportStar(require("./UpsertResult"), exports);
@@ -7,6 +7,9 @@ type ExtractUuidKeys<T extends Model> = {
7
7
  [Property in keyof T]: Property extends GetIncludeKeyPatterns<T> ? Property : never;
8
8
  }[keyof T];
9
9
  type ConcreteUuidKeys<T extends Record<string, any>> = ExtractUuidKeys<T>;
10
+ interface UuidColumnOptionsBase extends Omit<ModelAttributeColumnOptions, 'type'> {
11
+ columnName: string;
12
+ }
10
13
  interface UuidColumnOptionsForModel<T extends Record<string, any>> extends Omit<ModelAttributeColumnOptions, 'type'> {
11
14
  columnName: ConcreteUuidKeys<T>;
12
15
  }
@@ -14,6 +17,7 @@ export declare class SequelizeUtils {
14
17
  static decimal2Number(value: any): number | null | undefined;
15
18
  static getPrimaryUuidColumn: () => Partial<ModelAttributeColumnOptions>;
16
19
  static getUuidColumn<T extends Record<string, any>>(options: UuidColumnOptionsForModel<T>): Partial<ModelAttributeColumnOptions>;
20
+ static getUuidColumn(options: UuidColumnOptionsBase): Partial<ModelAttributeColumnOptions>;
17
21
  static getNullableArrayFilter<T = undefined>(arr: (null | any)[]): WhereOptions<T>;
18
22
  }
19
23
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powfix/core-js",
3
- "version": "0.13.28",
3
+ "version": "0.13.30",
4
4
  "description": "core package",
5
5
  "author": "Kwon Kyung-Min <powfix@gmail.com>",
6
6
  "private": false,