@rpcbase/vite 0.113.0 → 0.115.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/dotEnvExpand.d.ts +2 -0
- package/dist/dotEnvExpand.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +566 -0
- package/dist/plugins/posthog-sourcemaps/index.d.ts +8 -0
- package/dist/plugins/posthog-sourcemaps/index.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/fixtures/alias-and-types.input.d.ts +9 -0
- package/dist/plugins/prune-models-for-client/fixtures/alias-and-types.input.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/fixtures/alias-and-types.output.d.ts +8 -0
- package/dist/plugins/prune-models-for-client/fixtures/alias-and-types.output.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/fixtures/chained-bindings.input.d.ts +101 -0
- package/dist/plugins/prune-models-for-client/fixtures/chained-bindings.input.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/fixtures/chained-bindings.output.d.ts +5 -0
- package/dist/plugins/prune-models-for-client/fixtures/chained-bindings.output.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/fixtures/contact-model.input.d.ts +242 -0
- package/dist/plugins/prune-models-for-client/fixtures/contact-model.input.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/fixtures/contact-model.output.d.ts +32 -0
- package/dist/plugins/prune-models-for-client/fixtures/contact-model.output.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/fixtures/destructuring-bindings.input.d.ts +7 -0
- package/dist/plugins/prune-models-for-client/fixtures/destructuring-bindings.input.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/fixtures/destructuring-bindings.output.d.ts +5 -0
- package/dist/plugins/prune-models-for-client/fixtures/destructuring-bindings.output.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/fixtures/export-specifiers.input.d.ts +5 -0
- package/dist/plugins/prune-models-for-client/fixtures/export-specifiers.input.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/fixtures/export-specifiers.output.d.ts +3 -0
- package/dist/plugins/prune-models-for-client/fixtures/export-specifiers.output.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/index.d.ts +3 -0
- package/dist/plugins/prune-models-for-client/index.d.ts.map +1 -0
- package/dist/plugins/prune-models-for-client/transformSource.d.ts +6 -0
- package/dist/plugins/prune-models-for-client/transformSource.d.ts.map +1 -0
- package/dist/resolveIntegratedPackagePath.d.ts +2 -0
- package/dist/resolveIntegratedPackagePath.d.ts.map +1 -0
- package/package.json +49 -16
- package/index.d.ts +0 -31
- package/index.js +0 -334
- package/src/dotEnvExpand.js +0 -14
- package/src/posthogSourcemapsPlugin.js +0 -76
- package/src/resolveIntegratedPackagePath.js +0 -96
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { z, mongoose } from '../../../../../db/src';
|
|
2
|
+
export declare const ZUser: z.ZodObject<{
|
|
3
|
+
email: z.ZodString;
|
|
4
|
+
}, z.core.$strip>;
|
|
5
|
+
export declare const UserSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
6
|
+
email?: string | null | undefined;
|
|
7
|
+
}, mongoose.Document<unknown, {}, {
|
|
8
|
+
email?: string | null | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
id: string;
|
|
11
|
+
}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
|
|
12
|
+
email?: string | null | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
_id: mongoose.Types.ObjectId;
|
|
15
|
+
} & {
|
|
16
|
+
__v: number;
|
|
17
|
+
}, "id"> & {
|
|
18
|
+
id: string;
|
|
19
|
+
}, {
|
|
20
|
+
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
21
|
+
} | {
|
|
22
|
+
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
23
|
+
email?: string | null | undefined;
|
|
24
|
+
}, {
|
|
25
|
+
id: string;
|
|
26
|
+
}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
|
|
27
|
+
email?: string | null | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
_id: mongoose.Types.ObjectId;
|
|
30
|
+
} & {
|
|
31
|
+
__v: number;
|
|
32
|
+
}, "id"> & {
|
|
33
|
+
id: string;
|
|
34
|
+
}> | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
email?: string | null | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
_id: mongoose.Types.ObjectId;
|
|
39
|
+
} & {
|
|
40
|
+
__v: number;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const UserModel: mongoose.Model<{
|
|
43
|
+
email?: string | null | undefined;
|
|
44
|
+
}, {}, {}, {
|
|
45
|
+
id: string;
|
|
46
|
+
}, mongoose.Document<unknown, {}, {
|
|
47
|
+
email?: string | null | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
id: string;
|
|
50
|
+
}, mongoose.DefaultSchemaOptions> & Omit<{
|
|
51
|
+
email?: string | null | undefined;
|
|
52
|
+
} & {
|
|
53
|
+
_id: mongoose.Types.ObjectId;
|
|
54
|
+
} & {
|
|
55
|
+
__v: number;
|
|
56
|
+
}, "id"> & {
|
|
57
|
+
id: string;
|
|
58
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
59
|
+
email?: string | null | undefined;
|
|
60
|
+
}, mongoose.Document<unknown, {}, {
|
|
61
|
+
email?: string | null | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
id: string;
|
|
64
|
+
}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
|
|
65
|
+
email?: string | null | undefined;
|
|
66
|
+
} & {
|
|
67
|
+
_id: mongoose.Types.ObjectId;
|
|
68
|
+
} & {
|
|
69
|
+
__v: number;
|
|
70
|
+
}, "id"> & {
|
|
71
|
+
id: string;
|
|
72
|
+
}, {
|
|
73
|
+
[path: string]: mongoose.SchemaDefinitionProperty<undefined, any, any>;
|
|
74
|
+
} | {
|
|
75
|
+
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
76
|
+
email?: string | null | undefined;
|
|
77
|
+
}, {
|
|
78
|
+
id: string;
|
|
79
|
+
}, mongoose.ResolveSchemaOptions<mongoose.DefaultSchemaOptions>> & Omit<{
|
|
80
|
+
email?: string | null | undefined;
|
|
81
|
+
} & {
|
|
82
|
+
_id: mongoose.Types.ObjectId;
|
|
83
|
+
} & {
|
|
84
|
+
__v: number;
|
|
85
|
+
}, "id"> & {
|
|
86
|
+
id: string;
|
|
87
|
+
}> | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
email?: string | null | undefined;
|
|
90
|
+
} & {
|
|
91
|
+
_id: mongoose.Types.ObjectId;
|
|
92
|
+
} & {
|
|
93
|
+
__v: number;
|
|
94
|
+
}>, {
|
|
95
|
+
email?: string | null | undefined;
|
|
96
|
+
} & {
|
|
97
|
+
_id: mongoose.Types.ObjectId;
|
|
98
|
+
} & {
|
|
99
|
+
__v: number;
|
|
100
|
+
}>;
|
|
101
|
+
//# sourceMappingURL=chained-bindings.input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chained-bindings.input.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/chained-bindings.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAwB,MAAM,aAAa,CAAA;AAG/D,eAAO,MAAM,KAAK;;iBAA0C,CAAA;AAI5D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAS,CAAA;AAEhC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chained-bindings.output.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/chained-bindings.output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAA;AAG/B,eAAO,MAAM,KAAK;;iBAA0C,CAAA"}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { z } from '../../../../../db/src';
|
|
2
|
+
export declare const contactIdSchema: z.ZodString;
|
|
3
|
+
export declare const contactEmailSchema: z.ZodObject<{
|
|
4
|
+
value: z.ZodString;
|
|
5
|
+
normalized: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const contactPhoneSchema: z.ZodObject<{
|
|
8
|
+
value: z.ZodString;
|
|
9
|
+
normalizedE164: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const ZContact: z.ZodObject<{
|
|
12
|
+
_id: z.ZodString;
|
|
13
|
+
workspaceId: z.ZodString;
|
|
14
|
+
displayName: z.ZodString;
|
|
15
|
+
emails: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
normalized: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
phones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
20
|
+
value: z.ZodString;
|
|
21
|
+
normalizedE164: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
24
|
+
relatedContactIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
25
|
+
unreliablyMatchesOtherContacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
26
|
+
address: z.ZodOptional<z.ZodString>;
|
|
27
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
28
|
+
createdAt: z.ZodString;
|
|
29
|
+
updatedAt: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type IContact = z.infer<typeof ZContact>;
|
|
32
|
+
export declare const ContactSchema: import('../../../../node_modules/mongoose').Schema<any, import('../../../../node_modules/mongoose').Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
33
|
+
collection: string;
|
|
34
|
+
timestamps: true;
|
|
35
|
+
}, {
|
|
36
|
+
_id: string;
|
|
37
|
+
displayName: string;
|
|
38
|
+
workspaceId: string;
|
|
39
|
+
emails: import("mongoose").Types.DocumentArray<{
|
|
40
|
+
value: string;
|
|
41
|
+
normalized: string;
|
|
42
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
43
|
+
value: string;
|
|
44
|
+
normalized: string;
|
|
45
|
+
}> & {
|
|
46
|
+
value: string;
|
|
47
|
+
normalized: string;
|
|
48
|
+
}>;
|
|
49
|
+
phones: import("mongoose").Types.DocumentArray<{
|
|
50
|
+
value: string;
|
|
51
|
+
normalizedE164: string;
|
|
52
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
53
|
+
value: string;
|
|
54
|
+
normalizedE164: string;
|
|
55
|
+
}> & {
|
|
56
|
+
value: string;
|
|
57
|
+
normalizedE164: string;
|
|
58
|
+
}>;
|
|
59
|
+
relatedContactIds: string[];
|
|
60
|
+
unreliablyMatchesOtherContacts: string[];
|
|
61
|
+
address?: string | null | undefined;
|
|
62
|
+
notes?: string | null | undefined;
|
|
63
|
+
avatarUrl?: string | null | undefined;
|
|
64
|
+
} & import('../../../../node_modules/mongoose').DefaultTimestampProps, import('../../../../node_modules/mongoose').Document<unknown, {}, {
|
|
65
|
+
_id: string;
|
|
66
|
+
displayName: string;
|
|
67
|
+
workspaceId: string;
|
|
68
|
+
emails: import("mongoose").Types.DocumentArray<{
|
|
69
|
+
value: string;
|
|
70
|
+
normalized: string;
|
|
71
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
72
|
+
value: string;
|
|
73
|
+
normalized: string;
|
|
74
|
+
}> & {
|
|
75
|
+
value: string;
|
|
76
|
+
normalized: string;
|
|
77
|
+
}>;
|
|
78
|
+
phones: import("mongoose").Types.DocumentArray<{
|
|
79
|
+
value: string;
|
|
80
|
+
normalizedE164: string;
|
|
81
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
82
|
+
value: string;
|
|
83
|
+
normalizedE164: string;
|
|
84
|
+
}> & {
|
|
85
|
+
value: string;
|
|
86
|
+
normalizedE164: string;
|
|
87
|
+
}>;
|
|
88
|
+
relatedContactIds: string[];
|
|
89
|
+
unreliablyMatchesOtherContacts: string[];
|
|
90
|
+
address?: string | null | undefined;
|
|
91
|
+
notes?: string | null | undefined;
|
|
92
|
+
avatarUrl?: string | null | undefined;
|
|
93
|
+
} & import('../../../../node_modules/mongoose').DefaultTimestampProps, {
|
|
94
|
+
id: string;
|
|
95
|
+
}, import('../../../../node_modules/mongoose').ResolveSchemaOptions<{
|
|
96
|
+
collection: string;
|
|
97
|
+
timestamps: true;
|
|
98
|
+
}>> & Omit<{
|
|
99
|
+
_id: string;
|
|
100
|
+
displayName: string;
|
|
101
|
+
workspaceId: string;
|
|
102
|
+
emails: import("mongoose").Types.DocumentArray<{
|
|
103
|
+
value: string;
|
|
104
|
+
normalized: string;
|
|
105
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
106
|
+
value: string;
|
|
107
|
+
normalized: string;
|
|
108
|
+
}> & {
|
|
109
|
+
value: string;
|
|
110
|
+
normalized: string;
|
|
111
|
+
}>;
|
|
112
|
+
phones: import("mongoose").Types.DocumentArray<{
|
|
113
|
+
value: string;
|
|
114
|
+
normalizedE164: string;
|
|
115
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
116
|
+
value: string;
|
|
117
|
+
normalizedE164: string;
|
|
118
|
+
}> & {
|
|
119
|
+
value: string;
|
|
120
|
+
normalizedE164: string;
|
|
121
|
+
}>;
|
|
122
|
+
relatedContactIds: string[];
|
|
123
|
+
unreliablyMatchesOtherContacts: string[];
|
|
124
|
+
address?: string | null | undefined;
|
|
125
|
+
notes?: string | null | undefined;
|
|
126
|
+
avatarUrl?: string | null | undefined;
|
|
127
|
+
} & import('../../../../node_modules/mongoose').DefaultTimestampProps & Required<{
|
|
128
|
+
_id: string;
|
|
129
|
+
}> & {
|
|
130
|
+
__v: number;
|
|
131
|
+
}, "id"> & {
|
|
132
|
+
id: string;
|
|
133
|
+
}, {
|
|
134
|
+
[path: string]: import('../../../../node_modules/mongoose').SchemaDefinitionProperty<undefined, any, any>;
|
|
135
|
+
} | {
|
|
136
|
+
[x: string]: import('../../../../node_modules/mongoose').SchemaDefinitionProperty<any, any, import('../../../../node_modules/mongoose').Document<unknown, {}, {
|
|
137
|
+
_id: string;
|
|
138
|
+
displayName: string;
|
|
139
|
+
workspaceId: string;
|
|
140
|
+
emails: import("mongoose").Types.DocumentArray<{
|
|
141
|
+
value: string;
|
|
142
|
+
normalized: string;
|
|
143
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
144
|
+
value: string;
|
|
145
|
+
normalized: string;
|
|
146
|
+
}> & {
|
|
147
|
+
value: string;
|
|
148
|
+
normalized: string;
|
|
149
|
+
}>;
|
|
150
|
+
phones: import("mongoose").Types.DocumentArray<{
|
|
151
|
+
value: string;
|
|
152
|
+
normalizedE164: string;
|
|
153
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
154
|
+
value: string;
|
|
155
|
+
normalizedE164: string;
|
|
156
|
+
}> & {
|
|
157
|
+
value: string;
|
|
158
|
+
normalizedE164: string;
|
|
159
|
+
}>;
|
|
160
|
+
relatedContactIds: string[];
|
|
161
|
+
unreliablyMatchesOtherContacts: string[];
|
|
162
|
+
address?: string | null | undefined;
|
|
163
|
+
notes?: string | null | undefined;
|
|
164
|
+
avatarUrl?: string | null | undefined;
|
|
165
|
+
} & import('../../../../node_modules/mongoose').DefaultTimestampProps, {
|
|
166
|
+
id: string;
|
|
167
|
+
}, import('../../../../node_modules/mongoose').ResolveSchemaOptions<{
|
|
168
|
+
collection: string;
|
|
169
|
+
timestamps: true;
|
|
170
|
+
}>> & Omit<{
|
|
171
|
+
_id: string;
|
|
172
|
+
displayName: string;
|
|
173
|
+
workspaceId: string;
|
|
174
|
+
emails: import("mongoose").Types.DocumentArray<{
|
|
175
|
+
value: string;
|
|
176
|
+
normalized: string;
|
|
177
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
178
|
+
value: string;
|
|
179
|
+
normalized: string;
|
|
180
|
+
}> & {
|
|
181
|
+
value: string;
|
|
182
|
+
normalized: string;
|
|
183
|
+
}>;
|
|
184
|
+
phones: import("mongoose").Types.DocumentArray<{
|
|
185
|
+
value: string;
|
|
186
|
+
normalizedE164: string;
|
|
187
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
188
|
+
value: string;
|
|
189
|
+
normalizedE164: string;
|
|
190
|
+
}> & {
|
|
191
|
+
value: string;
|
|
192
|
+
normalizedE164: string;
|
|
193
|
+
}>;
|
|
194
|
+
relatedContactIds: string[];
|
|
195
|
+
unreliablyMatchesOtherContacts: string[];
|
|
196
|
+
address?: string | null | undefined;
|
|
197
|
+
notes?: string | null | undefined;
|
|
198
|
+
avatarUrl?: string | null | undefined;
|
|
199
|
+
} & import('../../../../node_modules/mongoose').DefaultTimestampProps & Required<{
|
|
200
|
+
_id: string;
|
|
201
|
+
}> & {
|
|
202
|
+
__v: number;
|
|
203
|
+
}, "id"> & {
|
|
204
|
+
id: string;
|
|
205
|
+
}> | undefined;
|
|
206
|
+
}, {
|
|
207
|
+
_id: string;
|
|
208
|
+
displayName: string;
|
|
209
|
+
workspaceId: string;
|
|
210
|
+
emails: import("mongoose").Types.DocumentArray<{
|
|
211
|
+
value: string;
|
|
212
|
+
normalized: string;
|
|
213
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
214
|
+
value: string;
|
|
215
|
+
normalized: string;
|
|
216
|
+
}> & {
|
|
217
|
+
value: string;
|
|
218
|
+
normalized: string;
|
|
219
|
+
}>;
|
|
220
|
+
phones: import("mongoose").Types.DocumentArray<{
|
|
221
|
+
value: string;
|
|
222
|
+
normalizedE164: string;
|
|
223
|
+
}, import("mongoose").Types.Subdocument<import('bson').ObjectId, unknown, {
|
|
224
|
+
value: string;
|
|
225
|
+
normalizedE164: string;
|
|
226
|
+
}> & {
|
|
227
|
+
value: string;
|
|
228
|
+
normalizedE164: string;
|
|
229
|
+
}>;
|
|
230
|
+
relatedContactIds: string[];
|
|
231
|
+
unreliablyMatchesOtherContacts: string[];
|
|
232
|
+
address?: string | null | undefined;
|
|
233
|
+
notes?: string | null | undefined;
|
|
234
|
+
avatarUrl?: string | null | undefined;
|
|
235
|
+
createdAt: NativeDate;
|
|
236
|
+
updatedAt: NativeDate;
|
|
237
|
+
} & Required<{
|
|
238
|
+
_id: string;
|
|
239
|
+
}> & {
|
|
240
|
+
__v: number;
|
|
241
|
+
}>;
|
|
242
|
+
//# sourceMappingURL=contact-model.input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-model.input.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/contact-model.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAU,MAAM,aAAa,CAAA;AAGvC,eAAO,MAAM,eAAe,aAAuD,CAAA;AAEnF,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAA;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;iBAanB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAA;AAsE/C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAS,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z } from '../../../../../db/src';
|
|
2
|
+
export declare const contactIdSchema: z.ZodString;
|
|
3
|
+
export declare const contactEmailSchema: z.ZodObject<{
|
|
4
|
+
value: z.ZodString;
|
|
5
|
+
normalized: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const contactPhoneSchema: z.ZodObject<{
|
|
8
|
+
value: z.ZodString;
|
|
9
|
+
normalizedE164: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const ZContact: z.ZodObject<{
|
|
12
|
+
_id: z.ZodString;
|
|
13
|
+
workspaceId: z.ZodString;
|
|
14
|
+
displayName: z.ZodString;
|
|
15
|
+
emails: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
16
|
+
value: z.ZodString;
|
|
17
|
+
normalized: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
phones: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
20
|
+
value: z.ZodString;
|
|
21
|
+
normalizedE164: z.ZodString;
|
|
22
|
+
}, z.core.$strip>>>;
|
|
23
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
24
|
+
relatedContactIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
25
|
+
unreliablyMatchesOtherContacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
26
|
+
address: z.ZodOptional<z.ZodString>;
|
|
27
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
28
|
+
createdAt: z.ZodString;
|
|
29
|
+
updatedAt: z.ZodString;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type IContact = z.infer<typeof ZContact>;
|
|
32
|
+
//# sourceMappingURL=contact-model.output.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-model.output.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/contact-model.output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAA;AAG/B,eAAO,MAAM,eAAe,aAAuD,CAAA;AAEnF,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAA;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;iBAanB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destructuring-bindings.input.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/destructuring-bindings.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,CAAC,EAAE,MAAM,aAAa,CAAA;AAG7C,eAAO,MAAM,KAAK;;iBAAkC,CAAA;AAGpD,eAAO,MAAM,CAAC,KAAY,CAAA;AAC1B,eAAO,MAAM,CAAC,KAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destructuring-bindings.output.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/destructuring-bindings.output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAA;AAG/B,eAAO,MAAM,KAAK;;iBAAkC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { z } from '../../../../../db/src';
|
|
2
|
+
export declare const ZA: z.ZodString;
|
|
3
|
+
declare const local: import('../../../../../db/src').ModelsClient<import('../../../../../db/src/registerModels').ModelModules, Record<string, never>>;
|
|
4
|
+
export { local as exported };
|
|
5
|
+
//# sourceMappingURL=export-specifiers.input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-specifiers.input.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/export-specifiers.input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,CAAC,EAAE,MAAM,aAAa,CAAA;AAG7C,eAAO,MAAM,EAAE,aAAa,CAAA;AAG5B,QAAA,MAAM,KAAK,wHAAS,CAAA;AACpB,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-specifiers.output.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/export-specifiers.output.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,aAAa,CAAA;AAG/B,eAAO,MAAM,EAAE,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/prune-models-for-client/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAalC,wBAAgB,0BAA0B,IAAI,MAAM,CAkBnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transformSource.d.ts","sourceRoot":"","sources":["../../../src/plugins/prune-models-for-client/transformSource.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,6BAA6B,GAAG,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,GAAG,IAAI,CAAA;AAsKvG,wBAAgB,qBAAqB,IAAI,6BAA6B,CA0CrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveIntegratedPackagePath.d.ts","sourceRoot":"","sources":["../src/resolveIntegratedPackagePath.ts"],"names":[],"mappings":"AAmEA,eAAO,MAAM,4BAA4B,GAAI,WAAW,MAAM,WA4B7D,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,28 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpcbase/vite",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.115.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
|
-
"
|
|
7
|
-
"index.d.ts",
|
|
8
|
-
"src"
|
|
6
|
+
"dist"
|
|
9
7
|
],
|
|
10
|
-
"main": "./index.js",
|
|
11
|
-
"types": "./index.d.ts",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
12
17
|
"scripts": {
|
|
13
|
-
"
|
|
18
|
+
"build": "wireit",
|
|
19
|
+
"test": "wireit",
|
|
14
20
|
"release": "wireit"
|
|
15
21
|
},
|
|
16
22
|
"wireit": {
|
|
23
|
+
"build": {
|
|
24
|
+
"command": "../../node_modules/.bin/vite build",
|
|
25
|
+
"files": [
|
|
26
|
+
"src/**/*",
|
|
27
|
+
"../../tsconfig.json",
|
|
28
|
+
"../../scripts/tsconfig.pkg.json",
|
|
29
|
+
"./tsconfig.json",
|
|
30
|
+
"./vite.config.js",
|
|
31
|
+
"../../scripts/vite.config-pkg.js"
|
|
32
|
+
],
|
|
33
|
+
"output": [
|
|
34
|
+
"dist/"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"build-watch": {
|
|
38
|
+
"command": "../../node_modules/.bin/vite build --watch",
|
|
39
|
+
"service": true
|
|
40
|
+
},
|
|
41
|
+
"test": {
|
|
42
|
+
"command": "../../node_modules/.bin/vitest run --config ../../pkg/test/src/vitest.config.mjs",
|
|
43
|
+
"files": [
|
|
44
|
+
"src/**/*",
|
|
45
|
+
"tsconfig.json",
|
|
46
|
+
"../../scripts/tsconfig.pkg.json"
|
|
47
|
+
],
|
|
48
|
+
"dependencies": []
|
|
49
|
+
},
|
|
17
50
|
"release": {
|
|
18
51
|
"command": "../../scripts/publish.js",
|
|
19
|
-
"dependencies": [
|
|
52
|
+
"dependencies": [
|
|
53
|
+
"build"
|
|
54
|
+
],
|
|
20
55
|
"files": [
|
|
21
56
|
"../../scripts/publish.js",
|
|
22
57
|
"package.json",
|
|
23
|
-
"
|
|
24
|
-
"index.d.ts",
|
|
25
|
-
"src/"
|
|
58
|
+
"dist/**/*"
|
|
26
59
|
],
|
|
27
60
|
"output": [
|
|
28
61
|
"publish-output.txt"
|
|
@@ -36,7 +69,7 @@
|
|
|
36
69
|
},
|
|
37
70
|
"dependencies": {
|
|
38
71
|
"@hookform/resolvers": "5.2.2",
|
|
39
|
-
"@posthog/cli": "0.5.
|
|
72
|
+
"@posthog/cli": "0.5.22",
|
|
40
73
|
"@tailwindcss/vite": "4.1.18",
|
|
41
74
|
"@vitejs/plugin-react": "5.1.2",
|
|
42
75
|
"clsx": "2.1.1",
|
|
@@ -44,14 +77,14 @@
|
|
|
44
77
|
"libphonenumber-js": "1.12.33",
|
|
45
78
|
"lucide-react": "0.562.0",
|
|
46
79
|
"mongoose": "9.1.2",
|
|
47
|
-
"
|
|
48
|
-
"posthog-
|
|
49
|
-
"posthog-node": "5.19.0",
|
|
80
|
+
"posthog-js": "1.316.0",
|
|
81
|
+
"posthog-node": "5.20.0",
|
|
50
82
|
"react": "19.2.3",
|
|
51
83
|
"react-dom": "19.2.3",
|
|
52
84
|
"react-hook-form": "7.70.0",
|
|
53
|
-
"react-router": "7.
|
|
85
|
+
"react-router": "7.12.0",
|
|
54
86
|
"tailwindcss": "4.1.18",
|
|
87
|
+
"ts-morph": "27.0.2",
|
|
55
88
|
"validator": "13.15.26",
|
|
56
89
|
"vite": "7.3.1",
|
|
57
90
|
"vite-plugin-html": "3.2.2",
|
package/index.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { UserConfigExport, UserConfigFn, createServer as viteCreateServer } from "vite"
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Resolved aliases injected into the Vite config for RPC Base projects.
|
|
5
|
-
*/
|
|
6
|
-
export const resolveAliases: Record<string, string>
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Merge the shared RPC Base Vite config with a consumer-provided config.
|
|
10
|
-
*/
|
|
11
|
-
export function extendConfig(userConfig: UserConfigExport): UserConfigFn
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Merge the shared RPC Base spec/SSR Vite config with a consumer-provided config.
|
|
15
|
-
*/
|
|
16
|
-
export function extendSpecConfig(userConfig: UserConfigExport): UserConfigFn
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Re-export of Vite's `createServer` helper.
|
|
20
|
-
*/
|
|
21
|
-
export const createServer: typeof viteCreateServer
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Disable HTTP caching on an Express-style app (turns off etags and installs a no-cache middleware).
|
|
25
|
-
*/
|
|
26
|
-
export function disableAppCache(app: {
|
|
27
|
-
set(name: string, value: any): any
|
|
28
|
-
use: (...handlers: any[]) => any
|
|
29
|
-
}): void
|
|
30
|
-
|
|
31
|
-
export {}
|