Florian Eisenmenger 1 год назад
Родитель
Сommit
cf1b050e33
30 измененных файлов: 2244 добавлений и 193 удалений
  1. +65
    -0
      matsen-tool/1deployMatsenFE.sh
  2. +1
    -1
      matsen-tool/openapi.json
  3. +896
    -124
      matsen-tool/openapi.yaml
  4. +56
    -3
      matsen-tool/src/app/_forms/apiForms.ts
  5. +12
    -0
      matsen-tool/src/app/core/api/v1/.openapi-generator/FILES
  6. +5
    -1
      matsen-tool/src/app/core/api/v1/api/api.ts
  7. +432
    -0
      matsen-tool/src/app/core/api/v1/api/contactPartnerProduct.service.ts
  8. +444
    -0
      matsen-tool/src/app/core/api/v1/api/partnerProduct.service.ts
  9. +23
    -0
      matsen-tool/src/app/core/api/v1/model/apiContactPartnerProductsGetCollection200Response.ts
  10. +22
    -0
      matsen-tool/src/app/core/api/v1/model/apiContactPartnerProductsGetCollection200Response1.ts
  11. +23
    -0
      matsen-tool/src/app/core/api/v1/model/apiPartnerProductsGetCollection200Response.ts
  12. +22
    -0
      matsen-tool/src/app/core/api/v1/model/apiPartnerProductsGetCollection200Response1.ts
  13. +23
    -0
      matsen-tool/src/app/core/api/v1/model/contactPartnerProduct.ts
  14. +25
    -0
      matsen-tool/src/app/core/api/v1/model/contactPartnerProductJsonhal.ts
  15. +27
    -0
      matsen-tool/src/app/core/api/v1/model/contactPartnerProductJsonld.ts
  16. +10
    -0
      matsen-tool/src/app/core/api/v1/model/models.ts
  17. +1
    -0
      matsen-tool/src/app/core/api/v1/model/partner.ts
  18. +1
    -0
      matsen-tool/src/app/core/api/v1/model/partnerJsonhal.ts
  19. +1
    -0
      matsen-tool/src/app/core/api/v1/model/partnerJsonld.ts
  20. +24
    -0
      matsen-tool/src/app/core/api/v1/model/partnerProduct.ts
  21. +26
    -0
      matsen-tool/src/app/core/api/v1/model/partnerProductJsonhal.ts
  22. +28
    -0
      matsen-tool/src/app/core/api/v1/model/partnerProductJsonld.ts
  23. +8
    -0
      matsen-tool/src/app/core/api/v1/model/task.ts
  24. +8
    -0
      matsen-tool/src/app/core/api/v1/model/taskJsonhal.ts
  25. +8
    -0
      matsen-tool/src/app/core/api/v1/model/taskJsonld.ts
  26. +3
    -8
      matsen-tool/src/app/home/home.component.html
  27. +2
    -7
      matsen-tool/src/app/partners/partners-detail/partners-detail.component.html
  28. +4
    -1
      matsen-tool/src/app/partners/partners-detail/partners-detail.component.ts
  29. +2
    -6
      matsen-tool/src/app/tasks/tasks.component.html
  30. +42
    -42
      matsen-tool/src/assets/scss/_basics.scss

+ 65
- 0
matsen-tool/1deployMatsenFE.sh Просмотреть файл

@@ -0,0 +1,65 @@
#!/bin/bash

export PATH=/opt/plesk/php/8.2/bin:$PATH;

cd /var/www/vhosts/spawntree.de/git_repo_clones/matsen-tool-fe/
sudo git pull

echo "$(tput setab 2)matsen frontend has been PULLED$(tput sgr 0)"

rm -rf /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/composer.lock
#cp -rf /var/www/vhosts/spawntree.de/git_repo_clones/matsen-tool-fe/httpdocs/composer.lock /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs
rm -rf /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/composer.json
cp -rf /var/www/vhosts/spawntree.de/git_repo_clones/matsen-tool-fe/composer.json /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs

rm -rf /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/config
cp -rf /var/www/vhosts/spawntree.de/git_repo_clones/matsen-tool-fe/config /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs

rm -rf /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/bin
cp -rf /var/www/vhosts/spawntree.de/git_repo_clones/matsen-tool-fe/bin /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs

rm -rf /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/migrations
cp -rf /var/www/vhosts/spawntree.de/git_repo_clones/matsen-tool-fe/migrations /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs

rm -rf /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/src
cp -rf /var/www/vhosts/spawntree.de/git_repo_clones/matsen-tool-fe/src /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs

rm -rf /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/public/index.php
cp -rf /var/www/vhosts/spawntree.de/git_repo_clones/matsen-tool-fe/public/index.php /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/public

echo "$(tput setab 2)Files have been copied$(tput sgr 0)"

cd /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs
composer update --no-scripts

echo "$(tput setab 2)COMPOSER UPDATED updated$(tput sgr 0)"

php /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/bin/console doctrine:migrations:migrate

echo "$(tput setab 2)DATABASE SCHEMA updated$(tput sgr 0)"

cd /var/www/vhosts/spawntree.de/
sudo chmod 777 matsen.spawntree.de
cd /var/www/vhosts/spawntree.de/matsen.spawntree.de/
sudo chmod 777 -R *

cd /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/var/cache/
rm -R *

