@visiion/dci-registry-core 1.0.0
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/README.md +142 -0
- package/dist/controllers/registry-async.controller.d.ts +54 -0
- package/dist/controllers/registry-async.controller.js +251 -0
- package/dist/controllers/registry-async.controller.js.map +1 -0
- package/dist/controllers/registry-sync.controller.d.ts +9 -0
- package/dist/controllers/registry-sync.controller.js +106 -0
- package/dist/controllers/registry-sync.controller.js.map +1 -0
- package/dist/crypto/digest.d.ts +2 -0
- package/dist/crypto/digest.js +14 -0
- package/dist/crypto/digest.js.map +1 -0
- package/dist/crypto/ed25519.d.ts +1 -0
- package/dist/crypto/ed25519.js +23 -0
- package/dist/crypto/ed25519.js.map +1 -0
- package/dist/crypto/signature-header.parser.d.ts +2 -0
- package/dist/crypto/signature-header.parser.js +39 -0
- package/dist/crypto/signature-header.parser.js.map +1 -0
- package/dist/crypto/signature-verifier.d.ts +10 -0
- package/dist/crypto/signature-verifier.js +37 -0
- package/dist/crypto/signature-verifier.js.map +1 -0
- package/dist/dtos/ack.dto.d.ts +5 -0
- package/dist/dtos/ack.dto.d.ts.map +1 -0
- package/dist/dtos/ack.dto.js +3 -0
- package/dist/dtos/ack.dto.js.map +1 -0
- package/dist/dtos/encrypted-message.dto.d.ts +12 -0
- package/dist/dtos/encrypted-message.dto.js +54 -0
- package/dist/dtos/encrypted-message.dto.js.map +1 -0
- package/dist/dtos/envelope.dto.d.ts +7 -0
- package/dist/dtos/envelope.dto.js +33 -0
- package/dist/dtos/envelope.dto.js.map +1 -0
- package/dist/dtos/error.dto.d.ts +7 -0
- package/dist/dtos/error.dto.js +35 -0
- package/dist/dtos/error.dto.js.map +1 -0
- package/dist/dtos/header.dto.d.ts +16 -0
- package/dist/dtos/header.dto.d.ts.map +1 -0
- package/dist/dtos/header.dto.js +87 -0
- package/dist/dtos/header.dto.js.map +1 -0
- package/dist/dtos/registry-notify.dto.d.ts +17 -0
- package/dist/dtos/registry-notify.dto.d.ts.map +1 -0
- package/dist/dtos/registry-notify.dto.js +75 -0
- package/dist/dtos/registry-notify.dto.js.map +1 -0
- package/dist/dtos/registry-search.dto.d.ts +55 -0
- package/dist/dtos/registry-search.dto.d.ts.map +1 -0
- package/dist/dtos/registry-search.dto.js +176 -0
- package/dist/dtos/registry-search.dto.js.map +1 -0
- package/dist/dtos/registry-subscribe.dto.d.ts +56 -0
- package/dist/dtos/registry-subscribe.dto.d.ts.map +1 -0
- package/dist/dtos/registry-subscribe.dto.js +149 -0
- package/dist/dtos/registry-subscribe.dto.js.map +1 -0
- package/dist/dtos/registry-txn.dto.d.ts +39 -0
- package/dist/dtos/registry-txn.dto.d.ts.map +1 -0
- package/dist/dtos/registry-txn.dto.js +102 -0
- package/dist/dtos/registry-txn.dto.js.map +1 -0
- package/dist/dtos/registry-unsubscribe.dto.d.ts +18 -0
- package/dist/dtos/registry-unsubscribe.dto.d.ts.map +1 -0
- package/dist/dtos/registry-unsubscribe.dto.js +69 -0
- package/dist/dtos/registry-unsubscribe.dto.js.map +1 -0
- package/dist/dtos/signature.dto.d.ts +9 -0
- package/dist/dtos/signature.dto.js +3 -0
- package/dist/dtos/signature.dto.js.map +1 -0
- package/dist/dtos/status-codes.dto.d.ts +27 -0
- package/dist/dtos/status-codes.dto.js +35 -0
- package/dist/dtos/status-codes.dto.js.map +1 -0
- package/dist/entities/subscription.entity.d.ts +7 -0
- package/dist/entities/subscription.entity.d.ts.map +1 -0
- package/dist/entities/subscription.entity.js +40 -0
- package/dist/entities/subscription.entity.js.map +1 -0
- package/dist/entities/transaction.entity.d.ts +8 -0
- package/dist/entities/transaction.entity.d.ts.map +1 -0
- package/dist/entities/transaction.entity.js +44 -0
- package/dist/entities/transaction.entity.js.map +1 -0
- package/dist/errors/dci-error.catalog.d.ts +31 -0
- package/dist/errors/dci-error.catalog.js +50 -0
- package/dist/errors/dci-error.catalog.js.map +1 -0
- package/dist/errors/dci-exception.filter.d.ts +5 -0
- package/dist/errors/dci-exception.filter.js +47 -0
- package/dist/errors/dci-exception.filter.js.map +1 -0
- package/dist/handlers/store-notify.handler.d.ts +13 -0
- package/dist/handlers/store-notify.handler.js +38 -0
- package/dist/handlers/store-notify.handler.js.map +1 -0
- package/dist/handlers/store-search.handler.d.ts +21 -0
- package/dist/handlers/store-search.handler.js +68 -0
- package/dist/handlers/store-search.handler.js.map +1 -0
- package/dist/handlers/store-subscribe.handler.d.ts +36 -0
- package/dist/handlers/store-subscribe.handler.js +120 -0
- package/dist/handlers/store-subscribe.handler.js.map +1 -0
- package/dist/handlers/store-txn.handler.d.ts +19 -0
- package/dist/handlers/store-txn.handler.js +63 -0
- package/dist/handlers/store-txn.handler.js.map +1 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +110 -0
- package/dist/index.js.map +1 -0
- package/dist/interceptors/correlation.interceptor.d.ts +5 -0
- package/dist/interceptors/correlation.interceptor.js +28 -0
- package/dist/interceptors/correlation.interceptor.js.map +1 -0
- package/dist/interceptors/logging.interceptor.d.ts +8 -0
- package/dist/interceptors/logging.interceptor.js +52 -0
- package/dist/interceptors/logging.interceptor.js.map +1 -0
- package/dist/interfaces/dataset-resolver.interface.d.ts +21 -0
- package/dist/interfaces/dataset-resolver.interface.js +3 -0
- package/dist/interfaces/dataset-resolver.interface.js.map +1 -0
- package/dist/interfaces/default-handlers.d.ts +14 -0
- package/dist/interfaces/default-handlers.js +41 -0
- package/dist/interfaces/default-handlers.js.map +1 -0
- package/dist/interfaces/encryption.d.ts +4 -0
- package/dist/interfaces/encryption.js +3 -0
- package/dist/interfaces/encryption.js.map +1 -0
- package/dist/interfaces/handlers.d.ts +45 -0
- package/dist/interfaces/handlers.d.ts.map +1 -0
- package/dist/interfaces/handlers.js +3 -0
- package/dist/interfaces/handlers.js.map +1 -0
- package/dist/interfaces/public-key-resolver.d.ts +3 -0
- package/dist/interfaces/public-key-resolver.js +3 -0
- package/dist/interfaces/public-key-resolver.js.map +1 -0
- package/dist/interfaces/subscription-store.interface.d.ts +18 -0
- package/dist/interfaces/subscription-store.interface.d.ts.map +1 -0
- package/dist/interfaces/subscription-store.interface.js +3 -0
- package/dist/interfaces/subscription-store.interface.js.map +1 -0
- package/dist/interfaces/transaction-store.interface.d.ts +14 -0
- package/dist/interfaces/transaction-store.interface.d.ts.map +1 -0
- package/dist/interfaces/transaction-store.interface.js +3 -0
- package/dist/interfaces/transaction-store.interface.js.map +1 -0
- package/dist/module/dci-registry-core.module.d.ts +5 -0
- package/dist/module/dci-registry-core.module.js +109 -0
- package/dist/module/dci-registry-core.module.js.map +1 -0
- package/dist/module/dci-registry-core.types.d.ts +68 -0
- package/dist/module/dci-registry-core.types.d.ts.map +1 -0
- package/dist/module/dci-registry-core.types.js +3 -0
- package/dist/module/dci-registry-core.types.js.map +1 -0
- package/dist/module/tokens.d.ts +19 -0
- package/dist/module/tokens.js +23 -0
- package/dist/module/tokens.js.map +1 -0
- package/dist/modules/dci-subscriptions.module.d.ts +2 -0
- package/dist/modules/dci-subscriptions.module.d.ts.map +1 -0
- package/dist/modules/dci-subscriptions.module.js +24 -0
- package/dist/modules/dci-subscriptions.module.js.map +1 -0
- package/dist/modules/dci-transactions.module.d.ts +2 -0
- package/dist/modules/dci-transactions.module.d.ts.map +1 -0
- package/dist/modules/dci-transactions.module.js +24 -0
- package/dist/modules/dci-transactions.module.js.map +1 -0
- package/dist/pipes/dci-decrypt-message.pipe.d.ts +13 -0
- package/dist/pipes/dci-decrypt-message.pipe.js +40 -0
- package/dist/pipes/dci-decrypt-message.pipe.js.map +1 -0
- package/dist/pipes/dci-validate-action.pipe.d.ts +11 -0
- package/dist/pipes/dci-validate-action.pipe.js +35 -0
- package/dist/pipes/dci-validate-action.pipe.js.map +1 -0
- package/dist/services/dci-search.service.d.ts +16 -0
- package/dist/services/dci-search.service.js +95 -0
- package/dist/services/dci-search.service.js.map +1 -0
- package/dist/services/subscription-store.service.d.ts +16 -0
- package/dist/services/subscription-store.service.d.ts.map +1 -0
- package/dist/services/subscription-store.service.js +75 -0
- package/dist/services/subscription-store.service.js.map +1 -0
- package/dist/services/transaction-store.service.d.ts +12 -0
- package/dist/services/transaction-store.service.d.ts.map +1 -0
- package/dist/services/transaction-store.service.js +60 -0
- package/dist/services/transaction-store.service.js.map +1 -0
- package/dist/swagger.d.ts +85 -0
- package/dist/swagger.js +75 -0
- package/dist/swagger.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/utils/callback-sender.d.ts +15 -0
- package/dist/utils/callback-sender.js +31 -0
- package/dist/utils/callback-sender.js.map +1 -0
- package/dist/utils/callback-url.utils.d.ts +4 -0
- package/dist/utils/callback-url.utils.js +7 -0
- package/dist/utils/callback-url.utils.js.map +1 -0
- package/dist/utils/date.utils.d.ts +2 -0
- package/dist/utils/date.utils.d.ts.map +1 -0
- package/dist/utils/date.utils.js +22 -0
- package/dist/utils/date.utils.js.map +1 -0
- package/dist/utils/dci-module-config.d.ts +10 -0
- package/dist/utils/dci-module-config.d.ts.map +1 -0
- package/dist/utils/dci-module-config.js +19 -0
- package/dist/utils/dci-module-config.js.map +1 -0
- package/dist/utils/notify-filter.utils.d.ts +5 -0
- package/dist/utils/notify-filter.utils.js +41 -0
- package/dist/utils/notify-filter.utils.js.map +1 -0
- package/dist/utils/search-response.builder.d.ts +6 -0
- package/dist/utils/search-response.builder.js +30 -0
- package/dist/utils/search-response.builder.js.map +1 -0
- package/dist/utils/subscribe-response.builder.d.ts +16 -0
- package/dist/utils/subscribe-response.builder.js +47 -0
- package/dist/utils/subscribe-response.builder.js.map +1 -0
- package/dist/utils/txn-status-response.builder.d.ts +3 -0
- package/dist/utils/txn-status-response.builder.d.ts.map +1 -0
- package/dist/utils/txn-status-response.builder.js +63 -0
- package/dist/utils/txn-status-response.builder.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseSignatureHeader = parseSignatureHeader;
|
|
4
|
+
const SIGNATURE_PREFIX = 'Signature:';
|
|
5
|
+
const PARAM_REGEX = /(\w+)=("([^"]*)"|([^,\s]+))/g;
|
|
6
|
+
function parseSignatureHeader(headerValue) {
|
|
7
|
+
if (!headerValue || typeof headerValue !== 'string') {
|
|
8
|
+
throw new Error('Signature header is required');
|
|
9
|
+
}
|
|
10
|
+
const trimmed = headerValue.trim();
|
|
11
|
+
if (!trimmed.startsWith(SIGNATURE_PREFIX)) {
|
|
12
|
+
throw new Error('Invalid Signature header format: must start with "Signature:"');
|
|
13
|
+
}
|
|
14
|
+
const paramsPart = trimmed.slice(SIGNATURE_PREFIX.length).trim();
|
|
15
|
+
const params = {};
|
|
16
|
+
let match;
|
|
17
|
+
PARAM_REGEX.lastIndex = 0;
|
|
18
|
+
while ((match = PARAM_REGEX.exec(paramsPart)) !== null) {
|
|
19
|
+
const key = match[1].toLowerCase();
|
|
20
|
+
const value = match[3] ?? match[4] ?? '';
|
|
21
|
+
params[key] = value;
|
|
22
|
+
}
|
|
23
|
+
const required = ['namespace', 'kidid', 'algorithm', 'created', 'expires', 'headers', 'signature'];
|
|
24
|
+
for (const key of required) {
|
|
25
|
+
if (!params[key]) {
|
|
26
|
+
throw new Error(`Missing required signature parameter: ${key}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
namespace: params.namespace,
|
|
31
|
+
kidId: params.kidid,
|
|
32
|
+
algorithm: params.algorithm,
|
|
33
|
+
created: params.created,
|
|
34
|
+
expires: params.expires,
|
|
35
|
+
headers: params.headers,
|
|
36
|
+
signature: params.signature,
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=signature-header.parser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signature-header.parser.js","sourceRoot":"","sources":["../../src/crypto/signature-header.parser.ts"],"names":[],"mappings":";;AASA,oDAqCC;AAxCD,MAAM,gBAAgB,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AAC;IACH,CAAC;IAED,OAAO;QACL,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,SAAS,EAAE,MAAM,CAAC,SAAS;QAC3B,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,SAAS,EAAE,MAAM,CAAC,SAAS;KAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ParsedSignature } from '../dtos/signature.dto';
|
|
2
|
+
export interface SignatureVerifierOptions {
|
|
3
|
+
clockSkewSeconds?: number;
|
|
4
|
+
publicKeyResolver: (senderId: string, kidId?: string) => Promise<string>;
|
|
5
|
+
}
|
|
6
|
+
export declare class SignatureVerifier {
|
|
7
|
+
private readonly options;
|
|
8
|
+
constructor(options: SignatureVerifierOptions);
|
|
9
|
+
verify(parsedSignature: ParsedSignature, body: string | Buffer, senderId: string): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SignatureVerifier = void 0;
|
|
4
|
+
const digest_1 = require("./digest");
|
|
5
|
+
const ed25519_1 = require("./ed25519");
|
|
6
|
+
class SignatureVerifier {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
this.options = options;
|
|
9
|
+
}
|
|
10
|
+
async verify(parsedSignature, body, senderId) {
|
|
11
|
+
const bodyDigest = (0, digest_1.computeSha256Digest)(body);
|
|
12
|
+
const signingContent = (0, digest_1.buildSigningContent)(parsedSignature.created, parsedSignature.expires, bodyDigest);
|
|
13
|
+
const publicKey = await this.options.publicKeyResolver(senderId, parsedSignature.kidId);
|
|
14
|
+
const isValid = (0, ed25519_1.verifyEd25519)(signingContent, parsedSignature.signature, publicKey);
|
|
15
|
+
if (!isValid) {
|
|
16
|
+
throw new Error('Invalid signature: verification failed');
|
|
17
|
+
}
|
|
18
|
+
const clockSkew = this.options.clockSkewSeconds ?? 60;
|
|
19
|
+
const now = Math.floor(Date.now() / 1000);
|
|
20
|
+
const created = parseInt(parsedSignature.created, 10);
|
|
21
|
+
const expires = parseInt(parsedSignature.expires, 10);
|
|
22
|
+
if (isNaN(created) || isNaN(expires)) {
|
|
23
|
+
throw new Error('Invalid signature: created/expires must be unix timestamps');
|
|
24
|
+
}
|
|
25
|
+
if (created > now + clockSkew) {
|
|
26
|
+
throw new Error('Invalid signature: created timestamp is in the future');
|
|
27
|
+
}
|
|
28
|
+
if (expires < now - clockSkew) {
|
|
29
|
+
throw new Error('Invalid signature: expires timestamp has passed');
|
|
30
|
+
}
|
|
31
|
+
if (parsedSignature.algorithm !== 'ed25519') {
|
|
32
|
+
throw new Error(`Unsupported signature algorithm: ${parsedSignature.algorithm}`);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.SignatureVerifier = SignatureVerifier;
|
|
37
|
+
//# sourceMappingURL=signature-verifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signature-verifier.js","sourceRoot":"","sources":["../../src/crypto/signature-verifier.ts"],"names":[],"mappings":";;;AAIA,qCAAoE;AACpE,uCAA0C;AAO1C,MAAa,iBAAiB;IAC5B,YAA6B,OAAiC;QAAjC,YAAO,GAAP,OAAO,CAA0B;IAAG,CAAC;IAElE,KAAK,CAAC,MAAM,CACV,eAAgC,EAChC,IAAqB,EACrB,QAAgB;QAEhB,MAAM,UAAU,GAAG,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;QAC7C,MAAM,cAAc,GAAG,IAAA,4BAAmB,EACxC,eAAe,CAAC,OAAO,EACvB,eAAe,CAAC,OAAO,EACvB,UAAU,CACX,CAAC;QAEF,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,QAAQ,EAAE,eAA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cAAc;IAC7B,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ack.dto.js","sourceRoot":"","sources":["../../src/dtos/ack.dto.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class EncryptedMessageHeaderDto {
|
|
2
|
+
alg: string;
|
|
3
|
+
enc: string;
|
|
4
|
+
kid: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class EncryptedMessageDto {
|
|
7
|
+
header: EncryptedMessageHeaderDto;
|
|
8
|
+
ciphertext: string;
|
|
9
|
+
encrypted_key: string;
|
|
10
|
+
tag: string;
|
|
11
|
+
iv: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EncryptedMessageDto = exports.EncryptedMessageHeaderDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class EncryptedMessageHeaderDto {
|
|
16
|
+
}
|
|
17
|
+
exports.EncryptedMessageHeaderDto = EncryptedMessageHeaderDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], EncryptedMessageHeaderDto.prototype, "alg", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], EncryptedMessageHeaderDto.prototype, "enc", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], EncryptedMessageHeaderDto.prototype, "kid", void 0);
|
|
30
|
+
class EncryptedMessageDto {
|
|
31
|
+
}
|
|
32
|
+
exports.EncryptedMessageDto = EncryptedMessageDto;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.ValidateNested)(),
|
|
35
|
+
(0, class_transformer_1.Type)(() => EncryptedMessageHeaderDto),
|
|
36
|
+
__metadata("design:type", EncryptedMessageHeaderDto)
|
|
37
|
+
], EncryptedMessageDto.prototype, "header", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], EncryptedMessageDto.prototype, "ciphertext", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], EncryptedMessageDto.prototype, "encrypted_key", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], EncryptedMessageDto.prototype, "tag", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], EncryptedMessageDto.prototype, "iv", void 0);
|
|
54
|
+
//# sourceMappingURL=encrypted-message.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encrypted-message.dto.js","sourceRoot":"","sources":["../../src/dtos/encrypted-message.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqE;AACrE,yDAAyC;AAKzC,MAAa,yBAAyB;CASrC;AATD,8DASC;AAPC;IADC,IAAA,0BAAQ,GAAE;;sDACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;sDACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;sDACE;AAMf,MAAa,mBAAmB;CAgB/B;AAhBD,kDAgBC;AAbC;IAFC,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAyB,CAAC;8BAC7B,yBAAyB;mDAAC;AAGnC;IADC,IAAA,0BAAQ,GAAE;;uDACS;AAGpB;IADC,IAAA,0BAAQ,GAAE;;0DACY;AAGvB;IADC,IAAA,0BAAQ,GAAE;;gDACE;AAGb;IADC,IAAA,0BAAQ,GAAE;;+CACC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DciEnvelopeDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const header_dto_1 = require("./header.dto");
|
|
16
|
+
class DciEnvelopeDto {
|
|
17
|
+
}
|
|
18
|
+
exports.DciEnvelopeDto = DciEnvelopeDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], DciEnvelopeDto.prototype, "signature", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.ValidateNested)(),
|
|
25
|
+
(0, class_transformer_1.Type)(() => header_dto_1.DciHeaderDto),
|
|
26
|
+
__metadata("design:type", header_dto_1.DciHeaderDto)
|
|
27
|
+
], DciEnvelopeDto.prototype, "header", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.ValidateIf)((o) => !o.header?.is_msg_encrypted),
|
|
30
|
+
(0, class_validator_1.IsObject)(),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], DciEnvelopeDto.prototype, "message", void 0);
|
|
33
|
+
//# sourceMappingURL=envelope.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envelope.dto.js","sourceRoot":"","sources":["../../src/dtos/envelope.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiF;AACjF,yDAAyC;AACzC,6CAA4C;AAO5C,MAAa,cAAc;CAW1B;AAXD,wCAWC;AATC;IADC,IAAA,0BAAQ,GAAE;;iDACQ;AAInB;IAFC,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAY,CAAC;8BAChB,yBAAY;8CAAC;AAItB;IAFC,IAAA,4BAAU,EAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAC9C,IAAA,0BAAQ,GAAE;;+CACuB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DciErrorResponseDto = exports.DciErrorItemDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class DciErrorItemDto {
|
|
16
|
+
}
|
|
17
|
+
exports.DciErrorItemDto = DciErrorItemDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], DciErrorItemDto.prototype, "code", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], DciErrorItemDto.prototype, "message", void 0);
|
|
26
|
+
class DciErrorResponseDto {
|
|
27
|
+
}
|
|
28
|
+
exports.DciErrorResponseDto = DciErrorResponseDto;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsArray)(),
|
|
31
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
32
|
+
(0, class_transformer_1.Type)(() => DciErrorItemDto),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], DciErrorResponseDto.prototype, "errors", void 0);
|
|
35
|
+
//# sourceMappingURL=error.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.dto.js","sourceRoot":"","sources":["../../src/dtos/error.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoE;AACpE,yDAAyC;AAKzC,MAAa,eAAe;CAM3B;AAND,0CAMC;AAJC;IADC,IAAA,0BAAQ,GAAE;;6CACG;AAGd;IADC,IAAA,0BAAQ,GAAE;;gDACM;AAMnB,MAAa,mBAAmB;CAK/B;AALD,kDAKC;AADC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAe,CAAC;;mDACD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class DciHeaderDto {
|
|
2
|
+
version: string;
|
|
3
|
+
message_id: string;
|
|
4
|
+
message_ts: string;
|
|
5
|
+
action: string;
|
|
6
|
+
sender_id: string;
|
|
7
|
+
sender_uri?: string;
|
|
8
|
+
receiver_id: string;
|
|
9
|
+
is_msg_encrypted?: boolean;
|
|
10
|
+
meta?: Record<string, unknown>;
|
|
11
|
+
status?: string;
|
|
12
|
+
status_reason_code?: string;
|
|
13
|
+
status_reason_message?: string;
|
|
14
|
+
total_count?: number;
|
|
15
|
+
completed_count?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/header.dto.ts"],"names":[],"mappings":"AAYA,qBAAa,YAAY;IAGvB,OAAO,EAAG,MAAM,CAAC;IAIjB,UAAU,EAAG,MAAM,CAAC;IAMpB,UAAU,EAAG,MAAM,CAAC;IAGpB,MAAM,EAAG,MAAM,CAAC;IAIhB,SAAS,EAAG,MAAM,CAAC;IAInB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,WAAW,EAAG,MAAM,CAAC;IAIrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAI3B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAK/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAK5B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAG/B,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DciHeaderDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class DciHeaderDto {
|
|
15
|
+
}
|
|
16
|
+
exports.DciHeaderDto = DciHeaderDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MaxLength)(20),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], DciHeaderDto.prototype, "version", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MaxLength)(99),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], DciHeaderDto.prototype, "message_id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.Matches)(/^\d{4}-\d{2}-\d{2}T[\d:.+-]+$/, {
|
|
30
|
+
message: 'message_ts must be ISO 8601 format',
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], DciHeaderDto.prototype, "message_ts", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], DciHeaderDto.prototype, "action", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, class_validator_1.MaxLength)(99),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], DciHeaderDto.prototype, "sender_id", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], DciHeaderDto.prototype, "sender_uri", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsString)(),
|
|
50
|
+
(0, class_validator_1.MaxLength)(99),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], DciHeaderDto.prototype, "receiver_id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsBoolean)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], DciHeaderDto.prototype, "is_msg_encrypted", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
(0, class_validator_1.IsObject)(),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], DciHeaderDto.prototype, "meta", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], DciHeaderDto.prototype, "status", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], DciHeaderDto.prototype, "status_reason_code", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
(0, class_validator_1.IsString)(),
|
|
76
|
+
(0, class_validator_1.MaxLength)(999),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], DciHeaderDto.prototype, "status_reason_message", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], DciHeaderDto.prototype, "total_count", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], DciHeaderDto.prototype, "completed_count", void 0);
|
|
87
|
+
//# sourceMappingURL=header.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.dto.js","sourceRoot":"","sources":["../../src/dtos/header.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AAKzB,MAAa,YAAY;CAyDxB;AAzDD,oCAyDC;AAtDC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;6CACG;AAIjB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;gDACM;AAMpB;IAJC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,+BAA+B,EAAE;QACxC,OAAO,EAAE,oCAAoC;KAC9C,CAAC;;gDACkB;AAGpB;IADC,IAAA,0BAAQ,GAAE;;4CACK;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;+CACK;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;iDACO;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sDACe;AAI3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACoB;AAK/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACiB;AAK5B;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;2DACgB;AAG/B;IADC,IAAA,4BAAU,GAAE;;iDACQ;AAGrB;IADC,IAAA,4BAAU,GAAE;;qDACY"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class NotifyEventItemDataDto {
|
|
2
|
+
version: string;
|
|
3
|
+
reg_type: string;
|
|
4
|
+
reg_event_type: string;
|
|
5
|
+
reg_record_type: string;
|
|
6
|
+
reg_records?: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
export declare class NotifyEventItemDto {
|
|
9
|
+
reference_id: string;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
data: NotifyEventItemDataDto;
|
|
12
|
+
locale?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class NotifyEventRequestDto {
|
|
15
|
+
transaction_id: string;
|
|
16
|
+
notify_event: NotifyEventItemDto[];
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-notify.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/registry-notify.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,sBAAsB;IAEjC,OAAO,EAAG,MAAM,CAAC;IAGjB,QAAQ,EAAG,MAAM,CAAC;IAGlB,cAAc,EAAG,MAAM,CAAC;IAGxB,eAAe,EAAG,MAAM,CAAC;IAGzB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACvC;AAED,qBAAa,kBAAkB;IAG7B,YAAY,EAAG,MAAM,CAAC;IAItB,SAAS,EAAG,MAAM,CAAC;IAInB,IAAI,EAAG,sBAAsB,CAAC;IAI9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAKD,qBAAa,qBAAqB;IAGhC,cAAc,EAAG,MAAM,CAAC;IAKxB,YAAY,EAAG,kBAAkB,EAAE,CAAC;CACrC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NotifyEventRequestDto = exports.NotifyEventItemDto = exports.NotifyEventItemDataDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
class NotifyEventItemDataDto {
|
|
16
|
+
}
|
|
17
|
+
exports.NotifyEventItemDataDto = NotifyEventItemDataDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], NotifyEventItemDataDto.prototype, "version", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], NotifyEventItemDataDto.prototype, "reg_type", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], NotifyEventItemDataDto.prototype, "reg_event_type", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], NotifyEventItemDataDto.prototype, "reg_record_type", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], NotifyEventItemDataDto.prototype, "reg_records", void 0);
|
|
38
|
+
class NotifyEventItemDto {
|
|
39
|
+
}
|
|
40
|
+
exports.NotifyEventItemDto = NotifyEventItemDto;
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_validator_1.MaxLength)(99),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], NotifyEventItemDto.prototype, "reference_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, class_validator_1.Matches)(/^\d{4}-\d{2}-\d{2}T[\d:.+-]+$/),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], NotifyEventItemDto.prototype, "timestamp", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.ValidateNested)(),
|
|
53
|
+
(0, class_transformer_1.Type)(() => NotifyEventItemDataDto),
|
|
54
|
+
__metadata("design:type", NotifyEventItemDataDto)
|
|
55
|
+
], NotifyEventItemDto.prototype, "data", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], NotifyEventItemDto.prototype, "locale", void 0);
|
|
61
|
+
class NotifyEventRequestDto {
|
|
62
|
+
}
|
|
63
|
+
exports.NotifyEventRequestDto = NotifyEventRequestDto;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.IsString)(),
|
|
66
|
+
(0, class_validator_1.MaxLength)(99),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], NotifyEventRequestDto.prototype, "transaction_id", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsArray)(),
|
|
71
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
72
|
+
(0, class_transformer_1.Type)(() => NotifyEventItemDto),
|
|
73
|
+
__metadata("design:type", Array)
|
|
74
|
+
], NotifyEventRequestDto.prototype, "notify_event", void 0);
|
|
75
|
+
//# sourceMappingURL=registry-notify.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-notify.dto.js","sourceRoot":"","sources":["../../src/dtos/registry-notify.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,yDAAyC;AAEzC,MAAa,sBAAsB;CAelC;AAfD,wDAeC;AAbC;IADC,IAAA,0BAAQ,GAAE;;uDACM;AAGjB;IADC,IAAA,0BAAQ,GAAE;;wDACO;AAGlB;IADC,IAAA,0BAAQ,GAAE;;8DACa;AAGxB;IADC,IAAA,0BAAQ,GAAE;;+DACc;AAGzB;IADC,IAAA,4BAAU,GAAE;;2DACyB;AAGxC,MAAa,kBAAkB;CAgB9B;AAhBD,gDAgBC;AAbC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;wDACQ;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,+BAA+B,CAAC;;qDACtB;AAInB;IAFC,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;8BAC5B,sBAAsB;gDAAC;AAI9B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACK;AAMlB,MAAa,qBAAqB;CASjC;AATD,sDASC;AANC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;;6DACU;AAKxB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;;2DACK"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare class SearchCriteriaDto {
|
|
2
|
+
version: string;
|
|
3
|
+
reg_type: string;
|
|
4
|
+
reg_record_type: string;
|
|
5
|
+
query_type: string;
|
|
6
|
+
query: Record<string, unknown>;
|
|
7
|
+
sort?: Array<{
|
|
8
|
+
attribute_name: string;
|
|
9
|
+
sort_order: string;
|
|
10
|
+
}>;
|
|
11
|
+
pagination?: {
|
|
12
|
+
page_size: number;
|
|
13
|
+
page_number: number;
|
|
14
|
+
};
|
|
15
|
+
consent?: Record<string, unknown>;
|
|
16
|
+
authorize?: Record<string, unknown>;
|
|
17
|
+
locale?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class SearchRequestItemDto {
|
|
20
|
+
reference_id: string;
|
|
21
|
+
timestamp: string;
|
|
22
|
+
search_criteria: SearchCriteriaDto;
|
|
23
|
+
}
|
|
24
|
+
export declare class SearchRequestDto {
|
|
25
|
+
transaction_id: string;
|
|
26
|
+
search_request: SearchRequestItemDto[];
|
|
27
|
+
}
|
|
28
|
+
export declare class RegRecordsDataDto {
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
export declare class SearchResponseItemDataDto {
|
|
32
|
+
version: string;
|
|
33
|
+
reg_type: string;
|
|
34
|
+
reg_record_type: string;
|
|
35
|
+
reg_records: RegRecordsDataDto;
|
|
36
|
+
}
|
|
37
|
+
export declare class SearchResponseItemDto {
|
|
38
|
+
reference_id: string;
|
|
39
|
+
timestamp: string;
|
|
40
|
+
status: string;
|
|
41
|
+
status_reason_code?: string;
|
|
42
|
+
status_reason_message?: string;
|
|
43
|
+
data?: SearchResponseItemDataDto;
|
|
44
|
+
pagination?: {
|
|
45
|
+
page_size: number;
|
|
46
|
+
page_number: number;
|
|
47
|
+
total_count: number;
|
|
48
|
+
};
|
|
49
|
+
locale?: string;
|
|
50
|
+
}
|
|
51
|
+
export declare class SearchResponseDto {
|
|
52
|
+
transaction_id: string;
|
|
53
|
+
correlation_id: string;
|
|
54
|
+
search_response: SearchResponseItemDto[];
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry-search.dto.d.ts","sourceRoot":"","sources":["../../src/dtos/registry-search.dto.ts"],"names":[],"mappings":"AAWA,qBAAa,iBAAiB;IAE5B,OAAO,EAAG,MAAM,CAAC;IAGjB,QAAQ,EAAG,MAAM,CAAC;IAGlB,eAAe,EAAG,MAAM,CAAC;IAGzB,UAAU,EAAG,MAAM,CAAC;IAGpB,KAAK,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIhC,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,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