@cryptexlabs/codex-nodejs-common 0.10.28 → 0.10.29

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/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptexlabs/codex-nodejs-common",
3
- "version": "0.10.28",
3
+ "version": "0.10.29",
4
4
  "description": "Common code for Codex framework",
5
5
  "main": "lib/src/index.js",
6
6
  "repository": "git@gitlab.com:cryptexlabs/public/codex-nodejs-common.git",
@@ -5,6 +5,7 @@ import { MessageMeta } from "../message";
5
5
  export declare class HttpPaginatedResponseMeta extends MessageMeta implements MessageMetaInterface {
6
6
  readonly status: HttpStatus;
7
7
  readonly totalRecords: number;
8
- constructor(status: HttpStatus, totalRecords: number, type: string, locale: LocaleInterface, config: DefaultConfig, correlationId: string, started: Date);
8
+ readonly path?: string;
9
+ constructor(status: HttpStatus, totalRecords: number, type: string, locale: LocaleInterface, config: DefaultConfig, correlationId: string, started: Date, path?: string);
9
10
  toJSON(): any;
10
11
  }
@@ -3,15 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HttpPaginatedResponseMeta = void 0;
4
4
  const message_1 = require("../message");
5
5
  class HttpPaginatedResponseMeta extends message_1.MessageMeta {
6
- constructor(status, totalRecords, type, locale, config, correlationId, started) {
6
+ constructor(status, totalRecords, type, locale, config, correlationId, started, path) {
7
7
  super(type, locale, config, correlationId, started);
8
8
  this.status = status;
9
9
  this.totalRecords = totalRecords;
10
+ this.path = path;
10
11
  }
11
12
  toJSON() {
12
13
  return {
13
14
  totalRecords: this.totalRecords,
14
15
  status: this.status,
16
+ path: this.path,
15
17
  type: this.type,
16
18
  schemaVersion: this.schemaVersion,
17
19
  correlationId: this.correlationId,
@@ -1 +1 @@
1
- {"version":3,"file":"http-paginated-response-meta.js","sourceRoot":"","sources":["../../../src/response/http-paginated-response-meta.ts"],"names":[],"mappings":";;;AAMA,wCAAyC;AAEzC,MAAa,yBACX,SAAQ,qBAAW;IAEnB,YACkB,MAAkB,EAClB,YAAoB,EACpC,IAAY,EACZ,MAAuB,EACvB,MAAqB,EACrB,aAAqB,EACrB,OAAa;QAEb,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QARpC,WAAM,GAAN,MAAM,CAAY;QAClB,iBAAY,GAAZ,YAAY,CAAQ;IAQtC,CAAC;IAEM,MAAM;QACX,OAAO;YACL,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;CACF;AA5BD,8DA4BC"}
1
+ {"version":3,"file":"http-paginated-response-meta.js","sourceRoot":"","sources":["../../../src/response/http-paginated-response-meta.ts"],"names":[],"mappings":";;;AAMA,wCAAyC;AAEzC,MAAa,yBACX,SAAQ,qBAAW;IAEnB,YACkB,MAAkB,EAClB,YAAoB,EACpC,IAAY,EACZ,MAAuB,EACvB,MAAqB,EACrB,aAAqB,EACrB,OAAa,EACG,IAAa;QAE7B,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;QATpC,WAAM,GAAN,MAAM,CAAY;QAClB,iBAAY,GAAZ,YAAY,CAAQ;QAMpB,SAAI,GAAJ,IAAI,CAAS;IAG/B,CAAC;IAEM,MAAM;QACX,OAAO;YACL,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;CACF;AA9BD,8DA8BC"}
@@ -5,7 +5,7 @@ const http_paginated_response_meta_1 = require("./http-paginated-response-meta")
5
5
  class RestPaginatedResponse {
6
6
  constructor(context, status, totalRecords, type, data) {
7
7
  this.data = data;
8
- this.meta = new http_paginated_response_meta_1.HttpPaginatedResponseMeta(status, totalRecords, type, context.locale, context.config, context.correlationId, context.started);
8
+ this.meta = new http_paginated_response_meta_1.HttpPaginatedResponseMeta(status, totalRecords, type, context.locale, context.config, context.correlationId, context.started, context.path);
9
9
  }
10
10
  toJSON() {
11
11
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"rest.paginated.response.js","sourceRoot":"","sources":["../../../src/response/rest.paginated.response.ts"],"names":[],"mappings":";;;AAOA,iFAA2E;AAE3E,MAAa,qBAAqB;IAIhC,YACE,OAAgB,EAChB,MAAkB,EAClB,YAAoB,EACpB,IAAY,EACI,IAAS;QAAT,SAAI,GAAJ,IAAI,CAAK;QAEzB,IAAI,CAAC,IAAI,GAAG,IAAI,wDAAyB,CACvC,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,aAAa,EACrB,OAAO,CAAC,OAAO,CACQ,CAAC;IAC5B,CAAC;IAEM,MAAM;QACX,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;IACJ,CAAC;CACF;AA5BD,sDA4BC"}
1
+ {"version":3,"file":"rest.paginated.response.js","sourceRoot":"","sources":["../../../src/response/rest.paginated.response.ts"],"names":[],"mappings":";;;AAOA,iFAA2E;AAE3E,MAAa,qBAAqB;IAIhC,YACE,OAAgB,EAChB,MAAkB,EAClB,YAAoB,EACpB,IAAY,EACI,IAAS;QAAT,SAAI,GAAJ,IAAI,CAAK;QAEzB,IAAI,CAAC,IAAI,GAAG,IAAI,wDAAyB,CACvC,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,MAAM,EACd,OAAO,CAAC,aAAa,EACrB,OAAO,CAAC,OAAO,EACf,OAAO,CAAC,IAAI,CACW,CAAC;IAC5B,CAAC;IAEM,MAAM;QACX,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,IAAI,EAAE,IAAI,CAAC,IAAI;SAChB,CAAC;IACJ,CAAC;CACF;AA7BD,sDA6BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptexlabs/codex-nodejs-common",
3
- "version": "0.10.28",
3
+ "version": "0.10.29",
4
4
  "description": "Common code for Codex framework",
5
5
  "main": "lib/src/index.js",
6
6
  "repository": "git@gitlab.com:cryptexlabs/public/codex-nodejs-common.git",
@@ -16,7 +16,8 @@ export class HttpPaginatedResponseMeta
16
16
  locale: LocaleInterface,
17
17
  config: DefaultConfig,
18
18
  correlationId: string,
19
- started: Date
19
+ started: Date,
20
+ public readonly path?: string
20
21
  ) {
21
22
  super(type, locale, config, correlationId, started);
22
23
  }
@@ -25,6 +26,7 @@ export class HttpPaginatedResponseMeta
25
26
  return {
26
27
  totalRecords: this.totalRecords,
27
28
  status: this.status,
29
+ path: this.path,
28
30
  type: this.type,
29
31
  schemaVersion: this.schemaVersion,
30
32
  correlationId: this.correlationId,
@@ -25,7 +25,8 @@ export class RestPaginatedResponse<L>
25
25
  context.locale,
26
26
  context.config,
27
27
  context.correlationId,
28
- context.started
28
+ context.started,
29
+ context.path
29
30
  ) as MessageMetaInterface;
30
31
  }
31
32