php /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/bin/console cache:clear
php /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/bin/console cache:warmup

echo "$(tput setab 2)CACHE HAS BEEN CLEARED$(tput sgr 0)"

cd /var/www/vhosts/spawntree.de/matsen.spawntree.de/httpdocs/var/
chmod 777 -R *
chmod 777 cache/ *
chmod 777 cache/

#service apache2 restart

#echo "$(tput setab 2)CACHE cleared$(tput sgr 0)"

echo "$(tput setab 7)$(tput setaf 1)THINK ABOUT POSSIBLE PATCHES!"

echo "You have updated matsen api!$(tput sgr 0)"

+ 1
- 1
matsen-tool/openapi.json
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 896
- 124
matsen-tool/openapi.yaml
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 56
- 3
matsen-tool/src/app/_forms/apiForms.ts Просмотреть файл

@@ -74,6 +74,28 @@ export const contactJsonldForm = new FormGroup({
createdAt: new FormControl(null, [])
});

export const contactPartnerProductForm = new FormGroup({
contact: new FormControl(null, [Validators.required]),
partnerProduct: new FormControl(null, [Validators.required]),
productName: new FormControl(null, []),
createdAt: new FormControl(null, [])
});

export const contactPartnerProductJsonhalForm = new FormGroup({
_links: new FormControl(null, []),
contact: new FormControl(null, [Validators.required]),
partnerProduct: new FormControl(null, [Validators.required]),
productName: new FormControl(null, []),
createdAt: new FormControl(null, [])
});

export const contactPartnerProductJsonldForm = new FormGroup({
contact: new FormControl(null, [Validators.required]),
partnerProduct: new FormControl(null, [Validators.required]),
productName: new FormControl(null, []),
createdAt: new FormControl(null, [])
});

