@abyss-project/main 1.0.92 → 1.0.94
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/expressions/index.d.ts +5 -0
- package/dist/expressions/index.js +16 -0
- package/dist/expressions/mapper.d.ts +9 -0
- package/dist/expressions/mapper.js +90 -0
- package/dist/expressions/parser.d.ts +3 -0
- package/dist/expressions/parser.js +97 -0
- package/dist/expressions/resolver.d.ts +12 -0
- package/dist/expressions/resolver.js +88 -0
- package/dist/expressions/types.d.ts +36 -0
- package/dist/types/enum/abyss-application-event.enum.d.ts +6 -1
- package/dist/types/enum/abyss-application-event.enum.js +5 -0
- package/dist/types/enum/project-access-permission.enum.d.ts +5 -1
- package/dist/types/enum/project-access-permission.enum.js +4 -0
- package/dist/workflow/expression/expression-functions.utils.d.ts +6 -0
- package/dist/workflow/expression/expression-functions.utils.js +61 -0
- package/dist/workflow/expression/expression-mapper.d.ts +11 -0
- package/dist/workflow/expression/expression-mapper.js +32 -0
- package/dist/workflow/expression/expression-mapping.utils.d.ts +4 -0
- package/dist/workflow/expression/expression-mapping.utils.js +43 -0
- package/dist/workflow/expression/expression-resolver.utils.d.ts +3 -0
- package/dist/workflow/expression/expression-resolver.utils.js +54 -0
- package/dist/workflow/expression/expression-tokenizer.utils.d.ts +4 -0
- package/dist/workflow/expression/expression-tokenizer.utils.js +123 -0
- package/dist/workflow/expression/expression.types.d.ts +33 -0
- package/dist/workflow/expression/expression.types.js +17 -0
- package/dist/workflow/expression/index.d.ts +10 -0
- package/dist/workflow/expression/index.js +40 -0
- package/dist/workflow/expression/workflow-resolver.d.ts +9 -0
- package/dist/workflow/expression/workflow-resolver.js +102 -0
- package/dist/workflow/expressions/functions/array.d.ts +2 -0
- package/dist/workflow/expressions/functions/array.js +252 -0
- package/dist/workflow/expressions/functions/crypto.d.ts +2 -0
- package/dist/workflow/expressions/functions/crypto.js +101 -0
- package/dist/workflow/expressions/functions/datetime.d.ts +2 -0
- package/dist/workflow/expressions/functions/datetime.js +256 -0
- package/dist/workflow/expressions/functions/index.d.ts +7 -0
- package/dist/workflow/expressions/functions/index.js +46 -0
- package/dist/workflow/expressions/functions/math.d.ts +2 -0
- package/dist/workflow/expressions/functions/math.js +174 -0
- package/dist/workflow/expressions/functions/string.d.ts +2 -0
- package/dist/workflow/expressions/functions/string.js +301 -0
- package/dist/workflow/expressions/functions/utility.d.ts +2 -0
- package/dist/workflow/expressions/functions/utility.js +230 -0
- package/dist/workflow/expressions/helpers.d.ts +26 -0
- package/dist/workflow/expressions/helpers.js +132 -0
- package/dist/workflow/expressions/index.d.ts +15 -0
- package/dist/workflow/expressions/index.js +61 -0
- package/dist/workflow/expressions/parser.d.ts +8 -0
- package/dist/workflow/expressions/parser.js +436 -0
- package/dist/workflow/expressions/pipes/array-pipes.d.ts +2 -0
- package/dist/workflow/expressions/pipes/array-pipes.js +248 -0
- package/dist/workflow/expressions/pipes/index.d.ts +8 -0
- package/dist/workflow/expressions/pipes/index.js +40 -0
- package/dist/workflow/expressions/pipes/object-pipes.d.ts +2 -0
- package/dist/workflow/expressions/pipes/object-pipes.js +243 -0
- package/dist/workflow/expressions/pipes/string-pipes.d.ts +9 -0
- package/dist/workflow/expressions/pipes/string-pipes.js +178 -0
- package/dist/workflow/expressions/resolver.d.ts +8 -0
- package/dist/workflow/expressions/resolver.js +263 -0
- package/dist/workflow/expressions/types.d.ts +144 -0
- package/dist/workflow/expressions/types.js +33 -0
- package/dist/workflow/index.d.ts +1 -0
- package/dist/workflow/index.js +17 -0
- package/package.json +1 -1
- package/dist/api/domain-verification.admin.api.d.ts +0 -4
- package/dist/api/domain-verification.admin.api.js +0 -10
- package/dist/api/domain-verification.api.d.ts +0 -7
- package/dist/api/domain-verification.api.js +0 -28
- package/dist/api/workflow.api.d.ts +0 -26
- package/dist/api/workflow.api.js +0 -60
- package/dist/types/dto/domain-verification.dto.d.ts +0 -19
- package/dist/types/interface/api/bodies/domain-verification.body.d.ts +0 -7
- package/dist/types/interface/api/bodies/domain-verification.body.js +0 -2
- package/dist/types/interface/api/params/domain-verification.params.d.ts +0 -18
- package/dist/types/interface/api/params/domain-verification.params.js +0 -2
- package/dist/types/interface/api/requests/domain-verification.admin.request.d.ts +0 -5
- package/dist/types/interface/api/requests/domain-verification.admin.request.js +0 -2
- package/dist/types/interface/api/requests/domain-verification.request.d.ts +0 -29
- package/dist/types/interface/api/requests/domain-verification.request.js +0 -2
- package/dist/types/interface/api/requests/workflow.request.d.ts +0 -119
- package/dist/types/interface/api/requests/workflow.request.js +0 -2
- package/dist/types/interface/api/responses/domain-verification.admin.response.d.ts +0 -6
- package/dist/types/interface/api/responses/domain-verification.admin.response.js +0 -2
- package/dist/types/interface/api/responses/domain-verification.response.d.ts +0 -29
- package/dist/types/interface/api/responses/domain-verification.response.js +0 -2
- package/dist/types/interface/api/responses/project-domain-verification.response.d.ts +0 -55
- package/dist/types/interface/api/responses/project-domain-verification.response.js +0 -2
- package/dist/types/interface/api/responses/workflow.response.d.ts +0 -124
- package/dist/types/interface/api/responses/workflow.response.js +0 -2
- package/dist/types/interface/models/domain-verification.model.d.ts +0 -42
- package/dist/types/interface/models/domain-verification.model.js +0 -14
- package/dist/types/interface/models/project-domain-verification.model.d.ts +0 -27
- package/dist/types/interface/models/project-domain-verification.model.js +0 -15
- package/dist/types/interface/models/workflow-execution-step.model.d.ts +0 -59
- package/dist/types/interface/models/workflow-execution-step.model.js +0 -12
- package/dist/types/interface/models/workflow-execution.model.d.ts +0 -78
- package/dist/types/interface/models/workflow-execution.model.js +0 -13
- package/dist/types/interface/models/workflow-step.model.d.ts +0 -106
- package/dist/types/interface/models/workflow-step.model.js +0 -44
- package/dist/types/interface/models/workflow-template.model.d.ts +0 -41
- package/dist/types/interface/models/workflow-template.model.js +0 -2
- package/dist/types/interface/models/workflow.model.d.ts +0 -72
- package/dist/types/interface/models/workflow.model.js +0 -23
- /package/dist/{types/dto/domain-verification.dto.js → expressions/types.js} +0 -0
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteDomainVerification = exports.regenerateDomainVerification = exports.verifyDomainVerification = exports.getDomainVerification = exports.listDomainVerification = exports.createDomainVerification = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const createDomainVerification = async (params, body) => {
|
|
6
|
-
return (await __1.AbyssCore.axios.post(`project/${params.projectId}/domain-verification`, body)).data;
|
|
7
|
-
};
|
|
8
|
-
exports.createDomainVerification = createDomainVerification;
|
|
9
|
-
const listDomainVerification = async (params) => {
|
|
10
|
-
return (await __1.AbyssCore.axios.get(`project/${params.projectId}/domain-verification`)).data;
|
|
11
|
-
};
|
|
12
|
-
exports.listDomainVerification = listDomainVerification;
|
|
13
|
-
const getDomainVerification = async (params) => {
|
|
14
|
-
return (await __1.AbyssCore.axios.get(`project/${params.projectId}/domain-verification/${params.domainVerificationId}`)).data;
|
|
15
|
-
};
|
|
16
|
-
exports.getDomainVerification = getDomainVerification;
|
|
17
|
-
const verifyDomainVerification = async (params, body) => {
|
|
18
|
-
return (await __1.AbyssCore.axios.post(`project/${params.projectId}/domain-verification/${params.domainVerificationId}/verify`, body)).data;
|
|
19
|
-
};
|
|
20
|
-
exports.verifyDomainVerification = verifyDomainVerification;
|
|
21
|
-
const regenerateDomainVerification = async (params) => {
|
|
22
|
-
return (await __1.AbyssCore.axios.post(`project/${params.projectId}/domain-verification/${params.domainVerificationId}/regenerate`)).data;
|
|
23
|
-
};
|
|
24
|
-
exports.regenerateDomainVerification = regenerateDomainVerification;
|
|
25
|
-
const deleteDomainVerification = async (params) => {
|
|
26
|
-
return (await __1.AbyssCore.axios.delete(`project/${params.projectId}/domain-verification/${params.domainVerificationId}`)).data;
|
|
27
|
-
};
|
|
28
|
-
exports.deleteDomainVerification = deleteDomainVerification;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ICreateWorkflowRequest, ICreateWorkflowResponse, IPaginateWorkflowsRequest, IPaginateWorkflowsResponse, IGetWorkflowParams, IGetWorkflowResponse, IUpdateWorkflowRequest, IUpdateWorkflowResponse, IUpdateWorkflowStatusRequest, IDeleteWorkflowResponse, ICreateWorkflowStepRequest, ICreateWorkflowStepResponse, IUpdateWorkflowStepRequest, IUpdateWorkflowStepResponse, IListWorkflowStepsResponse, IDeleteWorkflowStepResponse, IPaginateWorkflowExecutionsRequest, IPaginateWorkflowExecutionsResponse, IGetWorkflowExecutionParams, IGetWorkflowExecutionResponse, IGetWorkflowExecutionStatsResponse, ICancelWorkflowExecutionResponse } from '../types';
|
|
2
|
-
export declare const createWorkflow: (params: {
|
|
3
|
-
projectId: string;
|
|
4
|
-
}, body: ICreateWorkflowRequest) => Promise<ICreateWorkflowResponse>;
|
|
5
|
-
export declare const paginateWorkflows: (params: {
|
|
6
|
-
projectId: string;
|
|
7
|
-
}, query?: IPaginateWorkflowsRequest) => Promise<IPaginateWorkflowsResponse>;
|
|
8
|
-
export declare const getWorkflow: (params: IGetWorkflowParams) => Promise<IGetWorkflowResponse>;
|
|
9
|
-
export declare const updateWorkflow: (params: IGetWorkflowParams, body: IUpdateWorkflowRequest) => Promise<IUpdateWorkflowResponse>;
|
|
10
|
-
export declare const updateWorkflowStatus: (params: IGetWorkflowParams, body: IUpdateWorkflowStatusRequest) => Promise<IUpdateWorkflowResponse>;
|
|
11
|
-
export declare const deleteWorkflow: (params: IGetWorkflowParams) => Promise<IDeleteWorkflowResponse>;
|
|
12
|
-
export declare const createWorkflowStep: (params: IGetWorkflowParams, body: ICreateWorkflowStepRequest) => Promise<ICreateWorkflowStepResponse>;
|
|
13
|
-
export declare const listWorkflowSteps: (params: IGetWorkflowParams) => Promise<IListWorkflowStepsResponse>;
|
|
14
|
-
export declare const updateWorkflowStep: (params: IGetWorkflowParams & {
|
|
15
|
-
stepId: string;
|
|
16
|
-
}, body: IUpdateWorkflowStepRequest) => Promise<IUpdateWorkflowStepResponse>;
|
|
17
|
-
export declare const deleteWorkflowStep: (params: IGetWorkflowParams & {
|
|
18
|
-
stepId: string;
|
|
19
|
-
}) => Promise<IDeleteWorkflowStepResponse>;
|
|
20
|
-
export declare const paginateWorkflowExecutions: (params: IGetWorkflowParams, query?: IPaginateWorkflowExecutionsRequest) => Promise<IPaginateWorkflowExecutionsResponse>;
|
|
21
|
-
export declare const getWorkflowExecution: (params: IGetWorkflowExecutionParams) => Promise<IGetWorkflowExecutionResponse>;
|
|
22
|
-
export declare const getWorkflowExecutionStats: (params: IGetWorkflowParams, query?: {
|
|
23
|
-
startDate?: string;
|
|
24
|
-
endDate?: string;
|
|
25
|
-
}) => Promise<IGetWorkflowExecutionStatsResponse>;
|
|
26
|
-
export declare const cancelWorkflowExecution: (params: IGetWorkflowExecutionParams) => Promise<ICancelWorkflowExecutionResponse>;
|
package/dist/api/workflow.api.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.cancelWorkflowExecution = exports.getWorkflowExecutionStats = exports.getWorkflowExecution = exports.paginateWorkflowExecutions = exports.deleteWorkflowStep = exports.updateWorkflowStep = exports.listWorkflowSteps = exports.createWorkflowStep = exports.deleteWorkflow = exports.updateWorkflowStatus = exports.updateWorkflow = exports.getWorkflow = exports.paginateWorkflows = exports.createWorkflow = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const createWorkflow = async (params, body) => {
|
|
6
|
-
return (await __1.AbyssCore.axios.post(`project-workflow/${params.projectId}`, body)).data;
|
|
7
|
-
};
|
|
8
|
-
exports.createWorkflow = createWorkflow;
|
|
9
|
-
const paginateWorkflows = async (params, query) => {
|
|
10
|
-
return (await __1.AbyssCore.axios.get(`project-workflow/${params.projectId}`, { params: query })).data;
|
|
11
|
-
};
|
|
12
|
-
exports.paginateWorkflows = paginateWorkflows;
|
|
13
|
-
const getWorkflow = async (params) => {
|
|
14
|
-
return (await __1.AbyssCore.axios.get(`project-workflow/${params.projectId}/${params.workflowId}`)).data;
|
|
15
|
-
};
|
|
16
|
-
exports.getWorkflow = getWorkflow;
|
|
17
|
-
const updateWorkflow = async (params, body) => {
|
|
18
|
-
return (await __1.AbyssCore.axios.put(`project-workflow/${params.projectId}/${params.workflowId}`, body)).data;
|
|
19
|
-
};
|
|
20
|
-
exports.updateWorkflow = updateWorkflow;
|
|
21
|
-
const updateWorkflowStatus = async (params, body) => {
|
|
22
|
-
return (await __1.AbyssCore.axios.put(`project-workflow/${params.projectId}/${params.workflowId}/status`, body)).data;
|
|
23
|
-
};
|
|
24
|
-
exports.updateWorkflowStatus = updateWorkflowStatus;
|
|
25
|
-
const deleteWorkflow = async (params) => {
|
|
26
|
-
return (await __1.AbyssCore.axios.delete(`project-workflow/${params.projectId}/${params.workflowId}`)).data;
|
|
27
|
-
};
|
|
28
|
-
exports.deleteWorkflow = deleteWorkflow;
|
|
29
|
-
const createWorkflowStep = async (params, body) => {
|
|
30
|
-
return (await __1.AbyssCore.axios.post(`project-workflow/${params.projectId}/${params.workflowId}/step`, body)).data;
|
|
31
|
-
};
|
|
32
|
-
exports.createWorkflowStep = createWorkflowStep;
|
|
33
|
-
const listWorkflowSteps = async (params) => {
|
|
34
|
-
return (await __1.AbyssCore.axios.get(`project-workflow/${params.projectId}/${params.workflowId}/step`)).data;
|
|
35
|
-
};
|
|
36
|
-
exports.listWorkflowSteps = listWorkflowSteps;
|
|
37
|
-
const updateWorkflowStep = async (params, body) => {
|
|
38
|
-
return (await __1.AbyssCore.axios.put(`project-workflow/${params.projectId}/${params.workflowId}/step/${params.stepId}`, body)).data;
|
|
39
|
-
};
|
|
40
|
-
exports.updateWorkflowStep = updateWorkflowStep;
|
|
41
|
-
const deleteWorkflowStep = async (params) => {
|
|
42
|
-
return (await __1.AbyssCore.axios.delete(`project-workflow/${params.projectId}/${params.workflowId}/step/${params.stepId}`)).data;
|
|
43
|
-
};
|
|
44
|
-
exports.deleteWorkflowStep = deleteWorkflowStep;
|
|
45
|
-
const paginateWorkflowExecutions = async (params, query) => {
|
|
46
|
-
return (await __1.AbyssCore.axios.get(`project-workflow/${params.projectId}/${params.workflowId}/execution`, { params: query })).data;
|
|
47
|
-
};
|
|
48
|
-
exports.paginateWorkflowExecutions = paginateWorkflowExecutions;
|
|
49
|
-
const getWorkflowExecution = async (params) => {
|
|
50
|
-
return (await __1.AbyssCore.axios.get(`project-workflow/${params.projectId}/${params.workflowId}/execution/${params.executionId}`)).data;
|
|
51
|
-
};
|
|
52
|
-
exports.getWorkflowExecution = getWorkflowExecution;
|
|
53
|
-
const getWorkflowExecutionStats = async (params, query) => {
|
|
54
|
-
return (await __1.AbyssCore.axios.get(`project-workflow/${params.projectId}/${params.workflowId}/execution/stats`, { params: query })).data;
|
|
55
|
-
};
|
|
56
|
-
exports.getWorkflowExecutionStats = getWorkflowExecutionStats;
|
|
57
|
-
const cancelWorkflowExecution = async (params) => {
|
|
58
|
-
return (await __1.AbyssCore.axios.post(`project-workflow/${params.projectId}/${params.workflowId}/execution/${params.executionId}/cancel`)).data;
|
|
59
|
-
};
|
|
60
|
-
exports.cancelWorkflowExecution = cancelWorkflowExecution;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { VerificationMethod, VerificationStatus } from '../interface/models/domain-verification.model';
|
|
2
|
-
export interface DomainVerificationResult {
|
|
3
|
-
success: boolean;
|
|
4
|
-
status: VerificationStatus;
|
|
5
|
-
method?: VerificationMethod;
|
|
6
|
-
message?: string;
|
|
7
|
-
error?: string;
|
|
8
|
-
verifiedAt?: Date;
|
|
9
|
-
details?: Record<string, any>;
|
|
10
|
-
}
|
|
11
|
-
export interface DnsVerificationResult extends DomainVerificationResult {
|
|
12
|
-
txtRecords?: string[];
|
|
13
|
-
foundToken?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface HttpVerificationResult extends DomainVerificationResult {
|
|
16
|
-
fileContent?: string;
|
|
17
|
-
statusCode?: number;
|
|
18
|
-
redirectCount?: number;
|
|
19
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface IInitiateVerificationDomainVerificationParams {
|
|
2
|
-
projectId: string;
|
|
3
|
-
}
|
|
4
|
-
export interface IGetDomainVerificationParams {
|
|
5
|
-
projectId: string;
|
|
6
|
-
domainVerificationId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IVerifyDomainVerificationParams {
|
|
9
|
-
projectId: string;
|
|
10
|
-
domainVerificationId: string;
|
|
11
|
-
}
|
|
12
|
-
export interface IDeleteDomainVerificationParams {
|
|
13
|
-
projectId: string;
|
|
14
|
-
domainVerificationId: string;
|
|
15
|
-
}
|
|
16
|
-
export interface IPaginateDomainVerificationParams {
|
|
17
|
-
projectId: string;
|
|
18
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { VerificationMethod } from '../../models/domain-verification.model';
|
|
2
|
-
export interface ICreateDomainVerificationParams {
|
|
3
|
-
projectId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ICreateDomainVerificationBody {
|
|
6
|
-
domain: string;
|
|
7
|
-
}
|
|
8
|
-
export interface IListDomainVerificationParams {
|
|
9
|
-
projectId: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IGetDomainVerificationParams {
|
|
12
|
-
projectId: string;
|
|
13
|
-
domainVerificationId: string;
|
|
14
|
-
}
|
|
15
|
-
export interface IVerifyDomainVerificationParams {
|
|
16
|
-
projectId: string;
|
|
17
|
-
domainVerificationId: string;
|
|
18
|
-
}
|
|
19
|
-
export interface IVerifyDomainVerificationBody {
|
|
20
|
-
method: VerificationMethod;
|
|
21
|
-
}
|
|
22
|
-
export interface IRegenerateDomainVerificationParams {
|
|
23
|
-
projectId: string;
|
|
24
|
-
domainVerificationId: string;
|
|
25
|
-
}
|
|
26
|
-
export interface IDeleteDomainVerificationParams {
|
|
27
|
-
projectId: string;
|
|
28
|
-
domainVerificationId: string;
|
|
29
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { WorkflowMode, WorkflowStatus, WorkflowTemplate, IWorkflowTriggerConfig, IWorkflowSettings, IWorkflowTriggerData } from '../../models/workflow.model';
|
|
2
|
-
import { IWorkflowStepConfig } from '../../models/workflow-step.model';
|
|
3
|
-
import { WorkflowExecutionStatus } from '../../models/workflow-execution.model';
|
|
4
|
-
export interface ICreateWorkflowRequest {
|
|
5
|
-
name: string;
|
|
6
|
-
description?: string | null;
|
|
7
|
-
mode?: WorkflowMode;
|
|
8
|
-
template?: WorkflowTemplate | null;
|
|
9
|
-
trigger: IWorkflowTriggerConfig;
|
|
10
|
-
settings?: IWorkflowSettings;
|
|
11
|
-
}
|
|
12
|
-
export interface IGetWorkflowParams {
|
|
13
|
-
projectId: string;
|
|
14
|
-
workflowId: string;
|
|
15
|
-
}
|
|
16
|
-
export interface IPaginateWorkflowsRequest {
|
|
17
|
-
page?: number;
|
|
18
|
-
limit?: number;
|
|
19
|
-
status?: WorkflowStatus;
|
|
20
|
-
mode?: WorkflowMode;
|
|
21
|
-
search?: string;
|
|
22
|
-
orderBy?: 'name' | 'createdAt' | 'updatedAt' | 'status';
|
|
23
|
-
orderDirection?: 'ASC' | 'DESC';
|
|
24
|
-
}
|
|
25
|
-
export interface IUpdateWorkflowRequest {
|
|
26
|
-
name?: string;
|
|
27
|
-
description?: string | null;
|
|
28
|
-
mode?: WorkflowMode;
|
|
29
|
-
trigger?: IWorkflowTriggerConfig;
|
|
30
|
-
settings?: IWorkflowSettings;
|
|
31
|
-
}
|
|
32
|
-
export interface IUpdateWorkflowStatusRequest {
|
|
33
|
-
status: WorkflowStatus;
|
|
34
|
-
}
|
|
35
|
-
export interface ICreateWorkflowStepRequest {
|
|
36
|
-
name: string;
|
|
37
|
-
description?: string | null;
|
|
38
|
-
order?: number;
|
|
39
|
-
config: IWorkflowStepConfig;
|
|
40
|
-
nextStepId?: string | null;
|
|
41
|
-
isEnabled?: boolean;
|
|
42
|
-
}
|
|
43
|
-
export interface IGetWorkflowStepParams {
|
|
44
|
-
projectId: string;
|
|
45
|
-
workflowId: string;
|
|
46
|
-
stepId: string;
|
|
47
|
-
}
|
|
48
|
-
export interface IUpdateWorkflowStepRequest {
|
|
49
|
-
name?: string;
|
|
50
|
-
description?: string | null;
|
|
51
|
-
order?: number;
|
|
52
|
-
config?: IWorkflowStepConfig;
|
|
53
|
-
nextStepId?: string | null;
|
|
54
|
-
isEnabled?: boolean;
|
|
55
|
-
}
|
|
56
|
-
export interface IReorderWorkflowStepsRequest {
|
|
57
|
-
stepOrders: Array<{
|
|
58
|
-
stepId: string;
|
|
59
|
-
order: number;
|
|
60
|
-
}>;
|
|
61
|
-
}
|
|
62
|
-
export interface IGetWorkflowExecutionParams {
|
|
63
|
-
projectId: string;
|
|
64
|
-
workflowId: string;
|
|
65
|
-
executionId: string;
|
|
66
|
-
}
|
|
67
|
-
export interface IPaginateWorkflowExecutionsRequest {
|
|
68
|
-
page?: number;
|
|
69
|
-
limit?: number;
|
|
70
|
-
status?: WorkflowExecutionStatus;
|
|
71
|
-
startDate?: string;
|
|
72
|
-
endDate?: string;
|
|
73
|
-
orderBy?: 'startedAt' | 'completedAt' | 'status';
|
|
74
|
-
orderDirection?: 'ASC' | 'DESC';
|
|
75
|
-
}
|
|
76
|
-
export interface IGetWorkflowStatsRequest {
|
|
77
|
-
period?: 'hour' | 'day' | 'week' | 'month';
|
|
78
|
-
}
|
|
79
|
-
export interface ICreateWorkflowFromTemplateRequest {
|
|
80
|
-
template: WorkflowTemplate;
|
|
81
|
-
name: string;
|
|
82
|
-
description?: string;
|
|
83
|
-
variables?: Record<string, unknown>;
|
|
84
|
-
}
|
|
85
|
-
export interface ITestWorkflowRequest {
|
|
86
|
-
triggerData: Record<string, unknown>;
|
|
87
|
-
dryRun?: boolean;
|
|
88
|
-
}
|
|
89
|
-
export interface IPaginateWorkflowsAdminQuery {
|
|
90
|
-
projectId: string;
|
|
91
|
-
page?: number;
|
|
92
|
-
limit?: number;
|
|
93
|
-
status?: WorkflowStatus;
|
|
94
|
-
mode?: WorkflowMode;
|
|
95
|
-
search?: string;
|
|
96
|
-
}
|
|
97
|
-
export interface IGetWorkflowAdminParams {
|
|
98
|
-
workflowId: string;
|
|
99
|
-
}
|
|
100
|
-
export interface IUpdateWorkflowStatusAdminBody {
|
|
101
|
-
status: WorkflowStatus;
|
|
102
|
-
}
|
|
103
|
-
export interface IPaginateWorkflowExecutionsAdminQuery {
|
|
104
|
-
projectId: string;
|
|
105
|
-
page?: number;
|
|
106
|
-
limit?: number;
|
|
107
|
-
status?: WorkflowExecutionStatus;
|
|
108
|
-
startDate?: string;
|
|
109
|
-
endDate?: string;
|
|
110
|
-
}
|
|
111
|
-
export interface ICancelWorkflowExecutionAdminParams {
|
|
112
|
-
executionId: string;
|
|
113
|
-
}
|
|
114
|
-
export interface ITriggerWorkflowAdminParams {
|
|
115
|
-
workflowId: string;
|
|
116
|
-
}
|
|
117
|
-
export interface ITriggerWorkflowAdminBody {
|
|
118
|
-
triggerData: IWorkflowTriggerData;
|
|
119
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { IDomainVerification, IDomainVerificationInstructions, IDomainVerificationResult } from '../../models/domain-verification.model';
|
|
2
|
-
import { IResponse } from '../type-message/response';
|
|
3
|
-
export interface ICreateDomainVerificationData {
|
|
4
|
-
domainVerification: IDomainVerification;
|
|
5
|
-
instructions: IDomainVerificationInstructions;
|
|
6
|
-
}
|
|
7
|
-
export type ICreateDomainVerificationResponse = IResponse<ICreateDomainVerificationData>;
|
|
8
|
-
export interface IListDomainVerificationData {
|
|
9
|
-
domainVerifications: IDomainVerification[];
|
|
10
|
-
}
|
|
11
|
-
export type IListDomainVerificationResponse = IResponse<IListDomainVerificationData>;
|
|
12
|
-
export interface IGetDomainVerificationData {
|
|
13
|
-
domainVerification: IDomainVerification;
|
|
14
|
-
instructions: IDomainVerificationInstructions;
|
|
15
|
-
}
|
|
16
|
-
export type IGetDomainVerificationResponse = IResponse<IGetDomainVerificationData>;
|
|
17
|
-
export interface IVerifyDomainVerificationData {
|
|
18
|
-
domainVerification: IDomainVerification;
|
|
19
|
-
result: IDomainVerificationResult;
|
|
20
|
-
}
|
|
21
|
-
export type IVerifyDomainVerificationResponse = IResponse<IVerifyDomainVerificationData>;
|
|
22
|
-
export interface IRegenerateDomainVerificationData {
|
|
23
|
-
domainVerification: IDomainVerification;
|
|
24
|
-
instructions: IDomainVerificationInstructions;
|
|
25
|
-
}
|
|
26
|
-
export type IRegenerateDomainVerificationResponse = IResponse<IRegenerateDomainVerificationData>;
|
|
27
|
-
export interface IDeleteDomainVerificationData {
|
|
28
|
-
}
|
|
29
|
-
export type IDeleteDomainVerificationResponse = IResponse<IDeleteDomainVerificationData>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { IProjectDomainVerification } from '../../models/project-domain-verification.model';
|
|
2
|
-
export interface IInitiateVerificationProjectDomainVerificationData {
|
|
3
|
-
domainVerification: IProjectDomainVerification;
|
|
4
|
-
instructions: {
|
|
5
|
-
dns?: {
|
|
6
|
-
recordType: string;
|
|
7
|
-
host: string;
|
|
8
|
-
value: string;
|
|
9
|
-
};
|
|
10
|
-
http?: {
|
|
11
|
-
filePath: string;
|
|
12
|
-
fileContent: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export interface IInitiateVerificationProjectDomainVerificationResponse {
|
|
17
|
-
data?: IInitiateVerificationProjectDomainVerificationData;
|
|
18
|
-
error?: any;
|
|
19
|
-
}
|
|
20
|
-
export interface IVerifyProjectDomainVerificationData {
|
|
21
|
-
domainVerification: IProjectDomainVerification;
|
|
22
|
-
verified: boolean;
|
|
23
|
-
message: string;
|
|
24
|
-
}
|
|
25
|
-
export interface IVerifyProjectDomainVerificationResponse {
|
|
26
|
-
data?: IVerifyProjectDomainVerificationData;
|
|
27
|
-
error?: any;
|
|
28
|
-
}
|
|
29
|
-
export interface IGetProjectDomainVerificationData {
|
|
30
|
-
domainVerification: IProjectDomainVerification;
|
|
31
|
-
}
|
|
32
|
-
export interface IGetProjectDomainVerificationResponse {
|
|
33
|
-
data?: IGetProjectDomainVerificationData;
|
|
34
|
-
error?: any;
|
|
35
|
-
}
|
|
36
|
-
export interface IDeleteProjectDomainVerificationData {
|
|
37
|
-
success: boolean;
|
|
38
|
-
}
|
|
39
|
-
export interface IDeleteProjectDomainVerificationResponse {
|
|
40
|
-
data?: IDeleteProjectDomainVerificationData;
|
|
41
|
-
error?: any;
|
|
42
|
-
}
|
|
43
|
-
export interface IPaginateProjectDomainVerificationData {
|
|
44
|
-
domainVerifications: IProjectDomainVerification[];
|
|
45
|
-
pagination: {
|
|
46
|
-
total: number;
|
|
47
|
-
page: number;
|
|
48
|
-
limit: number;
|
|
49
|
-
totalPages: number;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export interface IPaginateProjectDomainVerificationResponse {
|
|
53
|
-
data?: IPaginateProjectDomainVerificationData;
|
|
54
|
-
error?: any;
|
|
55
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { IWorkflow } from '../../models/workflow.model';
|
|
2
|
-
import { IWorkflowStep } from '../../models/workflow-step.model';
|
|
3
|
-
import { IWorkflowExecution } from '../../models/workflow-execution.model';
|
|
4
|
-
import { IWorkflowExecutionStep } from '../../models/workflow-execution-step.model';
|
|
5
|
-
import { IWorkflowTemplateDefinition } from '../../models/workflow-template.model';
|
|
6
|
-
import { IResponse } from '../type-message/response';
|
|
7
|
-
export interface ICreateWorkflowData {
|
|
8
|
-
workflow: IWorkflow;
|
|
9
|
-
}
|
|
10
|
-
export type ICreateWorkflowResponse = IResponse<ICreateWorkflowData>;
|
|
11
|
-
export interface IPaginateWorkflowsData {
|
|
12
|
-
workflows: IWorkflow[];
|
|
13
|
-
total: number;
|
|
14
|
-
page: number;
|
|
15
|
-
limit: number;
|
|
16
|
-
}
|
|
17
|
-
export type IPaginateWorkflowsResponse = IResponse<IPaginateWorkflowsData>;
|
|
18
|
-
export interface IGetWorkflowData {
|
|
19
|
-
workflow: IWorkflow;
|
|
20
|
-
}
|
|
21
|
-
export type IGetWorkflowResponse = IResponse<IGetWorkflowData>;
|
|
22
|
-
export interface IUpdateWorkflowData {
|
|
23
|
-
workflow: IWorkflow;
|
|
24
|
-
}
|
|
25
|
-
export type IUpdateWorkflowResponse = IResponse<IUpdateWorkflowData>;
|
|
26
|
-
export interface IDeleteWorkflowData {
|
|
27
|
-
}
|
|
28
|
-
export type IDeleteWorkflowResponse = IResponse<IDeleteWorkflowData>;
|
|
29
|
-
export interface ICreateWorkflowStepData {
|
|
30
|
-
step: IWorkflowStep;
|
|
31
|
-
}
|
|
32
|
-
export type ICreateWorkflowStepResponse = IResponse<ICreateWorkflowStepData>;
|
|
33
|
-
export interface IListWorkflowStepsData {
|
|
34
|
-
steps: IWorkflowStep[];
|
|
35
|
-
}
|
|
36
|
-
export type IListWorkflowStepsResponse = IResponse<IListWorkflowStepsData>;
|
|
37
|
-
export interface IGetWorkflowStepData {
|
|
38
|
-
step: IWorkflowStep;
|
|
39
|
-
}
|
|
40
|
-
export type IGetWorkflowStepResponse = IResponse<IGetWorkflowStepData>;
|
|
41
|
-
export interface IUpdateWorkflowStepData {
|
|
42
|
-
step: IWorkflowStep;
|
|
43
|
-
}
|
|
44
|
-
export type IUpdateWorkflowStepResponse = IResponse<IUpdateWorkflowStepData>;
|
|
45
|
-
export interface IDeleteWorkflowStepData {
|
|
46
|
-
}
|
|
47
|
-
export type IDeleteWorkflowStepResponse = IResponse<IDeleteWorkflowStepData>;
|
|
48
|
-
export interface IReorderWorkflowStepsData {
|
|
49
|
-
steps: IWorkflowStep[];
|
|
50
|
-
}
|
|
51
|
-
export type IReorderWorkflowStepsResponse = IResponse<IReorderWorkflowStepsData>;
|
|
52
|
-
export interface IPaginateWorkflowExecutionsData {
|
|
53
|
-
executions: IWorkflowExecution[];
|
|
54
|
-
total: number;
|
|
55
|
-
page: number;
|
|
56
|
-
limit: number;
|
|
57
|
-
}
|
|
58
|
-
export type IPaginateWorkflowExecutionsResponse = IResponse<IPaginateWorkflowExecutionsData>;
|
|
59
|
-
export interface IGetWorkflowExecutionData {
|
|
60
|
-
execution: IWorkflowExecution;
|
|
61
|
-
}
|
|
62
|
-
export type IGetWorkflowExecutionResponse = IResponse<IGetWorkflowExecutionData>;
|
|
63
|
-
export interface ICancelWorkflowExecutionData {
|
|
64
|
-
execution: IWorkflowExecution;
|
|
65
|
-
}
|
|
66
|
-
export type ICancelWorkflowExecutionResponse = IResponse<ICancelWorkflowExecutionData>;
|
|
67
|
-
export interface IGetWorkflowExecutionStatsData {
|
|
68
|
-
stats: {
|
|
69
|
-
totalExecutions: number;
|
|
70
|
-
successfulExecutions: number;
|
|
71
|
-
failedExecutions: number;
|
|
72
|
-
skippedExecutions: number;
|
|
73
|
-
averageDurationMs: number;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
export type IGetWorkflowExecutionStatsResponse = IResponse<IGetWorkflowExecutionStatsData>;
|
|
77
|
-
export interface IListWorkflowTemplatesData {
|
|
78
|
-
templates: IWorkflowTemplateDefinition[];
|
|
79
|
-
}
|
|
80
|
-
export type IListWorkflowTemplatesResponse = IResponse<IListWorkflowTemplatesData>;
|
|
81
|
-
export interface ICreateWorkflowFromTemplateData {
|
|
82
|
-
workflow: IWorkflow;
|
|
83
|
-
steps: IWorkflowStep[];
|
|
84
|
-
}
|
|
85
|
-
export type ICreateWorkflowFromTemplateResponse = IResponse<ICreateWorkflowFromTemplateData>;
|
|
86
|
-
export interface ITestWorkflowData {
|
|
87
|
-
execution: IWorkflowExecution;
|
|
88
|
-
stepExecutions: IWorkflowExecutionStep[];
|
|
89
|
-
dryRun: boolean;
|
|
90
|
-
}
|
|
91
|
-
export type ITestWorkflowResponse = IResponse<ITestWorkflowData>;
|
|
92
|
-
export interface IPaginateWorkflowsAdminData {
|
|
93
|
-
workflows: IWorkflow[];
|
|
94
|
-
total: number;
|
|
95
|
-
page: number;
|
|
96
|
-
limit: number;
|
|
97
|
-
}
|
|
98
|
-
export type IPaginateWorkflowsAdminResponse = IResponse<IPaginateWorkflowsAdminData>;
|
|
99
|
-
export interface IGetWorkflowAdminData {
|
|
100
|
-
workflow: IWorkflow;
|
|
101
|
-
}
|
|
102
|
-
export type IGetWorkflowAdminResponse = IResponse<IGetWorkflowAdminData>;
|
|
103
|
-
export interface IUpdateWorkflowStatusAdminData {
|
|
104
|
-
workflow: IWorkflow;
|
|
105
|
-
}
|
|
106
|
-
export type IUpdateWorkflowStatusAdminResponse = IResponse<IUpdateWorkflowStatusAdminData>;
|
|
107
|
-
export interface IDeleteWorkflowAdminData {
|
|
108
|
-
}
|
|
109
|
-
export type IDeleteWorkflowAdminResponse = IResponse<IDeleteWorkflowAdminData>;
|
|
110
|
-
export interface IPaginateWorkflowExecutionsAdminData {
|
|
111
|
-
executions: IWorkflowExecution[];
|
|
112
|
-
total: number;
|
|
113
|
-
page: number;
|
|
114
|
-
limit: number;
|
|
115
|
-
}
|
|
116
|
-
export type IPaginateWorkflowExecutionsAdminResponse = IResponse<IPaginateWorkflowExecutionsAdminData>;
|
|
117
|
-
export interface ICancelWorkflowExecutionAdminData {
|
|
118
|
-
execution: IWorkflowExecution;
|
|
119
|
-
}
|
|
120
|
-
export type ICancelWorkflowExecutionAdminResponse = IResponse<ICancelWorkflowExecutionAdminData>;
|
|
121
|
-
export interface ITriggerWorkflowAdminData {
|
|
122
|
-
execution: IWorkflowExecution;
|
|
123
|
-
}
|
|
124
|
-
export type ITriggerWorkflowAdminResponse = IResponse<ITriggerWorkflowAdminData>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { IProject } from './project.model';
|
|
2
|
-
export declare enum VerificationMethod {
|
|
3
|
-
DNS_TXT = "DNS_TXT",
|
|
4
|
-
HTTP_FILE = "HTTP_FILE"
|
|
5
|
-
}
|
|
6
|
-
export declare enum VerificationStatus {
|
|
7
|
-
PENDING = "PENDING",
|
|
8
|
-
VERIFIED = "VERIFIED",
|
|
9
|
-
FAILED = "FAILED"
|
|
10
|
-
}
|
|
11
|
-
export interface IDomainVerification {
|
|
12
|
-
id: string;
|
|
13
|
-
projectId: string;
|
|
14
|
-
domain: string;
|
|
15
|
-
verificationToken: string;
|
|
16
|
-
status: VerificationStatus;
|
|
17
|
-
verificationMethod: VerificationMethod | null;
|
|
18
|
-
verifiedAt: Date | null;
|
|
19
|
-
lastCheckedAt: Date | null;
|
|
20
|
-
lastError: string | null;
|
|
21
|
-
retryCount: number;
|
|
22
|
-
nextRetryAt: Date | null;
|
|
23
|
-
createdAt: Date;
|
|
24
|
-
updatedAt: Date;
|
|
25
|
-
project?: IProject;
|
|
26
|
-
}
|
|
27
|
-
export interface IDomainVerificationInstructions {
|
|
28
|
-
dns: {
|
|
29
|
-
recordType: string;
|
|
30
|
-
host: string;
|
|
31
|
-
value: string;
|
|
32
|
-
};
|
|
33
|
-
http: {
|
|
34
|
-
url: string;
|
|
35
|
-
content: string;
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export interface IDomainVerificationResult {
|
|
39
|
-
success: boolean;
|
|
40
|
-
message: string;
|
|
41
|
-
error?: string;
|
|
42
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerificationStatus = exports.VerificationMethod = void 0;
|
|
4
|
-
var VerificationMethod;
|
|
5
|
-
(function (VerificationMethod) {
|
|
6
|
-
VerificationMethod["DNS_TXT"] = "DNS_TXT";
|
|
7
|
-
VerificationMethod["HTTP_FILE"] = "HTTP_FILE";
|
|
8
|
-
})(VerificationMethod || (exports.VerificationMethod = VerificationMethod = {}));
|
|
9
|
-
var VerificationStatus;
|
|
10
|
-
(function (VerificationStatus) {
|
|
11
|
-
VerificationStatus["PENDING"] = "PENDING";
|
|
12
|
-
VerificationStatus["VERIFIED"] = "VERIFIED";
|
|
13
|
-
VerificationStatus["FAILED"] = "FAILED";
|
|
14
|
-
})(VerificationStatus || (exports.VerificationStatus = VerificationStatus = {}));
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IProject } from './project.model';
|
|
2
|
-
export declare enum VerificationMethod {
|
|
3
|
-
DNS_TXT = "DNS_TXT",
|
|
4
|
-
HTTP_FILE = "HTTP_FILE"
|
|
5
|
-
}
|
|
6
|
-
export declare enum VerificationStatus {
|
|
7
|
-
PENDING = "PENDING",
|
|
8
|
-
VERIFIED = "VERIFIED",
|
|
9
|
-
FAILED = "FAILED",
|
|
10
|
-
EXPIRED = "EXPIRED"
|
|
11
|
-
}
|
|
12
|
-
export interface IProjectDomainVerification {
|
|
13
|
-
id?: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
domain: string;
|
|
16
|
-
verificationToken: string;
|
|
17
|
-
status: VerificationStatus;
|
|
18
|
-
verificationMethod: VerificationMethod | null;
|
|
19
|
-
verifiedAt: Date | null;
|
|
20
|
-
lastCheckedAt: Date | null;
|
|
21
|
-
lastError: string | null;
|
|
22
|
-
retryCount: number;
|
|
23
|
-
nextRetryAt: Date | null;
|
|
24
|
-
createdAt?: Date;
|
|
25
|
-
updatedAt?: Date;
|
|
26
|
-
project?: IProject;
|
|
27
|
-
}
|