mp-front-cli 0.0.6 → 0.0.7
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.
- package/dist/core/services/ServiceToken.d.ts +1 -1
- package/dist/core/services/ServiceToken.d.ts.map +1 -1
- package/dist/core/services/ServiceToken.js +1 -1
- package/package.json +1 -1
- package/dist/core/utils/interfaces/ApiResponse.d.ts +0 -40
- package/dist/core/utils/interfaces/ApiResponse.d.ts.map +0 -1
- package/dist/core/utils/interfaces/ApiResponse.js +0 -1
- package/dist/core/utils/interfaces/messageError.d.ts +0 -14
- package/dist/core/utils/interfaces/messageError.d.ts.map +0 -1
- package/dist/core/utils/interfaces/messageError.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceToken.d.ts","sourceRoot":"","sources":["../../../src/core/services/ServiceToken.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServiceToken.d.ts","sourceRoot":"","sources":["../../../src/core/services/ServiceToken.ts"],"names":[],"mappings":"AAGA,OAAO,YAAY,MAAM,uBAAuB,CAAA;AAEhD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,CAAC,iBAAiB,CAAQ;IACjC,OAAO,CAAC,2BAA2B,CAAQ;IAC3C,OAAO,CAAC,2BAA2B,CAAQ;IAC3C,OAAO,CAAC,kBAAkB,CAAQ;IAClC,OAAO,CAAC,mBAAmB,CAAQ;IACnC,OAAO,CAAC,sBAAsB,CAAQ;IACtC,OAAO,CAAC,OAAO,CAAa;;IAqB5B,GAAG;CAsBJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CustomLogger } from "@mp-front/core";
|
|
2
1
|
import { catchError, of, switchMap } from "rxjs";
|
|
3
2
|
import { fromFetch } from "rxjs/fetch";
|
|
3
|
+
import CustomLogger from "../utils/CustomLogger";
|
|
4
4
|
export class ServiceToken extends CustomLogger {
|
|
5
5
|
API_AUTH_BACK_URL;
|
|
6
6
|
API_AUTH_BACK_USERNAME_AUTH;
|
package/package.json
CHANGED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
export interface ApiResponse<T> {
|
|
2
|
-
data: Data<T>[];
|
|
3
|
-
links?: Links;
|
|
4
|
-
errors?: ApiError[];
|
|
5
|
-
}
|
|
6
|
-
export interface Data<T> {
|
|
7
|
-
type: string;
|
|
8
|
-
id: string;
|
|
9
|
-
attributes: T;
|
|
10
|
-
relationships: Relationships;
|
|
11
|
-
links: Pick<Links, "self">;
|
|
12
|
-
}
|
|
13
|
-
export interface Relationships {
|
|
14
|
-
user: User;
|
|
15
|
-
}
|
|
16
|
-
export interface User {
|
|
17
|
-
data: UserData;
|
|
18
|
-
}
|
|
19
|
-
export interface UserData {
|
|
20
|
-
[key: string]: string | number | boolean | null;
|
|
21
|
-
}
|
|
22
|
-
export interface ApiError {
|
|
23
|
-
code: string;
|
|
24
|
-
status: string;
|
|
25
|
-
source: Source;
|
|
26
|
-
title: string;
|
|
27
|
-
detail: string;
|
|
28
|
-
suggestedActions: string;
|
|
29
|
-
}
|
|
30
|
-
export interface Source {
|
|
31
|
-
pointer: string;
|
|
32
|
-
}
|
|
33
|
-
export interface Links {
|
|
34
|
-
self: string;
|
|
35
|
-
first: string;
|
|
36
|
-
prev: string;
|
|
37
|
-
next: string;
|
|
38
|
-
last: string;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=ApiResponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiResponse.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/interfaces/ApiResponse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAA;IACf,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAA;CACpB;AAED,MAAM,WAAW,IAAI,CAAC,CAAC;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,EAAE,CAAC,CAAA;IACb,aAAa,EAAE,aAAa,CAAA;IAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,IAAI,CAAA;CACX;AAED,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,QAAQ,CAAA;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CAChD;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,MAAM;IACrB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type MessageType = "modal" | "message";
|
|
2
|
-
type MessageLevel = "error" | "success" | "warning" | "info";
|
|
3
|
-
export interface IMessageErrorBFF {
|
|
4
|
-
code?: number;
|
|
5
|
-
message: string;
|
|
6
|
-
type: MessageType;
|
|
7
|
-
level: MessageLevel;
|
|
8
|
-
title: string;
|
|
9
|
-
payload?: {};
|
|
10
|
-
clearCookieSession?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export type messageManagerFn = (type: MessageType, level: MessageLevel, message: string, title: string, onOk?: () => void) => void;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=messageError.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messageError.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/interfaces/messageError.ts"],"names":[],"mappings":"AAAA,KAAK,WAAW,GAAG,OAAO,GAAG,SAAS,CAAA;AACtC,KAAK,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAA;AAE5D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,EAAE,YAAY,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,EAAE,CAAA;IACZ,kBAAkB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,MAAM,MAAM,gBAAgB,GAAG,CAC7B,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,IAAI,KACd,IAAI,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|