Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.0.0-alpha.74 #1041

Merged
merged 8 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,21 @@ updates:
directory: "/"
schedule:
interval: "daily"
target-branch: daily
open-pull-requests-limit: 0
target-branch: "daily"
versioning-strategy: increase
allow:
- dependency-type: all
# Allow both direct and indirect updates for all packages
- dependency-type: "all"
ignore:
- dependency-name: "@types/mime"
versions: ["2.*", "3.*"]
versions: ["2.x", "3.x"]
- dependency-name: "@types/node"
versions: ["20.*"]
versions: ["20.x"]
- dependency-name: "fast-check"
versions: ["3.*"]
versions: ["3.x"]
- dependency-name: "query-string"
versions: ["8.*"]
versions: ["8.x"]
groups:
types:
patterns:
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/dependabot-validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: dependabot validate

on:
pull_request:
paths:
- '.github/dependabot.yml'
- '.github/workflows/dependabot-validate.yml'
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: marocchino/validate-dependabot@v2
id: validate
- uses: marocchino/sticky-pull-request-comment@v2
if: always()
with:
header: validate-dependabot
message: ${{ steps.validate.outputs.markdown }}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@types/prettier": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vitest/coverage-v8": "^0.34.6",
"eslint": "^8.51.0",
"eslint": "^8.52.0",
"eslint-config-prettier": "^9.0.0",
"eslint-config-standard-with-typescript": "^39.1.1",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-fp-ts": "^0.3.2",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.2.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-webpack-plugin": "^4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/@liexp/backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"react-admin": "^4.13.2",
"react-dom": "^18",
"typeorm": "^0.3.15",
"uuid": "^9",
"uuid": "^9.0.1",
"wikipedia": "^2.0.0",
"wink-nlp": "^1",
"wink-nlp-utils": "^2.1.0"
Expand Down
23 changes: 19 additions & 4 deletions packages/@liexp/backend/src/providers/fs/fs.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ export interface FSClient {
) => TE.TaskEither<FSError, "valid" | "older" | "not-found">;
getObject: (filePath: string) => TE.TaskEither<FSError, string>;
writeObject: (filePath: string, data: string) => TE.TaskEither<FSError, void>;
deleteObject: (filePath: string) => TE.TaskEither<FSError, void>;
deleteObject: (
filePath: string,
throwIfNoExists?: boolean,
) => TE.TaskEither<FSError, void>;
getOlderThanOr: (
filePath: string,
time?: number,
Expand Down Expand Up @@ -124,11 +127,23 @@ export const GetFSClient = (): FSClient => {
olderThan,
writeObject,
getObject,
deleteObject: (filePath) => {
deleteObject: (filePath, throwIfNoExists) => {
fsLogger.debug.log("Deleting object at path %s", filePath);
return pipe(
TE.fromIO(() => {
fs.rmSync(filePath);
objectExists(filePath),
TE.chain((exists) => {
if (exists) {
return TE.fromIO(() => {
fs.rmSync(filePath);
});
} else {
if (throwIfNoExists) {
return TE.left(
toFSError(new Error(`File ${filePath} don't exists.`)),
);
}
return TE.right(undefined);
}
}),
);
},
Expand Down
8 changes: 4 additions & 4 deletions packages/@liexp/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@
"@types/mime": "^1.3.4",
"@types/mini-css-extract-plugin": "^2.5.1",
"@types/prettier": "^3.0.0",
"@types/react": "^18.2.31",
"@types/react": "^18.2.33",
"@types/webpack-bundle-analyzer": "^4.6.2",
"@types/webpack-node-externals": "^3.0.3",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.8.1",
"css-minimizer-webpack-plugin": "^5.0.1",
"dotenv-webpack": "^8.0.1",
"eslint": "^8.51.0",
"eslint-plugin-import": "^2.28.1",
"eslint": "^8.52.0",
"eslint-plugin-import": "^2.29.0",
"express": "^4.18.2",
"file-loader": "^6.2.0",
"filemanager-webpack-plugin": "^8.0.0",
Expand All @@ -61,7 +61,7 @@
"peerDependencies": {
"debug": "^4.3.1",
"query-string": "^7.0.0",
"uuid": "^9.0.0"
"uuid": "^9.0.1"
},
"_moduleAlias": {
"@http": "lib/http",
Expand Down
2 changes: 2 additions & 0 deletions packages/@liexp/core/src/fp/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as A from "fp-ts/Array";
import * as E from "fp-ts/Either";
import * as Eq from 'fp-ts/Eq'
import * as IOE from "fp-ts/IOEither";
import * as Json from "fp-ts/Json";
import * as Map from "fp-ts/Map";
Expand Down Expand Up @@ -27,6 +28,7 @@ export const fp = {
N,
Ord,
Json,
Eq
};

export { pipe, flow };
3 changes: 3 additions & 0 deletions packages/@liexp/shared/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"parserOptions": {
"tsconfigRootDir": "./",
"project": ["./tsconfig.json"]
},
"settings": {
"import/ignore": ["uuid"]
}
}
8 changes: 4 additions & 4 deletions packages/@liexp/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"test": "vitest"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.433.0",
"@aws-sdk/lib-storage": "^3.433.0",
"@aws-sdk/s3-request-presigner": "^3.433.0",
"@aws-sdk/client-s3": "^3.436.0",
"@aws-sdk/lib-storage": "^3.436.0",
"@aws-sdk/s3-request-presigner": "^3.436.0",
"@databases/escape-identifier": "^1.0.3",
"@databases/sql": "^3.3.0",
"@liexp/core": "0.1.0",
Expand All @@ -44,7 +44,7 @@
"@liexp/test": "0.1.0",
"@types/bs58": "^4.0.3",
"@types/prettier": "^3.0.0",
"@types/react": "^18.2.31",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/throttle-debounce": "^5.0.1",
"@types/uuid": "^9.0.6",
Expand Down
8 changes: 4 additions & 4 deletions packages/@liexp/shared/src/endpoints/Network.endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as t from "io-ts";
import { UUID } from "io-ts-types/UUID";
import { optionFromNullable } from "io-ts-types/lib/optionFromNullable";
import { Endpoint } from "ts-endpoint";
import { ListOutput, Output } from "../io/http/Common/Output";
import {
Expand Down Expand Up @@ -49,11 +50,10 @@ export const Get = Endpoint({

export const Edit = Endpoint({
Method: "PUT",
getPath: ({ id }) => `/networks/${id}`,
getPath: ({ type, id }) => `/networks/${type}/${id}`,
Input: {
Query: undefined,
Params: t.type({ id: UUID }),
Body: t.unknown,
Params: t.type({...GetNetworkParams.props, id: UUID }),
Body: t.strict({ regenerate: optionFromNullable(t.boolean) }),
},
Output: SingleOutput,
});
Expand Down
13 changes: 13 additions & 0 deletions packages/@liexp/shared/src/endpoints/graph.endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ export const GetFlowGraph = Endpoint({
Output: t.strict({ data: FlowGraphOutput }),
});

export const EditFlowGraph = Endpoint({
Method: "PUT",
getPath: ({ id, type }) => `/graphs/flows/${type}/${id}`,
Input: {
Params: GetFlowGraphParams,
Body: t.strict({
regenerate: t.boolean
})
},
Output: t.strict({ data: FlowGraphOutput }),
});

export const ListGraphs = Endpoint({
Method: "GET",
getPath: () => `/graphs`,
Expand Down Expand Up @@ -78,5 +90,6 @@ export const graphs = ResourceEndpoints({
Delete: DeleteGraph,
Custom: {
GetGraphByType: GetFlowGraph,
EditFlowGraph,
},
});
Loading