@brasil-conjunto/core 0.1.0 → 0.1.1

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.
@@ -2,76 +2,33 @@ import { z } from "zod";
2
2
  export declare const linkItemSchema: z.ZodObject<{
3
3
  url: z.ZodString;
4
4
  label: z.ZodString;
5
- }, "strip", z.ZodTypeAny, {
6
- url: string;
7
- label: string;
8
- }, {
9
- url: string;
10
- label: string;
11
- }>;
5
+ }, z.core.$strip>;
12
6
  export declare const costItemSchema: z.ZodObject<{
13
7
  description: z.ZodString;
14
- type: z.ZodEnum<["fixo", "faixa", "gratuito", "variavel"]>;
8
+ type: z.ZodEnum<{
9
+ fixo: "fixo";
10
+ faixa: "faixa";
11
+ gratuito: "gratuito";
12
+ variavel: "variavel";
13
+ }>;
15
14
  value: z.ZodNullable<z.ZodNumber>;
16
15
  valueMin: z.ZodNullable<z.ZodNumber>;
17
16
  valueMax: z.ZodNullable<z.ZodNumber>;
18
17
  required: z.ZodBoolean;
19
18
  note: z.ZodNullable<z.ZodString>;
20
19
  link: z.ZodNullable<z.ZodString>;
21
- }, "strip", z.ZodTypeAny, {
22
- value: number | null;
23
- type: "fixo" | "faixa" | "gratuito" | "variavel";
24
- description: string;
25
- valueMin: number | null;
26
- valueMax: number | null;
27
- required: boolean;
28
- note: string | null;
29
- link: string | null;
30
- }, {
31
- value: number | null;
32
- type: "fixo" | "faixa" | "gratuito" | "variavel";
33
- description: string;
34
- valueMin: number | null;
35
- valueMax: number | null;
36
- required: boolean;
37
- note: string | null;
38
- link: string | null;
39
- }>;
20
+ }, z.core.$strip>;
40
21
  export declare const stepLinkSchema: z.ZodObject<{
41
22
  anchor: z.ZodString;
42
23
  url: z.ZodString;
43
- }, "strip", z.ZodTypeAny, {
44
- url: string;
45
- anchor: string;
46
- }, {
47
- url: string;
48
- anchor: string;
49
- }>;
24
+ }, z.core.$strip>;
50
25
  export declare const stepItemSchema: z.ZodObject<{
51
26
  text: z.ZodString;
52
27
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
28
  anchor: z.ZodString;
54
29
  url: z.ZodString;
55
- }, "strip", z.ZodTypeAny, {
56
- url: string;
57
- anchor: string;
58
- }, {
59
- url: string;
60
- anchor: string;
61
- }>, "many">>;
62
- }, "strip", z.ZodTypeAny, {
63
- text: string;
64
- links?: {
65
- url: string;
66
- anchor: string;
67
- }[] | undefined;
68
- }, {
69
- text: string;
70
- links?: {
71
- url: string;
72
- anchor: string;
73
- }[] | undefined;
74
- }>;
30
+ }, z.core.$strip>>>;
31
+ }, z.core.$strip>;
75
32
  export declare const documentRequiredSchema: z.ZodObject<{
76
33
  standard_code: z.ZodString;
77
34
  name: z.ZodString;
@@ -79,71 +36,35 @@ export declare const documentRequiredSchema: z.ZodObject<{
79
36
  required: z.ZodBoolean;
80
37
  condition: z.ZodNullable<z.ZodString>;
81
38
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
- }, "strip", z.ZodTypeAny, {
83
- required: boolean;
84
- standard_code: string;
85
- name: string;
86
- category: string;
87
- condition: string | null;
88
- link?: string | null | undefined;
89
- }, {
90
- required: boolean;
91
- standard_code: string;
92
- name: string;
93
- category: string;
94
- condition: string | null;
95
- link?: string | null | undefined;
96
- }>;
39
+ }, z.core.$strip>;
97
40
  export declare const publicServiceSchema: z.ZodObject<{
98
41
  slug: z.ZodString;
99
42
  name: z.ZodString;
100
43
  agency: z.ZodString;
101
- level: z.ZodEnum<["federal", "estadual", "municipal"]>;
44
+ level: z.ZodEnum<{
45
+ federal: "federal";
46
+ estadual: "estadual";
47
+ municipal: "municipal";
48
+ }>;
102
49
  state: z.ZodString;
103
50
  municipality: z.ZodString;
104
51
  url: z.ZodString;
105
- type: z.ZodEnum<["online", "presencial", "misto"]>;
106
- steps: z.ZodEffects<z.ZodArray<z.ZodObject<{
52
+ type: z.ZodEnum<{
53
+ online: "online";
54
+ presencial: "presencial";
55
+ misto: "misto";
56
+ }>;
57
+ steps: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodArray<z.ZodObject<{
107
58
  text: z.ZodString;
108
59
  links: z.ZodOptional<z.ZodArray<z.ZodObject<{
109
60
  anchor: z.ZodString;
110
61
  url: z.ZodString;
111
- }, "strip", z.ZodTypeAny, {
112
- url: string;
113
- anchor: string;
114
- }, {
115
- url: string;
116
- anchor: string;
117
- }>, "many">>;
118
- }, "strip", z.ZodTypeAny, {
119
- text: string;
120
- links?: {
121
- url: string;
122
- anchor: string;
123
- }[] | undefined;
124
- }, {
125
- text: string;
126
- links?: {
127
- url: string;
128
- anchor: string;
129
- }[] | undefined;
130
- }>, "many">, {
131
- text: string;
132
- links?: {
133
- url: string;
134
- anchor: string;
135
- }[] | undefined;
136
- }[], unknown>;
62
+ }, z.core.$strip>>>;
63
+ }, z.core.$strip>>>;
137
64
  links: z.ZodArray<z.ZodObject<{
138
65
  url: z.ZodString;
139
66
  label: z.ZodString;
140
- }, "strip", z.ZodTypeAny, {
141
- url: string;
142
- label: string;
143
- }, {
144
- url: string;
145
- label: string;
146
- }>, "many">;
67
+ }, z.core.$strip>>;
147
68
  documents: z.ZodArray<z.ZodObject<{
148
69
  standard_code: z.ZodString;
149
70
  name: z.ZodString;
@@ -151,133 +72,26 @@ export declare const publicServiceSchema: z.ZodObject<{
151
72
  required: z.ZodBoolean;
152
73
  condition: z.ZodNullable<z.ZodString>;
153
74
  link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
- }, "strip", z.ZodTypeAny, {
155
- required: boolean;
156
- standard_code: string;
157
- name: string;
158
- category: string;
159
- condition: string | null;
160
- link?: string | null | undefined;
161
- }, {
162
- required: boolean;
163
- standard_code: string;
164
- name: string;
165
- category: string;
166
- condition: string | null;
167
- link?: string | null | undefined;
168
- }>, "many">;
75
+ }, z.core.$strip>>;
169
76
  costs: z.ZodArray<z.ZodObject<{
170
77
  description: z.ZodString;
171
- type: z.ZodEnum<["fixo", "faixa", "gratuito", "variavel"]>;
78
+ type: z.ZodEnum<{
79
+ fixo: "fixo";
80
+ faixa: "faixa";
81
+ gratuito: "gratuito";
82
+ variavel: "variavel";
83
+ }>;
172
84
  value: z.ZodNullable<z.ZodNumber>;
173
85
  valueMin: z.ZodNullable<z.ZodNumber>;
174
86
  valueMax: z.ZodNullable<z.ZodNumber>;
175
87
  required: z.ZodBoolean;
176
88
  note: z.ZodNullable<z.ZodString>;
177
89
  link: z.ZodNullable<z.ZodString>;
178
- }, "strip", z.ZodTypeAny, {
179
- value: number | null;
180
- type: "fixo" | "faixa" | "gratuito" | "variavel";
181
- description: string;
182
- valueMin: number | null;
183
- valueMax: number | null;
184
- required: boolean;
185
- note: string | null;
186
- link: string | null;
187
- }, {
188
- value: number | null;
189
- type: "fixo" | "faixa" | "gratuito" | "variavel";
190
- description: string;
191
- valueMin: number | null;
192
- valueMax: number | null;
193
- required: boolean;
194
- note: string | null;
195
- link: string | null;
196
- }>, "many">;
197
- keywords: z.ZodArray<z.ZodString, "many">;
90
+ }, z.core.$strip>>;
91
+ keywords: z.ZodArray<z.ZodString>;
198
92
  finalidade: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
