law-common 14.1.4-beta.5 → 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/index.d.ts +6 -0
- package/dist/src/api/index.js +6 -0
- package/dist/src/api/{v1/interface → interface}/bank.create.dto.interface.d.ts +1 -1
- package/dist/src/api/interface/bank.entity.response.d.ts +4 -4
- package/dist/src/api/{v1/interface → interface}/bank.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/intermediary_bank.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/intermediary_bank.update.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/office_location.create.dto.interface.d.ts +1 -1
- package/dist/src/api/{v1/interface → interface}/office_location.update.dto.interface.d.ts +1 -1
- package/dist/src/api/v1/index.d.ts +0 -6
- package/dist/src/api/v1/index.js +0 -6
- package/dist/src/api/v2/index.d.ts +5 -11
- package/dist/src/api/v2/index.js +5 -13
- package/dist/src/api/v2/interface/task.create.dto.interface.d.ts +5 -0
- package/dist/src/api/v2/interface/task.update.dto.interface.d.ts +12 -0
- package/dist/src/entities/enums/bank_action_enum.d.ts +2 -6
- package/dist/src/entities/enums/bank_action_enum.js +2 -10
- package/dist/src/entities/enums/bank_status_enum.d.ts +1 -3
- package/dist/src/entities/enums/bank_status_enum.js +0 -2
- package/dist/src/entities/flow-configs/bank_flow.config.d.ts +1 -3
- package/dist/src/entities/flow-configs/bank_flow.config.js +13 -24
- package/dist/src/entities/flow-configs/country_flow.config.d.ts +33 -0
- package/dist/src/entities/flow-configs/country_flow.config.js +14 -3
- package/dist/src/entities/flow-configs/designation_flow.config.d.ts +33 -0
- package/dist/src/entities/flow-configs/designation_flow.config.js +14 -3
- package/dist/src/entities/flow-configs/industry_flow.config.d.ts +33 -0
- package/dist/src/entities/flow-configs/industry_flow.config.js +14 -3
- package/dist/src/entities/flow-configs/office_location_flow.config.d.ts +0 -33
- package/dist/src/entities/flow-configs/office_location_flow.config.js +3 -13
- package/dist/src/entities/flow-configs/rate_flow.config.d.ts +33 -0
- package/dist/src/entities/flow-configs/rate_flow.config.js +14 -3
- package/dist/src/entities/flow-configs/task_flow.config.d.ts +33 -0
- package/dist/src/entities/flow-configs/task_flow.config.js +14 -3
- package/dist/src/entities/flow-configs/to_do_list_flow.config.d.ts +33 -0
- package/dist/src/entities/flow-configs/to_do_list_flow.config.js +16 -3
- package/dist/src/entities/flow-configs/utils/flow-config.utils.d.ts +179 -19
- package/dist/src/entities/flow-configs/utils/flow-config.utils.js +12 -2
- package/dist/src/entities/index.d.ts +7 -8
- package/dist/src/entities/index.js +20 -11
- package/dist/src/entities/interface/bank.entity.interface.d.ts +4 -5
- package/dist/src/entities/interface/field-constraint/bank_field_constraints.interface.d.ts +1 -1
- package/dist/src/entities/interface/field-constraint/bank_field_constraints.interface.js +1 -7
- package/dist/src/entities/interface/field-constraint/office_location_field_constraints.interface.d.ts +9 -0
- package/dist/src/entities/interface/field-constraint/office_location_field_constraints.interface.js +13 -4
- package/dist/src/entities/model/bank.entity.model.d.ts +7 -86
- package/dist/src/entities/model/bank.entity.model.js +8 -449
- package/dist/src/entities/model/intermediary_bank.entity.model.d.ts +6 -62
- package/dist/src/entities/model/intermediary_bank.entity.model.js +10 -370
- package/dist/src/entities/model/office_location.entity.model.d.ts +8 -66
- package/dist/src/entities/model/office_location.entity.model.js +6 -405
- package/package.json +1 -1
- package/dist/src/api/v2/interface/bank.create.dto.interface.d.ts +0 -7
- package/dist/src/api/v2/interface/bank.update.dto.interface.d.ts +0 -12
- package/dist/src/api/v2/interface/intermediary_bank.create.dto.interface.d.ts +0 -5
- package/dist/src/api/v2/interface/intermediary_bank.create.dto.interface.js +0 -2
- package/dist/src/api/v2/interface/intermediary_bank.update.dto.interface.d.ts +0 -12
- package/dist/src/api/v2/interface/intermediary_bank.update.dto.interface.js +0 -2
- package/dist/src/api/v2/interface/office_location.create.dto.interface.d.ts +0 -15
- package/dist/src/api/v2/interface/office_location.create.dto.interface.js +0 -2
- package/dist/src/api/v2/interface/office_location.update.dto.interface.d.ts +0 -13
- package/dist/src/api/v2/interface/office_location.update.dto.interface.js +0 -2
- package/dist/src/entities/interface/field-constraint/office_location_address_field_constraints.interface.d.ts +0 -13
- package/dist/src/entities/interface/field-constraint/office_location_address_field_constraints.interface.js +0 -17
- /package/dist/src/api/{v1/interface → interface}/bank.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/bank.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/intermediary_bank.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/intermediary_bank.update.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/office_location.create.dto.interface.js +0 -0
- /package/dist/src/api/{v1/interface → interface}/office_location.update.dto.interface.js +0 -0
- /package/dist/src/api/v2/interface/{bank.create.dto.interface.js → task.create.dto.interface.js} +0 -0
- /package/dist/src/api/v2/interface/{bank.update.dto.interface.js → task.update.dto.interface.js} +0 -0
package/dist/src/api/index.d.ts
CHANGED
|
@@ -35,8 +35,10 @@ export * from "./interface/billing_timesheet.details.dto.interface";
|
|
|
35
35
|
export * from "./interface/billing_timesheet.filter.dto.interface";
|
|
36
36
|
export * from "./interface/billing_timesheet.update.dto.interface";
|
|
37
37
|
export * from "./interface/billing.entity.response";
|
|
38
|
+
export * from "./interface/office_location.create.dto.interface";
|
|
38
39
|
export * from "./interface/office_location.entity.response";
|
|
39
40
|
export * from "./interface/office_location.filter.dto.interface";
|
|
41
|
+
export * from "./interface/office_location.update.dto.interface";
|
|
40
42
|
export * from "./interface/organization.filter.dto.interface";
|
|
41
43
|
export * from "./interface/billing.update.dto.interface";
|
|
42
44
|
export * from "./interface/moving_timesheet.create.dto.interface";
|
|
@@ -45,7 +47,9 @@ export * from "./interface/moving_timesheet.update.dto.interface";
|
|
|
45
47
|
export * from "./interface/timesheet.create.dto.interface";
|
|
46
48
|
export * from "./interface/timesheet.filter.dto.interface";
|
|
47
49
|
export * from "./interface/timesheet.update.dto.interface";
|
|
50
|
+
export * from "./interface/bank.create.dto.interface";
|
|
48
51
|
export * from "./interface/bank.entity.response";
|
|
52
|
+
export * from "./interface/bank.update.dto.interface";
|
|
49
53
|
export * from "./interface/client.filter.dto.interface";
|
|
50
54
|
export * from "./interface/client_affiliate.create.dto.interface";
|
|
51
55
|
export * from "./interface/client_affiliate.filter.dto.interface";
|
|
@@ -166,6 +170,8 @@ export * from "./interface/configuration.filter.dto.interface";
|
|
|
166
170
|
export * from "./interface/configuration.update.dto.interface";
|
|
167
171
|
export * from "./interface/leave.filter.dto.interface";
|
|
168
172
|
export * from "./interface/bank.filter.dto.interface";
|
|
173
|
+
export * from "./interface/intermediary_bank.create.dto.interface";
|
|
169
174
|
export * from "./interface/intermediary_bank.filter.dto.interface";
|
|
175
|
+
export * from "./interface/intermediary_bank.update.dto.interface";
|
|
170
176
|
export * as v1 from "./v1";
|
|
171
177
|
export * as v2 from "./v2";
|
package/dist/src/api/index.js
CHANGED
|
@@ -74,8 +74,10 @@ __exportStar(require("./interface/billing_timesheet.details.dto.interface"), exp
|
|
|
74
74
|
__exportStar(require("./interface/billing_timesheet.filter.dto.interface"), exports);
|
|
75
75
|
__exportStar(require("./interface/billing_timesheet.update.dto.interface"), exports);
|
|
76
76
|
__exportStar(require("./interface/billing.entity.response"), exports);
|
|
77
|
+
__exportStar(require("./interface/office_location.create.dto.interface"), exports);
|
|
77
78
|
__exportStar(require("./interface/office_location.entity.response"), exports);
|
|
78
79
|
__exportStar(require("./interface/office_location.filter.dto.interface"), exports);
|
|
80
|
+
__exportStar(require("./interface/office_location.update.dto.interface"), exports);
|
|
79
81
|
__exportStar(require("./interface/organization.filter.dto.interface"), exports);
|
|
80
82
|
__exportStar(require("./interface/billing.update.dto.interface"), exports);
|
|
81
83
|
__exportStar(require("./interface/moving_timesheet.create.dto.interface"), exports);
|
|
@@ -84,7 +86,9 @@ __exportStar(require("./interface/moving_timesheet.update.dto.interface"), expor
|
|
|
84
86
|
__exportStar(require("./interface/timesheet.create.dto.interface"), exports);
|
|
85
87
|
__exportStar(require("./interface/timesheet.filter.dto.interface"), exports);
|
|
86
88
|
__exportStar(require("./interface/timesheet.update.dto.interface"), exports);
|
|
89
|
+
__exportStar(require("./interface/bank.create.dto.interface"), exports);
|
|
87
90
|
__exportStar(require("./interface/bank.entity.response"), exports);
|
|
91
|
+
__exportStar(require("./interface/bank.update.dto.interface"), exports);
|
|
88
92
|
__exportStar(require("./interface/client.filter.dto.interface"), exports);
|
|
89
93
|
__exportStar(require("./interface/client_affiliate.create.dto.interface"), exports);
|
|
90
94
|
__exportStar(require("./interface/client_affiliate.filter.dto.interface"), exports);
|
|
@@ -207,7 +211,9 @@ __exportStar(require("./interface/configuration.filter.dto.interface"), exports)
|
|
|
207
211
|
__exportStar(require("./interface/configuration.update.dto.interface"), exports);
|
|
208
212
|
__exportStar(require("./interface/leave.filter.dto.interface"), exports);
|
|
209
213
|
__exportStar(require("./interface/bank.filter.dto.interface"), exports);
|
|
214
|
+
__exportStar(require("./interface/intermediary_bank.create.dto.interface"), exports);
|
|
210
215
|
__exportStar(require("./interface/intermediary_bank.filter.dto.interface"), exports);
|
|
216
|
+
__exportStar(require("./interface/intermediary_bank.update.dto.interface"), exports);
|
|
211
217
|
// Versioned contracts (checklist 12.4). Namespace re-exports only - never `export *` flat from
|
|
212
218
|
// v1 or v2: flat-exporting both is a duplicate-export error, and flat-exporting one reintroduces
|
|
213
219
|
// the ambiguity the fork exists to remove.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BankStatusEnum, IBankEntity, IEntityCreateDto } from "
|
|
1
|
+
import { BankStatusEnum, IBankEntity, IEntityCreateDto } from "../../entities";
|
|
2
2
|
import { IIntermediaryBankCreateDto } from "./intermediary_bank.create.dto.interface";
|
|
3
3
|
export interface IBankCreateDto extends Omit<IEntityCreateDto<IBankEntity>, IBankCreateExclude> {
|
|
4
4
|
status?: BankStatusEnum;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BankActionEnum, BankStatusEnum, FlowConfig, IBankEntity,
|
|
1
|
+
import { BankActionEnum, BankStatusEnum, FlowConfig, IBankEntity, IIntermediaryBankEntity } from "../../entities";
|
|
2
2
|
/**
|
|
3
3
|
* LW-828: this used to re-declare the flow-config shape by hand. It is now an alias of the shared
|
|
4
|
-
* `FlowConfig`, instantiated with `
|
|
5
|
-
* `BankService.getBankNextStatus`
|
|
4
|
+
* `FlowConfig`, instantiated with `void` as the context type because `next` here is called with no
|
|
5
|
+
* arguments (`BankService.getBankNextStatus`). Kept as a named type so every consumer — including
|
|
6
6
|
* law-admin-web, which receives this config over `GET /bank/flow-config` — keeps compiling unchanged.
|
|
7
7
|
*/
|
|
8
|
-
export type IBankFlowConfig = FlowConfig<BankStatusEnum, BankActionEnum,
|
|
8
|
+
export type IBankFlowConfig = FlowConfig<BankStatusEnum, BankActionEnum, void>;
|
|
9
9
|
export interface IBankEntityGet extends IBankEntity {
|
|
10
10
|
intermediaryBankDetails?: IIntermediaryBankEntity[];
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BankActionEnum, IBankEntity, IEntityUpdateDto } from "
|
|
1
|
+
import { BankActionEnum, IBankEntity, IEntityUpdateDto } from "../../entities";
|
|
2
2
|
import { IIntermediaryBankUpdateDto } from "./intermediary_bank.update.dto.interface";
|
|
3
3
|
export interface IBankActionDataDto {
|
|
4
4
|
action: BankActionEnum;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEntityCreateDto, IIntermediaryBankEntity } from "
|
|
1
|
+
import { IEntityCreateDto, IIntermediaryBankEntity } from "../../entities";
|
|
2
2
|
/** status is set by the entity flow, never by the client */
|
|
3
3
|
export type IIntermediaryBankCreateExclude = "bankId" | "status";
|
|
4
4
|
export interface IIntermediaryBankCreateDto extends Omit<IEntityCreateDto<IIntermediaryBankEntity>, IIntermediaryBankCreateExclude> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEntityUpdateDto, IIntermediaryBankEntity } from "
|
|
1
|
+
import { IEntityUpdateDto, IIntermediaryBankEntity } from "../../entities";
|
|
2
2
|
export interface IIntermediaryBankUpdateDto extends Omit<IEntityUpdateDto<IIntermediaryBankEntity>, "status"> {
|
|
3
3
|
id?: number;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEntityCreateDto, IOfficeLocationEntity } from "
|
|
1
|
+
import { IEntityCreateDto, IOfficeLocationEntity } from "../../entities";
|
|
2
2
|
/** status is set by the entity flow, never by the client */
|
|
3
3
|
export type IOfficeLocationCreateExclude = "status";
|
|
4
4
|
export interface IOfficeLocationCreateDto extends Omit<IEntityCreateDto<IOfficeLocationEntity>, IOfficeLocationCreateExclude> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEntityUpdateDto, IOfficeLocationEntity } from "
|
|
1
|
+
import { IEntityUpdateDto, IOfficeLocationEntity } from "../../entities";
|
|
2
2
|
import { IOfficeLocationCreateExclude } from "./office_location.create.dto.interface";
|
|
3
3
|
export interface IOfficeLocationUpdateDto extends Omit<IEntityUpdateDto<IOfficeLocationEntity>, IOfficeLocationCreateExclude> {
|
|
4
4
|
}
|
|
@@ -5,13 +5,7 @@
|
|
|
5
5
|
* generator never writes to this directory (checklist 12.4). An entity appears either in
|
|
6
6
|
* api/interface/ or in v1 + v2 - never both.
|
|
7
7
|
*/
|
|
8
|
-
export * from "./interface/bank.create.dto.interface";
|
|
9
|
-
export * from "./interface/bank.update.dto.interface";
|
|
10
8
|
export * from "./interface/expense_type.create.dto.interface";
|
|
11
9
|
export * from "./interface/expense_type.update.dto.interface";
|
|
12
|
-
export * from "./interface/office_location.create.dto.interface";
|
|
13
|
-
export * from "./interface/office_location.update.dto.interface";
|
|
14
|
-
export * from "./interface/intermediary_bank.create.dto.interface";
|
|
15
|
-
export * from "./interface/intermediary_bank.update.dto.interface";
|
|
16
10
|
export * from "./interface/to_do_list.create.dto.interface";
|
|
17
11
|
export * from "./interface/to_do_list.update.dto.interface";
|
package/dist/src/api/v1/index.js
CHANGED
|
@@ -21,13 +21,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
* generator never writes to this directory (checklist 12.4). An entity appears either in
|
|
22
22
|
* api/interface/ or in v1 + v2 - never both.
|
|
23
23
|
*/
|
|
24
|
-
__exportStar(require("./interface/bank.create.dto.interface"), exports);
|
|
25
|
-
__exportStar(require("./interface/bank.update.dto.interface"), exports);
|
|
26
24
|
__exportStar(require("./interface/expense_type.create.dto.interface"), exports);
|
|
27
25
|
__exportStar(require("./interface/expense_type.update.dto.interface"), exports);
|
|
28
|
-
__exportStar(require("./interface/office_location.create.dto.interface"), exports);
|
|
29
|
-
__exportStar(require("./interface/office_location.update.dto.interface"), exports);
|
|
30
|
-
__exportStar(require("./interface/intermediary_bank.create.dto.interface"), exports);
|
|
31
|
-
__exportStar(require("./interface/intermediary_bank.update.dto.interface"), exports);
|
|
32
26
|
__exportStar(require("./interface/to_do_list.create.dto.interface"), exports);
|
|
33
27
|
__exportStar(require("./interface/to_do_list.update.dto.interface"), exports);
|
|
@@ -1,19 +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";
|
|
14
|
-
export * from "./interface/
|
|
15
|
-
export * from "./interface/
|
|
16
|
-
export * from "./interface/intermediary_bank.create.dto.interface";
|
|
17
|
-
export * from "./interface/intermediary_bank.update.dto.interface";
|
|
18
|
-
export * from "./interface/bank.create.dto.interface";
|
|
19
|
-
export * from "./interface/bank.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,15 +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);
|
|
32
|
-
__exportStar(require("./interface/
|
|
33
|
-
__exportStar(require("./interface/
|
|
34
|
-
__exportStar(require("./interface/intermediary_bank.create.dto.interface"), exports);
|
|
35
|
-
__exportStar(require("./interface/intermediary_bank.update.dto.interface"), exports);
|
|
36
|
-
__exportStar(require("./interface/bank.create.dto.interface"), exports);
|
|
37
|
-
__exportStar(require("./interface/bank.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
|
+
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
export declare enum BankActionEnum {
|
|
2
|
+
VIEW = "VIEW",
|
|
2
3
|
UPDATE = "UPDATE",
|
|
3
4
|
DELETE = "DELETE",
|
|
4
5
|
CREATE = "CREATE",
|
|
5
6
|
APPROVE = "APPROVE",
|
|
6
7
|
REJECT = "REJECT",
|
|
7
|
-
RECALL = "RECALL"
|
|
8
|
-
DEACTIVATE = "DEACTIVATE",
|
|
9
|
-
ACTIVATE = "ACTIVATE",
|
|
10
|
-
RESTORE = "RESTORE",
|
|
11
|
-
REQUEST_CHANGES = "REQUEST_CHANGES",
|
|
12
|
-
CHANGES_DONE = "CHANGES_DONE"
|
|
8
|
+
RECALL = "RECALL"
|
|
13
9
|
}
|
|
14
10
|
export declare namespace BankActionEnum {
|
|
15
11
|
function getLabel(action: BankActionEnum): string;
|
|
@@ -5,31 +5,23 @@ const enums_1 = require("../../enums");
|
|
|
5
5
|
const exceptions_1 = require("../../exceptions");
|
|
6
6
|
var BankActionEnum;
|
|
7
7
|
(function (BankActionEnum) {
|
|
8
|
+
BankActionEnum["VIEW"] = "VIEW";
|
|
8
9
|
BankActionEnum["UPDATE"] = "UPDATE";
|
|
9
10
|
BankActionEnum["DELETE"] = "DELETE";
|
|
10
11
|
BankActionEnum["CREATE"] = "CREATE";
|
|
11
12
|
BankActionEnum["APPROVE"] = "APPROVE";
|
|
12
13
|
BankActionEnum["REJECT"] = "REJECT";
|
|
13
14
|
BankActionEnum["RECALL"] = "RECALL";
|
|
14
|
-
BankActionEnum["DEACTIVATE"] = "DEACTIVATE";
|
|
15
|
-
BankActionEnum["ACTIVATE"] = "ACTIVATE";
|
|
16
|
-
BankActionEnum["RESTORE"] = "RESTORE";
|
|
17
|
-
BankActionEnum["REQUEST_CHANGES"] = "REQUEST_CHANGES";
|
|
18
|
-
BankActionEnum["CHANGES_DONE"] = "CHANGES_DONE";
|
|
19
15
|
})(BankActionEnum || (exports.BankActionEnum = BankActionEnum = {}));
|
|
20
16
|
(function (BankActionEnum) {
|
|
21
17
|
const actionLabelMap = {
|
|
22
18
|
[BankActionEnum.APPROVE]: "Approve",
|
|
19
|
+
[BankActionEnum.VIEW]: "View",
|
|
23
20
|
[BankActionEnum.UPDATE]: "Edit",
|
|
24
21
|
[BankActionEnum.DELETE]: "Delete",
|
|
25
22
|
[BankActionEnum.CREATE]: "Create",
|
|
26
23
|
[BankActionEnum.REJECT]: "Reject",
|
|
27
24
|
[BankActionEnum.RECALL]: "Recall",
|
|
28
|
-
[BankActionEnum.DEACTIVATE]: "Deactivate",
|
|
29
|
-
[BankActionEnum.ACTIVATE]: "Activate",
|
|
30
|
-
[BankActionEnum.RESTORE]: "Restore",
|
|
31
|
-
[BankActionEnum.REQUEST_CHANGES]: "Request Changes",
|
|
32
|
-
[BankActionEnum.CHANGES_DONE]: "Changes Done",
|
|
33
25
|
};
|
|
34
26
|
function getLabel(action) {
|
|
35
27
|
if (!Object.values(BankActionEnum).includes(action)) {
|
|
@@ -5,9 +5,7 @@ export declare enum BankStatusEnum {
|
|
|
5
5
|
REJECTED = "REJECTED",
|
|
6
6
|
APPROVED = "APPROVED",
|
|
7
7
|
DELETED = "DELETED",
|
|
8
|
-
RESOLVED_REJECTED = "RESOLVED_REJECTED"
|
|
9
|
-
DEACTIVATED = "DEACTIVATED",
|
|
10
|
-
CHANGE_REQUESTED = "CHANGE_REQUESTED"
|
|
8
|
+
RESOLVED_REJECTED = "RESOLVED_REJECTED"
|
|
11
9
|
}
|
|
12
10
|
export declare namespace BankStatusEnum {
|
|
13
11
|
function getNames(): string[];
|
|
@@ -12,8 +12,6 @@ var BankStatusEnum;
|
|
|
12
12
|
BankStatusEnum["APPROVED"] = "APPROVED";
|
|
13
13
|
BankStatusEnum["DELETED"] = "DELETED";
|
|
14
14
|
BankStatusEnum["RESOLVED_REJECTED"] = "RESOLVED_REJECTED";
|
|
15
|
-
BankStatusEnum["DEACTIVATED"] = "DEACTIVATED";
|
|
16
|
-
BankStatusEnum["CHANGE_REQUESTED"] = "CHANGE_REQUESTED";
|
|
17
15
|
})(BankStatusEnum || (exports.BankStatusEnum = BankStatusEnum = {}));
|
|
18
16
|
(function (BankStatusEnum) {
|
|
19
17
|
function getNames() {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { BankActionEnum } from "../enums/bank_action_enum";
|
|
2
2
|
import { BankStatusEnum } from "../enums/bank_status_enum";
|
|
3
3
|
import { FlowConfig } from "./flow-config.type";
|
|
4
|
-
export interface IBankFlowConfigContextData {
|
|
5
|
-
}
|
|
6
4
|
/**
|
|
7
5
|
* Typed with `FlowConfig` directly rather than importing `IBankFlowConfig` from `src/api`, so that
|
|
8
6
|
* `entities` does not reach into `api` for a type it can express itself. `IBankFlowConfig` is now an
|
|
9
7
|
* alias of this same instantiation, so the two cannot drift.
|
|
10
8
|
*/
|
|
11
|
-
export declare const bankFlowConfig: FlowConfig<BankStatusEnum, BankActionEnum,
|
|
9
|
+
export declare const bankFlowConfig: FlowConfig<BankStatusEnum, BankActionEnum, void>;
|
|
@@ -7,10 +7,13 @@ const base_flow_config_factory_1 = require("./base-flow-config.factory");
|
|
|
7
7
|
const BANK_APPROVER_PERMISSION = ["BANK_APPROVER_ORG"];
|
|
8
8
|
const BANK_UPDATE_PERMISSION = ["BANK_UPDATE_ORG"];
|
|
9
9
|
const ACTION_MAP = {
|
|
10
|
-
// CREATE
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
|
|
10
|
+
// VIEW and CREATE are declared on BankActionEnum but carry no transition in this flow. They are
|
|
11
|
+
// listed so the map covers every enum member; the empty reachable set makes createActionConfig
|
|
12
|
+
// uncallable for them.
|
|
13
|
+
[bank_action_enum_1.BankActionEnum.VIEW]: {
|
|
14
|
+
reachableStatues: [],
|
|
15
|
+
permissions: [],
|
|
16
|
+
},
|
|
14
17
|
[bank_action_enum_1.BankActionEnum.CREATE]: {
|
|
15
18
|
reachableStatues: [],
|
|
16
19
|
permissions: [],
|
|
@@ -35,27 +38,13 @@ const ACTION_MAP = {
|
|
|
35
38
|
reachableStatues: [bank_status_enum_1.BankStatusEnum.DELETED],
|
|
36
39
|
permissions: BANK_UPDATE_PERMISSION,
|
|
37
40
|
},
|
|
38
|
-
[bank_action_enum_1.BankActionEnum.DEACTIVATE]: {
|
|
39
|
-
reachableStatues: [],
|
|
40
|
-
permissions: [],
|
|
41
|
-
},
|
|
42
|
-
[bank_action_enum_1.BankActionEnum.ACTIVATE]: {
|
|
43
|
-
reachableStatues: [],
|
|
44
|
-
permissions: [],
|
|
45
|
-
},
|
|
46
|
-
[bank_action_enum_1.BankActionEnum.RESTORE]: {
|
|
47
|
-
reachableStatues: [],
|
|
48
|
-
permissions: [],
|
|
49
|
-
},
|
|
50
|
-
[bank_action_enum_1.BankActionEnum.REQUEST_CHANGES]: {
|
|
51
|
-
reachableStatues: [],
|
|
52
|
-
permissions: [],
|
|
53
|
-
},
|
|
54
|
-
[bank_action_enum_1.BankActionEnum.CHANGES_DONE]: {
|
|
55
|
-
reachableStatues: [],
|
|
56
|
-
permissions: [],
|
|
57
|
-
},
|
|
58
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* The context type is `void` rather than `never` or an empty interface, because `IBankFlowConfig`
|
|
44
|
+
* declares `next: () => BankStatusEnum` and `BankService.getBankNextStatus` calls
|
|
45
|
+
* `matchingPermissionConfig.next()` with no arguments. A `void` parameter may be omitted at the call
|
|
46
|
+
* site, so that call keeps compiling; `never` would have required an argument nobody can produce.
|
|
47
|
+
*/
|
|
59
48
|
const { createActionConfig } = (0, base_flow_config_factory_1.createFlowConfigFactory)()(ACTION_MAP);
|
|
60
49
|
// CREATE_APPROVAL_PENDING status transitions
|
|
61
50
|
const transitionCreateApprovalPendingStatusApproveAction = createActionConfig(bank_action_enum_1.BankActionEnum.APPROVE, bank_status_enum_1.BankStatusEnum.APPROVED);
|
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
import { CountryActionEnum } from "../enums/country_action_enum";
|
|
2
2
|
import { CountryStatusEnum } from "../enums/country_status_enum";
|
|
3
|
+
import { PermissionGroupEnum } from "../enums/permission_group_enum";
|
|
3
4
|
import { FlowConfig } from "./flow-config.type";
|
|
4
5
|
export interface ICountryFlowConfigContextData {
|
|
5
6
|
}
|
|
7
|
+
export declare const ACTION_MAP: {
|
|
8
|
+
CREATE: {
|
|
9
|
+
reachableStatues: readonly [CountryStatusEnum.APPROVED];
|
|
10
|
+
permissions: string[];
|
|
11
|
+
group: PermissionGroupEnum.CREATE;
|
|
12
|
+
};
|
|
13
|
+
UPDATE: {
|
|
14
|
+
reachableStatues: readonly [CountryStatusEnum.APPROVED];
|
|
15
|
+
permissions: string[];
|
|
16
|
+
group: PermissionGroupEnum.UPDATE;
|
|
17
|
+
};
|
|
18
|
+
DELETE: {
|
|
19
|
+
reachableStatues: readonly [CountryStatusEnum.DELETED];
|
|
20
|
+
permissions: string[];
|
|
21
|
+
group: PermissionGroupEnum.DELETE;
|
|
22
|
+
};
|
|
23
|
+
DEACTIVATE: {
|
|
24
|
+
reachableStatues: readonly [CountryStatusEnum.DEACTIVATED];
|
|
25
|
+
permissions: string[];
|
|
26
|
+
group: PermissionGroupEnum.UPDATE;
|
|
27
|
+
};
|
|
28
|
+
ACTIVATE: {
|
|
29
|
+
reachableStatues: readonly [CountryStatusEnum.APPROVED];
|
|
30
|
+
permissions: string[];
|
|
31
|
+
group: PermissionGroupEnum.UPDATE;
|
|
32
|
+
};
|
|
33
|
+
RESTORE: {
|
|
34
|
+
reachableStatues: readonly [CountryStatusEnum.APPROVED];
|
|
35
|
+
permissions: string[];
|
|
36
|
+
group: PermissionGroupEnum.UPDATE;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
6
39
|
export declare const countryFlowConfig: FlowConfig<CountryStatusEnum, CountryActionEnum, ICountryFlowConfigContextData>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.countryFlowConfig = void 0;
|
|
3
|
+
exports.countryFlowConfig = exports.ACTION_MAP = void 0;
|
|
4
4
|
const country_action_enum_1 = require("../enums/country_action_enum");
|
|
5
5
|
const country_status_enum_1 = require("../enums/country_status_enum");
|
|
6
|
+
const permission_group_enum_1 = require("../enums/permission_group_enum");
|
|
6
7
|
const base_flow_config_factory_1 = require("./base-flow-config.factory");
|
|
7
8
|
const COUNTRY_CREATE_PERMISSION = ["COUNTRY_CREATE"];
|
|
8
9
|
const COUNTRY_UPDATE_PERMISSION = ["COUNTRY_UPDATE"];
|
|
@@ -10,33 +11,43 @@ const COUNTRY_DELETE_PERMISSION = ["COUNTRY_DELETE"];
|
|
|
10
11
|
const COUNTRY_DEACTIVATE_PERMISSION = ["COUNTRY_DEACTIVATE"];
|
|
11
12
|
const COUNTRY_ACTIVATE_PERMISSION = ["COUNTRY_ACTIVATE"];
|
|
12
13
|
const COUNTRY_RESTORE_PERMISSION = ["COUNTRY_RESTORE"];
|
|
13
|
-
|
|
14
|
+
// Every action declares its group. country_bulk_update.transaction.ts reads `group` to pick the
|
|
15
|
+
// permission a dto is authorised under and refuses to default an absent one, so all six must be
|
|
16
|
+
// annotated for any transition to keep working. The three lifecycle actions share the UPDATE group
|
|
17
|
+
// because that is where `derivePermissionGroup` classifies them.
|
|
18
|
+
exports.ACTION_MAP = {
|
|
14
19
|
[country_action_enum_1.CountryActionEnum.CREATE]: {
|
|
15
20
|
reachableStatues: [country_status_enum_1.CountryStatusEnum.APPROVED],
|
|
16
21
|
permissions: COUNTRY_CREATE_PERMISSION,
|
|
22
|
+
group: permission_group_enum_1.PermissionGroupEnum.CREATE,
|
|
17
23
|
},
|
|
18
24
|
[country_action_enum_1.CountryActionEnum.UPDATE]: {
|
|
19
25
|
reachableStatues: [country_status_enum_1.CountryStatusEnum.APPROVED],
|
|
20
26
|
permissions: COUNTRY_UPDATE_PERMISSION,
|
|
27
|
+
group: permission_group_enum_1.PermissionGroupEnum.UPDATE,
|
|
21
28
|
},
|
|
22
29
|
[country_action_enum_1.CountryActionEnum.DELETE]: {
|
|
23
30
|
reachableStatues: [country_status_enum_1.CountryStatusEnum.DELETED],
|
|
24
31
|
permissions: COUNTRY_DELETE_PERMISSION,
|
|
32
|
+
group: permission_group_enum_1.PermissionGroupEnum.DELETE,
|
|
25
33
|
},
|
|
26
34
|
[country_action_enum_1.CountryActionEnum.DEACTIVATE]: {
|
|
27
35
|
reachableStatues: [country_status_enum_1.CountryStatusEnum.DEACTIVATED],
|
|
28
36
|
permissions: COUNTRY_DEACTIVATE_PERMISSION,
|
|
37
|
+
group: permission_group_enum_1.PermissionGroupEnum.UPDATE,
|
|
29
38
|
},
|
|
30
39
|
[country_action_enum_1.CountryActionEnum.ACTIVATE]: {
|
|
31
40
|
reachableStatues: [country_status_enum_1.CountryStatusEnum.APPROVED],
|
|
32
41
|
permissions: COUNTRY_ACTIVATE_PERMISSION,
|
|
42
|
+
group: permission_group_enum_1.PermissionGroupEnum.UPDATE,
|
|
33
43
|
},
|
|
34
44
|
[country_action_enum_1.CountryActionEnum.RESTORE]: {
|
|
35
45
|
reachableStatues: [country_status_enum_1.CountryStatusEnum.APPROVED],
|
|
36
46
|
permissions: COUNTRY_RESTORE_PERMISSION,
|
|
47
|
+
group: permission_group_enum_1.PermissionGroupEnum.UPDATE,
|
|
37
48
|
},
|
|
38
49
|
};
|
|
39
|
-
const { createActionConfig } = (0, base_flow_config_factory_1.createFlowConfigFactory)()(ACTION_MAP);
|
|
50
|
+
const { createActionConfig } = (0, base_flow_config_factory_1.createFlowConfigFactory)()(exports.ACTION_MAP);
|
|
40
51
|
// APPROVED status transitions
|
|
41
52
|
const transitionApprovedStatusUpdateAction = createActionConfig(country_action_enum_1.CountryActionEnum.UPDATE, country_status_enum_1.CountryStatusEnum.APPROVED);
|
|
42
53
|
const transitionApprovedStatusDeleteAction = createActionConfig(country_action_enum_1.CountryActionEnum.DELETE, country_status_enum_1.CountryStatusEnum.DELETED);
|
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
import { FlowConfig } from "./flow-config.type";
|
|
2
2
|
import { DesignationActionEnum } from "../enums/designation_action_enum";
|
|
3
3
|
import { DesignationStatusEnum } from "../enums/designation_status_enum";
|
|
4
|
+
import { PermissionGroupEnum } from "../enums/permission_group_enum";
|
|
4
5
|
export interface IDesignationFlowConfigContextData {
|
|
5
6
|
}
|
|
7
|
+
export declare const ACTION_MAP: {
|
|
8
|
+
CREATE: {
|
|
9
|
+
reachableStatues: readonly [DesignationStatusEnum.APPROVED];
|
|
10
|
+
permissions: string[];
|
|
11
|
+
group: PermissionGroupEnum.CREATE;
|
|
12
|
+
};
|
|
13
|
+
UPDATE: {
|
|
14
|
+
reachableStatues: readonly [DesignationStatusEnum.APPROVED];
|
|
15
|
+
permissions: string[];
|
|
16
|
+
group: PermissionGroupEnum.UPDATE;
|
|
17
|
+
};
|
|
18
|
+
DELETE: {
|
|
19
|
+
reachableStatues: readonly [DesignationStatusEnum.DELETED];
|
|
20
|
+
permissions: string[];
|
|
21
|
+
group: PermissionGroupEnum.DELETE;
|
|
22
|
+
};
|
|
23
|
+
DEACTIVATE: {
|
|
24
|
+
reachableStatues: readonly [DesignationStatusEnum.DEACTIVATED];
|
|
25
|
+
permissions: string[];
|
|
26
|
+
group: PermissionGroupEnum.UPDATE;
|
|
27
|
+
};
|
|
28
|
+
ACTIVATE: {
|
|
29
|
+
reachableStatues: readonly [DesignationStatusEnum.APPROVED];
|
|
30
|
+
permissions: string[];
|
|
31
|
+
group: PermissionGroupEnum.UPDATE;
|
|
32
|
+
};
|
|
33
|
+
RESTORE: {
|
|
34
|
+
reachableStatues: readonly [DesignationStatusEnum.APPROVED];
|
|
35
|
+
permissions: string[];
|
|
36
|
+
group: PermissionGroupEnum.UPDATE;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
6
39
|
export declare const designationFlowConfig: FlowConfig<DesignationStatusEnum, DesignationActionEnum, IDesignationFlowConfigContextData>;
|
|
@@ -1,42 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.designationFlowConfig = void 0;
|
|
3
|
+
exports.designationFlowConfig = exports.ACTION_MAP = void 0;
|
|
4
4
|
const base_flow_config_factory_1 = require("./base-flow-config.factory");
|
|
5
5
|
const designation_action_enum_1 = require("../enums/designation_action_enum");
|
|
6
6
|
const designation_status_enum_1 = require("../enums/designation_status_enum");
|
|
7
|
+
const permission_group_enum_1 = require("../enums/permission_group_enum");
|
|
7
8
|
const DESIGNATION_CREATE_PERMISSION = ["DESIGNATION_CREATE"];
|
|
8
9
|
const DESIGNATION_UPDATE_PERMISSION = ["DESIGNATION_UPDATE"];
|
|
9
10
|
const DESIGNATION_DELETE_PERMISSION = ["DESIGNATION_DELETE"];
|
|
10
11
|
const DESIGNATION_DEACTIVATE_PERMISSION = ["DESIGNATION_DEACTIVATE"];
|
|
11
12
|
const DESIGNATION_ACTIVATE_PERMISSION = ["DESIGNATION_ACTIVATE"];
|
|
12
13
|
const DESIGNATION_RESTORE_PERMISSION = ["DESIGNATION_RESTORE"];
|
|
13
|
-
|
|
14
|
+
// Every action declares its group. designation_bulk_update.transaction.ts reads `group` to pick the
|
|
15
|
+
// permission a dto is authorised under and refuses to default an absent one, so all six must be
|
|
16
|
+
// annotated for any transition to keep working. The three lifecycle actions share the UPDATE group
|
|
17
|
+
// because that is where `derivePermissionGroup` classifies them.
|
|
18
|
+
exports.ACTION_MAP = {
|
|
14
19
|
[designation_action_enum_1.DesignationActionEnum.CREATE]: {
|
|
15
20
|
reachableStatues: [designation_status_enum_1.DesignationStatusEnum.APPROVED],
|
|
16
21
|
permissions: DESIGNATION_CREATE_PERMISSION,
|
|
22
|
+
group: permission_group_enum_1.PermissionGroupEnum.CREATE,
|
|
17
23
|
},
|
|
18
24
|
[designation_action_enum_1.DesignationActionEnum.UPDATE]: {
|
|
19
25
|
reachableStatues: [designation_status_enum_1.DesignationStatusEnum.APPROVED],
|
|
20
26
|
permissions: DESIGNATION_UPDATE_PERMISSION,
|
|
27
|
+
group: permission_group_enum_1.PermissionGroupEnum.UPDATE,
|
|
21
28
|
},
|
|
22
29
|
[designation_action_enum_1.DesignationActionEnum.DELETE]: {
|
|
23
30
|
reachableStatues: [designation_status_enum_1.DesignationStatusEnum.DELETED],
|
|
24
31
|
permissions: DESIGNATION_DELETE_PERMISSION,
|
|
32
|
+
group: permission_group_enum_1.PermissionGroupEnum.DELETE,
|
|
25
33
|
},
|
|
26
34
|
[designation_action_enum_1.DesignationActionEnum.DEACTIVATE]: {
|
|
27
35
|
reachableStatues: [designation_status_enum_1.DesignationStatusEnum.DEACTIVATED],
|
|
28
36
|
permissions: DESIGNATION_DEACTIVATE_PERMISSION,
|
|
37
|
+
group: permission_group_enum_1.PermissionGroupEnum.UPDATE,
|
|
29
38
|
},
|
|
30
39
|
[designation_action_enum_1.DesignationActionEnum.ACTIVATE]: {
|
|
31
40
|
reachableStatues: [designation_status_enum_1.DesignationStatusEnum.APPROVED],
|
|
32
41
|
permissions: DESIGNATION_ACTIVATE_PERMISSION,
|
|
42
|
+
group: permission_group_enum_1.PermissionGroupEnum.UPDATE,
|
|
33
43
|
},
|
|
34
44
|
[designation_action_enum_1.DesignationActionEnum.RESTORE]: {
|
|
35
45
|
reachableStatues: [designation_status_enum_1.DesignationStatusEnum.APPROVED],
|
|
36
46
|
permissions: DESIGNATION_RESTORE_PERMISSION,
|
|
47
|
+
group: permission_group_enum_1.PermissionGroupEnum.UPDATE,
|
|
37
48
|
},
|
|
38
49
|
};
|
|
39
|
-
const { createActionConfig } = (0, base_flow_config_factory_1.createFlowConfigFactory)()(ACTION_MAP);
|
|
50
|
+
const { createActionConfig } = (0, base_flow_config_factory_1.createFlowConfigFactory)()(exports.ACTION_MAP);
|
|
40
51
|
// APPROVED status transitions
|
|
41
52
|
const transitionApprovedStatusUpdateAction = createActionConfig(designation_action_enum_1.DesignationActionEnum.UPDATE, designation_status_enum_1.DesignationStatusEnum.APPROVED);
|
|
42
53
|
const transitionApprovedStatusDeleteAction = createActionConfig(designation_action_enum_1.DesignationActionEnum.DELETE, designation_status_enum_1.DesignationStatusEnum.DELETED);
|
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
import { FlowConfig } from "./flow-config.type";
|
|
2
2
|
import { IndustryActionEnum } from "../enums/industry_action_enum";
|
|
3
3
|
import { IndustryStatusEnum } from "../enums/industry_status_enum";
|
|
4
|
+
import { PermissionGroupEnum } from "../enums/permission_group_enum";
|
|
4
5
|
export interface IIndustryFlowConfigContextData {
|
|
5
6
|
}
|
|
7
|
+
export declare const ACTION_MAP: {
|
|
8
|
+
CREATE: {
|
|
9
|
+
reachableStatues: readonly [IndustryStatusEnum.APPROVED];
|
|
10
|
+
permissions: string[];
|
|
11
|
+
group: PermissionGroupEnum.CREATE;
|
|
12
|
+
};
|
|
13
|
+
UPDATE: {
|
|
14
|
+
reachableStatues: readonly [IndustryStatusEnum.APPROVED];
|
|
15
|
+
permissions: string[];
|
|
16
|
+
group: PermissionGroupEnum.UPDATE;
|
|
17
|
+
};
|
|
18
|
+
DELETE: {
|
|
19
|
+
reachableStatues: readonly [IndustryStatusEnum.DELETED];
|
|
20
|
+
permissions: string[];
|
|
21
|
+
group: PermissionGroupEnum.DELETE;
|
|
22
|
+
};
|
|
23
|
+
DEACTIVATE: {
|
|
24
|
+
reachableStatues: readonly [IndustryStatusEnum.DEACTIVATED];
|
|
25
|
+
permissions: string[];
|
|
26
|
+
group: PermissionGroupEnum.UPDATE;
|
|
27
|
+
};
|
|
28
|
+
ACTIVATE: {
|
|
29
|
+
reachableStatues: readonly [IndustryStatusEnum.APPROVED];
|
|
30
|
+
permissions: string[];
|
|
31
|
+
group: PermissionGroupEnum.UPDATE;
|
|
32
|
+
};
|
|
33
|
+
RESTORE: {
|
|
34
|
+
reachableStatues: readonly [IndustryStatusEnum.APPROVED];
|
|
35
|
+
permissions: string[];
|
|
36
|
+
group: PermissionGroupEnum.UPDATE;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
6
39
|
export declare const industryFlowConfig: FlowConfig<IndustryStatusEnum, IndustryActionEnum, IIndustryFlowConfigContextData>;
|