@fluxo-dev/api-client-base 0.0.32 → 0.0.34
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/index.cjs.js +2364 -1073
- package/package.json +4 -3
- package/src/index.d.ts +1 -0
- package/src/lib/apps/models/flx-route.d.ts +0 -1
- package/src/lib/fluxo-client-interface.d.ts +2 -0
- package/src/lib/fluxo-client.d.ts +3 -0
- package/src/lib/ravify/index.d.ts +3 -0
- package/src/lib/ravify/models/index.d.ts +4 -0
- package/src/lib/ravify/models/ravify-global-state.d.ts +35 -0
- package/src/lib/ravify/models/ravify-instance-create-command.d.ts +9 -0
- package/src/lib/ravify/models/ravify-instance-update-command.d.ts +8 -0
- package/src/lib/ravify/models/ravify-instance.d.ts +17 -0
- package/src/lib/ravify/ravify-management.service.d.ts +9 -0
- package/src/lib/ravify/ravify.facade.d.ts +9 -0
- package/src/lib/ravify/v1/index.d.ts +2 -0
- package/src/lib/ravify/v1/models/index.d.ts +14 -0
- package/src/lib/ravify/v1/models/ravify-directory-create-v1.d.ts +3 -0
- package/src/lib/ravify/v1/models/ravify-directory-rename-v1.d.ts +3 -0
- package/src/lib/ravify/v1/models/ravify-directory-stats-v1.d.ts +18 -0
- package/src/lib/ravify/v1/models/ravify-domain-v1.d.ts +7 -0
- package/src/lib/ravify/v1/models/ravify-file-upload-v1.d.ts +3 -0
- package/src/lib/ravify/v1/models/ravify-file-v1.d.ts +8 -0
- package/src/lib/ravify/v1/models/ravify-fs-directory-v1.d.ts +8 -0
- package/src/lib/ravify/v1/models/ravify-job-create-v1.d.ts +7 -0
- package/src/lib/ravify/v1/models/ravify-job-history-v1.d.ts +6 -0
- package/src/lib/ravify/v1/models/ravify-job-state-v1.d.ts +7 -0
- package/src/lib/ravify/v1/models/ravify-job-update-execution-v1.d.ts +7 -0
- package/src/lib/ravify/v1/models/ravify-job-update-info-v1.d.ts +5 -0
- package/src/lib/ravify/v1/models/ravify-job-v1.d.ts +35 -0
- package/src/lib/ravify/v1/models/ravify-scope-create-v1.d.ts +6 -0
- package/src/lib/ravify/v1/models/ravify-scope-v1.d.ts +6 -0
- package/src/lib/ravify/v1/ravifyV1.service.d.ts +22 -0
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxo-dev/api-client-base",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@fluxo-dev/state": "0.0.
|
|
6
|
+
"@fluxo-dev/state": "0.0.34"
|
|
7
7
|
},
|
|
8
|
-
"main": "./index.cjs.js"
|
|
8
|
+
"main": "./index.cjs.js",
|
|
9
|
+
"types": "./index.cjs.d.ts"
|
|
9
10
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { KorebiFacade } from "./korebi/korebi-facade";
|
|
|
5
5
|
import { AppService, PrintingService, ReportingService, WorkflowService } from "@fluxo-dev/api-client-base";
|
|
6
6
|
import { FluxoClientConfiguration } from "@fluxo-dev/state";
|
|
7
7
|
import { CommunicationFacade } from "./communication";
|
|
8
|
+
import { RavifyFacade } from "./ravify/ravify.facade";
|
|
8
9
|
export interface FluxoClientInterface {
|
|
9
10
|
get clientConfig(): FluxoClientConfiguration;
|
|
10
11
|
get security(): SecurityFacade;
|
|
@@ -16,4 +17,5 @@ export interface FluxoClientInterface {
|
|
|
16
17
|
get printing(): PrintingService;
|
|
17
18
|
get workflow(): WorkflowService;
|
|
18
19
|
get communication(): CommunicationFacade;
|
|
20
|
+
get ravify(): RavifyFacade;
|
|
19
21
|
}
|
|
@@ -10,6 +10,7 @@ import { PrintingService } from "./printing";
|
|
|
10
10
|
import { WorkflowService } from "./workflow";
|
|
11
11
|
import { FluxoClientInterface } from "./fluxo-client-interface";
|
|
12
12
|
import { CommunicationFacade } from "./communication";
|
|
13
|
+
import { RavifyFacade } from "./ravify/ravify.facade";
|
|
13
14
|
export declare abstract class FluxoClientBase implements FluxoClientInterface {
|
|
14
15
|
get modules(): any[];
|
|
15
16
|
static get HttpClient(): HttpClient;
|
|
@@ -24,6 +25,7 @@ export declare abstract class FluxoClientBase implements FluxoClientInterface {
|
|
|
24
25
|
private _workflowService;
|
|
25
26
|
private _communicationFacade;
|
|
26
27
|
private _config;
|
|
28
|
+
private _ravify;
|
|
27
29
|
private _modules;
|
|
28
30
|
register(module: any): void;
|
|
29
31
|
protected abstract AddSetupConfiguration(config: FluxoClientConfiguration): void;
|
|
@@ -41,5 +43,6 @@ export declare abstract class FluxoClientBase implements FluxoClientInterface {
|
|
|
41
43
|
get reporting(): ReportingService;
|
|
42
44
|
get printing(): PrintingService;
|
|
43
45
|
get workflow(): WorkflowService;
|
|
46
|
+
get ravify(): RavifyFacade;
|
|
44
47
|
private getBearerToken;
|
|
45
48
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { RavifyInstanceVersion } from "./ravify-instance";
|
|
2
|
+
export interface RavifyGlobalState {
|
|
3
|
+
overview: RavifyGlobalStateOverview;
|
|
4
|
+
event: RavifyGlobalStateEvent;
|
|
5
|
+
isReachable: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface RavifyGlobalStateEvent {
|
|
8
|
+
resourceId: string;
|
|
9
|
+
resourceDescription: string;
|
|
10
|
+
type: number;
|
|
11
|
+
}
|
|
12
|
+
export interface RavifyGlobalStateOverview {
|
|
13
|
+
instanceId: string;
|
|
14
|
+
instanceDescription: string;
|
|
15
|
+
version: RavifyInstanceVersion;
|
|
16
|
+
domainId: string;
|
|
17
|
+
domainDescription: string;
|
|
18
|
+
instanceState: RavifyEventStateType;
|
|
19
|
+
scopes: RavifyGlobalStateOverviewScope[];
|
|
20
|
+
}
|
|
21
|
+
export interface RavifyGlobalStateOverviewScope {
|
|
22
|
+
id: string;
|
|
23
|
+
description: string;
|
|
24
|
+
state: RavifyEventStateType;
|
|
25
|
+
}
|
|
26
|
+
export declare enum RavifyEventStateType {
|
|
27
|
+
JobFree = 0,
|
|
28
|
+
JobWaiting = 1,
|
|
29
|
+
JobRunning = 2,
|
|
30
|
+
JobSuccess = 3,
|
|
31
|
+
JobError = 4,
|
|
32
|
+
JobCreated = 5,
|
|
33
|
+
JobUpdated = 6,
|
|
34
|
+
JobDeleted = 7
|
|
35
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface RavifyInstance {
|
|
2
|
+
id: string;
|
|
3
|
+
description: string;
|
|
4
|
+
protocol: RavifyInstanceProtocol;
|
|
5
|
+
host: string;
|
|
6
|
+
port: number;
|
|
7
|
+
apiKey: string;
|
|
8
|
+
version: RavifyInstanceVersion;
|
|
9
|
+
domainId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare enum RavifyInstanceProtocol {
|
|
12
|
+
Http = 1,
|
|
13
|
+
Https = 2
|
|
14
|
+
}
|
|
15
|
+
export declare enum RavifyInstanceVersion {
|
|
16
|
+
V1 = 1
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RavifyGlobalState, RavifyInstance, RavifyInstanceCreateCommand, RavifyInstanceUpdateCommand } from "./models";
|
|
2
|
+
export declare class RavifyManagementService {
|
|
3
|
+
constructor();
|
|
4
|
+
getInstances(): Promise<RavifyInstance[]>;
|
|
5
|
+
createInstance(command: RavifyInstanceCreateCommand): Promise<string>;
|
|
6
|
+
updateInstance(id: string, command: RavifyInstanceUpdateCommand): Promise<void>;
|
|
7
|
+
deleteInstance(id: string): Promise<void>;
|
|
8
|
+
getState(): Promise<RavifyGlobalState[]>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RavifyV1Service } from "./v1/ravifyV1.service";
|
|
2
|
+
import { RavifyManagementService } from "./ravify-management.service";
|
|
3
|
+
export declare class RavifyFacade {
|
|
4
|
+
private _ravifyV1;
|
|
5
|
+
private _management;
|
|
6
|
+
constructor();
|
|
7
|
+
get management(): RavifyManagementService;
|
|
8
|
+
get v1(): RavifyV1Service;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './ravify-job-v1';
|
|
2
|
+
export * from './ravify-file-v1';
|
|
3
|
+
export * from './ravify-scope-v1';
|
|
4
|
+
export * from './ravify-domain-v1';
|
|
5
|
+
export * from './ravify-job-state-v1';
|
|
6
|
+
export * from './ravify-scope-create-v1';
|
|
7
|
+
export * from './ravify-directory-stats-v1';
|
|
8
|
+
export * from './ravify-fs-directory-v1';
|
|
9
|
+
export * from './ravify-directory-create-v1';
|
|
10
|
+
export * from './ravify-directory-rename-v1';
|
|
11
|
+
export * from './ravify-job-create-v1';
|
|
12
|
+
export * from './ravify-job-update-info-v1';
|
|
13
|
+
export * from './ravify-job-update-execution-v1';
|
|
14
|
+
export * from './ravify-job-history-v1';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface RavifyDirectoryStatsV1 {
|
|
2
|
+
path: RavifyDirectoryStatsPathV1[];
|
|
3
|
+
directories: RavifyDirectoryStatsDirectoryV1[];
|
|
4
|
+
files: RavifyDirectoryStatsFileV1[];
|
|
5
|
+
}
|
|
6
|
+
export interface RavifyDirectoryStatsPathV1 {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
level: number;
|
|
10
|
+
}
|
|
11
|
+
export interface RavifyDirectoryStatsDirectoryV1 {
|
|
12
|
+
uuid: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
export interface RavifyDirectoryStatsFileV1 {
|
|
16
|
+
uuid: string;
|
|
17
|
+
name: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { RavifyJobStateV1 } from "./ravify-job-state-v1";
|
|
2
|
+
export interface RavifyJobV1 {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
priority: number;
|
|
6
|
+
tags: string[];
|
|
7
|
+
description: string;
|
|
8
|
+
entryFileId: string;
|
|
9
|
+
cronExpression: string;
|
|
10
|
+
lastState: RavifyJobStateV1;
|
|
11
|
+
reservedAt: string;
|
|
12
|
+
executionInfo: RavifyJobJobExecutionInfoV1;
|
|
13
|
+
executionSetup: RavifyJobExecutionSetupV1;
|
|
14
|
+
}
|
|
15
|
+
export interface RavifyJobExecutionSetupV1 {
|
|
16
|
+
isActive: boolean;
|
|
17
|
+
manexec: boolean;
|
|
18
|
+
priority: number;
|
|
19
|
+
cronExpression: string;
|
|
20
|
+
}
|
|
21
|
+
export interface RavifyJobJobExecutionInfoV1 {
|
|
22
|
+
lastExecution: string;
|
|
23
|
+
nextExecution: string;
|
|
24
|
+
isReserved: boolean;
|
|
25
|
+
reservedAt: string;
|
|
26
|
+
lastState: JobState;
|
|
27
|
+
lastLog: string;
|
|
28
|
+
}
|
|
29
|
+
export declare enum JobState {
|
|
30
|
+
Free = 0,
|
|
31
|
+
Waiting = 1,
|
|
32
|
+
Running = 2,
|
|
33
|
+
Success = 3,
|
|
34
|
+
Error = 5
|
|
35
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PaginatedResult } from "../../interfaces";
|
|
2
|
+
import { RavifyFsDirectoryV1, RavifyJobV1, RavifyJobCreateV1, RavifyScopeV1, RavifyJobUpdateExecutionV1, RavifyJobUpdateInfoV1, RavifyScopeCreateV1, RavifyDirectoryStatsV1, RavifyJobHistoryV1 } from "./models";
|
|
3
|
+
export declare class RavifyV1Service {
|
|
4
|
+
constructor();
|
|
5
|
+
ping(): Promise<string>;
|
|
6
|
+
getScopes(domainId: string): Promise<RavifyScopeV1[]>;
|
|
7
|
+
createScope(domainId: string, command: RavifyScopeCreateV1): Promise<import("axios").AxiosResponse<any, any>>;
|
|
8
|
+
updateScope(domainId: string, scopeId: string, command: RavifyScopeCreateV1): Promise<import("axios").AxiosResponse<any, any>>;
|
|
9
|
+
deleteScope(domainId: string, scopeId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
10
|
+
uploadFile(domainId: string, content: File, parentDirId: string | null): Promise<import("axios").AxiosResponse<any, any>>;
|
|
11
|
+
deleteFile(domainId: string, fileId: string): Promise<import("axios").AxiosResponse<any, any>>;
|
|
12
|
+
getDirectoryStats(domainId: string, dirId: string | 'root'): Promise<RavifyDirectoryStatsV1>;
|
|
13
|
+
createDirectory(domainId: string, name: string, parentId: string | null): Promise<RavifyFsDirectoryV1>;
|
|
14
|
+
deleteDirectory(domainId: string, dirId: string): Promise<void>;
|
|
15
|
+
renameDirectory(domainId: string, dirId: string, name: string): Promise<RavifyFsDirectoryV1>;
|
|
16
|
+
getJobs(domainId: string, scopeId: string): Promise<RavifyJobV1[]>;
|
|
17
|
+
createJob(domainId: string, scopeId: string, command: RavifyJobCreateV1): Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
|
+
updateJobInfo(domainId: string, scopeId: string, jobId: string, command: RavifyJobUpdateInfoV1): Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
|
+
updateJobExecution(domainId: string, scopeId: string, jobId: string, command: RavifyJobUpdateExecutionV1): Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
|
+
executeJob(domainId: string, scopeId: string, jobId: string): Promise<RavifyJobV1>;
|
|
21
|
+
getJobHistory(domainId: string, scopeId: string, jobId: string, page: number, size: number): Promise<PaginatedResult<RavifyJobHistoryV1>>;
|
|
22
|
+
}
|