@candesk/contracts 6.32.0 → 6.33.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/dist/events/audit/audit-recorded.interface.d.ts +11 -0
- package/dist/events/audit/audit-recorded.interface.js +2 -0
- package/dist/events/audit/audit.events.d.ts +3 -0
- package/dist/events/audit/audit.events.js +6 -0
- package/dist/events/audit/index.d.ts +2 -0
- package/dist/events/audit/index.js +18 -0
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.js +1 -0
- package/dist/events/queues.d.ts +1 -0
- package/dist/events/queues.js +2 -1
- package/dist/gen/audit.d.ts +28 -0
- package/dist/gen/audit.js +11 -0
- package/dist/nest/audit.d.ts +35 -0
- package/dist/nest/audit.js +31 -0
- package/dist/proto/paths.d.ts +1 -0
- package/dist/proto/paths.js +2 -1
- package/package.json +1 -1
- package/proto/audit.proto +33 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./audit.events"), exports);
|
|
18
|
+
__exportStar(require("./audit-recorded.interface"), exports);
|
package/dist/events/index.d.ts
CHANGED
package/dist/events/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./audit"), exports);
|
|
17
18
|
__exportStar(require("./auth"), exports);
|
|
18
19
|
__exportStar(require("./kyc"), exports);
|
|
19
20
|
__exportStar(require("./payment"), exports);
|
package/dist/events/queues.d.ts
CHANGED
package/dist/events/queues.js
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const protobufPackage = "audit.v1";
|
|
2
|
+
export declare const protobufFileName = "audit.proto";
|
|
3
|
+
export interface ListAuditEntriesRequest {
|
|
4
|
+
personId?: string | undefined;
|
|
5
|
+
actions: string[];
|
|
6
|
+
from?: string | undefined;
|
|
7
|
+
to?: string | undefined;
|
|
8
|
+
cursor?: string | undefined;
|
|
9
|
+
limit: number;
|
|
10
|
+
}
|
|
11
|
+
export interface ListAuditEntriesResponse {
|
|
12
|
+
entries: AuditEntry[];
|
|
13
|
+
nextCursor?: string | undefined;
|
|
14
|
+
}
|
|
15
|
+
export interface AuditEntry {
|
|
16
|
+
id: string;
|
|
17
|
+
occurredAt: string;
|
|
18
|
+
actorId?: string | undefined;
|
|
19
|
+
actorRole?: string | undefined;
|
|
20
|
+
action: string;
|
|
21
|
+
targetType?: string | undefined;
|
|
22
|
+
targetId?: string | undefined;
|
|
23
|
+
details: string;
|
|
24
|
+
ip?: string | undefined;
|
|
25
|
+
}
|
|
26
|
+
export interface AuditService {
|
|
27
|
+
listAuditEntries(request: ListAuditEntriesRequest): Promise<ListAuditEntriesResponse>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.18.0
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: audit.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
exports.protobufPackage = "audit.v1";
|
|
11
|
+
exports.protobufFileName = "audit.proto";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
export declare const protobufPackage = "audit.v1";
|
|
3
|
+
export declare const protobufFileName = "audit.proto";
|
|
4
|
+
export interface ListAuditEntriesRequest {
|
|
5
|
+
personId?: string | undefined;
|
|
6
|
+
actions: string[];
|
|
7
|
+
from?: string | undefined;
|
|
8
|
+
to?: string | undefined;
|
|
9
|
+
cursor?: string | undefined;
|
|
10
|
+
limit: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ListAuditEntriesResponse {
|
|
13
|
+
entries: AuditEntry[];
|
|
14
|
+
nextCursor?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export interface AuditEntry {
|
|
17
|
+
id: string;
|
|
18
|
+
occurredAt: string;
|
|
19
|
+
actorId?: string | undefined;
|
|
20
|
+
actorRole?: string | undefined;
|
|
21
|
+
action: string;
|
|
22
|
+
targetType?: string | undefined;
|
|
23
|
+
targetId?: string | undefined;
|
|
24
|
+
details: string;
|
|
25
|
+
ip?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
export declare const AUDIT_V1_PACKAGE_NAME = "audit.v1";
|
|
28
|
+
export interface AuditServiceClient {
|
|
29
|
+
listAuditEntries(request: ListAuditEntriesRequest): Observable<ListAuditEntriesResponse>;
|
|
30
|
+
}
|
|
31
|
+
export interface AuditServiceController {
|
|
32
|
+
listAuditEntries(request: ListAuditEntriesRequest): Promise<ListAuditEntriesResponse> | Observable<ListAuditEntriesResponse> | ListAuditEntriesResponse;
|
|
33
|
+
}
|
|
34
|
+
export declare function AuditServiceControllerMethods(): (constructor: Function) => void;
|
|
35
|
+
export declare const AUDIT_SERVICE_NAME = "AuditService";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.18.0
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: audit.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.AUDIT_SERVICE_NAME = exports.AUDIT_V1_PACKAGE_NAME = exports.protobufFileName = exports.protobufPackage = void 0;
|
|
9
|
+
exports.AuditServiceControllerMethods = AuditServiceControllerMethods;
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
12
|
+
exports.protobufPackage = "audit.v1";
|
|
13
|
+
exports.protobufFileName = "audit.proto";
|
|
14
|
+
exports.AUDIT_V1_PACKAGE_NAME = "audit.v1";
|
|
15
|
+
function AuditServiceControllerMethods() {
|
|
16
|
+
return function (constructor) {
|
|
17
|
+
const grpcMethods = ["listAuditEntries"];
|
|
18
|
+
for (const method of grpcMethods) {
|
|
19
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
20
|
+
(0, microservices_1.GrpcMethod)("AuditService", method)(constructor.prototype[method], method, descriptor);
|
|
21
|
+
Object.defineProperty(constructor.prototype, method, descriptor);
|
|
22
|
+
}
|
|
23
|
+
const grpcStreamMethods = [];
|
|
24
|
+
for (const method of grpcStreamMethods) {
|
|
25
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
26
|
+
(0, microservices_1.GrpcStreamMethod)("AuditService", method)(constructor.prototype[method], method, descriptor);
|
|
27
|
+
Object.defineProperty(constructor.prototype, method, descriptor);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.AUDIT_SERVICE_NAME = "AuditService";
|
package/dist/proto/paths.d.ts
CHANGED
package/dist/proto/paths.js
CHANGED
|
@@ -10,5 +10,6 @@ exports.PROTO_PATHS = {
|
|
|
10
10
|
MEDIA: (0, path_1.join)(__dirname, '../../proto/media.proto'),
|
|
11
11
|
KYC: (0, path_1.join)(__dirname, '../../proto/kyc.proto'),
|
|
12
12
|
TREATMENT: (0, path_1.join)(__dirname, '../../proto/treatment.proto'),
|
|
13
|
-
PAYMENT: (0, path_1.join)(__dirname, '../../proto/payment.proto')
|
|
13
|
+
PAYMENT: (0, path_1.join)(__dirname, '../../proto/payment.proto'),
|
|
14
|
+
AUDIT: (0, path_1.join)(__dirname, '../../proto/audit.proto')
|
|
14
15
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package audit.v1;
|
|
4
|
+
|
|
5
|
+
service AuditService {
|
|
6
|
+
rpc ListAuditEntries (ListAuditEntriesRequest) returns (ListAuditEntriesResponse);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message ListAuditEntriesRequest {
|
|
10
|
+
optional string person_id = 1;
|
|
11
|
+
repeated string actions = 2;
|
|
12
|
+
optional string from = 3;
|
|
13
|
+
optional string to = 4;
|
|
14
|
+
optional string cursor = 5;
|
|
15
|
+
int32 limit = 6;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
message ListAuditEntriesResponse {
|
|
19
|
+
repeated AuditEntry entries = 1;
|
|
20
|
+
optional string next_cursor = 2;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message AuditEntry {
|
|
24
|
+
string id = 1;
|
|
25
|
+
string occurred_at = 2;
|
|
26
|
+
optional string actor_id = 3;
|
|
27
|
+
optional string actor_role = 4;
|
|
28
|
+
string action = 5;
|
|
29
|
+
optional string target_type = 6;
|
|
30
|
+
optional string target_id = 7;
|
|
31
|
+
string details = 8;
|
|
32
|
+
optional string ip = 9;
|
|
33
|
+
}
|