ソースを参照

new api import and filter posts

master
Daniel 1年前
コミット
29f0ab6b82
14個のファイルの変更107行の追加158行の削除
  1. +1
    -1
      matsen-tool/openapi.json
  2. +55
    -121
      matsen-tool/openapi.yaml
  3. +3
    -3
      matsen-tool/src/app/core/api/v1/api/comment.service.ts
  4. +3
    -3
      matsen-tool/src/app/core/api/v1/api/contact.service.ts
  5. +3
    -3
      matsen-tool/src/app/core/api/v1/api/document.service.ts
  6. +3
    -3
      matsen-tool/src/app/core/api/v1/api/partner.service.ts
  7. +2
    -2
      matsen-tool/src/app/core/api/v1/api/partnerFollow.service.ts
  8. +17
    -7
      matsen-tool/src/app/core/api/v1/api/post.service.ts
  9. +3
    -3
      matsen-tool/src/app/core/api/v1/api/product.service.ts
  10. +3
    -3
      matsen-tool/src/app/core/api/v1/api/sale.service.ts
  11. +3
    -3
      matsen-tool/src/app/core/api/v1/api/task.service.ts
  12. +3
    -3
      matsen-tool/src/app/core/api/v1/api/taskNote.service.ts
  13. +2
    -2
      matsen-tool/src/app/core/api/v1/api/user.service.ts
  14. +6
    -1
      matsen-tool/src/app/partners/partners-detail/partners-detail.component.ts

+ 1
- 1
matsen-tool/openapi.json
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 55
- 121
matsen-tool/openapi.yaml
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 3
- 3
matsen-tool/src/app/core/api/v1/api/comment.service.ts ファイルの表示

