@rpcbase/vite 0.117.0 → 0.118.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/index.d.ts.map +1 -1
- package/dist/index.js +85 -11
- package/dist/plugins/prune-models-for-client/fixtures/alias-and-types.input.d.ts +3 -4
- package/dist/plugins/prune-models-for-client/fixtures/alias-and-types.input.d.ts.map +1 -1
- package/dist/plugins/prune-models-for-client/fixtures/alias-and-types.output.d.ts +3 -4
- package/dist/plugins/prune-models-for-client/fixtures/alias-and-types.output.d.ts.map +1 -1
- package/dist/plugins/prune-models-for-client/fixtures/chained-bindings.input.d.ts +4 -4
- package/dist/plugins/prune-models-for-client/fixtures/chained-bindings.input.d.ts.map +1 -1
- package/dist/plugins/prune-models-for-client/fixtures/chained-bindings.output.d.ts +3 -4
- package/dist/plugins/prune-models-for-client/fixtures/chained-bindings.output.d.ts.map +1 -1
- package/dist/plugins/prune-models-for-client/fixtures/contact-model.input.d.ts +29 -29
- package/dist/plugins/prune-models-for-client/fixtures/contact-model.input.d.ts.map +1 -1
- package/dist/plugins/prune-models-for-client/fixtures/contact-model.output.d.ts +29 -29
- package/dist/plugins/prune-models-for-client/fixtures/contact-model.output.d.ts.map +1 -1
- package/dist/plugins/prune-models-for-client/fixtures/destructuring-bindings.input.d.ts +3 -4
- package/dist/plugins/prune-models-for-client/fixtures/destructuring-bindings.input.d.ts.map +1 -1
- package/dist/plugins/prune-models-for-client/fixtures/destructuring-bindings.output.d.ts +3 -4
- package/dist/plugins/prune-models-for-client/fixtures/destructuring-bindings.output.d.ts.map +1 -1
- package/dist/plugins/prune-models-for-client/fixtures/export-specifiers.input.d.ts +1 -2
- package/dist/plugins/prune-models-for-client/fixtures/export-specifiers.input.d.ts.map +1 -1
- package/dist/plugins/prune-models-for-client/fixtures/export-specifiers.output.d.ts +1 -2
- package/dist/plugins/prune-models-for-client/fixtures/export-specifiers.output.d.ts.map +1 -1
- package/dist/plugins/spec-inputs/index.d.ts +8 -0
- package/dist/plugins/spec-inputs/index.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAA;AAKvB,OAAO,EACL,YAAY,IAAI,gBAAgB,EAGjC,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAyB,gBAAgB,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAoEjF,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAM1C,CAAA;AA4BD,OAAO,EAAE,cAAc,EAAE,CAAA;AAgIzB,eAAO,MAAM,YAAY,GAAI,YAAY,gBAAgB,KAAG,YAW3D,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,CAAA;AAKvB,OAAO,EACL,YAAY,IAAI,gBAAgB,EAGjC,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAyB,gBAAgB,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAoEjF,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAM1C,CAAA;AA4BD,OAAO,EAAE,cAAc,EAAE,CAAA;AAgIzB,eAAO,MAAM,YAAY,GAAI,YAAY,gBAAgB,KAAG,YAW3D,CAAA;AAqCD,eAAO,MAAM,gBAAgB,GAAI,YAAY,gBAAgB,KAAG,YAW/D,CAAA;AAED,eAAO,MAAM,YAAY,yBAAmB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -6,13 +6,13 @@ import { createServer as createServer$1, mergeConfig, loadEnv } from "vite";
|
|
|
6
6
|
import { viteSingleFile } from "vite-plugin-singlefile";
|
|
7
7
|
import react from "@vitejs/plugin-react";
|
|
8
8
|
import { createHtmlPlugin } from "vite-plugin-html";
|
|
9
|
-
import { globSync } from "glob";
|
|
10
9
|
import { createRequire } from "node:module";
|
|
11
10
|
import { spawn } from "node:child_process";
|
|
12
11
|
import path$1 from "node:path";
|
|
13
12
|
import { fileURLToPath } from "node:url";
|
|
14
13
|
import { Project } from "ts-morph";
|
|
15
14
|
import * as ts from "typescript";
|
|
15
|
+
import { globSync } from "glob";
|
|
16
16
|
const envFilePath = path.resolve(process.cwd(), ".env");
|
|
17
17
|
if (fs.existsSync(envFilePath)) {
|
|
18
18
|
const parsedFile = dotenv.parse(fs.readFileSync(envFilePath));
|
|
@@ -325,6 +325,86 @@ function pruneModelsForClientPlugin() {
|
|
|
325
325
|
}
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
|
+
const toPosixPath = (p) => p.split(path$1.sep).join("/");
|
|
329
|
+
const computeInputs = (args) => {
|
|
330
|
+
const { root, pattern, specDir } = args;
|
|
331
|
+
const specDirAbs = path$1.resolve(root, specDir);
|
|
332
|
+
const filesAbs = globSync(pattern, {
|
|
333
|
+
cwd: root,
|
|
334
|
+
absolute: true,
|
|
335
|
+
nodir: true
|
|
336
|
+
});
|
|
337
|
+
const inputs = {};
|
|
338
|
+
for (const fileAbs of filesAbs) {
|
|
339
|
+
const relFromSpec = path$1.relative(specDirAbs, fileAbs);
|
|
340
|
+
const outputName = toPosixPath(relFromSpec).replace(/\.ts$/, "");
|
|
341
|
+
inputs[outputName] = fileAbs;
|
|
342
|
+
}
|
|
343
|
+
return inputs;
|
|
344
|
+
};
|
|
345
|
+
const inputsKey = (inputs) => Object.keys(inputs).sort().join("\n");
|
|
346
|
+
const hasRollupInput = (input) => {
|
|
347
|
+
if (!input) return false;
|
|
348
|
+
if (typeof input === "string") return true;
|
|
349
|
+
if (Array.isArray(input)) return input.length > 0;
|
|
350
|
+
if (typeof input === "object") return Object.keys(input).length > 0;
|
|
351
|
+
return false;
|
|
352
|
+
};
|
|
353
|
+
function specInputsPlugin(opts = {}) {
|
|
354
|
+
const { pattern = "spec/**/*.spec.ts", specDir = "spec" } = opts;
|
|
355
|
+
let rootAbs;
|
|
356
|
+
let specDirAbs;
|
|
357
|
+
let outDirAbs;
|
|
358
|
+
let active = false;
|
|
359
|
+
let inputsDirty = true;
|
|
360
|
+
let currentInputs;
|
|
361
|
+
let lastInputsKey;
|
|
362
|
+
return {
|
|
363
|
+
name: "rb-spec-inputs",
|
|
364
|
+
apply: "build",
|
|
365
|
+
configResolved(config) {
|
|
366
|
+
rootAbs = config.root;
|
|
367
|
+
specDirAbs = path$1.resolve(rootAbs, specDir);
|
|
368
|
+
outDirAbs = path$1.resolve(rootAbs, config.build.outDir);
|
|
369
|
+
},
|
|
370
|
+
options(inputOptions) {
|
|
371
|
+
if (!rootAbs) return;
|
|
372
|
+
active = !hasRollupInput(inputOptions.input);
|
|
373
|
+
if (!active) return;
|
|
374
|
+
if (!currentInputs || inputsDirty) {
|
|
375
|
+
currentInputs = computeInputs({ root: rootAbs, pattern, specDir });
|
|
376
|
+
inputsDirty = false;
|
|
377
|
+
}
|
|
378
|
+
inputOptions.input = currentInputs;
|
|
379
|
+
return inputOptions;
|
|
380
|
+
},
|
|
381
|
+
watchChange(id, change) {
|
|
382
|
+
if (!active) return;
|
|
383
|
+
if (!rootAbs || !specDirAbs) return;
|
|
384
|
+
const absId = path$1.isAbsolute(id) ? id : path$1.resolve(rootAbs, id);
|
|
385
|
+
if (absId === specDirAbs) {
|
|
386
|
+
inputsDirty = true;
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
if (!absId.startsWith(specDirAbs + path$1.sep)) return;
|
|
390
|
+
if (!absId.endsWith(".spec.ts")) return;
|
|
391
|
+
if (change.event === "create" || change.event === "delete") {
|
|
392
|
+
inputsDirty = true;
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
buildStart() {
|
|
396
|
+
if (!active) return;
|
|
397
|
+
if (!specDirAbs) return;
|
|
398
|
+
this.addWatchFile(specDirAbs);
|
|
399
|
+
if (!outDirAbs || !currentInputs) return;
|
|
400
|
+
const key = inputsKey(currentInputs);
|
|
401
|
+
if (lastInputsKey && lastInputsKey !== key) {
|
|
402
|
+
fs.rmSync(outDirAbs, { recursive: true, force: true });
|
|
403
|
+
}
|
|
404
|
+
lastInputsKey = key;
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
}
|
|
328
408
|
const ensureEnvPolyfillInjectPath = () => {
|
|
329
409
|
const injectDir = path.resolve(process.cwd(), "node_modules/.rpcbase");
|
|
330
410
|
const injectPath = path.join(injectDir, "rb-env-polyfill-inject.js");
|
|
@@ -524,26 +604,20 @@ const getSpecBaseConfig = (configEnv) => {
|
|
|
524
604
|
const { mode } = configEnv;
|
|
525
605
|
const env = loadEnv(mode, process.cwd(), ALLOWED_ENV_PREFIXES);
|
|
526
606
|
const runtimeEnv = createRuntimeEnv({ env, configEnv });
|
|
527
|
-
const input = globSync("spec/**/*.spec.ts").reduce(
|
|
528
|
-
(inputs, file) => {
|
|
529
|
-
const relativePath = path.relative("spec", file);
|
|
530
|
-
const outputName = relativePath.replace(/\.ts$/, "");
|
|
531
|
-
inputs[outputName] = file;
|
|
532
|
-
return inputs;
|
|
533
|
-
},
|
|
534
|
-
{}
|
|
535
|
-
);
|
|
536
607
|
return {
|
|
537
608
|
clearScreen: false,
|
|
538
609
|
define: {
|
|
539
610
|
__vite_env__: runtimeEnv
|
|
540
611
|
},
|
|
541
612
|
envPrefix: ALLOWED_ENV_PREFIXES,
|
|
613
|
+
plugins: [
|
|
614
|
+
specInputsPlugin()
|
|
615
|
+
],
|
|
542
616
|
build: {
|
|
543
617
|
outDir: "./build/spec/",
|
|
544
618
|
ssr: true,
|
|
545
619
|
rollupOptions: {
|
|
546
|
-
input
|
|
620
|
+
input: {}
|
|
547
621
|
},
|
|
548
622
|
commonjsOptions: { transformMixedEsModules: true }
|
|
549
623
|
},
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, zz.core.$strip>;
|
|
1
|
+
export declare const ZThing: import('zod').ZodObject<{
|
|
2
|
+
value: import('zod').ZodNumber;
|
|
3
|
+
}, import('zod/v4/core').$strip>;
|
|
5
4
|
type Thing = DbSchema;
|
|
6
5
|
export declare const x: Thing;
|
|
7
6
|
export declare const leaked: import('@rpcbase/db').ModelsClient<import('../../../../../db/src/registerModels').ModelModules, Record<string, never>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias-and-types.input.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/alias-and-types.input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alias-and-types.input.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/alias-and-types.input.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;gCAAoC,CAAA;AAEvD,KAAK,KAAK,GAAG,QAAQ,CAAA;AACrB,eAAO,MAAM,CAAC,EAAmB,KAAK,CAAA;AAGtC,eAAO,MAAM,MAAM,wHAAS,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, zz.core.$strip>;
|
|
1
|
+
export declare const ZThing: import('zod').ZodObject<{
|
|
2
|
+
value: import('zod').ZodNumber;
|
|
3
|
+
}, import('zod/v4/core').$strip>;
|
|
5
4
|
type Thing = DbSchema;
|
|
6
5
|
export declare const x: Thing;
|
|
7
6
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias-and-types.output.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/alias-and-types.output.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alias-and-types.output.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/alias-and-types.output.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM;;gCAAoC,CAAA;AAEvD,KAAK,KAAK,GAAG,QAAQ,CAAA;AACrB,eAAO,MAAM,CAAC,EAAmB,KAAK,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ZUser:
|
|
3
|
-
email:
|
|
4
|
-
},
|
|
1
|
+
import { mongoose } from '@rpcbase/db';
|
|
2
|
+
export declare const ZUser: import('zod').ZodObject<{
|
|
3
|
+
email: import('zod').ZodString;
|
|
4
|
+
}, import('zod/v4/core').$strip>;
|
|
5
5
|
export declare const UserSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
6
6
|
email?: string | null | undefined;
|
|
7
7
|
}, mongoose.Document<unknown, {}, {
|
|
@@ -1 +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,
|
|
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,EAAK,QAAQ,EAAwB,MAAM,aAAa,CAAA;AAG/D,eAAO,MAAM,KAAK;;gCAA0C,CAAA;AAI5D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAS,CAAA;AAEhC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, z.core.$strip>;
|
|
1
|
+
export declare const ZUser: import('zod').ZodObject<{
|
|
2
|
+
email: import('zod').ZodString;
|
|
3
|
+
}, import('zod/v4/core').$strip>;
|
|
5
4
|
//# sourceMappingURL=chained-bindings.output.d.ts.map
|
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"chained-bindings.output.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/chained-bindings.output.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;gCAA0C,CAAA"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { z } from '@rpcbase/db';
|
|
2
|
-
export declare const contactIdSchema:
|
|
3
|
-
export declare const contactEmailSchema:
|
|
4
|
-
value:
|
|
5
|
-
normalized:
|
|
6
|
-
},
|
|
7
|
-
export declare const contactPhoneSchema:
|
|
8
|
-
value:
|
|
9
|
-
normalizedE164:
|
|
10
|
-
},
|
|
11
|
-
export declare const ZContact:
|
|
12
|
-
_id:
|
|
13
|
-
workspaceId:
|
|
14
|
-
displayName:
|
|
15
|
-
emails:
|
|
16
|
-
value:
|
|
17
|
-
normalized:
|
|
18
|
-
},
|
|
19
|
-
phones:
|
|
20
|
-
value:
|
|
21
|
-
normalizedE164:
|
|
22
|
-
},
|
|
23
|
-
notes:
|
|
24
|
-
relatedContactIds:
|
|
25
|
-
unreliablyMatchesOtherContacts:
|
|
26
|
-
address:
|
|
27
|
-
avatarUrl:
|
|
28
|
-
createdAt:
|
|
29
|
-
updatedAt:
|
|
30
|
-
},
|
|
2
|
+
export declare const contactIdSchema: import('zod').ZodString;
|
|
3
|
+
export declare const contactEmailSchema: import('zod').ZodObject<{
|
|
4
|
+
value: import('zod').ZodString;
|
|
5
|
+
normalized: import('zod').ZodString;
|
|
6
|
+
}, import('zod/v4/core').$strip>;
|
|
7
|
+
export declare const contactPhoneSchema: import('zod').ZodObject<{
|
|
8
|
+
value: import('zod').ZodString;
|
|
9
|
+
normalizedE164: import('zod').ZodString;
|
|
10
|
+
}, import('zod/v4/core').$strip>;
|
|
11
|
+
export declare const ZContact: import('zod').ZodObject<{
|
|
12
|
+
_id: import('zod').ZodString;
|
|
13
|
+
workspaceId: import('zod').ZodString;
|
|
14
|
+
displayName: import('zod').ZodString;
|
|
15
|
+
emails: import('zod').ZodDefault<import('zod').ZodArray<import('zod').ZodObject<{
|
|
16
|
+
value: import('zod').ZodString;
|
|
17
|
+
normalized: import('zod').ZodString;
|
|
18
|
+
}, import('zod/v4/core').$strip>>>;
|
|
19
|
+
phones: import('zod').ZodDefault<import('zod').ZodArray<import('zod').ZodObject<{
|
|
20
|
+
value: import('zod').ZodString;
|
|
21
|
+
normalizedE164: import('zod').ZodString;
|
|
22
|
+
}, import('zod/v4/core').$strip>>>;
|
|
23
|
+
notes: import('zod').ZodOptional<import('zod').ZodString>;
|
|
24
|
+
relatedContactIds: import('zod').ZodDefault<import('zod').ZodArray<import('zod').ZodString>>;
|
|
25
|
+
unreliablyMatchesOtherContacts: import('zod').ZodDefault<import('zod').ZodArray<import('zod').ZodString>>;
|
|
26
|
+
address: import('zod').ZodOptional<import('zod').ZodString>;
|
|
27
|
+
avatarUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
28
|
+
createdAt: import('zod').ZodString;
|
|
29
|
+
updatedAt: import('zod').ZodString;
|
|
30
|
+
}, import('zod/v4/core').$strip>;
|
|
31
31
|
export type IContact = z.infer<typeof ZContact>;
|
|
32
32
|
export declare const ContactSchema: import('mongoose').Schema<any, import('mongoose').Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
33
33
|
collection: string;
|
|
@@ -1 +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,
|
|
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,yBAAuD,CAAA;AAEnF,eAAO,MAAM,kBAAkB;;;gCAG7B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;gCAG7B,CAAA;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;gCAanB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAA;AAsE/C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAS,CAAA"}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { z } from '@rpcbase/db';
|
|
2
|
-
export declare const contactIdSchema:
|
|
3
|
-
export declare const contactEmailSchema:
|
|
4
|
-
value:
|
|
5
|
-
normalized:
|
|
6
|
-
},
|
|
7
|
-
export declare const contactPhoneSchema:
|
|
8
|
-
value:
|
|
9
|
-
normalizedE164:
|
|
10
|
-
},
|
|
11
|
-
export declare const ZContact:
|
|
12
|
-
_id:
|
|
13
|
-
workspaceId:
|
|
14
|
-
displayName:
|
|
15
|
-
emails:
|
|
16
|
-
value:
|
|
17
|
-
normalized:
|
|
18
|
-
},
|
|
19
|
-
phones:
|
|
20
|
-
value:
|
|
21
|
-
normalizedE164:
|
|
22
|
-
},
|
|
23
|
-
notes:
|
|
24
|
-
relatedContactIds:
|
|
25
|
-
unreliablyMatchesOtherContacts:
|
|
26
|
-
address:
|
|
27
|
-
avatarUrl:
|
|
28
|
-
createdAt:
|
|
29
|
-
updatedAt:
|
|
30
|
-
},
|
|
2
|
+
export declare const contactIdSchema: import('zod').ZodString;
|
|
3
|
+
export declare const contactEmailSchema: import('zod').ZodObject<{
|
|
4
|
+
value: import('zod').ZodString;
|
|
5
|
+
normalized: import('zod').ZodString;
|
|
6
|
+
}, import('zod/v4/core').$strip>;
|
|
7
|
+
export declare const contactPhoneSchema: import('zod').ZodObject<{
|
|
8
|
+
value: import('zod').ZodString;
|
|
9
|
+
normalizedE164: import('zod').ZodString;
|
|
10
|
+
}, import('zod/v4/core').$strip>;
|
|
11
|
+
export declare const ZContact: import('zod').ZodObject<{
|
|
12
|
+
_id: import('zod').ZodString;
|
|
13
|
+
workspaceId: import('zod').ZodString;
|
|
14
|
+
displayName: import('zod').ZodString;
|
|
15
|
+
emails: import('zod').ZodDefault<import('zod').ZodArray<import('zod').ZodObject<{
|
|
16
|
+
value: import('zod').ZodString;
|
|
17
|
+
normalized: import('zod').ZodString;
|
|
18
|
+
}, import('zod/v4/core').$strip>>>;
|
|
19
|
+
phones: import('zod').ZodDefault<import('zod').ZodArray<import('zod').ZodObject<{
|
|
20
|
+
value: import('zod').ZodString;
|
|
21
|
+
normalizedE164: import('zod').ZodString;
|
|
22
|
+
}, import('zod/v4/core').$strip>>>;
|
|
23
|
+
notes: import('zod').ZodOptional<import('zod').ZodString>;
|
|
24
|
+
relatedContactIds: import('zod').ZodDefault<import('zod').ZodArray<import('zod').ZodString>>;
|
|
25
|
+
unreliablyMatchesOtherContacts: import('zod').ZodDefault<import('zod').ZodArray<import('zod').ZodString>>;
|
|
26
|
+
address: import('zod').ZodOptional<import('zod').ZodString>;
|
|
27
|
+
avatarUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
28
|
+
createdAt: import('zod').ZodString;
|
|
29
|
+
updatedAt: import('zod').ZodString;
|
|
30
|
+
}, import('zod/v4/core').$strip>;
|
|
31
31
|
export type IContact = z.infer<typeof ZContact>;
|
|
32
32
|
//# sourceMappingURL=contact-model.output.d.ts.map
|
|
@@ -1 +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,
|
|
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,yBAAuD,CAAA;AAEnF,eAAO,MAAM,kBAAkB;;;gCAG7B,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;gCAG7B,CAAA;AAEF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;gCAanB,CAAA;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, z.core.$strip>;
|
|
1
|
+
export declare const ZPost: import('zod').ZodObject<{
|
|
2
|
+
title: import('zod').ZodString;
|
|
3
|
+
}, import('zod/v4/core').$strip>;
|
|
5
4
|
export declare const x: any;
|
|
6
5
|
export declare const y: any;
|
|
7
6
|
//# sourceMappingURL=destructuring-bindings.input.d.ts.map
|
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"destructuring-bindings.input.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/destructuring-bindings.input.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;gCAAkC,CAAA;AAGpD,eAAO,MAAM,CAAC,KAAY,CAAA;AAC1B,eAAO,MAAM,CAAC,KAAO,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, z.core.$strip>;
|
|
1
|
+
export declare const ZPost: import('zod').ZodObject<{
|
|
2
|
+
title: import('zod').ZodString;
|
|
3
|
+
}, import('zod/v4/core').$strip>;
|
|
5
4
|
//# sourceMappingURL=destructuring-bindings.output.d.ts.map
|
package/dist/plugins/prune-models-for-client/fixtures/destructuring-bindings.output.d.ts.map
CHANGED
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"destructuring-bindings.output.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/destructuring-bindings.output.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;gCAAkC,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const ZA: z.ZodString;
|
|
1
|
+
export declare const ZA: import('zod').ZodString;
|
|
3
2
|
declare const local: import('@rpcbase/db').ModelsClient<import('../../../../../db/src/registerModels').ModelModules, Record<string, never>>;
|
|
4
3
|
export { local as exported };
|
|
5
4
|
//# sourceMappingURL=export-specifiers.input.d.ts.map
|
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"export-specifiers.input.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/export-specifiers.input.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,EAAE,yBAAa,CAAA;AAG5B,QAAA,MAAM,KAAK,wHAAS,CAAA;AACpB,OAAO,EAAE,KAAK,IAAI,QAAQ,EAAE,CAAA"}
|
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"export-specifiers.output.d.ts","sourceRoot":"","sources":["../../../../src/plugins/prune-models-for-client/fixtures/export-specifiers.output.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,EAAE,yBAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/spec-inputs/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAGlC,KAAK,oBAAoB,GAAG;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAkCD,wBAAgB,gBAAgB,CAAC,IAAI,GAAE,oBAAyB,GAAG,MAAM,CAkExE"}
|