tychat-contracts 1.3.19 → 1.3.21
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/configurations/plan-summary.dto.d.ts +1 -0
- package/dist/configurations/plan-summary.dto.d.ts.map +1 -1
- package/dist/configurations/plan-summary.dto.js +5 -0
- package/dist/configurations/tenant-limits-summary.dto.d.ts +1 -0
- package/dist/configurations/tenant-limits-summary.dto.d.ts.map +1 -1
- package/dist/configurations/tenant-limits-summary.dto.js +5 -0
- package/dist/legal-terms/legal-term-rmq-patterns.d.ts +2 -0
- package/dist/legal-terms/legal-term-rmq-patterns.d.ts.map +1 -1
- package/dist/legal-terms/legal-term-rmq-patterns.js +3 -1
- package/package.json +1 -1
- package/src/configurations/plan-summary.dto.ts +3 -0
- package/src/configurations/tenant-limits-summary.dto.ts +3 -0
- package/src/legal-terms/legal-term-rmq-patterns.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/plan-summary.dto.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,cAAc;IAEzB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,cAAc,EAAE,MAAM,CAAC;IAGvB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAG9B,oBAAoB,EAAE,MAAM,CAAC;IAG7B,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAGtB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,aAAa,EAAE,MAAM,CAAC;IAGtB,eAAe,EAAE,MAAM,CAAC;IAGxB,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
1
|
+
{"version":3,"file":"plan-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/plan-summary.dto.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,cAAc;IAEzB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,cAAc,EAAE,MAAM,CAAC;IAGvB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,QAAQ,GAAG,UAAU,CAAC;IAG9B,oBAAoB,EAAE,MAAM,CAAC;IAG7B,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAGtB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,aAAa,EAAE,MAAM,CAAC;IAGtB,eAAe,EAAE,MAAM,CAAC;IAGxB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,SAAS,CAAC,EAAE,IAAI,CAAC;IAGjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -28,6 +28,7 @@ class PlanSummaryDto {
|
|
|
28
28
|
maxAdministrators;
|
|
29
29
|
maxProcedures;
|
|
30
30
|
monthlyAiTokens;
|
|
31
|
+
monthlyLegalTerms;
|
|
31
32
|
createdAt;
|
|
32
33
|
updatedAt;
|
|
33
34
|
}
|
|
@@ -84,6 +85,10 @@ __decorate([
|
|
|
84
85
|
(0, swagger_1.ApiProperty)({ description: 'Monthly AI token allowance', example: 5000 }),
|
|
85
86
|
__metadata("design:type", Number)
|
|
86
87
|
], PlanSummaryDto.prototype, "monthlyAiTokens", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, swagger_1.ApiProperty)({ description: 'Max legal term dispatches per calendar month (UTC)', example: 100 }),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], PlanSummaryDto.prototype, "monthlyLegalTerms", void 0);
|
|
87
92
|
__decorate([
|
|
88
93
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
89
94
|
__metadata("design:type", Date)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant-limits-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/tenant-limits-summary.dto.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,sBAAsB;IAEjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGpC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"tenant-limits-summary.dto.d.ts","sourceRoot":"","sources":["../../src/configurations/tenant-limits-summary.dto.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,qBAAa,sBAAsB;IAEjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAG3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAG7B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGpC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAGxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -23,6 +23,7 @@ class TenantLimitsSummaryDto {
|
|
|
23
23
|
maxProcedures;
|
|
24
24
|
maxWhatsappInstances;
|
|
25
25
|
maxUnits;
|
|
26
|
+
monthlyLegalTerms;
|
|
26
27
|
}
|
|
27
28
|
exports.TenantLimitsSummaryDto = TenantLimitsSummaryDto;
|
|
28
29
|
__decorate([
|
|
@@ -57,3 +58,7 @@ __decorate([
|
|
|
57
58
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Override max units' }),
|
|
58
59
|
__metadata("design:type", Object)
|
|
59
60
|
], TenantLimitsSummaryDto.prototype, "maxUnits", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Override max legal term dispatches per month (UTC)' }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], TenantLimitsSummaryDto.prototype, "monthlyLegalTerms", void 0);
|
|
@@ -2,6 +2,8 @@ export declare const LEGAL_TERM_TEMPLATE_GET = "legalTerm.template.get";
|
|
|
2
2
|
export declare const LEGAL_TERM_TEMPLATE_UPSERT = "legalTerm.template.upsert";
|
|
3
3
|
export declare const LEGAL_TERM_DISPATCH_CREATE = "legalTerm.dispatch.create";
|
|
4
4
|
export declare const LEGAL_TERM_DISPATCH_LIST_BY_PATIENT = "legalTerm.dispatch.listByPatient";
|
|
5
|
+
/** Conta dispatches no mês civil UTC (status sent/created); usado para cota mensal. */
|
|
6
|
+
export declare const LEGAL_TERM_DISPATCH_COUNT_MONTHLY = "legalTerm.dispatch.countMonthly";
|
|
5
7
|
export declare const SIGNATURE_LEGAL_ENVELOPE_CREATE = "signature.legalEnvelope.create";
|
|
6
8
|
/** Resumo de documentos por IDs (tenant + escopo); usado pela API para enriquecer dispatches. */
|
|
7
9
|
export declare const SIGNATURE_DOCUMENTS_SUMMARY_BY_IDS = "signature.documents.summaryByIds";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legal-term-rmq-patterns.d.ts","sourceRoot":"","sources":["../../src/legal-terms/legal-term-rmq-patterns.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAChE,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AACtE,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AACtE,eAAO,MAAM,mCAAmC,qCAAqC,CAAC;AACtF,eAAO,MAAM,+BAA+B,mCAAmC,CAAC;AAChF,iGAAiG;AACjG,eAAO,MAAM,kCAAkC,qCAAqC,CAAC"}
|
|
1
|
+
{"version":3,"file":"legal-term-rmq-patterns.d.ts","sourceRoot":"","sources":["../../src/legal-terms/legal-term-rmq-patterns.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,2BAA2B,CAAC;AAChE,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AACtE,eAAO,MAAM,0BAA0B,8BAA8B,CAAC;AACtE,eAAO,MAAM,mCAAmC,qCAAqC,CAAC;AACtF,uFAAuF;AACvF,eAAO,MAAM,iCAAiC,oCAAoC,CAAC;AACnF,eAAO,MAAM,+BAA+B,mCAAmC,CAAC;AAChF,iGAAiG;AACjG,eAAO,MAAM,kCAAkC,qCAAqC,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SIGNATURE_DOCUMENTS_SUMMARY_BY_IDS = exports.SIGNATURE_LEGAL_ENVELOPE_CREATE = exports.LEGAL_TERM_DISPATCH_LIST_BY_PATIENT = exports.LEGAL_TERM_DISPATCH_CREATE = exports.LEGAL_TERM_TEMPLATE_UPSERT = exports.LEGAL_TERM_TEMPLATE_GET = void 0;
|
|
3
|
+
exports.SIGNATURE_DOCUMENTS_SUMMARY_BY_IDS = exports.SIGNATURE_LEGAL_ENVELOPE_CREATE = exports.LEGAL_TERM_DISPATCH_COUNT_MONTHLY = exports.LEGAL_TERM_DISPATCH_LIST_BY_PATIENT = exports.LEGAL_TERM_DISPATCH_CREATE = exports.LEGAL_TERM_TEMPLATE_UPSERT = exports.LEGAL_TERM_TEMPLATE_GET = void 0;
|
|
4
4
|
exports.LEGAL_TERM_TEMPLATE_GET = 'legalTerm.template.get';
|
|
5
5
|
exports.LEGAL_TERM_TEMPLATE_UPSERT = 'legalTerm.template.upsert';
|
|
6
6
|
exports.LEGAL_TERM_DISPATCH_CREATE = 'legalTerm.dispatch.create';
|
|
7
7
|
exports.LEGAL_TERM_DISPATCH_LIST_BY_PATIENT = 'legalTerm.dispatch.listByPatient';
|
|
8
|
+
/** Conta dispatches no mês civil UTC (status sent/created); usado para cota mensal. */
|
|
9
|
+
exports.LEGAL_TERM_DISPATCH_COUNT_MONTHLY = 'legalTerm.dispatch.countMonthly';
|
|
8
10
|
exports.SIGNATURE_LEGAL_ENVELOPE_CREATE = 'signature.legalEnvelope.create';
|
|
9
11
|
/** Resumo de documentos por IDs (tenant + escopo); usado pela API para enriquecer dispatches. */
|
|
10
12
|
exports.SIGNATURE_DOCUMENTS_SUMMARY_BY_IDS = 'signature.documents.summaryByIds';
|
package/package.json
CHANGED
|
@@ -43,6 +43,9 @@ export class PlanSummaryDto {
|
|
|
43
43
|
@ApiProperty({ description: 'Monthly AI token allowance', example: 5000 })
|
|
44
44
|
monthlyAiTokens: number;
|
|
45
45
|
|
|
46
|
+
@ApiProperty({ description: 'Max legal term dispatches per calendar month (UTC)', example: 100 })
|
|
47
|
+
monthlyLegalTerms: number;
|
|
48
|
+
|
|
46
49
|
@ApiPropertyOptional()
|
|
47
50
|
createdAt?: Date;
|
|
48
51
|
|
|
@@ -27,4 +27,7 @@ export class TenantLimitsSummaryDto {
|
|
|
27
27
|
|
|
28
28
|
@ApiPropertyOptional({ description: 'Override max units' })
|
|
29
29
|
maxUnits: number | null;
|
|
30
|
+
|
|
31
|
+
@ApiPropertyOptional({ description: 'Override max legal term dispatches per month (UTC)' })
|
|
32
|
+
monthlyLegalTerms: number | null;
|
|
30
33
|
}
|
|
@@ -2,6 +2,8 @@ export const LEGAL_TERM_TEMPLATE_GET = 'legalTerm.template.get';
|
|
|
2
2
|
export const LEGAL_TERM_TEMPLATE_UPSERT = 'legalTerm.template.upsert';
|
|
3
3
|
export const LEGAL_TERM_DISPATCH_CREATE = 'legalTerm.dispatch.create';
|
|
4
4
|
export const LEGAL_TERM_DISPATCH_LIST_BY_PATIENT = 'legalTerm.dispatch.listByPatient';
|
|
5
|
+
/** Conta dispatches no mês civil UTC (status sent/created); usado para cota mensal. */
|
|
6
|
+
export const LEGAL_TERM_DISPATCH_COUNT_MONTHLY = 'legalTerm.dispatch.countMonthly';
|
|
5
7
|
export const SIGNATURE_LEGAL_ENVELOPE_CREATE = 'signature.legalEnvelope.create';
|
|
6
8
|
/** Resumo de documentos por IDs (tenant + escopo); usado pela API para enriquecer dispatches. */
|
|
7
9
|
export const SIGNATURE_DOCUMENTS_SUMMARY_BY_IDS = 'signature.documents.summaryByIds';
|