tychat-contracts 1.6.75 → 1.6.76
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/analytics/event-analytic.enum.d.ts +1 -1
- package/dist/analytics/event-analytic.enum.d.ts.map +1 -1
- package/dist/analytics/event-analytic.enum.js +4 -0
- package/dist/anamneses/normalize-anamnesis-access-token.d.ts +9 -0
- package/dist/anamneses/normalize-anamnesis-access-token.d.ts.map +1 -0
- package/dist/anamneses/normalize-anamnesis-access-token.js +21 -0
- package/dist/anamneses/normalize-anamnesis-access-token.spec.d.ts +2 -0
- package/dist/anamneses/normalize-anamnesis-access-token.spec.d.ts.map +1 -0
- package/dist/anamneses/normalize-anamnesis-access-token.spec.js +18 -0
- package/dist/appointments/appointment-status.dto.d.ts +1 -1
- package/dist/appointments/appointment-status.dto.d.ts.map +1 -1
- package/dist/appointments/appointment-status.dto.js +1 -0
- package/dist/appointments/index.d.ts +2 -0
- package/dist/appointments/index.d.ts.map +1 -1
- package/dist/appointments/index.js +2 -0
- package/dist/appointments/schedule-block-rmq-patterns.d.ts +7 -0
- package/dist/appointments/schedule-block-rmq-patterns.d.ts.map +1 -0
- package/dist/appointments/schedule-block-rmq-patterns.js +9 -0
- package/dist/appointments/schedule-block.dto.d.ts +54 -0
- package/dist/appointments/schedule-block.dto.d.ts.map +1 -0
- package/dist/appointments/schedule-block.dto.js +223 -0
- package/dist/fiscal/enqueue-nfe.dto.d.ts +0 -3
- package/dist/fiscal/enqueue-nfe.dto.d.ts.map +1 -1
- package/dist/fiscal/enqueue-nfe.dto.js +0 -14
- package/dist/fiscal/fiscal-rmq-patterns.d.ts +0 -1
- package/dist/fiscal/fiscal-rmq-patterns.d.ts.map +1 -1
- package/dist/fiscal/fiscal-rmq-patterns.js +1 -2
- package/dist/tenants/index.d.ts +0 -1
- package/dist/tenants/index.d.ts.map +1 -1
- package/dist/tenants/index.js +0 -1
- package/package.json +1 -1
- package/src/analytics/event-analytic.enum.ts +5 -0
- package/src/appointments/appointment-status.dto.ts +1 -0
- package/src/appointments/index.ts +3 -1
- package/src/appointments/schedule-block-rmq-patterns.ts +6 -0
- package/src/appointments/schedule-block.dto.ts +155 -0
- package/src/campaigns/campaign-template-header-media.dto.ts +25 -25
- package/src/campaigns/campaign-template.dto.ts +45 -45
- package/src/campaigns/create-campaign.dto.ts +80 -80
- package/src/fiscal/enqueue-nfe.dto.ts +1 -22
- package/src/fiscal/fiscal-rmq-patterns.ts +0 -1
- package/src/patients/index.ts +10 -10
- package/src/tenants/anamnesis-public-frontend-url.spec.ts +45 -45
- package/src/tenants/anamnesis-public-frontend-url.ts +61 -61
- package/src/tenants/index.ts +0 -1
- package/dist/connections/connections.dto.d.ts +0 -53
- package/dist/connections/connections.dto.d.ts.map +0 -1
- package/dist/connections/connections.dto.js +0 -376
- package/dist/tenants/tenant-fiscal-profile.dto.d.ts +0 -27
- package/dist/tenants/tenant-fiscal-profile.dto.d.ts.map +0 -1
- package/dist/tenants/tenant-fiscal-profile.dto.js +0 -128
- package/src/tenants/tenant-fiscal-profile.dto.ts +0 -85
|
@@ -1,128 +0,0 @@
|
|
|
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.TenantFiscalProfileResponseDto = exports.UpsertTenantFiscalProfileDto = exports.GetTenantFiscalProfileDto = exports.TenantFiscalProfileDto = exports.TenantFiscalProfileCompanyDto = exports.TENANT_FISCAL_PROFILE_UPSERT = exports.TENANT_FISCAL_PROFILE_GET = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const class_transformer_1 = require("class-transformer");
|
|
16
|
-
exports.TENANT_FISCAL_PROFILE_GET = 'tenant.fiscalProfile.get';
|
|
17
|
-
exports.TENANT_FISCAL_PROFILE_UPSERT = 'tenant.fiscalProfile.upsert';
|
|
18
|
-
class TenantFiscalProfileCompanyDto {
|
|
19
|
-
cpfCnpj;
|
|
20
|
-
razaoSocial;
|
|
21
|
-
nomeFantasia;
|
|
22
|
-
email;
|
|
23
|
-
telefone;
|
|
24
|
-
}
|
|
25
|
-
exports.TenantFiscalProfileCompanyDto = TenantFiscalProfileCompanyDto;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'CPF/CNPJ (somente números)' }),
|
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], TenantFiscalProfileCompanyDto.prototype, "cpfCnpj", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Razão social' }),
|
|
34
|
-
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
(0, class_validator_1.IsString)(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], TenantFiscalProfileCompanyDto.prototype, "razaoSocial", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Nome fantasia' }),
|
|
40
|
-
(0, class_validator_1.IsOptional)(),
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], TenantFiscalProfileCompanyDto.prototype, "nomeFantasia", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'E-mail' }),
|
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
|
47
|
-
(0, class_validator_1.IsString)(),
|
|
48
|
-
__metadata("design:type", String)
|
|
49
|
-
], TenantFiscalProfileCompanyDto.prototype, "email", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Telefone' }),
|
|
52
|
-
(0, class_validator_1.IsOptional)(),
|
|
53
|
-
(0, class_validator_1.IsString)(),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], TenantFiscalProfileCompanyDto.prototype, "telefone", void 0);
|
|
56
|
-
class TenantFiscalProfileDto {
|
|
57
|
-
company;
|
|
58
|
-
acbrCompanyPayload;
|
|
59
|
-
fiscalDefaults;
|
|
60
|
-
}
|
|
61
|
-
exports.TenantFiscalProfileDto = TenantFiscalProfileDto;
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Dados principais da empresa do tenant (SaaS: 1 tenant = 1 empresa fiscal)' }),
|
|
64
|
-
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(0, class_validator_1.ValidateNested)(),
|
|
66
|
-
(0, class_transformer_1.Type)(() => TenantFiscalProfileCompanyDto),
|
|
67
|
-
__metadata("design:type", TenantFiscalProfileCompanyDto)
|
|
68
|
-
], TenantFiscalProfileDto.prototype, "company", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Payload bruto compatível com endpoints /empresas (ACBr API)' }),
|
|
71
|
-
(0, class_validator_1.IsOptional)(),
|
|
72
|
-
(0, class_validator_1.IsObject)(),
|
|
73
|
-
__metadata("design:type", Object)
|
|
74
|
-
], TenantFiscalProfileDto.prototype, "acbrCompanyPayload", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Defaults e preferências do módulo fiscal (livre)' }),
|
|
77
|
-
(0, class_validator_1.IsOptional)(),
|
|
78
|
-
(0, class_validator_1.IsObject)(),
|
|
79
|
-
__metadata("design:type", Object)
|
|
80
|
-
], TenantFiscalProfileDto.prototype, "fiscalDefaults", void 0);
|
|
81
|
-
class GetTenantFiscalProfileDto {
|
|
82
|
-
tenantSlug;
|
|
83
|
-
}
|
|
84
|
-
exports.GetTenantFiscalProfileDto = GetTenantFiscalProfileDto;
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, class_validator_1.IsString)(),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], GetTenantFiscalProfileDto.prototype, "tenantSlug", void 0);
|
|
89
|
-
class UpsertTenantFiscalProfileDto {
|
|
90
|
-
tenantSlug;
|
|
91
|
-
profile;
|
|
92
|
-
}
|
|
93
|
-
exports.UpsertTenantFiscalProfileDto = UpsertTenantFiscalProfileDto;
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, class_validator_1.IsString)(),
|
|
96
|
-
__metadata("design:type", String)
|
|
97
|
-
], UpsertTenantFiscalProfileDto.prototype, "tenantSlug", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, class_validator_1.IsOptional)(),
|
|
100
|
-
(0, class_validator_1.ValidateNested)(),
|
|
101
|
-
(0, class_transformer_1.Type)(() => TenantFiscalProfileDto),
|
|
102
|
-
__metadata("design:type", TenantFiscalProfileDto)
|
|
103
|
-
], UpsertTenantFiscalProfileDto.prototype, "profile", void 0);
|
|
104
|
-
class TenantFiscalProfileResponseDto {
|
|
105
|
-
tenantId;
|
|
106
|
-
tenantSlug;
|
|
107
|
-
profile;
|
|
108
|
-
}
|
|
109
|
-
exports.TenantFiscalProfileResponseDto = TenantFiscalProfileResponseDto;
|
|
110
|
-
__decorate([
|
|
111
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
112
|
-
(0, class_validator_1.IsOptional)(),
|
|
113
|
-
(0, class_validator_1.IsUUID)(),
|
|
114
|
-
__metadata("design:type", String)
|
|
115
|
-
], TenantFiscalProfileResponseDto.prototype, "tenantId", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
118
|
-
(0, class_validator_1.IsOptional)(),
|
|
119
|
-
(0, class_validator_1.IsString)(),
|
|
120
|
-
__metadata("design:type", String)
|
|
121
|
-
], TenantFiscalProfileResponseDto.prototype, "tenantSlug", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
(0, swagger_1.ApiPropertyOptional)(),
|
|
124
|
-
(0, class_validator_1.IsOptional)(),
|
|
125
|
-
(0, class_validator_1.ValidateNested)(),
|
|
126
|
-
(0, class_transformer_1.Type)(() => TenantFiscalProfileDto),
|
|
127
|
-
__metadata("design:type", TenantFiscalProfileDto)
|
|
128
|
-
], TenantFiscalProfileResponseDto.prototype, "profile", void 0);
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ApiPropertyOptional } from '@nestjs/swagger';
|
|
2
|
-
import { IsObject, IsOptional, IsString, IsUUID, ValidateNested } from 'class-validator';
|
|
3
|
-
import { Type } from 'class-transformer';
|
|
4
|
-
|
|
5
|
-
export const TENANT_FISCAL_PROFILE_GET = 'tenant.fiscalProfile.get';
|
|
6
|
-
export const TENANT_FISCAL_PROFILE_UPSERT = 'tenant.fiscalProfile.upsert';
|
|
7
|
-
|
|
8
|
-
export class TenantFiscalProfileCompanyDto {
|
|
9
|
-
@ApiPropertyOptional({ description: 'CPF/CNPJ (somente números)' })
|
|
10
|
-
@IsOptional()
|
|
11
|
-
@IsString()
|
|
12
|
-
cpfCnpj?: string;
|
|
13
|
-
|
|
14
|
-
@ApiPropertyOptional({ description: 'Razão social' })
|
|
15
|
-
@IsOptional()
|
|
16
|
-
@IsString()
|
|
17
|
-
razaoSocial?: string;
|
|
18
|
-
|
|
19
|
-
@ApiPropertyOptional({ description: 'Nome fantasia' })
|
|
20
|
-
@IsOptional()
|
|
21
|
-
@IsString()
|
|
22
|
-
nomeFantasia?: string;
|
|
23
|
-
|
|
24
|
-
@ApiPropertyOptional({ description: 'E-mail' })
|
|
25
|
-
@IsOptional()
|
|
26
|
-
@IsString()
|
|
27
|
-
email?: string;
|
|
28
|
-
|
|
29
|
-
@ApiPropertyOptional({ description: 'Telefone' })
|
|
30
|
-
@IsOptional()
|
|
31
|
-
@IsString()
|
|
32
|
-
telefone?: string;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export class TenantFiscalProfileDto {
|
|
36
|
-
@ApiPropertyOptional({ description: 'Dados principais da empresa do tenant (SaaS: 1 tenant = 1 empresa fiscal)' })
|
|
37
|
-
@IsOptional()
|
|
38
|
-
@ValidateNested()
|
|
39
|
-
@Type(() => TenantFiscalProfileCompanyDto)
|
|
40
|
-
company?: TenantFiscalProfileCompanyDto;
|
|
41
|
-
|
|
42
|
-
@ApiPropertyOptional({ description: 'Payload bruto compatível com endpoints /empresas (ACBr API)' })
|
|
43
|
-
@IsOptional()
|
|
44
|
-
@IsObject()
|
|
45
|
-
acbrCompanyPayload?: Record<string, unknown>;
|
|
46
|
-
|
|
47
|
-
@ApiPropertyOptional({ description: 'Defaults e preferências do módulo fiscal (livre)' })
|
|
48
|
-
@IsOptional()
|
|
49
|
-
@IsObject()
|
|
50
|
-
fiscalDefaults?: Record<string, unknown>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export class GetTenantFiscalProfileDto {
|
|
54
|
-
@IsString()
|
|
55
|
-
tenantSlug: string;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export class UpsertTenantFiscalProfileDto {
|
|
59
|
-
@IsString()
|
|
60
|
-
tenantSlug: string;
|
|
61
|
-
|
|
62
|
-
@IsOptional()
|
|
63
|
-
@ValidateNested()
|
|
64
|
-
@Type(() => TenantFiscalProfileDto)
|
|
65
|
-
profile?: TenantFiscalProfileDto;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export class TenantFiscalProfileResponseDto {
|
|
69
|
-
@ApiPropertyOptional()
|
|
70
|
-
@IsOptional()
|
|
71
|
-
@IsUUID()
|
|
72
|
-
tenantId?: string;
|
|
73
|
-
|
|
74
|
-
@ApiPropertyOptional()
|
|
75
|
-
@IsOptional()
|
|
76
|
-
@IsString()
|
|
77
|
-
tenantSlug?: string;
|
|
78
|
-
|
|
79
|
-
@ApiPropertyOptional()
|
|
80
|
-
@IsOptional()
|
|
81
|
-
@ValidateNested()
|
|
82
|
-
@Type(() => TenantFiscalProfileDto)
|
|
83
|
-
profile?: TenantFiscalProfileDto;
|
|
84
|
-
}
|
|
85
|
-
|