prismadoc 1.0.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.
Files changed (63) hide show
  1. package/README.md +425 -0
  2. package/dist/config.type.js +38 -0
  3. package/dist/entities/dto-generator.js +69 -0
  4. package/dist/entities/enum.js +40 -0
  5. package/dist/entities/field.js +192 -0
  6. package/dist/entities/generic.js +24 -0
  7. package/dist/entities/model.js +83 -0
  8. package/dist/entities/response-generator.js +30 -0
  9. package/dist/entities/validator.js +16 -0
  10. package/dist/field.type.js +22 -0
  11. package/dist/fields.ts +138 -0
  12. package/dist/file.js +27 -0
  13. package/dist/generic.dto.ts +13 -0
  14. package/dist/index.js +1 -0
  15. package/dist/index.ts +40 -0
  16. package/dist/main.js +155 -0
  17. package/dist/rules.js +35 -0
  18. package/dist/schemas/config.schema.json +136 -0
  19. package/dist/static.js +3 -0
  20. package/dist/types/account-agenda.ts +68 -0
  21. package/dist/types/account-two-factor-auth-log.ts +127 -0
  22. package/dist/types/account-two-factor-auth.ts +145 -0
  23. package/dist/types/account.ts +126 -0
  24. package/dist/types/admin.ts +68 -0
  25. package/dist/types/agenda-day-time-config.ts +113 -0
  26. package/dist/types/agenda-week-day-config.ts +68 -0
  27. package/dist/types/customer.ts +99 -0
  28. package/dist/types/dummy-many.ts +71 -0
  29. package/dist/types/dummy-unique.ts +68 -0
  30. package/dist/types/dummy.ts +68 -0
  31. package/dist/types/email-auth-code.ts +136 -0
  32. package/dist/types/file.ts +299 -0
  33. package/dist/types/firebase-config.ts +140 -0
  34. package/dist/types/knowledge-base-category.ts +91 -0
  35. package/dist/types/knowledge-base-post.ts +262 -0
  36. package/dist/types/kyc-attempt-details.ts +273 -0
  37. package/dist/types/kyc-attempt.ts +365 -0
  38. package/dist/types/kyc-config.ts +199 -0
  39. package/dist/types/kyc-document.ts +260 -0
  40. package/dist/types/meeting-guest.ts +185 -0
  41. package/dist/types/meeting.ts +205 -0
  42. package/dist/types/member.ts +99 -0
  43. package/dist/types/notification.ts +193 -0
  44. package/dist/types/otp-auth-code-request-log.ts +116 -0
  45. package/dist/types/otp-auth-code.ts +136 -0
  46. package/dist/types/owner.ts +68 -0
  47. package/dist/types/policy.ts +169 -0
  48. package/dist/types/push-notification.ts +77 -0
  49. package/dist/types/smtp-config.ts +188 -0
  50. package/dist/types/staff-role.ts +121 -0
  51. package/dist/types/staff.ts +99 -0
  52. package/dist/types/tenant-plan.ts +177 -0
  53. package/dist/types/tenant-role.ts +152 -0
  54. package/dist/types/tenant.ts +149 -0
  55. package/dist/types/ticket-message.ts +177 -0
  56. package/dist/types/ticket.ts +177 -0
  57. package/dist/types/user.ts +281 -0
  58. package/dist/types.js +1 -0
  59. package/dist/utils/helpers.js +146 -0
  60. package/dist/utils/loader.js +81 -0
  61. package/dist/utils/prisma-utils.js +73 -0
  62. package/dist/utils/propeties.static.js +2 -0
  63. package/package.json +45 -0
