deleted notifs components
This commit is contained in:
Generated
+8
-4
@@ -28,6 +28,7 @@
|
|||||||
"@angular/build": "^20.3.9",
|
"@angular/build": "^20.3.9",
|
||||||
"@angular/cli": "^20.3.9",
|
"@angular/cli": "^20.3.9",
|
||||||
"@angular/compiler-cli": "^20.3.0",
|
"@angular/compiler-cli": "^20.3.0",
|
||||||
|
"baseline-browser-mapping": "^2.10.32",
|
||||||
"less": "^4.2.0",
|
"less": "^4.2.0",
|
||||||
"typescript": "~5.9.2"
|
"typescript": "~5.9.2"
|
||||||
}
|
}
|
||||||
@@ -4315,13 +4316,16 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/baseline-browser-mapping": {
|
"node_modules/baseline-browser-mapping": {
|
||||||
"version": "2.8.27",
|
"version": "2.10.32",
|
||||||
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.27.tgz",
|
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.32.tgz",
|
||||||
"integrity": "sha512-2CXFpkjVnY2FT+B6GrSYxzYf65BJWEqz5tIRHCvNsZZ2F3CmsCB37h8SpYgKG7y9C4YAeTipIPWG7EmFmhAeXA==",
|
"integrity": "sha512-wbPvpyjJPC0zdfdKXxqEL3Ea+bOMD/87X4lftiJkkaBiuG6ALQy1SLmEd7BSmVCuwCQsBrCamgBoLyfFDD1EPg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"bin": {
|
"bin": {
|
||||||
"baseline-browser-mapping": "dist/cli.js"
|
"baseline-browser-mapping": "dist/cli.cjs"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/basic-ftp": {
|
"node_modules/basic-ftp": {
|
||||||
|
|||||||
+2
-2
@@ -6,8 +6,7 @@
|
|||||||
"start": "ng serve",
|
"start": "ng serve",
|
||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"watch": "ng build --watch --configuration development",
|
"watch": "ng build --watch --configuration development",
|
||||||
"openapi": "rm -rf src/app/services/api && openapi-generator-cli generate -i http://localhost:5298/swagger/v1/swagger.json -g typescript-angular -o src/app/services/api -c openapi-generator.yaml",
|
"openapi": "rimraf src/app/services/api && openapi-generator-cli generate -i http://localhost:5298/swagger/v1/swagger.json -g typescript-angular -o src/app/services/api -c openapi-generator.yaml"
|
||||||
"openapiWin": "set JAVA_TOOL_OPTIONS=-Dcom.sun.net.ssl.checkRevocation=false -Djavax.net.ssl.trustStoreType=WINDOWS-ROOT && openapi-generator-cli generate -i https://localhost:44379/swagger/v1/swagger.json -g typescript-angular -o src/app/services/api -c openapi-generator.yaml\n"
|
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
@@ -43,6 +42,7 @@
|
|||||||
"@angular/build": "^20.3.9",
|
"@angular/build": "^20.3.9",
|
||||||
"@angular/cli": "^20.3.9",
|
"@angular/cli": "^20.3.9",
|
||||||
"@angular/compiler-cli": "^20.3.0",
|
"@angular/compiler-cli": "^20.3.0",
|
||||||
|
"baseline-browser-mapping": "^2.10.32",
|
||||||
"less": "^4.2.0",
|
"less": "^4.2.0",
|
||||||
"typescript": "~5.9.2"
|
"typescript": "~5.9.2"
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-12
@@ -1,19 +1,19 @@
|
|||||||
import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
|
import {ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection} from '@angular/core';
|
||||||
import { provideRouter } from '@angular/router';
|
import {provideRouter} from '@angular/router';
|
||||||
|
|
||||||
import { routes } from './app.routes';
|
import {routes} from './app.routes';
|
||||||
import { fr_FR, provideNzI18n } from 'ng-zorro-antd/i18n';
|
import {fr_FR, provideNzI18n} from 'ng-zorro-antd/i18n';
|
||||||
import { registerLocaleData } from '@angular/common';
|
import {registerLocaleData} from '@angular/common';
|
||||||
import fr from '@angular/common/locales/fr';
|
import fr from '@angular/common/locales/fr';
|
||||||
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
|
||||||
import { provideHttpClient } from '@angular/common/http';
|
import {provideHttpClient} from '@angular/common/http';
|
||||||
|
|
||||||
registerLocaleData(fr);
|
registerLocaleData(fr);
|
||||||
|
|
||||||
export const appConfig: ApplicationConfig = {
|
export const appConfig: ApplicationConfig = {
|
||||||
providers: [
|
providers: [
|
||||||
provideBrowserGlobalErrorListeners(),
|
provideBrowserGlobalErrorListeners(),
|
||||||
provideZoneChangeDetection({ eventCoalescing: true }),
|
provideZoneChangeDetection({eventCoalescing: true}),
|
||||||
provideRouter(routes), provideNzI18n(fr_FR), provideAnimationsAsync(), provideHttpClient()
|
provideRouter(routes), provideNzI18n(fr_FR), provideAnimationsAsync(), provideHttpClient()
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
+3
-6
@@ -5,9 +5,9 @@
|
|||||||
<div class="logo">
|
<div class="logo">
|
||||||
<a routerLink="/welcome">
|
<a routerLink="/welcome">
|
||||||
<img
|
<img
|
||||||
src="https://www.pyro-fetes.com/wp-content/themes/pcptheme/img/logo-pyro-fetes-OR-top.png"
|
src="https://www.pyro-fetes.com/wp-content/themes/pcptheme/img/logo-pyro-fetes-OR-top.png"
|
||||||
alt="logo"
|
alt="logo"
|
||||||
style="width: 100px; height: auto"
|
style="width: 100px; height: auto"
|
||||||
/>
|
/>
|
||||||
<h1 class="text-amber-300">PYRO FÊTES</h1>
|
<h1 class="text-amber-300">PYRO FÊTES</h1>
|
||||||
</a>
|
</a>
|
||||||
@@ -69,9 +69,6 @@
|
|||||||
|
|
||||||
<!-- ICONES À DROITE -->
|
<!-- ICONES À DROITE -->
|
||||||
<div class="right-icons">
|
<div class="right-icons">
|
||||||
<app-modal-nav nameIcon="bell" name="Notification">
|
|
||||||
<app-notif-list></app-notif-list>
|
|
||||||
</app-modal-nav>
|
|
||||||
<app-modal-nav nameIcon="user" name="Profil">
|
<app-modal-nav nameIcon="user" name="Profil">
|
||||||
<app-profil></app-profil>
|
<app-profil></app-profil>
|
||||||
</app-modal-nav>
|
</app-modal-nav>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Routes } from '@angular/router';
|
import {Routes} from '@angular/router';
|
||||||
|
|
||||||
export const routes: Routes = [
|
export const routes: Routes = [
|
||||||
{
|
{
|
||||||
|
|||||||
+9
-9
@@ -1,17 +1,17 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {RouterLink, RouterLinkActive, RouterOutlet} from '@angular/router';
|
import {RouterLink, RouterLinkActive, RouterOutlet} from '@angular/router';
|
||||||
import { NzLayoutModule } from 'ng-zorro-antd/layout';
|
import {NzLayoutModule} from 'ng-zorro-antd/layout';
|
||||||
import { NzMenuModule } from 'ng-zorro-antd/menu';
|
import {NzMenuModule} from 'ng-zorro-antd/menu';
|
||||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||||
import {ModalNav} from "./components/modal-nav/modal-nav";
|
import {ModalNav} from "./components/modal-nav/modal-nav";
|
||||||
import {Profil} from "./components/profil/profil";
|
import {Profil} from "./components/profil/profil";
|
||||||
import {NotifList} from "./components/notif-list/notif-list";
|
|
||||||
import {SettingForm} from "./components/setting-form/setting-form";
|
import {SettingForm} from "./components/setting-form/setting-form";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
imports: [RouterOutlet, NzLayoutModule, NzMenuModule, NzIconDirective, RouterLinkActive, RouterLink, ModalNav, Profil, NotifList, SettingForm],
|
imports: [RouterOutlet, NzLayoutModule, NzMenuModule, NzIconDirective, RouterLinkActive, RouterLink, ModalNav, Profil, SettingForm],
|
||||||
templateUrl: './app.html',
|
templateUrl: './app.html',
|
||||||
styleUrl: './app.css'
|
styleUrl: './app.css'
|
||||||
})
|
})
|
||||||
export class App {}
|
export class App {
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {FormBuilder, FormGroup, FormArray, Validators, ReactiveFormsModule, FormControl} from '@angular/forms';
|
import {FormBuilder, FormGroup, FormArray, Validators, ReactiveFormsModule, FormControl} from '@angular/forms';
|
||||||
import { GetProductDto } from '../../services/api';
|
import {GetProductDto} from '../../services/api';
|
||||||
import {NzTableComponent} from "ng-zorro-antd/table";
|
import {NzTableComponent} from "ng-zorro-antd/table";
|
||||||
import {NzInputNumberComponent} from "ng-zorro-antd/input-number";
|
import {NzInputNumberComponent} from "ng-zorro-antd/input-number";
|
||||||
import {NzColDirective} from "ng-zorro-antd/grid";
|
import {NzColDirective} from "ng-zorro-antd/grid";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {
|
import {
|
||||||
FormArray,
|
FormArray,
|
||||||
FormBuilder,
|
FormBuilder,
|
||||||
@@ -17,7 +17,7 @@ import {NzTableComponent} from "ng-zorro-antd/table";
|
|||||||
import {GetProductDto} from "../../services/api";
|
import {GetProductDto} from "../../services/api";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-create-quotation-form',
|
selector: 'app-create-quotation-form',
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NzColDirective,
|
NzColDirective,
|
||||||
@@ -30,8 +30,8 @@ import {GetProductDto} from "../../services/api";
|
|||||||
NzTableComponent,
|
NzTableComponent,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule
|
||||||
],
|
],
|
||||||
templateUrl: './create-quotation-form.html',
|
templateUrl: './create-quotation-form.html',
|
||||||
styleUrl: './create-quotation-form.css',
|
styleUrl: './create-quotation-form.css',
|
||||||
})
|
})
|
||||||
export class CreateQuotationForm {
|
export class CreateQuotationForm {
|
||||||
createQuotationForm: FormGroup
|
createQuotationForm: FormGroup
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {FormControl, FormGroup, ReactiveFormsModule, Validators} from "@angular/
|
|||||||
import {GetDelivererDto} from "../../services/api";
|
import {GetDelivererDto} from "../../services/api";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-deliverer-form',
|
selector: 'app-deliverer-form',
|
||||||
imports: [
|
imports: [
|
||||||
NzColDirective,
|
NzColDirective,
|
||||||
NzFlexDirective,
|
NzFlexDirective,
|
||||||
@@ -18,15 +18,16 @@ import {GetDelivererDto} from "../../services/api";
|
|||||||
NzInputDirective,
|
NzInputDirective,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule
|
||||||
],
|
],
|
||||||
templateUrl: './deliverer-form.html',
|
templateUrl: './deliverer-form.html',
|
||||||
styleUrl: './deliverer-form.css',
|
styleUrl: './deliverer-form.css',
|
||||||
})
|
})
|
||||||
export class DelivererForm {
|
export class DelivererForm {
|
||||||
delivererForm: FormGroup = new FormGroup({
|
delivererForm: FormGroup = new FormGroup({
|
||||||
transporter: new FormControl<string>(null, [Validators.required])
|
transporter: new FormControl<string>(null, [Validators.required])
|
||||||
})
|
})
|
||||||
|
|
||||||
deliverer= input<GetDelivererDto>();
|
deliverer = input<GetDelivererDto>();
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (this.deliverer()) {
|
if (this.deliverer()) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ nz-table {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
|||||||
nz-table thead {
|
nz-table thead {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody tr {
|
nz-table tbody tr {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td {
|
nz-table tbody td {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td::before {
|
nz-table tbody td::before {
|
||||||
content: attr(data-label);
|
content: attr(data-label);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<nz-table [nzData]="deliverers()"
|
<nz-table [nzData]="deliverers()"
|
||||||
[nzFrontPagination]="false"
|
[nzFrontPagination]="false"
|
||||||
[nzLoading]="deliverersLoading()">
|
[nzLoading]="deliverersLoading()">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="text-center">
|
<tr class="text-center">
|
||||||
<th>Transporteur</th>
|
<th>Transporteur</th>
|
||||||
@@ -11,12 +11,12 @@
|
|||||||
<tbody class="text-center">
|
<tbody class="text-center">
|
||||||
@for (deliverer of deliverers(); track deliverer.id) {
|
@for (deliverer of deliverers(); track deliverer.id) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{deliverer.transporter}}</td>
|
<td>{{ deliverer.transporter }}</td>
|
||||||
<td>
|
<td>
|
||||||
<app-modal-button type="link" name="Voir tout les bons de livraison" size="50%">
|
<app-modal-button type="link" name="Voir tout les bons de livraison" size="50%">
|
||||||
<div style="max-height: 400px; overflow-y: auto;">
|
<div style="max-height: 400px; overflow-y: auto;">
|
||||||
<nz-table [nzData]="deliverers()"
|
<nz-table [nzData]="deliverers()"
|
||||||
[nzFrontPagination]="false">
|
[nzFrontPagination]="false">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="text-center">
|
<tr class="text-center">
|
||||||
<th>Numéro de livraison</th>
|
<th>Numéro de livraison</th>
|
||||||
@@ -28,10 +28,10 @@
|
|||||||
<tbody class="text-center">
|
<tbody class="text-center">
|
||||||
@for (deliveryInfo of deliverer.deliveryNotes; track deliveryInfo.id) {
|
@for (deliveryInfo of deliverer.deliveryNotes; track deliveryInfo.id) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{deliveryInfo.trackingNumber}}</td>
|
<td>{{ deliveryInfo.trackingNumber }}</td>
|
||||||
<td>{{deliveryInfo.expeditionDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{ deliveryInfo.expeditionDate | date: 'dd/MM/yyyy' }}</td>
|
||||||
<td>{{deliveryInfo.estimateDeliveryDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{ deliveryInfo.estimateDeliveryDate | date: 'dd/MM/yyyy' }}</td>
|
||||||
<td>{{deliveryInfo.realDeliveryDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{ deliveryInfo.realDeliveryDate | date: 'dd/MM/yyyy' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -41,9 +41,11 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div style="justify-content: center; display: flex">
|
<div style="justify-content: center; display: flex">
|
||||||
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer" (click)="openEditModal(deliverer)"></nz-icon>
|
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer"
|
||||||
|
(click)="openEditModal(deliverer)"></nz-icon>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="delete" nzTheme="outline" (click)="delete(deliverer.id)" class="text-red-600 cursor-pointer"></nz-icon>
|
<nz-icon nzType="delete" nzTheme="outline" (click)="delete(deliverer.id)"
|
||||||
|
class="text-red-600 cursor-pointer"></nz-icon>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -52,7 +54,8 @@
|
|||||||
</nz-table>
|
</nz-table>
|
||||||
|
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modifier'" (ok)="onModalOk(selectedDeliverer.id, delivererForm, modalNav)" (cancel)="onModalCancel(modalNav)">
|
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modifier'"
|
||||||
|
(ok)="onModalOk(selectedDeliverer.id, delivererForm, modalNav)" (cancel)="onModalCancel(modalNav)">
|
||||||
<app-deliverer-form #delivererForm [deliverer]="selectedDeliverer"></app-deliverer-form>
|
<app-deliverer-form #delivererForm [deliverer]="selectedDeliverer"></app-deliverer-form>
|
||||||
</app-modal-nav>
|
</app-modal-nav>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {firstValueFrom} from "rxjs";
|
|||||||
import {SupplierForm} from "../supplier-form/supplier-form";
|
import {SupplierForm} from "../supplier-form/supplier-form";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-deliverer-table',
|
selector: 'app-deliverer-table',
|
||||||
imports: [
|
imports: [
|
||||||
ModalNav,
|
ModalNav,
|
||||||
NzDividerComponent,
|
NzDividerComponent,
|
||||||
@@ -22,8 +22,8 @@ import {SupplierForm} from "../supplier-form/supplier-form";
|
|||||||
DatePipe,
|
DatePipe,
|
||||||
DelivererForm,
|
DelivererForm,
|
||||||
],
|
],
|
||||||
templateUrl: './deliverer-table.html',
|
templateUrl: './deliverer-table.html',
|
||||||
styleUrl: './deliverer-table.css',
|
styleUrl: './deliverer-table.css',
|
||||||
})
|
})
|
||||||
|
|
||||||
export class DelivererTable implements OnInit {
|
export class DelivererTable implements OnInit {
|
||||||
@@ -53,7 +53,7 @@ export class DelivererTable implements OnInit {
|
|||||||
this.deliverersLoading.set(false)
|
this.deliverersLoading.set(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
async delete(deliverer:number) {
|
async delete(deliverer: number) {
|
||||||
try {
|
try {
|
||||||
await firstValueFrom(this.deliverersService.deleteDelivererEndpoint(deliverer))
|
await firstValueFrom(this.deliverersService.deleteDelivererEndpoint(deliverer))
|
||||||
this.notificationService.success(
|
this.notificationService.success(
|
||||||
@@ -89,8 +89,9 @@ export class DelivererTable implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedDeliverer: GetDelivererDto | null = null;
|
selectedDeliverer: GetDelivererDto | null = null;
|
||||||
|
|
||||||
openEditModal(supplier: GetSupplierDto) {
|
openEditModal(supplier: GetSupplierDto) {
|
||||||
this.selectedDeliverer = { ...supplier };
|
this.selectedDeliverer = {...supplier};
|
||||||
this.modal().showModal();
|
this.modal().showModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,8 @@
|
|||||||
</nz-form-label>
|
</nz-form-label>
|
||||||
|
|
||||||
<nz-form-control nzSpan="9" nzErrorTip="Ce champ est requis">
|
<nz-form-control nzSpan="9" nzErrorTip="Ce champ est requis">
|
||||||
<nz-select formControlName="delivererId" [nzPlaceHolder]="'Choisir un transporteur'" nzShowSearch [nzFilterOption]="filter">
|
<nz-select formControlName="delivererId" [nzPlaceHolder]="'Choisir un transporteur'" nzShowSearch
|
||||||
|
[nzFilterOption]="filter">
|
||||||
@for (deliverer of deliverers(); track deliverer.id) {
|
@for (deliverer of deliverers(); track deliverer.id) {
|
||||||
<nz-option [nzValue]="deliverer.id" [nzLabel]="deliverer.transporter"></nz-option>
|
<nz-option [nzValue]="deliverer.id" [nzLabel]="deliverer.transporter"></nz-option>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import {NzNotificationService} from "ng-zorro-antd/notification";
|
|||||||
import {firstValueFrom} from "rxjs";
|
import {firstValueFrom} from "rxjs";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-deliverery-note-form',
|
selector: 'app-deliverery-note-form',
|
||||||
imports: [
|
imports: [
|
||||||
NzFormItemComponent,
|
NzFormItemComponent,
|
||||||
NzFormLabelComponent,
|
NzFormLabelComponent,
|
||||||
@@ -23,14 +23,14 @@ import {firstValueFrom} from "rxjs";
|
|||||||
NzSelectComponent,
|
NzSelectComponent,
|
||||||
NzOptionComponent,
|
NzOptionComponent,
|
||||||
],
|
],
|
||||||
templateUrl: './deliverery-note-form.html',
|
templateUrl: './deliverery-note-form.html',
|
||||||
styleUrl: './deliverery-note-form.css',
|
styleUrl: './deliverery-note-form.css',
|
||||||
})
|
})
|
||||||
export class DelivereryNoteForm implements OnInit {
|
export class DelivereryNoteForm implements OnInit {
|
||||||
deliveryNoteForm: FormGroup = new FormGroup({
|
deliveryNoteForm: FormGroup = new FormGroup({
|
||||||
trackingNumber: new FormControl<string>(null),
|
trackingNumber: new FormControl<string>(null),
|
||||||
delivererId: new FormControl<number>(null,[Validators.required]),
|
delivererId: new FormControl<number>(null, [Validators.required]),
|
||||||
expeditionDate: new FormControl(null,[Validators.required]),
|
expeditionDate: new FormControl(null, [Validators.required]),
|
||||||
estimatedDate: new FormControl(null),
|
estimatedDate: new FormControl(null),
|
||||||
realDeliveryDate: new FormControl(null)
|
realDeliveryDate: new FormControl(null)
|
||||||
})
|
})
|
||||||
@@ -56,7 +56,8 @@ export class DelivereryNoteForm implements OnInit {
|
|||||||
return option.nzLabel.toLowerCase().includes(input.toLowerCase());
|
return option.nzLabel.toLowerCase().includes(input.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|
||||||
deliveryNote= input<GetDeliveryNoteDto>();
|
deliveryNote = input<GetDeliveryNoteDto>();
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (this.deliveryNote()) {
|
if (this.deliveryNote()) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ nz-table {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
|||||||
nz-table thead {
|
nz-table thead {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody tr {
|
nz-table tbody tr {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td {
|
nz-table tbody td {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td::before {
|
nz-table tbody td::before {
|
||||||
content: attr(data-label);
|
content: attr(data-label);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -1,34 +1,38 @@
|
|||||||
<nz-table [nzData]="deliveryNotes()"
|
<nz-table [nzData]="deliveryNotes()"
|
||||||
class="mr-7"
|
class="mr-7"
|
||||||
[nzFrontPagination]="false"
|
[nzFrontPagination]="false"
|
||||||
[nzLoading]="deliveryNotesLoading()">
|
[nzLoading]="deliveryNotesLoading()">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="text-center">
|
<tr class="text-center">
|
||||||
<th>Numéro de livraison</th>
|
<th>Numéro de livraison</th>
|
||||||
<th>Transporteur</th>
|
<th>Transporteur</th>
|
||||||
<th>Date d'expédition</th>
|
<th>Date d'expédition</th>
|
||||||
<th>Date de livraison estimée</th>
|
<th>Date de livraison estimée</th>
|
||||||
<th>Date de livraison réelle</th>
|
<th>Date de livraison réelle</th>
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead >
|
</thead>
|
||||||
<tbody class="text-center">
|
<tbody class="text-center">
|
||||||
@for (deliveryNote of deliveryNotes(); track deliveryNote.id) {
|
@for (deliveryNote of deliveryNotes(); track deliveryNote.id) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{deliveryNote.trackingNumber}}</td>
|
<td>{{ deliveryNote.trackingNumber }}</td>
|
||||||
<td>{{deliveryNote.delivererTransporter}}</td>
|
<td>{{ deliveryNote.delivererTransporter }}</td>
|
||||||
<td>{{deliveryNote.expeditionDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{ deliveryNote.expeditionDate | date: 'dd/MM/yyyy' }}</td>
|
||||||
<td>{{deliveryNote.estimateDeliveryDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{ deliveryNote.estimateDeliveryDate | date: 'dd/MM/yyyy' }}</td>
|
||||||
<td>{{deliveryNote.realDeliveryDate | date: 'dd/MM/yyyy'}}</td>
|
<td>{{ deliveryNote.realDeliveryDate | date: 'dd/MM/yyyy' }}</td>
|
||||||
<td>
|
<td>
|
||||||
<div style="justify-content: center; display: flex">
|
<div style="justify-content: center; display: flex">
|
||||||
<nz-icon nzType="check" nzTheme="outline" (click)="validate(deliveryNote.id)" class="cursor-pointer text-green-700"/>
|
<nz-icon nzType="check" nzTheme="outline" (click)="validate(deliveryNote.id)"
|
||||||
|
class="cursor-pointer text-green-700"/>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer" (click)="openEditModal(deliveryNote)"></nz-icon>
|
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer"
|
||||||
|
(click)="openEditModal(deliveryNote)"></nz-icon>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="delete" nzTheme="outline" (click)="delete(deliveryNote.id)" class="cursor-pointer text-red-700"/>
|
<nz-icon nzType="delete" nzTheme="outline" (click)="delete(deliveryNote.id)"
|
||||||
|
class="cursor-pointer text-red-700"/>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="export" nzTheme="outline" (click)="export(deliveryNote.id)" class="cursor-pointer text-green-700"/>
|
<nz-icon nzType="export" nzTheme="outline" (click)="export(deliveryNote.id)"
|
||||||
|
class="cursor-pointer text-green-700"/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -37,7 +41,9 @@
|
|||||||
</nz-table>
|
</nz-table>
|
||||||
|
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modifier un bon de livraison'" (ok)="onModalOk(selectedDeliveryNote.id, deliveryNoteForm, modalNav)" (cancel)="onModalCancel(modalNav)">
|
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modifier un bon de livraison'"
|
||||||
|
(ok)="onModalOk(selectedDeliveryNote.id, deliveryNoteForm, modalNav)"
|
||||||
|
(cancel)="onModalCancel(modalNav)">
|
||||||
<app-deliverery-note-form #deliveryNoteForm [deliveryNote]="selectedDeliveryNote"></app-deliverery-note-form>
|
<app-deliverery-note-form #deliveryNoteForm [deliveryNote]="selectedDeliveryNote"></app-deliverery-note-form>
|
||||||
</app-modal-nav>
|
</app-modal-nav>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import {format} from "date-fns";
|
|||||||
import {FileService} from "../../services/file.service";
|
import {FileService} from "../../services/file.service";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-deliverery-note-table',
|
selector: 'app-deliverery-note-table',
|
||||||
imports: [
|
imports: [
|
||||||
ModalNav,
|
ModalNav,
|
||||||
NzDividerComponent,
|
NzDividerComponent,
|
||||||
@@ -21,8 +21,8 @@ import {FileService} from "../../services/file.service";
|
|||||||
DelivereryNoteForm,
|
DelivereryNoteForm,
|
||||||
DatePipe,
|
DatePipe,
|
||||||
],
|
],
|
||||||
templateUrl: './deliverery-note-table.html',
|
templateUrl: './deliverery-note-table.html',
|
||||||
styleUrl: './deliverery-note-table.css',
|
styleUrl: './deliverery-note-table.css',
|
||||||
})
|
})
|
||||||
export class DelivereryNoteTable implements OnInit {
|
export class DelivereryNoteTable implements OnInit {
|
||||||
private deliveryNotesService = inject(DeliverynotesService);
|
private deliveryNotesService = inject(DeliverynotesService);
|
||||||
@@ -50,7 +50,7 @@ export class DelivereryNoteTable implements OnInit {
|
|||||||
this.deliveryNotesLoading.set(false)
|
this.deliveryNotesLoading.set(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
async delete(deliveryNote:number) {
|
async delete(deliveryNote: number) {
|
||||||
this.deliveryNotesLoading.set(true)
|
this.deliveryNotesLoading.set(true)
|
||||||
try {
|
try {
|
||||||
await firstValueFrom(this.deliveryNotesService.deleteDeliveryNoteEndpoint(deliveryNote));
|
await firstValueFrom(this.deliveryNotesService.deleteDeliveryNoteEndpoint(deliveryNote));
|
||||||
@@ -68,7 +68,7 @@ export class DelivereryNoteTable implements OnInit {
|
|||||||
await this.fetchDeliveryNotes();
|
await this.fetchDeliveryNotes();
|
||||||
}
|
}
|
||||||
|
|
||||||
async validate(deliveryNote:number) {
|
async validate(deliveryNote: number) {
|
||||||
this.deliveryNotesLoading.set(true)
|
this.deliveryNotesLoading.set(true)
|
||||||
try {
|
try {
|
||||||
const PatchRealDate = {
|
const PatchRealDate = {
|
||||||
@@ -156,8 +156,9 @@ export class DelivereryNoteTable implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedDeliveryNote: GetDeliveryNoteDto | null = null;
|
selectedDeliveryNote: GetDeliveryNoteDto | null = null;
|
||||||
|
|
||||||
openEditModal(deliveryNote: GetDeliveryNoteDto) {
|
openEditModal(deliveryNote: GetDeliveryNoteDto) {
|
||||||
this.selectedDeliveryNote = { ...deliveryNote };
|
this.selectedDeliveryNote = {...deliveryNote};
|
||||||
this.modal().showModal();
|
this.modal().showModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,10 +12,9 @@
|
|||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
|
||||||
/* Box shadow pour effet superposition */
|
/* Box shadow pour effet superposition */
|
||||||
box-shadow:
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06),
|
||||||
0 4px 8px rgba(0, 0, 0, 0.06),
|
0 8px 20px rgba(0, 0, 0, 0.08),
|
||||||
0 8px 20px rgba(0, 0, 0, 0.08),
|
0 16px 40px rgba(0, 0, 0, 0.06);
|
||||||
0 16px 40px rgba(0, 0, 0, 0.06);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -32,7 +31,7 @@
|
|||||||
|
|
||||||
.search-input:focus {
|
.search-input:focus {
|
||||||
border-color: #3b82f6;
|
border-color: #3b82f6;
|
||||||
box-shadow: 0 0 8px rgba(59,130,246,0.2);
|
box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -40,7 +39,7 @@
|
|||||||
.livraisons-list {
|
.livraisons-list {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-height: 350px; /* hauteur max de la liste */
|
max-height: 350px; /* hauteur max de la liste */
|
||||||
overflow-y: auto; /* scroll vertical activé */
|
overflow-y: auto; /* scroll vertical activé */
|
||||||
padding-right: 10px; /* pour le scrollbar */
|
padding-right: 10px; /* pour le scrollbar */
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -63,7 +62,7 @@
|
|||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
padding: 20px 22px;
|
padding: 20px 22px;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
box-shadow: 0 6px 16px rgba(0,0,0,0.05);
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -74,7 +73,7 @@
|
|||||||
|
|
||||||
.livraison-card:hover {
|
.livraison-card:hover {
|
||||||
transform: translateY(-3px);
|
transform: translateY(-3px);
|
||||||
box-shadow: 0 10px 22px rgba(0,0,0,0.08);
|
box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Infos livraison */
|
/* Infos livraison */
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<div class="livraisons-container">
|
<div class="livraisons-container">
|
||||||
<input type="text" placeholder="Rechercher une livraison" class="search-input" (input)="search.set($any($event.target).value)"/>
|
<input type="text" placeholder="Rechercher une livraison" class="search-input"
|
||||||
|
(input)="search.set($any($event.target).value)"/>
|
||||||
|
|
||||||
<div class="livraisons-list">
|
<div class="livraisons-list">
|
||||||
@for (deliveryItem of filteredLivraisons(); track deliveryItem.id) {
|
@for (deliveryItem of filteredLivraisons(); track deliveryItem.id) {
|
||||||
@@ -11,7 +12,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button nz-button nzType="primary" [nzSize]="size" nzShape="round" (click)="validate(deliveryItem.id)">
|
<button nz-button nzType="primary" [nzSize]="size" nzShape="round" (click)="validate(deliveryItem.id)">
|
||||||
<nz-icon nzType="check" />
|
<nz-icon nzType="check"/>
|
||||||
Valider
|
Valider
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,31 +3,31 @@ import {NzButtonComponent, NzButtonSize} from "ng-zorro-antd/button";
|
|||||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-delivery-validator',
|
selector: 'app-delivery-validator',
|
||||||
imports: [
|
imports: [
|
||||||
NzButtonComponent,
|
NzButtonComponent,
|
||||||
NzIconDirective
|
NzIconDirective
|
||||||
],
|
],
|
||||||
templateUrl: './delivery-validator.html',
|
templateUrl: './delivery-validator.html',
|
||||||
styleUrl: './delivery-validator.css',
|
styleUrl: './delivery-validator.css',
|
||||||
})
|
})
|
||||||
export class DeliveryValidator {
|
export class DeliveryValidator {
|
||||||
size: NzButtonSize = 'large';
|
size: NzButtonSize = 'large';
|
||||||
search = signal('');
|
search = signal('');
|
||||||
|
|
||||||
livraisons = signal([
|
livraisons = signal([
|
||||||
{ id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12 },
|
{id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12},
|
||||||
{ id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8 },
|
{id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8},
|
||||||
{ id: 3, client: 'Auchan', date: '2025-02-05', produits: 23 },
|
{id: 3, client: 'Auchan', date: '2025-02-05', produits: 23},
|
||||||
{ id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12 },
|
{id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12},
|
||||||
{ id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8 },
|
{id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8},
|
||||||
{ id: 3, client: 'Auchan', date: '2025-02-05', produits: 23 },
|
{id: 3, client: 'Auchan', date: '2025-02-05', produits: 23},
|
||||||
{ id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12 },
|
{id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12},
|
||||||
{ id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8 },
|
{id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8},
|
||||||
{ id: 3, client: 'Auchan', date: '2025-02-05', produits: 23 },
|
{id: 3, client: 'Auchan', date: '2025-02-05', produits: 23},
|
||||||
{ id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12 },
|
{id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12},
|
||||||
{ id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8 },
|
{id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8},
|
||||||
{ id: 3, client: 'Auchan', date: '2025-02-05', produits: 23 }
|
{id: 3, client: 'Auchan', date: '2025-02-05', produits: 23}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
filteredLivraisons = computed(() => {
|
filteredLivraisons = computed(() => {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<div class="card-top">
|
<div class="card-top">
|
||||||
<nz-icon [ngStyle]="{ 'color': color() }" [nzType]="icon()" nzTheme="outline"></nz-icon>
|
<nz-icon [ngStyle]="{ 'color': color() }" [nzType]="icon()" nzTheme="outline"></nz-icon>
|
||||||
<p class="card-number">{{value()}}</p>
|
<p class="card-number">{{ value() }}</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="card-text">{{description()}}</p>
|
<p class="card-text">{{ description() }}</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -3,13 +3,13 @@ import {NzIconDirective} from "ng-zorro-antd/icon";
|
|||||||
import {NgStyle} from "@angular/common";
|
import {NgStyle} from "@angular/common";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-info-card',
|
selector: 'app-info-card',
|
||||||
imports: [
|
imports: [
|
||||||
NzIconDirective,
|
NzIconDirective,
|
||||||
NgStyle
|
NgStyle
|
||||||
],
|
],
|
||||||
templateUrl: './info-card.html',
|
templateUrl: './info-card.html',
|
||||||
styleUrl: './info-card.css',
|
styleUrl: './info-card.css',
|
||||||
})
|
})
|
||||||
export class InfoCard {
|
export class InfoCard {
|
||||||
icon = input.required<string>()
|
icon = input.required<string>()
|
||||||
|
|||||||
@@ -26,10 +26,9 @@
|
|||||||
gap: 16px;
|
gap: 16px;
|
||||||
padding: 30px 15px;
|
padding: 30px 15px;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
box-shadow:
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06),
|
||||||
0 4px 8px rgba(0, 0, 0, 0.06),
|
0 8px 20px rgba(0, 0, 0, 0.08),
|
||||||
0 8px 20px rgba(0, 0, 0, 0.08),
|
0 16px 40px rgba(0, 0, 0, 0.06);
|
||||||
0 16px 40px rgba(0, 0, 0, 0.06);
|
|
||||||
max-height: 390px;
|
max-height: 390px;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
@@ -46,14 +45,14 @@
|
|||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
box-shadow: 0 6px 16px rgba(0,0,0,0.08);
|
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content > div:hover {
|
.content > div:hover {
|
||||||
transform: translateY(-3px);
|
transform: translateY(-3px);
|
||||||
box-shadow: 0 10px 22px rgba(0,0,0,0.12);
|
box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
.content img {
|
.content img {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
interface PurchaseOrder {
|
interface PurchaseOrder {
|
||||||
id: number;
|
id: number;
|
||||||
@@ -12,30 +12,30 @@ interface PurchaseOrder {
|
|||||||
})
|
})
|
||||||
export class InfoTable {
|
export class InfoTable {
|
||||||
docs: PurchaseOrder[] = [
|
docs: PurchaseOrder[] = [
|
||||||
{ id: 1, name: 'Bon de commande'},
|
{id: 1, name: 'Bon de commande'},
|
||||||
{ id: 2, name: 'Bon de commande'},
|
{id: 2, name: 'Bon de commande'},
|
||||||
{ id: 3, name: 'Bon de commande'},
|
{id: 3, name: 'Bon de commande'},
|
||||||
{ id: 1, name: 'Bon de commande'},
|
{id: 1, name: 'Bon de commande'},
|
||||||
{ id: 2, name: 'Bon de commande'},
|
{id: 2, name: 'Bon de commande'},
|
||||||
{ id: 3, name: 'Bon de commande'},
|
{id: 3, name: 'Bon de commande'},
|
||||||
{ id: 1, name: 'Bon de commande'},
|
{id: 1, name: 'Bon de commande'},
|
||||||
{ id: 2, name: 'Bon de commande'},
|
{id: 2, name: 'Bon de commande'},
|
||||||
{ id: 3, name: 'Bon de commande'},
|
{id: 3, name: 'Bon de commande'},
|
||||||
{ id: 1, name: 'Bon de commande'},
|
{id: 1, name: 'Bon de commande'},
|
||||||
{ id: 2, name: 'Bon de commande'},
|
{id: 2, name: 'Bon de commande'},
|
||||||
{ id: 3, name: 'Bon de commande'},
|
{id: 3, name: 'Bon de commande'},
|
||||||
{ id: 1, name: 'Bon de commande'},
|
{id: 1, name: 'Bon de commande'},
|
||||||
{ id: 2, name: 'Bon de commande'},
|
{id: 2, name: 'Bon de commande'},
|
||||||
{ id: 3, name: 'Bon de commande'},
|
{id: 3, name: 'Bon de commande'},
|
||||||
{ id: 1, name: 'Bon de commande'},
|
{id: 1, name: 'Bon de commande'},
|
||||||
{ id: 2, name: 'Bon de commande'},
|
{id: 2, name: 'Bon de commande'},
|
||||||
{ id: 3, name: 'Bon de commande'},
|
{id: 3, name: 'Bon de commande'},
|
||||||
{ id: 1, name: 'Bon de commande'},
|
{id: 1, name: 'Bon de commande'},
|
||||||
{ id: 2, name: 'Bon de commande'},
|
{id: 2, name: 'Bon de commande'},
|
||||||
{ id: 3, name: 'Bon de commande'},
|
{id: 3, name: 'Bon de commande'},
|
||||||
{ id: 1, name: 'Bon de commande'},
|
{id: 1, name: 'Bon de commande'},
|
||||||
{ id: 2, name: 'Bon de commande'},
|
{id: 2, name: 'Bon de commande'},
|
||||||
{ id: 3, name: 'Bon de commande'},
|
{id: 3, name: 'Bon de commande'},
|
||||||
];
|
];
|
||||||
|
|
||||||
purchaseOrder(): PurchaseOrder[] {
|
purchaseOrder(): PurchaseOrder[] {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<button nz-button [nzType]="type()" (click)="showModal()">{{name()}}</button>
|
<button nz-button [nzType]="type()" (click)="showModal()">{{ name() }}</button>
|
||||||
|
|
||||||
<ng-template #modalContent>
|
<ng-template #modalContent>
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import {Component, Input, input, output} from '@angular/core';
|
import {Component, Input, input, output} from '@angular/core';
|
||||||
import { NzButtonModule } from 'ng-zorro-antd/button';
|
import {NzButtonModule} from 'ng-zorro-antd/button';
|
||||||
import { NzModalModule } from 'ng-zorro-antd/modal';
|
import {NzModalModule} from 'ng-zorro-antd/modal';
|
||||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -1,34 +0,0 @@
|
|||||||
<div class="ml-90">
|
|
||||||
<p class="cursor-pointer text-red-700" (click)="delete()">
|
|
||||||
<nz-icon nzType="delete" nzTheme="outline"/> Tout supprimer
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<nz-list nzItemLayout="vertical" class="max-w-xl mx-auto max-h-[400px] overflow-y-auto border border-gray-200 rounded-lg">
|
|
||||||
@for (item of notifList; track item) {
|
|
||||||
<nz-list-item class="flex items-start p-4 border-b border-gray-200">
|
|
||||||
|
|
||||||
<nz-list-item-meta class="flex-1">
|
|
||||||
<nz-list-item-meta-avatar>
|
|
||||||
<img src="https://cdn-icons-png.flaticon.com/512/1/1176.png" alt="info" class="w-10 h-10 rounded-full mt-10 mr-2 w-10">
|
|
||||||
</nz-list-item-meta-avatar>
|
|
||||||
|
|
||||||
<nz-list-item-meta-title>
|
|
||||||
<p class="font-semibold mb-1">{{item.title}}</p>
|
|
||||||
<p class="text-gray-500 mb-1">{{item.author}}</p>
|
|
||||||
</nz-list-item-meta-title>
|
|
||||||
|
|
||||||
<nz-list-item-meta-description>
|
|
||||||
<p>{{item.content}}</p>
|
|
||||||
</nz-list-item-meta-description>
|
|
||||||
</nz-list-item-meta>
|
|
||||||
|
|
||||||
<nz-list-item-extra>
|
|
||||||
<img src="https://www.pyro-fetes.com/wp-content/themes/pcptheme/img/logo-pyro-fetes-OR-top.png"
|
|
||||||
alt="logo"
|
|
||||||
class="w-35 object-contain mt-4">
|
|
||||||
</nz-list-item-extra>
|
|
||||||
|
|
||||||
</nz-list-item>
|
|
||||||
}
|
|
||||||
</nz-list>
|
|
||||||
@@ -1,92 +0,0 @@
|
|||||||
import { Component } from '@angular/core';
|
|
||||||
import {NotifInfo} from "../../interfaces/notif.interface";
|
|
||||||
import {
|
|
||||||
NzListComponent,
|
|
||||||
NzListItemComponent,
|
|
||||||
NzListItemExtraComponent, NzListItemMetaAvatarComponent,
|
|
||||||
NzListItemMetaComponent, NzListItemMetaDescriptionComponent, NzListItemMetaTitleComponent
|
|
||||||
} from "ng-zorro-antd/list";
|
|
||||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-notif-list',
|
|
||||||
imports: [
|
|
||||||
NzListComponent,
|
|
||||||
NzListItemComponent,
|
|
||||||
NzListItemMetaComponent,
|
|
||||||
NzListItemExtraComponent,
|
|
||||||
NzListItemMetaDescriptionComponent,
|
|
||||||
NzListItemMetaAvatarComponent,
|
|
||||||
NzListItemMetaTitleComponent,
|
|
||||||
NzIconDirective
|
|
||||||
],
|
|
||||||
templateUrl: './notif-list.html',
|
|
||||||
styleUrl: './notif-list.css',
|
|
||||||
})
|
|
||||||
export class NotifList {
|
|
||||||
notifList: NotifInfo[] = [
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
author: 'Admin',
|
|
||||||
title: 'Information system',
|
|
||||||
content: 'L\'utilisateur à bien été crée.'
|
|
||||||
}
|
|
||||||
];
|
|
||||||
|
|
||||||
delete() {
|
|
||||||
this.notifList = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
addContent(author: string, title: string, content: string) {
|
|
||||||
this.notifList.push({ author, title, content });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -7,7 +7,7 @@ import {NzInputDirective} from "ng-zorro-antd/input";
|
|||||||
import {GetPriceDto, GetSupplierDto} from "../../services/api";
|
import {GetPriceDto, GetSupplierDto} from "../../services/api";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-price-form',
|
selector: 'app-price-form',
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NzColDirective,
|
NzColDirective,
|
||||||
@@ -19,15 +19,16 @@ import {GetPriceDto, GetSupplierDto} from "../../services/api";
|
|||||||
NzInputDirective,
|
NzInputDirective,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule
|
||||||
],
|
],
|
||||||
templateUrl: './price-form.html',
|
templateUrl: './price-form.html',
|
||||||
styleUrl: './price-form.css',
|
styleUrl: './price-form.css',
|
||||||
})
|
})
|
||||||
export class PriceForm {
|
export class PriceForm {
|
||||||
priceForm: FormGroup = new FormGroup({
|
priceForm: FormGroup = new FormGroup({
|
||||||
price: new FormControl<string>(null, [Validators.required]),
|
price: new FormControl<string>(null, [Validators.required]),
|
||||||
})
|
})
|
||||||
|
|
||||||
price= input<GetPriceDto>();
|
price = input<GetPriceDto>();
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (this.price()) {
|
if (this.price()) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators} from "@angular/forms";
|
import {FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators} from "@angular/forms";
|
||||||
import {NzColDirective} from "ng-zorro-antd/grid";
|
import {NzColDirective} from "ng-zorro-antd/grid";
|
||||||
import {NzFlexDirective} from "ng-zorro-antd/flex";
|
import {NzFlexDirective} from "ng-zorro-antd/flex";
|
||||||
@@ -6,7 +6,7 @@ import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabe
|
|||||||
import {NzInputDirective} from "ng-zorro-antd/input";
|
import {NzInputDirective} from "ng-zorro-antd/input";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-product-form',
|
selector: 'app-product-form',
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NzColDirective,
|
NzColDirective,
|
||||||
@@ -18,8 +18,8 @@ import {NzInputDirective} from "ng-zorro-antd/input";
|
|||||||
NzInputDirective,
|
NzInputDirective,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule
|
||||||
],
|
],
|
||||||
templateUrl: './product-form.html',
|
templateUrl: './product-form.html',
|
||||||
styleUrl: './product-form.css',
|
styleUrl: './product-form.css',
|
||||||
})
|
})
|
||||||
export class ProductForm {
|
export class ProductForm {
|
||||||
productForm: FormGroup = new FormGroup({
|
productForm: FormGroup = new FormGroup({
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-product-table',
|
selector: 'app-product-table',
|
||||||
imports: [],
|
imports: [],
|
||||||
templateUrl: './product-table.html',
|
templateUrl: './product-table.html',
|
||||||
styleUrl: './product-table.css',
|
styleUrl: './product-table.css',
|
||||||
})
|
})
|
||||||
export class ProductTable {}
|
export class ProductTable {
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {NzOptionComponent, NzSelectComponent} from "ng-zorro-antd/select";
|
|||||||
import {GetUserDto} from "../../services/api";
|
import {GetUserDto} from "../../services/api";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-profil-form',
|
selector: 'app-profil-form',
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NzColDirective,
|
NzColDirective,
|
||||||
@@ -22,8 +22,8 @@ import {GetUserDto} from "../../services/api";
|
|||||||
NzSelectComponent,
|
NzSelectComponent,
|
||||||
NzOptionComponent
|
NzOptionComponent
|
||||||
],
|
],
|
||||||
templateUrl: './profil-form.html',
|
templateUrl: './profil-form.html',
|
||||||
styleUrl: './profil-form.css',
|
styleUrl: './profil-form.css',
|
||||||
})
|
})
|
||||||
export class ProfilForm {
|
export class ProfilForm {
|
||||||
profilForm: FormGroup = new FormGroup({
|
profilForm: FormGroup = new FormGroup({
|
||||||
@@ -34,6 +34,7 @@ export class ProfilForm {
|
|||||||
})
|
})
|
||||||
|
|
||||||
user = input<GetUserDto>();
|
user = input<GetUserDto>();
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (this.user()) {
|
if (this.user()) {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-6">
|
<div class="mt-6">
|
||||||
<p class="text-3xl festive2 mx-auto flex items-center justify-center">{{data.name}}</p>
|
<p class="text-3xl festive2 mx-auto flex items-center justify-center">{{ data.name }}</p>
|
||||||
<p class="text-xl festive2 mt-0 flex items-center justify-center">{{data.email}}</p>
|
<p class="text-xl festive2 mt-0 flex items-center justify-center">{{ data.email }}</p>
|
||||||
<p class="text-xl festive2 mt-0 flex items-center justify-center">{{data.fonction}}</p>
|
<p class="text-xl festive2 mt-0 flex items-center justify-center">{{ data.fonction }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,24 +1,24 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {UserInfo} from "../../interfaces/user.interface";
|
import {UserInfo} from "../../interfaces/user.interface";
|
||||||
import {ProfilForm} from "../profil-form/profil-form";
|
import {ProfilForm} from "../profil-form/profil-form";
|
||||||
import {ModalNav} from "../modal-nav/modal-nav";
|
import {ModalNav} from "../modal-nav/modal-nav";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-profil',
|
selector: 'app-profil',
|
||||||
imports: [
|
imports: [
|
||||||
ProfilForm,
|
ProfilForm,
|
||||||
ModalNav
|
ModalNav
|
||||||
],
|
],
|
||||||
templateUrl: './profil.html',
|
templateUrl: './profil.html',
|
||||||
styleUrl: './profil.css',
|
styleUrl: './profil.css',
|
||||||
})
|
})
|
||||||
export class Profil {
|
export class Profil {
|
||||||
data: UserInfo =
|
data: UserInfo =
|
||||||
{
|
{
|
||||||
name: 'Mathys Sanchez Vendé',
|
name: 'Mathys Sanchez Vendé',
|
||||||
email: 'mathys.sanchez@vende.fr',
|
email: 'mathys.sanchez@vende.fr',
|
||||||
fonction: 'admin',
|
fonction: 'admin',
|
||||||
};
|
};
|
||||||
|
|
||||||
getInitial(name: string): string {
|
getInitial(name: string): string {
|
||||||
if (!name || name.trim() === '') return '?';
|
if (!name || name.trim() === '') return '?';
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {NzInputDirective} from "ng-zorro-antd/input";
|
|||||||
import {GetPurchaseOrderDto} from "../../services/api";
|
import {GetPurchaseOrderDto} from "../../services/api";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-purchase-order-form',
|
selector: 'app-purchase-order-form',
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NzColDirective,
|
NzColDirective,
|
||||||
@@ -19,15 +19,16 @@ import {GetPurchaseOrderDto} from "../../services/api";
|
|||||||
NzInputDirective,
|
NzInputDirective,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule
|
||||||
],
|
],
|
||||||
templateUrl: './purchase-order-form.html',
|
templateUrl: './purchase-order-form.html',
|
||||||
styleUrl: './purchase-order-form.css',
|
styleUrl: './purchase-order-form.css',
|
||||||
})
|
})
|
||||||
export class PurchaseOrderForm {
|
export class PurchaseOrderForm {
|
||||||
purchaseOrderForm: FormGroup = new FormGroup({
|
purchaseOrderForm: FormGroup = new FormGroup({
|
||||||
purchaseConditions: new FormControl<string>(null,[Validators.required])
|
purchaseConditions: new FormControl<string>(null, [Validators.required])
|
||||||
})
|
})
|
||||||
|
|
||||||
purchaseOrder= input<GetPurchaseOrderDto>();
|
purchaseOrder = input<GetPurchaseOrderDto>();
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (this.purchaseOrder()) {
|
if (this.purchaseOrder()) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ nz-table {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
|||||||
nz-table thead {
|
nz-table thead {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody tr {
|
nz-table tbody tr {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td {
|
nz-table tbody td {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td::before {
|
nz-table tbody td::before {
|
||||||
content: attr(data-label);
|
content: attr(data-label);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
@for (purchaseOrder of purchaseOrders(); track purchaseOrder.id) {
|
@for (purchaseOrder of purchaseOrders(); track purchaseOrder.id) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ purchaseOrder.id }}</td>
|
<td>{{ purchaseOrder.id }}</td>
|
||||||
<td>{{purchaseOrder.purchaseConditions}}</td>
|
<td>{{ purchaseOrder.purchaseConditions }}</td>
|
||||||
<td>Fournisseur ???</td>
|
<td>Fournisseur ???</td>
|
||||||
<td>
|
<td>
|
||||||
<app-modal-button type="link" name="Voir les produits" size="45%">
|
<app-modal-button type="link" name="Voir les produits" size="45%">
|
||||||
@@ -34,15 +34,18 @@
|
|||||||
<tbody class="text-center">
|
<tbody class="text-center">
|
||||||
@for (product of purchaseOrder.products; track product.productId) {
|
@for (product of purchaseOrder.products; track product.productId) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{product.productName}}</td>
|
<td>{{ product.productName }}</td>
|
||||||
<td>{{product.productReferences}}</td>
|
<td>{{ product.productReferences }}</td>
|
||||||
<td>Prix €€€€</td>
|
<td>Prix €€€€</td>
|
||||||
<td>{{product.quantity}}</td>
|
<td>{{ product.quantity }}</td>
|
||||||
<td>
|
<td>
|
||||||
<div style="justify-content: center; display: flex">
|
<div style="justify-content: center; display: flex">
|
||||||
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer" (click)="openEditQuantityModal(product)"></nz-icon>
|
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer"
|
||||||
|
(click)="openEditQuantityModal(product)"></nz-icon>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="delete" nzTheme="outline" class="cursor-pointer text-red-700" (click)="deleteProduct(product.productId, purchaseOrder.id)"/>
|
<nz-icon nzType="delete" nzTheme="outline"
|
||||||
|
class="cursor-pointer text-red-700"
|
||||||
|
(click)="deleteProduct(product.productId, purchaseOrder.id)"/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -56,13 +59,17 @@
|
|||||||
<div style="justify-content: center; display: flex">
|
<div style="justify-content: center; display: flex">
|
||||||
<nz-icon nzType="plus-circle" nzTheme="outline" class="cursor-pointer text-green-700"/>
|
<nz-icon nzType="plus-circle" nzTheme="outline" class="cursor-pointer text-green-700"/>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer" (click)="openEditModal(purchaseOrder)"></nz-icon>
|
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer"
|
||||||
|
(click)="openEditModal(purchaseOrder)"></nz-icon>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="delete" nzTheme="outline" (click)="delete(purchaseOrder.id)" class="cursor-pointer text-red-700"/>
|
<nz-icon nzType="delete" nzTheme="outline" (click)="delete(purchaseOrder.id)"
|
||||||
|
class="cursor-pointer text-red-700"/>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="export" nzTheme="outline" (click)="export(purchaseOrder.id)" class="cursor-pointer text-green-700"/>
|
<nz-icon nzType="export" nzTheme="outline" (click)="export(purchaseOrder.id)"
|
||||||
|
class="cursor-pointer text-green-700"/>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="interaction" nzTheme="outline" (click)="transfer(purchaseOrder)" class="cursor-pointer text-blue-700"/>
|
<nz-icon nzType="interaction" nzTheme="outline" (click)="transfer(purchaseOrder)"
|
||||||
|
class="cursor-pointer text-blue-700"/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -71,13 +78,17 @@
|
|||||||
</nz-table>
|
</nz-table>
|
||||||
|
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modification des conditions de vente'" (ok)="onModalOk(selectedPurchaseOrder.id, purchaseOrderForm, modalNav)" (cancel)="onModalCancel(modalNav)">
|
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modification des conditions de vente'"
|
||||||
|
(ok)="onModalOk(selectedPurchaseOrder.id, purchaseOrderForm, modalNav)"
|
||||||
|
(cancel)="onModalCancel(modalNav)">
|
||||||
<app-purchase-order-form #purchaseOrderForm [purchaseOrder]="selectedPurchaseOrder"></app-purchase-order-form>
|
<app-purchase-order-form #purchaseOrderForm [purchaseOrder]="selectedPurchaseOrder"></app-purchase-order-form>
|
||||||
</app-modal-nav>
|
</app-modal-nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<app-modal-nav #modalQuantity nameIcon="edit" [name]="'Modification de la quantité'" (ok)="onModalQuantityOk(selectedQuantity.productId, selectedQuantity.purchaseOrderId, quantityForm, modalQuantity)" (cancel)="onModalCancel(modalQuantity)">
|
<app-modal-nav #modalQuantity nameIcon="edit" [name]="'Modification de la quantité'"
|
||||||
|
(ok)="onModalQuantityOk(selectedQuantity.productId, selectedQuantity.purchaseOrderId, quantityForm, modalQuantity)"
|
||||||
|
(cancel)="onModalCancel(modalQuantity)">
|
||||||
<app-quantity-form #quantityForm [quantity]="selectedQuantity"></app-quantity-form>
|
<app-quantity-form #quantityForm [quantity]="selectedQuantity"></app-quantity-form>
|
||||||
</app-modal-nav>
|
</app-modal-nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -21,7 +21,7 @@ import {QuantityForm} from "../quantity-form/quantity-form";
|
|||||||
import {PurchaseOrder} from "../../pages/purchase-order/purchase-order";
|
import {PurchaseOrder} from "../../pages/purchase-order/purchase-order";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-purchase-order-table',
|
selector: 'app-purchase-order-table',
|
||||||
imports: [
|
imports: [
|
||||||
ModalNav,
|
ModalNav,
|
||||||
NzDividerComponent,
|
NzDividerComponent,
|
||||||
@@ -31,8 +31,8 @@ import {PurchaseOrder} from "../../pages/purchase-order/purchase-order";
|
|||||||
ModalButton,
|
ModalButton,
|
||||||
QuantityForm,
|
QuantityForm,
|
||||||
],
|
],
|
||||||
templateUrl: './purchase-order-table.html',
|
templateUrl: './purchase-order-table.html',
|
||||||
styleUrl: './purchase-order-table.css',
|
styleUrl: './purchase-order-table.css',
|
||||||
})
|
})
|
||||||
export class PurchaseOrderTable implements OnInit {
|
export class PurchaseOrderTable implements OnInit {
|
||||||
private purchaseOrdersService = inject(PurchaseordersService);
|
private purchaseOrdersService = inject(PurchaseordersService);
|
||||||
@@ -64,7 +64,7 @@ export class PurchaseOrderTable implements OnInit {
|
|||||||
this.purchaseOrdersLoading.set(false)
|
this.purchaseOrdersLoading.set(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
async delete(purchaseOrderId:number) {
|
async delete(purchaseOrderId: number) {
|
||||||
this.purchaseOrdersLoading.set(true)
|
this.purchaseOrdersLoading.set(true)
|
||||||
try {
|
try {
|
||||||
await firstValueFrom(this.purchaseOrdersService.deletePurchaseOrderEndpoint(purchaseOrderId))
|
await firstValueFrom(this.purchaseOrdersService.deletePurchaseOrderEndpoint(purchaseOrderId))
|
||||||
@@ -82,7 +82,7 @@ export class PurchaseOrderTable implements OnInit {
|
|||||||
await this.fetchPurchaseOrder();
|
await this.fetchPurchaseOrder();
|
||||||
}
|
}
|
||||||
|
|
||||||
async export(purchaseOrderId: number){
|
async export(purchaseOrderId: number) {
|
||||||
this.purchaseOrdersLoading.set(true)
|
this.purchaseOrdersLoading.set(true)
|
||||||
try {
|
try {
|
||||||
const pdf = await firstValueFrom(
|
const pdf = await firstValueFrom(
|
||||||
@@ -119,7 +119,7 @@ export class PurchaseOrderTable implements OnInit {
|
|||||||
|
|
||||||
const productQuantities: Record<number, number> = {};
|
const productQuantities: Record<number, number> = {};
|
||||||
purchaseOrder.products?.forEach(p => {
|
purchaseOrder.products?.forEach(p => {
|
||||||
if(p.productId != null && p.quantity != null) {
|
if (p.productId != null && p.quantity != null) {
|
||||||
productQuantities[p.productId] = p.quantity;
|
productQuantities[p.productId] = p.quantity;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -199,8 +199,9 @@ export class PurchaseOrderTable implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedPurchaseOrder: GetPurchaseOrderDto | null = null;
|
selectedPurchaseOrder: GetPurchaseOrderDto | null = null;
|
||||||
|
|
||||||
openEditModal(purchaseOrder: GetPurchaseOrderDto) {
|
openEditModal(purchaseOrder: GetPurchaseOrderDto) {
|
||||||
this.selectedPurchaseOrder = { ...purchaseOrder };
|
this.selectedPurchaseOrder = {...purchaseOrder};
|
||||||
this.modal().showModal();
|
this.modal().showModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -218,8 +219,9 @@ export class PurchaseOrderTable implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedQuantity: GetPurchaseProductDto | null = null;
|
selectedQuantity: GetPurchaseProductDto | null = null;
|
||||||
|
|
||||||
openEditQuantityModal(quantity: GetPurchaseProductDto) {
|
openEditQuantityModal(quantity: GetPurchaseProductDto) {
|
||||||
this.selectedQuantity = { ...quantity };
|
this.selectedQuantity = {...quantity};
|
||||||
this.modalQuantity().showModal();
|
this.modalQuantity().showModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {NzInputDirective} from "ng-zorro-antd/input";
|
|||||||
import {GetDelivererDto, GetPurchaseProductDto} from "../../services/api";
|
import {GetDelivererDto, GetPurchaseProductDto} from "../../services/api";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-quantity-form',
|
selector: 'app-quantity-form',
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NzColDirective,
|
NzColDirective,
|
||||||
@@ -19,15 +19,16 @@ import {GetDelivererDto, GetPurchaseProductDto} from "../../services/api";
|
|||||||
NzInputDirective,
|
NzInputDirective,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule
|
||||||
],
|
],
|
||||||
templateUrl: './quantity-form.html',
|
templateUrl: './quantity-form.html',
|
||||||
styleUrl: './quantity-form.css',
|
styleUrl: './quantity-form.css',
|
||||||
})
|
})
|
||||||
export class QuantityForm {
|
export class QuantityForm {
|
||||||
quantityForm: FormGroup = new FormGroup({
|
quantityForm: FormGroup = new FormGroup({
|
||||||
quantity: new FormControl<number>(null, [Validators.required])
|
quantity: new FormControl<number>(null, [Validators.required])
|
||||||
})
|
})
|
||||||
|
|
||||||
quantity= input<GetPurchaseProductDto>();
|
quantity = input<GetPurchaseProductDto>();
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (this.quantity()) {
|
if (this.quantity()) {
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ export class QuotationForm {
|
|||||||
conditionsSale: new FormControl<string>(null, [Validators.required]),
|
conditionsSale: new FormControl<string>(null, [Validators.required]),
|
||||||
})
|
})
|
||||||
|
|
||||||
quotation= input<GetQuotationDto>();
|
quotation = input<GetQuotationDto>();
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (this.quotation()) {
|
if (this.quotation()) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ nz-table {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
|||||||
nz-table thead {
|
nz-table thead {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody tr {
|
nz-table tbody tr {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td {
|
nz-table tbody td {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td::before {
|
nz-table tbody td::before {
|
||||||
content: attr(data-label);
|
content: attr(data-label);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -11,13 +11,13 @@
|
|||||||
<th>Produit</th>
|
<th>Produit</th>
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead >
|
</thead>
|
||||||
<tbody class="text-center">
|
<tbody class="text-center">
|
||||||
@for (quotation of quotations(); track quotation.id) {
|
@for (quotation of quotations(); track quotation.id) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{quotation.id}}</td>
|
<td>{{ quotation.id }}</td>
|
||||||
<td>{{quotation.message}}</td>
|
<td>{{ quotation.message }}</td>
|
||||||
<td>{{quotation.conditionsSale}}</td>
|
<td>{{ quotation.conditionsSale }}</td>
|
||||||
<td>
|
<td>
|
||||||
<app-modal-button type="link" name="Voir les produits" size="45%">
|
<app-modal-button type="link" name="Voir les produits" size="45%">
|
||||||
<div style="max-height: 400px; overflow-y: auto;">
|
<div style="max-height: 400px; overflow-y: auto;">
|
||||||
@@ -40,9 +40,12 @@
|
|||||||
<td>{{ product.quantity }}</td>
|
<td>{{ product.quantity }}</td>
|
||||||
<td>
|
<td>
|
||||||
<div style="justify-content: center; display: flex">
|
<div style="justify-content: center; display: flex">
|
||||||
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer" (click)="openEditQuantityModal(product)"></nz-icon>
|
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer"
|
||||||
|
(click)="openEditQuantityModal(product)"></nz-icon>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="delete" nzTheme="outline" class="cursor-pointer text-red-700" (click)="deleteProduct(product.productId, quotation.id)"/>
|
<nz-icon nzType="delete" nzTheme="outline"
|
||||||
|
class="cursor-pointer text-red-700"
|
||||||
|
(click)="deleteProduct(product.productId, quotation.id)"/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -54,13 +57,16 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div style="justify-content: center; display: flex">
|
<div style="justify-content: center; display: flex">
|
||||||
<nz-icon nzType="plus-circle" nzTheme="outline" class="cursor-pointer text-green-700" />
|
<nz-icon nzType="plus-circle" nzTheme="outline" class="cursor-pointer text-green-700"/>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer" (click)="openEditModal(quotation)"></nz-icon>
|
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer"
|
||||||
|
(click)="openEditModal(quotation)"></nz-icon>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="delete" nzTheme="outline" class="cursor-pointer text-red-700" (click)="delete(quotation.id)"/>
|
<nz-icon nzType="delete" nzTheme="outline" class="cursor-pointer text-red-700"
|
||||||
|
(click)="delete(quotation.id)"/>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="export" (click)="export(quotation.id)" nzTheme="outline" class="cursor-pointer text-green-700"/>
|
<nz-icon nzType="export" (click)="export(quotation.id)" nzTheme="outline"
|
||||||
|
class="cursor-pointer text-green-700"/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -69,13 +75,16 @@
|
|||||||
</nz-table>
|
</nz-table>
|
||||||
|
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modification du devis'" (ok)="onModalOk(selectedQuotation.id, quotationForm, modalNav)" (cancel)="onModalCancel(modalNav)">
|
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modification du devis'"
|
||||||
|
(ok)="onModalOk(selectedQuotation.id, quotationForm, modalNav)" (cancel)="onModalCancel(modalNav)">
|
||||||
<app-quotation-form #quotationForm [quotation]="selectedQuotation"></app-quotation-form>
|
<app-quotation-form #quotationForm [quotation]="selectedQuotation"></app-quotation-form>
|
||||||
</app-modal-nav>
|
</app-modal-nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<app-modal-nav #modalQuantity nameIcon="edit" [name]="'Modification de la quantité'" (ok)="onModalQuantityOk(selectedQuantity.productId, selectedQuantity.quotationId, quantityForm, modalQuantity)" (cancel)="onModalCancel(modalQuantity)">
|
<app-modal-nav #modalQuantity nameIcon="edit" [name]="'Modification de la quantité'"
|
||||||
|
(ok)="onModalQuantityOk(selectedQuantity.productId, selectedQuantity.quotationId, quantityForm, modalQuantity)"
|
||||||
|
(cancel)="onModalCancel(modalQuantity)">
|
||||||
<app-quantity-form #quantityForm [quantity]="selectedQuantity"></app-quantity-form>
|
<app-quantity-form #quantityForm [quantity]="selectedQuantity"></app-quantity-form>
|
||||||
</app-modal-nav>
|
</app-modal-nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -60,7 +60,7 @@ export class QuotationTable implements OnInit {
|
|||||||
this.quotationsLoading.set(false)
|
this.quotationsLoading.set(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
async delete(quotation:number) {
|
async delete(quotation: number) {
|
||||||
this.quotationsLoading.set(true)
|
this.quotationsLoading.set(true)
|
||||||
try {
|
try {
|
||||||
await firstValueFrom(this.quotationsService.deleteQuotationEndpoint(quotation))
|
await firstValueFrom(this.quotationsService.deleteQuotationEndpoint(quotation))
|
||||||
@@ -78,7 +78,7 @@ export class QuotationTable implements OnInit {
|
|||||||
await this.fetchQuotations();
|
await this.fetchQuotations();
|
||||||
}
|
}
|
||||||
|
|
||||||
async export(quotationId: number){
|
async export(quotationId: number) {
|
||||||
this.quotationsLoading.set(true)
|
this.quotationsLoading.set(true)
|
||||||
try {
|
try {
|
||||||
const pdf = await firstValueFrom(
|
const pdf = await firstValueFrom(
|
||||||
@@ -149,8 +149,9 @@ export class QuotationTable implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedQuotation: GetQuotationDto | null = null;
|
selectedQuotation: GetQuotationDto | null = null;
|
||||||
|
|
||||||
openEditModal(quotation: GetQuotationDto) {
|
openEditModal(quotation: GetQuotationDto) {
|
||||||
this.selectedQuotation = { ...quotation };
|
this.selectedQuotation = {...quotation};
|
||||||
this.modal().showModal();
|
this.modal().showModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,8 +169,9 @@ export class QuotationTable implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedQuantity: GetQuotationProductDto | null = null;
|
selectedQuantity: GetQuotationProductDto | null = null;
|
||||||
|
|
||||||
openEditQuantityModal(quantity: GetQuotationProductDto) {
|
openEditQuantityModal(quantity: GetQuotationProductDto) {
|
||||||
this.selectedQuantity = { ...quantity };
|
this.selectedQuantity = {...quantity};
|
||||||
this.modalQuantity().showModal();
|
this.modalQuantity().showModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, output } from '@angular/core';
|
import {Component, output} from '@angular/core';
|
||||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||||
import {NzColDirective} from "ng-zorro-antd/grid";
|
import {NzColDirective} from "ng-zorro-antd/grid";
|
||||||
import {NzFlexDirective} from "ng-zorro-antd/flex";
|
import {NzFlexDirective} from "ng-zorro-antd/flex";
|
||||||
@@ -6,7 +6,7 @@ import {NzFormControlComponent, NzFormDirective, NzFormItemComponent} from "ng-z
|
|||||||
import {FormControl, FormGroup, ReactiveFormsModule} from "@angular/forms";
|
import {FormControl, FormGroup, ReactiveFormsModule} from "@angular/forms";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-search',
|
selector: 'app-search',
|
||||||
imports: [
|
imports: [
|
||||||
NzIconDirective,
|
NzIconDirective,
|
||||||
NzColDirective,
|
NzColDirective,
|
||||||
@@ -16,8 +16,8 @@ import {FormControl, FormGroup, ReactiveFormsModule} from "@angular/forms";
|
|||||||
NzFormItemComponent,
|
NzFormItemComponent,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule
|
||||||
],
|
],
|
||||||
templateUrl: './search.html',
|
templateUrl: './search.html',
|
||||||
styleUrl: './search.css',
|
styleUrl: './search.css',
|
||||||
})
|
})
|
||||||
export class Search {
|
export class Search {
|
||||||
searchForm: FormGroup = new FormGroup({
|
searchForm: FormGroup = new FormGroup({
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label nzSpan="9">Logo</nz-form-label>
|
<nz-form-label nzSpan="9">Logo</nz-form-label>
|
||||||
<nz-form-control nzSpan="25">
|
<nz-form-control nzSpan="25">
|
||||||
<input nz-input type="file" formControlName="logo" />
|
<input nz-input type="file" formControlName="logo"/>
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<nz-form-item>
|
<nz-form-item>
|
||||||
<nz-form-label nzSpan="9">Signature</nz-form-label>
|
<nz-form-label nzSpan="9">Signature</nz-form-label>
|
||||||
<nz-form-control nzSpan="25">
|
<nz-form-control nzSpan="25">
|
||||||
<input nz-input type="file" formControlName="signature" />
|
<input nz-input type="file" formControlName="signature"/>
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {FormControl, FormGroup, FormsModule, ReactiveFormsModule} from "@angular/forms";
|
import {FormControl, FormGroup, FormsModule, ReactiveFormsModule} from "@angular/forms";
|
||||||
import {NzColDirective} from "ng-zorro-antd/grid";
|
import {NzColDirective} from "ng-zorro-antd/grid";
|
||||||
import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent} from "ng-zorro-antd/form";
|
import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent} from "ng-zorro-antd/form";
|
||||||
@@ -6,7 +6,7 @@ import {NzInputDirective} from "ng-zorro-antd/input";
|
|||||||
import {SettingInfo} from "../../interfaces/setting.interface";
|
import {SettingInfo} from "../../interfaces/setting.interface";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-setting-form',
|
selector: 'app-setting-form',
|
||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
NzColDirective,
|
NzColDirective,
|
||||||
@@ -17,8 +17,8 @@ import {SettingInfo} from "../../interfaces/setting.interface";
|
|||||||
NzInputDirective,
|
NzInputDirective,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule
|
||||||
],
|
],
|
||||||
templateUrl: './setting-form.html',
|
templateUrl: './setting-form.html',
|
||||||
styleUrl: './setting-form.css',
|
styleUrl: './setting-form.css',
|
||||||
})
|
})
|
||||||
export class SettingForm {
|
export class SettingForm {
|
||||||
settingForm: FormGroup = new FormGroup({
|
settingForm: FormGroup = new FormGroup({
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {NzFlexDirective} from "ng-zorro-antd/flex";
|
|||||||
import {GetProductDto} from "../../services/api";
|
import {GetProductDto} from "../../services/api";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-stock-form',
|
selector: 'app-stock-form',
|
||||||
imports: [
|
imports: [
|
||||||
NzFormItemComponent,
|
NzFormItemComponent,
|
||||||
NzFormLabelComponent,
|
NzFormLabelComponent,
|
||||||
@@ -18,8 +18,8 @@ import {GetProductDto} from "../../services/api";
|
|||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
NzFlexDirective
|
NzFlexDirective
|
||||||
],
|
],
|
||||||
templateUrl: './stock-form.html',
|
templateUrl: './stock-form.html',
|
||||||
styleUrl: './stock-form.css',
|
styleUrl: './stock-form.css',
|
||||||
})
|
})
|
||||||
export class StockForm {
|
export class StockForm {
|
||||||
stockForm = new FormGroup({
|
stockForm = new FormGroup({
|
||||||
@@ -27,7 +27,8 @@ export class StockForm {
|
|||||||
minimalQuantity: new FormControl<number>(null, [Validators.required])
|
minimalQuantity: new FormControl<number>(null, [Validators.required])
|
||||||
})
|
})
|
||||||
|
|
||||||
product= input<GetProductDto>();
|
product = input<GetProductDto>();
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (this.product()) {
|
if (this.product()) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ nz-table {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
|||||||
nz-table thead {
|
nz-table thead {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody tr {
|
nz-table tbody tr {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td {
|
nz-table tbody td {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td::before {
|
nz-table tbody td::before {
|
||||||
content: attr(data-label);
|
content: attr(data-label);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<nz-table
|
<nz-table
|
||||||
[nzData]="filteredProducts()"
|
[nzData]="filteredProducts()"
|
||||||
[nzFrontPagination]="false"
|
[nzFrontPagination]="false"
|
||||||
[nzLoading]="productsLoading()"
|
[nzLoading]="productsLoading()"
|
||||||
(nzCurrentPageDataChange)="onCurrentPageDataChange($event)"
|
(nzCurrentPageDataChange)="onCurrentPageDataChange($event)"
|
||||||
>
|
>
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="text-center">
|
<tr class="text-center">
|
||||||
@@ -47,9 +47,11 @@
|
|||||||
<td>{{ product.minimalQuantity }}</td>
|
<td>{{ product.minimalQuantity }}</td>
|
||||||
<td>
|
<td>
|
||||||
<div style="justify-content: center; display: flex">
|
<div style="justify-content: center; display: flex">
|
||||||
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer" (click)="openEditModal(product)"></nz-icon>
|
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer"
|
||||||
|
(click)="openEditModal(product)"></nz-icon>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="delete" nzTheme="outline" (click)="delete(product.id)" class="text-red-600 cursor-pointer"></nz-icon>
|
<nz-icon nzType="delete" nzTheme="outline" (click)="delete(product.id)"
|
||||||
|
class="text-red-600 cursor-pointer"></nz-icon>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -58,7 +60,8 @@
|
|||||||
</nz-table>
|
</nz-table>
|
||||||
|
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modifier'" (ok)="onModalOk(selectedProduct.id, stockForm, modalNav)" (cancel)="onModalCancel(modalNav)">
|
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modifier'"
|
||||||
|
(ok)="onModalOk(selectedProduct.id, stockForm, modalNav)" (cancel)="onModalCancel(modalNav)">
|
||||||
<app-stock-form #stockForm [product]="selectedProduct"></app-stock-form>
|
<app-stock-form #stockForm [product]="selectedProduct"></app-stock-form>
|
||||||
</app-modal-nav>
|
</app-modal-nav>
|
||||||
</div>
|
</div>
|
||||||
@@ -61,6 +61,7 @@ export class StockTable implements OnInit {
|
|||||||
applySearch(query: string) {
|
applySearch(query: string) {
|
||||||
this.searchQuery.set(query);
|
this.searchQuery.set(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
get hasSelection(): boolean {
|
get hasSelection(): boolean {
|
||||||
return this.setOfCheckedId.size > 0;
|
return this.setOfCheckedId.size > 0;
|
||||||
}
|
}
|
||||||
@@ -122,7 +123,7 @@ export class StockTable implements OnInit {
|
|||||||
const products = await firstValueFrom(this.productsService.getAllProductsEndpoint());
|
const products = await firstValueFrom(this.productsService.getAllProductsEndpoint());
|
||||||
|
|
||||||
// transforme chaque produit en ProductWithQuantity
|
// transforme chaque produit en ProductWithQuantity
|
||||||
const productsWithQuantity: ProductWithQuantity[] = products.map(p => ({ ...p }));
|
const productsWithQuantity: ProductWithQuantity[] = products.map(p => ({...p}));
|
||||||
|
|
||||||
this.products.set(productsWithQuantity);
|
this.products.set(productsWithQuantity);
|
||||||
|
|
||||||
@@ -140,7 +141,7 @@ export class StockTable implements OnInit {
|
|||||||
this.productsLoading.set(false);
|
this.productsLoading.set(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
async delete(productId:number) {
|
async delete(productId: number) {
|
||||||
try {
|
try {
|
||||||
await firstValueFrom(this.productsService.deleteProductEndpoint(productId))
|
await firstValueFrom(this.productsService.deleteProductEndpoint(productId))
|
||||||
this.notificationService.success(
|
this.notificationService.success(
|
||||||
@@ -184,8 +185,9 @@ export class StockTable implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedProduct: GetProductDto | null = null;
|
selectedProduct: GetProductDto | null = null;
|
||||||
|
|
||||||
openEditModal(product: GetProductDto) {
|
openEditModal(product: GetProductDto) {
|
||||||
this.selectedProduct = { ...product};
|
this.selectedProduct = {...product};
|
||||||
this.modal().showModal();
|
this.modal().showModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,8 @@ export class SupplierForm {
|
|||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
supplier= input<GetSupplierDto>();
|
supplier = input<GetSupplierDto>();
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (this.supplier()) {
|
if (this.supplier()) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ nz-table {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
|||||||
nz-table thead {
|
nz-table thead {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody tr {
|
nz-table tbody tr {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td {
|
nz-table tbody td {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td::before {
|
nz-table tbody td::before {
|
||||||
content: attr(data-label);
|
content: attr(data-label);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -47,7 +47,8 @@
|
|||||||
class="cursor-pointer text-gray-600 hover:text-gray-900"
|
class="cursor-pointer text-gray-600 hover:text-gray-900"
|
||||||
(click)="openEditProductModal(product, supplier.id)"></nz-icon>
|
(click)="openEditProductModal(product, supplier.id)"></nz-icon>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<nz-icon nzType="delete" nzTheme="outline" class="cursor-pointer text-red-600 hover:text-red-800"
|
<nz-icon nzType="delete" nzTheme="outline"
|
||||||
|
class="cursor-pointer text-red-600 hover:text-red-800"
|
||||||
(click)="deleteProduct(product.productId, product.supplierId)"></nz-icon>
|
(click)="deleteProduct(product.productId, product.supplierId)"></nz-icon>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -96,12 +96,12 @@ export class SupplierTable implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
openEditModal(supplier: GetSupplierDto) {
|
openEditModal(supplier: GetSupplierDto) {
|
||||||
this.selectedSupplier = { ...supplier };
|
this.selectedSupplier = {...supplier};
|
||||||
this.supplierModal().showModal();
|
this.supplierModal().showModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
openEditProductModal(product: GetPriceDto, supplierId: number) {
|
openEditProductModal(product: GetPriceDto, supplierId: number) {
|
||||||
this.selectedProduct = { ...product };
|
this.selectedProduct = {...product};
|
||||||
this.selectedProductSupplierId = supplierId;
|
this.selectedProductSupplierId = supplierId;
|
||||||
this.productModal().showModal();
|
this.productModal().showModal();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ nz-table {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
|||||||
nz-table thead {
|
nz-table thead {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody tr {
|
nz-table tbody tr {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td {
|
nz-table tbody td {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 6px 12px;
|
padding: 6px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
nz-table tbody td::before {
|
nz-table tbody td::before {
|
||||||
content: attr(data-label);
|
content: attr(data-label);
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
[nzLoading]="usersLoading()"
|
[nzLoading]="usersLoading()"
|
||||||
[nzFrontPagination]="false"
|
[nzFrontPagination]="false"
|
||||||
class="mr-7">
|
class="mr-7">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="text-center">
|
<tr class="text-center">
|
||||||
<th>Prénom</th>
|
<th>Prénom</th>
|
||||||
<th>Email</th>
|
<th>Email</th>
|
||||||
@@ -13,15 +13,17 @@
|
|||||||
<tbody class="text-center">
|
<tbody class="text-center">
|
||||||
@for (user of users(); track user.id) {
|
@for (user of users(); track user.id) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{user.name}}</td>
|
<td>{{ user.name }}</td>
|
||||||
<td>{{user.email}}</td>
|
<td>{{ user.email }}</td>
|
||||||
<td>{{user.fonction}}</td>
|
<td>{{ user.fonction }}</td>
|
||||||
<td>
|
<td>
|
||||||
<div style="justify-content: center; display: flex">
|
<div style="justify-content: center; display: flex">
|
||||||
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer" (click)="openEditModal(user)"></nz-icon>
|
<nz-icon nzType="edit" nzTheme="outline" class="cursor-pointer"
|
||||||
|
(click)="openEditModal(user)"></nz-icon>
|
||||||
<nz-divider nzType="vertical"></nz-divider>
|
<nz-divider nzType="vertical"></nz-divider>
|
||||||
<div>
|
<div>
|
||||||
<nz-icon nzType="delete" nzTheme="outline" (click)="delete(user.id)" class="cursor-pointer text-red-700"/>
|
<nz-icon nzType="delete" nzTheme="outline" (click)="delete(user.id)"
|
||||||
|
class="cursor-pointer text-red-700"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
@@ -31,7 +33,8 @@
|
|||||||
</nz-table>
|
</nz-table>
|
||||||
|
|
||||||
<div class="hidden">
|
<div class="hidden">
|
||||||
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modifier'" (ok)="onModalOk(selectedUser.id, updateUser, modalNav)" (cancel)="onModalCancel(modalNav)">
|
<app-modal-nav #modalNav nameIcon="edit" [name]="'Modifier'" (ok)="onModalOk(selectedUser.id, updateUser, modalNav)"
|
||||||
|
(cancel)="onModalCancel(modalNav)">
|
||||||
<app-profil-form #updateUser [user]="selectedUser"></app-profil-form>
|
<app-profil-form #updateUser [user]="selectedUser"></app-profil-form>
|
||||||
</app-modal-nav>
|
</app-modal-nav>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {NzNotificationService} from "ng-zorro-antd/notification";
|
|||||||
import {firstValueFrom} from "rxjs";
|
import {firstValueFrom} from "rxjs";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-user-table',
|
selector: 'app-user-table',
|
||||||
imports: [
|
imports: [
|
||||||
ModalNav,
|
ModalNav,
|
||||||
NzIconDirective,
|
NzIconDirective,
|
||||||
@@ -17,8 +17,8 @@ import {firstValueFrom} from "rxjs";
|
|||||||
ProfilForm,
|
ProfilForm,
|
||||||
NzDividerComponent
|
NzDividerComponent
|
||||||
],
|
],
|
||||||
templateUrl: './user-table.html',
|
templateUrl: './user-table.html',
|
||||||
styleUrl: './user-table.css',
|
styleUrl: './user-table.css',
|
||||||
})
|
})
|
||||||
export class UserTable implements OnInit {
|
export class UserTable implements OnInit {
|
||||||
private usersService = inject(UsersService);
|
private usersService = inject(UsersService);
|
||||||
@@ -47,7 +47,7 @@ export class UserTable implements OnInit {
|
|||||||
this.usersLoading.set(false)
|
this.usersLoading.set(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
async delete(user:number) {
|
async delete(user: number) {
|
||||||
try {
|
try {
|
||||||
await firstValueFrom(this.usersService.deleteUserEndpoint(user))
|
await firstValueFrom(this.usersService.deleteUserEndpoint(user))
|
||||||
this.notificationService.success(
|
this.notificationService.success(
|
||||||
@@ -89,8 +89,9 @@ export class UserTable implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
selectedUser: GetUserDto | null = null;
|
selectedUser: GetUserDto | null = null;
|
||||||
|
|
||||||
openEditModal(user: GetUserDto) {
|
openEditModal(user: GetUserDto) {
|
||||||
this.selectedUser = { ...user };
|
this.selectedUser = {...user};
|
||||||
this.modal().showModal();
|
this.modal().showModal();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,9 +103,11 @@ export class UserTable implements OnInit {
|
|||||||
modal.isVisible = false;
|
modal.isVisible = false;
|
||||||
await this.fetchUsers();
|
await this.fetchUsers();
|
||||||
}
|
}
|
||||||
|
|
||||||
onModalCancel(modal: ModalNav) {
|
onModalCancel(modal: ModalNav) {
|
||||||
modal.isVisible = false;
|
modal.isVisible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
filterUser(input: string, option: any) {
|
filterUser(input: string, option: any) {
|
||||||
return option.nzLabel.toLowerCase().includes(input.toLowerCase());
|
return option.nzLabel.toLowerCase().includes(input.toLowerCase());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
export interface NotifInfo {
|
|
||||||
author: string;
|
|
||||||
title: string;
|
|
||||||
content: string;
|
|
||||||
}
|
|
||||||
@@ -8,15 +8,15 @@ import {NzNotificationService} from "ng-zorro-antd/notification";
|
|||||||
import {firstValueFrom} from "rxjs";
|
import {firstValueFrom} from "rxjs";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-deliverer',
|
selector: 'app-deliverer',
|
||||||
imports: [
|
imports: [
|
||||||
ModalButton,
|
ModalButton,
|
||||||
DelivererTable,
|
DelivererTable,
|
||||||
DelivererForm,
|
DelivererForm,
|
||||||
Search
|
Search
|
||||||
],
|
],
|
||||||
templateUrl: './deliverer.html',
|
templateUrl: './deliverer.html',
|
||||||
styleUrl: './deliverer.css',
|
styleUrl: './deliverer.css',
|
||||||
})
|
})
|
||||||
export class Deliverer {
|
export class Deliverer {
|
||||||
modal = viewChild.required<ModalButton>('modalButton');
|
modal = viewChild.required<ModalButton>('modalButton');
|
||||||
@@ -37,8 +37,7 @@ export class Deliverer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async addDeliverer() {
|
async addDeliverer() {
|
||||||
if (this.createDeliverer().delivererForm.invalid)
|
if (this.createDeliverer().delivererForm.invalid) {
|
||||||
{
|
|
||||||
this.notificationService.error(
|
this.notificationService.error(
|
||||||
'Erreur',
|
'Erreur',
|
||||||
'Erreur d\'écriture dans le formulaire'
|
'Erreur d\'écriture dans le formulaire'
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {DelivereryNoteTable} from "../../components/deliverery-note-table/deliverery-note-table";
|
import {DelivereryNoteTable} from "../../components/deliverery-note-table/deliverery-note-table";
|
||||||
import {ModalButton} from "../../components/modal-button/modal-button";
|
import {ModalButton} from "../../components/modal-button/modal-button";
|
||||||
import {DelivereryNoteForm} from "../../components/deliverery-note-form/deliverery-note-form";
|
import {DelivereryNoteForm} from "../../components/deliverery-note-form/deliverery-note-form";
|
||||||
import {Search} from "../../components/search/search";
|
import {Search} from "../../components/search/search";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-delivery-note',
|
selector: 'app-delivery-note',
|
||||||
imports: [
|
imports: [
|
||||||
DelivereryNoteTable,
|
DelivereryNoteTable,
|
||||||
Search
|
Search
|
||||||
],
|
],
|
||||||
templateUrl: './delivery-note.html',
|
templateUrl: './delivery-note.html',
|
||||||
styleUrl: './delivery-note.css',
|
styleUrl: './delivery-note.css',
|
||||||
})
|
})
|
||||||
export class DeliveryNote {
|
export class DeliveryNote {
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {Search} from "../../components/search/search";
|
import {Search} from "../../components/search/search";
|
||||||
import {PurchaseOrderTable} from "../../components/purchase-order-table/purchase-order-table";
|
import {PurchaseOrderTable} from "../../components/purchase-order-table/purchase-order-table";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-purchase-order',
|
selector: 'app-purchase-order',
|
||||||
imports: [
|
imports: [
|
||||||
Search,
|
Search,
|
||||||
PurchaseOrderTable,
|
PurchaseOrderTable,
|
||||||
],
|
],
|
||||||
templateUrl: './purchase-order.html',
|
templateUrl: './purchase-order.html',
|
||||||
styleUrl: './purchase-order.css',
|
styleUrl: './purchase-order.css',
|
||||||
})
|
})
|
||||||
export class PurchaseOrder {
|
export class PurchaseOrder {
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {Search} from "../../components/search/search";
|
import {Search} from "../../components/search/search";
|
||||||
import {QuotationTable} from "../../components/quotation-table/quotation-table";
|
import {QuotationTable} from "../../components/quotation-table/quotation-table";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-quotation',
|
selector: 'app-quotation',
|
||||||
imports: [
|
imports: [
|
||||||
Search,
|
Search,
|
||||||
QuotationTable
|
QuotationTable
|
||||||
],
|
],
|
||||||
templateUrl: './quotation.html',
|
templateUrl: './quotation.html',
|
||||||
styleUrl: './quotation.css',
|
styleUrl: './quotation.css',
|
||||||
})
|
})
|
||||||
export class Quotation {
|
export class Quotation {
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import {CreatePurchaseorderForm} from "../../components/create-purchaseorder-for
|
|||||||
import {CreateQuotationForm} from "../../components/create-quotation-form/create-quotation-form";
|
import {CreateQuotationForm} from "../../components/create-quotation-form/create-quotation-form";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-stock',
|
selector: 'app-stock',
|
||||||
imports: [
|
imports: [
|
||||||
StockTable,
|
StockTable,
|
||||||
Search,
|
Search,
|
||||||
@@ -18,8 +18,8 @@ import {CreateQuotationForm} from "../../components/create-quotation-form/create
|
|||||||
CreatePurchaseorderForm,
|
CreatePurchaseorderForm,
|
||||||
CreateQuotationForm,
|
CreateQuotationForm,
|
||||||
],
|
],
|
||||||
templateUrl: './stock.html',
|
templateUrl: './stock.html',
|
||||||
styleUrl: './stock.css',
|
styleUrl: './stock.css',
|
||||||
})
|
})
|
||||||
|
|
||||||
export class Stock {
|
export class Stock {
|
||||||
|
|||||||
@@ -8,15 +8,15 @@ import {NzNotificationService} from "ng-zorro-antd/notification";
|
|||||||
import {firstValueFrom} from "rxjs";
|
import {firstValueFrom} from "rxjs";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-supplier',
|
selector: 'app-supplier',
|
||||||
imports: [
|
imports: [
|
||||||
Search,
|
Search,
|
||||||
SupplierForm,
|
SupplierForm,
|
||||||
SupplierTable,
|
SupplierTable,
|
||||||
ModalButton
|
ModalButton
|
||||||
],
|
],
|
||||||
templateUrl: './supplier.html',
|
templateUrl: './supplier.html',
|
||||||
styleUrl: './supplier.css',
|
styleUrl: './supplier.css',
|
||||||
})
|
})
|
||||||
export class Supplier {
|
export class Supplier {
|
||||||
modal = viewChild.required<ModalButton>('modalButton');
|
modal = viewChild.required<ModalButton>('modalButton');
|
||||||
@@ -41,8 +41,7 @@ export class Supplier {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async addSupplier() {
|
async addSupplier() {
|
||||||
if (this.createSupplier().supplierForm.invalid)
|
if (this.createSupplier().supplierForm.invalid) {
|
||||||
{
|
|
||||||
this.notificationService.error(
|
this.notificationService.error(
|
||||||
'Erreur',
|
'Erreur',
|
||||||
'Erreur d\'écriture dans le formulaire'
|
'Erreur d\'écriture dans le formulaire'
|
||||||
|
|||||||
@@ -8,15 +8,15 @@ import {NzNotificationService} from "ng-zorro-antd/notification";
|
|||||||
import {firstValueFrom} from "rxjs";
|
import {firstValueFrom} from "rxjs";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-user',
|
selector: 'app-user',
|
||||||
imports: [
|
imports: [
|
||||||
UserTable,
|
UserTable,
|
||||||
ModalButton,
|
ModalButton,
|
||||||
ProfilForm,
|
ProfilForm,
|
||||||
Search
|
Search
|
||||||
],
|
],
|
||||||
templateUrl: './user.html',
|
templateUrl: './user.html',
|
||||||
styleUrl: './user.css',
|
styleUrl: './user.css',
|
||||||
})
|
})
|
||||||
export class User {
|
export class User {
|
||||||
modal = viewChild.required<ModalButton>('modalButton');
|
modal = viewChild.required<ModalButton>('modalButton');
|
||||||
@@ -37,8 +37,7 @@ export class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async addUser() {
|
async addUser() {
|
||||||
if (this.createUser().profilForm.invalid)
|
if (this.createUser().profilForm.invalid) {
|
||||||
{
|
|
||||||
this.notificationService.error(
|
this.notificationService.error(
|
||||||
'Erreur',
|
'Erreur',
|
||||||
'Erreur d\'écriture dans le formulaire'
|
'Erreur d\'écriture dans le formulaire'
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
<div class="flex gap-17 ml-20">
|
<div class="flex gap-17 ml-20">
|
||||||
<app-info-card color="#f59e0b" icon="inbox" value="15" description="Produits sous le seuil minimal."></app-info-card>
|
<app-info-card color="#f59e0b" icon="inbox" value="15"
|
||||||
|
description="Produits sous le seuil minimal."></app-info-card>
|
||||||
<app-info-card color="#3b82f6" icon="team" value="56" description="Partenaires actifs."></app-info-card>
|
<app-info-card color="#3b82f6" icon="team" value="56" description="Partenaires actifs."></app-info-card>
|
||||||
<app-info-card color="#10b981" icon="truck" value="8" description="Livreurs partenaires."></app-info-card>
|
<app-info-card color="#10b981" icon="truck" value="8" description="Livreurs partenaires."></app-info-card>
|
||||||
<app-info-card color="#ef4444" icon="shop" value="48" description="Fournisseurs travaillant avec nous."></app-info-card>
|
<app-info-card color="#ef4444" icon="shop" value="48"
|
||||||
|
description="Fournisseurs travaillant avec nous."></app-info-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-10 flex gap-30">
|
<div class="mt-10 flex gap-30">
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Routes } from '@angular/router';
|
import {Routes} from '@angular/router';
|
||||||
import { Welcome } from './welcome';
|
import {Welcome} from './welcome';
|
||||||
|
|
||||||
export const WELCOME_ROUTES: Routes = [
|
export const WELCOME_ROUTES: Routes = [
|
||||||
{ path: '', component: Welcome },
|
{path: '', component: Welcome},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
import { Component } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {InfoCard} from "../../components/info-card/info-card";
|
import {InfoCard} from "../../components/info-card/info-card";
|
||||||
import {DeliveryValidator} from "../../components/delivery-validator/delivery-validator";
|
import {DeliveryValidator} from "../../components/delivery-validator/delivery-validator";
|
||||||
import {InfoTable} from "../../components/info-table/info-table";
|
import {InfoTable} from "../../components/info-table/info-table";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-welcome',
|
selector: 'app-welcome',
|
||||||
imports: [
|
imports: [
|
||||||
InfoCard,
|
InfoCard,
|
||||||
DeliveryValidator,
|
DeliveryValidator,
|
||||||
InfoTable,
|
InfoTable,
|
||||||
],
|
],
|
||||||
templateUrl: './welcome.html',
|
templateUrl: './welcome.html',
|
||||||
styleUrl: './welcome.css'
|
styleUrl: './welcome.css'
|
||||||
})
|
})
|
||||||
|
|
||||||
export class Welcome {
|
export class Welcome {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
.gitignore
|
.gitignore
|
||||||
|
.openapi-generator-ignore
|
||||||
README.md
|
README.md
|
||||||
api.base.service.ts
|
api.base.service.ts
|
||||||
api.module.ts
|
api.module.ts
|
||||||
@@ -8,8 +9,6 @@ api/deliverynotes.service.ts
|
|||||||
api/prices.service.ts
|
api/prices.service.ts
|
||||||
api/products.service.ts
|
api/products.service.ts
|
||||||
api/purchaseorders.service.ts
|
api/purchaseorders.service.ts
|
||||||
api/purchaseproducts.service.ts
|
|
||||||
api/quotationproducts.service.ts
|
|
||||||
api/quotations.service.ts
|
api/quotations.service.ts
|
||||||
api/settings.service.ts
|
api/settings.service.ts
|
||||||
api/suppliers.service.ts
|
api/suppliers.service.ts
|
||||||
@@ -19,6 +18,7 @@ configuration.ts
|
|||||||
encoder.ts
|
encoder.ts
|
||||||
git_push.sh
|
git_push.sh
|
||||||
index.ts
|
index.ts
|
||||||
|
model/add-quotation-product-dto.ts
|
||||||
model/connect-user-dto.ts
|
model/connect-user-dto.ts
|
||||||
model/create-deliverer-dto.ts
|
model/create-deliverer-dto.ts
|
||||||
model/create-delivery-note-dto.ts
|
model/create-delivery-note-dto.ts
|
||||||
@@ -28,7 +28,6 @@ model/create-purchase-order-dto.ts
|
|||||||
model/create-purchase-order-product-dto.ts
|
model/create-purchase-order-product-dto.ts
|
||||||
model/create-purchase-product-dto.ts
|
model/create-purchase-product-dto.ts
|
||||||
model/create-quotation-dto.ts
|
model/create-quotation-dto.ts
|
||||||
model/create-quotation-product-dto.ts
|
|
||||||
model/create-setting-dto.ts
|
model/create-setting-dto.ts
|
||||||
model/create-supplier-dto.ts
|
model/create-supplier-dto.ts
|
||||||
model/create-user-dto.ts
|
model/create-user-dto.ts
|
||||||
@@ -54,6 +53,7 @@ model/patch-product-minimal-stock-dto.ts
|
|||||||
model/patch-purchase-order-purchase-conditions-dto.ts
|
model/patch-purchase-order-purchase-conditions-dto.ts
|
||||||
model/patch-purchase-product-quantity-dto.ts
|
model/patch-purchase-product-quantity-dto.ts
|
||||||
model/patch-quotation-conditions-sale-dto.ts
|
model/patch-quotation-conditions-sale-dto.ts
|
||||||
|
model/patch-quotation-message-dto.ts
|
||||||
model/patch-quotation-product-quantity-dto.ts
|
model/patch-quotation-product-quantity-dto.ts
|
||||||
model/patch-setting-electronic-signature-dto.ts
|
model/patch-setting-electronic-signature-dto.ts
|
||||||
model/patch-setting-logo-dto.ts
|
model/patch-setting-logo-dto.ts
|
||||||
|
|||||||
@@ -73,7 +73,9 @@ export const appConfig: ApplicationConfig = {
|
|||||||
```
|
```
|
||||||
|
|
||||||
**NOTE**
|
**NOTE**
|
||||||
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you can still import an Angular module:
|
If you're still using `AppModule` and haven't [migrated](https://angular.dev/reference/migrations/standalone) yet, you
|
||||||
|
can still import an Angular module:
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
import { ApiModule } from '';
|
import { ApiModule } from '';
|
||||||
```
|
```
|
||||||
@@ -181,5 +183,7 @@ new Configuration({
|
|||||||
```
|
```
|
||||||
|
|
||||||
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
|
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
|
||||||
|
|
||||||
[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
|
[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
|
||||||
|
|
||||||
[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
|
[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
|
||||||
|
|||||||
@@ -1,23 +1,23 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http';
|
||||||
import { CustomHttpParameterCodec } from './encoder';
|
import {CustomHttpParameterCodec} from './encoder';
|
||||||
import { Configuration } from './configuration';
|
import {Configuration} from './configuration';
|
||||||
|
|
||||||
export class BaseService {
|
export class BaseService {
|
||||||
protected basePath = 'https://localhost:44379';
|
protected basePath = 'http://localhost:5298';
|
||||||
public defaultHeaders = new HttpHeaders();
|
public defaultHeaders = new HttpHeaders();
|
||||||
public configuration: Configuration;
|
public configuration: Configuration;
|
||||||
public encoder: HttpParameterCodec;
|
public encoder: HttpParameterCodec;
|
||||||
|
|
||||||
constructor(basePath?: string|string[], configuration?: Configuration) {
|
constructor(basePath?: string | string[], configuration?: Configuration) {
|
||||||
this.configuration = configuration || new Configuration();
|
this.configuration = configuration || new Configuration();
|
||||||
if (typeof this.configuration.basePath !== 'string') {
|
if (typeof this.configuration.basePath !== 'string') {
|
||||||
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
||||||
|
|||||||
@@ -1,30 +1,30 @@
|
|||||||
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
|
import {NgModule, ModuleWithProviders, SkipSelf, Optional} from '@angular/core';
|
||||||
import { Configuration } from './configuration';
|
import {Configuration} from './configuration';
|
||||||
import { HttpClient } from '@angular/common/http';
|
import {HttpClient} from '@angular/common/http';
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [],
|
imports: [],
|
||||||
declarations: [],
|
declarations: [],
|
||||||
exports: [],
|
exports: [],
|
||||||
providers: []
|
providers: []
|
||||||
})
|
})
|
||||||
export class ApiModule {
|
export class ApiModule {
|
||||||
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
|
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
|
||||||
return {
|
return {
|
||||||
ngModule: ApiModule,
|
ngModule: ApiModule,
|
||||||
providers: [ { provide: Configuration, useFactory: configurationFactory } ]
|
providers: [{provide: Configuration, useFactory: configurationFactory}]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor( @Optional() @SkipSelf() parentModule: ApiModule,
|
constructor(@Optional() @SkipSelf() parentModule: ApiModule,
|
||||||
@Optional() http: HttpClient) {
|
@Optional() http: HttpClient) {
|
||||||
if (parentModule) {
|
if (parentModule) {
|
||||||
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
||||||
}
|
}
|
||||||
if (!http) {
|
if (!http) {
|
||||||
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
||||||
'See also https://github.com/angular/angular/issues/20575');
|
'See also https://github.com/angular/angular/issues/20575');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,25 +1,31 @@
|
|||||||
export * from './deliverers.service';
|
export * from './deliverers.service';
|
||||||
import { DeliverersService } from './deliverers.service';
|
import {DeliverersService} from './deliverers.service';
|
||||||
|
|
||||||
export * from './deliverynotes.service';
|
export * from './deliverynotes.service';
|
||||||
import { DeliverynotesService } from './deliverynotes.service';
|
import {DeliverynotesService} from './deliverynotes.service';
|
||||||
|
|
||||||
export * from './prices.service';
|
export * from './prices.service';
|
||||||
import { PricesService } from './prices.service';
|
import {PricesService} from './prices.service';
|
||||||
|
|
||||||
export * from './products.service';
|
export * from './products.service';
|
||||||
import { ProductsService } from './products.service';
|
import {ProductsService} from './products.service';
|
||||||
|
|
||||||
export * from './purchaseorders.service';
|
export * from './purchaseorders.service';
|
||||||
import { PurchaseordersService } from './purchaseorders.service';
|
import {PurchaseordersService} from './purchaseorders.service';
|
||||||
export * from './purchaseproducts.service';
|
|
||||||
import { PurchaseproductsService } from './purchaseproducts.service';
|
|
||||||
export * from './quotationproducts.service';
|
|
||||||
import { QuotationproductsService } from './quotationproducts.service';
|
|
||||||
export * from './quotations.service';
|
export * from './quotations.service';
|
||||||
import { QuotationsService } from './quotations.service';
|
import {QuotationsService} from './quotations.service';
|
||||||
|
|
||||||
export * from './settings.service';
|
export * from './settings.service';
|
||||||
import { SettingsService } from './settings.service';
|
import {SettingsService} from './settings.service';
|
||||||
|
|
||||||
export * from './suppliers.service';
|
export * from './suppliers.service';
|
||||||
import { SuppliersService } from './suppliers.service';
|
import {SuppliersService} from './suppliers.service';
|
||||||
|
|
||||||
export * from './users.service';
|
export * from './users.service';
|
||||||
import { UsersService } from './users.service';
|
import {UsersService} from './users.service';
|
||||||
|
|
||||||
export * from './warehouseproducts.service';
|
export * from './warehouseproducts.service';
|
||||||
import { WarehouseproductsService } from './warehouseproducts.service';
|
import {WarehouseproductsService} from './warehouseproducts.service';
|
||||||
export const APIS = [DeliverersService, DeliverynotesService, PricesService, ProductsService, PurchaseordersService, PurchaseproductsService, QuotationproductsService, QuotationsService, SettingsService, SuppliersService, UsersService, WarehouseproductsService];
|
|
||||||
|
export const APIS = [DeliverersService, DeliverynotesService, PricesService, ProductsService, PurchaseordersService, QuotationsService, SettingsService, SuppliersService, UsersService, WarehouseproductsService];
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,46 +9,62 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import {CustomHttpParameterCodec} from '../encoder';
|
||||||
|
import {Observable} from 'rxjs';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreateDelivererDto } from '../model/create-deliverer-dto';
|
import {CreateDelivererDto} from '../model/create-deliverer-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetDelivererDto } from '../model/get-deliverer-dto';
|
import {GetDelivererDto} from '../model/get-deliverer-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { UpdateDelivererDto } from '../model/update-deliverer-dto';
|
import {UpdateDelivererDto} from '../model/update-deliverer-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class DeliverersService extends BaseService {
|
export class DeliverersService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/deliverers
|
* @endpoint post /API/deliverers
|
||||||
* @param createDelivererDto
|
* @param createDelivererDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDelivererDto>;
|
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDelivererDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDelivererDto>>;
|
context?: HttpContext,
|
||||||
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetDelivererDto>;
|
||||||
|
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetDelivererDto>>;
|
||||||
|
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetDelivererDto>>;
|
||||||
|
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (createDelivererDto === null || createDelivererDto === undefined) {
|
if (createDelivererDto === null || createDelivererDto === undefined) {
|
||||||
throw new Error('Required parameter createDelivererDto was null or undefined when calling createDelivererEndpoint.');
|
throw new Error('Required parameter createDelivererDto was null or undefined when calling createDelivererEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -88,16 +104,16 @@ export class DeliverersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliverers`;
|
let localVarPath = `/API/deliverers`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetDelivererDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetDelivererDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createDelivererDto,
|
body: createDelivererDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -105,22 +121,37 @@ export class DeliverersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/deliverers/{delivererId}
|
* @endpoint delete /API/deliverers/{delivererId}
|
||||||
* @param delivererId
|
* @param delivererId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public deleteDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (delivererId === null || delivererId === undefined) {
|
if (delivererId === null || delivererId === undefined) {
|
||||||
throw new Error('Required parameter delivererId was null or undefined when calling deleteDelivererEndpoint.');
|
throw new Error('Required parameter delivererId was null or undefined when calling deleteDelivererEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -141,16 +172,24 @@ export class DeliverersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({name: "delivererId", value: delivererId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "delivererId",
|
||||||
|
value: delivererId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -161,10 +200,26 @@ export class DeliverersService extends BaseService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAllDelivererEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetDelivererDto>>;
|
public getAllDelivererEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllDelivererEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetDelivererDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllDelivererEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetDelivererDto>>>;
|
context?: HttpContext,
|
||||||
public getAllDelivererEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetDelivererDto>>;
|
||||||
|
public getAllDelivererEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetDelivererDto>>>;
|
||||||
|
public getAllDelivererEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetDelivererDto>>>;
|
||||||
|
public getAllDelivererEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -192,15 +247,15 @@ export class DeliverersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliverers`;
|
let localVarPath = `/API/deliverers`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetDelivererDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetDelivererDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -208,14 +263,30 @@ export class DeliverersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/deliverers/{delivererId}
|
* @endpoint get /API/deliverers/{delivererId}
|
||||||
* @param delivererId
|
* @param delivererId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDelivererDto>;
|
public getDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDelivererDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDelivererDto>>;
|
context?: HttpContext,
|
||||||
public getDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetDelivererDto>;
|
||||||
|
public getDelivererEndpoint(delivererId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetDelivererDto>>;
|
||||||
|
public getDelivererEndpoint(delivererId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetDelivererDto>>;
|
||||||
|
public getDelivererEndpoint(delivererId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (delivererId === null || delivererId === undefined) {
|
if (delivererId === null || delivererId === undefined) {
|
||||||
throw new Error('Required parameter delivererId was null or undefined when calling getDelivererEndpoint.');
|
throw new Error('Required parameter delivererId was null or undefined when calling getDelivererEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -245,16 +316,24 @@ export class DeliverersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({name: "delivererId", value: delivererId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "delivererId",
|
||||||
|
value: delivererId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetDelivererDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetDelivererDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -262,15 +341,31 @@ export class DeliverersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/deliverers/{id}
|
* @endpoint put /API/deliverers/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateDelivererDto
|
* @param updateDelivererDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDelivererDto>;
|
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDelivererDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDelivererDto>>;
|
context?: HttpContext,
|
||||||
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetDelivererDto>;
|
||||||
|
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetDelivererDto>>;
|
||||||
|
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetDelivererDto>>;
|
||||||
|
public updateDelivererEndpoint(id: number, updateDelivererDto: UpdateDelivererDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling updateDelivererEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateDelivererEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -312,17 +407,25 @@ export class DeliverersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetDelivererDto>('put', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetDelivererDto>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: updateDelivererDto,
|
body: updateDelivererDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,57 +9,71 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import {CustomHttpParameterCodec} from '../encoder';
|
||||||
|
import {Observable} from 'rxjs';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreateDeliveryNoteDto } from '../model/create-delivery-note-dto';
|
import {CreateDeliveryNoteDto} from '../model/create-delivery-note-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetDeliveryNoteDto } from '../model/get-delivery-note-dto';
|
import {GetDeliveryNoteDto} from '../model/get-delivery-note-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchDeliveryNoteRealDeliveryDateDto } from '../model/patch-delivery-note-real-delivery-date-dto';
|
import {PatchDeliveryNoteRealDeliveryDateDto} from '../model/patch-delivery-note-real-delivery-date-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { UpdateDeliveryNoteDto } from '../model/update-delivery-note-dto';
|
import {UpdateDeliveryNoteDto} from '../model/update-delivery-note-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class DeliverynotesService extends BaseService {
|
export class DeliverynotesService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/deliveryNotes
|
* @endpoint post /API/deliveryNotes
|
||||||
* @param createDeliveryNoteDto
|
* @param createDeliveryNoteDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDeliveryNoteDto>;
|
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDeliveryNoteDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDeliveryNoteDto>>;
|
context?: HttpContext,
|
||||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (createDeliveryNoteDto === null || createDeliveryNoteDto === undefined) {
|
if (createDeliveryNoteDto === null || createDeliveryNoteDto === undefined) {
|
||||||
throw new Error('Required parameter createDeliveryNoteDto was null or undefined when calling createDeliveryNoteEndpoint.');
|
throw new Error('Required parameter createDeliveryNoteDto was null or undefined when calling createDeliveryNoteEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -90,16 +104,16 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes`;
|
let localVarPath = `/API/deliveryNotes`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetDeliveryNoteDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createDeliveryNoteDto,
|
body: createDeliveryNoteDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -107,22 +121,37 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/deliveryNotes/{id}
|
* @endpoint delete /API/deliveryNotes/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public deleteDeliveryNoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteDeliveryNoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteDeliveryNoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteDeliveryNoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteDeliveryNoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteDeliveryNoteEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteDeliveryNoteEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteDeliveryNoteEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling deleteDeliveryNoteEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deleteDeliveryNoteEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -143,16 +172,24 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -163,10 +200,26 @@ export class DeliverynotesService extends BaseService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAllDeliveryNoteEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetDeliveryNoteDto>>;
|
public getAllDeliveryNoteEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllDeliveryNoteEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetDeliveryNoteDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllDeliveryNoteEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetDeliveryNoteDto>>>;
|
context?: HttpContext,
|
||||||
public getAllDeliveryNoteEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetDeliveryNoteDto>>;
|
||||||
|
public getAllDeliveryNoteEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetDeliveryNoteDto>>>;
|
||||||
|
public getAllDeliveryNoteEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetDeliveryNoteDto>>>;
|
||||||
|
public getAllDeliveryNoteEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -194,15 +247,15 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes`;
|
let localVarPath = `/API/deliveryNotes`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetDeliveryNoteDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetDeliveryNoteDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -210,14 +263,30 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/deliveryNotes/{deliveryNoteId}
|
* @endpoint get /API/deliveryNotes/{deliveryNoteId}
|
||||||
* @param deliveryNoteId
|
* @param deliveryNoteId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDeliveryNoteDto>;
|
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDeliveryNoteDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDeliveryNoteDto>>;
|
context?: HttpContext,
|
||||||
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetDeliveryNoteDto>;
|
||||||
|
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetDeliveryNoteDto>>;
|
||||||
|
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetDeliveryNoteDto>>;
|
||||||
|
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (deliveryNoteId === null || deliveryNoteId === undefined) {
|
if (deliveryNoteId === null || deliveryNoteId === undefined) {
|
||||||
throw new Error('Required parameter deliveryNoteId was null or undefined when calling getDeliveryNoteEndpoint.');
|
throw new Error('Required parameter deliveryNoteId was null or undefined when calling getDeliveryNoteEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -247,16 +316,24 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "deliveryNoteId", value: deliveryNoteId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "deliveryNoteId",
|
||||||
|
value: deliveryNoteId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetDeliveryNoteDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetDeliveryNoteDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -264,14 +341,30 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/deliveryNotes/{id}/pdf
|
* @endpoint get /API/deliveryNotes/{id}/pdf
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getDeliveryNotePdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<Blob>;
|
public getDeliveryNotePdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getDeliveryNotePdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Blob>>;
|
httpHeaderAccept?: 'application/pdf',
|
||||||
public getDeliveryNotePdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Blob>>;
|
context?: HttpContext,
|
||||||
public getDeliveryNotePdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Blob>;
|
||||||
|
public getDeliveryNotePdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/pdf',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Blob>>;
|
||||||
|
public getDeliveryNotePdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/pdf',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Blob>>;
|
||||||
|
public getDeliveryNotePdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/pdf',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getDeliveryNotePdfEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getDeliveryNotePdfEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -290,16 +383,24 @@ export class DeliverynotesService extends BaseService {
|
|||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/pdf`;
|
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/pdf`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -307,15 +408,31 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/deliveryNotes/{id}
|
* @endpoint patch /API/deliveryNotes/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchDeliveryNoteRealDeliveryDateDto
|
* @param patchDeliveryNoteRealDeliveryDateDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDeliveryNoteDto>;
|
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDeliveryNoteDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDeliveryNoteDto>>;
|
context?: HttpContext,
|
||||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling patchRealDeliveryDateEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchRealDeliveryDateEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -325,9 +442,7 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -357,17 +472,25 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetDeliveryNoteDto>('patch', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchDeliveryNoteRealDeliveryDateDto,
|
body: patchDeliveryNoteRealDeliveryDateDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -375,15 +498,31 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/deliveryNotes/{id}
|
* @endpoint put /API/deliveryNotes/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateDeliveryNoteDto
|
* @param updateDeliveryNoteDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetDeliveryNoteDto>;
|
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDeliveryNoteDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDeliveryNoteDto>>;
|
context?: HttpContext,
|
||||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling updateDeliveryNoteEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateDeliveryNoteEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -393,9 +532,7 @@ export class DeliverynotesService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -425,17 +562,25 @@ export class DeliverynotesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetDeliveryNoteDto>('put', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: updateDeliveryNoteDto,
|
body: updateDeliveryNoteDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,169 +9,60 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import {CustomHttpParameterCodec} from '../encoder';
|
||||||
|
import {Observable} from 'rxjs';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreatePriceDto } from '../model/create-price-dto';
|
import {PatchPriceSellingPriceDto} from '../model/patch-price-selling-price-dto';
|
||||||
// @ts-ignore
|
|
||||||
import { GetPriceDto } from '../model/get-price-dto';
|
|
||||||
// @ts-ignore
|
|
||||||
import { PatchPriceSellingPriceDto } from '../model/patch-price-selling-price-dto';
|
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class PricesService extends BaseService {
|
export class PricesService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @endpoint post /API/prices
|
|
||||||
* @param createPriceDto
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public createPriceEndpoint(createPriceDto: CreatePriceDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetPriceDto>;
|
|
||||||
public createPriceEndpoint(createPriceDto: CreatePriceDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPriceDto>>;
|
|
||||||
public createPriceEndpoint(createPriceDto: CreatePriceDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPriceDto>>;
|
|
||||||
public createPriceEndpoint(createPriceDto: CreatePriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (createPriceDto === null || createPriceDto === undefined) {
|
|
||||||
throw new Error('Required parameter createPriceDto was null or undefined when calling createPriceEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
|
||||||
const consumes: string[] = [
|
|
||||||
'application/json'
|
|
||||||
];
|
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/API/prices`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<GetPriceDto>('post', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
body: createPriceDto,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @endpoint delete /API/prices/{productId}/{supplierId}
|
|
||||||
* @param productId
|
|
||||||
* @param supplierId
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public deletePriceEndpoint(productId: number, supplierId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
|
||||||
public deletePriceEndpoint(productId: number, supplierId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
|
||||||
public deletePriceEndpoint(productId: number, supplierId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
|
||||||
public deletePriceEndpoint(productId: number, supplierId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
|
||||||
throw new Error('Required parameter productId was null or undefined when calling deletePriceEndpoint.');
|
|
||||||
}
|
|
||||||
if (supplierId === null || supplierId === undefined) {
|
|
||||||
throw new Error('Required parameter supplierId was null or undefined when calling deletePriceEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/API/prices/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "supplierId", value: supplierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/prices/{productId}/{supplierId}/SellingPrice
|
* @endpoint patch /API/prices/{productId}/{supplierId}/SellingPrice
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param supplierId
|
* @param supplierId
|
||||||
* @param patchPriceSellingPriceDto
|
* @param patchPriceSellingPriceDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetPriceDto>;
|
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPriceDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPriceDto>>;
|
context?: HttpContext,
|
||||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling patchPriceEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling patchPriceEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -184,9 +75,7 @@ export class PricesService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -216,17 +105,33 @@ export class PricesService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/prices/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "supplierId", value: supplierId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/SellingPrice`;
|
let localVarPath = `/API/prices/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "productId",
|
||||||
return this.httpClient.request<GetPriceDto>('patch', `${basePath}${localVarPath}`,
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/${this.configuration.encodeParam({
|
||||||
|
name: "supplierId",
|
||||||
|
value: supplierId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/SellingPrice`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchPriceSellingPriceDto,
|
body: patchPriceSellingPriceDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,54 +9,69 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import {CustomHttpParameterCodec} from '../encoder';
|
||||||
|
import {Observable} from 'rxjs';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetProductDto } from '../model/get-product-dto';
|
import {GetProductDto} from '../model/get-product-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchProductMinimalStockDto } from '../model/patch-product-minimal-stock-dto';
|
import {PatchProductMinimalStockDto} from '../model/patch-product-minimal-stock-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { UpdateProductDto } from '../model/update-product-dto';
|
import {UpdateProductDto} from '../model/update-product-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class ProductsService extends BaseService {
|
export class ProductsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/products/{productId}
|
* @endpoint delete /API/products/{productId}
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public deleteProductEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteProductEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteProductEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteProductEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteProductEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteProductEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteProductEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteProductEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling deleteProductEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling deleteProductEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -77,16 +92,24 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/products/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -97,10 +120,26 @@ export class ProductsService extends BaseService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAllProductsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetProductDto>>;
|
public getAllProductsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllProductsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetProductDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllProductsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetProductDto>>>;
|
context?: HttpContext,
|
||||||
public getAllProductsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetProductDto>>;
|
||||||
|
public getAllProductsEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetProductDto>>>;
|
||||||
|
public getAllProductsEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetProductDto>>>;
|
||||||
|
public getAllProductsEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -128,15 +167,15 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products`;
|
let localVarPath = `/API/products`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetProductDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetProductDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -147,10 +186,26 @@ export class ProductsService extends BaseService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAllProductsUnderLimitEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetProductDto>>;
|
public getAllProductsUnderLimitEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllProductsUnderLimitEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetProductDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllProductsUnderLimitEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetProductDto>>>;
|
context?: HttpContext,
|
||||||
public getAllProductsUnderLimitEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetProductDto>>;
|
||||||
|
public getAllProductsUnderLimitEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetProductDto>>>;
|
||||||
|
public getAllProductsUnderLimitEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetProductDto>>>;
|
||||||
|
public getAllProductsUnderLimitEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -178,15 +233,15 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products/underLimit`;
|
let localVarPath = `/API/products/underLimit`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetProductDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetProductDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -194,14 +249,30 @@ export class ProductsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/products/{id}
|
* @endpoint get /API/products/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getProductEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetProductDto>;
|
public getProductEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getProductEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetProductDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getProductEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetProductDto>>;
|
context?: HttpContext,
|
||||||
public getProductEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetProductDto>;
|
||||||
|
public getProductEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetProductDto>>;
|
||||||
|
public getProductEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetProductDto>>;
|
||||||
|
public getProductEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getProductEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getProductEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -231,16 +302,24 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/products/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetProductDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetProductDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -248,15 +327,31 @@ export class ProductsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/products/{id}/MinimalStock
|
* @endpoint patch /API/products/{id}/MinimalStock
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchProductMinimalStockDto
|
* @param patchProductMinimalStockDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetProductDto>;
|
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetProductDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetProductDto>>;
|
context?: HttpContext,
|
||||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling patchProductMinimalStockEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchProductMinimalStockEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -266,9 +361,7 @@ export class ProductsService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -298,17 +391,25 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/MinimalStock`;
|
let localVarPath = `/API/products/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetProductDto>('patch', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/MinimalStock`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchProductMinimalStockDto,
|
body: patchProductMinimalStockDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -316,15 +417,31 @@ export class ProductsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/products/{id}
|
* @endpoint put /API/products/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateProductDto
|
* @param updateProductDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetProductDto>;
|
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetProductDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetProductDto>>;
|
context?: HttpContext,
|
||||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling updateProductEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateProductEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -334,9 +451,7 @@ export class ProductsService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -366,17 +481,25 @@ export class ProductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/products/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetProductDto>('put', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: updateProductDto,
|
body: updateProductDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,55 +9,175 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import {CustomHttpParameterCodec} from '../encoder';
|
||||||
|
import {Observable} from 'rxjs';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreatePurchaseOrderDto } from '../model/create-purchase-order-dto';
|
import {CreatePurchaseOrderDto} from '../model/create-purchase-order-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetPurchaseOrderDto } from '../model/get-purchase-order-dto';
|
import {CreatePurchaseProductDto} from '../model/create-purchase-product-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchPurchaseOrderPurchaseConditionsDto } from '../model/patch-purchase-order-purchase-conditions-dto';
|
import {GetPurchaseOrderDto} from '../model/get-purchase-order-dto';
|
||||||
|
// @ts-ignore
|
||||||
|
import {PatchPurchaseOrderPurchaseConditionsDto} from '../model/patch-purchase-order-purchase-conditions-dto';
|
||||||
|
// @ts-ignore
|
||||||
|
import {PatchPurchaseProductQuantityDto} from '../model/patch-purchase-product-quantity-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class PurchaseordersService extends BaseService {
|
export class PurchaseordersService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/purchaseOrders
|
* @endpoint post /API/purchaseOrders/{purchaseOrderId}/{productId}
|
||||||
* @param createPurchaseOrderDto
|
* @param purchaseOrderId
|
||||||
|
* @param productId
|
||||||
|
* @param createPurchaseProductDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetPurchaseOrderDto>;
|
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPurchaseOrderDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPurchaseOrderDto>>;
|
context?: HttpContext,
|
||||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (purchaseOrderId === null || purchaseOrderId === undefined) {
|
||||||
|
throw new Error('Required parameter purchaseOrderId was null or undefined when calling addProductFromPurchaseOrderEndpoint.');
|
||||||
|
}
|
||||||
|
if (productId === null || productId === undefined) {
|
||||||
|
throw new Error('Required parameter productId was null or undefined when calling addProductFromPurchaseOrderEndpoint.');
|
||||||
|
}
|
||||||
|
if (createPurchaseProductDto === null || createPurchaseProductDto === undefined) {
|
||||||
|
throw new Error('Required parameter createPurchaseProductDto was null or undefined when calling addProductFromPurchaseOrderEndpoint.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
|
// to determine the Content-Type header
|
||||||
|
const consumes: string[] = [
|
||||||
|
'application/json'
|
||||||
|
];
|
||||||
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||||
|
if (httpContentTypeSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
||||||
|
name: "purchaseOrderId",
|
||||||
|
value: purchaseOrderId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/${this.configuration.encodeParam({
|
||||||
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
body: createPurchaseProductDto,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @endpoint post /API/purchaseOrders
|
||||||
|
* @param createPurchaseOrderDto
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (createPurchaseOrderDto === null || createPurchaseOrderDto === undefined) {
|
if (createPurchaseOrderDto === null || createPurchaseOrderDto === undefined) {
|
||||||
throw new Error('Required parameter createPurchaseOrderDto was null or undefined when calling createPurchaseOrder.');
|
throw new Error('Required parameter createPurchaseOrderDto was null or undefined when calling createPurchaseOrder.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -88,39 +208,58 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders`;
|
let localVarPath = `/API/purchaseOrders`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetPurchaseOrderDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createPurchaseOrderDto,
|
body: createPurchaseOrderDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/purchaseOrders/{id}
|
* @endpoint delete /API/purchaseOrders/{productId}/{purchaseOrderId}
|
||||||
* @param id
|
* @param productId
|
||||||
|
* @param purchaseOrderId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public deletePurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deletePurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deletePurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deletePurchaseOrderEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
if (id === null || id === undefined) {
|
}): Observable<any>;
|
||||||
throw new Error('Required parameter id was null or undefined when calling deletePurchaseOrderEndpoint.');
|
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (productId === null || productId === undefined) {
|
||||||
|
throw new Error('Required parameter productId was null or undefined when calling deleteProductFromPurchaseOrderEndpoint.');
|
||||||
|
}
|
||||||
|
if (purchaseOrderId === null || purchaseOrderId === undefined) {
|
||||||
|
throw new Error('Required parameter purchaseOrderId was null or undefined when calling deleteProductFromPurchaseOrderEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -141,16 +280,108 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/${this.configuration.encodeParam({
|
||||||
|
name: "purchaseOrderId",
|
||||||
|
value: purchaseOrderId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @endpoint delete /API/purchaseOrders/{id}
|
||||||
|
* @param id
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public deletePurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deletePurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deletePurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deletePurchaseOrderEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (id === null || id === undefined) {
|
||||||
|
throw new Error('Required parameter id was null or undefined when calling deletePurchaseOrderEndpoint.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
||||||
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -161,10 +392,26 @@ export class PurchaseordersService extends BaseService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAllPurchaseOrderEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetPurchaseOrderDto>>;
|
public getAllPurchaseOrderEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllPurchaseOrderEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetPurchaseOrderDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllPurchaseOrderEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetPurchaseOrderDto>>>;
|
context?: HttpContext,
|
||||||
public getAllPurchaseOrderEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetPurchaseOrderDto>>;
|
||||||
|
public getAllPurchaseOrderEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetPurchaseOrderDto>>>;
|
||||||
|
public getAllPurchaseOrderEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetPurchaseOrderDto>>>;
|
||||||
|
public getAllPurchaseOrderEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -192,15 +439,15 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders`;
|
let localVarPath = `/API/purchaseOrders`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetPurchaseOrderDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetPurchaseOrderDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -208,14 +455,30 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/purchaseOrders/{id}
|
* @endpoint get /API/purchaseOrders/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getPurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetPurchaseOrderDto>;
|
public getPurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getPurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPurchaseOrderDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getPurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPurchaseOrderDto>>;
|
context?: HttpContext,
|
||||||
public getPurchaseOrderEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetPurchaseOrderDto>;
|
||||||
|
public getPurchaseOrderEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetPurchaseOrderDto>>;
|
||||||
|
public getPurchaseOrderEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetPurchaseOrderDto>>;
|
||||||
|
public getPurchaseOrderEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -245,16 +508,24 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetPurchaseOrderDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetPurchaseOrderDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -262,14 +533,30 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/purchaseOrders/{id}/pdf
|
* @endpoint get /API/purchaseOrders/{id}/pdf
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<Blob>;
|
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Blob>>;
|
httpHeaderAccept?: 'application/pdf',
|
||||||
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Blob>>;
|
context?: HttpContext,
|
||||||
public getPurchaseOrderPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Blob>;
|
||||||
|
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/pdf',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Blob>>;
|
||||||
|
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/pdf',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Blob>>;
|
||||||
|
public getPurchaseOrderPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/pdf',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderPdfEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getPurchaseOrderPdfEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -288,16 +575,24 @@ export class PurchaseordersService extends BaseService {
|
|||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/pdf`;
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/pdf`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -305,15 +600,31 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/purchaseOrders/{id}/PurchaseConditions
|
* @endpoint patch /API/purchaseOrders/{id}/PurchaseConditions
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchPurchaseOrderPurchaseConditionsDto
|
* @param patchPurchaseOrderPurchaseConditionsDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetPurchaseOrderDto>;
|
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPurchaseOrderDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPurchaseOrderDto>>;
|
context?: HttpContext,
|
||||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling patchPurchaseOrderPurchaseConditionsEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchPurchaseOrderPurchaseConditionsEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -323,9 +634,7 @@ export class PurchaseordersService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -355,17 +664,127 @@ export class PurchaseordersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/PurchaseConditions`;
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetPurchaseOrderDto>('patch', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/PurchaseConditions`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchPurchaseOrderPurchaseConditionsDto,
|
body: patchPurchaseOrderPurchaseConditionsDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @endpoint patch /API/purchaseOrders/{productId}/{purchaseOrderId}/Quantity
|
||||||
|
* @param productId
|
||||||
|
* @param purchaseOrderId
|
||||||
|
* @param patchPurchaseProductQuantityDto
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (productId === null || productId === undefined) {
|
||||||
|
throw new Error('Required parameter productId was null or undefined when calling patchPurchaseProductQuantityEndpoint.');
|
||||||
|
}
|
||||||
|
if (purchaseOrderId === null || purchaseOrderId === undefined) {
|
||||||
|
throw new Error('Required parameter purchaseOrderId was null or undefined when calling patchPurchaseProductQuantityEndpoint.');
|
||||||
|
}
|
||||||
|
if (patchPurchaseProductQuantityDto === null || patchPurchaseProductQuantityDto === undefined) {
|
||||||
|
throw new Error('Required parameter patchPurchaseProductQuantityDto was null or undefined when calling patchPurchaseProductQuantityEndpoint.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
|
// to determine the Content-Type header
|
||||||
|
const consumes: string[] = [
|
||||||
|
'application/json'
|
||||||
|
];
|
||||||
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||||
|
if (httpContentTypeSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
||||||
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/${this.configuration.encodeParam({
|
||||||
|
name: "purchaseOrderId",
|
||||||
|
value: purchaseOrderId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/Quantity`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
body: patchPurchaseProductQuantityDto,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,235 +0,0 @@
|
|||||||
/**
|
|
||||||
* PyroFetes
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
|
||||||
} from '@angular/common/http';
|
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
|
||||||
import { Observable } from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
import { CreatePurchaseProductDto } from '../model/create-purchase-product-dto';
|
|
||||||
// @ts-ignore
|
|
||||||
import { GetPurchaseProductDto } from '../model/get-purchase-product-dto';
|
|
||||||
// @ts-ignore
|
|
||||||
import { PatchPurchaseProductQuantityDto } from '../model/patch-purchase-product-quantity-dto';
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
||||||
import { Configuration } from '../configuration';
|
|
||||||
import { BaseService } from '../api.base.service';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
|
||||||
providedIn: 'root'
|
|
||||||
})
|
|
||||||
export class PurchaseproductsService extends BaseService {
|
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
|
||||||
super(basePath, configuration);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @endpoint post /API/purchaseProducts
|
|
||||||
* @param createPurchaseProductDto
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public createPurchaseProductEndpoint(createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetPurchaseProductDto>;
|
|
||||||
public createPurchaseProductEndpoint(createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPurchaseProductDto>>;
|
|
||||||
public createPurchaseProductEndpoint(createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPurchaseProductDto>>;
|
|
||||||
public createPurchaseProductEndpoint(createPurchaseProductDto: CreatePurchaseProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (createPurchaseProductDto === null || createPurchaseProductDto === undefined) {
|
|
||||||
throw new Error('Required parameter createPurchaseProductDto was null or undefined when calling createPurchaseProductEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
|
||||||
const consumes: string[] = [
|
|
||||||
'application/json'
|
|
||||||
];
|
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseProducts`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<GetPurchaseProductDto>('post', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
body: createPurchaseProductDto,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @endpoint delete /API/purchaseProducts/{productId}/{purchaseOrderId}
|
|
||||||
* @param productId
|
|
||||||
* @param purchaseOrderId
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public deletePurchaseProductEndpoint(productId: number, purchaseOrderId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
|
||||||
public deletePurchaseProductEndpoint(productId: number, purchaseOrderId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
|
||||||
public deletePurchaseProductEndpoint(productId: number, purchaseOrderId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
|
||||||
public deletePurchaseProductEndpoint(productId: number, purchaseOrderId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
|
||||||
throw new Error('Required parameter productId was null or undefined when calling deletePurchaseProductEndpoint.');
|
|
||||||
}
|
|
||||||
if (purchaseOrderId === null || purchaseOrderId === undefined) {
|
|
||||||
throw new Error('Required parameter purchaseOrderId was null or undefined when calling deletePurchaseProductEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseProducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "purchaseOrderId", value: purchaseOrderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @endpoint patch /API/purchaseProducts/{productId}/{purchaseOrderId}/Quantity
|
|
||||||
* @param productId
|
|
||||||
* @param purchaseOrderId
|
|
||||||
* @param patchPurchaseProductQuantityDto
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetPurchaseProductDto>;
|
|
||||||
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPurchaseProductDto>>;
|
|
||||||
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPurchaseProductDto>>;
|
|
||||||
public patchPurchaseProductQuantityEndpoint(productId: number, purchaseOrderId: number, patchPurchaseProductQuantityDto: PatchPurchaseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
|
||||||
throw new Error('Required parameter productId was null or undefined when calling patchPurchaseProductQuantityEndpoint.');
|
|
||||||
}
|
|
||||||
if (purchaseOrderId === null || purchaseOrderId === undefined) {
|
|
||||||
throw new Error('Required parameter purchaseOrderId was null or undefined when calling patchPurchaseProductQuantityEndpoint.');
|
|
||||||
}
|
|
||||||
if (patchPurchaseProductQuantityDto === null || patchPurchaseProductQuantityDto === undefined) {
|
|
||||||
throw new Error('Required parameter patchPurchaseProductQuantityDto was null or undefined when calling patchPurchaseProductQuantityEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
|
||||||
const consumes: string[] = [
|
|
||||||
'application/json'
|
|
||||||
];
|
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/API/purchaseProducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "purchaseOrderId", value: purchaseOrderId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Quantity`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<GetPurchaseProductDto>('patch', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
body: patchPurchaseProductQuantityDto,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,235 +0,0 @@
|
|||||||
/**
|
|
||||||
* PyroFetes
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
|
||||||
} from '@angular/common/http';
|
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
|
||||||
import { Observable } from 'rxjs';
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
import { CreateQuotationProductDto } from '../model/create-quotation-product-dto';
|
|
||||||
// @ts-ignore
|
|
||||||
import { GetQuotationProductDto } from '../model/get-quotation-product-dto';
|
|
||||||
// @ts-ignore
|
|
||||||
import { PatchQuotationProductQuantityDto } from '../model/patch-quotation-product-quantity-dto';
|
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
||||||
import { Configuration } from '../configuration';
|
|
||||||
import { BaseService } from '../api.base.service';
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
|
||||||
providedIn: 'root'
|
|
||||||
})
|
|
||||||
export class QuotationproductsService extends BaseService {
|
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
|
||||||
super(basePath, configuration);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @endpoint post /API/quotationProducts
|
|
||||||
* @param createQuotationProductDto
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public createQuotationProductEndpoint(createQuotationProductDto: CreateQuotationProductDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetQuotationProductDto>;
|
|
||||||
public createQuotationProductEndpoint(createQuotationProductDto: CreateQuotationProductDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetQuotationProductDto>>;
|
|
||||||
public createQuotationProductEndpoint(createQuotationProductDto: CreateQuotationProductDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetQuotationProductDto>>;
|
|
||||||
public createQuotationProductEndpoint(createQuotationProductDto: CreateQuotationProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (createQuotationProductDto === null || createQuotationProductDto === undefined) {
|
|
||||||
throw new Error('Required parameter createQuotationProductDto was null or undefined when calling createQuotationProductEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
|
||||||
const consumes: string[] = [
|
|
||||||
'application/json'
|
|
||||||
];
|
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/API/quotationProducts`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<GetQuotationProductDto>('post', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
body: createQuotationProductDto,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @endpoint delete /API/quotationProducts/{productId}/{quotationId}
|
|
||||||
* @param productId
|
|
||||||
* @param quotationId
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public deleteQuotationProductEndpoint(productId: number, quotationId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
|
||||||
public deleteQuotationProductEndpoint(productId: number, quotationId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
|
||||||
public deleteQuotationProductEndpoint(productId: number, quotationId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
|
||||||
public deleteQuotationProductEndpoint(productId: number, quotationId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
|
||||||
throw new Error('Required parameter productId was null or undefined when calling deleteQuotationProductEndpoint.');
|
|
||||||
}
|
|
||||||
if (quotationId === null || quotationId === undefined) {
|
|
||||||
throw new Error('Required parameter quotationId was null or undefined when calling deleteQuotationProductEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/API/quotationProducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "quotationId", value: quotationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @endpoint patch /API/quotationProducts/{productId}/{quotationId}/Quantity
|
|
||||||
* @param productId
|
|
||||||
* @param quotationId
|
|
||||||
* @param patchQuotationProductQuantityDto
|
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
||||||
* @param reportProgress flag to report request and response progress.
|
|
||||||
*/
|
|
||||||
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetQuotationProductDto>;
|
|
||||||
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetQuotationProductDto>>;
|
|
||||||
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetQuotationProductDto>>;
|
|
||||||
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
|
||||||
if (productId === null || productId === undefined) {
|
|
||||||
throw new Error('Required parameter productId was null or undefined when calling patchQuotationProductQuantityEndpoint.');
|
|
||||||
}
|
|
||||||
if (quotationId === null || quotationId === undefined) {
|
|
||||||
throw new Error('Required parameter quotationId was null or undefined when calling patchQuotationProductQuantityEndpoint.');
|
|
||||||
}
|
|
||||||
if (patchQuotationProductQuantityDto === null || patchQuotationProductQuantityDto === undefined) {
|
|
||||||
throw new Error('Required parameter patchQuotationProductQuantityDto was null or undefined when calling patchQuotationProductQuantityEndpoint.');
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
||||||
|
|
||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
||||||
|
|
||||||
|
|
||||||
// to determine the Content-Type header
|
|
||||||
const consumes: string[] = [
|
|
||||||
'application/json'
|
|
||||||
];
|
|
||||||
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
||||||
if (httpContentTypeSelected !== undefined) {
|
|
||||||
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
||||||
}
|
|
||||||
|
|
||||||
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
||||||
if (localVarHttpHeaderAcceptSelected) {
|
|
||||||
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
||||||
responseType_ = 'text';
|
|
||||||
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
||||||
responseType_ = 'json';
|
|
||||||
} else {
|
|
||||||
responseType_ = 'blob';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let localVarPath = `/API/quotationProducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "quotationId", value: quotationId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/Quantity`;
|
|
||||||
const { basePath, withCredentials } = this.configuration;
|
|
||||||
return this.httpClient.request<GetQuotationProductDto>('patch', `${basePath}${localVarPath}`,
|
|
||||||
{
|
|
||||||
context: localVarHttpContext,
|
|
||||||
body: patchQuotationProductQuantityDto,
|
|
||||||
responseType: <any>responseType_,
|
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
|
||||||
headers: localVarHeaders,
|
|
||||||
observe: observe,
|
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
||||||
reportProgress: reportProgress
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,57 +9,167 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import {CustomHttpParameterCodec} from '../encoder';
|
||||||
|
import {Observable} from 'rxjs';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreateQuotationDto } from '../model/create-quotation-dto';
|
import {AddQuotationProductDto} from '../model/add-quotation-product-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetQuotationDto } from '../model/get-quotation-dto';
|
import {CreateQuotationDto} from '../model/create-quotation-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchQuotationConditionsSaleDto } from '../model/patch-quotation-conditions-sale-dto';
|
import {GetQuotationDto} from '../model/get-quotation-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { UpdateQuotationDto } from '../model/update-quotation-dto';
|
import {PatchQuotationConditionsSaleDto} from '../model/patch-quotation-conditions-sale-dto';
|
||||||
|
// @ts-ignore
|
||||||
|
import {PatchQuotationMessageDto} from '../model/patch-quotation-message-dto';
|
||||||
|
// @ts-ignore
|
||||||
|
import {PatchQuotationProductQuantityDto} from '../model/patch-quotation-product-quantity-dto';
|
||||||
|
// @ts-ignore
|
||||||
|
import {UpdateQuotationDto} from '../model/update-quotation-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class QuotationsService extends BaseService {
|
export class QuotationsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/quotations
|
* @endpoint post /API/quotations/{productId}/products
|
||||||
* @param createQuotationDto
|
* @param productId
|
||||||
|
* @param addQuotationProductDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetQuotationDto>;
|
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetQuotationDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetQuotationDto>>;
|
context?: HttpContext,
|
||||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (productId === null || productId === undefined) {
|
||||||
|
throw new Error('Required parameter productId was null or undefined when calling addProductoToQuotationEndpoint.');
|
||||||
|
}
|
||||||
|
if (addQuotationProductDto === null || addQuotationProductDto === undefined) {
|
||||||
|
throw new Error('Required parameter addQuotationProductDto was null or undefined when calling addProductoToQuotationEndpoint.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
|
// to determine the Content-Type header
|
||||||
|
const consumes: string[] = [
|
||||||
|
'application/json'
|
||||||
|
];
|
||||||
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||||
|
if (httpContentTypeSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||||
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/products`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
body: addQuotationProductDto,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @endpoint post /API/quotations
|
||||||
|
* @param createQuotationDto
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (createQuotationDto === null || createQuotationDto === undefined) {
|
if (createQuotationDto === null || createQuotationDto === undefined) {
|
||||||
throw new Error('Required parameter createQuotationDto was null or undefined when calling createQuotationEndpoint.');
|
throw new Error('Required parameter createQuotationDto was null or undefined when calling createQuotationEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -90,39 +200,58 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations`;
|
let localVarPath = `/API/quotations`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetQuotationDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createQuotationDto,
|
body: createQuotationDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/quotations/{id}
|
* @endpoint delete /API/quotations/{productId}/{quotationId}
|
||||||
* @param id
|
* @param productId
|
||||||
|
* @param quotationId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public deleteQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteQuotationEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
if (id === null || id === undefined) {
|
}): Observable<any>;
|
||||||
throw new Error('Required parameter id was null or undefined when calling deleteQuotationEndpoint.');
|
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (productId === null || productId === undefined) {
|
||||||
|
throw new Error('Required parameter productId was null or undefined when calling deleteProductFromQuotationEndpoint.');
|
||||||
|
}
|
||||||
|
if (quotationId === null || quotationId === undefined) {
|
||||||
|
throw new Error('Required parameter quotationId was null or undefined when calling deleteProductFromQuotationEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -143,16 +272,108 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/${this.configuration.encodeParam({
|
||||||
|
name: "quotationId",
|
||||||
|
value: quotationId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @endpoint delete /API/quotations/{id}
|
||||||
|
* @param id
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public deleteQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteQuotationEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (id === null || id === undefined) {
|
||||||
|
throw new Error('Required parameter id was null or undefined when calling deleteQuotationEndpoint.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||||
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -163,10 +384,26 @@ export class QuotationsService extends BaseService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAllQuotationEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetQuotationDto>>;
|
public getAllQuotationEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllQuotationEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetQuotationDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllQuotationEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetQuotationDto>>>;
|
context?: HttpContext,
|
||||||
public getAllQuotationEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetQuotationDto>>;
|
||||||
|
public getAllQuotationEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetQuotationDto>>>;
|
||||||
|
public getAllQuotationEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetQuotationDto>>>;
|
||||||
|
public getAllQuotationEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -194,15 +431,15 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations`;
|
let localVarPath = `/API/quotations`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetQuotationDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetQuotationDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -210,14 +447,30 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/quotations/{id}
|
* @endpoint get /API/quotations/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetQuotationDto>;
|
public getQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetQuotationDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetQuotationDto>>;
|
context?: HttpContext,
|
||||||
public getQuotationEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetQuotationDto>;
|
||||||
|
public getQuotationEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetQuotationDto>>;
|
||||||
|
public getQuotationEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetQuotationDto>>;
|
||||||
|
public getQuotationEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getQuotationEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getQuotationEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -247,16 +500,24 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetQuotationDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetQuotationDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -264,14 +525,30 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/quotations/{id}/pdf
|
* @endpoint get /API/quotations/{id}/pdf
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getQuotationPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<Blob>;
|
public getQuotationPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getQuotationPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Blob>>;
|
httpHeaderAccept?: 'application/pdf',
|
||||||
public getQuotationPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Blob>>;
|
context?: HttpContext,
|
||||||
public getQuotationPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/pdf', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Blob>;
|
||||||
|
public getQuotationPdfEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/pdf',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Blob>>;
|
||||||
|
public getQuotationPdfEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/pdf',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Blob>>;
|
||||||
|
public getQuotationPdfEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/pdf',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getQuotationPdfEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getQuotationPdfEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -290,16 +567,24 @@ export class QuotationsService extends BaseService {
|
|||||||
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/pdf`;
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/pdf`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -307,15 +592,31 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/quotations/{id}/saleConditions
|
* @endpoint patch /API/quotations/{id}/saleConditions
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchQuotationConditionsSaleDto
|
* @param patchQuotationConditionsSaleDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetQuotationDto>;
|
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetQuotationDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetQuotationDto>>;
|
context?: HttpContext,
|
||||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling patchQuotationConditionsSaleEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchQuotationConditionsSaleEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -325,9 +626,7 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -357,17 +656,217 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/saleConditions`;
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetQuotationDto>('patch', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/saleConditions`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchQuotationConditionsSaleDto,
|
body: patchQuotationConditionsSaleDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @endpoint patch /API/quotations/{id}/message
|
||||||
|
* @param id
|
||||||
|
* @param patchQuotationMessageDto
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchQuotationMessageEndpoint(id: number, patchQuotationMessageDto: PatchQuotationMessageDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (id === null || id === undefined) {
|
||||||
|
throw new Error('Required parameter id was null or undefined when calling patchQuotationMessageEndpoint.');
|
||||||
|
}
|
||||||
|
if (patchQuotationMessageDto === null || patchQuotationMessageDto === undefined) {
|
||||||
|
throw new Error('Required parameter patchQuotationMessageDto was null or undefined when calling patchQuotationMessageEndpoint.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
|
// to determine the Content-Type header
|
||||||
|
const consumes: string[] = [
|
||||||
|
'application/json'
|
||||||
|
];
|
||||||
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||||
|
if (httpContentTypeSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||||
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/message`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
body: patchQuotationMessageDto,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @endpoint patch /API/quotations/{productId}/{quotationId}/Quantity
|
||||||
|
* @param productId
|
||||||
|
* @param quotationId
|
||||||
|
* @param patchQuotationProductQuantityDto
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchQuotationProductQuantityEndpoint(productId: number, quotationId: number, patchQuotationProductQuantityDto: PatchQuotationProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (productId === null || productId === undefined) {
|
||||||
|
throw new Error('Required parameter productId was null or undefined when calling patchQuotationProductQuantityEndpoint.');
|
||||||
|
}
|
||||||
|
if (quotationId === null || quotationId === undefined) {
|
||||||
|
throw new Error('Required parameter quotationId was null or undefined when calling patchQuotationProductQuantityEndpoint.');
|
||||||
|
}
|
||||||
|
if (patchQuotationProductQuantityDto === null || patchQuotationProductQuantityDto === undefined) {
|
||||||
|
throw new Error('Required parameter patchQuotationProductQuantityDto was null or undefined when calling patchQuotationProductQuantityEndpoint.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
|
// to determine the Content-Type header
|
||||||
|
const consumes: string[] = [
|
||||||
|
'application/json'
|
||||||
|
];
|
||||||
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||||
|
if (httpContentTypeSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||||
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/${this.configuration.encodeParam({
|
||||||
|
name: "quotationId",
|
||||||
|
value: quotationId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/Quantity`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
body: patchQuotationProductQuantityDto,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -375,15 +874,31 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/quotations/{id}
|
* @endpoint put /API/quotations/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateQuotationDto
|
* @param updateQuotationDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetQuotationDto>;
|
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetQuotationDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetQuotationDto>>;
|
context?: HttpContext,
|
||||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling updateQuotationEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateQuotationEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -393,9 +908,7 @@ export class QuotationsService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -425,17 +938,25 @@ export class QuotationsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetQuotationDto>('put', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: updateQuotationDto,
|
body: updateQuotationDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,57 +9,71 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import {CustomHttpParameterCodec} from '../encoder';
|
||||||
|
import {Observable} from 'rxjs';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreateSettingDto } from '../model/create-setting-dto';
|
import {CreateSettingDto} from '../model/create-setting-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetSettingDto } from '../model/get-setting-dto';
|
import {GetSettingDto} from '../model/get-setting-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchSettingElectronicSignatureDto } from '../model/patch-setting-electronic-signature-dto';
|
import {PatchSettingElectronicSignatureDto} from '../model/patch-setting-electronic-signature-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchSettingLogoDto } from '../model/patch-setting-logo-dto';
|
import {PatchSettingLogoDto} from '../model/patch-setting-logo-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class SettingsService extends BaseService {
|
export class SettingsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/settings
|
* @endpoint post /API/settings
|
||||||
* @param createSettingDto
|
* @param createSettingDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSettingDto>;
|
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSettingDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSettingDto>>;
|
context?: HttpContext,
|
||||||
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (createSettingDto === null || createSettingDto === undefined) {
|
if (createSettingDto === null || createSettingDto === undefined) {
|
||||||
throw new Error('Required parameter createSettingDto was null or undefined when calling createSettingEndpoint.');
|
throw new Error('Required parameter createSettingDto was null or undefined when calling createSettingEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -90,16 +104,16 @@ export class SettingsService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/settings`;
|
let localVarPath = `/API/settings`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetSettingDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createSettingDto,
|
body: createSettingDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -107,22 +121,37 @@ export class SettingsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/settings/{id}
|
* @endpoint delete /API/settings/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public deleteSettingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteSettingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteSettingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteSettingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteSettingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteSettingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteSettingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteSettingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling deleteSettingEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deleteSettingEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -143,16 +172,24 @@ export class SettingsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/settings/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/settings/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -160,14 +197,30 @@ export class SettingsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/settings/{id}
|
* @endpoint get /API/settings/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getSettingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSettingDto>;
|
public getSettingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getSettingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSettingDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getSettingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSettingDto>>;
|
context?: HttpContext,
|
||||||
public getSettingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetSettingDto>;
|
||||||
|
public getSettingEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetSettingDto>>;
|
||||||
|
public getSettingEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetSettingDto>>;
|
||||||
|
public getSettingEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getSettingEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getSettingEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -197,16 +250,24 @@ export class SettingsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/settings/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/settings/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetSettingDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetSettingDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -214,15 +275,31 @@ export class SettingsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/settings/{id}/ElectronicSignature
|
* @endpoint patch /API/settings/{id}/ElectronicSignature
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchSettingElectronicSignatureDto
|
* @param patchSettingElectronicSignatureDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSettingDto>;
|
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSettingDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSettingDto>>;
|
context?: HttpContext,
|
||||||
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling patchSettingElectronicSignatureEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchSettingElectronicSignatureEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -232,9 +309,7 @@ export class SettingsService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -264,17 +339,25 @@ export class SettingsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/settings/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/ElectronicSignature`;
|
let localVarPath = `/API/settings/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetSettingDto>('patch', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/ElectronicSignature`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchSettingElectronicSignatureDto,
|
body: patchSettingElectronicSignatureDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -282,15 +365,31 @@ export class SettingsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/settings/{id}/logo
|
* @endpoint patch /API/settings/{id}/logo
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchSettingLogoDto
|
* @param patchSettingLogoDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSettingDto>;
|
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSettingDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSettingDto>>;
|
context?: HttpContext,
|
||||||
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling patchSettingLogoEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchSettingLogoEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -300,9 +399,7 @@ export class SettingsService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -332,17 +429,25 @@ export class SettingsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/settings/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/logo`;
|
let localVarPath = `/API/settings/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetSettingDto>('patch', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/logo`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchSettingLogoDto,
|
body: patchSettingLogoDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,57 +9,175 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import {CustomHttpParameterCodec} from '../encoder';
|
||||||
|
import {Observable} from 'rxjs';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreateSupplierDto } from '../model/create-supplier-dto';
|
import {CreatePriceDto} from '../model/create-price-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetSupplierDto } from '../model/get-supplier-dto';
|
import {CreateSupplierDto} from '../model/create-supplier-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchSupplierDeliveryDelayDto } from '../model/patch-supplier-delivery-delay-dto';
|
import {GetSupplierDto} from '../model/get-supplier-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { UpdateSupplierDto } from '../model/update-supplier-dto';
|
import {PatchSupplierDeliveryDelayDto} from '../model/patch-supplier-delivery-delay-dto';
|
||||||
|
// @ts-ignore
|
||||||
|
import {UpdateSupplierDto} from '../model/update-supplier-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class SuppliersService extends BaseService {
|
export class SuppliersService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/suppliers
|
* @endpoint post /API/suppliers/{supplierId}/{productId}
|
||||||
* @param createSupplierDto
|
* @param supplierId
|
||||||
|
* @param productId
|
||||||
|
* @param createPriceDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSupplierDto>;
|
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSupplierDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSupplierDto>>;
|
context?: HttpContext,
|
||||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (supplierId === null || supplierId === undefined) {
|
||||||
|
throw new Error('Required parameter supplierId was null or undefined when calling addProductToSupplierEndpoint.');
|
||||||
|
}
|
||||||
|
if (productId === null || productId === undefined) {
|
||||||
|
throw new Error('Required parameter productId was null or undefined when calling addProductToSupplierEndpoint.');
|
||||||
|
}
|
||||||
|
if (createPriceDto === null || createPriceDto === undefined) {
|
||||||
|
throw new Error('Required parameter createPriceDto was null or undefined when calling addProductToSupplierEndpoint.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
|
// to determine the Content-Type header
|
||||||
|
const consumes: string[] = [
|
||||||
|
'application/json'
|
||||||
|
];
|
||||||
|
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||||
|
if (httpContentTypeSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
||||||
|
name: "supplierId",
|
||||||
|
value: supplierId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/${this.configuration.encodeParam({
|
||||||
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
body: createPriceDto,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @endpoint post /API/suppliers
|
||||||
|
* @param createSupplierDto
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (createSupplierDto === null || createSupplierDto === undefined) {
|
if (createSupplierDto === null || createSupplierDto === undefined) {
|
||||||
throw new Error('Required parameter createSupplierDto was null or undefined when calling createSupplierEndpoint.');
|
throw new Error('Required parameter createSupplierDto was null or undefined when calling createSupplierEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -90,39 +208,58 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers`;
|
let localVarPath = `/API/suppliers`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetSupplierDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createSupplierDto,
|
body: createSupplierDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/suppliers/{id}
|
* @endpoint delete /API/suppliers/{supplierId}/{productId}
|
||||||
* @param id
|
* @param supplierId
|
||||||
|
* @param productId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public deleteSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteSupplierEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
if (id === null || id === undefined) {
|
}): Observable<any>;
|
||||||
throw new Error('Required parameter id was null or undefined when calling deleteSupplierEndpoint.');
|
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (supplierId === null || supplierId === undefined) {
|
||||||
|
throw new Error('Required parameter supplierId was null or undefined when calling deleteProductToSupplierEndpoint.');
|
||||||
|
}
|
||||||
|
if (productId === null || productId === undefined) {
|
||||||
|
throw new Error('Required parameter productId was null or undefined when calling deleteProductToSupplierEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -143,16 +280,108 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "supplierId",
|
||||||
|
value: supplierId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/${this.configuration.encodeParam({
|
||||||
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
|
reportProgress: reportProgress
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @endpoint delete /API/suppliers/{id}
|
||||||
|
* @param id
|
||||||
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
|
* @param reportProgress flag to report request and response progress.
|
||||||
|
*/
|
||||||
|
public deleteSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteSupplierEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
if (id === null || id === undefined) {
|
||||||
|
throw new Error('Required parameter id was null or undefined when calling deleteSupplierEndpoint.');
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
|
}
|
||||||
|
|
||||||
|
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
||||||
|
|
||||||
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
||||||
|
|
||||||
|
|
||||||
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
||||||
|
if (localVarHttpHeaderAcceptSelected) {
|
||||||
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
||||||
|
responseType_ = 'text';
|
||||||
|
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
||||||
|
responseType_ = 'json';
|
||||||
|
} else {
|
||||||
|
responseType_ = 'blob';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
||||||
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
|
{
|
||||||
|
context: localVarHttpContext,
|
||||||
|
responseType: <any>responseType_,
|
||||||
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
|
headers: localVarHeaders,
|
||||||
|
observe: observe,
|
||||||
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -163,10 +392,26 @@ export class SuppliersService extends BaseService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAllSuppliersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetSupplierDto>>;
|
public getAllSuppliersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllSuppliersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetSupplierDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllSuppliersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetSupplierDto>>>;
|
context?: HttpContext,
|
||||||
public getAllSuppliersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetSupplierDto>>;
|
||||||
|
public getAllSuppliersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetSupplierDto>>>;
|
||||||
|
public getAllSuppliersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetSupplierDto>>>;
|
||||||
|
public getAllSuppliersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -194,15 +439,15 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers`;
|
let localVarPath = `/API/suppliers`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetSupplierDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetSupplierDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -210,14 +455,30 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/suppliers/{id}
|
* @endpoint get /API/suppliers/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSupplierDto>;
|
public getSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSupplierDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSupplierDto>>;
|
context?: HttpContext,
|
||||||
public getSupplierEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetSupplierDto>;
|
||||||
|
public getSupplierEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetSupplierDto>>;
|
||||||
|
public getSupplierEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetSupplierDto>>;
|
||||||
|
public getSupplierEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getSupplierEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getSupplierEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -247,16 +508,24 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetSupplierDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetSupplierDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -264,15 +533,31 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/suppliers/{id}/deliveryDelay
|
* @endpoint patch /API/suppliers/{id}/deliveryDelay
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchSupplierDeliveryDelayDto
|
* @param patchSupplierDeliveryDelayDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSupplierDto>;
|
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSupplierDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSupplierDto>>;
|
context?: HttpContext,
|
||||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling patchSupplierDeliveryDelayEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchSupplierDeliveryDelayEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -282,9 +567,7 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -314,17 +597,25 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/deliveryDelay`;
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetSupplierDto>('patch', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/deliveryDelay`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchSupplierDeliveryDelayDto,
|
body: patchSupplierDeliveryDelayDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -332,15 +623,31 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/suppliers/{id}
|
* @endpoint put /API/suppliers/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateSupplierDto
|
* @param updateSupplierDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSupplierDto>;
|
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSupplierDto>>;
|
httpHeaderAccept?: undefined,
|
||||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSupplierDto>>;
|
context?: HttpContext,
|
||||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling updateSupplierEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateSupplierEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -350,9 +657,7 @@ export class SuppliersService extends BaseService {
|
|||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
'application/json'
|
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -382,17 +687,25 @@ export class SuppliersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
return this.httpClient.request<GetSupplierDto>('put', `${basePath}${localVarPath}`,
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
|
return this.httpClient.request<any>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: updateSupplierDto,
|
body: updateSupplierDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,52 +9,68 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import {CustomHttpParameterCodec} from '../encoder';
|
||||||
|
import {Observable} from 'rxjs';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { ConnectUserDto } from '../model/connect-user-dto';
|
import {ConnectUserDto} from '../model/connect-user-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { CreateUserDto } from '../model/create-user-dto';
|
import {CreateUserDto} from '../model/create-user-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetTokenDto } from '../model/get-token-dto';
|
import {GetTokenDto} from '../model/get-token-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetUserDto } from '../model/get-user-dto';
|
import {GetUserDto} from '../model/get-user-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchUserPasswordDto } from '../model/patch-user-password-dto';
|
import {PatchUserPasswordDto} from '../model/patch-user-password-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { UpdateUserDto } from '../model/update-user-dto';
|
import {UpdateUserDto} from '../model/update-user-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class UsersService extends BaseService {
|
export class UsersService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/users/connection
|
* @endpoint post /API/users/connection
|
||||||
* @param connectUserDto
|
* @param connectUserDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetTokenDto>;
|
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetTokenDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetTokenDto>>;
|
context?: HttpContext,
|
||||||
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetTokenDto>;
|
||||||
|
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetTokenDto>>;
|
||||||
|
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetTokenDto>>;
|
||||||
|
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (connectUserDto === null || connectUserDto === undefined) {
|
if (connectUserDto === null || connectUserDto === undefined) {
|
||||||
throw new Error('Required parameter connectUserDto was null or undefined when calling connectUserEndpoint.');
|
throw new Error('Required parameter connectUserDto was null or undefined when calling connectUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -94,16 +110,16 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/users/connection`;
|
let localVarPath = `/API/users/connection`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: connectUserDto,
|
body: connectUserDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -111,14 +127,30 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint post /API/users
|
* @endpoint post /API/users
|
||||||
* @param createUserDto
|
* @param createUserDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
|
context?: HttpContext,
|
||||||
public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetUserDto>;
|
||||||
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetUserDto>>;
|
||||||
|
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetUserDto>>;
|
||||||
|
public createUserEndpoint(createUserDto: CreateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (createUserDto === null || createUserDto === undefined) {
|
if (createUserDto === null || createUserDto === undefined) {
|
||||||
throw new Error('Required parameter createUserDto was null or undefined when calling createUserEndpoint.');
|
throw new Error('Required parameter createUserDto was null or undefined when calling createUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -158,16 +190,16 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/users`;
|
let localVarPath = `/API/users`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetUserDto>('post', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetUserDto>('post', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: createUserDto,
|
body: createUserDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -175,22 +207,37 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint delete /API/users/{id}
|
* @endpoint delete /API/users/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public deleteUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
|
public deleteUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public deleteUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
|
httpHeaderAccept?: undefined,
|
||||||
public deleteUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
|
context?: HttpContext,
|
||||||
public deleteUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<any>;
|
||||||
|
public deleteUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<any>>;
|
||||||
|
public deleteUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<any>>;
|
||||||
|
public deleteUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: undefined,
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling deleteUserEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling deleteUserEndpoint.');
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||||
]);
|
|
||||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||||
}
|
}
|
||||||
@@ -211,16 +258,24 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/users/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -231,10 +286,26 @@ export class UsersService extends BaseService {
|
|||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<Array<GetUserDto>>;
|
public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<Array<GetUserDto>>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<Array<GetUserDto>>>;
|
context?: HttpContext,
|
||||||
public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<Array<GetUserDto>>;
|
||||||
|
public getAllUsersEndpoint(observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<Array<GetUserDto>>>;
|
||||||
|
public getAllUsersEndpoint(observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<Array<GetUserDto>>>;
|
||||||
|
public getAllUsersEndpoint(observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
|
|
||||||
let localVarHeaders = this.defaultHeaders;
|
let localVarHeaders = this.defaultHeaders;
|
||||||
|
|
||||||
@@ -262,15 +333,15 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/users`;
|
let localVarPath = `/API/users`;
|
||||||
const { basePath, withCredentials } = this.configuration;
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -278,14 +349,30 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/users/{id}
|
* @endpoint get /API/users/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
|
public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
|
context?: HttpContext,
|
||||||
public getUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetUserDto>;
|
||||||
|
public getUserEndpoint(id: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetUserDto>>;
|
||||||
|
public getUserEndpoint(id: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetUserDto>>;
|
||||||
|
public getUserEndpoint(id: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling getUserEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling getUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -315,16 +402,24 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/users/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetUserDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetUserDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -332,15 +427,31 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/users/{id}/password
|
* @endpoint patch /API/users/{id}/password
|
||||||
* @param id
|
* @param id
|
||||||
* @param patchUserPasswordDto
|
* @param patchUserPasswordDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
|
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
|
context?: HttpContext,
|
||||||
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetUserDto>;
|
||||||
|
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetUserDto>>;
|
||||||
|
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetUserDto>>;
|
||||||
|
public patchUserPasswordEndpoint(id: number, patchUserPasswordDto: PatchUserPasswordDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling patchUserPasswordEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling patchUserPasswordEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -382,17 +493,25 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/password`;
|
let localVarPath = `/API/users/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/password`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetUserDto>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetUserDto>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchUserPasswordDto,
|
body: patchUserPasswordDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -400,15 +519,31 @@ export class UsersService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint put /API/users/{id}
|
* @endpoint put /API/users/{id}
|
||||||
* @param id
|
* @param id
|
||||||
* @param updateUserDto
|
* @param updateUserDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetUserDto>;
|
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetUserDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetUserDto>>;
|
context?: HttpContext,
|
||||||
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetUserDto>;
|
||||||
|
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetUserDto>>;
|
||||||
|
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetUserDto>>;
|
||||||
|
public updateUserEndpoint(id: number, updateUserDto: UpdateUserDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (id === null || id === undefined) {
|
if (id === null || id === undefined) {
|
||||||
throw new Error('Required parameter id was null or undefined when calling updateUserEndpoint.');
|
throw new Error('Required parameter id was null or undefined when calling updateUserEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -450,17 +585,25 @@ export class UsersService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/users/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/users/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "id",
|
||||||
|
value: id,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetUserDto>('put', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetUserDto>('put', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: updateUserDto,
|
body: updateUserDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,46 +9,62 @@
|
|||||||
*/
|
*/
|
||||||
/* tslint:disable:no-unused-variable member-ordering */
|
/* tslint:disable:no-unused-variable member-ordering */
|
||||||
|
|
||||||
import { Inject, Injectable, Optional } from '@angular/core';
|
import {Inject, Injectable, Optional} from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams,
|
import {
|
||||||
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
HttpClient, HttpHeaders, HttpParams,
|
||||||
} from '@angular/common/http';
|
HttpResponse, HttpEvent, HttpParameterCodec, HttpContext
|
||||||
import { CustomHttpParameterCodec } from '../encoder';
|
} from '@angular/common/http';
|
||||||
import { Observable } from 'rxjs';
|
import {CustomHttpParameterCodec} from '../encoder';
|
||||||
|
import {Observable} from 'rxjs';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetTotalQuantityDto } from '../model/get-total-quantity-dto';
|
import {GetTotalQuantityDto} from '../model/get-total-quantity-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { GetWareHouseProductDto } from '../model/get-ware-house-product-dto';
|
import {GetWareHouseProductDto} from '../model/get-ware-house-product-dto';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { PatchWareHouseProductQuantityDto } from '../model/patch-ware-house-product-quantity-dto';
|
import {PatchWareHouseProductQuantityDto} from '../model/patch-ware-house-product-quantity-dto';
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||||
import { Configuration } from '../configuration';
|
import {Configuration} from '../configuration';
|
||||||
import { BaseService } from '../api.base.service';
|
import {BaseService} from '../api.base.service';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
})
|
})
|
||||||
export class WarehouseproductsService extends BaseService {
|
export class WarehouseproductsService extends BaseService {
|
||||||
|
|
||||||
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string|string[], @Optional() configuration?: Configuration) {
|
constructor(protected httpClient: HttpClient, @Optional() @Inject(BASE_PATH) basePath: string | string[], @Optional() configuration?: Configuration) {
|
||||||
super(basePath, configuration);
|
super(basePath, configuration);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint get /API/wareHouseProducts/{productId}
|
* @endpoint get /API/wareHouseProducts/{productId}
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public getTotalQuantityEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetTotalQuantityDto>;
|
public getTotalQuantityEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public getTotalQuantityEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetTotalQuantityDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public getTotalQuantityEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetTotalQuantityDto>>;
|
context?: HttpContext,
|
||||||
public getTotalQuantityEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetTotalQuantityDto>;
|
||||||
|
public getTotalQuantityEndpoint(productId: number, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetTotalQuantityDto>>;
|
||||||
|
public getTotalQuantityEndpoint(productId: number, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetTotalQuantityDto>>;
|
||||||
|
public getTotalQuantityEndpoint(productId: number, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling getTotalQuantityEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling getTotalQuantityEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -78,16 +94,24 @@ export class WarehouseproductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/wareHouseProducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}`;
|
let localVarPath = `/API/wareHouseProducts/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetTotalQuantityDto>('get', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetTotalQuantityDto>('get', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -95,16 +119,32 @@ export class WarehouseproductsService extends BaseService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @endpoint patch /API/wareHouseProducts/{productId}/{wareHouseId}/quantity
|
* @endpoint patch /API/wareHouseProducts/{productId}/{wareHouseId}/quantity
|
||||||
* @param productId
|
* @param productId
|
||||||
* @param wareHouseId
|
* @param wareHouseId
|
||||||
* @param patchWareHouseProductQuantityDto
|
* @param patchWareHouseProductQuantityDto
|
||||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||||
* @param reportProgress flag to report request and response progress.
|
* @param reportProgress flag to report request and response progress.
|
||||||
*/
|
*/
|
||||||
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetWareHouseProductDto>;
|
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||||
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetWareHouseProductDto>>;
|
httpHeaderAccept?: 'application/json',
|
||||||
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetWareHouseProductDto>>;
|
context?: HttpContext,
|
||||||
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
transferCache?: boolean
|
||||||
|
}): Observable<GetWareHouseProductDto>;
|
||||||
|
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'response', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpResponse<GetWareHouseProductDto>>;
|
||||||
|
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe?: 'events', reportProgress?: boolean, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<HttpEvent<GetWareHouseProductDto>>;
|
||||||
|
public patchWareHouseProductQuantityEndpoint(productId: number, wareHouseId: number, patchWareHouseProductQuantityDto: PatchWareHouseProductQuantityDto, observe: any = 'body', reportProgress: boolean = false, options?: {
|
||||||
|
httpHeaderAccept?: 'application/json',
|
||||||
|
context?: HttpContext,
|
||||||
|
transferCache?: boolean
|
||||||
|
}): Observable<any> {
|
||||||
if (productId === null || productId === undefined) {
|
if (productId === null || productId === undefined) {
|
||||||
throw new Error('Required parameter productId was null or undefined when calling patchWareHouseProductQuantityEndpoint.');
|
throw new Error('Required parameter productId was null or undefined when calling patchWareHouseProductQuantityEndpoint.');
|
||||||
}
|
}
|
||||||
@@ -149,17 +189,33 @@ export class WarehouseproductsService extends BaseService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let localVarPath = `/API/wareHouseProducts/${this.configuration.encodeParam({name: "productId", value: productId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/${this.configuration.encodeParam({name: "wareHouseId", value: wareHouseId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/quantity`;
|
let localVarPath = `/API/wareHouseProducts/${this.configuration.encodeParam({
|
||||||
const { basePath, withCredentials } = this.configuration;
|
name: "productId",
|
||||||
|
value: productId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/${this.configuration.encodeParam({
|
||||||
|
name: "wareHouseId",
|
||||||
|
value: wareHouseId,
|
||||||
|
in: "path",
|
||||||
|
style: "simple",
|
||||||
|
explode: false,
|
||||||
|
dataType: "number",
|
||||||
|
dataFormat: "int32"
|
||||||
|
})}/quantity`;
|
||||||
|
const {basePath, withCredentials} = this.configuration;
|
||||||
return this.httpClient.request<GetWareHouseProductDto>('patch', `${basePath}${localVarPath}`,
|
return this.httpClient.request<GetWareHouseProductDto>('patch', `${basePath}${localVarPath}`,
|
||||||
{
|
{
|
||||||
context: localVarHttpContext,
|
context: localVarHttpContext,
|
||||||
body: patchWareHouseProductQuantityDto,
|
body: patchWareHouseProductQuantityDto,
|
||||||
responseType: <any>responseType_,
|
responseType: <any>responseType_,
|
||||||
...(withCredentials ? { withCredentials } : {}),
|
...(withCredentials ? {withCredentials} : {}),
|
||||||
headers: localVarHeaders,
|
headers: localVarHeaders,
|
||||||
observe: observe,
|
observe: observe,
|
||||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||||
reportProgress: reportProgress
|
reportProgress: reportProgress
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http';
|
||||||
import { Param } from './param';
|
import {Param} from './param';
|
||||||
|
|
||||||
export interface ConfigurationParameters {
|
export interface ConfigurationParameters {
|
||||||
/**
|
/**
|
||||||
* @deprecated Since 5.0. Use credentials instead
|
* @deprecated Since 5.0. Use credentials instead
|
||||||
*/
|
*/
|
||||||
apiKeys?: {[ key: string ]: string};
|
apiKeys?: { [key: string]: string };
|
||||||
username?: string;
|
username?: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
/**
|
/**
|
||||||
@@ -31,14 +31,14 @@ export interface ConfigurationParameters {
|
|||||||
* document. They should map to the value used for authentication
|
* document. They should map to the value used for authentication
|
||||||
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
||||||
*/
|
*/
|
||||||
credentials?: {[ key: string ]: string | (() => string | undefined)};
|
credentials?: { [key: string]: string | (() => string | undefined) };
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Configuration {
|
export class Configuration {
|
||||||
/**
|
/**
|
||||||
* @deprecated Since 5.0. Use credentials instead
|
* @deprecated Since 5.0. Use credentials instead
|
||||||
*/
|
*/
|
||||||
apiKeys?: {[ key: string ]: string};
|
apiKeys?: { [key: string]: string };
|
||||||
username?: string;
|
username?: string;
|
||||||
password?: string;
|
password?: string;
|
||||||
/**
|
/**
|
||||||
@@ -64,9 +64,19 @@ export class Configuration {
|
|||||||
* document. They should map to the value used for authentication
|
* document. They should map to the value used for authentication
|
||||||
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
||||||
*/
|
*/
|
||||||
credentials: {[ key: string ]: string | (() => string | undefined)};
|
credentials: { [key: string]: string | (() => string | undefined) };
|
||||||
|
|
||||||
constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder, password, username, withCredentials }: ConfigurationParameters = {}) {
|
constructor({
|
||||||
|
accessToken,
|
||||||
|
apiKeys,
|
||||||
|
basePath,
|
||||||
|
credentials,
|
||||||
|
encodeParam,
|
||||||
|
encoder,
|
||||||
|
password,
|
||||||
|
username,
|
||||||
|
withCredentials
|
||||||
|
}: ConfigurationParameters = {}) {
|
||||||
if (apiKeys) {
|
if (apiKeys) {
|
||||||
this.apiKeys = apiKeys;
|
this.apiKeys = apiKeys;
|
||||||
}
|
}
|
||||||
@@ -108,7 +118,7 @@ constructor({ accessToken, apiKeys, basePath, credentials, encodeParam, encoder,
|
|||||||
* @param contentTypes - the array of content types that are available for selection
|
* @param contentTypes - the array of content types that are available for selection
|
||||||
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
||||||
*/
|
*/
|
||||||
public selectHeaderContentType (contentTypes: string[]): string | undefined {
|
public selectHeaderContentType(contentTypes: string[]): string | undefined {
|
||||||
if (contentTypes.length === 0) {
|
if (contentTypes.length === 0) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { HttpParameterCodec } from '@angular/common/http';
|
import {HttpParameterCodec} from '@angular/common/http';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Custom HttpParameterCodec
|
* Custom HttpParameterCodec
|
||||||
@@ -8,12 +8,15 @@ export class CustomHttpParameterCodec implements HttpParameterCodec {
|
|||||||
encodeKey(k: string): string {
|
encodeKey(k: string): string {
|
||||||
return encodeURIComponent(k);
|
return encodeURIComponent(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
encodeValue(v: string): string {
|
encodeValue(v: string): string {
|
||||||
return encodeURIComponent(v);
|
return encodeURIComponent(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
decodeKey(k: string): string {
|
decodeKey(k: string): string {
|
||||||
return decodeURIComponent(k);
|
return decodeURIComponent(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
decodeValue(v: string): string {
|
decodeValue(v: string): string {
|
||||||
return decodeURIComponent(v);
|
return decodeURIComponent(v);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
/**
|
||||||
|
* PyroFetes
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
export interface AddQuotationProductDto {
|
||||||
|
quantity?: number;
|
||||||
|
quotationId?: number;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface ConnectUserDto {
|
export interface ConnectUserDto {
|
||||||
name?: string | null;
|
name?: string | null;
|
||||||
password?: string | null;
|
password?: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateDelivererDto {
|
export interface CreateDelivererDto {
|
||||||
transporter?: string | null;
|
transporter?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateDeliveryNoteDto {
|
export interface CreateDeliveryNoteDto {
|
||||||
trackingNumber?: string | null;
|
trackingNumber?: string | null;
|
||||||
estimateDeliveryDate?: string;
|
estimateDeliveryDate?: string;
|
||||||
expeditionDate?: string;
|
expeditionDate?: string;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,26 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreatePriceDto {
|
export interface CreatePriceDto {
|
||||||
sellingPrice?: number;
|
sellingPrice?: number;
|
||||||
supplierId?: number | null;
|
|
||||||
supplierName?: string | null;
|
|
||||||
supplierEmail?: string | null;
|
|
||||||
supplierPhone?: string | null;
|
|
||||||
supplierAddress?: string | null;
|
|
||||||
supplierZipCode?: string | null;
|
|
||||||
supplierCity?: string | null;
|
|
||||||
supplierDeliveryDelay?: number;
|
|
||||||
productId?: number | null;
|
|
||||||
productReferences?: string | null;
|
|
||||||
productName?: string | null;
|
|
||||||
productDuration?: number;
|
|
||||||
productCaliber?: number;
|
|
||||||
productApprovalNumber?: string | null;
|
|
||||||
productWeight?: number;
|
|
||||||
productNec?: number;
|
|
||||||
productImage?: string | null;
|
|
||||||
productLink?: string | null;
|
|
||||||
productMinimalQuantity?: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateProductQuotationDto {
|
export interface CreateProductQuotationDto {
|
||||||
productId?: number;
|
productId?: number;
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import { CreatePurchaseOrderProductDto } from './create-purchase-order-product-dto';
|
import {CreatePurchaseOrderProductDto} from './create-purchase-order-product-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface CreatePurchaseOrderDto {
|
export interface CreatePurchaseOrderDto {
|
||||||
purchaseConditions?: string | null;
|
purchaseConditions?: string | null;
|
||||||
products?: Array<CreatePurchaseOrderProductDto> | null;
|
products?: Array<CreatePurchaseOrderProductDto> | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreatePurchaseOrderProductDto {
|
export interface CreatePurchaseOrderProductDto {
|
||||||
productId?: number;
|
productId?: number;
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,10 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreatePurchaseProductDto {
|
export interface CreatePurchaseProductDto {
|
||||||
quantity?: number;
|
quantity?: number;
|
||||||
productId?: number;
|
|
||||||
purchaseOrderId?: number;
|
|
||||||
purchaseOrderPurchaseConditions?: string | null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
import { CreateProductQuotationDto } from './create-product-quotation-dto';
|
import {CreateProductQuotationDto} from './create-product-quotation-dto';
|
||||||
|
|
||||||
|
|
||||||
export interface CreateQuotationDto {
|
export interface CreateQuotationDto {
|
||||||
message?: string | null;
|
message?: string | null;
|
||||||
conditionsSale?: string | null;
|
conditionsSale?: string | null;
|
||||||
products?: Array<CreateProductQuotationDto> | null;
|
products?: Array<CreateProductQuotationDto> | null;
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
/**
|
|
||||||
* PyroFetes
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
||||||
* https://openapi-generator.tech
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
export interface CreateQuotationProductDto {
|
|
||||||
quantity?: number;
|
|
||||||
quotationId?: number;
|
|
||||||
quotationMessage?: string | null;
|
|
||||||
quotationConditionsSale?: string | null;
|
|
||||||
productId?: number;
|
|
||||||
productReferences?: number;
|
|
||||||
productName?: string | null;
|
|
||||||
productDuration?: number;
|
|
||||||
productCaliber?: number;
|
|
||||||
productApprovalNumber?: string | null;
|
|
||||||
productWeight?: number;
|
|
||||||
productNec?: number;
|
|
||||||
productImage?: string | null;
|
|
||||||
productLink?: string | null;
|
|
||||||
productMinimalQuantity?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
* PyroFetes
|
* PyroFetes
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://openapi-generator.tech
|
* https://openapi-generator.tech
|
||||||
@@ -9,8 +9,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export interface CreateSettingDto {
|
export interface CreateSettingDto {
|
||||||
electronicSignature?: string | null;
|
electronicSignature?: Blob | null;
|
||||||
logo?: string | null;
|
logo?: Blob | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user