first commit
This commit is contained in:
commit
4c7998f349
4
.angulardoc.json
Normal file
4
.angulardoc.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"repoId": "bc5fa7a7-7313-4845-954c-7227b0073b63",
|
||||||
|
"lastSync": 0
|
||||||
|
}
|
||||||
20
.commitlintrc.json
Normal file
20
.commitlintrc.json
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"extends": ["@commitlint/config-conventional"],
|
||||||
|
"rules": {
|
||||||
|
"type-enum": [
|
||||||
|
2,
|
||||||
|
"always",
|
||||||
|
[
|
||||||
|
"ci",
|
||||||
|
"chore",
|
||||||
|
"docs",
|
||||||
|
"feat",
|
||||||
|
"fix",
|
||||||
|
"perf",
|
||||||
|
"refactor",
|
||||||
|
"revert",
|
||||||
|
"style"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
17
.editorconfig
Normal file
17
.editorconfig
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Editor configuration, see https://editorconfig.org
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.ts]
|
||||||
|
quote_type = single
|
||||||
|
ij_typescript_use_double_quotes = false
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
max_line_length = off
|
||||||
|
trim_trailing_whitespace = false
|
||||||
42
.gitignore
vendored
Normal file
42
.gitignore
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
|
||||||
|
|
||||||
|
# Compiled output
|
||||||
|
/dist
|
||||||
|
/tmp
|
||||||
|
/out-tsc
|
||||||
|
/bazel-out
|
||||||
|
|
||||||
|
# Node
|
||||||
|
/node_modules
|
||||||
|
npm-debug.log
|
||||||
|
yarn-error.log
|
||||||
|
|
||||||
|
# IDEs and editors
|
||||||
|
.idea/
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
.c9/
|
||||||
|
*.launch
|
||||||
|
.settings/
|
||||||
|
*.sublime-workspace
|
||||||
|
|
||||||
|
# Visual Studio Code
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.history/*
|
||||||
|
|
||||||
|
# Miscellaneous
|
||||||
|
/.angular/cache
|
||||||
|
.sass-cache/
|
||||||
|
/connect.lock
|
||||||
|
/coverage
|
||||||
|
/libpeerconnection.log
|
||||||
|
testem.log
|
||||||
|
/typings
|
||||||
|
|
||||||
|
# System files
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
1
.husky/.gitignore
vendored
Normal file
1
.husky/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
_
|
||||||
1
.husky/commit-msg
Executable file
1
.husky/commit-msg
Executable file
@ -0,0 +1 @@
|
|||||||
|
npx commitlint --edit $1
|
||||||
1
.husky/pre-commit
Executable file
1
.husky/pre-commit
Executable file
@ -0,0 +1 @@
|
|||||||
|
npx lint-staged
|
||||||
5
.postcssrc.json
Normal file
5
.postcssrc.json
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"plugins": {
|
||||||
|
"@tailwindcss/postcss": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
5
.prettierrc
Normal file
5
.prettierrc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "all",
|
||||||
|
"tabWidth": 2
|
||||||
|
}
|
||||||
4
.vscode/extensions.json
vendored
Normal file
4
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
|
||||||
|
"recommendations": ["angular.ng-template"]
|
||||||
|
}
|
||||||
20
.vscode/launch.json
vendored
Normal file
20
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "ng serve",
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"preLaunchTask": "npm: start",
|
||||||
|
"url": "http://localhost:4200/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ng test",
|
||||||
|
"type": "chrome",
|
||||||
|
"request": "launch",
|
||||||
|
"preLaunchTask": "npm: test",
|
||||||
|
"url": "http://localhost:9876/debug.html"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
8
.vscode/settings.json
vendored
Normal file
8
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"exportall.config.folderListener": ["/src/app/core/pipes"],
|
||||||
|
"[typescript]": {
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.organizeImports": "explicit"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
42
.vscode/tasks.json
vendored
Normal file
42
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "start",
|
||||||
|
"isBackground": true,
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "typescript",
|
||||||
|
"pattern": "$tsc",
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": {
|
||||||
|
"regexp": "(.*?)"
|
||||||
|
},
|
||||||
|
"endsPattern": {
|
||||||
|
"regexp": "bundle generation complete"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "npm",
|
||||||
|
"script": "test",
|
||||||
|
"isBackground": true,
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "typescript",
|
||||||
|
"pattern": "$tsc",
|
||||||
|
"background": {
|
||||||
|
"activeOnStart": true,
|
||||||
|
"beginsPattern": {
|
||||||
|
"regexp": "(.*?)"
|
||||||
|
},
|
||||||
|
"endsPattern": {
|
||||||
|
"regexp": "bundle generation complete"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
59
README.md
Normal file
59
README.md
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
# BrowserStruttureMusa
|
||||||
|
|
||||||
|
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.1.6.
|
||||||
|
|
||||||
|
## Development server
|
||||||
|
|
||||||
|
To start a local development server, run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ng serve
|
||||||
|
```
|
||||||
|
|
||||||
|
Once the server is running, open your browser and navigate to `http://localhost:4200/`. The application will automatically reload whenever you modify any of the source files.
|
||||||
|
|
||||||
|
## Code scaffolding
|
||||||
|
|
||||||
|
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ng generate component component-name
|
||||||
|
```
|
||||||
|
|
||||||
|
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ng generate --help
|
||||||
|
```
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
To build the project run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ng build
|
||||||
|
```
|
||||||
|
|
||||||
|
This will compile your project and store the build artifacts in the `dist/` directory. By default, the production build optimizes your application for performance and speed.
|
||||||
|
|
||||||
|
## Running unit tests
|
||||||
|
|
||||||
|
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ng test
|
||||||
|
```
|
||||||
|
|
||||||
|
## Running end-to-end tests
|
||||||
|
|
||||||
|
For end-to-end (e2e) testing, run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ng e2e
|
||||||
|
```
|
||||||
|
|
||||||
|
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
||||||
|
|
||||||
|
## Additional Resources
|
||||||
|
|
||||||
|
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
||||||
205
angular.json
Normal file
205
angular.json
Normal file
@ -0,0 +1,205 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||||
|
"version": 1,
|
||||||
|
"newProjectRoot": "projects",
|
||||||
|
"projects": {
|
||||||
|
"Browser-Strutture-Musa": {
|
||||||
|
"projectType": "application",
|
||||||
|
"schematics": {
|
||||||
|
"@schematics/angular:component": {
|
||||||
|
"style": "scss"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "",
|
||||||
|
"sourceRoot": "src",
|
||||||
|
"prefix": "app",
|
||||||
|
"architect": {
|
||||||
|
"build": {
|
||||||
|
"builder": "@angular-devkit/build-angular:application",
|
||||||
|
"options": {
|
||||||
|
"outputPath": "dist",
|
||||||
|
"index": "src/index.html",
|
||||||
|
"browser": "src/main.ts",
|
||||||
|
"polyfills": ["zone.js"],
|
||||||
|
"tsConfig": "tsconfig.app.json",
|
||||||
|
"inlineStyleLanguage": "scss",
|
||||||
|
"assets": [
|
||||||
|
"src/favicon.ico",
|
||||||
|
"src/assets",
|
||||||
|
"src/.htaccess",
|
||||||
|
{
|
||||||
|
"glob": "**/*",
|
||||||
|
"input": "public"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"styles": ["src/styles.scss"],
|
||||||
|
"scripts": ["./node_modules/prismjs/prism.js"],
|
||||||
|
"allowedCommonJsDependencies": [
|
||||||
|
"lodash",
|
||||||
|
"dayjs",
|
||||||
|
"dayjs/*",
|
||||||
|
"file-saver"
|
||||||
|
],
|
||||||
|
"stylePreprocessorOptions": {
|
||||||
|
"sass": {
|
||||||
|
"silenceDeprecations": [
|
||||||
|
"mixed-decls",
|
||||||
|
"color-functions",
|
||||||
|
"global-builtin",
|
||||||
|
"import"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"budgets": [
|
||||||
|
{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "3mb",
|
||||||
|
"maximumError": "5mb"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "anyComponentStyle",
|
||||||
|
"maximumWarning": "6kB",
|
||||||
|
"maximumError": "10kB"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.prod.ts"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"optimization": true,
|
||||||
|
"outputHashing": "all"
|
||||||
|
},
|
||||||
|
"musa-prod": {
|
||||||
|
"budgets": [
|
||||||
|
{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "3mb",
|
||||||
|
"maximumError": "5mb"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "anyComponentStyle",
|
||||||
|
"maximumWarning": "6kB",
|
||||||
|
"maximumError": "10kB"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.prod.musa.ts"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"optimization": true,
|
||||||
|
"outputHashing": "all"
|
||||||
|
},
|
||||||
|
"dev": {
|
||||||
|
"budgets": [
|
||||||
|
{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "3mb",
|
||||||
|
"maximumError": "5mb"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "anyComponentStyle",
|
||||||
|
"maximumWarning": "6kb",
|
||||||
|
"maximumError": "10kb"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.dev.ts"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputHashing": "all",
|
||||||
|
"optimization": false,
|
||||||
|
"extractLicenses": false,
|
||||||
|
"sourceMap": true,
|
||||||
|
"namedChunks": true,
|
||||||
|
"baseHref": "/"
|
||||||
|
},
|
||||||
|
"musa-dev": {
|
||||||
|
"budgets": [
|
||||||
|
{
|
||||||
|
"type": "initial",
|
||||||
|
"maximumWarning": "3mb",
|
||||||
|
"maximumError": "5mb"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "anyComponentStyle",
|
||||||
|
"maximumWarning": "6kb",
|
||||||
|
"maximumError": "10kb"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fileReplacements": [
|
||||||
|
{
|
||||||
|
"replace": "src/environments/environment.ts",
|
||||||
|
"with": "src/environments/environment.dev.musa.ts"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"outputHashing": "all",
|
||||||
|
"optimization": false,
|
||||||
|
"extractLicenses": false,
|
||||||
|
"sourceMap": true,
|
||||||
|
"namedChunks": true,
|
||||||
|
"baseHref": "/"
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"optimization": false,
|
||||||
|
"extractLicenses": false,
|
||||||
|
"sourceMap": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultConfiguration": "production"
|
||||||
|
},
|
||||||
|
"serve": {
|
||||||
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
|
"configurations": {
|
||||||
|
"production": {
|
||||||
|
"buildTarget": "Browser-Strutture-Musa:build:production"
|
||||||
|
},
|
||||||
|
"musa-prod": {
|
||||||
|
"buildTarget": "Browser-Strutture-Musa:build:prod:musa"
|
||||||
|
},
|
||||||
|
"dev": {
|
||||||
|
"buildTarget": "Browser-Strutture-Musa:build:dev"
|
||||||
|
},
|
||||||
|
"musa-dev": {
|
||||||
|
"buildTarget": "Browser-Strutture-Musa:build:dev:musa"
|
||||||
|
},
|
||||||
|
"development": {
|
||||||
|
"buildTarget": "Browser-Strutture-Musa:build:development"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"defaultConfiguration": "development"
|
||||||
|
},
|
||||||
|
"extract-i18n": {
|
||||||
|
"builder": "@angular-devkit/build-angular:extract-i18n"
|
||||||
|
},
|
||||||
|
"test": {
|
||||||
|
"builder": "@angular-devkit/build-angular:karma",
|
||||||
|
"options": {
|
||||||
|
"polyfills": ["zone.js", "zone.js/testing"],
|
||||||
|
"tsConfig": "tsconfig.spec.json",
|
||||||
|
"inlineStyleLanguage": "scss",
|
||||||
|
"assets": [
|
||||||
|
{
|
||||||
|
"glob": "**/*",
|
||||||
|
"input": "public"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"styles": ["src/styles.scss"],
|
||||||
|
"scripts": []
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"cli": {
|
||||||
|
"analytics": false
|
||||||
|
}
|
||||||
|
}
|
||||||
53
eslint.config.mjs
Normal file
53
eslint.config.mjs
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
// @ts-check
|
||||||
|
import eslint from '@eslint/js';
|
||||||
|
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
|
||||||
|
import globals from 'globals';
|
||||||
|
import tseslint from 'typescript-eslint';
|
||||||
|
|
||||||
|
export default tseslint.config(
|
||||||
|
{
|
||||||
|
ignores: ['eslint.config.mjs'],
|
||||||
|
},
|
||||||
|
eslint.configs.recommended,
|
||||||
|
eslintPluginPrettierRecommended,
|
||||||
|
{
|
||||||
|
extends: [tseslint.configs.recommendedTypeChecked],
|
||||||
|
files: ['src/**/*.ts'],
|
||||||
|
languageOptions: {
|
||||||
|
globals: {
|
||||||
|
...globals.node,
|
||||||
|
...globals.jest,
|
||||||
|
},
|
||||||
|
ecmaVersion: 5,
|
||||||
|
sourceType: 'module',
|
||||||
|
parserOptions: {
|
||||||
|
projectService: true,
|
||||||
|
tsconfigRootDir: import.meta.dirname,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
files: ['src/**/*.ts'],
|
||||||
|
rules: {
|
||||||
|
indent: 'off',
|
||||||
|
'@typescript-eslint/no-explicit-any': 'off',
|
||||||
|
'@typescript-eslint/no-floating-promises': 'warn',
|
||||||
|
'@typescript-eslint/no-unsafe-argument': 'warn',
|
||||||
|
'@typescript-eslint/no-unsafe-call': 'off',
|
||||||
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||||||
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
||||||
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
||||||
|
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
|
||||||
|
'@typescript-eslint/no-unused-vars': 'warn',
|
||||||
|
'@typescript-eslint/no-unsafe-return': 'warn',
|
||||||
|
'@typescript-eslint/no-redundant-type-constituents': 'warn',
|
||||||
|
'@typescript-eslint/no-unused-expressions': 'warn',
|
||||||
|
'@typescript-eslint/unbound-method': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
ignoreStatic: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
);
|
||||||
6
openapi-gen.json
Normal file
6
openapi-gen.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"$schema": "node_modules/ng-openapi-gen/ng-openapi-gen-schema.json",
|
||||||
|
"input": "http://localhost:3000/docs-json",
|
||||||
|
"output": "src/api",
|
||||||
|
"serviceSuffix": "ApiClient"
|
||||||
|
}
|
||||||
18796
package-lock.json
generated
Normal file
18796
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
106
package.json
Normal file
106
package.json
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
{
|
||||||
|
"name": "browser-strutture-musa",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"scripts": {
|
||||||
|
"ng": "ng",
|
||||||
|
"start": "ng serve",
|
||||||
|
"build": "ng build",
|
||||||
|
"prebuild:dev": "npm ci",
|
||||||
|
"build:dev": "ng build -c dev",
|
||||||
|
"postbuild:dev": "cp -r -d ./dist/browser/. /var/www/html/webApp",
|
||||||
|
"prebuild:dev:musa": "npm ci",
|
||||||
|
"build:dev:musa": "ng build -c musa-dev",
|
||||||
|
"postbuild:dev:musa": "cp -r -d ./dist/browser/. /var/www/html/webApp",
|
||||||
|
"prebuild:prod": "npm ci",
|
||||||
|
"build:prod": "ng build -c production",
|
||||||
|
"postbuild:prod": "cp -r -d ./dist/browser/. /var/www/html/webApp",
|
||||||
|
"prebuild:prod:musa": "npm ci",
|
||||||
|
"build:prod:musa": "ng build -c musa-prod",
|
||||||
|
"postbuild:prod:musa": "cp -r -d ./dist/browser/. /var/www/html/webApp",
|
||||||
|
"tool:openapig": "ng-openapi-gen -c openapi-gen.json",
|
||||||
|
"posttool:openapig": "tsx scripts/fixup-models.ts; prettier . --write;",
|
||||||
|
"watch": "ng build --watch --configuration development",
|
||||||
|
"test": "ng test",
|
||||||
|
"prepare": "husky install"
|
||||||
|
},
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@angular/animations": "^19.1.0",
|
||||||
|
"@angular/common": "^19.1.0",
|
||||||
|
"@angular/compiler": "^19.1.0",
|
||||||
|
"@angular/core": "^19.1.0",
|
||||||
|
"@angular/forms": "^19.1.0",
|
||||||
|
"@angular/google-maps": "^19.2.19",
|
||||||
|
"@angular/platform-browser": "^19.1.0",
|
||||||
|
"@angular/platform-browser-dynamic": "^19.1.0",
|
||||||
|
"@angular/router": "^19.1.0",
|
||||||
|
"@fortawesome/angular-fontawesome": "^1.0.0",
|
||||||
|
"@fortawesome/free-brands-svg-icons": "^6.7.2",
|
||||||
|
"@fortawesome/free-regular-svg-icons": "^6.7.2",
|
||||||
|
"@fortawesome/free-solid-svg-icons": "^6.7.2",
|
||||||
|
"@googlemaps/markerclusterer": "^2.6.2",
|
||||||
|
"@ngneat/until-destroy": "^10.0.0",
|
||||||
|
"@primeng/themes": "^19.0.6",
|
||||||
|
"@rx-angular/cdk": "^19.1.0",
|
||||||
|
"@rx-angular/state": "^19.0.3",
|
||||||
|
"@rx-angular/template": "^19.2.1",
|
||||||
|
"@tailwindcss/postcss": "^4.0.6",
|
||||||
|
"dayjs": "^1.11.13",
|
||||||
|
"file-saver": "^2.0.5",
|
||||||
|
"iban": "^0.0.14",
|
||||||
|
"inputmask": "^5.0.9",
|
||||||
|
"lodash": "^4.17.21",
|
||||||
|
"ng-openapi-gen": "^0.52.0",
|
||||||
|
"postcss": "^8.5.2",
|
||||||
|
"primeflex": "^3.3.1",
|
||||||
|
"primeicons": "^7.0.0",
|
||||||
|
"primeng": "^19.1.4",
|
||||||
|
"prismjs": "^1.29.0",
|
||||||
|
"rxjs": "~7.8.0",
|
||||||
|
"tailwindcss": "^4.0.6",
|
||||||
|
"tailwindcss-primeui": "^0.4.0",
|
||||||
|
"tslib": "^2.3.0",
|
||||||
|
"tsx": "^4.19.3",
|
||||||
|
"type-fest": "^5.0.1",
|
||||||
|
"xlsx": "^0.18.5",
|
||||||
|
"zone.js": "~0.15.0"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@angular-devkit/build-angular": "^19.1.6",
|
||||||
|
"@angular/cli": "^19.1.6",
|
||||||
|
"@angular/compiler-cli": "^19.1.0",
|
||||||
|
"@commitlint/cli": "^19.7.1",
|
||||||
|
"@commitlint/config-conventional": "^19.7.1",
|
||||||
|
"@eslint/js": "^9.20.0",
|
||||||
|
"@types/file-saver": "^2.0.7",
|
||||||
|
"@types/google.maps": "^3.58.1",
|
||||||
|
"@types/googlemaps": "^3.43.3",
|
||||||
|
"@types/iban": "^0.0.35",
|
||||||
|
"@types/inputmask": "^5.0.7",
|
||||||
|
"@types/jasmine": "~5.1.0",
|
||||||
|
"@types/jest": "^29.5.14",
|
||||||
|
"@types/lodash": "^4.17.15",
|
||||||
|
"@types/node": "^22.13.1",
|
||||||
|
"autoprefixer": "^10.4.20",
|
||||||
|
"eslint": "^9.20.1",
|
||||||
|
"eslint-config-prettier": "^10.0.1",
|
||||||
|
"eslint-plugin-prettier": "^5.2.3",
|
||||||
|
"husky": "^9.1.7",
|
||||||
|
"jasmine-core": "~5.5.0",
|
||||||
|
"karma": "~6.4.0",
|
||||||
|
"karma-chrome-launcher": "~3.2.0",
|
||||||
|
"karma-coverage": "~2.2.0",
|
||||||
|
"karma-jasmine": "~5.1.0",
|
||||||
|
"karma-jasmine-html-reporter": "~2.1.0",
|
||||||
|
"lint-staged": "^16.0.0",
|
||||||
|
"prettier": "3.5.1",
|
||||||
|
"typescript": "~5.7.2",
|
||||||
|
"typescript-eslint": "^8.24.1"
|
||||||
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.{js,jsx,ts,tsx,json,css,scss,md}": [
|
||||||
|
"prettier . --write",
|
||||||
|
"eslint --fix"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.6 KiB |
7
scripts/fixup-models.ts
Normal file
7
scripts/fixup-models.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import fs from 'fs';
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
|
const modelsPath = path.join(__dirname, '..', 'src', 'api', 'models.ts');
|
||||||
|
const models = fs.readFileSync(modelsPath, 'utf-8');
|
||||||
|
const fixedModels = models.replace(/^export\s+/gm, 'export type ');
|
||||||
|
fs.writeFileSync(modelsPath, fixedModels);
|
||||||
12
src/.htaccess
Normal file
12
src/.htaccess
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
RewriteEngine on
|
||||||
|
|
||||||
|
# Don't rewrite files or directories
|
||||||
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||||
|
RewriteCond %{REQUEST_FILENAME} -d
|
||||||
|
RewriteRule ^ - [L]
|
||||||
|
|
||||||
|
# Rewrite everything else to index.html
|
||||||
|
# to allow html5 state links
|
||||||
|
RewriteRule ^ index.html [L]
|
||||||
|
</IfModule>
|
||||||
22
src/api/api-configuration.ts
Normal file
22
src/api/api-configuration.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Global configuration
|
||||||
|
*/
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root',
|
||||||
|
})
|
||||||
|
export class ApiConfiguration {
|
||||||
|
rootUrl: string = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parameters for `ApiModule.forRoot()`
|
||||||
|
*/
|
||||||
|
export interface ApiConfigurationParams {
|
||||||
|
rootUrl?: string;
|
||||||
|
}
|
||||||
73
src/api/api.module.ts
Normal file
73
src/api/api.module.ts
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import {
|
||||||
|
NgModule,
|
||||||
|
ModuleWithProviders,
|
||||||
|
SkipSelf,
|
||||||
|
Optional,
|
||||||
|
} from '@angular/core';
|
||||||
|
import { HttpClient } from '@angular/common/http';
|
||||||
|
import { ApiConfiguration, ApiConfigurationParams } from './api-configuration';
|
||||||
|
|
||||||
|
import { StruttureApiClient } from './services/strutture-api-client';
|
||||||
|
import { AuthApiClient } from './services/auth-api-client';
|
||||||
|
import { AccountsApiClient } from './services/accounts-api-client';
|
||||||
|
import { StipulatoriApiClient } from './services/stipulatori-api-client';
|
||||||
|
import { RolesApiClient } from './services/roles-api-client';
|
||||||
|
import { NomenclatoreApiClient } from './services/nomenclatore-api-client';
|
||||||
|
import { LuoghiApiClient } from './services/luoghi-api-client';
|
||||||
|
import { StrutturePubblicheApiClient } from './services/strutture-pubbliche-api-client';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Module that provides all services and configuration.
|
||||||
|
*/
|
||||||
|
@NgModule({
|
||||||
|
imports: [],
|
||||||
|
exports: [],
|
||||||
|
declarations: [],
|
||||||
|
providers: [
|
||||||
|
StruttureApiClient,
|
||||||
|
AuthApiClient,
|
||||||
|
AccountsApiClient,
|
||||||
|
StipulatoriApiClient,
|
||||||
|
RolesApiClient,
|
||||||
|
NomenclatoreApiClient,
|
||||||
|
LuoghiApiClient,
|
||||||
|
StrutturePubblicheApiClient,
|
||||||
|
ApiConfiguration,
|
||||||
|
],
|
||||||
|
})
|
||||||
|
export class ApiModule {
|
||||||
|
static forRoot(
|
||||||
|
params: ApiConfigurationParams,
|
||||||
|
): ModuleWithProviders<ApiModule> {
|
||||||
|
return {
|
||||||
|
ngModule: ApiModule,
|
||||||
|
providers: [
|
||||||
|
{
|
||||||
|
provide: ApiConfiguration,
|
||||||
|
useValue: params,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
constructor(
|
||||||
|
@Optional() @SkipSelf() parentModule: ApiModule,
|
||||||
|
@Optional() http: HttpClient,
|
||||||
|
) {
|
||||||
|
if (parentModule) {
|
||||||
|
throw new Error(
|
||||||
|
'ApiModule is already loaded. Import in your base AppModule only.',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (!http) {
|
||||||
|
throw new Error(
|
||||||
|
'You need to import the HttpClientModule in your AppModule! \n' +
|
||||||
|
'See also https://github.com/angular/angular/issues/20575',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
35
src/api/base-service.ts
Normal file
35
src/api/base-service.ts
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { HttpClient } from '@angular/common/http';
|
||||||
|
import { ApiConfiguration } from './api-configuration';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Base class for services
|
||||||
|
*/
|
||||||
|
@Injectable()
|
||||||
|
export class BaseService {
|
||||||
|
constructor(
|
||||||
|
protected config: ApiConfiguration,
|
||||||
|
protected http: HttpClient,
|
||||||
|
) {}
|
||||||
|
|
||||||
|
private _rootUrl?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the root url for all operations in this service. If not set directly in this
|
||||||
|
* service, will fallback to `ApiConfiguration.rootUrl`.
|
||||||
|
*/
|
||||||
|
get rootUrl(): string {
|
||||||
|
return this._rootUrl || this.config.rootUrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the root URL for API operations in this service.
|
||||||
|
*/
|
||||||
|
set rootUrl(rootUrl: string) {
|
||||||
|
this._rootUrl = rootUrl;
|
||||||
|
}
|
||||||
|
}
|
||||||
45
src/api/fn/accounts/accounts-controller-create-account.ts
Normal file
45
src/api/fn/accounts/accounts-controller-create-account.ts
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { CreateAccountDto } from '../../models/create-account-dto';
|
||||||
|
import { FindAccountResDto } from '../../models/find-account-res-dto';
|
||||||
|
|
||||||
|
export interface AccountsControllerCreateAccount$Params {
|
||||||
|
body: CreateAccountDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function accountsControllerCreateAccount(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AccountsControllerCreateAccount$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<FindAccountResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerCreateAccount.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<FindAccountResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerCreateAccount.PATH = '/admin/accounts';
|
||||||
44
src/api/fn/accounts/accounts-controller-delete-account.ts
Normal file
44
src/api/fn/accounts/accounts-controller-delete-account.ts
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { GenericMessageDto } from '../../models/generic-message-dto';
|
||||||
|
|
||||||
|
export interface AccountsControllerDeleteAccount$Params {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function accountsControllerDeleteAccount(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AccountsControllerDeleteAccount$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<GenericMessageDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerDeleteAccount.PATH,
|
||||||
|
'delete',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<GenericMessageDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerDeleteAccount.PATH = '/admin/accounts/id/{id}';
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { EditAccountStipulatoriDto } from '../../models/edit-account-stipulatori-dto';
|
||||||
|
import { FindAccountStipulatoriResDto } from '../../models/find-account-stipulatori-res-dto';
|
||||||
|
|
||||||
|
export interface AccountsControllerEditAccountStipulatori$Params {
|
||||||
|
id: number;
|
||||||
|
body: EditAccountStipulatoriDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function accountsControllerEditAccountStipulatori(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AccountsControllerEditAccountStipulatori$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<FindAccountStipulatoriResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerEditAccountStipulatori.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<FindAccountStipulatoriResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerEditAccountStipulatori.PATH =
|
||||||
|
'/admin/accounts/id/{id}/stipulatori';
|
||||||
47
src/api/fn/accounts/accounts-controller-edit-account.ts
Normal file
47
src/api/fn/accounts/accounts-controller-edit-account.ts
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { EditAccountDto } from '../../models/edit-account-dto';
|
||||||
|
import { FindAccountResDto } from '../../models/find-account-res-dto';
|
||||||
|
|
||||||
|
export interface AccountsControllerEditAccount$Params {
|
||||||
|
id: number;
|
||||||
|
body: EditAccountDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function accountsControllerEditAccount(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AccountsControllerEditAccount$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<FindAccountResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerEditAccount.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<FindAccountResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerEditAccount.PATH = '/admin/accounts/id/{id}';
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { EditAnagraficaPersonaleDto } from '../../models/edit-anagrafica-personale-dto';
|
||||||
|
import { GenericMessageDto } from '../../models/generic-message-dto';
|
||||||
|
|
||||||
|
export interface AccountsControllerEditAnagraficaPersonale$Params {
|
||||||
|
body: EditAnagraficaPersonaleDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function accountsControllerEditAnagraficaPersonale(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AccountsControllerEditAnagraficaPersonale$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<GenericMessageDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerEditAnagraficaPersonale.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<GenericMessageDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerEditAnagraficaPersonale.PATH =
|
||||||
|
'/admin/accounts/edit-anagrafica';
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { EditPasswordPersonaleDto } from '../../models/edit-password-personale-dto';
|
||||||
|
import { GenericMessageDto } from '../../models/generic-message-dto';
|
||||||
|
|
||||||
|
export interface AccountsControllerEditPasswordPersonale$Params {
|
||||||
|
body: EditPasswordPersonaleDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function accountsControllerEditPasswordPersonale(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AccountsControllerEditPasswordPersonale$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<GenericMessageDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerEditPasswordPersonale.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<GenericMessageDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerEditPasswordPersonale.PATH = '/admin/accounts/edit-password';
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { FindAccountStatusResDto } from '../../models/find-account-status-res-dto';
|
||||||
|
|
||||||
|
export interface AccountsControllerFetchAccountStatus$Params {}
|
||||||
|
|
||||||
|
export function accountsControllerFetchAccountStatus(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: AccountsControllerFetchAccountStatus$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<FindAccountStatusResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerFetchAccountStatus.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<FindAccountStatusResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerFetchAccountStatus.PATH = '/admin/accounts/status';
|
||||||
44
src/api/fn/accounts/accounts-controller-fetch-account.ts
Normal file
44
src/api/fn/accounts/accounts-controller-fetch-account.ts
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { FindAccountResDto } from '../../models/find-account-res-dto';
|
||||||
|
|
||||||
|
export interface AccountsControllerFetchAccount$Params {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function accountsControllerFetchAccount(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AccountsControllerFetchAccount$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<FindAccountResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerFetchAccount.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<FindAccountResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerFetchAccount.PATH = '/admin/accounts/id/{id}';
|
||||||
45
src/api/fn/accounts/accounts-controller-fetch-accounts.ts
Normal file
45
src/api/fn/accounts/accounts-controller-fetch-accounts.ts
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { FindAccountsResDto } from '../../models/find-accounts-res-dto';
|
||||||
|
import { LazyLoadEventDto } from '../../models/lazy-load-event-dto';
|
||||||
|
|
||||||
|
export interface AccountsControllerFetchAccounts$Params {
|
||||||
|
body: LazyLoadEventDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function accountsControllerFetchAccounts(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AccountsControllerFetchAccounts$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<FindAccountsResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerFetchAccounts.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<FindAccountsResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerFetchAccounts.PATH = '/admin/accounts/list';
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { Stipulatore } from '../../models/stipulatore';
|
||||||
|
|
||||||
|
export interface AccountsControllerGetAccountStipulatori$Params {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function accountsControllerGetAccountStipulatori(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AccountsControllerGetAccountStipulatori$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<Stipulatore>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerGetAccountStipulatori.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<Stipulatore>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerGetAccountStipulatori.PATH =
|
||||||
|
'/admin/accounts/id/{id}/stipulatori';
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { GenericMessageDto } from '../../models/generic-message-dto';
|
||||||
|
|
||||||
|
export interface AccountsControllerSendActivationLink$Params {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function accountsControllerSendActivationLink(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AccountsControllerSendActivationLink$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<GenericMessageDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
accountsControllerSendActivationLink.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<GenericMessageDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
accountsControllerSendActivationLink.PATH =
|
||||||
|
'/admin/accounts/send-activation-mail/{id}';
|
||||||
45
src/api/fn/auth/auth-controller-link-verification.ts
Normal file
45
src/api/fn/auth/auth-controller-link-verification.ts
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { GenericMessageDto } from '../../models/generic-message-dto';
|
||||||
|
import { LinkVerificationDto } from '../../models/link-verification-dto';
|
||||||
|
|
||||||
|
export interface AuthControllerLinkVerification$Params {
|
||||||
|
body: LinkVerificationDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function authControllerLinkVerification(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AuthControllerLinkVerification$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<GenericMessageDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
authControllerLinkVerification.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<GenericMessageDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
authControllerLinkVerification.PATH = '/auth/link-verification';
|
||||||
41
src/api/fn/auth/auth-controller-login.ts
Normal file
41
src/api/fn/auth/auth-controller-login.ts
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { AccountDto } from '../../models/account-dto';
|
||||||
|
import { AccountResDto } from '../../models/account-res-dto';
|
||||||
|
|
||||||
|
export interface AuthControllerLogin$Params {
|
||||||
|
body: AccountDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function authControllerLogin(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AuthControllerLogin$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<AccountResDto>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, authControllerLogin.PATH, 'post');
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<AccountResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
authControllerLogin.PATH = '/auth/login';
|
||||||
37
src/api/fn/auth/auth-controller-me.ts
Normal file
37
src/api/fn/auth/auth-controller-me.ts
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { AccountResDto } from '../../models/account-res-dto';
|
||||||
|
|
||||||
|
export interface AuthControllerMe$Params {}
|
||||||
|
|
||||||
|
export function authControllerMe(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: AuthControllerMe$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<AccountResDto>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, authControllerMe.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<AccountResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
authControllerMe.PATH = '/auth/me';
|
||||||
45
src/api/fn/auth/auth-controller-recovery-password.ts
Normal file
45
src/api/fn/auth/auth-controller-recovery-password.ts
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { GenericMessageDto } from '../../models/generic-message-dto';
|
||||||
|
import { RecoveryDto } from '../../models/recovery-dto';
|
||||||
|
|
||||||
|
export interface AuthControllerRecoveryPassword$Params {
|
||||||
|
body: RecoveryDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function authControllerRecoveryPassword(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AuthControllerRecoveryPassword$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<GenericMessageDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
authControllerRecoveryPassword.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<GenericMessageDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
authControllerRecoveryPassword.PATH = '/auth/recovery-password';
|
||||||
45
src/api/fn/auth/auth-controller-set-password.ts
Normal file
45
src/api/fn/auth/auth-controller-set-password.ts
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { EditPasswordDto } from '../../models/edit-password-dto';
|
||||||
|
import { GenericMessageDto } from '../../models/generic-message-dto';
|
||||||
|
|
||||||
|
export interface AuthControllerSetPassword$Params {
|
||||||
|
body: EditPasswordDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function authControllerSetPassword(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: AuthControllerSetPassword$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<GenericMessageDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
authControllerSetPassword.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<GenericMessageDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
authControllerSetPassword.PATH = '/auth/set-password';
|
||||||
@ -0,0 +1,59 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { LuogoRes } from '../../models/luogo-res';
|
||||||
|
|
||||||
|
export interface LuoghiControllerFindLuogoByAutocomplete$Params {
|
||||||
|
/**
|
||||||
|
* Search query for places, must be at least 3 characters long
|
||||||
|
*/
|
||||||
|
q: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filter by active status (0 = inactive, 1 = active)
|
||||||
|
*/
|
||||||
|
flagAttivo?: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filter stati esteri (0 = inactive, 1 = active)
|
||||||
|
*/
|
||||||
|
statiEsteri?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function luoghiControllerFindLuogoByAutocomplete(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: LuoghiControllerFindLuogoByAutocomplete$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<LuogoRes>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
luoghiControllerFindLuogoByAutocomplete.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.query('q', params.q, {});
|
||||||
|
rb.query('flagAttivo', params.flagAttivo, {});
|
||||||
|
rb.query('statiEsteri', params.statiEsteri, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<LuogoRes>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
luoghiControllerFindLuogoByAutocomplete.PATH = '/public/luoghi/cerca';
|
||||||
53
src/api/fn/luoghi/luoghi-controller-find-luogo-esteso.ts
Normal file
53
src/api/fn/luoghi/luoghi-controller-find-luogo-esteso.ts
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { LuogoRes } from '../../models/luogo-res';
|
||||||
|
|
||||||
|
export interface LuoghiControllerFindLuogoEsteso$Params {
|
||||||
|
/**
|
||||||
|
* Search query for places, must be at least 3 characters long
|
||||||
|
*/
|
||||||
|
q: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filter by active status (0 = inactive, 1 = active)
|
||||||
|
*/
|
||||||
|
flagAttivo?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function luoghiControllerFindLuogoEsteso(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: LuoghiControllerFindLuogoEsteso$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<LuogoRes>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
luoghiControllerFindLuogoEsteso.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.query('q', params.q, {});
|
||||||
|
rb.query('flagAttivo', params.flagAttivo, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<LuogoRes>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
luoghiControllerFindLuogoEsteso.PATH = '/public/luoghi/cerca-esteso';
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { CreateNomenclatoreLivello1 } from '../../models/create-nomenclatore-livello-1';
|
||||||
|
import { NomenclatoreLivello1ResDto } from '../../models/nomenclatore-livello-1-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerCreateNomenclatoreLivello1$Params {
|
||||||
|
body: CreateNomenclatoreLivello1;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerCreateNomenclatoreLivello1(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerCreateNomenclatoreLivello1$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreLivello1ResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerCreateNomenclatoreLivello1.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreLivello1ResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerCreateNomenclatoreLivello1.PATH =
|
||||||
|
'/nomenclatore/livello-1';
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { CreateNomenclatoreLivello2 } from '../../models/create-nomenclatore-livello-2';
|
||||||
|
import { NomenclatoreLivello2ResDto } from '../../models/nomenclatore-livello-2-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerCreateNomenclatoreLivello2$Params {
|
||||||
|
body: CreateNomenclatoreLivello2;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerCreateNomenclatoreLivello2(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerCreateNomenclatoreLivello2$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreLivello2ResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerCreateNomenclatoreLivello2.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreLivello2ResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerCreateNomenclatoreLivello2.PATH =
|
||||||
|
'/nomenclatore/livello-2';
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { CreateNomenclatoreLivello3 } from '../../models/create-nomenclatore-livello-3';
|
||||||
|
import { NomenclatoreLivello3ResDto } from '../../models/nomenclatore-livello-3-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerCreateNomenclatoreLivello3$Params {
|
||||||
|
body: CreateNomenclatoreLivello3;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerCreateNomenclatoreLivello3(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerCreateNomenclatoreLivello3$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreLivello3ResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerCreateNomenclatoreLivello3.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreLivello3ResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerCreateNomenclatoreLivello3.PATH =
|
||||||
|
'/nomenclatore/livello-3';
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { CreateNomenclatoreLivello4 } from '../../models/create-nomenclatore-livello-4';
|
||||||
|
import { NomenclatoreLivello4ResDto } from '../../models/nomenclatore-livello-4-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerCreateNomenclatoreLivello4$Params {
|
||||||
|
body: CreateNomenclatoreLivello4;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerCreateNomenclatoreLivello4(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerCreateNomenclatoreLivello4$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreLivello4ResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerCreateNomenclatoreLivello4.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreLivello4ResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerCreateNomenclatoreLivello4.PATH =
|
||||||
|
'/nomenclatore/livello-4';
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { CreateNomenclatore } from '../../models/create-nomenclatore';
|
||||||
|
import { NomenclatoreRes } from '../../models/nomenclatore-res';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerCreateNomenclatore$Params {
|
||||||
|
body: CreateNomenclatore;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerCreateNomenclatore(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerCreateNomenclatore$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreRes>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerCreateNomenclatore.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreRes>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerCreateNomenclatore.PATH = '/nomenclatore';
|
||||||
@ -0,0 +1,43 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerExportNomenclatore$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerExportNomenclatore(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerExportNomenclatore$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Blob>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerExportNomenclatore.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({
|
||||||
|
responseType: 'blob',
|
||||||
|
accept: 'application/octet-stream',
|
||||||
|
context,
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Blob>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerExportNomenclatore.PATH = '/nomenclatore/export';
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { CategoriaPrestazioneResDto } from '../../models/categoria-prestazione-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerFindManyCategoriePrestazione$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerFindManyCategoriePrestazione(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerFindManyCategoriePrestazione$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<CategoriaPrestazioneResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerFindManyCategoriePrestazione.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<CategoriaPrestazioneResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerFindManyCategoriePrestazione.PATH =
|
||||||
|
'/nomenclatore/categorie-prestazione';
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { ElementiResDto } from '../../models/elementi-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerFindManyElementi$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerFindManyElementi(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerFindManyElementi$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<ElementiResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerFindManyElementi.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<ElementiResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerFindManyElementi.PATH = '/nomenclatore/elementi';
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreLivello1ResDto } from '../../models/nomenclatore-livello-1-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerFindManyLivello1Nomenclatore$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerFindManyLivello1Nomenclatore(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerFindManyLivello1Nomenclatore$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<NomenclatoreLivello1ResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerFindManyLivello1Nomenclatore.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<NomenclatoreLivello1ResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerFindManyLivello1Nomenclatore.PATH =
|
||||||
|
'/nomenclatore/livello-1';
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreLivello2ResDto } from '../../models/nomenclatore-livello-2-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerFindManyLivello2Nomenclatore$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerFindManyLivello2Nomenclatore(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerFindManyLivello2Nomenclatore$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<NomenclatoreLivello2ResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerFindManyLivello2Nomenclatore.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<NomenclatoreLivello2ResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerFindManyLivello2Nomenclatore.PATH =
|
||||||
|
'/nomenclatore/livello-2';
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreLivello3ResDto } from '../../models/nomenclatore-livello-3-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerFindManyLivello3Nomenclatore$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerFindManyLivello3Nomenclatore(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerFindManyLivello3Nomenclatore$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<NomenclatoreLivello3ResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerFindManyLivello3Nomenclatore.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<NomenclatoreLivello3ResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerFindManyLivello3Nomenclatore.PATH =
|
||||||
|
'/nomenclatore/livello-3';
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreLivello4ResDto } from '../../models/nomenclatore-livello-4-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerFindManyLivello4Nomenclatore$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerFindManyLivello4Nomenclatore(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerFindManyLivello4Nomenclatore$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<NomenclatoreLivello4ResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerFindManyLivello4Nomenclatore.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<NomenclatoreLivello4ResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerFindManyLivello4Nomenclatore.PATH =
|
||||||
|
'/nomenclatore/livello-4';
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreExcerptRes } from '../../models/nomenclatore-excerpt-res';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerFindManyNomenclatore$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerFindManyNomenclatore(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerFindManyNomenclatore$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<NomenclatoreExcerptRes>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerFindManyNomenclatore.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<NomenclatoreExcerptRes>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerFindManyNomenclatore.PATH = '/nomenclatore';
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { TipoPrestazioneResDto } from '../../models/tipo-prestazione-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerFindManyTipiPrestazione$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerFindManyTipiPrestazione(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerFindManyTipiPrestazione$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<TipoPrestazioneResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerFindManyTipiPrestazione.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<TipoPrestazioneResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerFindManyTipiPrestazione.PATH =
|
||||||
|
'/nomenclatore/tipi-prestazione';
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { TipoStrutturaResDto } from '../../models/tipo-struttura-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerFindManyTipiStruttura$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerFindManyTipiStruttura(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerFindManyTipiStruttura$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<TipoStrutturaResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerFindManyTipiStruttura.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<TipoStrutturaResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerFindManyTipiStruttura.PATH =
|
||||||
|
'/nomenclatore/tipi-struttura';
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { UnitaDiMisuraResDto } from '../../models/unita-di-misura-res-dto';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerFindManyUnitaDiMisura$Params {}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerFindManyUnitaDiMisura(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: NomenclatoreControllerFindManyUnitaDiMisura$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<UnitaDiMisuraResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerFindManyUnitaDiMisura.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<UnitaDiMisuraResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerFindManyUnitaDiMisura.PATH =
|
||||||
|
'/nomenclatore/unita-di-misura';
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreRes } from '../../models/nomenclatore-res';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerGetOneNomenclatoreById$Params {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerGetOneNomenclatoreById(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerGetOneNomenclatoreById$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreRes>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerGetOneNomenclatoreById.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreRes>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerGetOneNomenclatoreById.PATH = '/nomenclatore/id/{id}';
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreLivello1ResDto } from '../../models/nomenclatore-livello-1-res-dto';
|
||||||
|
import { UpdateNomenclatoreLivello1 } from '../../models/update-nomenclatore-livello-1';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerUpdateNomenclatoreLivello1$Params {
|
||||||
|
id: number;
|
||||||
|
body: UpdateNomenclatoreLivello1;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerUpdateNomenclatoreLivello1(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerUpdateNomenclatoreLivello1$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreLivello1ResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerUpdateNomenclatoreLivello1.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreLivello1ResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerUpdateNomenclatoreLivello1.PATH =
|
||||||
|
'/nomenclatore/livello-1/id/{id}';
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreLivello2ResDto } from '../../models/nomenclatore-livello-2-res-dto';
|
||||||
|
import { UpdateNomenclatoreLivello2 } from '../../models/update-nomenclatore-livello-2';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerUpdateNomenclatoreLivello2$Params {
|
||||||
|
id: number;
|
||||||
|
body: UpdateNomenclatoreLivello2;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerUpdateNomenclatoreLivello2(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerUpdateNomenclatoreLivello2$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreLivello2ResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerUpdateNomenclatoreLivello2.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreLivello2ResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerUpdateNomenclatoreLivello2.PATH =
|
||||||
|
'/nomenclatore/livello-2/id/{id}';
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreLivello3ResDto } from '../../models/nomenclatore-livello-3-res-dto';
|
||||||
|
import { UpdateNomenclatoreLivello3 } from '../../models/update-nomenclatore-livello-3';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerUpdateNomenclatoreLivello3$Params {
|
||||||
|
id: number;
|
||||||
|
body: UpdateNomenclatoreLivello3;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerUpdateNomenclatoreLivello3(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerUpdateNomenclatoreLivello3$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreLivello3ResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerUpdateNomenclatoreLivello3.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreLivello3ResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerUpdateNomenclatoreLivello3.PATH =
|
||||||
|
'/nomenclatore/livello-3/id/{id}';
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreLivello4ResDto } from '../../models/nomenclatore-livello-4-res-dto';
|
||||||
|
import { UpdateNomenclatoreLivello4 } from '../../models/update-nomenclatore-livello-4';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerUpdateNomenclatoreLivello4$Params {
|
||||||
|
id: number;
|
||||||
|
body: UpdateNomenclatoreLivello4;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerUpdateNomenclatoreLivello4(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerUpdateNomenclatoreLivello4$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreLivello4ResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerUpdateNomenclatoreLivello4.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreLivello4ResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerUpdateNomenclatoreLivello4.PATH =
|
||||||
|
'/nomenclatore/livello-4/id/{id}';
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { NomenclatoreRes } from '../../models/nomenclatore-res';
|
||||||
|
import { UpdateNomenclatore } from '../../models/update-nomenclatore';
|
||||||
|
|
||||||
|
export interface NomenclatoreControllerUpdateNomenclatore$Params {
|
||||||
|
id: number;
|
||||||
|
body: UpdateNomenclatore;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function nomenclatoreControllerUpdateNomenclatore(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: NomenclatoreControllerUpdateNomenclatore$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<NomenclatoreRes>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
nomenclatoreControllerUpdateNomenclatore.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<NomenclatoreRes>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
nomenclatoreControllerUpdateNomenclatore.PATH = '/nomenclatore/id/{id}';
|
||||||
35
src/api/fn/ping/app-controller-get-hello.ts
Normal file
35
src/api/fn/ping/app-controller-get-hello.ts
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
export interface AppControllerGetHello$Params {}
|
||||||
|
|
||||||
|
export function appControllerGetHello(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: AppControllerGetHello$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<string>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, appControllerGetHello.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<string>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
appControllerGetHello.PATH = '/';
|
||||||
44
src/api/fn/roles/roles-controller-delete-role-privilege.ts
Normal file
44
src/api/fn/roles/roles-controller-delete-role-privilege.ts
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { FindPrivilegeResDto } from '../../models/find-privilege-res-dto';
|
||||||
|
|
||||||
|
export interface RolesControllerDeleteRolePrivilege$Params {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function rolesControllerDeleteRolePrivilege(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: RolesControllerDeleteRolePrivilege$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<FindPrivilegeResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
rolesControllerDeleteRolePrivilege.PATH,
|
||||||
|
'delete',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<FindPrivilegeResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
rolesControllerDeleteRolePrivilege.PATH = '/admin/roles/privilege/id/{id}';
|
||||||
37
src/api/fn/roles/roles-controller-fetch-roles.ts
Normal file
37
src/api/fn/roles/roles-controller-fetch-roles.ts
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { FindRoleResDto } from '../../models/find-role-res-dto';
|
||||||
|
|
||||||
|
export interface RolesControllerFetchRoles$Params {}
|
||||||
|
|
||||||
|
export function rolesControllerFetchRoles(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: RolesControllerFetchRoles$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<FindRoleResDto>>> {
|
||||||
|
const rb = new RequestBuilder(rootUrl, rolesControllerFetchRoles.PATH, 'get');
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<FindRoleResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
rolesControllerFetchRoles.PATH = '/admin/roles';
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { FindActionResDto } from '../../models/find-action-res-dto';
|
||||||
|
|
||||||
|
export interface RolesControllerGetAvailableRolePrivileges$Params {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function rolesControllerGetAvailableRolePrivileges(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: RolesControllerGetAvailableRolePrivileges$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<FindActionResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
rolesControllerGetAvailableRolePrivileges.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<FindActionResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
rolesControllerGetAvailableRolePrivileges.PATH =
|
||||||
|
'/admin/roles/id/{id}/privileges/available';
|
||||||
44
src/api/fn/roles/roles-controller-get-role-privileges.ts
Normal file
44
src/api/fn/roles/roles-controller-get-role-privileges.ts
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { FindPrivilegeResDto } from '../../models/find-privilege-res-dto';
|
||||||
|
|
||||||
|
export interface RolesControllerGetRolePrivileges$Params {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function rolesControllerGetRolePrivileges(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: RolesControllerGetRolePrivileges$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<FindPrivilegeResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
rolesControllerGetRolePrivileges.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<FindPrivilegeResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
rolesControllerGetRolePrivileges.PATH = '/admin/roles/id/{id}/privileges';
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { EditPrivilegeFlagEnabledDto } from '../../models/edit-privilege-flag-enabled-dto';
|
||||||
|
import { FindPrivilegeResDto } from '../../models/find-privilege-res-dto';
|
||||||
|
|
||||||
|
export interface RolesControllerSetPrivilegeFlagEnabled$Params {
|
||||||
|
id: number;
|
||||||
|
body: EditPrivilegeFlagEnabledDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function rolesControllerSetPrivilegeFlagEnabled(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: RolesControllerSetPrivilegeFlagEnabled$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<FindPrivilegeResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
rolesControllerSetPrivilegeFlagEnabled.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<FindPrivilegeResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
rolesControllerSetPrivilegeFlagEnabled.PATH =
|
||||||
|
'/admin/roles/privilege/id/{id}/flag-enabled';
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { EditPrivilegeFlagReadonlyDto } from '../../models/edit-privilege-flag-readonly-dto';
|
||||||
|
import { FindPrivilegeResDto } from '../../models/find-privilege-res-dto';
|
||||||
|
|
||||||
|
export interface RolesControllerSetPrivilegeFlagReadonly$Params {
|
||||||
|
id: number;
|
||||||
|
body: EditPrivilegeFlagReadonlyDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function rolesControllerSetPrivilegeFlagReadonly(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: RolesControllerSetPrivilegeFlagReadonly$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<FindPrivilegeResDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
rolesControllerSetPrivilegeFlagReadonly.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<FindPrivilegeResDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
rolesControllerSetPrivilegeFlagReadonly.PATH =
|
||||||
|
'/admin/roles/privilege/id/{id}/flag-readonly';
|
||||||
47
src/api/fn/roles/roles-controller-set-role-privileges.ts
Normal file
47
src/api/fn/roles/roles-controller-set-role-privileges.ts
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { CreateActionsDto } from '../../models/create-actions-dto';
|
||||||
|
import { FindPrivilegeResDto } from '../../models/find-privilege-res-dto';
|
||||||
|
|
||||||
|
export interface RolesControllerSetRolePrivileges$Params {
|
||||||
|
id: number;
|
||||||
|
body: CreateActionsDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function rolesControllerSetRolePrivileges(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: RolesControllerSetRolePrivileges$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<FindPrivilegeResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
rolesControllerSetRolePrivileges.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<FindPrivilegeResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
rolesControllerSetRolePrivileges.PATH = '/admin/roles/id/{id}/privileges';
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { Stipulatore } from '../../models/stipulatore';
|
||||||
|
|
||||||
|
export interface StipulatoriControllerFindManyStipulatoriByAccount$Params {}
|
||||||
|
|
||||||
|
export function stipulatoriControllerFindManyStipulatoriByAccount(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: StipulatoriControllerFindManyStipulatoriByAccount$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<Stipulatore>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
stipulatoriControllerFindManyStipulatoriByAccount.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<Stipulatore>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
stipulatoriControllerFindManyStipulatoriByAccount.PATH =
|
||||||
|
'/stipulatori/by-accounts';
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { Stipulatore } from '../../models/stipulatore';
|
||||||
|
|
||||||
|
export interface StipulatoriControllerFindManyStipulatori$Params {}
|
||||||
|
|
||||||
|
export function stipulatoriControllerFindManyStipulatori(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: StipulatoriControllerFindManyStipulatori$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<Stipulatore>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
stipulatoriControllerFindManyStipulatori.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<Stipulatore>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
stipulatoriControllerFindManyStipulatori.PATH = '/stipulatori';
|
||||||
@ -0,0 +1,71 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { StrutturePubblicheResDto } from '../../models/strutture-pubbliche-res-dto';
|
||||||
|
|
||||||
|
export interface StrutturePubblicheControllerFindManyStrutture$Params {
|
||||||
|
/**
|
||||||
|
* Nome della struttura
|
||||||
|
*/
|
||||||
|
nome?: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indirizzo calcola distanza da
|
||||||
|
*/
|
||||||
|
indirizzo?: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Luogo calcola distanza da
|
||||||
|
*/
|
||||||
|
luogo?: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tipo luogo calcola distanza da
|
||||||
|
*/
|
||||||
|
'luogo.tipo'?: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tipo della struttura
|
||||||
|
*/
|
||||||
|
tipoStruttura?: string | null;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function strutturePubblicheControllerFindManyStrutture(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: StrutturePubblicheControllerFindManyStrutture$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<StrutturePubblicheResDto>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
strutturePubblicheControllerFindManyStrutture.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.query('nome', params.nome, {});
|
||||||
|
rb.query('indirizzo', params.indirizzo, {});
|
||||||
|
rb.query('luogo', params.luogo, {});
|
||||||
|
rb.query('luogo.tipo', params['luogo.tipo'], {});
|
||||||
|
rb.query('tipoStruttura', params.tipoStruttura, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<StrutturePubblicheResDto>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
strutturePubblicheControllerFindManyStrutture.PATH = '/public/strutture';
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { TipoStruttura } from '../../models/tipo-struttura';
|
||||||
|
|
||||||
|
export interface StrutturePubblicheControllerFindManyTipiStrutture$Params {}
|
||||||
|
|
||||||
|
export function strutturePubblicheControllerFindManyTipiStrutture(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: StrutturePubblicheControllerFindManyTipiStrutture$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<TipoStruttura>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
strutturePubblicheControllerFindManyTipiStrutture.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<TipoStruttura>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
strutturePubblicheControllerFindManyTipiStrutture.PATH =
|
||||||
|
'/public/strutture/tipi';
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { ConvenzioniStrutture } from '../../models/convenzioni-strutture';
|
||||||
|
import { CreateConvenzioneStruttura } from '../../models/create-convenzione-struttura';
|
||||||
|
|
||||||
|
export interface StruttureControllerCreateConvenzione$Params {
|
||||||
|
id: number;
|
||||||
|
body: CreateConvenzioneStruttura;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerCreateConvenzione(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerCreateConvenzione$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<ConvenzioniStrutture>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerCreateConvenzione.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<ConvenzioniStrutture>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerCreateConvenzione.PATH = '/id/{id}/convenzioni';
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { CreateStruttura } from '../../models/create-struttura';
|
||||||
|
import { Struttura } from '../../models/struttura';
|
||||||
|
|
||||||
|
export interface StruttureControllerCreateStruttura$Params {
|
||||||
|
body: CreateStruttura;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerCreateStruttura(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerCreateStruttura$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Struttura>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerCreateStruttura.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Struttura>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerCreateStruttura.PATH = '/add';
|
||||||
@ -0,0 +1,49 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { GenericMessageDto } from '../../models/generic-message-dto';
|
||||||
|
|
||||||
|
export interface StruttureControllerDeleteAllegatoConvenzione$Params {
|
||||||
|
id: number;
|
||||||
|
idConvenzione: number;
|
||||||
|
fileName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerDeleteAllegatoConvenzione(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerDeleteAllegatoConvenzione$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<GenericMessageDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerDeleteAllegatoConvenzione.PATH,
|
||||||
|
'delete',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.path('idConvenzione', params.idConvenzione, {});
|
||||||
|
rb.path('fileName', params.fileName, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<GenericMessageDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerDeleteAllegatoConvenzione.PATH =
|
||||||
|
'/id/{id}/allegati/convenzioni/{idConvenzione}/delete/{fileName}';
|
||||||
@ -0,0 +1,49 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { DownloadFile } from '../../models/download-file';
|
||||||
|
|
||||||
|
export interface StruttureControllerDownloadAllegatoConvenzione$Params {
|
||||||
|
id: number;
|
||||||
|
idConvenzione: number;
|
||||||
|
fileName: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerDownloadAllegatoConvenzione(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerDownloadAllegatoConvenzione$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<DownloadFile>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerDownloadAllegatoConvenzione.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.path('idConvenzione', params.idConvenzione, {});
|
||||||
|
rb.path('fileName', params.fileName, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<DownloadFile>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerDownloadAllegatoConvenzione.PATH =
|
||||||
|
'/id/{id}/allegati/convenzioni/{idConvenzione}/download/{fileName}';
|
||||||
@ -0,0 +1,43 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
export interface StruttureControllerExportStrutture$Params {}
|
||||||
|
|
||||||
|
export function struttureControllerExportStrutture(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: StruttureControllerExportStrutture$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Blob>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerExportStrutture.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({
|
||||||
|
responseType: 'blob',
|
||||||
|
accept: 'application/octet-stream',
|
||||||
|
context,
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Blob>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerExportStrutture.PATH = '/export';
|
||||||
@ -0,0 +1,53 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { StrutturaExcerptRes } from '../../models/struttura-excerpt-res';
|
||||||
|
|
||||||
|
export interface StruttureControllerFindManyStruttureByAutocomplete$Params {
|
||||||
|
/**
|
||||||
|
* Se true restituisce solo le struttureMadri
|
||||||
|
*/
|
||||||
|
flagOnlyStrutturaMadre?: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Search query for places, must be at least 3 characters long
|
||||||
|
*/
|
||||||
|
q: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerFindManyStruttureByAutocomplete(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerFindManyStruttureByAutocomplete$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<StrutturaExcerptRes>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerFindManyStruttureByAutocomplete.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.query('flagOnlyStrutturaMadre', params.flagOnlyStrutturaMadre, {});
|
||||||
|
rb.query('q', params.q, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<StrutturaExcerptRes>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerFindManyStruttureByAutocomplete.PATH = '/';
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { FindStrutture } from '../../models/find-strutture';
|
||||||
|
import { StrutturaExcerptRes } from '../../models/struttura-excerpt-res';
|
||||||
|
|
||||||
|
export interface StruttureControllerFindManyStrutture$Params {
|
||||||
|
body: FindStrutture;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerFindManyStrutture(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerFindManyStrutture$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<StrutturaExcerptRes>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerFindManyStrutture.PATH,
|
||||||
|
'post',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<StrutturaExcerptRes>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerFindManyStrutture.PATH = '/';
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { TipoGestione } from '../../models/tipo-gestione';
|
||||||
|
|
||||||
|
export interface StruttureControllerFindManyTipiGestioni$Params {}
|
||||||
|
|
||||||
|
export function struttureControllerFindManyTipiGestioni(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: StruttureControllerFindManyTipiGestioni$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<TipoGestione>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerFindManyTipiGestioni.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<TipoGestione>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerFindManyTipiGestioni.PATH = '/tipi-gestioni';
|
||||||
@ -0,0 +1,41 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { TipoStruttura } from '../../models/tipo-struttura';
|
||||||
|
|
||||||
|
export interface StruttureControllerFindManyTipiStrutture$Params {}
|
||||||
|
|
||||||
|
export function struttureControllerFindManyTipiStrutture(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params?: StruttureControllerFindManyTipiStrutture$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<TipoStruttura>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerFindManyTipiStrutture.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<TipoStruttura>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerFindManyTipiStrutture.PATH = '/tipi-strutture';
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { FileDetails } from '../../models/file-details';
|
||||||
|
|
||||||
|
export interface StruttureControllerGetAllegatiConvenzione$Params {
|
||||||
|
id: number;
|
||||||
|
idConvenzione: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerGetAllegatiConvenzione(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerGetAllegatiConvenzione$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<FileDetails>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerGetAllegatiConvenzione.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.path('idConvenzione', params.idConvenzione, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<FileDetails>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerGetAllegatiConvenzione.PATH =
|
||||||
|
'/id/{id}/allegati/convenzioni/{idConvenzione}';
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { ConvenzioniStrutture } from '../../models/convenzioni-strutture';
|
||||||
|
|
||||||
|
export interface StruttureControllerGetConvenzioniByStrutturaId$Params {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerGetConvenzioniByStrutturaId(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerGetConvenzioniByStrutturaId$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<ConvenzioniStrutture>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerGetConvenzioniByStrutturaId.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<ConvenzioniStrutture>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerGetConvenzioniByStrutturaId.PATH = '/id/{id}/convenzioni';
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { Struttura } from '../../models/struttura';
|
||||||
|
|
||||||
|
export interface StruttureControllerGetOneStrutturaById$Params {
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerGetOneStrutturaById(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerGetOneStrutturaById$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Struttura>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerGetOneStrutturaById.PATH,
|
||||||
|
'get',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Struttura>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerGetOneStrutturaById.PATH = '/id/{id}';
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { ConvenzioniStrutture } from '../../models/convenzioni-strutture';
|
||||||
|
import { UpdateConvenzioneStruttura } from '../../models/update-convenzione-struttura';
|
||||||
|
|
||||||
|
export interface StruttureControllerUpdateConvenzione$Params {
|
||||||
|
id: number;
|
||||||
|
idConvenzione: number;
|
||||||
|
body: UpdateConvenzioneStruttura;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerUpdateConvenzione(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerUpdateConvenzione$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<ConvenzioniStrutture>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerUpdateConvenzione.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.path('idConvenzione', params.idConvenzione, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<ConvenzioniStrutture>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerUpdateConvenzione.PATH =
|
||||||
|
'/id/{id}/convenzioni/{idConvenzione}';
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { Struttura } from '../../models/struttura';
|
||||||
|
import { UpdateStruttura } from '../../models/update-struttura';
|
||||||
|
|
||||||
|
export interface StruttureControllerUpdateStruttura$Params {
|
||||||
|
id: number;
|
||||||
|
body: UpdateStruttura;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerUpdateStruttura(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerUpdateStruttura$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Struttura>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerUpdateStruttura.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Struttura>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerUpdateStruttura.PATH = '/id/{id}';
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { UpdateVisibilitaStruttura } from '../../models/update-visibilita-struttura';
|
||||||
|
import { VisibilitaStruttura } from '../../models/visibilita-struttura';
|
||||||
|
|
||||||
|
export interface StruttureControllerUpdateVisibilitaStruttura$Params {
|
||||||
|
id: number;
|
||||||
|
body: UpdateVisibilitaStruttura;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerUpdateVisibilitaStruttura(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerUpdateVisibilitaStruttura$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<Array<VisibilitaStruttura>>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerUpdateVisibilitaStruttura.PATH,
|
||||||
|
'patch',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.body(params.body, 'application/json');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<Array<VisibilitaStruttura>>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerUpdateVisibilitaStruttura.PATH = '/id/{id}/visibilita';
|
||||||
50
src/api/fn/strutture/strutture-controller-upload-files.ts
Normal file
50
src/api/fn/strutture/strutture-controller-upload-files.ts
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { HttpClient, HttpContext, HttpResponse } from '@angular/common/http';
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
import { filter, map } from 'rxjs/operators';
|
||||||
|
import { StrictHttpResponse } from '../../strict-http-response';
|
||||||
|
import { RequestBuilder } from '../../request-builder';
|
||||||
|
|
||||||
|
import { FilesUploadDto } from '../../models/files-upload-dto';
|
||||||
|
import { GenericMessageDto } from '../../models/generic-message-dto';
|
||||||
|
|
||||||
|
export interface StruttureControllerUploadFiles$Params {
|
||||||
|
id: number;
|
||||||
|
idConvenzione: number;
|
||||||
|
body: FilesUploadDto;
|
||||||
|
}
|
||||||
|
|
||||||
|
export function struttureControllerUploadFiles(
|
||||||
|
http: HttpClient,
|
||||||
|
rootUrl: string,
|
||||||
|
params: StruttureControllerUploadFiles$Params,
|
||||||
|
context?: HttpContext,
|
||||||
|
): Observable<StrictHttpResponse<GenericMessageDto>> {
|
||||||
|
const rb = new RequestBuilder(
|
||||||
|
rootUrl,
|
||||||
|
struttureControllerUploadFiles.PATH,
|
||||||
|
'put',
|
||||||
|
);
|
||||||
|
if (params) {
|
||||||
|
rb.path('id', params.id, {});
|
||||||
|
rb.path('idConvenzione', params.idConvenzione, {});
|
||||||
|
rb.body(params.body, 'multipart/form-data');
|
||||||
|
}
|
||||||
|
|
||||||
|
return http
|
||||||
|
.request(
|
||||||
|
rb.build({ responseType: 'json', accept: 'application/json', context }),
|
||||||
|
)
|
||||||
|
.pipe(
|
||||||
|
filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse),
|
||||||
|
map((r: HttpResponse<any>) => {
|
||||||
|
return r as StrictHttpResponse<GenericMessageDto>;
|
||||||
|
}),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
struttureControllerUploadFiles.PATH =
|
||||||
|
'/id/{id}/allegati/convenzioni/{idConvenzione}/upload';
|
||||||
82
src/api/models.ts
Normal file
82
src/api/models.ts
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export type { AccountDto } from './models/account-dto';
|
||||||
|
export type { AccountResDto } from './models/account-res-dto';
|
||||||
|
export type { BufferJson } from './models/buffer-json';
|
||||||
|
export type { CategoriaPrestazioneResDto } from './models/categoria-prestazione-res-dto';
|
||||||
|
export type { CodiceLuogo } from './models/codice-luogo';
|
||||||
|
export type { CodiceLuogoExcerptResDto } from './models/codice-luogo-excerpt-res-dto';
|
||||||
|
export type { ConvenzioniStrutture } from './models/convenzioni-strutture';
|
||||||
|
export type { CreateAccountDto } from './models/create-account-dto';
|
||||||
|
export type { CreateActionsDto } from './models/create-actions-dto';
|
||||||
|
export type { CreateConvenzioneStruttura } from './models/create-convenzione-struttura';
|
||||||
|
export type { CreateNomenclatore } from './models/create-nomenclatore';
|
||||||
|
export type { CreateNomenclatoreLivello1 } from './models/create-nomenclatore-livello-1';
|
||||||
|
export type { CreateNomenclatoreLivello2 } from './models/create-nomenclatore-livello-2';
|
||||||
|
export type { CreateNomenclatoreLivello3 } from './models/create-nomenclatore-livello-3';
|
||||||
|
export type { CreateNomenclatoreLivello4 } from './models/create-nomenclatore-livello-4';
|
||||||
|
export type { CreateStruttura } from './models/create-struttura';
|
||||||
|
export type { DownloadFile } from './models/download-file';
|
||||||
|
export type { EditAccountDto } from './models/edit-account-dto';
|
||||||
|
export type { EditAccountStipulatoriDto } from './models/edit-account-stipulatori-dto';
|
||||||
|
export type { EditAnagraficaPersonaleDto } from './models/edit-anagrafica-personale-dto';
|
||||||
|
export type { EditPasswordDto } from './models/edit-password-dto';
|
||||||
|
export type { EditPasswordPersonaleDto } from './models/edit-password-personale-dto';
|
||||||
|
export type { EditPrivilegeFlagEnabledDto } from './models/edit-privilege-flag-enabled-dto';
|
||||||
|
export type { EditPrivilegeFlagReadonlyDto } from './models/edit-privilege-flag-readonly-dto';
|
||||||
|
export type { ElementiResDto } from './models/elementi-res-dto';
|
||||||
|
export type { FileDetails } from './models/file-details';
|
||||||
|
export type { FilesUploadDto } from './models/files-upload-dto';
|
||||||
|
export type { FiltriStrutture } from './models/filtri-strutture';
|
||||||
|
export type { FindAccountResDto } from './models/find-account-res-dto';
|
||||||
|
export type { FindAccountsResDto } from './models/find-accounts-res-dto';
|
||||||
|
export type { FindAccountStatusResDto } from './models/find-account-status-res-dto';
|
||||||
|
export type { FindAccountStipulatoriResDto } from './models/find-account-stipulatori-res-dto';
|
||||||
|
export type { FindActionResDto } from './models/find-action-res-dto';
|
||||||
|
export type { FindLuogoAutocomplete } from './models/find-luogo-autocomplete';
|
||||||
|
export type { FindPrivilegeResDto } from './models/find-privilege-res-dto';
|
||||||
|
export type { FindProfileResDto } from './models/find-profile-res-dto';
|
||||||
|
export type { FindRoleResDto } from './models/find-role-res-dto';
|
||||||
|
export type { FindStatusResDto } from './models/find-status-res-dto';
|
||||||
|
export type { FindStrutture } from './models/find-strutture';
|
||||||
|
export type { Function } from './models/function';
|
||||||
|
export type { GenericMessageDto } from './models/generic-message-dto';
|
||||||
|
export type { GetPrivilegesResDto } from './models/get-privileges-res-dto';
|
||||||
|
export type { GetRolesResDto } from './models/get-roles-res-dto';
|
||||||
|
export type { LatLng } from './models/lat-lng';
|
||||||
|
export type { LazyLoadEventDto } from './models/lazy-load-event-dto';
|
||||||
|
export type { LazyLoadEventParametersDto } from './models/lazy-load-event-parameters-dto';
|
||||||
|
export type { LinkVerificationDto } from './models/link-verification-dto';
|
||||||
|
export type { LuogoRes } from './models/luogo-res';
|
||||||
|
export type { NomenclatoreExcerptRes } from './models/nomenclatore-excerpt-res';
|
||||||
|
export type { NomenclatoreLivello1ResDto } from './models/nomenclatore-livello-1-res-dto';
|
||||||
|
export type { NomenclatoreLivello2ResDto } from './models/nomenclatore-livello-2-res-dto';
|
||||||
|
export type { NomenclatoreLivello3ResDto } from './models/nomenclatore-livello-3-res-dto';
|
||||||
|
export type { NomenclatoreLivello4ResDto } from './models/nomenclatore-livello-4-res-dto';
|
||||||
|
export type { NomenclatoreRes } from './models/nomenclatore-res';
|
||||||
|
export type { RecoveryDto } from './models/recovery-dto';
|
||||||
|
export type { SortMetaDto } from './models/sort-meta-dto';
|
||||||
|
export type { Stipulatore } from './models/stipulatore';
|
||||||
|
export type { Struttura } from './models/struttura';
|
||||||
|
export type { StrutturaExcerptRes } from './models/struttura-excerpt-res';
|
||||||
|
export type { StrutturaMadre } from './models/struttura-madre';
|
||||||
|
export type { StrutturaTipoStruttura } from './models/struttura-tipo-struttura';
|
||||||
|
export type { StrutturePubblicheExcerptResDto } from './models/strutture-pubbliche-excerpt-res-dto';
|
||||||
|
export type { StrutturePubblicheResDto } from './models/strutture-pubbliche-res-dto';
|
||||||
|
export type { TipoGestione } from './models/tipo-gestione';
|
||||||
|
export type { TipoPrestazioneResDto } from './models/tipo-prestazione-res-dto';
|
||||||
|
export type { TipoStruttura } from './models/tipo-struttura';
|
||||||
|
export type { TipoStrutturaResDto } from './models/tipo-struttura-res-dto';
|
||||||
|
export type { UnitaDiMisuraResDto } from './models/unita-di-misura-res-dto';
|
||||||
|
export type { UpdateConvenzioneStruttura } from './models/update-convenzione-struttura';
|
||||||
|
export type { UpdateNomenclatore } from './models/update-nomenclatore';
|
||||||
|
export type { UpdateNomenclatoreLivello1 } from './models/update-nomenclatore-livello-1';
|
||||||
|
export type { UpdateNomenclatoreLivello2 } from './models/update-nomenclatore-livello-2';
|
||||||
|
export type { UpdateNomenclatoreLivello3 } from './models/update-nomenclatore-livello-3';
|
||||||
|
export type { UpdateNomenclatoreLivello4 } from './models/update-nomenclatore-livello-4';
|
||||||
|
export type { UpdateStruttura } from './models/update-struttura';
|
||||||
|
export type { UpdateVisibilitaStruttura } from './models/update-visibilita-struttura';
|
||||||
|
export type { VisibilitaStruttura } from './models/visibilita-struttura';
|
||||||
|
export type { VisibilitaStrutturaDto } from './models/visibilita-struttura-dto';
|
||||||
17
src/api/models/account-dto.ts
Normal file
17
src/api/models/account-dto.ts
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface AccountDto {
|
||||||
|
/**
|
||||||
|
* The password for the account
|
||||||
|
* The password must be at least 8 characters long, containing at least one lowercase letter, one uppercase letter, one number, and one special character
|
||||||
|
*/
|
||||||
|
password: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The username of the account
|
||||||
|
* Must be a valid email address
|
||||||
|
*/
|
||||||
|
username: string;
|
||||||
|
}
|
||||||
61
src/api/models/account-res-dto.ts
Normal file
61
src/api/models/account-res-dto.ts
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
import { FindStatusResDto } from '../models/find-status-res-dto';
|
||||||
|
import { GetPrivilegesResDto } from '../models/get-privileges-res-dto';
|
||||||
|
import { GetRolesResDto } from '../models/get-roles-res-dto';
|
||||||
|
export interface AccountResDto {
|
||||||
|
/**
|
||||||
|
* The account creation date, can be null
|
||||||
|
*/
|
||||||
|
creationDate: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The account expiration date, can be null
|
||||||
|
*/
|
||||||
|
expireDate: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The first name of the user, can be null
|
||||||
|
*/
|
||||||
|
firstName: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The last login date of the user, can be null
|
||||||
|
*/
|
||||||
|
lastLogin: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The last name of the user, can be null
|
||||||
|
*/
|
||||||
|
lastName: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A list of user's privileges
|
||||||
|
* @type GetPrivilegesResDto[]
|
||||||
|
*/
|
||||||
|
privileges: Array<GetPrivilegesResDto>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A list of user's roles
|
||||||
|
* @type GetRolesResDto[]
|
||||||
|
*/
|
||||||
|
roles: Array<GetRolesResDto>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The status of the account
|
||||||
|
* @type FindStatusResDto
|
||||||
|
*/
|
||||||
|
status: FindStatusResDto;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The user's access token
|
||||||
|
*/
|
||||||
|
token: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The username of the account
|
||||||
|
*/
|
||||||
|
username: string;
|
||||||
|
}
|
||||||
15
src/api/models/buffer-json.ts
Normal file
15
src/api/models/buffer-json.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface BufferJson {
|
||||||
|
/**
|
||||||
|
* array buffer
|
||||||
|
*/
|
||||||
|
data: Array<number>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* type of the buffer
|
||||||
|
*/
|
||||||
|
type: string;
|
||||||
|
}
|
||||||
20
src/api/models/categoria-prestazione-res-dto.ts
Normal file
20
src/api/models/categoria-prestazione-res-dto.ts
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface CategoriaPrestazioneResDto {
|
||||||
|
/**
|
||||||
|
* Codice categoria-prestazione
|
||||||
|
*/
|
||||||
|
codice: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Descrizione categoria-prestazione
|
||||||
|
*/
|
||||||
|
descrizione: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unique identifier for categoria-prestazione
|
||||||
|
*/
|
||||||
|
id: number;
|
||||||
|
}
|
||||||
20
src/api/models/codice-luogo-excerpt-res-dto.ts
Normal file
20
src/api/models/codice-luogo-excerpt-res-dto.ts
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface CodiceLuogoExcerptResDto {
|
||||||
|
/**
|
||||||
|
* Name of the municipality
|
||||||
|
*/
|
||||||
|
comune: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Full name of the province
|
||||||
|
*/
|
||||||
|
provincia: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abbreviation of the province
|
||||||
|
*/
|
||||||
|
siglaProvincia: string;
|
||||||
|
}
|
||||||
50
src/api/models/codice-luogo.ts
Normal file
50
src/api/models/codice-luogo.ts
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
/* tslint:disable */
|
||||||
|
/* eslint-disable */
|
||||||
|
/* Code generated by ng-openapi-gen DO NOT EDIT. */
|
||||||
|
|
||||||
|
export interface CodiceLuogo {
|
||||||
|
/**
|
||||||
|
* Unique code identifying the place
|
||||||
|
*/
|
||||||
|
codice: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code identifying the region
|
||||||
|
*/
|
||||||
|
codiceRegione: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Code identifying the state
|
||||||
|
*/
|
||||||
|
codiceStato: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the municipality
|
||||||
|
*/
|
||||||
|
comune: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates whether the location is active (1 = active, 0 = inactive)
|
||||||
|
*/
|
||||||
|
flagAttivo: boolean;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Full name of the province
|
||||||
|
*/
|
||||||
|
provincia: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the region
|
||||||
|
*/
|
||||||
|
regione: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abbreviation of the province
|
||||||
|
*/
|
||||||
|
siglaProvincia: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name of the state
|
||||||
|
*/
|
||||||
|
stato: string;
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user