wt-front-shared 1.0.56 → 1.0.57

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.
@@ -1,4 +1,4 @@
1
- import { ResponseModel } from '../../../models/models/request.model';
1
+ import { RequestModel } from '../../../models/models/request.model';
2
2
  /**
3
3
  *
4
4
  */
@@ -19,7 +19,7 @@ export declare const DeleteRequestWaiter: import("@ngrx/store").ActionCreator<"[
19
19
  payload: CreateRequestListenerPayload;
20
20
  } & import("@ngrx/store/src/models").TypedAction<"[Requests] Delete Request Waiter">>;
21
21
  export declare const UpdateRequestData: import("@ngrx/store").ActionCreator<"[Requests] Update Request data", (props: {
22
- payload: ResponseModel;
22
+ payload: RequestModel;
23
23
  }) => {
24
- payload: ResponseModel;
24
+ payload: RequestModel;
25
25
  } & import("@ngrx/store/src/models").TypedAction<"[Requests] Update Request data">>;
@@ -1,31 +1,32 @@
1
1
  import { RequestModel } from "../../../models/models/request.model";
2
2
  import { NotificationShowingType } from "../../+state/notifications/notifications.actions";
3
+ interface UpsertOneItem {
4
+ id: any;
5
+ type?: string;
6
+ value?: string;
7
+ itemId?: any;
8
+ loaded?: boolean;
9
+ isValid?: boolean | null | undefined;
10
+ endPointUrl?: any;
11
+ secondEndPointUrl?: any;
12
+ status?: RequestModel;
13
+ error?: any;
14
+ formId?: string;
15
+ hasError?: boolean | undefined;
16
+ loading?: boolean;
17
+ isComplete?: boolean | undefined;
18
+ code?: string | undefined;
19
+ data?: any;
20
+ text?: string;
21
+ title?: string | undefined;
22
+ showingType?: NotificationShowingType | undefined;
23
+ field?: string;
24
+ message?: string;
25
+ params?: number | undefined;
26
+ }
3
27
  export declare class ReducerService {
4
28
  static clearAll(initState: any): void;
5
- static upsertOne<T>(state: T, item: {
6
- id: any;
7
- type?: string;
8
- value?: string;
9
- itemId?: any;
10
- loaded?: boolean;
11
- isValid?: boolean | null | undefined;
12
- endPointUrl?: any;
13
- secondEndPointUrl?: any;
14
- status?: RequestModel;
15
- error?: any;
16
- formId?: string;
17
- hasError?: boolean | undefined;
18
- loading?: boolean;
19
- isComplete?: boolean | undefined;
20
- code?: string | undefined;
21
- data?: any;
22
- text?: string;
23
- title?: string | undefined;
24
- showingType?: NotificationShowingType | undefined;
25
- field?: string;
26
- message?: string;
27
- params?: number | undefined;
28
- }, id?: string | number): {
29
+ static upsertOne<T>(state: T, item: UpsertOneItem, id?: string | number): {
29
30
  list: any[];
30
31
  ids: any[];
31
32
  };
@@ -37,3 +38,4 @@ export declare class ReducerService {
37
38
  list: any[];
38
39
  };
39
40
  }
41
+ export {};
@@ -15,7 +15,5 @@ export interface RequestModel {
15
15
  itemId: number;
16
16
  status: null | RequestStatus.LOADING | RequestStatus.LOADED | string;
17
17
  error?: any;
18
- }
19
- export interface ResponseModel extends RequestModel {
20
18
  data: any;
21
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-front-shared",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.1.0",
6
6
  "@angular/core": "^15.1.0"