deleted notifs components
This commit is contained in:
Generated
+8
-4
@@ -28,6 +28,7 @@
|
||||
"@angular/build": "^20.3.9",
|
||||
"@angular/cli": "^20.3.9",
|
||||
"@angular/compiler-cli": "^20.3.0",
|
||||
"baseline-browser-mapping": "^2.10.32",
|
||||
"less": "^4.2.0",
|
||||
"typescript": "~5.9.2"
|
||||
}
|
||||
@@ -4315,13 +4316,16 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/baseline-browser-mapping": {
|
||||
"version": "2.8.27",
|
||||
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.27.tgz",
|
||||
"integrity": "sha512-2CXFpkjVnY2FT+B6GrSYxzYf65BJWEqz5tIRHCvNsZZ2F3CmsCB37h8SpYgKG7y9C4YAeTipIPWG7EmFmhAeXA==",
|
||||
"version": "2.10.32",
|
||||
"resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.32.tgz",
|
||||
"integrity": "sha512-wbPvpyjJPC0zdfdKXxqEL3Ea+bOMD/87X4lftiJkkaBiuG6ALQy1SLmEd7BSmVCuwCQsBrCamgBoLyfFDD1EPg==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"bin": {
|
||||
"baseline-browser-mapping": "dist/cli.js"
|
||||
"baseline-browser-mapping": "dist/cli.cjs"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/basic-ftp": {
|
||||
|
||||
+2
-2
@@ -6,8 +6,7 @@
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"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",
|
||||
"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"
|
||||
"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"
|
||||
},
|
||||
"prettier": {
|
||||
"printWidth": 100,
|
||||
@@ -43,6 +42,7 @@
|
||||
"@angular/build": "^20.3.9",
|
||||
"@angular/cli": "^20.3.9",
|
||||
"@angular/compiler-cli": "^20.3.0",
|
||||
"baseline-browser-mapping": "^2.10.32",
|
||||
"less": "^4.2.0",
|
||||
"typescript": "~5.9.2"
|
||||
}
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection } from '@angular/core';
|
||||
import { provideRouter } from '@angular/router';
|
||||
import {ApplicationConfig, provideBrowserGlobalErrorListeners, provideZoneChangeDetection} from '@angular/core';
|
||||
import {provideRouter} from '@angular/router';
|
||||
|
||||
import { routes } from './app.routes';
|
||||
import { fr_FR, provideNzI18n } from 'ng-zorro-antd/i18n';
|
||||
import { registerLocaleData } from '@angular/common';
|
||||
import {routes} from './app.routes';
|
||||
import {fr_FR, provideNzI18n} from 'ng-zorro-antd/i18n';
|
||||
import {registerLocaleData} from '@angular/common';
|
||||
import fr from '@angular/common/locales/fr';
|
||||
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
|
||||
import { provideHttpClient } from '@angular/common/http';
|
||||
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
|
||||
import {provideHttpClient} from '@angular/common/http';
|
||||
|
||||
registerLocaleData(fr);
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [
|
||||
provideBrowserGlobalErrorListeners(),
|
||||
provideZoneChangeDetection({ eventCoalescing: true }),
|
||||
provideZoneChangeDetection({eventCoalescing: true}),
|
||||
provideRouter(routes), provideNzI18n(fr_FR), provideAnimationsAsync(), provideHttpClient()
|
||||
]
|
||||
};
|
||||
|
||||
@@ -69,9 +69,6 @@
|
||||
|
||||
<!-- ICONES À DROITE -->
|
||||
<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-profil></app-profil>
|
||||
</app-modal-nav>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import {Routes} from '@angular/router';
|
||||
|
||||
export const routes: Routes = [
|
||||
{
|
||||
|
||||
+6
-6
@@ -1,17 +1,17 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
import {RouterLink, RouterLinkActive, RouterOutlet} from '@angular/router';
|
||||
import { NzLayoutModule } from 'ng-zorro-antd/layout';
|
||||
import { NzMenuModule } from 'ng-zorro-antd/menu';
|
||||
import {NzLayoutModule} from 'ng-zorro-antd/layout';
|
||||
import {NzMenuModule} from 'ng-zorro-antd/menu';
|
||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||
import {ModalNav} from "./components/modal-nav/modal-nav";
|
||||
import {Profil} from "./components/profil/profil";
|
||||
import {NotifList} from "./components/notif-list/notif-list";
|
||||
import {SettingForm} from "./components/setting-form/setting-form";
|
||||
|
||||
@Component({
|
||||
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',
|
||||
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 { GetProductDto } from '../../services/api';
|
||||
import {GetProductDto} from '../../services/api';
|
||||
import {NzTableComponent} from "ng-zorro-antd/table";
|
||||
import {NzInputNumberComponent} from "ng-zorro-antd/input-number";
|
||||
import {NzColDirective} from "ng-zorro-antd/grid";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
import {
|
||||
FormArray,
|
||||
FormBuilder,
|
||||
|
||||
@@ -26,7 +26,8 @@ export class DelivererForm {
|
||||
transporter: new FormControl<string>(null, [Validators.required])
|
||||
})
|
||||
|
||||
deliverer= input<GetDelivererDto>();
|
||||
deliverer = input<GetDelivererDto>();
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
if (this.deliverer()) {
|
||||
|
||||
@@ -6,7 +6,7 @@ nz-table {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
||||
nz-table thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nz-table tbody tr {
|
||||
display: block;
|
||||
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;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td::before {
|
||||
content: attr(data-label);
|
||||
font-weight: 600;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<tbody class="text-center">
|
||||
@for (deliverer of deliverers(); track deliverer.id) {
|
||||
<tr>
|
||||
<td>{{deliverer.transporter}}</td>
|
||||
<td>{{ deliverer.transporter }}</td>
|
||||
<td>
|
||||
<app-modal-button type="link" name="Voir tout les bons de livraison" size="50%">
|
||||
<div style="max-height: 400px; overflow-y: auto;">
|
||||
@@ -28,10 +28,10 @@
|
||||
<tbody class="text-center">
|
||||
@for (deliveryInfo of deliverer.deliveryNotes; track deliveryInfo.id) {
|
||||
<tr>
|
||||
<td>{{deliveryInfo.trackingNumber}}</td>
|
||||
<td>{{deliveryInfo.expeditionDate | date: 'dd/MM/yyyy'}}</td>
|
||||
<td>{{deliveryInfo.estimateDeliveryDate | date: 'dd/MM/yyyy'}}</td>
|
||||
<td>{{deliveryInfo.realDeliveryDate | date: 'dd/MM/yyyy'}}</td>
|
||||
<td>{{ deliveryInfo.trackingNumber }}</td>
|
||||
<td>{{ deliveryInfo.expeditionDate | date: 'dd/MM/yyyy' }}</td>
|
||||
<td>{{ deliveryInfo.estimateDeliveryDate | date: 'dd/MM/yyyy' }}</td>
|
||||
<td>{{ deliveryInfo.realDeliveryDate | date: 'dd/MM/yyyy' }}</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
@@ -41,9 +41,11 @@
|
||||
</td>
|
||||
<td>
|
||||
<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-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>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -52,7 +54,8 @@
|
||||
</nz-table>
|
||||
|
||||
<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-modal-nav>
|
||||
</div>
|
||||
|
||||
@@ -53,7 +53,7 @@ export class DelivererTable implements OnInit {
|
||||
this.deliverersLoading.set(false)
|
||||
}
|
||||
|
||||
async delete(deliverer:number) {
|
||||
async delete(deliverer: number) {
|
||||
try {
|
||||
await firstValueFrom(this.deliverersService.deleteDelivererEndpoint(deliverer))
|
||||
this.notificationService.success(
|
||||
@@ -89,8 +89,9 @@ export class DelivererTable implements OnInit {
|
||||
}
|
||||
|
||||
selectedDeliverer: GetDelivererDto | null = null;
|
||||
|
||||
openEditModal(supplier: GetSupplierDto) {
|
||||
this.selectedDeliverer = { ...supplier };
|
||||
this.selectedDeliverer = {...supplier};
|
||||
this.modal().showModal();
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
</nz-form-label>
|
||||
|
||||
<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) {
|
||||
<nz-option [nzValue]="deliverer.id" [nzLabel]="deliverer.transporter"></nz-option>
|
||||
}
|
||||
|
||||
@@ -29,8 +29,8 @@ import {firstValueFrom} from "rxjs";
|
||||
export class DelivereryNoteForm implements OnInit {
|
||||
deliveryNoteForm: FormGroup = new FormGroup({
|
||||
trackingNumber: new FormControl<string>(null),
|
||||
delivererId: new FormControl<number>(null,[Validators.required]),
|
||||
expeditionDate: new FormControl(null,[Validators.required]),
|
||||
delivererId: new FormControl<number>(null, [Validators.required]),
|
||||
expeditionDate: new FormControl(null, [Validators.required]),
|
||||
estimatedDate: new FormControl(null),
|
||||
realDeliveryDate: new FormControl(null)
|
||||
})
|
||||
@@ -56,7 +56,8 @@ export class DelivereryNoteForm implements OnInit {
|
||||
return option.nzLabel.toLowerCase().includes(input.toLowerCase());
|
||||
}
|
||||
|
||||
deliveryNote= input<GetDeliveryNoteDto>();
|
||||
deliveryNote = input<GetDeliveryNoteDto>();
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
if (this.deliveryNote()) {
|
||||
|
||||
@@ -6,7 +6,7 @@ nz-table {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
||||
nz-table thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nz-table tbody tr {
|
||||
display: block;
|
||||
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;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td::before {
|
||||
content: attr(data-label);
|
||||
font-weight: 600;
|
||||
|
||||
@@ -11,24 +11,28 @@
|
||||
<th>Date de livraison réelle</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead >
|
||||
</thead>
|
||||
<tbody class="text-center">
|
||||
@for (deliveryNote of deliveryNotes(); track deliveryNote.id) {
|
||||
<tr>
|
||||
<td>{{deliveryNote.trackingNumber}}</td>
|
||||
<td>{{deliveryNote.delivererTransporter}}</td>
|
||||
<td>{{deliveryNote.expeditionDate | date: 'dd/MM/yyyy'}}</td>
|
||||
<td>{{deliveryNote.estimateDeliveryDate | date: 'dd/MM/yyyy'}}</td>
|
||||
<td>{{deliveryNote.realDeliveryDate | date: 'dd/MM/yyyy'}}</td>
|
||||
<td>{{ deliveryNote.trackingNumber }}</td>
|
||||
<td>{{ deliveryNote.delivererTransporter }}</td>
|
||||
<td>{{ deliveryNote.expeditionDate | date: 'dd/MM/yyyy' }}</td>
|
||||
<td>{{ deliveryNote.estimateDeliveryDate | date: 'dd/MM/yyyy' }}</td>
|
||||
<td>{{ deliveryNote.realDeliveryDate | date: 'dd/MM/yyyy' }}</td>
|
||||
<td>
|
||||
<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-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-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-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>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -37,7 +41,9 @@
|
||||
</nz-table>
|
||||
|
||||
<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-modal-nav>
|
||||
</div>
|
||||
|
||||
@@ -50,7 +50,7 @@ export class DelivereryNoteTable implements OnInit {
|
||||
this.deliveryNotesLoading.set(false)
|
||||
}
|
||||
|
||||
async delete(deliveryNote:number) {
|
||||
async delete(deliveryNote: number) {
|
||||
this.deliveryNotesLoading.set(true)
|
||||
try {
|
||||
await firstValueFrom(this.deliveryNotesService.deleteDeliveryNoteEndpoint(deliveryNote));
|
||||
@@ -68,7 +68,7 @@ export class DelivereryNoteTable implements OnInit {
|
||||
await this.fetchDeliveryNotes();
|
||||
}
|
||||
|
||||
async validate(deliveryNote:number) {
|
||||
async validate(deliveryNote: number) {
|
||||
this.deliveryNotesLoading.set(true)
|
||||
try {
|
||||
const PatchRealDate = {
|
||||
@@ -156,8 +156,9 @@ export class DelivereryNoteTable implements OnInit {
|
||||
}
|
||||
|
||||
selectedDeliveryNote: GetDeliveryNoteDto | null = null;
|
||||
|
||||
openEditModal(deliveryNote: GetDeliveryNoteDto) {
|
||||
this.selectedDeliveryNote = { ...deliveryNote };
|
||||
this.selectedDeliveryNote = {...deliveryNote};
|
||||
this.modal().showModal();
|
||||
}
|
||||
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
align-items: flex-start;
|
||||
|
||||
/* Box shadow pour effet superposition */
|
||||
box-shadow:
|
||||
0 4px 8px rgba(0, 0, 0, 0.06),
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06),
|
||||
0 8px 20px rgba(0, 0, 0, 0.08),
|
||||
0 16px 40px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
@@ -32,7 +31,7 @@
|
||||
|
||||
.search-input:focus {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -63,7 +62,7 @@
|
||||
background: #ffffff;
|
||||
padding: 20px 22px;
|
||||
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;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
@@ -74,7 +73,7 @@
|
||||
|
||||
.livraison-card:hover {
|
||||
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 */
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<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">
|
||||
@for (deliveryItem of filteredLivraisons(); track deliveryItem.id) {
|
||||
@@ -11,7 +12,7 @@
|
||||
</div>
|
||||
|
||||
<button nz-button nzType="primary" [nzSize]="size" nzShape="round" (click)="validate(deliveryItem.id)">
|
||||
<nz-icon nzType="check" />
|
||||
<nz-icon nzType="check"/>
|
||||
Valider
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -16,18 +16,18 @@ export class DeliveryValidator {
|
||||
search = signal('');
|
||||
|
||||
livraisons = signal([
|
||||
{ id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12 },
|
||||
{ id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8 },
|
||||
{ id: 3, client: 'Auchan', date: '2025-02-05', produits: 23 },
|
||||
{ id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12 },
|
||||
{ id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8 },
|
||||
{ id: 3, client: 'Auchan', date: '2025-02-05', produits: 23 },
|
||||
{ id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12 },
|
||||
{ id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8 },
|
||||
{ id: 3, client: 'Auchan', date: '2025-02-05', produits: 23 },
|
||||
{ id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12 },
|
||||
{ id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8 },
|
||||
{ id: 3, client: 'Auchan', date: '2025-02-05', produits: 23 }
|
||||
{id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12},
|
||||
{id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8},
|
||||
{id: 3, client: 'Auchan', date: '2025-02-05', produits: 23},
|
||||
{id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12},
|
||||
{id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8},
|
||||
{id: 3, client: 'Auchan', date: '2025-02-05', produits: 23},
|
||||
{id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12},
|
||||
{id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8},
|
||||
{id: 3, client: 'Auchan', date: '2025-02-05', produits: 23},
|
||||
{id: 1, client: 'Carrefour', date: '2025-02-03', produits: 12},
|
||||
{id: 2, client: 'Intermarché', date: '2025-02-04', produits: 8},
|
||||
{id: 3, client: 'Auchan', date: '2025-02-05', produits: 23}
|
||||
]);
|
||||
|
||||
filteredLivraisons = computed(() => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="card-content">
|
||||
<div class="card-top">
|
||||
<nz-icon [ngStyle]="{ 'color': color() }" [nzType]="icon()" nzTheme="outline"></nz-icon>
|
||||
<p class="card-number">{{value()}}</p>
|
||||
<p class="card-number">{{ value() }}</p>
|
||||
</div>
|
||||
<p class="card-text">{{description()}}</p>
|
||||
<p class="card-text">{{ description() }}</p>
|
||||
</div>
|
||||
@@ -26,8 +26,7 @@
|
||||
gap: 16px;
|
||||
padding: 30px 15px;
|
||||
border-radius: 20px;
|
||||
box-shadow:
|
||||
0 4px 8px rgba(0, 0, 0, 0.06),
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06),
|
||||
0 8px 20px rgba(0, 0, 0, 0.08),
|
||||
0 16px 40px rgba(0, 0, 0, 0.06);
|
||||
max-height: 390px;
|
||||
@@ -46,14 +45,14 @@
|
||||
background: #ffffff;
|
||||
border-radius: 14px;
|
||||
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;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.content > div:hover {
|
||||
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 {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
interface PurchaseOrder {
|
||||
id: number;
|
||||
@@ -12,30 +12,30 @@ interface PurchaseOrder {
|
||||
})
|
||||
export class InfoTable {
|
||||
docs: PurchaseOrder[] = [
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{ id: 1, name: 'Bon de commande'},
|
||||
{ id: 2, name: 'Bon de commande'},
|
||||
{ id: 3, name: 'Bon de commande'},
|
||||
{id: 1, name: 'Bon de commande'},
|
||||
{id: 2, name: 'Bon de commande'},
|
||||
{id: 3, name: 'Bon de commande'},
|
||||
{id: 1, name: 'Bon de commande'},
|
||||
{id: 2, name: 'Bon de commande'},
|
||||
{id: 3, name: 'Bon de commande'},
|
||||
{id: 1, name: 'Bon de commande'},
|
||||
{id: 2, name: 'Bon de commande'},
|
||||
{id: 3, name: 'Bon de commande'},
|
||||
{id: 1, name: 'Bon de commande'},
|
||||
{id: 2, name: 'Bon de commande'},
|
||||
{id: 3, name: 'Bon de commande'},
|
||||
{id: 1, name: 'Bon de commande'},
|
||||
{id: 2, name: 'Bon de commande'},
|
||||
{id: 3, name: 'Bon de commande'},
|
||||
{id: 1, name: 'Bon de commande'},
|
||||
{id: 2, name: 'Bon de commande'},
|
||||
{id: 3, name: 'Bon de commande'},
|
||||
{id: 1, name: 'Bon de commande'},
|
||||
{id: 2, name: 'Bon de commande'},
|
||||
{id: 3, name: 'Bon de commande'},
|
||||
{id: 1, name: 'Bon de commande'},
|
||||
{id: 2, name: 'Bon de commande'},
|
||||
{id: 3, name: 'Bon de commande'},
|
||||
];
|
||||
|
||||
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-content></ng-content>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Component, Input, input, output} from '@angular/core';
|
||||
import { NzButtonModule } from 'ng-zorro-antd/button';
|
||||
import { NzModalModule } from 'ng-zorro-antd/modal';
|
||||
import {NzButtonModule} from 'ng-zorro-antd/button';
|
||||
import {NzModalModule} from 'ng-zorro-antd/modal';
|
||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||
|
||||
@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 });
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,8 @@ export class PriceForm {
|
||||
price: new FormControl<string>(null, [Validators.required]),
|
||||
})
|
||||
|
||||
price= input<GetPriceDto>();
|
||||
price = input<GetPriceDto>();
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
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 {NzColDirective} from "ng-zorro-antd/grid";
|
||||
import {NzFlexDirective} from "ng-zorro-antd/flex";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-product-table',
|
||||
@@ -6,4 +6,5 @@ import { Component } from '@angular/core';
|
||||
templateUrl: './product-table.html',
|
||||
styleUrl: './product-table.css',
|
||||
})
|
||||
export class ProductTable {}
|
||||
export class ProductTable {
|
||||
}
|
||||
|
||||
@@ -34,6 +34,7 @@ export class ProfilForm {
|
||||
})
|
||||
|
||||
user = input<GetUserDto>();
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
if (this.user()) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
</div>
|
||||
|
||||
<div class="mt-6">
|
||||
<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.fonction}}</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.fonction }}</p>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
import {UserInfo} from "../../interfaces/user.interface";
|
||||
import {ProfilForm} from "../profil-form/profil-form";
|
||||
import {ModalNav} from "../modal-nav/modal-nav";
|
||||
|
||||
@@ -24,10 +24,11 @@ import {GetPurchaseOrderDto} from "../../services/api";
|
||||
})
|
||||
export class PurchaseOrderForm {
|
||||
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() {
|
||||
effect(() => {
|
||||
if (this.purchaseOrder()) {
|
||||
|
||||
@@ -6,7 +6,7 @@ nz-table {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
||||
nz-table thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nz-table tbody tr {
|
||||
display: block;
|
||||
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;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td::before {
|
||||
content: attr(data-label);
|
||||
font-weight: 600;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
@for (purchaseOrder of purchaseOrders(); track purchaseOrder.id) {
|
||||
<tr>
|
||||
<td>{{ purchaseOrder.id }}</td>
|
||||
<td>{{purchaseOrder.purchaseConditions}}</td>
|
||||
<td>{{ purchaseOrder.purchaseConditions }}</td>
|
||||
<td>Fournisseur ???</td>
|
||||
<td>
|
||||
<app-modal-button type="link" name="Voir les produits" size="45%">
|
||||
@@ -34,15 +34,18 @@
|
||||
<tbody class="text-center">
|
||||
@for (product of purchaseOrder.products; track product.productId) {
|
||||
<tr>
|
||||
<td>{{product.productName}}</td>
|
||||
<td>{{product.productReferences}}</td>
|
||||
<td>{{ product.productName }}</td>
|
||||
<td>{{ product.productReferences }}</td>
|
||||
<td>Prix €€€€</td>
|
||||
<td>{{product.quantity}}</td>
|
||||
<td>{{ product.quantity }}</td>
|
||||
<td>
|
||||
<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-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>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -56,13 +59,17 @@
|
||||
<div style="justify-content: center; display: flex">
|
||||
<nz-icon nzType="plus-circle" nzTheme="outline" class="cursor-pointer text-green-700"/>
|
||||
<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-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-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-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>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -71,13 +78,17 @@
|
||||
</nz-table>
|
||||
|
||||
<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-modal-nav>
|
||||
</div>
|
||||
|
||||
<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-modal-nav>
|
||||
</div>
|
||||
@@ -64,7 +64,7 @@ export class PurchaseOrderTable implements OnInit {
|
||||
this.purchaseOrdersLoading.set(false)
|
||||
}
|
||||
|
||||
async delete(purchaseOrderId:number) {
|
||||
async delete(purchaseOrderId: number) {
|
||||
this.purchaseOrdersLoading.set(true)
|
||||
try {
|
||||
await firstValueFrom(this.purchaseOrdersService.deletePurchaseOrderEndpoint(purchaseOrderId))
|
||||
@@ -82,7 +82,7 @@ export class PurchaseOrderTable implements OnInit {
|
||||
await this.fetchPurchaseOrder();
|
||||
}
|
||||
|
||||
async export(purchaseOrderId: number){
|
||||
async export(purchaseOrderId: number) {
|
||||
this.purchaseOrdersLoading.set(true)
|
||||
try {
|
||||
const pdf = await firstValueFrom(
|
||||
@@ -119,7 +119,7 @@ export class PurchaseOrderTable implements OnInit {
|
||||
|
||||
const productQuantities: Record<number, number> = {};
|
||||
purchaseOrder.products?.forEach(p => {
|
||||
if(p.productId != null && p.quantity != null) {
|
||||
if (p.productId != null && p.quantity != null) {
|
||||
productQuantities[p.productId] = p.quantity;
|
||||
}
|
||||
});
|
||||
@@ -199,8 +199,9 @@ export class PurchaseOrderTable implements OnInit {
|
||||
}
|
||||
|
||||
selectedPurchaseOrder: GetPurchaseOrderDto | null = null;
|
||||
|
||||
openEditModal(purchaseOrder: GetPurchaseOrderDto) {
|
||||
this.selectedPurchaseOrder = { ...purchaseOrder };
|
||||
this.selectedPurchaseOrder = {...purchaseOrder};
|
||||
this.modal().showModal();
|
||||
}
|
||||
|
||||
@@ -218,8 +219,9 @@ export class PurchaseOrderTable implements OnInit {
|
||||
}
|
||||
|
||||
selectedQuantity: GetPurchaseProductDto | null = null;
|
||||
|
||||
openEditQuantityModal(quantity: GetPurchaseProductDto) {
|
||||
this.selectedQuantity = { ...quantity };
|
||||
this.selectedQuantity = {...quantity};
|
||||
this.modalQuantity().showModal();
|
||||
}
|
||||
|
||||
|
||||
@@ -27,7 +27,8 @@ export class QuantityForm {
|
||||
quantity: new FormControl<number>(null, [Validators.required])
|
||||
})
|
||||
|
||||
quantity= input<GetPurchaseProductDto>();
|
||||
quantity = input<GetPurchaseProductDto>();
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
if (this.quantity()) {
|
||||
|
||||
@@ -27,7 +27,8 @@ export class QuotationForm {
|
||||
conditionsSale: new FormControl<string>(null, [Validators.required]),
|
||||
})
|
||||
|
||||
quotation= input<GetQuotationDto>();
|
||||
quotation = input<GetQuotationDto>();
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
if (this.quotation()) {
|
||||
|
||||
@@ -6,7 +6,7 @@ nz-table {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
||||
nz-table thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nz-table tbody tr {
|
||||
display: block;
|
||||
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;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td::before {
|
||||
content: attr(data-label);
|
||||
font-weight: 600;
|
||||
|
||||
@@ -11,13 +11,13 @@
|
||||
<th>Produit</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead >
|
||||
</thead>
|
||||
<tbody class="text-center">
|
||||
@for (quotation of quotations(); track quotation.id) {
|
||||
<tr>
|
||||
<td>{{quotation.id}}</td>
|
||||
<td>{{quotation.message}}</td>
|
||||
<td>{{quotation.conditionsSale}}</td>
|
||||
<td>{{ quotation.id }}</td>
|
||||
<td>{{ quotation.message }}</td>
|
||||
<td>{{ quotation.conditionsSale }}</td>
|
||||
<td>
|
||||
<app-modal-button type="link" name="Voir les produits" size="45%">
|
||||
<div style="max-height: 400px; overflow-y: auto;">
|
||||
@@ -40,9 +40,12 @@
|
||||
<td>{{ product.quantity }}</td>
|
||||
<td>
|
||||
<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-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>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -54,13 +57,16 @@
|
||||
</td>
|
||||
<td>
|
||||
<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-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-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-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>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -69,13 +75,16 @@
|
||||
</nz-table>
|
||||
|
||||
<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-modal-nav>
|
||||
</div>
|
||||
|
||||
<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-modal-nav>
|
||||
</div>
|
||||
@@ -60,7 +60,7 @@ export class QuotationTable implements OnInit {
|
||||
this.quotationsLoading.set(false)
|
||||
}
|
||||
|
||||
async delete(quotation:number) {
|
||||
async delete(quotation: number) {
|
||||
this.quotationsLoading.set(true)
|
||||
try {
|
||||
await firstValueFrom(this.quotationsService.deleteQuotationEndpoint(quotation))
|
||||
@@ -78,7 +78,7 @@ export class QuotationTable implements OnInit {
|
||||
await this.fetchQuotations();
|
||||
}
|
||||
|
||||
async export(quotationId: number){
|
||||
async export(quotationId: number) {
|
||||
this.quotationsLoading.set(true)
|
||||
try {
|
||||
const pdf = await firstValueFrom(
|
||||
@@ -149,8 +149,9 @@ export class QuotationTable implements OnInit {
|
||||
}
|
||||
|
||||
selectedQuotation: GetQuotationDto | null = null;
|
||||
|
||||
openEditModal(quotation: GetQuotationDto) {
|
||||
this.selectedQuotation = { ...quotation };
|
||||
this.selectedQuotation = {...quotation};
|
||||
this.modal().showModal();
|
||||
}
|
||||
|
||||
@@ -168,8 +169,9 @@ export class QuotationTable implements OnInit {
|
||||
}
|
||||
|
||||
selectedQuantity: GetQuotationProductDto | null = null;
|
||||
|
||||
openEditQuantityModal(quantity: GetQuotationProductDto) {
|
||||
this.selectedQuantity = { ...quantity };
|
||||
this.selectedQuantity = {...quantity};
|
||||
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 {NzColDirective} from "ng-zorro-antd/grid";
|
||||
import {NzFlexDirective} from "ng-zorro-antd/flex";
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<nz-form-item>
|
||||
<nz-form-label nzSpan="9">Logo</nz-form-label>
|
||||
<nz-form-control nzSpan="25">
|
||||
<input nz-input type="file" formControlName="logo" />
|
||||
<input nz-input type="file" formControlName="logo"/>
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
</div>
|
||||
@@ -26,7 +26,7 @@
|
||||
<nz-form-item>
|
||||
<nz-form-label nzSpan="9">Signature</nz-form-label>
|
||||
<nz-form-control nzSpan="25">
|
||||
<input nz-input type="file" formControlName="signature" />
|
||||
<input nz-input type="file" formControlName="signature"/>
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
import {FormControl, FormGroup, FormsModule, ReactiveFormsModule} from "@angular/forms";
|
||||
import {NzColDirective} from "ng-zorro-antd/grid";
|
||||
import {NzFormControlComponent, NzFormDirective, NzFormItemComponent, NzFormLabelComponent} from "ng-zorro-antd/form";
|
||||
|
||||
@@ -27,7 +27,8 @@ export class StockForm {
|
||||
minimalQuantity: new FormControl<number>(null, [Validators.required])
|
||||
})
|
||||
|
||||
product= input<GetProductDto>();
|
||||
product = input<GetProductDto>();
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
if (this.product()) {
|
||||
|
||||
@@ -6,7 +6,7 @@ nz-table {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
||||
nz-table thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nz-table tbody tr {
|
||||
display: block;
|
||||
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;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td::before {
|
||||
content: attr(data-label);
|
||||
font-weight: 600;
|
||||
|
||||
@@ -47,9 +47,11 @@
|
||||
<td>{{ product.minimalQuantity }}</td>
|
||||
<td>
|
||||
<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-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>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -58,7 +60,8 @@
|
||||
</nz-table>
|
||||
|
||||
<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-modal-nav>
|
||||
</div>
|
||||
@@ -61,6 +61,7 @@ export class StockTable implements OnInit {
|
||||
applySearch(query: string) {
|
||||
this.searchQuery.set(query);
|
||||
}
|
||||
|
||||
get hasSelection(): boolean {
|
||||
return this.setOfCheckedId.size > 0;
|
||||
}
|
||||
@@ -122,7 +123,7 @@ export class StockTable implements OnInit {
|
||||
const products = await firstValueFrom(this.productsService.getAllProductsEndpoint());
|
||||
|
||||
// transforme chaque produit en ProductWithQuantity
|
||||
const productsWithQuantity: ProductWithQuantity[] = products.map(p => ({ ...p }));
|
||||
const productsWithQuantity: ProductWithQuantity[] = products.map(p => ({...p}));
|
||||
|
||||
this.products.set(productsWithQuantity);
|
||||
|
||||
@@ -140,7 +141,7 @@ export class StockTable implements OnInit {
|
||||
this.productsLoading.set(false);
|
||||
}
|
||||
|
||||
async delete(productId:number) {
|
||||
async delete(productId: number) {
|
||||
try {
|
||||
await firstValueFrom(this.productsService.deleteProductEndpoint(productId))
|
||||
this.notificationService.success(
|
||||
@@ -184,8 +185,9 @@ export class StockTable implements OnInit {
|
||||
}
|
||||
|
||||
selectedProduct: GetProductDto | null = null;
|
||||
|
||||
openEditModal(product: GetProductDto) {
|
||||
this.selectedProduct = { ...product};
|
||||
this.selectedProduct = {...product};
|
||||
this.modal().showModal();
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,8 @@ export class SupplierForm {
|
||||
|
||||
})
|
||||
|
||||
supplier= input<GetSupplierDto>();
|
||||
supplier = input<GetSupplierDto>();
|
||||
|
||||
constructor() {
|
||||
effect(() => {
|
||||
if (this.supplier()) {
|
||||
|
||||
@@ -6,7 +6,7 @@ nz-table {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
||||
nz-table thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nz-table tbody tr {
|
||||
display: block;
|
||||
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;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td::before {
|
||||
content: attr(data-label);
|
||||
font-weight: 600;
|
||||
|
||||
@@ -47,7 +47,8 @@
|
||||
class="cursor-pointer text-gray-600 hover:text-gray-900"
|
||||
(click)="openEditProductModal(product, supplier.id)"></nz-icon>
|
||||
<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>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@@ -96,12 +96,12 @@ export class SupplierTable implements OnInit {
|
||||
}
|
||||
|
||||
openEditModal(supplier: GetSupplierDto) {
|
||||
this.selectedSupplier = { ...supplier };
|
||||
this.selectedSupplier = {...supplier};
|
||||
this.supplierModal().showModal();
|
||||
}
|
||||
|
||||
openEditProductModal(product: GetPriceDto, supplierId: number) {
|
||||
this.selectedProduct = { ...product };
|
||||
this.selectedProduct = {...product};
|
||||
this.selectedProductSupplierId = supplierId;
|
||||
this.productModal().showModal();
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ nz-table {
|
||||
background: #fff;
|
||||
border-radius: 8px;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -66,18 +66,21 @@ nz-table tbody td p {
|
||||
nz-table thead {
|
||||
display: none;
|
||||
}
|
||||
|
||||
nz-table tbody tr {
|
||||
display: block;
|
||||
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;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
|
||||
nz-table tbody td::before {
|
||||
content: attr(data-label);
|
||||
font-weight: 600;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
[nzLoading]="usersLoading()"
|
||||
[nzFrontPagination]="false"
|
||||
class="mr-7">
|
||||
<thead>
|
||||
<thead>
|
||||
<tr class="text-center">
|
||||
<th>Prénom</th>
|
||||
<th>Email</th>
|
||||
@@ -13,15 +13,17 @@
|
||||
<tbody class="text-center">
|
||||
@for (user of users(); track user.id) {
|
||||
<tr>
|
||||
<td>{{user.name}}</td>
|
||||
<td>{{user.email}}</td>
|
||||
<td>{{user.fonction}}</td>
|
||||
<td>{{ user.name }}</td>
|
||||
<td>{{ user.email }}</td>
|
||||
<td>{{ user.fonction }}</td>
|
||||
<td>
|
||||
<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>
|
||||
<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>
|
||||
</td>
|
||||
@@ -31,7 +33,8 @@
|
||||
</nz-table>
|
||||
|
||||
<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-modal-nav>
|
||||
</div>
|
||||
|
||||
@@ -47,7 +47,7 @@ export class UserTable implements OnInit {
|
||||
this.usersLoading.set(false)
|
||||
}
|
||||
|
||||
async delete(user:number) {
|
||||
async delete(user: number) {
|
||||
try {
|
||||
await firstValueFrom(this.usersService.deleteUserEndpoint(user))
|
||||
this.notificationService.success(
|
||||
@@ -89,8 +89,9 @@ export class UserTable implements OnInit {
|
||||
}
|
||||
|
||||
selectedUser: GetUserDto | null = null;
|
||||
|
||||
openEditModal(user: GetUserDto) {
|
||||
this.selectedUser = { ...user };
|
||||
this.selectedUser = {...user};
|
||||
this.modal().showModal();
|
||||
}
|
||||
|
||||
@@ -102,9 +103,11 @@ export class UserTable implements OnInit {
|
||||
modal.isVisible = false;
|
||||
await this.fetchUsers();
|
||||
}
|
||||
|
||||
onModalCancel(modal: ModalNav) {
|
||||
modal.isVisible = false;
|
||||
}
|
||||
|
||||
filterUser(input: string, option: any) {
|
||||
return option.nzLabel.toLowerCase().includes(input.toLowerCase());
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
export interface NotifInfo {
|
||||
author: string;
|
||||
title: string;
|
||||
content: string;
|
||||
}
|
||||
@@ -37,8 +37,7 @@ export class Deliverer {
|
||||
}
|
||||
|
||||
async addDeliverer() {
|
||||
if (this.createDeliverer().delivererForm.invalid)
|
||||
{
|
||||
if (this.createDeliverer().delivererForm.invalid) {
|
||||
this.notificationService.error(
|
||||
'Erreur',
|
||||
'Erreur d\'écriture dans le formulaire'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
import {DelivereryNoteTable} from "../../components/deliverery-note-table/deliverery-note-table";
|
||||
import {ModalButton} from "../../components/modal-button/modal-button";
|
||||
import {DelivereryNoteForm} from "../../components/deliverery-note-form/deliverery-note-form";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
import {Search} from "../../components/search/search";
|
||||
import {PurchaseOrderTable} from "../../components/purchase-order-table/purchase-order-table";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
import {Search} from "../../components/search/search";
|
||||
import {QuotationTable} from "../../components/quotation-table/quotation-table";
|
||||
|
||||
|
||||
@@ -41,8 +41,7 @@ export class Supplier {
|
||||
}
|
||||
|
||||
async addSupplier() {
|
||||
if (this.createSupplier().supplierForm.invalid)
|
||||
{
|
||||
if (this.createSupplier().supplierForm.invalid) {
|
||||
this.notificationService.error(
|
||||
'Erreur',
|
||||
'Erreur d\'écriture dans le formulaire'
|
||||
|
||||
@@ -37,8 +37,7 @@ export class User {
|
||||
}
|
||||
|
||||
async addUser() {
|
||||
if (this.createUser().profilForm.invalid)
|
||||
{
|
||||
if (this.createUser().profilForm.invalid) {
|
||||
this.notificationService.error(
|
||||
'Erreur',
|
||||
'Erreur d\'écriture dans le formulaire'
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<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="#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 class="mt-10 flex gap-30">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Routes } from '@angular/router';
|
||||
import { Welcome } from './welcome';
|
||||
import {Routes} from '@angular/router';
|
||||
import {Welcome} from './welcome';
|
||||
|
||||
export const WELCOME_ROUTES: Routes = [
|
||||
{ path: '', component: Welcome },
|
||||
{path: '', component: Welcome},
|
||||
];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
import {InfoCard} from "../../components/info-card/info-card";
|
||||
import {DeliveryValidator} from "../../components/delivery-validator/delivery-validator";
|
||||
import {InfoTable} from "../../components/info-table/info-table";
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
README.md
|
||||
api.base.service.ts
|
||||
api.module.ts
|
||||
@@ -8,8 +9,6 @@ api/deliverynotes.service.ts
|
||||
api/prices.service.ts
|
||||
api/products.service.ts
|
||||
api/purchaseorders.service.ts
|
||||
api/purchaseproducts.service.ts
|
||||
api/quotationproducts.service.ts
|
||||
api/quotations.service.ts
|
||||
api/settings.service.ts
|
||||
api/suppliers.service.ts
|
||||
@@ -19,6 +18,7 @@ configuration.ts
|
||||
encoder.ts
|
||||
git_push.sh
|
||||
index.ts
|
||||
model/add-quotation-product-dto.ts
|
||||
model/connect-user-dto.ts
|
||||
model/create-deliverer-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-product-dto.ts
|
||||
model/create-quotation-dto.ts
|
||||
model/create-quotation-product-dto.ts
|
||||
model/create-setting-dto.ts
|
||||
model/create-supplier-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-product-quantity-dto.ts
|
||||
model/patch-quotation-conditions-sale-dto.ts
|
||||
model/patch-quotation-message-dto.ts
|
||||
model/patch-quotation-product-quantity-dto.ts
|
||||
model/patch-setting-electronic-signature-dto.ts
|
||||
model/patch-setting-logo-dto.ts
|
||||
|
||||
@@ -73,7 +73,9 @@ export const appConfig: ApplicationConfig = {
|
||||
```
|
||||
|
||||
**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
|
||||
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
|
||||
|
||||
[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
|
||||
|
||||
@@ -7,17 +7,17 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
||||
import { CustomHttpParameterCodec } from './encoder';
|
||||
import { Configuration } from './configuration';
|
||||
import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from './encoder';
|
||||
import {Configuration} from './configuration';
|
||||
|
||||
export class BaseService {
|
||||
protected basePath = 'https://localhost:44379';
|
||||
protected basePath = 'http://localhost:5298';
|
||||
public defaultHeaders = new HttpHeaders();
|
||||
public configuration: Configuration;
|
||||
public encoder: HttpParameterCodec;
|
||||
|
||||
constructor(basePath?: string|string[], configuration?: Configuration) {
|
||||
constructor(basePath?: string | string[], configuration?: Configuration) {
|
||||
this.configuration = configuration || new Configuration();
|
||||
if (typeof this.configuration.basePath !== 'string') {
|
||||
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { NgModule, ModuleWithProviders, SkipSelf, Optional } from '@angular/core';
|
||||
import { Configuration } from './configuration';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import {NgModule, ModuleWithProviders, SkipSelf, Optional} from '@angular/core';
|
||||
import {Configuration} from './configuration';
|
||||
import {HttpClient} from '@angular/common/http';
|
||||
|
||||
|
||||
@NgModule({
|
||||
@@ -13,11 +13,11 @@ export class ApiModule {
|
||||
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
|
||||
return {
|
||||
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) {
|
||||
if (parentModule) {
|
||||
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
||||
|
||||
@@ -1,25 +1,31 @@
|
||||
export * from './deliverers.service';
|
||||
import { DeliverersService } from './deliverers.service';
|
||||
import {DeliverersService} from './deliverers.service';
|
||||
|
||||
export * from './deliverynotes.service';
|
||||
import { DeliverynotesService } from './deliverynotes.service';
|
||||
import {DeliverynotesService} from './deliverynotes.service';
|
||||
|
||||
export * from './prices.service';
|
||||
import { PricesService } from './prices.service';
|
||||
import {PricesService} from './prices.service';
|
||||
|
||||
export * from './products.service';
|
||||
import { ProductsService } from './products.service';
|
||||
import {ProductsService} from './products.service';
|
||||
|
||||
export * 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';
|
||||
import {PurchaseordersService} from './purchaseorders.service';
|
||||
|
||||
export * from './quotations.service';
|
||||
import { QuotationsService } from './quotations.service';
|
||||
import {QuotationsService} from './quotations.service';
|
||||
|
||||
export * from './settings.service';
|
||||
import { SettingsService } from './settings.service';
|
||||
import {SettingsService} from './settings.service';
|
||||
|
||||
export * from './suppliers.service';
|
||||
import { SuppliersService } from './suppliers.service';
|
||||
import {SuppliersService} from './suppliers.service';
|
||||
|
||||
export * from './users.service';
|
||||
import { UsersService } from './users.service';
|
||||
import {UsersService} from './users.service';
|
||||
|
||||
export * from './warehouseproducts.service';
|
||||
import { WarehouseproductsService } from './warehouseproducts.service';
|
||||
export const APIS = [DeliverersService, DeliverynotesService, PricesService, ProductsService, PurchaseordersService, PurchaseproductsService, QuotationproductsService, QuotationsService, SettingsService, SuppliersService, UsersService, WarehouseproductsService];
|
||||
import {WarehouseproductsService} from './warehouseproducts.service';
|
||||
|
||||
export const APIS = [DeliverersService, DeliverynotesService, PricesService, ProductsService, PurchaseordersService, QuotationsService, SettingsService, SuppliersService, UsersService, WarehouseproductsService];
|
||||
|
||||
@@ -9,25 +9,25 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
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';
|
||||
} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from '../encoder';
|
||||
import {Observable} from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CreateDelivererDto } from '../model/create-deliverer-dto';
|
||||
import {CreateDelivererDto} from '../model/create-deliverer-dto';
|
||||
// @ts-ignore
|
||||
import { GetDelivererDto } from '../model/get-deliverer-dto';
|
||||
import {GetDelivererDto} from '../model/get-deliverer-dto';
|
||||
// @ts-ignore
|
||||
import { UpdateDelivererDto } from '../model/update-deliverer-dto';
|
||||
import {UpdateDelivererDto} from '../model/update-deliverer-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -35,7 +35,7 @@ import { BaseService } from '../api.base.service';
|
||||
})
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -45,10 +45,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 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?: '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> {
|
||||
public createDelivererEndpoint(createDelivererDto: CreateDelivererDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<GetDelivererDto>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createDelivererDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -109,18 +125,33 @@ 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 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?: '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> {
|
||||
public deleteDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
throw new Error('Required parameter delivererId was null or undefined when calling deleteDelivererEndpoint.');
|
||||
}
|
||||
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({
|
||||
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}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
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 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?: '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> {
|
||||
public getAllDelivererEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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;
|
||||
|
||||
@@ -192,15 +247,15 @@ export class DeliverersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/deliverers`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<Array<GetDelivererDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -212,10 +267,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 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?: '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> {
|
||||
public getDelivererEndpoint(delivererId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/deliverers/${this.configuration.encodeParam({
|
||||
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}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -267,10 +346,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 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?: '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> {
|
||||
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?: '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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/deliverers/${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<GetDelivererDto>('put', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: updateDelivererDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -9,27 +9,27 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
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';
|
||||
} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from '../encoder';
|
||||
import {Observable} from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CreateDeliveryNoteDto } from '../model/create-delivery-note-dto';
|
||||
import {CreateDeliveryNoteDto} from '../model/create-delivery-note-dto';
|
||||
// @ts-ignore
|
||||
import { GetDeliveryNoteDto } from '../model/get-delivery-note-dto';
|
||||
import {GetDeliveryNoteDto} from '../model/get-delivery-note-dto';
|
||||
// @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
|
||||
import { UpdateDeliveryNoteDto } from '../model/update-delivery-note-dto';
|
||||
import {UpdateDeliveryNoteDto} from '../model/update-delivery-note-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -37,7 +37,7 @@ import { BaseService } from '../api.base.service';
|
||||
})
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -47,19 +47,33 @@ 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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDeliveryNoteDto>>;
|
||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDeliveryNoteDto>>;
|
||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public createDeliveryNoteEndpoint(createDeliveryNoteDto: CreateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
throw new Error('Required parameter createDeliveryNoteDto was null or undefined when calling createDeliveryNoteEndpoint.');
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -90,16 +104,16 @@ export class DeliverynotesService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/deliveryNotes`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetDeliveryNoteDto>('post', `${basePath}${localVarPath}`,
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createDeliveryNoteDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -111,18 +125,33 @@ 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 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?: '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> {
|
||||
public deleteDeliveryNoteEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
throw new Error('Required parameter id was null or undefined when calling deleteDeliveryNoteEndpoint.');
|
||||
}
|
||||
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/deliveryNotes/${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 } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
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 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?: '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> {
|
||||
public getAllDeliveryNoteEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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;
|
||||
|
||||
@@ -194,15 +247,15 @@ export class DeliverynotesService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/deliveryNotes`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<Array<GetDeliveryNoteDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -214,10 +267,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 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?: '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> {
|
||||
public getDeliveryNoteEndpoint(deliveryNoteId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
||||
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}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -268,10 +345,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 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?: '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> {
|
||||
public getDeliveryNotePdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/pdf',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
|
||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/pdf`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/deliveryNotes/${this.configuration.encodeParam({
|
||||
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}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: "blob",
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -312,10 +413,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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDeliveryNoteDto>>;
|
||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDeliveryNoteDto>>;
|
||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public patchRealDeliveryDateEndpoint(id: number, patchDeliveryNoteRealDeliveryDateDto: PatchDeliveryNoteRealDeliveryDateDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetDeliveryNoteDto>('patch', `${basePath}${localVarPath}`,
|
||||
let localVarPath = `/API/deliveryNotes/${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>('patch', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: patchDeliveryNoteRealDeliveryDateDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -380,10 +503,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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetDeliveryNoteDto>>;
|
||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetDeliveryNoteDto>>;
|
||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public updateDeliveryNoteEndpoint(id: number, updateDeliveryNoteDto: UpdateDeliveryNoteDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetDeliveryNoteDto>('put', `${basePath}${localVarPath}`,
|
||||
let localVarPath = `/API/deliveryNotes/${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>('put', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: updateDeliveryNoteDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -9,25 +9,21 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
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';
|
||||
} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from '../encoder';
|
||||
import {Observable} from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CreatePriceDto } from '../model/create-price-dto';
|
||||
// @ts-ignore
|
||||
import { GetPriceDto } from '../model/get-price-dto';
|
||||
// @ts-ignore
|
||||
import { PatchPriceSellingPriceDto } from '../model/patch-price-selling-price-dto';
|
||||
import {PatchPriceSellingPriceDto} from '../model/patch-price-selling-price-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -35,131 +31,10 @@ import { BaseService } from '../api.base.service';
|
||||
})
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
* @param productId
|
||||
@@ -168,10 +43,26 @@ export class PricesService 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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPriceDto>>;
|
||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPriceDto>>;
|
||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public patchPriceEndpoint(productId: number, supplierId: number, patchPriceSellingPriceDto: PatchPriceSellingPriceDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetPriceDto>('patch', `${basePath}${localVarPath}`,
|
||||
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`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<any>('patch', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: patchPriceSellingPriceDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -9,25 +9,25 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
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';
|
||||
} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from '../encoder';
|
||||
import {Observable} from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { GetProductDto } from '../model/get-product-dto';
|
||||
import {GetProductDto} from '../model/get-product-dto';
|
||||
// @ts-ignore
|
||||
import { PatchProductMinimalStockDto } from '../model/patch-product-minimal-stock-dto';
|
||||
import {PatchProductMinimalStockDto} from '../model/patch-product-minimal-stock-dto';
|
||||
// @ts-ignore
|
||||
import { UpdateProductDto } from '../model/update-product-dto';
|
||||
import {UpdateProductDto} from '../model/update-product-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -35,7 +35,7 @@ import { BaseService } from '../api.base.service';
|
||||
})
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -45,18 +45,33 @@ 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 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?: '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> {
|
||||
public deleteProductEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
throw new Error('Required parameter productId was null or undefined when calling deleteProductEndpoint.');
|
||||
}
|
||||
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/products/${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}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
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 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?: '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> {
|
||||
public getAllProductsEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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;
|
||||
|
||||
@@ -128,15 +167,15 @@ export class ProductsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/products`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<Array<GetProductDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
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 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?: '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> {
|
||||
public getAllProductsUnderLimitEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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;
|
||||
|
||||
@@ -178,15 +233,15 @@ export class ProductsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/products/underLimit`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<Array<GetProductDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -198,10 +253,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 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?: '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> {
|
||||
public getProductEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/products/${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<GetProductDto>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -253,10 +332,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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetProductDto>>;
|
||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetProductDto>>;
|
||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public patchProductMinimalStockEndpoint(id: number, patchProductMinimalStockDto: PatchProductMinimalStockDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetProductDto>('patch', `${basePath}${localVarPath}`,
|
||||
let localVarPath = `/API/products/${this.configuration.encodeParam({
|
||||
name: "id",
|
||||
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,
|
||||
body: patchProductMinimalStockDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -321,10 +422,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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetProductDto>>;
|
||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetProductDto>>;
|
||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public updateProductEndpoint(id: number, updateProductDto: UpdateProductDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetProductDto>('put', `${basePath}${localVarPath}`,
|
||||
let localVarPath = `/API/products/${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>('put', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: updateProductDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -9,25 +9,29 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
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';
|
||||
} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from '../encoder';
|
||||
import {Observable} from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CreatePurchaseOrderDto } from '../model/create-purchase-order-dto';
|
||||
import {CreatePurchaseOrderDto} from '../model/create-purchase-order-dto';
|
||||
// @ts-ignore
|
||||
import { GetPurchaseOrderDto } from '../model/get-purchase-order-dto';
|
||||
import {CreatePurchaseProductDto} from '../model/create-purchase-product-dto';
|
||||
// @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
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -35,29 +39,145 @@ import { BaseService } from '../api.base.service';
|
||||
})
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @endpoint post /API/purchaseOrders/{purchaseOrderId}/{productId}
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public addProductFromPurchaseOrderEndpoint(purchaseOrderId: number, productId: number, createPurchaseProductDto: CreatePurchaseProductDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetPurchaseOrderDto>;
|
||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPurchaseOrderDto>>;
|
||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPurchaseOrderDto>>;
|
||||
public createPurchaseOrder(createPurchaseOrderDto: CreatePurchaseOrderDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
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) {
|
||||
throw new Error('Required parameter createPurchaseOrderDto was null or undefined when calling createPurchaseOrder.');
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -88,39 +208,58 @@ export class PurchaseordersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/purchaseOrders`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetPurchaseOrderDto>('post', `${basePath}${localVarPath}`,
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createPurchaseOrderDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @endpoint delete /API/purchaseOrders/{id}
|
||||
* @param id
|
||||
* @endpoint delete /API/purchaseOrders/{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 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.');
|
||||
public deleteProductFromPurchaseOrderEndpoint(productId: number, purchaseOrderId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<any>;
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
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"
|
||||
})}`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
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
|
||||
}
|
||||
);
|
||||
@@ -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 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?: '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> {
|
||||
public getAllPurchaseOrderEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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;
|
||||
|
||||
@@ -192,15 +439,15 @@ export class PurchaseordersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/purchaseOrders`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<Array<GetPurchaseOrderDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -212,10 +459,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 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?: '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> {
|
||||
public getPurchaseOrderEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
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<GetPurchaseOrderDto>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -266,10 +537,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 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?: '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> {
|
||||
public getPurchaseOrderPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/pdf',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
|
||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/pdf`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
||||
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}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: "blob",
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -310,10 +605,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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetPurchaseOrderDto>>;
|
||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetPurchaseOrderDto>>;
|
||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public patchPurchaseOrderPurchaseConditionsEndpoint(id: number, patchPurchaseOrderPurchaseConditionsDto: PatchPurchaseOrderPurchaseConditionsDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetPurchaseOrderDto>('patch', `${basePath}${localVarPath}`,
|
||||
let localVarPath = `/API/purchaseOrders/${this.configuration.encodeParam({
|
||||
name: "id",
|
||||
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,
|
||||
body: patchPurchaseOrderPurchaseConditionsDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
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
|
||||
}
|
||||
);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -9,27 +9,33 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
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';
|
||||
} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from '../encoder';
|
||||
import {Observable} from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CreateQuotationDto } from '../model/create-quotation-dto';
|
||||
import {AddQuotationProductDto} from '../model/add-quotation-product-dto';
|
||||
// @ts-ignore
|
||||
import { GetQuotationDto } from '../model/get-quotation-dto';
|
||||
import {CreateQuotationDto} from '../model/create-quotation-dto';
|
||||
// @ts-ignore
|
||||
import { PatchQuotationConditionsSaleDto } from '../model/patch-quotation-conditions-sale-dto';
|
||||
import {GetQuotationDto} from '../model/get-quotation-dto';
|
||||
// @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
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -37,29 +43,133 @@ import { BaseService } from '../api.base.service';
|
||||
})
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @endpoint post /API/quotations/{productId}/products
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public addProductoToQuotationEndpoint(productId: number, addQuotationProductDto: AddQuotationProductDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetQuotationDto>;
|
||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetQuotationDto>>;
|
||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetQuotationDto>>;
|
||||
public createQuotationEndpoint(createQuotationDto: CreateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
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) {
|
||||
throw new Error('Required parameter createQuotationDto was null or undefined when calling createQuotationEndpoint.');
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -90,39 +200,58 @@ export class QuotationsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/quotations`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetQuotationDto>('post', `${basePath}${localVarPath}`,
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createQuotationDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @endpoint delete /API/quotations/{id}
|
||||
* @param id
|
||||
* @endpoint delete /API/quotations/{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 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.');
|
||||
public deleteProductFromQuotationEndpoint(productId: number, quotationId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<any>;
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
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"
|
||||
})}`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
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
|
||||
}
|
||||
);
|
||||
@@ -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 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?: '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> {
|
||||
public getAllQuotationEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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;
|
||||
|
||||
@@ -194,15 +431,15 @@ export class QuotationsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/quotations`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<Array<GetQuotationDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -214,10 +451,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 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?: '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> {
|
||||
public getQuotationEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
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<GetQuotationDto>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -268,10 +529,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 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?: '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> {
|
||||
public getQuotationPdfEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/pdf',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
|
||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32"})}/pdf`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||
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}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: "blob",
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -312,10 +597,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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetQuotationDto>>;
|
||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetQuotationDto>>;
|
||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public patchQuotationConditionsSaleEndpoint(id: number, patchQuotationConditionsSaleDto: PatchQuotationConditionsSaleDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetQuotationDto>('patch', `${basePath}${localVarPath}`,
|
||||
let localVarPath = `/API/quotations/${this.configuration.encodeParam({
|
||||
name: "id",
|
||||
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,
|
||||
body: patchQuotationConditionsSaleDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
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
|
||||
}
|
||||
);
|
||||
@@ -380,10 +879,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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetQuotationDto>>;
|
||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetQuotationDto>>;
|
||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public updateQuotationEndpoint(id: number, updateQuotationDto: UpdateQuotationDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetQuotationDto>('put', `${basePath}${localVarPath}`,
|
||||
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>('put', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: updateQuotationDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -9,27 +9,27 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
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';
|
||||
} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from '../encoder';
|
||||
import {Observable} from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CreateSettingDto } from '../model/create-setting-dto';
|
||||
import {CreateSettingDto} from '../model/create-setting-dto';
|
||||
// @ts-ignore
|
||||
import { GetSettingDto } from '../model/get-setting-dto';
|
||||
import {GetSettingDto} from '../model/get-setting-dto';
|
||||
// @ts-ignore
|
||||
import { PatchSettingElectronicSignatureDto } from '../model/patch-setting-electronic-signature-dto';
|
||||
import {PatchSettingElectronicSignatureDto} from '../model/patch-setting-electronic-signature-dto';
|
||||
// @ts-ignore
|
||||
import { PatchSettingLogoDto } from '../model/patch-setting-logo-dto';
|
||||
import {PatchSettingLogoDto} from '../model/patch-setting-logo-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -37,7 +37,7 @@ import { BaseService } from '../api.base.service';
|
||||
})
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -47,19 +47,33 @@ export class SettingsService 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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSettingDto>>;
|
||||
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSettingDto>>;
|
||||
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public createSettingEndpoint(createSettingDto: CreateSettingDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
throw new Error('Required parameter createSettingDto was null or undefined when calling createSettingEndpoint.');
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -90,16 +104,16 @@ export class SettingsService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/settings`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetSettingDto>('post', `${basePath}${localVarPath}`,
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createSettingDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -111,18 +125,33 @@ export class SettingsService 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 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?: '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> {
|
||||
public deleteSettingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
throw new Error('Required parameter id was null or undefined when calling deleteSettingEndpoint.');
|
||||
}
|
||||
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/settings/${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 } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -164,10 +201,26 @@ export class SettingsService 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 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?: '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> {
|
||||
public getSettingEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/settings/${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<GetSettingDto>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -219,10 +280,26 @@ export class SettingsService 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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSettingDto>>;
|
||||
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSettingDto>>;
|
||||
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public patchSettingElectronicSignatureEndpoint(id: number, patchSettingElectronicSignatureDto: PatchSettingElectronicSignatureDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetSettingDto>('patch', `${basePath}${localVarPath}`,
|
||||
let localVarPath = `/API/settings/${this.configuration.encodeParam({
|
||||
name: "id",
|
||||
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,
|
||||
body: patchSettingElectronicSignatureDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -287,10 +370,26 @@ export class SettingsService 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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSettingDto>>;
|
||||
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSettingDto>>;
|
||||
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public patchSettingLogoEndpoint(id: number, patchSettingLogoDto: PatchSettingLogoDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetSettingDto>('patch', `${basePath}${localVarPath}`,
|
||||
let localVarPath = `/API/settings/${this.configuration.encodeParam({
|
||||
name: "id",
|
||||
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,
|
||||
body: patchSettingLogoDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -9,27 +9,29 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
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';
|
||||
} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from '../encoder';
|
||||
import {Observable} from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { CreateSupplierDto } from '../model/create-supplier-dto';
|
||||
import {CreatePriceDto} from '../model/create-price-dto';
|
||||
// @ts-ignore
|
||||
import { GetSupplierDto } from '../model/get-supplier-dto';
|
||||
import {CreateSupplierDto} from '../model/create-supplier-dto';
|
||||
// @ts-ignore
|
||||
import { PatchSupplierDeliveryDelayDto } from '../model/patch-supplier-delivery-delay-dto';
|
||||
import {GetSupplierDto} from '../model/get-supplier-dto';
|
||||
// @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
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -37,29 +39,145 @@ import { BaseService } from '../api.base.service';
|
||||
})
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* @endpoint post /API/suppliers/{supplierId}/{productId}
|
||||
* @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 reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public addProductToSupplierEndpoint(supplierId: number, productId: number, createPriceDto: CreatePriceDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<GetSupplierDto>;
|
||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSupplierDto>>;
|
||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSupplierDto>>;
|
||||
public createSupplierEndpoint(createSupplierDto: CreateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
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) {
|
||||
throw new Error('Required parameter createSupplierDto was null or undefined when calling createSupplierEndpoint.');
|
||||
}
|
||||
|
||||
let localVarHeaders = this.defaultHeaders;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
||||
}
|
||||
@@ -90,39 +208,58 @@ export class SuppliersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/suppliers`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetSupplierDto>('post', `${basePath}${localVarPath}`,
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<any>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createSupplierDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @endpoint delete /API/suppliers/{id}
|
||||
* @param id
|
||||
* @endpoint delete /API/suppliers/{supplierId}/{productId}
|
||||
* @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 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.');
|
||||
public deleteProductToSupplierEndpoint(supplierId: number, productId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
transferCache?: boolean
|
||||
}): Observable<any>;
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
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>('delete', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
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
|
||||
}
|
||||
);
|
||||
@@ -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 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?: '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> {
|
||||
public getAllSuppliersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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;
|
||||
|
||||
@@ -194,15 +439,15 @@ export class SuppliersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/suppliers`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<Array<GetSupplierDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -214,10 +459,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 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?: '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> {
|
||||
public getSupplierEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
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<GetSupplierDto>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -269,10 +538,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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSupplierDto>>;
|
||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSupplierDto>>;
|
||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public patchSupplierDeliveryDelayEndpoint(id: number, patchSupplierDeliveryDelayDto: PatchSupplierDeliveryDelayDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetSupplierDto>('patch', `${basePath}${localVarPath}`,
|
||||
let localVarPath = `/API/suppliers/${this.configuration.encodeParam({
|
||||
name: "id",
|
||||
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,
|
||||
body: patchSupplierDeliveryDelayDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -337,10 +628,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 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?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<GetSupplierDto>>;
|
||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<GetSupplierDto>>;
|
||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
|
||||
public updateSupplierEndpoint(id: number, updateSupplierDto: UpdateSupplierDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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;
|
||||
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
||||
'application/json'
|
||||
]);
|
||||
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
||||
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<GetSupplierDto>('put', `${basePath}${localVarPath}`,
|
||||
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>('put', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: updateSupplierDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -9,31 +9,31 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
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';
|
||||
} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from '../encoder';
|
||||
import {Observable} from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { ConnectUserDto } from '../model/connect-user-dto';
|
||||
import {ConnectUserDto} from '../model/connect-user-dto';
|
||||
// @ts-ignore
|
||||
import { CreateUserDto } from '../model/create-user-dto';
|
||||
import {CreateUserDto} from '../model/create-user-dto';
|
||||
// @ts-ignore
|
||||
import { GetTokenDto } from '../model/get-token-dto';
|
||||
import {GetTokenDto} from '../model/get-token-dto';
|
||||
// @ts-ignore
|
||||
import { GetUserDto } from '../model/get-user-dto';
|
||||
import {GetUserDto} from '../model/get-user-dto';
|
||||
// @ts-ignore
|
||||
import { PatchUserPasswordDto } from '../model/patch-user-password-dto';
|
||||
import {PatchUserPasswordDto} from '../model/patch-user-password-dto';
|
||||
// @ts-ignore
|
||||
import { UpdateUserDto } from '../model/update-user-dto';
|
||||
import {UpdateUserDto} from '../model/update-user-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -41,7 +41,7 @@ import { BaseService } from '../api.base.service';
|
||||
})
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -51,10 +51,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 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?: '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> {
|
||||
public connectUserEndpoint(connectUserDto: ConnectUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<GetTokenDto>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: connectUserDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -115,10 +131,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 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?: '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> {
|
||||
public createUserEndpoint(createUserDto: CreateUserDto, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<GetUserDto>('post', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: createUserDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -179,18 +211,33 @@ 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 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?: '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> {
|
||||
public deleteUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: undefined,
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
throw new Error('Required parameter id was null or undefined when calling deleteUserEndpoint.');
|
||||
}
|
||||
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/users/${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 } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
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 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?: '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> {
|
||||
public getAllUsersEndpoint(observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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;
|
||||
|
||||
@@ -262,15 +333,15 @@ export class UsersService extends BaseService {
|
||||
}
|
||||
|
||||
let localVarPath = `/API/users`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<Array<GetUserDto>>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -282,10 +353,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 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?: '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> {
|
||||
public getUserEndpoint(id: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/users/${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<GetUserDto>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -337,10 +432,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 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?: '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> {
|
||||
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?: '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) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/users/${this.configuration.encodeParam({
|
||||
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}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: patchUserPasswordDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -405,10 +524,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 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?: '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> {
|
||||
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?: '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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/users/${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<GetUserDto>('put', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: updateUserDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -9,25 +9,25 @@
|
||||
*/
|
||||
/* tslint:disable:no-unused-variable member-ordering */
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
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';
|
||||
} from '@angular/common/http';
|
||||
import {CustomHttpParameterCodec} from '../encoder';
|
||||
import {Observable} from 'rxjs';
|
||||
|
||||
// @ts-ignore
|
||||
import { GetTotalQuantityDto } from '../model/get-total-quantity-dto';
|
||||
import {GetTotalQuantityDto} from '../model/get-total-quantity-dto';
|
||||
// @ts-ignore
|
||||
import { GetWareHouseProductDto } from '../model/get-ware-house-product-dto';
|
||||
import {GetWareHouseProductDto} from '../model/get-ware-house-product-dto';
|
||||
// @ts-ignore
|
||||
import { PatchWareHouseProductQuantityDto } from '../model/patch-ware-house-product-quantity-dto';
|
||||
import {PatchWareHouseProductQuantityDto} from '../model/patch-ware-house-product-quantity-dto';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
import { BaseService } from '../api.base.service';
|
||||
|
||||
import {BASE_PATH, COLLECTION_FORMATS} from '../variables';
|
||||
import {Configuration} from '../configuration';
|
||||
import {BaseService} from '../api.base.service';
|
||||
|
||||
|
||||
@Injectable({
|
||||
@@ -35,7 +35,7 @@ import { BaseService } from '../api.base.service';
|
||||
})
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -45,10 +45,26 @@ export class WarehouseproductsService 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 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?: '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> {
|
||||
public getTotalQuantityEndpoint(productId: number, observe?: 'body', reportProgress?: boolean, options?: {
|
||||
httpHeaderAccept?: 'application/json',
|
||||
context?: HttpContext,
|
||||
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) {
|
||||
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"})}`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
let localVarPath = `/API/wareHouseProducts/${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<GetTotalQuantityDto>('get', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
@@ -101,10 +125,26 @@ export class WarehouseproductsService 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 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?: '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> {
|
||||
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?: '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) {
|
||||
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`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
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`;
|
||||
const {basePath, withCredentials} = this.configuration;
|
||||
return this.httpClient.request<GetWareHouseProductDto>('patch', `${basePath}${localVarPath}`,
|
||||
{
|
||||
context: localVarHttpContext,
|
||||
body: patchWareHouseProductQuantityDto,
|
||||
responseType: <any>responseType_,
|
||||
...(withCredentials ? { withCredentials } : {}),
|
||||
...(withCredentials ? {withCredentials} : {}),
|
||||
headers: localVarHeaders,
|
||||
observe: observe,
|
||||
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
||||
...(localVarTransferCache !== undefined ? {transferCache: localVarTransferCache} : {}),
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { HttpHeaders, HttpParams, HttpParameterCodec } from '@angular/common/http';
|
||||
import { Param } from './param';
|
||||
import {HttpHeaders, HttpParams, HttpParameterCodec} from '@angular/common/http';
|
||||
import {Param} from './param';
|
||||
|
||||
export interface ConfigurationParameters {
|
||||
/**
|
||||
* @deprecated Since 5.0. Use credentials instead
|
||||
*/
|
||||
apiKeys?: {[ key: string ]: string};
|
||||
apiKeys?: { [key: string]: string };
|
||||
username?: string;
|
||||
password?: string;
|
||||
/**
|
||||
@@ -31,14 +31,14 @@ export interface ConfigurationParameters {
|
||||
* document. They should map to the value used for authentication
|
||||
* minus any standard prefixes such as 'Basic' or 'Bearer'.
|
||||
*/
|
||||
credentials?: {[ key: string ]: string | (() => string | undefined)};
|
||||
credentials?: { [key: string]: string | (() => string | undefined) };
|
||||
}
|
||||
|
||||
export class Configuration {
|
||||
/**
|
||||
* @deprecated Since 5.0. Use credentials instead
|
||||
*/
|
||||
apiKeys?: {[ key: string ]: string};
|
||||
apiKeys?: { [key: string]: string };
|
||||
username?: string;
|
||||
password?: string;
|
||||
/**
|
||||
@@ -64,9 +64,19 @@ export class Configuration {
|
||||
* document. They should map to the value used for authentication
|
||||
* 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) {
|
||||
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
|
||||
* @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) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { HttpParameterCodec } from '@angular/common/http';
|
||||
import {HttpParameterCodec} from '@angular/common/http';
|
||||
|
||||
/**
|
||||
* Custom HttpParameterCodec
|
||||
@@ -8,12 +8,15 @@ export class CustomHttpParameterCodec implements HttpParameterCodec {
|
||||
encodeKey(k: string): string {
|
||||
return encodeURIComponent(k);
|
||||
}
|
||||
|
||||
encodeValue(v: string): string {
|
||||
return encodeURIComponent(v);
|
||||
}
|
||||
|
||||
decodeKey(k: string): string {
|
||||
return decodeURIComponent(k);
|
||||
}
|
||||
|
||||
decodeValue(v: string): string {
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -11,24 +11,5 @@
|
||||
|
||||
export interface CreatePriceDto {
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* 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 {
|
||||
|
||||
@@ -11,8 +11,5 @@
|
||||
|
||||
export interface CreatePurchaseProductDto {
|
||||
quantity?: number;
|
||||
productId?: number;
|
||||
purchaseOrderId?: number;
|
||||
purchaseOrderPurchaseConditions?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { CreateProductQuotationDto } from './create-product-quotation-dto';
|
||||
import {CreateProductQuotationDto} from './create-product-quotation-dto';
|
||||
|
||||
|
||||
export interface CreateQuotationDto {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
|
||||
export interface CreateSettingDto {
|
||||
electronicSignature?: string | null;
|
||||
logo?: string | null;
|
||||
electronicSignature?: Blob | null;
|
||||
logo?: Blob | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { GetDeliveryNoteDto } from './get-delivery-note-dto';
|
||||
import {GetDeliveryNoteDto} from './get-delivery-note-dto';
|
||||
|
||||
|
||||
export interface GetDelivererDto {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { GetProductDeliveryDto } from './get-product-delivery-dto';
|
||||
import {GetProductDeliveryDto} from './get-product-delivery-dto';
|
||||
|
||||
|
||||
export interface GetDeliveryNoteDto {
|
||||
|
||||
@@ -10,18 +10,9 @@
|
||||
|
||||
|
||||
export interface GetPriceDto {
|
||||
id?: number;
|
||||
sellingPrice?: number;
|
||||
supplierId?: number;
|
||||
supplierName?: string | null;
|
||||
supplierEmail?: string | null;
|
||||
supplierPhone?: string | null;
|
||||
supplierAddress?: string | null;
|
||||
supplierZipCode?: string | null;
|
||||
supplierCity?: string | null;
|
||||
supplierDeliveryDelay?: number;
|
||||
productId?: number;
|
||||
productReferences?: string | null;
|
||||
productReference?: string | null;
|
||||
productName?: string | null;
|
||||
productDuration?: number;
|
||||
productCaliber?: number;
|
||||
|
||||
@@ -21,13 +21,6 @@ export interface GetProductDeliveryDto {
|
||||
productImage?: string | null;
|
||||
productLink?: string | null;
|
||||
productMinimalQuantity?: number;
|
||||
deliveryNoteId?: number;
|
||||
deliveryNoteTrackingNumber?: string | null;
|
||||
deliveryNoteEstimateDeliveryDate?: string;
|
||||
deliveryNoteExpeditionDate?: string;
|
||||
deliveryNoteRealDeliveryDate?: string | null;
|
||||
deliveryNoteDeliverId?: number;
|
||||
deliveryNoteDeliverTransporter?: string | null;
|
||||
quantity?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,12 +7,13 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { GetPurchaseProductDto } from './get-purchase-product-dto';
|
||||
import {GetPurchaseProductDto} from './get-purchase-product-dto';
|
||||
|
||||
|
||||
export interface GetPurchaseOrderDto {
|
||||
id?: number;
|
||||
purchaseConditions?: string | null;
|
||||
supplierId?: number;
|
||||
products?: Array<GetPurchaseProductDto> | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
export interface GetPurchaseProductDto {
|
||||
productId?: number;
|
||||
productReferences?: string | null;
|
||||
productReference?: string | null;
|
||||
productName?: string | null;
|
||||
productDuration?: number;
|
||||
productCaliber?: number;
|
||||
@@ -21,8 +21,7 @@ export interface GetPurchaseProductDto {
|
||||
productImage?: string | null;
|
||||
productLink?: string | null;
|
||||
productMinimalQuantity?: number;
|
||||
purchaseOrderId?: number;
|
||||
purchaseOrderPurchaseConditions?: string | null;
|
||||
productPrice?: number;
|
||||
quantity?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { GetQuotationProductDto } from './get-quotation-product-dto';
|
||||
import {GetQuotationProductDto} from './get-quotation-product-dto';
|
||||
|
||||
|
||||
export interface GetQuotationDto {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user