@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 +1 -1
- package/lib/src/response/http-paginated-response-meta.d.ts +2 -1
- package/lib/src/response/http-paginated-response-meta.js +3 -1
- package/lib/src/response/http-paginated-response-meta.js.map +1 -1
- package/lib/src/response/rest.paginated.response.js +1 -1
- package/lib/src/response/rest.paginated.response.js.map +1 -1
- package/package.json +1 -1
- package/src/response/http-paginated-response-meta.ts +3 -1
- package/src/response/rest.paginated.response.ts +2 -1
package/lib/package.json
CHANGED
|
@@ -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
|
-
|
|
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;
|
|
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,
|
|
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
|
@@ -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,
|