@redaksjon/context 0.0.3
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/LICENSE.md +65 -0
- package/README.md +224 -0
- package/dist/index.cjs +27 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/index2.cjs +36 -0
- package/dist/index2.cjs.map +1 -0
- package/dist/index2.js +24 -0
- package/dist/index2.js.map +1 -0
- package/dist/index3.cjs +22 -0
- package/dist/index3.cjs.map +1 -0
- package/dist/index3.js +17 -0
- package/dist/index3.js.map +1 -0
- package/dist/index4.cjs +16 -0
- package/dist/index4.cjs.map +1 -0
- package/dist/index4.js +12 -0
- package/dist/index4.js.map +1 -0
- package/dist/index5.cjs +16 -0
- package/dist/index5.cjs.map +1 -0
- package/dist/index5.js +12 -0
- package/dist/index5.js.map +1 -0
- package/dist/index6.cjs +23 -0
- package/dist/index6.cjs.map +1 -0
- package/dist/index6.js +19 -0
- package/dist/index6.js.map +1 -0
- package/dist/index7.cjs +42 -0
- package/dist/index7.cjs.map +1 -0
- package/dist/index7.js +35 -0
- package/dist/index7.js.map +1 -0
- package/dist/index8.cjs +22 -0
- package/dist/index8.cjs.map +1 -0
- package/dist/index8.js +18 -0
- package/dist/index8.js.map +1 -0
- package/dist/schemas/company.d.ts +46 -0
- package/dist/schemas/company.d.ts.map +1 -0
- package/dist/schemas/ignored.d.ts +43 -0
- package/dist/schemas/ignored.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +346 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/person.d.ts +55 -0
- package/dist/schemas/person.d.ts.map +1 -0
- package/dist/schemas/project.d.ts +203 -0
- package/dist/schemas/project.d.ts.map +1 -0
- package/dist/schemas/term.d.ts +55 -0
- package/dist/schemas/term.d.ts.map +1 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +76 -0
package/dist/index7.cjs
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const zod = require('zod');
|
|
6
|
+
const overcontext = require('@theunwalked/overcontext');
|
|
7
|
+
|
|
8
|
+
const ProjectClassificationSchema = zod.z.object({
|
|
9
|
+
context_type: zod.z.enum(["work", "personal", "mixed"]),
|
|
10
|
+
associated_people: zod.z.array(zod.z.string()).optional(),
|
|
11
|
+
associated_companies: zod.z.array(zod.z.string()).optional(),
|
|
12
|
+
topics: zod.z.array(zod.z.string()).optional(),
|
|
13
|
+
explicit_phrases: zod.z.array(zod.z.string()).optional()
|
|
14
|
+
});
|
|
15
|
+
const ProjectRoutingSchema = zod.z.object({
|
|
16
|
+
destination: zod.z.string().optional(),
|
|
17
|
+
structure: zod.z.enum(["none", "year", "month", "day"]),
|
|
18
|
+
filename_options: zod.z.array(zod.z.enum(["date", "time", "subject"])),
|
|
19
|
+
auto_tags: zod.z.array(zod.z.string()).optional()
|
|
20
|
+
});
|
|
21
|
+
const ProjectRelationshipsSchema = zod.z.object({
|
|
22
|
+
parent: zod.z.string().optional(),
|
|
23
|
+
children: zod.z.array(zod.z.string()).optional(),
|
|
24
|
+
siblings: zod.z.array(zod.z.string()).optional(),
|
|
25
|
+
dependsOn: zod.z.array(zod.z.string()).optional(),
|
|
26
|
+
relatedTerms: zod.z.array(zod.z.string()).optional()
|
|
27
|
+
}).optional();
|
|
28
|
+
const ProjectSchema = overcontext.BaseEntitySchema.extend({
|
|
29
|
+
type: zod.z.literal("project"),
|
|
30
|
+
description: zod.z.string().optional(),
|
|
31
|
+
classification: ProjectClassificationSchema,
|
|
32
|
+
routing: ProjectRoutingSchema,
|
|
33
|
+
sounds_like: zod.z.array(zod.z.string()).optional(),
|
|
34
|
+
relationships: ProjectRelationshipsSchema,
|
|
35
|
+
active: zod.z.boolean().optional()
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
exports.ProjectClassificationSchema = ProjectClassificationSchema;
|
|
39
|
+
exports.ProjectRelationshipsSchema = ProjectRelationshipsSchema;
|
|
40
|
+
exports.ProjectRoutingSchema = ProjectRoutingSchema;
|
|
41
|
+
exports.ProjectSchema = ProjectSchema;
|
|
42
|
+
//# sourceMappingURL=index7.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index7.cjs","sources":["../src/schemas/project.ts"],"sourcesContent":["import { z } from 'zod';\nimport { BaseEntitySchema } from '@theunwalked/overcontext';\n\n/**\n * Project classification signals.\n */\nexport const ProjectClassificationSchema = z.object({\n context_type: z.enum(['work', 'personal', 'mixed']),\n associated_people: z.array(z.string()).optional(),\n associated_companies: z.array(z.string()).optional(),\n topics: z.array(z.string()).optional(),\n explicit_phrases: z.array(z.string()).optional(),\n});\n\n/**\n * Project routing configuration.\n */\nexport const ProjectRoutingSchema = z.object({\n destination: z.string().optional(),\n structure: z.enum(['none', 'year', 'month', 'day']),\n filename_options: z.array(z.enum(['date', 'time', 'subject'])),\n auto_tags: z.array(z.string()).optional(),\n});\n\n/**\n * Project relationships.\n */\nexport const ProjectRelationshipsSchema = z.object({\n parent: z.string().optional(),\n children: z.array(z.string()).optional(),\n siblings: z.array(z.string()).optional(),\n dependsOn: z.array(z.string()).optional(),\n relatedTerms: z.array(z.string()).optional(),\n}).optional();\n\n/**\n * Project entity - work contexts that affect routing and understanding.\n */\nexport const ProjectSchema = BaseEntitySchema.extend({\n type: z.literal('project'),\n \n description: z.string().optional(),\n classification: ProjectClassificationSchema,\n routing: ProjectRoutingSchema,\n sounds_like: z.array(z.string()).optional(),\n relationships: ProjectRelationshipsSchema,\n active: z.boolean().optional(),\n});\n"],"names":["z","BaseEntitySchema"],"mappings":";;;;;;;AAMO,MAAM,2BAAA,GAA8BA,MAAE,MAAA,CAAO;AAAA,EAChD,cAAcA,KAAA,CAAE,IAAA,CAAK,CAAC,MAAA,EAAQ,UAAA,EAAY,OAAO,CAAC,CAAA;AAAA,EAClD,mBAAmBA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EAChD,sBAAsBA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EACnD,QAAQA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EACrC,kBAAkBA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA;AAC1C,CAAC;AAKM,MAAM,oBAAA,GAAuBA,MAAE,MAAA,CAAO;AAAA,EACzC,WAAA,EAAaA,KAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EACjC,SAAA,EAAWA,MAAE,IAAA,CAAK,CAAC,QAAQ,MAAA,EAAQ,OAAA,EAAS,KAAK,CAAC,CAAA;AAAA,EAClD,gBAAA,EAAkBA,KAAA,CAAE,KAAA,CAAMA,KAAA,CAAE,IAAA,CAAK,CAAC,MAAA,EAAQ,MAAA,EAAQ,SAAS,CAAC,CAAC,CAAA;AAAA,EAC7D,WAAWA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA;AACnC,CAAC;AAKM,MAAM,0BAAA,GAA6BA,MAAE,MAAA,CAAO;AAAA,EAC/C,MAAA,EAAQA,KAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EAC5B,UAAUA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EACvC,UAAUA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EACvC,WAAWA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EACxC,cAAcA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA;AACtC,CAAC,EAAE,QAAA;AAKI,MAAM,aAAA,GAAgBC,6BAAiB,MAAA,CAAO;AAAA,EACjD,IAAA,EAAMD,KAAA,CAAE,OAAA,CAAQ,SAAS,CAAA;AAAA,EAEzB,WAAA,EAAaA,KAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EACjC,cAAA,EAAgB,2BAAA;AAAA,EAChB,OAAA,EAAS,oBAAA;AAAA,EACT,aAAaA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EAC1C,aAAA,EAAe,0BAAA;AAAA,EACf,MAAA,EAAQA,KAAA,CAAE,OAAA,EAAQ,CAAE,QAAA;AACxB,CAAC;;;;;;;"}
|
package/dist/index7.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseEntitySchema } from '@theunwalked/overcontext';
|
|
3
|
+
|
|
4
|
+
const ProjectClassificationSchema = z.object({
|
|
5
|
+
context_type: z.enum(["work", "personal", "mixed"]),
|
|
6
|
+
associated_people: z.array(z.string()).optional(),
|
|
7
|
+
associated_companies: z.array(z.string()).optional(),
|
|
8
|
+
topics: z.array(z.string()).optional(),
|
|
9
|
+
explicit_phrases: z.array(z.string()).optional()
|
|
10
|
+
});
|
|
11
|
+
const ProjectRoutingSchema = z.object({
|
|
12
|
+
destination: z.string().optional(),
|
|
13
|
+
structure: z.enum(["none", "year", "month", "day"]),
|
|
14
|
+
filename_options: z.array(z.enum(["date", "time", "subject"])),
|
|
15
|
+
auto_tags: z.array(z.string()).optional()
|
|
16
|
+
});
|
|
17
|
+
const ProjectRelationshipsSchema = z.object({
|
|
18
|
+
parent: z.string().optional(),
|
|
19
|
+
children: z.array(z.string()).optional(),
|
|
20
|
+
siblings: z.array(z.string()).optional(),
|
|
21
|
+
dependsOn: z.array(z.string()).optional(),
|
|
22
|
+
relatedTerms: z.array(z.string()).optional()
|
|
23
|
+
}).optional();
|
|
24
|
+
const ProjectSchema = BaseEntitySchema.extend({
|
|
25
|
+
type: z.literal("project"),
|
|
26
|
+
description: z.string().optional(),
|
|
27
|
+
classification: ProjectClassificationSchema,
|
|
28
|
+
routing: ProjectRoutingSchema,
|
|
29
|
+
sounds_like: z.array(z.string()).optional(),
|
|
30
|
+
relationships: ProjectRelationshipsSchema,
|
|
31
|
+
active: z.boolean().optional()
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export { ProjectClassificationSchema, ProjectRelationshipsSchema, ProjectRoutingSchema, ProjectSchema };
|
|
35
|
+
//# sourceMappingURL=index7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index7.js","sources":["../src/schemas/project.ts"],"sourcesContent":["import { z } from 'zod';\nimport { BaseEntitySchema } from '@theunwalked/overcontext';\n\n/**\n * Project classification signals.\n */\nexport const ProjectClassificationSchema = z.object({\n context_type: z.enum(['work', 'personal', 'mixed']),\n associated_people: z.array(z.string()).optional(),\n associated_companies: z.array(z.string()).optional(),\n topics: z.array(z.string()).optional(),\n explicit_phrases: z.array(z.string()).optional(),\n});\n\n/**\n * Project routing configuration.\n */\nexport const ProjectRoutingSchema = z.object({\n destination: z.string().optional(),\n structure: z.enum(['none', 'year', 'month', 'day']),\n filename_options: z.array(z.enum(['date', 'time', 'subject'])),\n auto_tags: z.array(z.string()).optional(),\n});\n\n/**\n * Project relationships.\n */\nexport const ProjectRelationshipsSchema = z.object({\n parent: z.string().optional(),\n children: z.array(z.string()).optional(),\n siblings: z.array(z.string()).optional(),\n dependsOn: z.array(z.string()).optional(),\n relatedTerms: z.array(z.string()).optional(),\n}).optional();\n\n/**\n * Project entity - work contexts that affect routing and understanding.\n */\nexport const ProjectSchema = BaseEntitySchema.extend({\n type: z.literal('project'),\n \n description: z.string().optional(),\n classification: ProjectClassificationSchema,\n routing: ProjectRoutingSchema,\n sounds_like: z.array(z.string()).optional(),\n relationships: ProjectRelationshipsSchema,\n active: z.boolean().optional(),\n});\n"],"names":[],"mappings":";;;AAMO,MAAM,2BAAA,GAA8B,EAAE,MAAA,CAAO;AAAA,EAChD,cAAc,CAAA,CAAE,IAAA,CAAK,CAAC,MAAA,EAAQ,UAAA,EAAY,OAAO,CAAC,CAAA;AAAA,EAClD,mBAAmB,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EAChD,sBAAsB,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EACnD,QAAQ,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EACrC,kBAAkB,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA;AAC1C,CAAC;AAKM,MAAM,oBAAA,GAAuB,EAAE,MAAA,CAAO;AAAA,EACzC,WAAA,EAAa,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EACjC,SAAA,EAAW,EAAE,IAAA,CAAK,CAAC,QAAQ,MAAA,EAAQ,OAAA,EAAS,KAAK,CAAC,CAAA;AAAA,EAClD,gBAAA,EAAkB,CAAA,CAAE,KAAA,CAAM,CAAA,CAAE,IAAA,CAAK,CAAC,MAAA,EAAQ,MAAA,EAAQ,SAAS,CAAC,CAAC,CAAA;AAAA,EAC7D,WAAW,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA;AACnC,CAAC;AAKM,MAAM,0BAAA,GAA6B,EAAE,MAAA,CAAO;AAAA,EAC/C,MAAA,EAAQ,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EAC5B,UAAU,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EACvC,UAAU,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EACvC,WAAW,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EACxC,cAAc,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA;AACtC,CAAC,EAAE,QAAA;AAKI,MAAM,aAAA,GAAgB,iBAAiB,MAAA,CAAO;AAAA,EACjD,IAAA,EAAM,CAAA,CAAE,OAAA,CAAQ,SAAS,CAAA;AAAA,EAEzB,WAAA,EAAa,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EACjC,cAAA,EAAgB,2BAAA;AAAA,EAChB,OAAA,EAAS,oBAAA;AAAA,EACT,aAAa,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EAC1C,aAAA,EAAe,0BAAA;AAAA,EACf,MAAA,EAAQ,CAAA,CAAE,OAAA,EAAQ,CAAE,QAAA;AACxB,CAAC;;;;"}
|
package/dist/index8.cjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const zod = require('zod');
|
|
6
|
+
const overcontext = require('@theunwalked/overcontext');
|
|
7
|
+
|
|
8
|
+
const TermSchema = overcontext.BaseEntitySchema.extend({
|
|
9
|
+
type: zod.z.literal("term"),
|
|
10
|
+
expansion: zod.z.string().optional(),
|
|
11
|
+
// Full form if acronym
|
|
12
|
+
domain: zod.z.string().optional(),
|
|
13
|
+
// E.g., "engineering", "finance"
|
|
14
|
+
sounds_like: zod.z.array(zod.z.string()).optional(),
|
|
15
|
+
projects: zod.z.array(zod.z.string()).optional(),
|
|
16
|
+
// Associated project IDs
|
|
17
|
+
description: zod.z.string().optional(),
|
|
18
|
+
topics: zod.z.array(zod.z.string()).optional()
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
exports.TermSchema = TermSchema;
|
|
22
|
+
//# sourceMappingURL=index8.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index8.cjs","sources":["../src/schemas/term.ts"],"sourcesContent":["import { z } from 'zod';\nimport { BaseEntitySchema } from '@theunwalked/overcontext';\n\n/**\n * Term entity - domain-specific terminology and acronyms.\n */\nexport const TermSchema = BaseEntitySchema.extend({\n type: z.literal('term'),\n \n expansion: z.string().optional(), // Full form if acronym\n domain: z.string().optional(), // E.g., \"engineering\", \"finance\"\n sounds_like: z.array(z.string()).optional(),\n projects: z.array(z.string()).optional(), // Associated project IDs\n description: z.string().optional(),\n topics: z.array(z.string()).optional(),\n});\n"],"names":["BaseEntitySchema","z"],"mappings":";;;;;;;AAMO,MAAM,UAAA,GAAaA,6BAAiB,MAAA,CAAO;AAAA,EAC9C,IAAA,EAAMC,KAAA,CAAE,OAAA,CAAQ,MAAM,CAAA;AAAA,EAEtB,SAAA,EAAWA,KAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA;AAAA,EAC/B,MAAA,EAAQA,KAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA;AAAA,EAC5B,aAAaA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EAC1C,UAAUA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA;AAAA,EACvC,WAAA,EAAaA,KAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EACjC,QAAQA,KAAA,CAAE,KAAA,CAAMA,MAAE,MAAA,EAAQ,EAAE,QAAA;AAChC,CAAC;;;;"}
|
package/dist/index8.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BaseEntitySchema } from '@theunwalked/overcontext';
|
|
3
|
+
|
|
4
|
+
const TermSchema = BaseEntitySchema.extend({
|
|
5
|
+
type: z.literal("term"),
|
|
6
|
+
expansion: z.string().optional(),
|
|
7
|
+
// Full form if acronym
|
|
8
|
+
domain: z.string().optional(),
|
|
9
|
+
// E.g., "engineering", "finance"
|
|
10
|
+
sounds_like: z.array(z.string()).optional(),
|
|
11
|
+
projects: z.array(z.string()).optional(),
|
|
12
|
+
// Associated project IDs
|
|
13
|
+
description: z.string().optional(),
|
|
14
|
+
topics: z.array(z.string()).optional()
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export { TermSchema };
|
|
18
|
+
//# sourceMappingURL=index8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index8.js","sources":["../src/schemas/term.ts"],"sourcesContent":["import { z } from 'zod';\nimport { BaseEntitySchema } from '@theunwalked/overcontext';\n\n/**\n * Term entity - domain-specific terminology and acronyms.\n */\nexport const TermSchema = BaseEntitySchema.extend({\n type: z.literal('term'),\n \n expansion: z.string().optional(), // Full form if acronym\n domain: z.string().optional(), // E.g., \"engineering\", \"finance\"\n sounds_like: z.array(z.string()).optional(),\n projects: z.array(z.string()).optional(), // Associated project IDs\n description: z.string().optional(),\n topics: z.array(z.string()).optional(),\n});\n"],"names":[],"mappings":";;;AAMO,MAAM,UAAA,GAAa,iBAAiB,MAAA,CAAO;AAAA,EAC9C,IAAA,EAAM,CAAA,CAAE,OAAA,CAAQ,MAAM,CAAA;AAAA,EAEtB,SAAA,EAAW,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA;AAAA,EAC/B,MAAA,EAAQ,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA;AAAA,EAC5B,aAAa,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA,EAC1C,UAAU,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA,EAAS;AAAA;AAAA,EACvC,WAAA,EAAa,CAAA,CAAE,MAAA,EAAO,CAAE,QAAA,EAAS;AAAA,EACjC,QAAQ,CAAA,CAAE,KAAA,CAAM,EAAE,MAAA,EAAQ,EAAE,QAAA;AAChC,CAAC;;;;"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Company entity - organizations referenced in notes.
|
|
4
|
+
*/
|
|
5
|
+
export declare const CompanySchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
9
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
10
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
11
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
12
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
13
|
+
source: z.ZodOptional<z.ZodString>;
|
|
14
|
+
} & {
|
|
15
|
+
type: z.ZodLiteral<"company">;
|
|
16
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
17
|
+
industry: z.ZodOptional<z.ZodString>;
|
|
18
|
+
sounds_like: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
type: "company";
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
sounds_like?: string[] | undefined;
|
|
24
|
+
notes?: string | undefined;
|
|
25
|
+
createdAt?: Date | undefined;
|
|
26
|
+
updatedAt?: Date | undefined;
|
|
27
|
+
createdBy?: string | undefined;
|
|
28
|
+
namespace?: string | undefined;
|
|
29
|
+
source?: string | undefined;
|
|
30
|
+
fullName?: string | undefined;
|
|
31
|
+
industry?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
type: "company";
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
sounds_like?: string[] | undefined;
|
|
37
|
+
notes?: string | undefined;
|
|
38
|
+
createdAt?: Date | undefined;
|
|
39
|
+
updatedAt?: Date | undefined;
|
|
40
|
+
createdBy?: string | undefined;
|
|
41
|
+
namespace?: string | undefined;
|
|
42
|
+
source?: string | undefined;
|
|
43
|
+
fullName?: string | undefined;
|
|
44
|
+
industry?: string | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
//# sourceMappingURL=company.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company.d.ts","sourceRoot":"","sources":["../../src/schemas/company.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMxB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Ignored term - phrases the user doesn't want to be prompted about.
|
|
4
|
+
*/
|
|
5
|
+
export declare const IgnoredTermSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
9
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
10
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
11
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
12
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
13
|
+
source: z.ZodOptional<z.ZodString>;
|
|
14
|
+
} & {
|
|
15
|
+
type: z.ZodLiteral<"ignored">;
|
|
16
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
17
|
+
ignoredAt: z.ZodOptional<z.ZodString>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
type: "ignored";
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
notes?: string | undefined;
|
|
23
|
+
createdAt?: Date | undefined;
|
|
24
|
+
updatedAt?: Date | undefined;
|
|
25
|
+
createdBy?: string | undefined;
|
|
26
|
+
namespace?: string | undefined;
|
|
27
|
+
source?: string | undefined;
|
|
28
|
+
reason?: string | undefined;
|
|
29
|
+
ignoredAt?: string | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
type: "ignored";
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
notes?: string | undefined;
|
|
35
|
+
createdAt?: Date | undefined;
|
|
36
|
+
updatedAt?: Date | undefined;
|
|
37
|
+
createdBy?: string | undefined;
|
|
38
|
+
namespace?: string | undefined;
|
|
39
|
+
source?: string | undefined;
|
|
40
|
+
reason?: string | undefined;
|
|
41
|
+
ignoredAt?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
//# sourceMappingURL=ignored.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignored.d.ts","sourceRoot":"","sources":["../../src/schemas/ignored.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK5B,CAAC"}
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
export * from './person';
|
|
2
|
+
export * from './project';
|
|
3
|
+
export * from './company';
|
|
4
|
+
export * from './term';
|
|
5
|
+
export * from './ignored';
|
|
6
|
+
/**
|
|
7
|
+
* All redaksjon schemas for use with overcontext.
|
|
8
|
+
*
|
|
9
|
+
* Usage:
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import { redaksjonSchemas } from '@redaksjon/context';
|
|
12
|
+
* import { discoverOvercontext } from '@theunwalked/overcontext';
|
|
13
|
+
*
|
|
14
|
+
* const ctx = await discoverOvercontext({
|
|
15
|
+
* schemas: redaksjonSchemas,
|
|
16
|
+
* pluralNames: redaksjonPluralNames,
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare const redaksjonSchemas: {
|
|
21
|
+
person: import('zod').ZodObject<{
|
|
22
|
+
id: import('zod').ZodString;
|
|
23
|
+
name: import('zod').ZodString;
|
|
24
|
+
notes: import('zod').ZodOptional<import('zod').ZodString>;
|
|
25
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
26
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
27
|
+
createdBy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
28
|
+
namespace: import('zod').ZodOptional<import('zod').ZodString>;
|
|
29
|
+
source: import('zod').ZodOptional<import('zod').ZodString>;
|
|
30
|
+
} & {
|
|
31
|
+
type: import('zod').ZodLiteral<"person">;
|
|
32
|
+
firstName: import('zod').ZodOptional<import('zod').ZodString>;
|
|
33
|
+
lastName: import('zod').ZodOptional<import('zod').ZodString>;
|
|
34
|
+
company: import('zod').ZodOptional<import('zod').ZodString>;
|
|
35
|
+
role: import('zod').ZodOptional<import('zod').ZodString>;
|
|
36
|
+
sounds_like: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
37
|
+
context: import('zod').ZodOptional<import('zod').ZodString>;
|
|
38
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
39
|
+
type: "person";
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
firstName?: string | undefined;
|
|
43
|
+
lastName?: string | undefined;
|
|
44
|
+
company?: string | undefined;
|
|
45
|
+
role?: string | undefined;
|
|
46
|
+
sounds_like?: string[] | undefined;
|
|
47
|
+
context?: string | undefined;
|
|
48
|
+
notes?: string | undefined;
|
|
49
|
+
createdAt?: Date | undefined;
|
|
50
|
+
updatedAt?: Date | undefined;
|
|
51
|
+
createdBy?: string | undefined;
|
|
52
|
+
namespace?: string | undefined;
|
|
53
|
+
source?: string | undefined;
|
|
54
|
+
}, {
|
|
55
|
+
type: "person";
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
firstName?: string | undefined;
|
|
59
|
+
lastName?: string | undefined;
|
|
60
|
+
company?: string | undefined;
|
|
61
|
+
role?: string | undefined;
|
|
62
|
+
sounds_like?: string[] | undefined;
|
|
63
|
+
context?: string | undefined;
|
|
64
|
+
notes?: string | undefined;
|
|
65
|
+
createdAt?: Date | undefined;
|
|
66
|
+
updatedAt?: Date | undefined;
|
|
67
|
+
createdBy?: string | undefined;
|
|
68
|
+
namespace?: string | undefined;
|
|
69
|
+
source?: string | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
project: import('zod').ZodObject<{
|
|
72
|
+
id: import('zod').ZodString;
|
|
73
|
+
name: import('zod').ZodString;
|
|
74
|
+
notes: import('zod').ZodOptional<import('zod').ZodString>;
|
|
75
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
76
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
77
|
+
createdBy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
78
|
+
namespace: import('zod').ZodOptional<import('zod').ZodString>;
|
|
79
|
+
source: import('zod').ZodOptional<import('zod').ZodString>;
|
|
80
|
+
} & {
|
|
81
|
+
type: import('zod').ZodLiteral<"project">;
|
|
82
|
+
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
83
|
+
classification: import('zod').ZodObject<{
|
|
84
|
+
context_type: import('zod').ZodEnum<["work", "personal", "mixed"]>;
|
|
85
|
+
associated_people: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
86
|
+
associated_companies: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
87
|
+
topics: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
88
|
+
explicit_phrases: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
89
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
90
|
+
context_type: "work" | "personal" | "mixed";
|
|
91
|
+
associated_people?: string[] | undefined;
|
|
92
|
+
associated_companies?: string[] | undefined;
|
|
93
|
+
topics?: string[] | undefined;
|
|
94
|
+
explicit_phrases?: string[] | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
context_type: "work" | "personal" | "mixed";
|
|
97
|
+
associated_people?: string[] | undefined;
|
|
98
|
+
associated_companies?: string[] | undefined;
|
|
99
|
+
topics?: string[] | undefined;
|
|
100
|
+
explicit_phrases?: string[] | undefined;
|
|
101
|
+
}>;
|
|
102
|
+
routing: import('zod').ZodObject<{
|
|
103
|
+
destination: import('zod').ZodOptional<import('zod').ZodString>;
|
|
104
|
+
structure: import('zod').ZodEnum<["none", "year", "month", "day"]>;
|
|
105
|
+
filename_options: import('zod').ZodArray<import('zod').ZodEnum<["date", "time", "subject"]>, "many">;
|
|
106
|
+
auto_tags: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
107
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
108
|
+
structure: "none" | "year" | "month" | "day";
|
|
109
|
+
filename_options: ("date" | "time" | "subject")[];
|
|
110
|
+
destination?: string | undefined;
|
|
111
|
+
auto_tags?: string[] | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
structure: "none" | "year" | "month" | "day";
|
|
114
|
+
filename_options: ("date" | "time" | "subject")[];
|
|
115
|
+
destination?: string | undefined;
|
|
116
|
+
auto_tags?: string[] | undefined;
|
|
117
|
+
}>;
|
|
118
|
+
sounds_like: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
119
|
+
relationships: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
120
|
+
parent: import('zod').ZodOptional<import('zod').ZodString>;
|
|
121
|
+
children: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
122
|
+
siblings: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
123
|
+
dependsOn: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
124
|
+
relatedTerms: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
125
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
126
|
+
parent?: string | undefined;
|
|
127
|
+
children?: string[] | undefined;
|
|
128
|
+
siblings?: string[] | undefined;
|
|
129
|
+
dependsOn?: string[] | undefined;
|
|
130
|
+
relatedTerms?: string[] | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
parent?: string | undefined;
|
|
133
|
+
children?: string[] | undefined;
|
|
134
|
+
siblings?: string[] | undefined;
|
|
135
|
+
dependsOn?: string[] | undefined;
|
|
136
|
+
relatedTerms?: string[] | undefined;
|
|
137
|
+
}>>;
|
|
138
|
+
active: import('zod').ZodOptional<import('zod').ZodBoolean>;
|
|
139
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
140
|
+
type: "project";
|
|
141
|
+
id: string;
|
|
142
|
+
name: string;
|
|
143
|
+
classification: {
|
|
144
|
+
context_type: "work" | "personal" | "mixed";
|
|
145
|
+
associated_people?: string[] | undefined;
|
|
146
|
+
associated_companies?: string[] | undefined;
|
|
147
|
+
topics?: string[] | undefined;
|
|
148
|
+
explicit_phrases?: string[] | undefined;
|
|
149
|
+
};
|
|
150
|
+
routing: {
|
|
151
|
+
structure: "none" | "year" | "month" | "day";
|
|
152
|
+
filename_options: ("date" | "time" | "subject")[];
|
|
153
|
+
destination?: string | undefined;
|
|
154
|
+
auto_tags?: string[] | undefined;
|
|
155
|
+
};
|
|
156
|
+
sounds_like?: string[] | undefined;
|
|
157
|
+
notes?: string | undefined;
|
|
158
|
+
createdAt?: Date | undefined;
|
|
159
|
+
updatedAt?: Date | undefined;
|
|
160
|
+
createdBy?: string | undefined;
|
|
161
|
+
namespace?: string | undefined;
|
|
162
|
+
source?: string | undefined;
|
|
163
|
+
description?: string | undefined;
|
|
164
|
+
relationships?: {
|
|
165
|
+
parent?: string | undefined;
|
|
166
|
+
children?: string[] | undefined;
|
|
167
|
+
siblings?: string[] | undefined;
|
|
168
|
+
dependsOn?: string[] | undefined;
|
|
169
|
+
relatedTerms?: string[] | undefined;
|
|
170
|
+
} | undefined;
|
|
171
|
+
active?: boolean | undefined;
|
|
172
|
+
}, {
|
|
173
|
+
type: "project";
|
|
174
|
+
id: string;
|
|
175
|
+
name: string;
|
|
176
|
+
classification: {
|
|
177
|
+
context_type: "work" | "personal" | "mixed";
|
|
178
|
+
associated_people?: string[] | undefined;
|
|
179
|
+
associated_companies?: string[] | undefined;
|
|
180
|
+
topics?: string[] | undefined;
|
|
181
|
+
explicit_phrases?: string[] | undefined;
|
|
182
|
+
};
|
|
183
|
+
routing: {
|
|
184
|
+
structure: "none" | "year" | "month" | "day";
|
|
185
|
+
filename_options: ("date" | "time" | "subject")[];
|
|
186
|
+
destination?: string | undefined;
|
|
187
|
+
auto_tags?: string[] | undefined;
|
|
188
|
+
};
|
|
189
|
+
sounds_like?: string[] | undefined;
|
|
190
|
+
notes?: string | undefined;
|
|
191
|
+
createdAt?: Date | undefined;
|
|
192
|
+
updatedAt?: Date | undefined;
|
|
193
|
+
createdBy?: string | undefined;
|
|
194
|
+
namespace?: string | undefined;
|
|
195
|
+
source?: string | undefined;
|
|
196
|
+
description?: string | undefined;
|
|
197
|
+
relationships?: {
|
|
198
|
+
parent?: string | undefined;
|
|
199
|
+
children?: string[] | undefined;
|
|
200
|
+
siblings?: string[] | undefined;
|
|
201
|
+
dependsOn?: string[] | undefined;
|
|
202
|
+
relatedTerms?: string[] | undefined;
|
|
203
|
+
} | undefined;
|
|
204
|
+
active?: boolean | undefined;
|
|
205
|
+
}>;
|
|
206
|
+
company: import('zod').ZodObject<{
|
|
207
|
+
id: import('zod').ZodString;
|
|
208
|
+
name: import('zod').ZodString;
|
|
209
|
+
notes: import('zod').ZodOptional<import('zod').ZodString>;
|
|
210
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
211
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
212
|
+
createdBy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
213
|
+
namespace: import('zod').ZodOptional<import('zod').ZodString>;
|
|
214
|
+
source: import('zod').ZodOptional<import('zod').ZodString>;
|
|
215
|
+
} & {
|
|
216
|
+
type: import('zod').ZodLiteral<"company">;
|
|
217
|
+
fullName: import('zod').ZodOptional<import('zod').ZodString>;
|
|
218
|
+
industry: import('zod').ZodOptional<import('zod').ZodString>;
|
|
219
|
+
sounds_like: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
220
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
221
|
+
type: "company";
|
|
222
|
+
id: string;
|
|
223
|
+
name: string;
|
|
224
|
+
sounds_like?: string[] | undefined;
|
|
225
|
+
notes?: string | undefined;
|
|
226
|
+
createdAt?: Date | undefined;
|
|
227
|
+
updatedAt?: Date | undefined;
|
|
228
|
+
createdBy?: string | undefined;
|
|
229
|
+
namespace?: string | undefined;
|
|
230
|
+
source?: string | undefined;
|
|
231
|
+
fullName?: string | undefined;
|
|
232
|
+
industry?: string | undefined;
|
|
233
|
+
}, {
|
|
234
|
+
type: "company";
|
|
235
|
+
id: string;
|
|
236
|
+
name: string;
|
|
237
|
+
sounds_like?: string[] | undefined;
|
|
238
|
+
notes?: string | undefined;
|
|
239
|
+
createdAt?: Date | undefined;
|
|
240
|
+
updatedAt?: Date | undefined;
|
|
241
|
+
createdBy?: string | undefined;
|
|
242
|
+
namespace?: string | undefined;
|
|
243
|
+
source?: string | undefined;
|
|
244
|
+
fullName?: string | undefined;
|
|
245
|
+
industry?: string | undefined;
|
|
246
|
+
}>;
|
|
247
|
+
term: import('zod').ZodObject<{
|
|
248
|
+
id: import('zod').ZodString;
|
|
249
|
+
name: import('zod').ZodString;
|
|
250
|
+
notes: import('zod').ZodOptional<import('zod').ZodString>;
|
|
251
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
252
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
253
|
+
createdBy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
254
|
+
namespace: import('zod').ZodOptional<import('zod').ZodString>;
|
|
255
|
+
source: import('zod').ZodOptional<import('zod').ZodString>;
|
|
256
|
+
} & {
|
|
257
|
+
type: import('zod').ZodLiteral<"term">;
|
|
258
|
+
expansion: import('zod').ZodOptional<import('zod').ZodString>;
|
|
259
|
+
domain: import('zod').ZodOptional<import('zod').ZodString>;
|
|
260
|
+
sounds_like: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
261
|
+
projects: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
262
|
+
description: import('zod').ZodOptional<import('zod').ZodString>;
|
|
263
|
+
topics: import('zod').ZodOptional<import('zod').ZodArray<import('zod').ZodString, "many">>;
|
|
264
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
265
|
+
type: "term";
|
|
266
|
+
id: string;
|
|
267
|
+
name: string;
|
|
268
|
+
sounds_like?: string[] | undefined;
|
|
269
|
+
notes?: string | undefined;
|
|
270
|
+
createdAt?: Date | undefined;
|
|
271
|
+
updatedAt?: Date | undefined;
|
|
272
|
+
createdBy?: string | undefined;
|
|
273
|
+
namespace?: string | undefined;
|
|
274
|
+
source?: string | undefined;
|
|
275
|
+
topics?: string[] | undefined;
|
|
276
|
+
description?: string | undefined;
|
|
277
|
+
expansion?: string | undefined;
|
|
278
|
+
domain?: string | undefined;
|
|
279
|
+
projects?: string[] | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
type: "term";
|
|
282
|
+
id: string;
|
|
283
|
+
name: string;
|
|
284
|
+
sounds_like?: string[] | undefined;
|
|
285
|
+
notes?: string | undefined;
|
|
286
|
+
createdAt?: Date | undefined;
|
|
287
|
+
updatedAt?: Date | undefined;
|
|
288
|
+
createdBy?: string | undefined;
|
|
289
|
+
namespace?: string | undefined;
|
|
290
|
+
source?: string | undefined;
|
|
291
|
+
topics?: string[] | undefined;
|
|
292
|
+
description?: string | undefined;
|
|
293
|
+
expansion?: string | undefined;
|
|
294
|
+
domain?: string | undefined;
|
|
295
|
+
projects?: string[] | undefined;
|
|
296
|
+
}>;
|
|
297
|
+
ignored: import('zod').ZodObject<{
|
|
298
|
+
id: import('zod').ZodString;
|
|
299
|
+
name: import('zod').ZodString;
|
|
300
|
+
notes: import('zod').ZodOptional<import('zod').ZodString>;
|
|
301
|
+
createdAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
302
|
+
updatedAt: import('zod').ZodOptional<import('zod').ZodDate>;
|
|
303
|
+
createdBy: import('zod').ZodOptional<import('zod').ZodString>;
|
|
304
|
+
namespace: import('zod').ZodOptional<import('zod').ZodString>;
|
|
305
|
+
source: import('zod').ZodOptional<import('zod').ZodString>;
|
|
306
|
+
} & {
|
|
307
|
+
type: import('zod').ZodLiteral<"ignored">;
|
|
308
|
+
reason: import('zod').ZodOptional<import('zod').ZodString>;
|
|
309
|
+
ignoredAt: import('zod').ZodOptional<import('zod').ZodString>;
|
|
310
|
+
}, "strip", import('zod').ZodTypeAny, {
|
|
311
|
+
type: "ignored";
|
|
312
|
+
id: string;
|
|
313
|
+
name: string;
|
|
314
|
+
notes?: string | undefined;
|
|
315
|
+
createdAt?: Date | undefined;
|
|
316
|
+
updatedAt?: Date | undefined;
|
|
317
|
+
createdBy?: string | undefined;
|
|
318
|
+
namespace?: string | undefined;
|
|
319
|
+
source?: string | undefined;
|
|
320
|
+
reason?: string | undefined;
|
|
321
|
+
ignoredAt?: string | undefined;
|
|
322
|
+
}, {
|
|
323
|
+
type: "ignored";
|
|
324
|
+
id: string;
|
|
325
|
+
name: string;
|
|
326
|
+
notes?: string | undefined;
|
|
327
|
+
createdAt?: Date | undefined;
|
|
328
|
+
updatedAt?: Date | undefined;
|
|
329
|
+
createdBy?: string | undefined;
|
|
330
|
+
namespace?: string | undefined;
|
|
331
|
+
source?: string | undefined;
|
|
332
|
+
reason?: string | undefined;
|
|
333
|
+
ignoredAt?: string | undefined;
|
|
334
|
+
}>;
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Plural names for directory mapping.
|
|
338
|
+
*/
|
|
339
|
+
export declare const redaksjonPluralNames: {
|
|
340
|
+
person: string;
|
|
341
|
+
company: string;
|
|
342
|
+
term: string;
|
|
343
|
+
ignored: string;
|
|
344
|
+
project: string;
|
|
345
|
+
};
|
|
346
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAQ1B;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;CAMhC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Person entity - named individuals the user frequently mentions.
|
|
4
|
+
*/
|
|
5
|
+
export declare const PersonSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
9
|
+
createdAt: z.ZodOptional<z.ZodDate>;
|
|
10
|
+
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
11
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
12
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
13
|
+
source: z.ZodOptional<z.ZodString>;
|
|
14
|
+
} & {
|
|
15
|
+
type: z.ZodLiteral<"person">;
|
|
16
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
17
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
18
|
+
company: z.ZodOptional<z.ZodString>;
|
|
19
|
+
role: z.ZodOptional<z.ZodString>;
|
|
20
|
+
sounds_like: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
21
|
+
context: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
type: "person";
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
firstName?: string | undefined;
|
|
27
|
+
lastName?: string | undefined;
|
|
28
|
+
company?: string | undefined;
|
|
29
|
+
role?: string | undefined;
|
|
30
|
+
sounds_like?: string[] | undefined;
|
|
31
|
+
context?: string | undefined;
|
|
32
|
+
notes?: string | undefined;
|
|
33
|
+
createdAt?: Date | undefined;
|
|
34
|
+
updatedAt?: Date | undefined;
|
|
35
|
+
createdBy?: string | undefined;
|
|
36
|
+
namespace?: string | undefined;
|
|
37
|
+
source?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
type: "person";
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
firstName?: string | undefined;
|
|
43
|
+
lastName?: string | undefined;
|
|
44
|
+
company?: string | undefined;
|
|
45
|
+
role?: string | undefined;
|
|
46
|
+
sounds_like?: string[] | undefined;
|
|
47
|
+
context?: string | undefined;
|
|
48
|
+
notes?: string | undefined;
|
|
49
|
+
createdAt?: Date | undefined;
|
|
50
|
+
updatedAt?: Date | undefined;
|
|
51
|
+
createdBy?: string | undefined;
|
|
52
|
+
namespace?: string | undefined;
|
|
53
|
+
source?: string | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
//# sourceMappingURL=person.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person.d.ts","sourceRoot":"","sources":["../../src/schemas/person.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASvB,CAAC"}
|