mp-front-cli 2.1.1-next-4 → 2.1.1-next-5

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.
@@ -0,0 +1,3 @@
1
+ import { DictionaryErrorCatalog } from '../interfaces';
2
+ export declare const commonErrors: DictionaryErrorCatalog;
3
+ //# sourceMappingURL=common-errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-errors.d.ts","sourceRoot":"","sources":["../../../src/core/errors/common-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AAGzD,eAAO,MAAM,YAAY,EAAE,sBAu1B1B,CAAA"}
@@ -1,5 +1,10 @@
1
1
  import { ApiError, DictionaryErrorCatalog, LanguageResources } from '../interfaces/api-response';
2
2
  import { CustomLogger } from '../utils/custom-logger';
3
+ /**
4
+ * @deprecated
5
+ *
6
+ * Replaced with {@link Exception} Singleton class. Instead of `ErrorCatalog`, use `Exception`
7
+ */
3
8
  export declare class ErrorCatalog extends CustomLogger {
4
9
  private errorCatalog;
5
10
  private i18Next;
@@ -1 +1 @@
1
- {"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../../../src/core/errors/error-catalog.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AA61BrD,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,CAAC,YAAY,CAAsD;IAC1E,OAAO,CAAC,OAAO,CAAM;IAErB,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;IAkC5B,SAAS,CAAC,YAAY,EAAE,sBAAsB;IAI9C,gBAAgB,CAAC,SAAS,EAAE,iBAAiB;IAI7C,OAAO,CAAC,SAAS;CAMlB"}
1
+ {"version":3,"file":"error-catalog.d.ts","sourceRoot":"","sources":["../../../src/core/errors/error-catalog.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAIrD;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,YAAY;IAC5C,OAAO,CAAC,YAAY,CAA8C;IAClE,OAAO,CAAC,OAAO,CAAM;IAErB,GAAG,CACD,KAAK,GAAE,MAAM,GAAG,KAAK,GAAG,QAAoB,EAC5C,IAAI,GAAE,MAAoB;;;;;;;;;;;IAkC5B,SAAS,CAAC,YAAY,EAAE,sBAAsB;IAI9C,gBAAgB,CAAC,SAAS,EAAE,iBAAiB;IAI7C,OAAO,CAAC,SAAS;CAMlB"}
@@ -0,0 +1,12 @@
1
+ import { ApiError, DictionaryErrorCatalog as DictionaryExceptionCatalog, IMessage, LanguageResources } from '../interfaces';
2
+ export declare class Exception {
3
+ private static instance;
4
+ private static i18n;
5
+ private readonly customLogger;
6
+ private exceptions;
7
+ static getInstance(): Exception;
8
+ init(exceptions: DictionaryExceptionCatalog, resources: LanguageResources): void;
9
+ get(error: string | Error | ApiError, uuid?: string): IMessage;
10
+ private translate;
11
+ }
12
+ //# sourceMappingURL=exception.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exception.d.ts","sourceRoot":"","sources":["../../../src/core/errors/exception.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,sBAAsB,IAAI,0BAA0B,EACpD,QAAQ,EACR,iBAAiB,EAClB,MAAM,kBAAkB,CAAA;AAMzB,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAW;IAClC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAM;IACzB,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAElD,OAAO,CAAC,UAAU,CAAkD;IAEpE,MAAM,CAAC,WAAW;IAOlB,IAAI,CAAC,UAAU,EAAE,0BAA0B,EAAE,SAAS,EAAE,iBAAiB;IAKzE,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,EAAE,IAAI,SAAc,GAAG,QAAQ;IAqCnE,OAAO,CAAC,SAAS;CAGlB"}
@@ -1,2 +1,3 @@
1
1
  export { ErrorCatalog } from './error-catalog';
2
+ export { Exception } from './exception';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAuC,MAAM,MAAM,CAAA;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAE3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAExC,qBAAa,aAAa,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,CAAE,SAAQ,eAAe;IACtE,SAAS,CAAC,IAAI,EAAE,MAAM,CAAK;IAC3B,OAAO,CAAC,OAAO,CAAuB;IAE/B,UAAU,CAAC,OAAO,EAAE,OAAO;IAI3B,UAAU;IAKjB,SAAS,CAAC,UAAU,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MAAM,EAAE,KAAK,EACb,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAA;KAAE,KACpE,UAAU,CAAC,IAAI,CAAC,SAIR,cAAc,OAAO,eAAe;CA0CpD"}
@@ -2,11 +2,6 @@ import { Observable } from 'rxjs';
2
2
  import { ApiResponse, TypesDataResponse } from '../../interfaces/api-response';
3
3
  import { Method } from '../../interfaces/method';
4
4
  import { CustomHeader } from '../custom-header';
5
- /**
6
- * @deprecated
7
- *
8
- * Replaced with {@link FetchServiceParentBE}. Instead of `FetchServiceBE`, use `FetchServiceParentBE`
9
- */
10
5
  export declare class FetchServiceBE<TRes, TData = object, TypeDataResponse extends TypesDataResponse = "OBJECT", Relationships = object> extends CustomHeader {
11
6
  private readonly apiUrl;
12
7
  private readonly method;
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-service-be.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/api-request/fetch-service-be.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAA0B,MAAM,MAAM,CAAA;AAEpE,OAAO,KAAK,EACV,WAAW,EACX,iBAAiB,EAClB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAM/C;;;;GAIG;AACH,qBAAa,cAAc,CACzB,IAAI,EACJ,KAAK,GAAG,MAAM,EACd,gBAAgB,SAAS,iBAAiB,GAAG,QAAQ,EACrD,aAAa,GAAG,MAAM,CACtB,SAAQ,YAAY;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;gBAEnB,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAA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EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,OAAO,GACjB,UAAU,CAAC,IAAI,CAAC;CA8CpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-service-fe.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/api-request/fetch-service-fe.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,UAAU,EAAS,MAAM,MAAM,CAAA;AAGnE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAKhD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD,qBAAa,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,CAAE,SAAQ,aAAa;IACrE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;IACrC,OAAO,CAAC,gBAAgB,CAAgB;IACxC,OAAO,CAAC,aAAa,CAAS;IAE9B,mBAAmB,CAAC,gBAAgB,EAAE,OAAO;IAI7C,gBAAgB,CAAC,aAAa,EAAE,OAAO;gBAKrC,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAe,EACvB,OAAO,GAAE,WAAgB;IAW3B,SAAS,CAAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,IAAI,CAAC;CAmDzD"}
1
+ {"version":3,"file":"fetch-service-fe.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/api-request/fetch-service-fe.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,UAAU,EAAS,MAAM,MAAM,CAAA;AAGnE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAIhD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAGjD,qBAAa,cAAc,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM,CAAE,SAAQ,aAAa;IACrE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;IACrC,OAAO,CAAC,gBAAgB,CAAgB;IACxC,OAAO,CAAC,aAAa,CAAS;IAE9B,mBAAmB,CAAC,gBAAgB,EAAE,OAAO;IAI7C,gBAAgB,CAAC,aAAa,EAAE,OAAO;gBAKrC,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAe,EACvB,OAAO,GAAE,WAAgB;IAW3B,SAAS,CAAC,MAAM,GAAE,KAAmB,GAAG,UAAU,CAAC,IAAI,CAAC;CAmDzD"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./AuthEngine-D44aUgpO.cjs"),r=require("./loading-handler-CVkAHN_A.cjs"),n=require("./service-token-Bv3BAiQd.cjs");exports.ApiMiddleware=e.ApiMiddleware;exports.AuthEngine=e.AuthEngine;exports.ErrorCatalog=e.ErrorCatalog;exports.FetchServiceBE=e.FetchServiceBE;exports.FetchServiceFE=e.FetchServiceFE;exports.FetchServiceParentBE=e.FetchServiceParentBE;exports.LoadingHandler=r.LoadingHandler;exports.MessageHandler=r.MessageHandler;exports.RxSubjectManager=r.RxSubjectManager;exports.ServiceToken=n.ServiceToken;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./AuthEngine-D65_iNdB.cjs"),r=require("./loading-handler-CVkAHN_A.cjs"),n=require("./service-token-Bv3BAiQd.cjs");exports.ApiMiddleware=e.ApiMiddleware;exports.AuthEngine=e.AuthEngine;exports.ErrorCatalog=e.ErrorCatalog;exports.Exception=e.Exception;exports.FetchServiceBE=e.FetchServiceBE;exports.FetchServiceFE=e.FetchServiceFE;exports.FetchServiceParentBE=e.FetchServiceParentBE;exports.LoadingHandler=r.LoadingHandler;exports.MessageHandler=r.MessageHandler;exports.RxSubjectManager=r.RxSubjectManager;exports.ServiceToken=n.ServiceToken;
@@ -1,15 +1,16 @@
1
- import { A as r, c as s, E as o, F as t, a as c, b as i } from "./AuthEngine-I9-RWZt-.js";
2
- import { L as E, M as S, R as d } from "./loading-handler-Br21zGTA.js";
3
- import { S as F } from "./service-token-DUKgd-pZ.js";
1
+ import { A as r, d as s, E as o, a as t, F as c, b as i, c as n } from "./AuthEngine-Gl4gv5KD.js";
2
+ import { L as d, M as S, R as g } from "./loading-handler-Br21zGTA.js";
3
+ import { S as x } from "./service-token-DUKgd-pZ.js";
4
4
  export {
5
5
  r as ApiMiddleware,
6
6
  s as AuthEngine,
7
7
  o as ErrorCatalog,
8
- t as FetchServiceBE,
9
- c as FetchServiceFE,
10
- i as FetchServiceParentBE,
11
- E as LoadingHandler,
8
+ t as Exception,
9
+ c as FetchServiceBE,
10
+ i as FetchServiceFE,
11
+ n as FetchServiceParentBE,
12
+ d as LoadingHandler,
12
13
  S as MessageHandler,
13
- d as RxSubjectManager,
14
- F as ServiceToken
14
+ g as RxSubjectManager,
15
+ x as ServiceToken
15
16
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./AuthEngine-D44aUgpO.cjs"),r=require("./loading-handler-CVkAHN_A.cjs"),n=require("./service-token-Bv3BAiQd.cjs");exports.ApiMiddleware=e.ApiMiddleware;exports.AuthEngine=e.AuthEngine;exports.ErrorCatalog=e.ErrorCatalog;exports.FetchServiceBE=e.FetchServiceBE;exports.FetchServiceFE=e.FetchServiceFE;exports.FetchServiceParentBE=e.FetchServiceParentBE;exports.LoadingHandler=r.LoadingHandler;exports.MessageHandler=r.MessageHandler;exports.RxSubjectManager=r.RxSubjectManager;exports.ServiceToken=n.ServiceToken;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./AuthEngine-D65_iNdB.cjs"),r=require("./loading-handler-CVkAHN_A.cjs"),n=require("./service-token-Bv3BAiQd.cjs");exports.ApiMiddleware=e.ApiMiddleware;exports.AuthEngine=e.AuthEngine;exports.ErrorCatalog=e.ErrorCatalog;exports.Exception=e.Exception;exports.FetchServiceBE=e.FetchServiceBE;exports.FetchServiceFE=e.FetchServiceFE;exports.FetchServiceParentBE=e.FetchServiceParentBE;exports.LoadingHandler=r.LoadingHandler;exports.MessageHandler=r.MessageHandler;exports.RxSubjectManager=r.RxSubjectManager;exports.ServiceToken=n.ServiceToken;
@@ -1,15 +1,16 @@
1
- import { A as r, c as s, E as o, F as t, a as c, b as i } from "./AuthEngine-I9-RWZt-.js";
2
- import { L as E, M as S, R as d } from "./loading-handler-Br21zGTA.js";
3
- import { S as F } from "./service-token-DUKgd-pZ.js";
1
+ import { A as r, d as s, E as o, a as t, F as c, b as i, c as n } from "./AuthEngine-Gl4gv5KD.js";
2
+ import { L as d, M as S, R as g } from "./loading-handler-Br21zGTA.js";
3
+ import { S as x } from "./service-token-DUKgd-pZ.js";
4
4
  export {
5
5
  r as ApiMiddleware,
6
6
  s as AuthEngine,
7
7
  o as ErrorCatalog,
8
- t as FetchServiceBE,
9
- c as FetchServiceFE,
10
- i as FetchServiceParentBE,
11
- E as LoadingHandler,
8
+ t as Exception,
9
+ c as FetchServiceBE,
10
+ i as FetchServiceFE,
11
+ n as FetchServiceParentBE,
12
+ d as LoadingHandler,
12
13
  S as MessageHandler,
13
- d as RxSubjectManager,
14
- F as ServiceToken
14
+ g as RxSubjectManager,
15
+ x as ServiceToken
15
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-front-cli",
3
- "version": "2.1.1-next-4",
3
+ "version": "2.1.1-next-5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/mp-front-cli-all.cjs",