93
  tempoEletronico: z.ZodOptional<z.ZodNullable<z.ZodString>>;
200
94
  tempoFisico: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
- contato: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
202
- }, "strip", z.ZodTypeAny, {
203
- url: string;
204
- type: "online" | "presencial" | "misto";
205
- links: {
206
- url: string;
207
- label: string;
208
- }[];
209
- name: string;
210
- slug: string;
211
- agency: string;
212
- level: "federal" | "estadual" | "municipal";
213
- state: string;
214
- municipality: string;
215
- steps: {
216
- text: string;
217
- links?: {
218
- url: string;
219
- anchor: string;
220
- }[] | undefined;
221
- }[];
222
- documents: {
223
- required: boolean;
224
- standard_code: string;
225
- name: string;
226
- category: string;
227
- condition: string | null;
228
- link?: string | null | undefined;
229
- }[];
230
- costs: {
231
- value: number | null;
232
- type: "fixo" | "faixa" | "gratuito" | "variavel";
233
- description: string;
234
- valueMin: number | null;
235
- valueMax: number | null;
236
- required: boolean;
237
- note: string | null;
238
- link: string | null;
239
- }[];
240
- keywords: string[];
241
- finalidade?: string | null | undefined;
242
- tempoEletronico?: string | null | undefined;
243
- tempoFisico?: string | null | undefined;
244
- contato?: string[] | undefined;
245
- }, {
246
- url: string;
247
- type: "online" | "presencial" | "misto";
248
- links: {
249
- url: string;
250
- label: string;
251
- }[];
252
- name: string;
253
- slug: string;
254
- agency: string;
255
- level: "federal" | "estadual" | "municipal";
256
- state: string;
257
- municipality: string;
258
- documents: {
259
- required: boolean;
260
- standard_code: string;
261
- name: string;
262
- category: string;
263
- condition: string | null;
264
- link?: string | null | undefined;
265
- }[];
266
- costs: {
267
- value: number | null;
268
- type: "fixo" | "faixa" | "gratuito" | "variavel";
269
- description: string;
270
- valueMin: number | null;
271
- valueMax: number | null;
272
- required: boolean;
273
- note: string | null;
274
- link: string | null;
275
- }[];
276
- keywords: string[];
277
- steps?: unknown;
278
- finalidade?: string | null | undefined;
279
- tempoEletronico?: string | null | undefined;
280
- tempoFisico?: string | null | undefined;
281
- contato?: string[] | undefined;
282
- }>;
95
+ contato: z.ZodOptional<z.ZodArray<z.ZodString>>;
96
+ }, z.core.$strip>;
283
97
  export type PublicServiceInput = z.infer<typeof publicServiceSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brasil-conjunto/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "files": ["dist"],
6
6
  "exports": {
@@ -21,12 +21,12 @@
21
21
  }
22
22
  },
23
23
  "scripts": {
24
- "build": "tsc -p tsconfig.build.json",
24
+ "build": "node node_modules/typescript/bin/tsc -p tsconfig.build.json",
25
25
  "prepublishOnly": "npm run build",
26
26
  "test": "vitest run"
27
27
  },
28
28
  "dependencies": {
29
- "zod": "^3.23.0"
29
+ "zod": "^4.3.6"
30
30
  },
31
31
  "devDependencies": {
32
32
  "typescript": "^5.6.0",