UNPKG

@nestjs-mod/webhook-afat

Version:

Webhook UI components and tools for AFAT (Angular, Formly, Antd, Transloco) and rest-sdk for work with backend of this module from Angular appliaction

57 lines (56 loc) 2.8 kB
import { OnChanges, OnInit, ViewContainerRef } from '@angular/core'; import { FormControl } from '@angular/forms'; import { NzModalService } from 'ng-zorro-antd/modal'; import { NzTableQueryParams } from 'ng-zorro-antd/table'; import { BehaviorSubject, Observable } from 'rxjs'; import { TranslocoService } from '@jsverse/transloco'; import { NgChanges } from '@nestjs-mod/afat'; import { RequestMeta } from '@nestjs-mod/misc'; import { WebhookLogInterface } from '../../generated/rest-sdk'; import { WebhookLogService } from '../../services/webhook-log.service'; import * as i0 from "@angular/core"; export declare class WebhookLogGridComponent implements OnInit, OnChanges { private readonly webhookLogService; private readonly nzModalService; private readonly viewContainerRef; private readonly translocoService; webhookId: string | undefined; forceLoadStream?: Observable<unknown>[]; items$: BehaviorSubject<WebhookLogInterface[]>; meta$: BehaviorSubject<RequestMeta | undefined>; searchField: FormControl<string | null>; selectedIds$: BehaviorSubject<string[]>; keys: ("response" | "id" | "request" | "responseStatus" | "webhookStatus")[]; columns: { id: "webhook-log.grid.columns.id"; request: "webhook-log.grid.columns.request"; response: "webhook-log.grid.columns.response"; responseStatus: "webhook-log.grid.columns.response-status"; webhookStatus: "webhook-log.grid.columns.webhook-status"; }; WebhookLogScalarFieldEnumInterface: { readonly id: "id"; readonly request: "request"; readonly responseStatus: "responseStatus"; readonly response: "response"; readonly webhookStatus: "webhookStatus"; readonly webhookId: "webhookId"; readonly externalTenantId: "externalTenantId"; readonly createdAt: "createdAt"; readonly updatedAt: "updatedAt"; }; private filters?; constructor(webhookLogService: WebhookLogService, nzModalService: NzModalService, viewContainerRef: ViewContainerRef, translocoService: TranslocoService); ngOnChanges(changes: NgChanges<WebhookLogGridComponent>): void; ngOnInit(): void; loadMany(args?: { filters?: Record<string, string>; meta?: RequestMeta; queryParams?: NzTableQueryParams; force?: boolean; }): void; showCreateOrUpdateModal(id?: string): void; showDeleteModal(id?: string): void; static ɵfac: i0.ɵɵFactoryDeclaration<WebhookLogGridComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<WebhookLogGridComponent, "webhook-log-grid", never, { "webhookId": { "alias": "webhookId"; "required": true; }; "forceLoadStream": { "alias": "forceLoadStream"; "required": false; }; }, {}, never, never, true, never>; }