Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
3753b16
forms_typeorm_conversion_initial_commit
Shubham109879 Jun 15, 2025
9be1445
forms_service_typeorm_initial_setup_commit_2025_06_21
Shubham109879 Jun 21, 2025
693b3cf
form_service_typeorm_user_search_fix_2025_06_21
Shubham109879 Jun 21, 2025
1c120e0
Refactors form service files and updates request handling
inflection-prashant Jul 9, 2025
5aab6c7
models and dtos of rule, operatiosn and rules
inflection-prashant Jul 10, 2025
682a7d7
complete CRUD request for all tables rules,operations and rules and a…
inflection-prashant Jul 15, 2025
bc30589
code cleaneup and format code remove comments
inflection-prashant Jul 15, 2025
8a84e48
complete the documentation of docsify
inflection-prashant Jul 16, 2025
fbec4da
make a mocha tests for endpoints and test the logic
inflection-prashant Jul 16, 2025
ed6ed02
linting the code with eslint and prettier
inflection-prashant Jul 16, 2025
16045a5
linting the code and restructuring the code
inflection-prashant Jul 17, 2025
8ff56b2
code restructuring like skeleton service
inflection-prashant Jul 18, 2025
1025463
add get template details by id route
inflection-prashant Jul 18, 2025
898c38f
changes are required to run and details route in template and bruno c…
inflection-prashant Jul 21, 2025
87502c9
updated bruno collection to updated validators
inflection-prashant Jul 21, 2025
4f13457
solved the all issues upto submission and responses
inflection-prashant Jul 23, 2025
6e6c9e8
tests completed with logs
inflection-prashant Jul 24, 2025
e2a4399
working changes for testing the form logic
inflection-prashant Jul 25, 2025
536a3c1
form logic test for validation logic rules of logical operator
inflection-prashant Jul 26, 2025
54e9d53
creating the calculation logic
inflection-prashant Aug 25, 2025
81466e3
Added the settings to calculation rule
inflection-prashant Aug 29, 2025
183657b
"All fallback model and pipeline"
inflection-prashant Sep 15, 2025
332f582
Fallback rule implementation and CRUD requests.
inflection-prashant Sep 17, 2025
a194799
Fallback rule implementation and correct all the all rules.
inflection-prashant Sep 20, 2025
d38acef
"Solve the issue of launching errors"
inflection-prashant Sep 23, 2025
5d8680e
implement the get responses and submissions by template id. put the t…
inflection-prashant Sep 24, 2025
e3f4993
isfev flag added in template model changes
nikita-inflection Sep 26, 2025
d4e2235
"favourite template feature implemented, Added the ifFavourite flag i…
nikita-inflection Sep 26, 2025
85b27d5
Merge pull request #2 from inflection-zone/devops
inflection-sahil Sep 26, 2025
e4b6903
Merge pull request #3 from inflection-zone/devops
inflection-sahil Sep 26, 2025
a7e1cd2
Merge pull request #4 from inflection-zone/devops
inflection-sahil Sep 26, 2025
b246e70
Merge pull request #5 from inflection-zone/devops
inflection-sahil Sep 26, 2025
a446e2c
Merge pull request #6 from inflection-zone/devops
inflection-sahil Sep 26, 2025
7ab3c94
Merge pull request #7 from inflection-zone/devops
inflection-sahil Sep 26, 2025
17e043f
Added authentication pipeline.
Dattatraya-Londhe Sep 27, 2025
da6c54b
Merge branch 'develop-inflection' into auth-02
Dattatraya-Londhe Sep 28, 2025
cd38bc7
Merge pull request #9 from inflection-zone/auth-02
dattatraya-inflection Sep 28, 2025
b5ff061
Merge pull request #10 from inflection-zone/devops
inflection-sahil Oct 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
75 changes: 75 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
NODE_ENV=local
TESTING=true
##########################################################
API_VERSION=0.1.000
##########################################################

PORT=2345
THIS_BASE_URL=http://localhost:2345
SERVICE_NAME=charcoal
USER_ACCESS_TOKEN_SECRET=<your-user-access-token-secret>
CIPHER_SALT=<your-cipher-salt>
HTTP_LOGGING=false
MAX_UPLOAD_FILE_SIZE=104857600 # 100MB
##########################################################

#Database connection details
DB_DIALECT=mysql
DB_USER_NAME=<your-database-username>
DB_USER_PASSWORD=<your-database-password>
DB_NAME=worflow_db
DB_HOST=localhost
DB_PORT=5432

##########################################################

# Bot API details

BOT_API_URL=http://localhost:2323/api/v1
BOT_API_KEY=123456

##########################################################

# File storage Storage related details (e.g. aws s3 bucket)

# STORAGE_BUCKET=<your-bucket> or <your-local-storage-location, e.g. ../storage/>
# STORAGE_BUCKET_ACCESS_KEY_ID=<your-storage-access-key>
# STORAGE_BUCKET_ACCESS_KEY_SECRET=<your-storage-access-secret>

##########################################################

# OpenTelemetry related details

