@axinom/mosaic-service-common 0.16.1 → 0.17.0-rc.1

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.
@@ -5,5 +5,6 @@ export * from './logger';
5
5
  export * from './mask-middleware';
6
6
  export * from './setup-global-console-override';
7
7
  export * from './skip-mask-middleware';
8
+ export * from './tenant-environment-ids-log-middleware';
8
9
  export * from './test-log-config';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/logging/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/logging/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,yCAAyC,CAAC;AACxD,cAAc,mBAAmB,CAAC"}
@@ -17,5 +17,6 @@ __exportStar(require("./logger"), exports);
17
17
  __exportStar(require("./mask-middleware"), exports);
18
18
  __exportStar(require("./setup-global-console-override"), exports);
19
19
  __exportStar(require("./skip-mask-middleware"), exports);
20
+ __exportStar(require("./tenant-environment-ids-log-middleware"), exports);
20
21
  __exportStar(require("./test-log-config"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/logging/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,gDAA8B;AAC9B,2CAAyB;AACzB,oDAAkC;AAClC,kEAAgD;AAChD,yDAAuC;AACvC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/logging/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,gDAA8B;AAC9B,2CAAyB;AACzB,oDAAkC;AAClC,kEAAgD;AAChD,yDAAuC;AACvC,0EAAwD;AACxD,oDAAkC"}
@@ -48,7 +48,7 @@ export interface LoggerOptions {
48
48
  */
49
49
  skipMaskMiddleware?: SkipMaskMiddleware;
50
50
  /**
51
- * Middleware functions that is are applied in the given order to change the log details object before writing the log.
51
+ * Middleware functions that are applied in the given order to change the log details object before writing the log.
52
52
  */
53
53
  logMiddleware?: LogMiddleware[];
54
54
  }
@@ -64,6 +64,14 @@ export declare const setupGlobalMaskMiddleware: (middleware?: MaskMiddleware | u
64
64
  * Recommended to call once on app startup.
65
65
  */
66
66
  export declare const setupGlobalSkipMaskMiddleware: (middleware?: SkipMaskMiddleware | undefined) => void;
67
+ /**
68
+ * Sets log middleware that are applied to all Loggers which are instantiated
69
+ * after this call. Middleware passed to specific Logger instances would be
70
+ * launched first and globally set middleware launched last.
71
+ * Possible to unset the middleware if it's called without passing any parameter
72
+ * Recommended to call once on app startup.
73
+ */
74
+ export declare const setupGlobalLogMiddleware: (middleware?: LogMiddleware[] | undefined) => void;
67
75
  /**
68
76
  * Default Mosaic logger class. Used to write logs to the console in JSON format (no line breaks).
69
77
  */
@@ -122,6 +130,10 @@ export declare class Logger {
122
130
  * Gets middleware to be used at the moment of log generation, since Logger instance can be created before global middleware setup
123
131
  */
124
132
  private getSkipMaskMiddleware;
133
+ /**
134
+ * Gets middleware to be used at the moment of log generation, since Logger instance can be created before global middleware setup
135
+ */
136
+ private getLogMiddleware;
125
137
  private format;
126
138
  private processArgsAndWriteLog;
127
139
  }
@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AAK,CAAC,EAAE,KAAK,CAAC;KACV,GACL,IAAI;IA2BP,OAAO,CAAC,OAAO;IAIf;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAIzB;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAQ7B;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,MAAM;IAwCd,OAAO,CAAC,sBAAsB;CAY/B"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Logger = exports.setupGlobalSkipMaskMiddleware = exports.setupGlobalMaskMiddleware = void 0;
3
+ exports.Logger = exports.setupGlobalLogMiddleware = exports.setupGlobalSkipMaskMiddleware = exports.setupGlobalMaskMiddleware = void 0;
4
4
  const util_1 = require("util");
5
5
  const config_1 = require("../config");
6
6
  const helpers_1 = require("../helpers");
@@ -28,6 +28,18 @@ const setupGlobalSkipMaskMiddleware = (middleware) => {
28
28
  globalSkipMaskMiddleware = middleware;
29
29
  };
30
30
  exports.setupGlobalSkipMaskMiddleware = setupGlobalSkipMaskMiddleware;
31
+ let globalLogMiddleware;
32
+ /**
33
+ * Sets log middleware that are applied to all Loggers which are instantiated
34
+ * after this call. Middleware passed to specific Logger instances would be
35
+ * launched first and globally set middleware launched last.
36
+ * Possible to unset the middleware if it's called without passing any parameter
37
+ * Recommended to call once on app startup.
38
+ */
39
+ const setupGlobalLogMiddleware = (middleware) => {
40
+ globalLogMiddleware = middleware;
41
+ };
42
+ exports.setupGlobalLogMiddleware = setupGlobalLogMiddleware;
31
43
  /**
32
44
  * Default Mosaic logger class. Used to write logs to the console in JSON format (no line breaks).
33
45
  */
@@ -120,6 +132,12 @@ class Logger {
120
132
  var _a, _b;
121
133
  return ((_b = (_a = this.skipMaskMiddleware) !== null && _a !== void 0 ? _a : globalSkipMaskMiddleware) !== null && _b !== void 0 ? _b : skip_mask_middleware_1.defaultSkipMaskMiddleware);
122
134
  }
135
+ /**
136
+ * Gets middleware to be used at the moment of log generation, since Logger instance can be created before global middleware setup
137
+ */
138
+ getLogMiddleware() {
139
+ return [...this.logMiddleware, ...(globalLogMiddleware !== null && globalLogMiddleware !== void 0 ? globalLogMiddleware : [])];
140
+ }
123
141
  format(level, message, error) {
124
142
  var _a;
125
143
  const log = (0, generate_log_1.generateLog)({
@@ -137,7 +155,7 @@ class Logger {
137
155
  maskMode: (_a = this.config.secureLoggingMode) !== null && _a !== void 0 ? _a : mask_middleware_1.MaskMode.SECRETS_HIDDEN,
138
156
  keywords: this.config.logMaskKeywords,
139
157
  },
140
- }, this.logMiddleware);
158
+ }, this.getLogMiddleware());
141
159
  if (log === undefined) {
142
160
  return undefined;
143
161
  }
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/common/logging/logger.ts"],"names":[],"mappings":";;;AAGA,+BAA+B;AAC/B,sCAA8E;AAC9E,wCAAmD;AAEnD,iDAA4D;AAC5D,2CAAuC;AAEvC,uDAI2B;AAC3B,iEAGgC;AAsDhC,IAAI,oBAAgD,CAAC;AAErD;;;;GAIG;AACI,MAAM,yBAAyB,GAAG,CACvC,UAA2B,EACrB,EAAE;IACR,oBAAoB,GAAG,UAAU,CAAC;AACpC,CAAC,CAAC;AAJW,QAAA,yBAAyB,6BAIpC;AAEF,IAAI,wBAAwD,CAAC;AAC7D;;;;GAIG;AACI,MAAM,6BAA6B,GAAG,CAC3C,UAA+B,EACzB,EAAE;IACR,wBAAwB,GAAG,UAAU,CAAC;AACxC,CAAC,CAAC;AAJW,QAAA,6BAA6B,iCAIxC;AAEF;;GAEG;AACH,MAAa,MAAM;IAQjB;;;OAGG;IACH,YAAY,OAAuB;;QACjC,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,SAAS,CAAC;QACnD,IAAI,CAAC,MAAM;YACT,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,IAAA,kBAAS,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EAAE,IAAI,CAAC,iBAAiB,EAAE;YACxC,kBAAkB,EAAE,IAAI,CAAC,qBAAqB,EAAE;YAChD,WAAW,EAAE;gBACX,QAAQ,EAAE,MAAA,IAAI,CAAC,MAAM,CAAC,iBAAiB,mCAAI,0BAAQ,CAAC,cAAc;gBAClE,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,eAAe;aACtC;SACF,EACD,IAAI,CAAC,gBAAgB,EAAE,CACxB,CAAC;QAEF,IAAI,GAAG,KAAK,SAAS,EAAE;YACrB,OAAO,SAAS,CAAC;SAClB;QAED,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;YACrB,OAAO,IAAA,cAAO,EAAC,IAAA,+BAAqB,EAAC,GAAG,CAAC,EAAE;gBACzC,KAAK,EAAE,IAAI;gBACX,MAAM,EAAE,IAAI;aACb,CAAC,CAAC;SACJ;QAED,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC;IAEO,sBAAsB,CAAC,KAAe,EAAE,IAAW;;QACzD,IAAI,KAAwB,CAAC;QAC7B,IAAI,OAA4B,CAAC;QAEjC,IAAI,IAAI,CAAC,CAAC,CAAC,YAAY,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE;YACvC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;YAChB,OAAO,GAAG,MAAA,IAAI,CAAC,CAAC,CAAC,mCAAI,EAAE,CAAC;SACzB;aAAM;YACL,OAAO,GAAG,MAAA,IAAI,CAAC,CAAC,CAAC,mCAAI,EAAE,CAAC;SACzB;QACD,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACtD,CAAC;CACF;AA3MD,wBA2MC"}
@@ -0,0 +1,13 @@
1
+ import { LogMiddleware } from './generate-log';
2
+ /**
3
+ * Basic config type for objects with tenantId and environmentId
4
+ */
5
+ export interface BasicCustomizableConfig {
6
+ tenantId: string;
7
+ environmentId: string;
8
+ }
9
+ /**
10
+ * Adds tenantId and environmentId config properties to details of a log.
11
+ */
12
+ export declare const tenantEnvironmentIdsLogMiddleware: (config: BasicCustomizableConfig) => LogMiddleware;
13
+ //# sourceMappingURL=tenant-environment-ids-log-middleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenant-environment-ids-log-middleware.d.ts","sourceRoot":"","sources":["../../../src/common/logging/tenant-environment-ids-log-middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,CAC9C,MAAM,EAAE,uBAAuB,KAC5B,aAKJ,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tenantEnvironmentIdsLogMiddleware = void 0;
4
+ /**
5
+ * Adds tenantId and environmentId config properties to details of a log.
6
+ */
7
+ const tenantEnvironmentIdsLogMiddleware = (config) => (log) => {
8
+ var _a;
9
+ log.details = (_a = log.details) !== null && _a !== void 0 ? _a : {};
10
+ log.details.tenantId = config.tenantId;
11
+ log.details.environmentId = config.environmentId;
12
+ return log;
13
+ };
14
+ exports.tenantEnvironmentIdsLogMiddleware = tenantEnvironmentIdsLogMiddleware;
15
+ //# sourceMappingURL=tenant-environment-ids-log-middleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenant-environment-ids-log-middleware.js","sourceRoot":"","sources":["../../../src/common/logging/tenant-environment-ids-log-middleware.ts"],"names":[],"mappings":";;;AAUA;;GAEG;AACI,MAAM,iCAAiC,GAEzB,CAAC,MAA+B,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,EAAE;;IAChE,GAAG,CAAC,OAAO,GAAG,MAAA,GAAG,CAAC,OAAO,mCAAI,EAAE,CAAC;IAChC,GAAG,CAAC,OAAO,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IACvC,GAAG,CAAC,OAAO,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IACjD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAPW,QAAA,iCAAiC,qCAO5C"}
package/dist/index.d.ts CHANGED
@@ -2,5 +2,6 @@ export * from './common';
2
2
  export * from './middleware';
3
3
  export * from './plugins';
4
4
  export * from './postgraphile';
5
+ export * from './publishing';
5
6
  export * from './seed-data';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
package/dist/index.js CHANGED
@@ -14,5 +14,6 @@ __exportStar(require("./common"), exports);
14
14
  __exportStar(require("./middleware"), exports);
15
15
  __exportStar(require("./plugins"), exports);
16
16
  __exportStar(require("./postgraphile"), exports);
17
+ __exportStar(require("./publishing"), exports);
17
18
  __exportStar(require("./seed-data"), exports);
18
19
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B;AAC7B,4CAA0B;AAC1B,iDAA+B;AAC/B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B;AAC7B,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,8CAA4B"}
@@ -0,0 +1,3 @@
1
+ export * from './models';
2
+ export * from './utils';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/publishing/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./models"), exports);
14
+ __exportStar(require("./utils"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/publishing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Default severity value that is set during the construction of publishing
3
+ * validation error objects if no explicit setter is used. Also used as part of
4
+ * a generic constraint for related types.
5
+ *
6
+ * @example Extended type to actually be used as a generic parameter can look
7
+ * like this:
8
+ * ```
9
+ * export type ExampleSeverityType =
10
+ | DefaultValidationSeverity
11
+ | 'WARNING'
12
+ | 'NOTICE';
13
+ * ```
14
+ */
15
+ export declare type DefaultValidationSeverity = 'ERROR';
16
+ /**
17
+ * Default context value that is set during the construction of publishing
18
+ * validation error objects if no explicit setter is used. Also used as part of
19
+ * a generic constraint for related types.
20
+ *
21
+ * @example Extended type to actually be used as a generic parameter can look
22
+ * like this:
23
+ * ```
24
+ * export type ExampleContextType = DefaultValidationContext | 'VIDEOS' | 'IMAGES';
25
+ * ```
26
+ */
27
+ export declare type DefaultValidationContext = 'METADATA';
28
+ /**
29
+ * Resulting validation error object after formatting is applied.
30
+ */
31
+ export interface DetailedValidationError<TSeverity extends string, TContext extends string> {
32
+ message: string;
33
+ severity: DefaultValidationSeverity | TSeverity;
34
+ context: DefaultValidationContext | TContext;
35
+ }
36
+ /**
37
+ * Minimal JSON schema validation error interface.
38
+ */
39
+ export interface JsonSchemaValidationError {
40
+ message?: string;
41
+ keyword: string;
42
+ dataPath: string;
43
+ params: Record<string, any>;
44
+ }
45
+ /**
46
+ * Options that allow customizing generation of resulting publish validation
47
+ * error objects.
48
+ */
49
+ export interface ValidationErrorTransformOptions<TSeverity extends string, TContext extends string> {
50
+ /**
51
+ * Allows to fully override default generation logic for error validation
52
+ * object. Called for each error. If an undefined value is returned -
53
+ * default logic will be applied. If DetailedValidationError is returned -
54
+ * default generation logic is skipped and returned error object is used
55
+ * instead.
56
+ */
57
+ overrideErrorTransformer?: (error: JsonSchemaValidationError) => DetailedValidationError<TSeverity, TContext> | undefined;
58
+ /**
59
+ * Overrides default `METADATA` context value with a custom returned value.
60
+ * Called for each error.
61
+ */
62
+ setContext?: (error: JsonSchemaValidationError) => DefaultValidationContext | TContext;
63
+ /**
64
+ * Overrides default `ERROR` severity value with a custom returned value.
65
+ * Called for each error.
66
+ */
67
+ setSeverity?: (error: JsonSchemaValidationError) => DefaultValidationSeverity | TSeverity;
68
+ }
69
+ //# sourceMappingURL=models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/publishing/models.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,oBAAY,yBAAyB,GAAG,OAAO,CAAC;AAChD;;;;;;;;;;GAUG;AACH,oBAAY,wBAAwB,GAAG,UAAU,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,uBAAuB,CACtC,SAAS,SAAS,MAAM,EACxB,QAAQ,SAAS,MAAM;IAEvB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAChD,OAAO,EAAE,wBAAwB,GAAG,QAAQ,CAAC;CAC9C;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,WAAW,+BAA+B,CAC9C,SAAS,SAAS,MAAM,EACxB,QAAQ,SAAS,MAAM;IAEvB;;;;;;OAMG;IACH,wBAAwB,CAAC,EAAE,CACzB,KAAK,EAAE,yBAAyB,KAC7B,uBAAuB,CAAC,SAAS,EAAE,QAAQ,CAAC,GAAG,SAAS,CAAC;IAE9D;;;OAGG;IACH,UAAU,CAAC,EAAE,CACX,KAAK,EAAE,yBAAyB,KAC7B,wBAAwB,GAAG,QAAQ,CAAC;IAEzC;;;OAGG;IACH,WAAW,CAAC,EAAE,CACZ,KAAK,EAAE,yBAAyB,KAC7B,yBAAyB,GAAG,SAAS,CAAC;CAC5C"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/publishing/models.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ import { DetailedValidationError, JsonSchemaValidationError, ValidationErrorTransformOptions } from './models';
2
+ /**
3
+ * Returns either first, second, or third. For other numbers - number +
4
+ * appropriate postfix, e.g. 4th, 11th, etc...
5
+ * @param orderNumber
6
+ */
7
+ export declare const getOrdinalizedString: (orderNumber: number) => string;
8
+ /**
9
+ * Transforms JSON data path into a readable string. Supports multiple nesting
10
+ * layers. Use the second parameter if specific property failed, but is not
11
+ * included in the data path.
12
+ *
13
+ * @example `/objects/0/property_name` turns into `Property 'property_name' of the 1st object`
14
+ * @example `/objects/0` turns into `The 1st object`
15
+ */
16
+ export declare const getJsonPropertyReadablePath: (dataPath: string, propertyName?: string | undefined) => string;
17
+ /**
18
+ * Generates a user-friendly validation error message based on the passed JSON
19
+ * schema validation error object.
20
+ */
21
+ export declare const constructValidationErrorMessage: (error: JsonSchemaValidationError) => string;
22
+ /**
23
+ * Transforms JSON schema validation errors and produces an array of error
24
+ * objects with the user-friendly message, context, and severity values.
25
+ * Produced format of messages targets publishing validation.
26
+ *
27
+ * Optional options parameter allows granular customizations of resulting objects.
28
+ */
29
+ export declare const transformJsonSchemaValidationErrors: <TSeverity extends string, TContext extends string>(errors: JsonSchemaValidationError[] | null | undefined, options?: ValidationErrorTransformOptions<TSeverity, TContext> | undefined) => DetailedValidationError<TSeverity, TContext>[];
30
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/publishing/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,UAAU,CAAC;AAElB;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,gBAAiB,MAAM,KAAG,MAQ1D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,aAC5B,MAAM,wCAEf,MA2CF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,UACnC,yBAAyB,KAC/B,MAkDF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mCAAmC,8DAItC,yBAAyB,EAAE,GAAG,IAAI,GAAG,SAAS,+HAsBvD,CAAC"}
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transformJsonSchemaValidationErrors = exports.constructValidationErrorMessage = exports.getJsonPropertyReadablePath = exports.getOrdinalizedString = void 0;
4
+ const inflection_1 = require("inflection");
5
+ const common_1 = require("../common");
6
+ /**
7
+ * Returns either first, second, or third. For other numbers - number +
8
+ * appropriate postfix, e.g. 4th, 11th, etc...
9
+ * @param orderNumber
10
+ */
11
+ const getOrdinalizedString = (orderNumber) => {
12
+ return orderNumber === 1
13
+ ? 'first'
14
+ : orderNumber === 2
15
+ ? 'second'
16
+ : orderNumber === 3
17
+ ? 'third'
18
+ : (0, inflection_1.ordinalize)(orderNumber.toString());
19
+ };
20
+ exports.getOrdinalizedString = getOrdinalizedString;
21
+ /**
22
+ * Transforms JSON data path into a readable string. Supports multiple nesting
23
+ * layers. Use the second parameter if specific property failed, but is not
24
+ * included in the data path.
25
+ *
26
+ * @example `/objects/0/property_name` turns into `Property 'property_name' of the 1st object`
27
+ * @example `/objects/0` turns into `The 1st object`
28
+ */
29
+ const getJsonPropertyReadablePath = (dataPath, propertyName) => {
30
+ const hierarchy = (0, common_1.isNullOrWhitespace)(dataPath)
31
+ ? []
32
+ : (0, common_1.trim)(dataPath, '/').split('/');
33
+ if (propertyName) {
34
+ // In some cases, failed property name is supplied separately
35
+ hierarchy.push(propertyName);
36
+ }
37
+ let result = '';
38
+ while (hierarchy.length > 0) {
39
+ const segment = hierarchy.pop();
40
+ // Failed property is a whole element of the array
41
+ if ((0, common_1.isNullOrWhitespace)(result) && !isNaN(parseInt(segment))) {
42
+ let arrayIndex = parseInt(segment);
43
+ const nth = (0, exports.getOrdinalizedString)(++arrayIndex);
44
+ result = `The ${nth}`;
45
+ continue;
46
+ }
47
+ // Failed property is a property of an object
48
+ if ((0, common_1.isNullOrWhitespace)(result) && isNaN(parseInt(segment))) {
49
+ result = `Property '${segment}'`;
50
+ continue;
51
+ }
52
+ // Failed property already discovered and belongs to a specific element of
53
+ // an array
54
+ if (!(0, common_1.isNullOrWhitespace)(result) && !isNaN(parseInt(segment))) {
55
+ let arrayIndex = parseInt(segment);
56
+ const nth = (0, exports.getOrdinalizedString)(++arrayIndex);
57
+ result += ` of the ${nth}`;
58
+ continue;
59
+ }
60
+ // Failed property already discovered and belongs to an object
61
+ if (!(0, common_1.isNullOrWhitespace)(result) && isNaN(parseInt(segment))) {
62
+ result += ` ${(0, inflection_1.humanize)((0, inflection_1.singularize)(segment), true)}`;
63
+ continue;
64
+ }
65
+ }
66
+ return result;
67
+ };
68
+ exports.getJsonPropertyReadablePath = getJsonPropertyReadablePath;
69
+ /**
70
+ * Generates a user-friendly validation error message based on the passed JSON
71
+ * schema validation error object.
72
+ */
73
+ const constructValidationErrorMessage = (error) => {
74
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
75
+ const identifier = (0, exports.getJsonPropertyReadablePath)(error.dataPath, (_a = error.params) === null || _a === void 0 ? void 0 : _a.missingProperty);
76
+ let message = error.message
77
+ ? `${identifier} ${error.message}.`
78
+ : 'Unknown error has occurred. Please contact the service support.';
79
+ switch (error.keyword) {
80
+ case 'required':
81
+ message = `${identifier} is required.`;
82
+ break;
83
+ case 'minLength':
84
+ message =
85
+ ((_b = error.params) === null || _b === void 0 ? void 0 : _b.limit) === 1
86
+ ? `${identifier} should not be empty.`
87
+ : `${identifier} should not be shorter than ${(_c = error.params) === null || _c === void 0 ? void 0 : _c.limit} characters.`;
88
+ break;
89
+ case 'minItems':
90
+ message =
91
+ ((_d = error.params) === null || _d === void 0 ? void 0 : _d.limit) === 1
92
+ ? `${identifier} should not be empty.`
93
+ : `${identifier} should not have fewer than ${(_e = error.params) === null || _e === void 0 ? void 0 : _e.limit} items.`;
94
+ break;
95
+ case 'pattern':
96
+ message = `${identifier} should match the pattern "${(_f = error.params) === null || _f === void 0 ? void 0 : _f.pattern}".`;
97
+ break;
98
+ case 'enum':
99
+ message = `${identifier} should be one of the following values: ${((_g = error.params) === null || _g === void 0 ? void 0 : _g.allowedValues).join(', ')}.`;
100
+ break;
101
+ case 'minimum':
102
+ message =
103
+ (((_h = error.params) === null || _h === void 0 ? void 0 : _h.exclusive) === false && ((_j = error.params) === null || _j === void 0 ? void 0 : _j.limit) === 1) ||
104
+ (((_k = error.params) === null || _k === void 0 ? void 0 : _k.exclusive) === true && ((_l = error.params) === null || _l === void 0 ? void 0 : _l.limit) === 0)
105
+ ? `${identifier} should be a positive number.`
106
+ : `${identifier} should be greater than${((_m = error.params) === null || _m === void 0 ? void 0 : _m.exclusive) === false ? ' or equal to' : ''} ${(_o = error.params) === null || _o === void 0 ? void 0 : _o.limit}.`;
107
+ break;
108
+ case 'additionalProperties':
109
+ message = `${identifier} should not have additional properties.`;
110
+ break;
111
+ case 'type':
112
+ message = `${identifier} should be of type '${(_p = error.params) === null || _p === void 0 ? void 0 : _p.type}'.`;
113
+ break;
114
+ }
115
+ return message;
116
+ };
117
+ exports.constructValidationErrorMessage = constructValidationErrorMessage;
118
+ /**
119
+ * Transforms JSON schema validation errors and produces an array of error
120
+ * objects with the user-friendly message, context, and severity values.
121
+ * Produced format of messages targets publishing validation.
122
+ *
123
+ * Optional options parameter allows granular customizations of resulting objects.
124
+ */
125
+ const transformJsonSchemaValidationErrors = (errors, options) => {
126
+ var _a, _b;
127
+ if (!errors || errors.length === 0) {
128
+ return [];
129
+ }
130
+ const setSeverity = (_a = options === null || options === void 0 ? void 0 : options.setSeverity) !== null && _a !== void 0 ? _a : (() => 'ERROR');
131
+ const setContext = (_b = options === null || options === void 0 ? void 0 : options.setContext) !== null && _b !== void 0 ? _b : (() => 'METADATA');
132
+ return errors.map((error) => {
133
+ var _a;
134
+ const override = (_a = options === null || options === void 0 ? void 0 : options.overrideErrorTransformer) === null || _a === void 0 ? void 0 : _a.call(options, error);
135
+ if (override) {
136
+ return override;
137
+ }
138
+ return {
139
+ message: (0, exports.constructValidationErrorMessage)(error),
140
+ severity: setSeverity(error),
141
+ context: setContext(error),
142
+ };
143
+ });
144
+ };
145
+ exports.transformJsonSchemaValidationErrors = transformJsonSchemaValidationErrors;
146
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/publishing/utils.ts"],"names":[],"mappings":";;;AAAA,2CAA+D;AAC/D,sCAAqD;AAOrD;;;;GAIG;AACI,MAAM,oBAAoB,GAAG,CAAC,WAAmB,EAAU,EAAE;IAClE,OAAO,WAAW,KAAK,CAAC;QACtB,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,WAAW,KAAK,CAAC;YACnB,CAAC,CAAC,QAAQ;YACV,CAAC,CAAC,WAAW,KAAK,CAAC;gBACnB,CAAC,CAAC,OAAO;gBACT,CAAC,CAAC,IAAA,uBAAU,EAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;AACzC,CAAC,CAAC;AARW,QAAA,oBAAoB,wBAQ/B;AAEF;;;;;;;GAOG;AACI,MAAM,2BAA2B,GAAG,CACzC,QAAgB,EAChB,YAAqB,EACb,EAAE;IACV,MAAM,SAAS,GAAG,IAAA,2BAAkB,EAAC,QAAQ,CAAC;QAC5C,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,IAAA,aAAI,EAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnC,IAAI,YAAY,EAAE;QAChB,6DAA6D;QAC7D,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC9B;IAED,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,OAAO,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE;QAC3B,MAAM,OAAO,GAAG,SAAS,CAAC,GAAG,EAAY,CAAC;QAE1C,kDAAkD;QAClD,IAAI,IAAA,2BAAkB,EAAC,MAAM,CA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Q,CAAC;SACjB;QAED,OAAO;YACL,OAAO,EAAE,IAAA,uCAA+B,EAAC,KAAK,CAAC;YAC/C,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC;YAC5B,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC;SAC3B,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AA1BW,QAAA,mCAAmC,uCA0B9C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-service-common",
3
- "version": "0.16.1",
3
+ "version": "0.17.0-rc.1",
4
4
  "description": "Common helpers and PostgreSQL-related functionality",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "95a5cf75268322d31caafa8af489a6c884a3aca8"
65
+ "gitHead": "2998a001941e53a610a1a500fce1533016afbe2f"
66
66
  }