@@ -186,7 +186,7 @@ export class CommentService {
/**
* Removes the Comment resource.
* Removes the Comment resource.
* @param id CommentApi identifier
* @param id Comment 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.
*/
@@ -257,7 +257,7 @@ export class CommentService {
/**
* Retrieves a Comment resource.
* Retrieves a Comment resource.
* @param id CommentApi identifier
* @param id Comment 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.
*/
@@ -332,7 +332,7 @@ export class CommentService {
/**
* Updates the Comment resource.
* Updates the Comment resource.
* @param id CommentApi identifier
* @param id Comment identifier
* @param comment The updated Comment 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.


+ 3
- 3
matsen-tool/src/app/core/api/v1/api/contact.service.ts ファイルの表示

@@ -198,7 +198,7 @@ export class ContactService {
/**
* Removes the Contact resource.
* Removes the Contact resource.
* @param id ContactApi identifier
* @param id Contact 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.
*/
@@ -269,7 +269,7 @@ export class ContactService {
/**
* Retrieves a Contact resource.
* Retrieves a Contact resource.
* @param id ContactApi identifier
* @param id Contact 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.
*/
@@ -344,7 +344,7 @@ export class ContactService {
/**
* Updates the Contact resource.
* Updates the Contact resource.
* @param id ContactApi identifier
* @param id Contact identifier
* @param contact The updated Contact 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.


+ 3
- 3
matsen-tool/src/app/core/api/v1/api/document.service.ts ファイルの表示

@@ -210,7 +210,7 @@ export class DocumentService {
/**
* Removes the Document resource.
* Removes the Document resource.
* @param id DocumentApi identifier
* @param id Document 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.
*/
@@ -281,7 +281,7 @@ export class DocumentService {
/**
* Retrieves a Document resource.
* Retrieves a Document resource.
* @param id DocumentApi identifier
* @param id Document 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.
*/
@@ -356,7 +356,7 @@ export class DocumentService {
/**
* Updates the Document resource.
* Updates the Document resource.
* @param id DocumentApi identifier
* @param id Document identifier
* @param document The updated Document 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.


+ 3
- 3
matsen-tool/src/app/core/api/v1/api/partner.service.ts ファイルの表示

@@ -218,7 +218,7 @@ export class PartnerService {
/**
* Removes the Partner resource.
* Removes the Partner resource.
* @param id PartnerApi identifier
* @param id Partner 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.
*/
@@ -289,7 +289,7 @@ export class PartnerService {
/**
* Retrieves a Partner resource.
* Retrieves a Partner resource.
* @param id PartnerApi identifier
* @param id Partner 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.
*/
@@ -364,7 +364,7 @@ export class PartnerService {
/**
* Updates the Partner resource.
* Updates the Partner resource.
* @param id PartnerApi identifier
* @param id Partner identifier
* @param partner The updated Partner 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.


+ 2
- 2
matsen-tool/src/app/core/api/v1/api/partnerFollow.service.ts ファイルの表示

@@ -210,7 +210,7 @@ export class PartnerFollowService {
/**
* Removes the PartnerFollow resource.
* Removes the PartnerFollow resource.
* @param id PartnerFollowApi identifier
* @param id PartnerFollow 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.
*/
@@ -281,7 +281,7 @@ export class PartnerFollowService {
/**
* Retrieves a PartnerFollow resource.
* Retrieves a PartnerFollow resource.
* @param id PartnerFollowApi identifier
* @param id PartnerFollow 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.
*/


+ 17
- 7
matsen-tool/src/app/core/api/v1/api/post.service.ts ファイルの表示

@@ -116,13 +116,15 @@ export class PostService {
* @param partner2
* @param contact
* @param contact2
* @param existsContact
* @param existsSale
* @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 postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, 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<ApiPostsGetCollection200Response>;
public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, 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<ApiPostsGetCollection200Response>>;
public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, 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<ApiPostsGetCollection200Response>>;
public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, 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> {
public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<ApiPostsGetCollection200Response>;
public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpResponse<ApiPostsGetCollection200Response>>;
public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, existsContact?: boolean, existsSale?: boolean, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/ld+json' | 'application/json' | 'text/html' | 'application/hal+json', context?: HttpContext, transferCache?: boolean}): Observable<HttpEvent<ApiPostsGetCollection200Response>>;
public postsGetCollection(page?: number, itemsPerPage?: number, partner?: string, partner2?: Array<string>, contact?: string, contact2?: Array<string>, existsContact?: boolean, existsSale?: boolean, 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) {
@@ -153,6 +155,14 @@ export class PostService {
<any>element, 'contact[]');
})
}
if (existsContact !== undefined && existsContact !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>existsContact, 'exists[contact]');
}
if (existsSale !== undefined && existsSale !== null) {
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters,
<any>existsSale, 'exists[sale]');
}

let localVarHeaders = this.defaultHeaders;

@@ -218,7 +228,7 @@ export class PostService {
/**
* Removes the Post resource.
* Removes the Post resource.
* @param id PostingApi identifier
* @param id Post 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.
*/
@@ -289,7 +299,7 @@ export class PostService {
/**
* Retrieves a Post resource.
* Retrieves a Post resource.
* @param id PostingApi identifier
* @param id Post 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.
*/
@@ -364,7 +374,7 @@ export class PostService {
/**
* Updates the Post resource.
* Updates the Post resource.
* @param id PostingApi identifier
* @param id Post identifier
* @param postPostingPatch The updated Post 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.


+ 3
- 3
matsen-tool/src/app/core/api/v1/api/product.service.ts ファイルの表示

@@ -196,7 +196,7 @@ export class ProductService {
/**
* Removes the Product resource.
* Removes the Product resource.
* @param id ProductApi identifier
* @param id Product 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.
*/
@@ -267,7 +267,7 @@ export class ProductService {
/**
* Retrieves a Product resource.
* Retrieves a Product resource.
* @param id ProductApi identifier
* @param id Product 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.
*/
@@ -342,7 +342,7 @@ export class ProductService {
/**
* Updates the Product resource.
* Updates the Product resource.
* @param id ProductApi identifier
* @param id Product identifier
* @param product The updated Product 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.


+ 3
- 3
matsen-tool/src/app/core/api/v1/api/sale.service.ts ファイルの表示

@@ -210,7 +210,7 @@ export class SaleService {
/**
* Removes the Sale resource.
* Removes the Sale resource.
* @param id SaleApi identifier
* @param id Sale 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.
*/
@@ -281,7 +281,7 @@ export class SaleService {
/**
* Retrieves a Sale resource.
* Retrieves a Sale resource.
* @param id SaleApi identifier
* @param id Sale 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.
*/
@@ -356,7 +356,7 @@ export class SaleService {
/**
* Updates the Sale resource.
* Updates the Sale resource.
* @param id SaleApi identifier
* @param id Sale identifier
* @param sale The updated Sale 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.


+ 3
- 3
matsen-tool/src/app/core/api/v1/api/task.service.ts ファイルの表示

@@ -222,7 +222,7 @@ export class TaskService {
/**
* Removes the Task resource.
* Removes the Task resource.
* @param id TaskApi identifier
* @param id Task 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.
*/
@@ -293,7 +293,7 @@ export class TaskService {
/**
* Retrieves a Task resource.
* Retrieves a Task resource.
* @param id TaskApi identifier
* @param id Task 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.
*/
@@ -368,7 +368,7 @@ export class TaskService {
/**
* Updates the Task resource.
* Updates the Task resource.
* @param id TaskApi identifier
* @param id Task identifier
* @param task The updated Task 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.


+ 3
- 3
matsen-tool/src/app/core/api/v1/api/taskNote.service.ts ファイルの表示

@@ -198,7 +198,7 @@ export class TaskNoteService {
/**
* Removes the TaskNote resource.
* Removes the TaskNote resource.
* @param id TaskNoteApi identifier
* @param id TaskNote 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.
*/
@@ -269,7 +269,7 @@ export class TaskNoteService {
/**
* Retrieves a TaskNote resource.
* Retrieves a TaskNote resource.
* @param id TaskNoteApi identifier
* @param id TaskNote 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.
*/
@@ -344,7 +344,7 @@ export class TaskNoteService {
/**
* Updates the TaskNote resource.
* Updates the TaskNote resource.
* @param id TaskNoteApi identifier
* @param id TaskNote identifier
* @param taskNote The updated TaskNote 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.


+ 2
- 2
matsen-tool/src/app/core/api/v1/api/user.service.ts ファイルの表示

@@ -196,7 +196,7 @@ export class UserService {
/**
* Retrieves a User resource.
* Retrieves a User resource.
* @param id UserApi identifier
* @param id User 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.
*/
@@ -271,7 +271,7 @@ export class UserService {
/**
* Updates the User resource.
* Updates the User resource.
* @param id UserApi identifier
* @param id User identifier
* @param user The updated User 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.


+ 6
- 1
matsen-tool/src/app/partners/partners-detail/partners-detail.component.ts ファイルの表示

@@ -175,7 +175,12 @@ export class PartnersDetailComponent implements OnInit, AfterViewInit {
this.postsSub = this.postService.postsGetCollection(
this.postsPageIndex + 1,
this.postsPageSize,
this.id
this.id,
undefined,
undefined,
undefined,
undefined,
false
).subscribe(
data => {
this.posts = data["hydra:member"];


読み込み中…
キャンセル
保存