ENABLE_TELEMETRY=true
# ENABLE_TELEMETRY_TRACES=true
# ENABLE_TELEMETRY_METRICS=false

# For any signal type
# OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 # for gRPC
# or for HTTP -> http://localhost:4318

# Tracing
# OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:4317 # for gRPC
# or for HTTP -> http://localhost:4318/v1/traces
# or custom endpoint -> https://<custom-endpoint>/v1/traces/

# Metrics
# OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=http://localhost:4317 # for gRPC
# or for HTTP http://localhost:4318/v1/metrics
# or custom endpoint -> https://<custom-endpoint>/v1/metrics/

# Logs
# OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=http://localhost:4317 # for gRPC
# or for HTTP http://localhost:4318/v1/logs
# or custom endpoint -> https://<custom-endpoint>/v1/logs/

# OTEL_EXPORTER_OTLP_HEADERS= # for custom headers

# OTEL_EXPORTER_OTLP_TIMEOUT=10s # for timeout

# OTEL_EXPORTER_OTLP_PROTOCOL=grpc
# grpc to use OTLP/gRPC
# http/protobuf to use OTLP/HTTP + protobuf
# http/json to use OTLP/HTTP + JSON

##########################################################
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
dist
src/**/*.json
src/**/*.zip
src/assets
src/tests
167 changes: 167 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
{
"env": {
"node": true,
"commonjs": true,
"es2022": true
},
"extends": [
"eslint:recommended",
"@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"semi": [ "error", "always"],
"no-extra-semi": "error",
"no-console": "error",
"eqeqeq": [
"warn",
"always",
{
"null": "ignore"
}
],
"init-declarations": [
"warn",
"always"
],
"eol-last": [
"warn",
"always"
],
"block-spacing": [
"warn",
"always"
],
"object-curly-spacing": [
"warn",
"always"
],
"space-infix-ops": "warn",
"key-spacing": [
"warn",
{
"singleLine": {
"beforeColon": false,
"afterColon": true
},
"multiLine": {
"beforeColon": true,
"afterColon": true,
"align": "colon"
}
}
],
"keyword-spacing": [
"error",
{
"overrides": {
"if": {
"after": true
},
"for": {
"after": true
},
"while": {
"after": true
}
}
}
],
"indent": ["warn", 4, {
"SwitchCase": 1,
"ignoredNodes": [
"FunctionExpression > .params[decorators.length > 0]",
"FunctionExpression > .params > :matches(Decorator, :not(:first-child))",
"ClassBody.body > PropertyDefinition[decorators.length > 0] > .key"
]
}],
"func-call-spacing": [
"warn",
"never"
],
"lines-between-class-members": [
"warn",
"always"
],
"linebreak-style": [
"warn",
"unix"
],
"max-len": [
"warn",
{
"code": 150,
"tabWidth": 4,
"ignoreTrailingComments": true,
"ignoreTemplateLiterals": true,
"ignoreStrings": true
}
],
"newline-per-chained-call": [
"warn",
{
"ignoreChainWithDepth": 5
}
],
"max-statements-per-line": [
"error",
{
"max": 1
}
],
"lines-around-comment": [
"warn",
{
"beforeBlockComment": true,
"beforeLineComment": false
}
],
"no-multi-assign": "error",
"no-multiple-empty-lines": [
"warn",
{
"max": 1,
"maxEOF": 1
}
],
"no-tabs": "error",
"no-trailing-spaces": [
"warn",
{
"skipBlankLines": true
}
],
"padded-blocks": [
"warn",
{
"classes": "always"
}
],
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": [
"error",
{
"allow": [
"private-constructors"
]
}
],
"@typescript-eslint/explicit-module-boundary-types": [
"off"
],
"@typescript-eslint/no-explicit-any": [
"off"
],
"no-var": [
"off"
]
}
}
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*.js text eol=lf
*.jsx text eol=lf
*.json text eol=lf
*.ts text eol=lf

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,6 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
tempDownloads/

seed.data/default.users.seed.json
seed.data/internal.clients.seed.json
16 changes: 16 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
node_modules/
dist/
build/
coverage/
*.min.js
*.min.css
package-lock.json
yarn.lock
.git/
.vscode/
.idea/
*.log
.env
.env.local
.env.production
.env.development
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 150,
"useTabs": false,
"endOfLine": "lf"
}
23 changes: 21 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,29 @@
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}//dist//index.js",
"program": "${workspaceFolder}/src/index.ts",

"preLaunchTask": "tsc: build - tsconfig.json",

}
},
// {
// "args": [
// "-u",
// "tdd",
// "--timeout",
// "999999",
// "--colors",
// "${workspaceFolder}/dist/tests/api-tests/tests"
// ],
// "internalConsoleOptions": "openOnSessionStart",
// "name": "Mocha Tests",
// "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
// "preLaunchTask": "tsc: build - tsconfig.json",
// "request": "launch",
// "skipFiles": [
// "<node_internals>/**"
// ],
// "type": "node"
// },
]
}
Loading