@wertzui/ngx-restworld-client 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,8 @@ export declare class RESTworldClient {
14
14
  private setDefaultCurie;
15
15
  getList(rel: string, parameters: {}, headers?: HttpHeaders, curie?: string): Promise<HttpResponse<PagedListResource | ProblemDetails>>;
16
16
  getListByUri(uri: string, parameters: {}, headers?: HttpHeaders): Promise<HttpResponse<PagedListResource | ProblemDetails>>;
17
+ getAllPagesFromList(rel: string, parameters: {}, headers?: HttpHeaders, curie?: string): Promise<HttpResponse<PagedListResource | ProblemDetails>>;
18
+ getAllPagesFromListByUri(uri: string, parameters: {}, headers?: HttpHeaders): Promise<HttpResponse<PagedListResource | ProblemDetails>>;
17
19
  getSingle(relOrUri: string, id?: number, headers?: HttpHeaders, curie?: string): Promise<HttpResponse<Resource | ProblemDetails>>;
18
20
  save(resource: Resource): Promise<HttpResponse<Resource | ProblemDetails>>;
19
21
  getAllForms(resource: Resource): Promise<HttpResponse<FormsResource | ProblemDetails>[]>;
@@ -7,9 +7,11 @@ export declare class SettingsService {
7
7
  private readonly _client;
8
8
  private _settings;
9
9
  get settings(): ClientSettings | undefined;
10
+ private initializing;
11
+ private initialized;
10
12
  constructor(backend: HttpBackend, _clients: RESTworldClientCollection);
11
- initialize(): Promise<void>;
12
- private ensureSettingsAreLoaded;
13
+ ensureInitialized(): Promise<void>;
14
+ private loadSettings;
13
15
  private populateRESTworldClientCollectionFromSettings;
14
16
  static ɵfac: i0.ɵɵFactoryDeclaration<SettingsService, never>;
15
17
  static ɵprov: i0.ɵɵInjectableDeclaration<SettingsService>;
@@ -1,4 +1,3 @@
1
- import { AfterViewInit, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
1
  import { PagedListResource, Resource } from '@wertzui/ngx-hal-client';
3
2
  import * as _ from 'lodash';
4
3
  import { ConfirmationService, LazyLoadEvent, MenuItem, MessageService } from 'primeng/api';
@@ -19,7 +18,7 @@ export interface Column {
19
18
  field: string;
20
19
  type: ColumnType;
21
20
  }
22
- export declare class RESTworldListViewComponent implements AfterViewInit, OnInit, OnChanges {
21
+ export declare class RESTworldListViewComponent {
23
22
  private _clients;
24
23
  private _confirmationService;
25
24
  private _messageService;
@@ -56,9 +55,6 @@ export declare class RESTworldListViewComponent implements AfterViewInit, OnInit
56
55
  private static _dateFormat;
57
56
  get dateFormat(): string;
58
57
  constructor(_clients: RESTworldClientCollection, _confirmationService: ConfirmationService, _messageService: MessageService, avatarGenerator: AvatarGenerator, _router: Router);
59
- ngOnChanges(changes: SimpleChanges): void;
60
- ngOnInit(): void;
61
- ngAfterViewInit(): Promise<void>;
62
58
  createNew(): Promise<boolean>;
63
59
  private getClient;
64
60
  load: _.DebouncedFunc<(event: LazyLoadEvent) => Promise<void>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wertzui/ngx-restworld-client",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "author": "wertzui",
5
5
  "description": "An Angular client to consume a RESTworld service that serves application/hal+json or hal-forms+json.",
6
6
  "publishConfig": {