law-common 14.1.4-beta.6 → 14.1.4-beta.7
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/src/api/v2/index.d.ts +5 -5
- package/dist/src/api/v2/index.js +5 -7
- package/dist/src/api/v2/interface/task.create.dto.interface.d.ts +5 -0
- package/dist/src/api/v2/interface/task.create.dto.interface.js +2 -0
- package/dist/src/api/v2/interface/task.update.dto.interface.d.ts +12 -0
- package/dist/src/api/v2/interface/task.update.dto.interface.js +2 -0
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* api/v2 - the new flow contracts.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* and
|
|
7
|
-
*
|
|
8
|
-
* The empty export keeps this a module so `export * as v2` in api/index.ts resolves.
|
|
4
|
+
* Namespaced under `v2` by the `export * as v2` in api/index.ts, so these deliberately reuse the
|
|
5
|
+
* same export names as the frozen api/v1 (and legacy api/interface) contracts — an entity's v1
|
|
6
|
+
* consumers and v2 consumers each resolve their own shape from their own module path.
|
|
9
7
|
*/
|
|
10
8
|
export * from "./interface/to_do_list.create.dto.interface";
|
|
11
9
|
export * from "./interface/to_do_list.update.dto.interface";
|
|
12
10
|
export * from "./interface/expense_type.create.dto.interface";
|
|
13
11
|
export * from "./interface/expense_type.update.dto.interface";
|
|
12
|
+
export * from "./interface/task.create.dto.interface";
|
|
13
|
+
export * from "./interface/task.update.dto.interface";
|
package/dist/src/api/v2/index.js
CHANGED
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* api/v2 - the new flow contracts.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* and
|
|
8
|
-
*
|
|
9
|
-
* The empty export keeps this a module so `export * as v2` in api/index.ts resolves.
|
|
5
|
+
* Namespaced under `v2` by the `export * as v2` in api/index.ts, so these deliberately reuse the
|
|
6
|
+
* same export names as the frozen api/v1 (and legacy api/interface) contracts — an entity's v1
|
|
7
|
+
* consumers and v2 consumers each resolve their own shape from their own module path.
|
|
10
8
|
*/
|
|
11
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
10
|
if (k2 === undefined) k2 = k;
|
|
@@ -23,9 +21,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
23
21
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
24
22
|
};
|
|
25
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
// export {
|
|
27
|
-
// };
|
|
28
24
|
__exportStar(require("./interface/to_do_list.create.dto.interface"), exports);
|
|
29
25
|
__exportStar(require("./interface/to_do_list.update.dto.interface"), exports);
|
|
30
26
|
__exportStar(require("./interface/expense_type.create.dto.interface"), exports);
|
|
31
27
|
__exportStar(require("./interface/expense_type.update.dto.interface"), exports);
|
|
28
|
+
__exportStar(require("./interface/task.create.dto.interface"), exports);
|
|
29
|
+
__exportStar(require("./interface/task.update.dto.interface"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IEntityCreateDto } from "../../../entities";
|
|
2
|
+
import { ITaskEntity } from "../../../entities/interface/task.entity.interface";
|
|
3
|
+
export type ITaskCreateExclude = "status";
|
|
4
|
+
export interface ITaskCreateDto extends Omit<IEntityCreateDto<ITaskEntity>, ITaskCreateExclude> {
|
|
5
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DeepPartialButRequired } from "../../interface/api.utils.interface";
|
|
2
|
+
import { TaskActionEnum } from "../../../entities";
|
|
3
|
+
import { ITaskCreateDto } from "./task.create.dto.interface";
|
|
4
|
+
export type ITaskUpdateDto = DeepPartialButRequired<ITaskCreateDto, never> & {
|
|
5
|
+
actionData: ITaskActionDataDto;
|
|
6
|
+
} & {
|
|
7
|
+
id?: number;
|
|
8
|
+
};
|
|
9
|
+
export interface ITaskActionDataDto {
|
|
10
|
+
action: TaskActionEnum;
|
|
11
|
+
remark?: string;
|
|
12
|
+
}
|