@@ -0,0 +1,99 @@
1
+ // AUTO-GERADO: NÃO EDITAR MANUALMENTE. SUJEITO A PAULADAS!
2
+ /* eslint-disable @typescript-eslint/no-namespace */
3
+ import { ApiProperty, IntersectionType } from "@nestjs/swagger";
4
+ import { IsString, IsNotEmpty } from "src/_nest/validators";
5
+
6
+ class RoleIdDto {
7
+ @ApiProperty({
8
+ type: "string",
9
+ example: "cmfxu4njg000008l52v7t8qze",
10
+ required: true,
11
+ })
12
+ @IsString()
13
+ @IsNotEmpty()
14
+ roleId!: string;
15
+ }
16
+
17
+ class MemberDto extends IntersectionType(RoleIdDto) {}
18
+
19
+ class MemberId {
20
+ @ApiProperty({
21
+ type: "string",
22
+ example: "cmfxu4njg000008l52v7t8qze",
23
+ required: true,
24
+ })
25
+ @IsString()
26
+ @IsNotEmpty()
27
+ memberId!: string;
28
+ }
29
+ class IdRes {
30
+ @ApiProperty({
31
+ type: "string",
32
+ example: "cmfxu4njg000008l52v7t8qze",
33
+ required: true,
34
+ })
35
+ id!: string;
36
+ }
37
+
38
+ class RoleIdRes {
39
+ @ApiProperty({
40
+ type: "string",
41
+ example: "cmfxu4njg000008l52v7t8qze",
42
+ required: true,
43
+ })
44
+ roleId!: string;
45
+ }
46
+
47
+ class CreatedAtRes {
48
+ @ApiProperty({
49
+ type: "string",
50
+ example: "2025-09-03T03:00:00.000Z",
51
+ required: true,
52
+ })
53
+ createdAt!: Date;
54
+ }
55
+
56
+ class UpdatedAtRes {
57
+ @ApiProperty({
58
+ type: "string",
59
+ example: "2025-09-03T03:00:00.000Z",
60
+ required: true,
61
+ })
62
+ updatedAt!: Date;
63
+ }
64
+
65
+ class MemberRes extends IntersectionType(
66
+ IdRes,
67
+ RoleIdRes,
68
+ CreatedAtRes,
69
+ UpdatedAtRes,
70
+ ) {}
71
+ export namespace Member {
72
+ export const Dto = MemberDto;
73
+ export type Dto = MemberDto;
74
+ export const Res = MemberRes;
75
+ export type Res = MemberRes;
76
+ export const Id = MemberId;
77
+ export type Id = MemberId;
78
+
79
+ export namespace Input {
80
+ export namespace RoleId {
81
+ export type Dto = RoleIdDto;
82
+ export const Dto = RoleIdDto;
83
+ export type Res = RoleIdRes;
84
+ export const Res = RoleIdRes;
85
+ }
86
+ export namespace Id {
87
+ export type Res = IdRes;
88
+ export const Res = IdRes;
89
+ }
90
+ export namespace CreatedAt {
91
+ export type Res = CreatedAtRes;
92
+ export const Res = CreatedAtRes;
93
+ }
94
+ export namespace UpdatedAt {
95
+ export type Res = UpdatedAtRes;
96
+ export const Res = UpdatedAtRes;
97
+ }
98
+ }
99
+ }
@@ -0,0 +1,193 @@
1
+ // AUTO-GERADO: NÃO EDITAR MANUALMENTE. SUJEITO A PAULADAS!
2
+ /* eslint-disable @typescript-eslint/no-namespace */
3
+ import { ApiProperty, IntersectionType } from "@nestjs/swagger";
4
+ import {
5
+ IsString,
6
+ IsNotEmpty,
7
+ IsBoolean,
8
+ IsOptional,
9
+ } from "src/_nest/validators";
10
+
11
+ class TitleDto {
12
+ @ApiProperty({ type: "string", example: "ordinary string", required: true })
13
+ @IsString()
14
+ @IsNotEmpty()
15
+ title!: string;
16
+ }
17
+
18
+ class MessageDto {
19
+ @ApiProperty({ type: "string", example: "ordinary string", required: true })
20
+ @IsString()
21
+ @IsNotEmpty()
22
+ message!: string;
23
+ }
24
+
25
+ class ReadDto {
26
+ @ApiProperty({ type: "boolean", example: true, required: true })
27
+ @IsBoolean()
28
+ read!: boolean;
29
+ }
30
+
31
+ class AccountIdDto {
32
+ @ApiProperty({
33
+ type: "string",
34
+ example: "cmfxu4njg000008l52v7t8qze",
35
+ required: true,
36
+ })
37
+ @IsString()
38
+ @IsNotEmpty()
39
+ accountId!: string;
40
+ }
41
+
42
+ class ReadAtDto {
43
+ @ApiProperty({
44
+ type: "string",
45
+ example: "2025-09-03T03:00:00.000Z",
46
+ required: false,
47
+ })
48
+ @IsString()
49
+ @IsOptional()
50
+ readAt?: Date;
51
+ }
52
+
53
+ class NotificationDto extends IntersectionType(
54
+ TitleDto,
55
+ MessageDto,
56
+ ReadDto,
57
+ AccountIdDto,
58
+ ReadAtDto,
59
+ ) {}
60
+
61
+ class NotificationId {
62
+ @ApiProperty({
63
+ type: "string",
64
+ example: "cmfxu4njg000008l52v7t8qze",
65
+ required: true,
66
+ })
67
+ @IsString()
68
+ @IsNotEmpty()
69
+ notificationId!: string;
70
+ }
71
+ class IdRes {
72
+ @ApiProperty({
73
+ type: "string",
74
+ example: "cmfxu4njg000008l52v7t8qze",
75
+ required: true,
76
+ })
77
+ id!: string;
78
+ }
79
+
80
+ class TitleRes {
81
+ @ApiProperty({ type: "string", example: "ordinary string", required: true })
82
+ title!: string;
83
+ }
84
+
85
+ class MessageRes {
86
+ @ApiProperty({ type: "string", example: "ordinary string", required: true })
87
+ message!: string;
88
+ }
89
+
90
+ class ReadRes {
91
+ @ApiProperty({ type: "boolean", example: true, required: true })
92
+ read!: boolean;
93
+ }
94
+
95
+ class AccountIdRes {
96
+ @ApiProperty({
97
+ type: "string",
98
+ example: "cmfxu4njg000008l52v7t8qze",
99
+ required: true,
100
+ })
101
+ accountId!: string;
102
+ }
103
+
104
+ class CreatedAtRes {
105
+ @ApiProperty({
106
+ type: "string",
107
+ example: "2025-09-03T03:00:00.000Z",
108
+ required: true,
109
+ })
110
+ createdAt!: Date;
111
+ }
112
+
113
+ class UpdatedAtRes {
114
+ @ApiProperty({
115
+ type: "string",
116
+ example: "2025-09-03T03:00:00.000Z",
117
+ required: true,
118
+ })
119
+ updatedAt!: Date;
120
+ }
121
+
122
+ class ReadAtRes {
123
+ @ApiProperty({
124
+ type: "string",
125
+ example: "2025-09-03T03:00:00.000Z",
126
+ required: false,
127
+ })
128
+ readAt?: Date;
129
+ }
130
+
131
+ class NotificationRes extends IntersectionType(
132
+ IdRes,
133
+ TitleRes,
134
+ MessageRes,
135
+ ReadRes,
136
+ AccountIdRes,
137
+ CreatedAtRes,
138
+ UpdatedAtRes,
139
+ ReadAtRes,
140
+ ) {}
141
+ export namespace Notification {
142
+ export const Dto = NotificationDto;
143
+ export type Dto = NotificationDto;
144
+ export const Res = NotificationRes;
145
+ export type Res = NotificationRes;
146
+ export const Id = NotificationId;
147
+ export type Id = NotificationId;
148
+
149
+ export namespace Input {
150
+ export namespace Title {
151
+ export type Dto = TitleDto;
152
+ export const Dto = TitleDto;
153
+ export type Res = TitleRes;
154
+ export const Res = TitleRes;
155
+ }
156
+ export namespace Message {
157
+ export type Dto = MessageDto;
158
+ export const Dto = MessageDto;
159
+ export type Res = MessageRes;
160
+ export const Res = MessageRes;
161
+ }
162
+ export namespace Read {
163
+ export type Dto = ReadDto;
164
+ export const Dto = ReadDto;
165
+ export type Res = ReadRes;
166
+ export const Res = ReadRes;
167
+ }
168
+ export namespace AccountId {
169
+ export type Dto = AccountIdDto;
170
+ export const Dto = AccountIdDto;
171
+ export type Res = AccountIdRes;
172
+ export const Res = AccountIdRes;
173
+ }
174
+ export namespace ReadAt {
175
+ export type Dto = ReadAtDto;
176
+ export const Dto = ReadAtDto;
177
+ export type Res = ReadAtRes;
178
+ export const Res = ReadAtRes;
179
+ }
180
+ export namespace Id {
181
+ export type Res = IdRes;
182
+ export const Res = IdRes;
183
+ }
184
+ export namespace CreatedAt {
185
+ export type Res = CreatedAtRes;
186
+ export const Res = CreatedAtRes;
187
+ }
188
+ export namespace UpdatedAt {
189
+ export type Res = UpdatedAtRes;
190
+ export const Res = UpdatedAtRes;
191
+ }
192
+ }
193
+ }
@@ -0,0 +1,116 @@
1
+ // AUTO-GERADO: NÃO EDITAR MANUALMENTE. SUJEITO A PAULADAS!
2
+ /* eslint-disable @typescript-eslint/no-namespace */
3
+ import { ApiProperty, IntersectionType } from "@nestjs/swagger";
4
+ import { IsString, IsNotEmpty, IsEmail } from "src/_nest/validators";
5
+
6
+ class EmailDto {
7
+ @ApiProperty({
8
+ type: "string",
9
+ example: "email@pinaculodigital.com.br",
10
+ required: true,
11
+ })
12
+ @IsString()
13
+ @IsNotEmpty()
14
+ @IsEmail()
15
+ email!: string;
16
+ }
17
+
18
+ class ExpiresAtDto {
19
+ @ApiProperty({
20
+ type: "string",
21
+ example: "2025-09-03T03:00:00.000Z",
22
+ required: true,
23
+ })
24
+ @IsString()
25
+ @IsNotEmpty()
26
+ expiresAt!: Date;
27
+ }
28
+
29
+ class OtpAuthCodeRequestLogDto extends IntersectionType(
30
+ EmailDto,
31
+ ExpiresAtDto,
32
+ ) {}
33
+
34
+ class OtpAuthCodeRequestLogId {
35
+ @ApiProperty({
36
+ type: "string",
37
+ example: "cmfxu4njg000008l52v7t8qze",
38
+ required: true,
39
+ })
40
+ @IsString()
41
+ @IsNotEmpty()
42
+ otpauthcoderequestlogId!: string;
43
+ }
44
+ class IdRes {
45
+ @ApiProperty({
46
+ type: "string",
47
+ example: "cmfxu4njg000008l52v7t8qze",
48
+ required: true,
49
+ })
50
+ id!: string;
51
+ }
52
+
53
+ class EmailRes {
54
+ @ApiProperty({
55
+ type: "string",
56
+ example: "email@pinaculodigital.com.br",
57
+ required: true,
58
+ })
59
+ email!: string;
60
+ }
61
+
62
+ class ExpiresAtRes {
63
+ @ApiProperty({
64
+ type: "string",
65
+ example: "2025-09-03T03:00:00.000Z",
66
+ required: true,
67
+ })
68
+ expiresAt!: Date;
69
+ }
70
+
71
+ class CreatedAtRes {
72
+ @ApiProperty({
73
+ type: "string",
74
+ example: "2025-09-03T03:00:00.000Z",
75
+ required: true,
76
+ })
77
+ createdAt!: Date;
78
+ }
79
+
80
+ class OtpAuthCodeRequestLogRes extends IntersectionType(
81
+ IdRes,
82
+ EmailRes,
83
+ ExpiresAtRes,
84
+ CreatedAtRes,
85
+ ) {}
86
+ export namespace OtpAuthCodeRequestLog {
87
+ export const Dto = OtpAuthCodeRequestLogDto;
88
+ export type Dto = OtpAuthCodeRequestLogDto;
89
+ export const Res = OtpAuthCodeRequestLogRes;
90
+ export type Res = OtpAuthCodeRequestLogRes;
91
+ export const Id = OtpAuthCodeRequestLogId;
92
+ export type Id = OtpAuthCodeRequestLogId;
93
+
94
+ export namespace Input {
95
+ export namespace Email {
96
+ export type Dto = EmailDto;
97
+ export const Dto = EmailDto;
98
+ export type Res = EmailRes;
99
+ export const Res = EmailRes;
100
+ }
101
+ export namespace ExpiresAt {
102
+ export type Dto = ExpiresAtDto;
103
+ export const Dto = ExpiresAtDto;
104
+ export type Res = ExpiresAtRes;
105
+ export const Res = ExpiresAtRes;
106
+ }
107
+ export namespace Id {
108
+ export type Res = IdRes;
109
+ export const Res = IdRes;
110
+ }
111
+ export namespace CreatedAt {
112
+ export type Res = CreatedAtRes;
113
+ export const Res = CreatedAtRes;
114
+ }
115
+ }
116
+ }
@@ -0,0 +1,136 @@
1
+ // AUTO-GERADO: NÃO EDITAR MANUALMENTE. SUJEITO A PAULADAS!
2
+ /* eslint-disable @typescript-eslint/no-namespace */
3
+ import { ApiProperty, IntersectionType } from "@nestjs/swagger";
4
+ import { IsString, IsNotEmpty, IsEmail } from "src/_nest/validators";
5
+
6
+ class EmailDto {
7
+ @ApiProperty({
8
+ type: "string",
9
+ example: "email@pinaculodigital.com.br",
10
+ required: true,
11
+ })
12
+ @IsString()
13
+ @IsNotEmpty()
14
+ @IsEmail()
15
+ email!: string;
16
+ }
17
+
18
+ class CodeDto {
19
+ @ApiProperty({ type: "string", example: "ordinary string", required: true })
20
+ @IsString()
21
+ @IsNotEmpty()
22
+ code!: string;
23
+ }
24
+
25
+ class ExpiresAtDto {
26
+ @ApiProperty({
27
+ type: "string",
28
+ example: "2025-09-03T03:00:00.000Z",
29
+ required: true,
30
+ })
31
+ @IsString()
32
+ @IsNotEmpty()
33
+ expiresAt!: Date;
34
+ }
35
+
36
+ class OtpAuthCodeDto extends IntersectionType(
37
+ EmailDto,
38
+ CodeDto,
39
+ ExpiresAtDto,
40
+ ) {}
41
+
42
+ class OtpAuthCodeId {
43
+ @ApiProperty({
44
+ type: "string",
45
+ example: "cmfxu4njg000008l52v7t8qze",
46
+ required: true,
47
+ })
48
+ @IsString()
49
+ @IsNotEmpty()
50
+ otpauthcodeId!: string;
51
+ }
52
+ class IdRes {
53
+ @ApiProperty({
54
+ type: "string",
55
+ example: "cmfxu4njg000008l52v7t8qze",
56
+ required: true,
57
+ })
58
+ id!: string;
59
+ }
60
+
61
+ class EmailRes {
62
+ @ApiProperty({
63
+ type: "string",
64
+ example: "email@pinaculodigital.com.br",
65
+ required: true,
66
+ })
67
+ email!: string;
68
+ }
69
+
70
+ class CodeRes {
71
+ @ApiProperty({ type: "string", example: "ordinary string", required: true })
72
+ code!: string;
73
+ }
74
+
75
+ class ExpiresAtRes {
76
+ @ApiProperty({
77
+ type: "string",
78
+ example: "2025-09-03T03:00:00.000Z",
79
+ required: true,
80
+ })
81
+ expiresAt!: Date;
82
+ }
83
+
84
+ class CreatedAtRes {
85
+ @ApiProperty({
86
+ type: "string",
87
+ example: "2025-09-03T03:00:00.000Z",
88
+ required: true,
89
+ })
90
+ createdAt!: Date;
91
+ }
92
+
93
+ class OtpAuthCodeRes extends IntersectionType(
94
+ IdRes,
95
+ EmailRes,
96
+ CodeRes,
97
+ ExpiresAtRes,
98
+ CreatedAtRes,
99
+ ) {}
100
+ export namespace OtpAuthCode {
101
+ export const Dto = OtpAuthCodeDto;
102
+ export type Dto = OtpAuthCodeDto;
103
+ export const Res = OtpAuthCodeRes;
104
+ export type Res = OtpAuthCodeRes;
105
+ export const Id = OtpAuthCodeId;
106
+ export type Id = OtpAuthCodeId;
107
+
108
+ export namespace Input {
109
+ export namespace Email {
110
+ export type Dto = EmailDto;
111
+ export const Dto = EmailDto;
112
+ export type Res = EmailRes;
113
+ export const Res = EmailRes;
114
+ }
115
+ export namespace Code {
116
+ export type Dto = CodeDto;
117
+ export const Dto = CodeDto;
118
+ export type Res = CodeRes;
119
+ export const Res = CodeRes;
120
+ }
121
+ export namespace ExpiresAt {
122
+ export type Dto = ExpiresAtDto;
123
+ export const Dto = ExpiresAtDto;
124
+ export type Res = ExpiresAtRes;
125
+ export const Res = ExpiresAtRes;
126
+ }
127
+ export namespace Id {
128
+ export type Res = IdRes;
129
+ export const Res = IdRes;
130
+ }
131
+ export namespace CreatedAt {
132
+ export type Res = CreatedAtRes;
133
+ export const Res = CreatedAtRes;
134
+ }
135
+ }
136
+ }
@@ -0,0 +1,68 @@
1
+ // AUTO-GERADO: NÃO EDITAR MANUALMENTE. SUJEITO A PAULADAS!
2
+ /* eslint-disable @typescript-eslint/no-namespace */
3
+ import { ApiProperty, IntersectionType } from "@nestjs/swagger";
4
+ import { IsString, IsNotEmpty } from "src/_nest/validators";
5
+
6
+ class OwnerDto {}
7
+
8
+ class OwnerId {
9
+ @ApiProperty({
10
+ type: "string",
11
+ example: "cmfxu4njg000008l52v7t8qze",
12
+ required: true,
13
+ })
14
+ @IsString()
15
+ @IsNotEmpty()
16
+ ownerId!: string;
17
+ }
18
+ class IdRes {
19
+ @ApiProperty({
20
+ type: "string",
21
+ example: "cmfxu4njg000008l52v7t8qze",
22
+ required: true,
23
+ })
24
+ id!: string;
25
+ }
26
+
27
+ class CreatedAtRes {
28
+ @ApiProperty({
29
+ type: "string",
30
+ example: "2025-09-03T03:00:00.000Z",
31
+ required: true,
32
+ })
33
+ createdAt!: Date;
34
+ }
35
+
36
+ class UpdatedAtRes {
37
+ @ApiProperty({
38
+ type: "string",
39
+ example: "2025-09-03T03:00:00.000Z",
40
+ required: true,
41
+ })
42
+ updatedAt!: Date;
43
+ }
44
+
45
+ class OwnerRes extends IntersectionType(IdRes, CreatedAtRes, UpdatedAtRes) {}
46
+ export namespace Owner {
47
+ export const Dto = OwnerDto;
48
+ export type Dto = OwnerDto;
49
+ export const Res = OwnerRes;
50
+ export type Res = OwnerRes;
51
+ export const Id = OwnerId;
52
+ export type Id = OwnerId;
53
+
54
+ export namespace Input {
55
+ export namespace Id {
56
+ export type Res = IdRes;
57
+ export const Res = IdRes;
58
+ }
59
+ export namespace CreatedAt {
60
+ export type Res = CreatedAtRes;
61
+ export const Res = CreatedAtRes;
62
+ }
63
+ export namespace UpdatedAt {
64
+ export type Res = UpdatedAtRes;
65
+ export const Res = UpdatedAtRes;
66
+ }
67
+ }
68
+ }