export const documentForm = new FormGroup({
name: new FormControl(null, [Validators.required]),
description: new FormControl(null, []),
@@ -159,7 +181,8 @@ export const partnerForm = new FormGroup({
createdByName: new FormControl(null, []),
createdAt: new FormControl(null, []),
posts: new FormControl(null, []),
contacts: new FormControl(null, [])
contacts: new FormControl(null, []),
partnerProducts: new FormControl(null, [])
});

export const partnerJsonhalForm = new FormGroup({
@@ -179,7 +202,8 @@ export const partnerJsonhalForm = new FormGroup({
createdByName: new FormControl(null, []),
createdAt: new FormControl(null, []),
posts: new FormControl(null, []),
contacts: new FormControl(null, [])
contacts: new FormControl(null, []),
partnerProducts: new FormControl(null, [])
});

export const partnerJsonldForm = new FormGroup({
@@ -198,7 +222,8 @@ export const partnerJsonldForm = new FormGroup({
createdByName: new FormControl(null, []),
createdAt: new FormControl(null, []),
posts: new FormControl(null, []),
contacts: new FormControl(null, [])
contacts: new FormControl(null, []),
partnerProducts: new FormControl(null, [])
});

export const partnerFollowForm = new FormGroup({
@@ -226,6 +251,31 @@ export const partnerFollowJsonldForm = new FormGroup({
createdAt: new FormControl(null, [])
});

export const partnerProductForm = new FormGroup({
partner: new FormControl(null, [Validators.required]),
partnerName: new FormControl(null, []),
product: new FormControl(null, [Validators.required]),
productName: new FormControl(null, []),
createdAt: new FormControl(null, [])
});

export const partnerProductJsonhalForm = new FormGroup({
_links: new FormControl(null, []),
partner: new FormControl(null, [Validators.required]),
partnerName: new FormControl(null, []),
product: new FormControl(null, [Validators.required]),
productName: new FormControl(null, []),
createdAt: new FormControl(null, [])
});

export const partnerProductJsonldForm = new FormGroup({
partner: new FormControl(null, [Validators.required]),
partnerName: new FormControl(null, []),
product: new FormControl(null, [Validators.required]),
productName: new FormControl(null, []),
createdAt: new FormControl(null, [])
});

export const postForm = new FormGroup({
headline: new FormControl(null, [Validators.required]),
message: new FormControl(null, [Validators.required]),
@@ -417,6 +467,7 @@ export const taskForm = new FormGroup({
dueAt: new FormControl(null, [Validators.required]),
partner: new FormControl(null, []),
partnerName: new FormControl(null, []),
partnerType: new FormControl(null, []),
contact: new FormControl(null, []),
contactName: new FormControl(null, []),
prio: new FormControl(null, [Validators.required]),
@@ -436,6 +487,7 @@ export const taskJsonhalForm = new FormGroup({
dueAt: new FormControl(null, [Validators.required]),
partner: new FormControl(null, []),
partnerName: new FormControl(null, []),
partnerType: new FormControl(null, []),
contact: new FormControl(null, []),
contactName: new FormControl(null, []),
prio: new FormControl(null, [Validators.required]),
@@ -454,6 +506,7 @@ export const taskJsonldForm = new FormGroup({
dueAt: new FormControl(null, [Validators.required]),
partner: new FormControl(null, []),
partnerName: new FormControl(null, []),
partnerType: new FormControl(null, []),
contact: new FormControl(null, []),
contactName: new FormControl(null, []),
prio: new FormControl(null, [Validators.required]),


+ 12
- 0
matsen-tool/src/app/core/api/v1/.openapi-generator/FILES Просмотреть файл

@@ -4,12 +4,14 @@ api.module.ts
api/api.ts
api/comment.service.ts
api/contact.service.ts
api/contactPartnerProduct.service.ts
api/document.service.ts
api/documentObject.service.ts
api/loginCheck.service.ts
api/mediaObject.service.ts
api/partner.service.ts
api/partnerFollow.service.ts
api/partnerProduct.service.ts
api/post.service.ts
api/product.service.ts
api/sale.service.ts
@@ -28,6 +30,8 @@ model/apiCommentsGetCollection200Response1LinksSelf.ts
model/apiCommentsGetCollection200ResponseHydraSearch.ts
model/apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner.ts
model/apiCommentsGetCollection200ResponseHydraView.ts
model/apiContactPartnerProductsGetCollection200Response.ts
model/apiContactPartnerProductsGetCollection200Response1.ts
model/apiContactsGetCollection200Response.ts
model/apiContactsGetCollection200Response1.ts
model/apiDocumentObjectsGetCollection200Response.ts
@@ -38,6 +42,8 @@ model/apiMediaObjectsGetCollection200Response.ts
model/apiMediaObjectsGetCollection200Response1.ts
model/apiPartnerFollowsGetCollection200Response.ts
model/apiPartnerFollowsGetCollection200Response1.ts
model/apiPartnerProductsGetCollection200Response.ts
model/apiPartnerProductsGetCollection200Response1.ts
model/apiPartnersGetCollection200Response.ts
model/apiPartnersGetCollection200Response1.ts
model/apiPostsGetCollection200Response.ts
@@ -63,6 +69,9 @@ model/commentJsonldContextOneOf.ts
model/contact.ts
model/contactJsonhal.ts
model/contactJsonld.ts
model/contactPartnerProduct.ts
model/contactPartnerProductJsonhal.ts
model/contactPartnerProductJsonld.ts
model/document.ts
model/documentJsonhal.ts
model/documentJsonld.ts
@@ -81,6 +90,9 @@ model/partnerFollowJsonhal.ts
model/partnerFollowJsonld.ts
model/partnerJsonhal.ts
model/partnerJsonld.ts
model/partnerProduct.ts
model/partnerProductJsonhal.ts
model/partnerProductJsonld.ts
model/post.ts
model/postJsonhal.ts
model/postJsonhalPostingCreate.ts


+ 5
- 1
matsen-tool/src/app/core/api/v1/api/api.ts Просмотреть файл

@@ -2,6 +2,8 @@ export * from './comment.service';
import { CommentService } from './comment.service';
export * from './contact.service';
import { ContactService } from './contact.service';
export * from './contactPartnerProduct.service';
import { ContactPartnerProductService } from './contactPartnerProduct.service';
export * from './document.service';
import { DocumentService } from './document.service';
export * from './documentObject.service';
@@ -14,6 +16,8 @@ export * from './partner.service';
import { PartnerService } from './partner.service';
export * from './partnerFollow.service';
import { PartnerFollowService } from './partnerFollow.service';
export * from './partnerProduct.service';
import { PartnerProductService } from './partnerProduct.service';
export * from './post.service';
import { PostService } from './post.service';
export * from './product.service';
@@ -28,4 +32,4 @@ export * from './taskNote.service';
import { TaskNoteService } from './taskNote.service';
export * from './user.service';
import { UserService } from './user.service';
export const APIS = [CommentService, ContactService, DocumentService, DocumentObjectService, LoginCheckService, MediaObjectService, PartnerService, PartnerFollowService, PostService, ProductService, SaleService, SaleSummaryService, TaskService, TaskNoteService, UserService];
export const APIS = [CommentService, ContactService, ContactPartnerProductService, DocumentService, DocumentObjectService, LoginCheckService, MediaObjectService, PartnerService, PartnerFollowService, PartnerProductService, PostService, ProductService, SaleService, SaleSummaryService, TaskService, TaskNoteService, UserService];

+ 432
- 0
matsen-tool/src/app/core/api/v1/api/contactPartnerProduct.service.ts Просмотреть файл

@@ -0,0 +1,432 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* 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 { ApiContactPartnerProductsGetCollection200Response } from '../model/apiContactPartnerProductsGetCollection200Response';
// @ts-ignore
import { ApiContactPartnerProductsGetCollection200Response1 } from '../model/apiContactPartnerProductsGetCollection200Response1';
// @ts-ignore
import { ContactPartnerProduct } from '../model/contactPartnerProduct';
// @ts-ignore
import { ContactPartnerProductJsonhal } from '../model/contactPartnerProductJsonhal';
// @ts-ignore
import { ContactPartnerProductJsonld } from '../model/contactPartnerProductJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class ContactPartnerProductService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of ContactPartnerProduct resources.
* Retrieves the collection of ContactPartnerProduct resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param contact
* @param contact2
* @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 contactPartnerProductsGetCollection(page?: number, itemsPerPage?: number, contact?: string, contact2?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiContactPartnerProductsGetCollection200Response>;
public contactPartnerProductsGetCollection(page?: number, itemsPerPage?: number, contact?: string, contact2?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiContactPartnerProductsGetCollection200Response>>;
public contactPartnerProductsGetCollection(page?: number, itemsPerPage?: number, contact?: string, contact2?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiContactPartnerProductsGetCollection200Response>>;
public contactPartnerProductsGetCollection(page?: number, itemsPerPage?: number, contact?: string, contact2?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (contact !== undefined && contact !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>contact, 'contact');
}
if (contact2) {
contact2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'contact[]');
})
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json',
'application/json',
'text/html',
'application/hal+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = 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/contact_partner_products`;
return this.httpClient.request<ApiContactPartnerProductsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Removes the ContactPartnerProduct resource.
* Removes the ContactPartnerProduct resource.
* @param id ContactPartnerProductApi identifier
* @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 contactPartnerProductsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
public contactPartnerProductsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
public contactPartnerProductsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
public contactPartnerProductsIdDelete(id: string, 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 contactPartnerProductsIdDelete.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = 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/contact_partner_products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a ContactPartnerProduct resource.
* Retrieves a ContactPartnerProduct resource.
* @param id ContactPartnerProductApi identifier
* @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 contactPartnerProductsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ContactPartnerProductJsonld>;
public contactPartnerProductsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ContactPartnerProductJsonld>>;
public contactPartnerProductsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ContactPartnerProductJsonld>>;
public contactPartnerProductsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling contactPartnerProductsIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json',
'application/json',
'text/html',
'application/hal+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = 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/contact_partner_products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<ContactPartnerProductJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Creates a ContactPartnerProduct resource.
* Creates a ContactPartnerProduct resource.
* @param contactPartnerProductJsonld The new ContactPartnerProduct resource
* @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 contactPartnerProductsPost(contactPartnerProductJsonld: ContactPartnerProductJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ContactPartnerProductJsonld>;
public contactPartnerProductsPost(contactPartnerProductJsonld: ContactPartnerProductJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ContactPartnerProductJsonld>>;
public contactPartnerProductsPost(contactPartnerProductJsonld: ContactPartnerProductJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ContactPartnerProductJsonld>>;
public contactPartnerProductsPost(contactPartnerProductJsonld: ContactPartnerProductJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (contactPartnerProductJsonld === null || contactPartnerProductJsonld === undefined) {
throw new Error('Required parameter contactPartnerProductJsonld was null or undefined when calling contactPartnerProductsPost.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json',
'application/json',
'text/html',
'application/hal+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/ld+json',
'application/json',
'text/html',
'application/hal+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/contact_partner_products`;
return this.httpClient.request<ContactPartnerProductJsonld>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: contactPartnerProductJsonld,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 444
- 0
matsen-tool/src/app/core/api/v1/api/partnerProduct.service.ts Просмотреть файл

@@ -0,0 +1,444 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* 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 { ApiPartnerProductsGetCollection200Response } from '../model/apiPartnerProductsGetCollection200Response';
// @ts-ignore
import { ApiPartnerProductsGetCollection200Response1 } from '../model/apiPartnerProductsGetCollection200Response1';
// @ts-ignore
import { PartnerProduct } from '../model/partnerProduct';
// @ts-ignore
import { PartnerProductJsonhal } from '../model/partnerProductJsonhal';
// @ts-ignore
import { PartnerProductJsonld } from '../model/partnerProductJsonld';

// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';



@Injectable({
providedIn: 'root'
})
export class PartnerProductService {

protected basePath = 'http://localhost';
public defaultHeaders = new HttpHeaders();
public configuration = new Configuration();
public encoder: HttpParameterCodec;

constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
if (Array.isArray(basePath) && basePath.length > 0) {
basePath = basePath[0];
}

if (typeof basePath !== 'string') {
basePath = this.basePath;
}
this.configuration.basePath = basePath;
}
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
}


// @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
} else {
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
}
return httpParams;
}

private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
if (value == null) {
return httpParams;
}

if (typeof value === "object") {
if (Array.isArray(value)) {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
} else {
Object.keys(value).forEach( k => httpParams = this.addToHttpParamsRecursive(
httpParams, value[k], key != null ? `${key}.${k}` : k));
}
} else if (key != null) {
httpParams = httpParams.append(key, value);
} else {
throw Error("key may not be null if value is not object or array");
}
return httpParams;
}

/**
* Retrieves the collection of PartnerProduct resources.
* Retrieves the collection of PartnerProduct resources.
* @param page The collection page number
* @param itemsPerPage The number of items per page
* @param partner
* @param partner2
* @param product
* @param product2
* @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 partnerProductsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiPartnerProductsGetCollection200Response>;
public partnerProductsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiPartnerProductsGetCollection200Response>>;
public partnerProductsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiPartnerProductsGetCollection200Response>>;
public partnerProductsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, product?: string, product2?: Array<string>, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {

let localVarQueryParameters = new HttpParams({encoder: this.encoder});
if (page !== undefined && page !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>page, 'page');
}
if (itemsPerPage !== undefined && itemsPerPage !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>itemsPerPage, 'itemsPerPage');
}
if (partner !== undefined && partner !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>partner, 'partner');
}
if (partner2) {
partner2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'partner[]');
})
}
if (product !== undefined && product !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>product, 'product');
}
if (product2) {
product2.forEach((element) => {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>element, 'product[]');
})
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json',
'application/json',
'text/html',
'application/hal+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = 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/partner_products`;
return this.httpClient.request<ApiPartnerProductsGetCollection200Response>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Removes the PartnerProduct resource.
* Removes the PartnerProduct resource.
* @param id PartnerProductApi identifier
* @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 partnerProductsIdDelete(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<any>;
public partnerProductsIdDelete(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<any>>;
public partnerProductsIdDelete(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: undefined, context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<any>>;
public partnerProductsIdDelete(id: string, 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 partnerProductsIdDelete.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = 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/partner_products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Retrieves a PartnerProduct resource.
* Retrieves a PartnerProduct resource.
* @param id PartnerProductApi identifier
* @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 partnerProductsIdGet(id: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<PartnerProductJsonld>;
public partnerProductsIdGet(id: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PartnerProductJsonld>>;
public partnerProductsIdGet(id: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PartnerProductJsonld>>;
public partnerProductsIdGet(id: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling partnerProductsIdGet.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json',
'application/json',
'text/html',
'application/hal+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = 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/partner_products/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
return this.httpClient.request<PartnerProductJsonld>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

/**
* Creates a PartnerProduct resource.
* Creates a PartnerProduct resource.
* @param partnerProductJsonld The new PartnerProduct resource
* @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 partnerProductsPost(partnerProductJsonld: PartnerProductJsonld, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<PartnerProductJsonld>;
public partnerProductsPost(partnerProductJsonld: PartnerProductJsonld, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<PartnerProductJsonld>>;
public partnerProductsPost(partnerProductJsonld: PartnerProductJsonld, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<PartnerProductJsonld>>;
public partnerProductsPost(partnerProductJsonld: PartnerProductJsonld, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<any> {
if (partnerProductJsonld === null || partnerProductJsonld === undefined) {
throw new Error('Required parameter partnerProductJsonld was null or undefined when calling partnerProductsPost.');
}

let localVarHeaders = this.defaultHeaders;

let localVarCredential: string | undefined;
// authentication (JWT) required
localVarCredential = this.configuration.lookupCredential('JWT');
if (localVarCredential) {
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
}

let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
if (localVarHttpHeaderAcceptSelected === undefined) {
// to determine the Accept header
const httpHeaderAccepts: string[] = [
'application/ld+json',
'application/json',
'text/html',
'application/hal+json'
];
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
}
if (localVarHttpHeaderAcceptSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
}

let localVarHttpContext: HttpContext | undefined = options && options.context;
if (localVarHttpContext === undefined) {
localVarHttpContext = new HttpContext();
}

let localVarTransferCache: boolean | undefined = options && options.transferCache;
if (localVarTransferCache === undefined) {
localVarTransferCache = true;
}


// to determine the Content-Type header
const consumes: string[] = [
'application/ld+json',
'application/json',
'text/html',
'application/hal+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/partner_products`;
return this.httpClient.request<PartnerProductJsonld>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
body: partnerProductJsonld,
responseType: <any>responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
observe: observe,
transferCache: localVarTransferCache,
reportProgress: reportProgress
}
);
}

}

+ 23
- 0
matsen-tool/src/app/core/api/v1/model/apiContactPartnerProductsGetCollection200Response.ts Просмотреть файл

@@ -0,0 +1,23 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ContactPartnerProductJsonld } from './contactPartnerProductJsonld';
import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch';
import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView';


export interface ApiContactPartnerProductsGetCollection200Response {
'hydra:member': Array<ContactPartnerProductJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView;
'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch;
}


+ 22
- 0
matsen-tool/src/app/core/api/v1/model/apiContactPartnerProductsGetCollection200Response1.ts Просмотреть файл

@@ -0,0 +1,22 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ContactPartnerProductJsonhal } from './contactPartnerProductJsonhal';
import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links';


export interface ApiContactPartnerProductsGetCollection200Response1 {
_embedded: Array<ContactPartnerProductJsonhal>;
totalItems?: number;
itemsPerPage?: number;
_links: ApiCommentsGetCollection200Response1Links;
}


+ 23
- 0
matsen-tool/src/app/core/api/v1/model/apiPartnerProductsGetCollection200Response.ts Просмотреть файл

@@ -0,0 +1,23 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { PartnerProductJsonld } from './partnerProductJsonld';
import { ApiCommentsGetCollection200ResponseHydraSearch } from './apiCommentsGetCollection200ResponseHydraSearch';
import { ApiCommentsGetCollection200ResponseHydraView } from './apiCommentsGetCollection200ResponseHydraView';


export interface ApiPartnerProductsGetCollection200Response {
'hydra:member': Array<PartnerProductJsonld>;
'hydra:totalItems'?: number;
'hydra:view'?: ApiCommentsGetCollection200ResponseHydraView;
'hydra:search'?: ApiCommentsGetCollection200ResponseHydraSearch;
}


+ 22
- 0
matsen-tool/src/app/core/api/v1/model/apiPartnerProductsGetCollection200Response1.ts Просмотреть файл

@@ -0,0 +1,22 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { PartnerProductJsonhal } from './partnerProductJsonhal';
import { ApiCommentsGetCollection200Response1Links } from './apiCommentsGetCollection200Response1Links';


export interface ApiPartnerProductsGetCollection200Response1 {
_embedded: Array<PartnerProductJsonhal>;
totalItems?: number;
itemsPerPage?: number;
_links: ApiCommentsGetCollection200Response1Links;
}


+ 23
- 0
matsen-tool/src/app/core/api/v1/model/contactPartnerProduct.ts Просмотреть файл

@@ -0,0 +1,23 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* 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 ContactPartnerProduct {
contact: string | null;
partnerProduct: string | null;
readonly productName?: string | null;
readonly createdAt?: string | null;
}


+ 25
- 0
matsen-tool/src/app/core/api/v1/model/contactPartnerProductJsonhal.ts Просмотреть файл

@@ -0,0 +1,25 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CommentJsonhalLinks } from './commentJsonhalLinks';


/**
*
*/
export interface ContactPartnerProductJsonhal {
_links?: CommentJsonhalLinks;
contact: string | null;
partnerProduct: string | null;
readonly productName?: string | null;
readonly createdAt?: string | null;
}


+ 27
- 0
matsen-tool/src/app/core/api/v1/model/contactPartnerProductJsonld.ts Просмотреть файл

@@ -0,0 +1,27 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CommentJsonldContext } from './commentJsonldContext';


/**
*
*/
export interface ContactPartnerProductJsonld {
context?: CommentJsonldContext;
readonly id?: string;
readonly type?: string;
contact: string | null;
partnerProduct: string | null;
readonly productName?: string | null;
readonly createdAt?: string | null;
}


+ 10
- 0
matsen-tool/src/app/core/api/v1/model/models.ts Просмотреть файл

@@ -5,6 +5,8 @@ export * from './apiCommentsGetCollection200Response1LinksSelf';
export * from './apiCommentsGetCollection200ResponseHydraSearch';
export * from './apiCommentsGetCollection200ResponseHydraSearchHydraMappingInner';
export * from './apiCommentsGetCollection200ResponseHydraView';
export * from './apiContactPartnerProductsGetCollection200Response';
export * from './apiContactPartnerProductsGetCollection200Response1';
export * from './apiContactsGetCollection200Response';
export * from './apiContactsGetCollection200Response1';
export * from './apiDocumentObjectsGetCollection200Response';
@@ -15,6 +17,8 @@ export * from './apiMediaObjectsGetCollection200Response';
export * from './apiMediaObjectsGetCollection200Response1';
export * from './apiPartnerFollowsGetCollection200Response';
export * from './apiPartnerFollowsGetCollection200Response1';
export * from './apiPartnerProductsGetCollection200Response';
export * from './apiPartnerProductsGetCollection200Response1';
export * from './apiPartnersGetCollection200Response';
export * from './apiPartnersGetCollection200Response1';
export * from './apiPostsGetCollection200Response';
@@ -40,6 +44,9 @@ export * from './commentJsonldContextOneOf';
export * from './contact';
export * from './contactJsonhal';
export * from './contactJsonld';
export * from './contactPartnerProduct';
export * from './contactPartnerProductJsonhal';
export * from './contactPartnerProductJsonld';
export * from './document';
export * from './documentJsonhal';
export * from './documentJsonld';
@@ -57,6 +64,9 @@ export * from './partnerFollowJsonhal';
export * from './partnerFollowJsonld';
export * from './partnerJsonhal';
export * from './partnerJsonld';
export * from './partnerProduct';
export * from './partnerProductJsonhal';
export * from './partnerProductJsonld';
export * from './post';
export * from './postJsonhal';
export * from './postJsonhalPostingCreate';


+ 1
- 0
matsen-tool/src/app/core/api/v1/model/partner.ts Просмотреть файл

@@ -34,6 +34,7 @@ export interface Partner {
*/
posts?: Array<string>;
contacts?: Array<string>;
partnerProducts?: Array<string>;
}
export namespace Partner {
export type PartnerTypeEnum = 'customer' | 'supplier' | 'service';


+ 1
- 0
matsen-tool/src/app/core/api/v1/model/partnerJsonhal.ts Просмотреть файл

@@ -36,6 +36,7 @@ export interface PartnerJsonhal {
*/
posts?: Array<string>;
contacts?: Array<string>;
partnerProducts?: Array<string>;
}
export namespace PartnerJsonhal {
export type PartnerTypeEnum = 'customer' | 'supplier' | 'service';


+ 1
- 0
matsen-tool/src/app/core/api/v1/model/partnerJsonld.ts Просмотреть файл

@@ -38,6 +38,7 @@ export interface PartnerJsonld {
*/
posts?: Array<string>;
contacts?: Array<string>;
partnerProducts?: Array<string>;
}
export namespace PartnerJsonld {
export type PartnerTypeEnum = 'customer' | 'supplier' | 'service';


+ 24
- 0
matsen-tool/src/app/core/api/v1/model/partnerProduct.ts Просмотреть файл

@@ -0,0 +1,24 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* 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 PartnerProduct {
partner: string | null;
readonly partnerName?: string | null;
product: string | null;
readonly productName?: string | null;
readonly createdAt?: string | null;
}


+ 26
- 0
matsen-tool/src/app/core/api/v1/model/partnerProductJsonhal.ts Просмотреть файл

@@ -0,0 +1,26 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CommentJsonhalLinks } from './commentJsonhalLinks';


/**
*
*/
export interface PartnerProductJsonhal {
_links?: CommentJsonhalLinks;
partner: string | null;
readonly partnerName?: string | null;
product: string | null;
readonly productName?: string | null;
readonly createdAt?: string | null;
}


+ 28
- 0
matsen-tool/src/app/core/api/v1/model/partnerProductJsonld.ts Просмотреть файл

@@ -0,0 +1,28 @@
/**
* Matsen API Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { CommentJsonldContext } from './commentJsonldContext';


/**
*
*/
export interface PartnerProductJsonld {
context?: CommentJsonldContext;
readonly id?: string;
readonly type?: string;
partner: string | null;
readonly partnerName?: string | null;
product: string | null;
readonly productName?: string | null;
readonly createdAt?: string | null;
}


+ 8
- 0
matsen-tool/src/app/core/api/v1/model/task.ts Просмотреть файл

@@ -25,6 +25,7 @@ export interface Task {
dueAt: string | null;
partner?: string | null;
readonly partnerName?: string | null;
readonly partnerType?: Task.PartnerTypeEnum | null;
contact?: string | null;
readonly contactName?: string | null;
prio: Task.PrioEnum;
@@ -36,6 +37,13 @@ export interface Task {
readonly createdAt?: string | null;
}
export namespace Task {
export type PartnerTypeEnum = 'customer' | 'supplier' | 'service' | 'null';
export const PartnerTypeEnum = {
Customer: 'customer' as PartnerTypeEnum,
Supplier: 'supplier' as PartnerTypeEnum,
Service: 'service' as PartnerTypeEnum,
Null: 'null' as PartnerTypeEnum
};
export type PrioEnum = 'low' | 'medium' | 'high';
export const PrioEnum = {
Low: 'low' as PrioEnum,


+ 8
- 0
matsen-tool/src/app/core/api/v1/model/taskJsonhal.ts Просмотреть файл

@@ -27,6 +27,7 @@ export interface TaskJsonhal {
dueAt: string | null;
partner?: string | null;
readonly partnerName?: string | null;
readonly partnerType?: TaskJsonhal.PartnerTypeEnum | null;
contact?: string | null;
readonly contactName?: string | null;
prio: TaskJsonhal.PrioEnum;
@@ -38,6 +39,13 @@ export interface TaskJsonhal {
readonly createdAt?: string | null;
}
export namespace TaskJsonhal {
export type PartnerTypeEnum = 'customer' | 'supplier' | 'service' | 'null';
export const PartnerTypeEnum = {
Customer: 'customer' as PartnerTypeEnum,
Supplier: 'supplier' as PartnerTypeEnum,
Service: 'service' as PartnerTypeEnum,
Null: 'null' as PartnerTypeEnum
};
export type PrioEnum = 'low' | 'medium' | 'high';
export const PrioEnum = {
Low: 'low' as PrioEnum,


+ 8
- 0
matsen-tool/src/app/core/api/v1/model/taskJsonld.ts Просмотреть файл

@@ -29,6 +29,7 @@ export interface TaskJsonld {
dueAt: string | null;
partner?: string | null;
readonly partnerName?: string | null;
readonly partnerType?: TaskJsonld.PartnerTypeEnum | null;
contact?: string | null;
readonly contactName?: string | null;
prio: TaskJsonld.PrioEnum;
@@ -40,6 +41,13 @@ export interface TaskJsonld {
readonly createdAt?: string | null;
}
export namespace TaskJsonld {
export type PartnerTypeEnum = 'customer' | 'supplier' | 'service' | 'null';
export const PartnerTypeEnum = {
Customer: 'customer' as PartnerTypeEnum,
Supplier: 'supplier' as PartnerTypeEnum,
Service: 'service' as PartnerTypeEnum,
Null: 'null' as PartnerTypeEnum
};
export type PrioEnum = 'low' | 'medium' | 'high';
export const PrioEnum = {
Low: 'low' as PrioEnum,


+ 3
- 8
matsen-tool/src/app/home/home.component.html Просмотреть файл

@@ -2,7 +2,7 @@
<div class="pt-4">
<div class="container">
<h1>{{ 'user.hello' | translate }} {{ user?.firstName }}!</h1>
<p *ngIf="userIsAdmin"><a routerLink="/users">Manage Users</a></p>
<!-- <p *ngIf="userIsAdmin"><a routerLink="/users">Manage Users</a></p>-->
</div>
</div>

@@ -68,18 +68,13 @@
</button>
<div class="tasks mb-3" *ngFor="let task of tasks">
<div class="card p-3">
<div class="spt-toggle position-relative collapsed" data-bs-toggle="collapse"
[attr.data-bs-target]="'#collapse-' + ApiConverter.extractId(task.id)"
aria-expanded="false"
aria-controls="collapseExample">
<h3 class="m-0">{{ task.partnerName }}</h3>
<div class="position-relative">
<h3 class="m-0"><a *ngIf="task.partner" href="/{{task.partnerType}}/{{ApiConverter.extractId(task.partner)}}">{{task.partnerName}}</a></h3>
<span class="info d-flex position-absolute">
<span class="due-date">{{ task.dueAt | date:'dd.MM.YYYY':'GMT+0000' }}</span>
<span class="importance" [attr.data-importance]="task.prio"></span>
</span>
<h2 class="m-0">{{ task.headline }}</h2>
</div>
<div class="collapse" id="collapse-{{ApiConverter.extractId(task.id)}}">
<div class="pt-3 pe-5 position-relative">
<p class="m-0" [innerHTML]="apiConverter.getSafeLongtext(task.description)"></p>
<p>Zugewiesen an: {{ task.assignedToName }}</p>


+ 2
- 7
matsen-tool/src/app/partners/partners-detail/partners-detail.component.html Просмотреть файл

@@ -93,18 +93,13 @@
<button class="btn btn-primary toggle-btn" (click)="openModalNewTask()">{{ 'basic.new-task' | translate }}</button>
<div class="tasks mb-3" *ngFor="let task of tasks">
<div class="card p-3">
<div class="position-relative collapsed" data-bs-toggle="collapse"
[attr.data-bs-target]="'#collapse-' + ApiConverter.extractId(task.id)"
aria-expanded="false"
aria-controls="collapseExample">
<h3 class="m-0">{{ task.partnerName }}</h3>
<div class="position-relative">
<h3 class="m-0"><a *ngIf="task.partner" href="/{{task.partnerType}}/{{ApiConverter.extractId(task.partner)}}">{{task.partnerName}}</a></h3>
<span class="info d-flex position-absolute">
<span class="due-date">{{ task.dueAt | date:'dd.MM.YYYY':'GMT+0000' }}</span>
<span class="importance" [attr.data-importance]="task.prio"></span>
</span>
<h2 class="m-0">{{ task.headline }}</h2>
</div>
<div class="collapse" id="collapse-{{ApiConverter.extractId(task.id)}}">
<div class="pt-3 pe-5 position-relative">
<p class="m-0" [innerHTML]="apiConverter.getSafeLongtext(task.description)"></p>
<p>Zugewiesen an: {{ task.assignedToName }}</p>


+ 4
- 1
matsen-tool/src/app/partners/partners-detail/partners-detail.component.ts Просмотреть файл

@@ -212,6 +212,7 @@ export class PartnersDetailComponent implements OnInit, AfterViewInit {
).subscribe(
data => {
this.tasks = data["hydra:member"];
console.log(this.tasks);
this.tasksLength = Number(data["hydra:totalItems"]);
this.tasks.forEach(task => {
if (task.id) {
@@ -410,7 +411,9 @@ export class PartnersDetailComponent implements OnInit, AfterViewInit {
if (this.partnerFollow === null) {
this.partnerFollowSub = this.partnerFollowService.partnerFollowsPost(
{
partner: this.partner.id
partner: this.partner.id,
contact: null,
partnerProduct: null
} as PartnerFollowJsonld
).subscribe(
data => {


+ 2
- 6
matsen-tool/src/app/tasks/tasks.component.html Просмотреть файл

@@ -6,17 +6,13 @@
</div>
<div class="tasks mb-3" *ngFor="let task of tasks">
<div class="card p-3">
<div class="position-relative collapsed" data-bs-toggle="collapse" [attr.data-bs-target]="'#collapse-' + ApiConverter.extractId(task.id)"
aria-expanded="false"
aria-controls="collapseExample">
<h3 class="m-0">{{task.partnerName}}</h3>
<div class="position-relative">
<h3 class="m-0"><a *ngIf="task.partner" href="/{{task.partnerType}}/{{ApiConverter.extractId(task.partner)}}">{{task.partnerName}}</a></h3>
<span class="info d-flex position-absolute">
<span class="due-date">{{ task.dueAt | date:'dd.MM.YYYY':'GMT+0000' }}</span>
<span class="importance" [attr.data-importance]="task.prio"></span>
</span>
<h2 class="m-0">{{task.headline}}</h2>
</div>
<div class="collapse" id="collapse-{{ApiConverter.extractId(task.id)}}">
<div class="pt-3 pe-5 position-relative">
<p class="m-0" [innerHTML]="apiConverter.getSafeLongtext(task.description)"></p>
<p>Zugewiesen an: {{task.assignedToName}}</p>


+ 42
- 42
matsen-tool/src/assets/scss/_basics.scss Просмотреть файл

@@ -119,46 +119,46 @@ img {
top: -3.38rem;
}

.spt-toggle {
position: relative;
padding-left: 30px;
&:before,
&:after {
content: "";
position: absolute;
top: 42px;
width: 15px;
height: 2px;
background: #000;
@include transition();
}
&:before {
transform: rotate(45deg);
left: 0;
}
&:after {
transform: rotate(-45deg);
left: 10px;
}
&.collapsed {
&:before {
transform: rotate(-45deg);
}
&:after {
transform: rotate(45deg);
}
}
}
.tasks {
.collapse {
div {
padding-left: 30px;
}
}
}
//.spt-toggle {
// position: relative;
// padding-left: 30px;
// &:before,
// &:after {
// content: "";
// position: absolute;
// top: 42px;
// width: 15px;
// height: 2px;
// background: #000;
// @include transition();
// }
//
// &:before {
// transform: rotate(45deg);
// left: 0;
// }
//
// &:after {
// transform: rotate(-45deg);
// left: 10px;
// }
//
// &.collapsed {
// &:before {
// transform: rotate(-45deg);
// }
//
// &:after {
// transform: rotate(45deg);
// }
// }
//}
//
//.tasks {
// .collapse {
// div {
// padding-left: 30px;
// }
// }
//}


Загрузка…
Отмена
Сохранить