@agentshouse/mdmodel 0.1.0-c0bdbbc92d020 → 0.1.0-c107ff2190b0a
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/API.md +349 -251
- package/README.md +29 -29
- package/dist/body.d.ts +85 -0
- package/dist/body.d.ts.map +1 -0
- package/dist/body.js +1083 -0
- package/dist/built-in.d.ts +4 -0
- package/dist/built-in.d.ts.map +1 -0
- package/dist/built-in.js +28 -0
- package/dist/definition.d.ts +52 -11
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js +566 -113
- package/dist/document.d.ts +20 -13
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +1038 -213
- package/dist/event.d.ts +74 -0
- package/dist/event.d.ts.map +1 -0
- package/dist/event.js +201 -0
- package/dist/facts.d.ts +15 -0
- package/dist/facts.d.ts.map +1 -0
- package/dist/facts.js +45 -0
- package/dist/fields.d.ts +3 -1
- package/dist/fields.d.ts.map +1 -1
- package/dist/fields.js +8 -1
- package/dist/folders.d.ts +5 -0
- package/dist/folders.d.ts.map +1 -0
- package/dist/folders.js +19 -0
- package/dist/form.d.ts +4 -0
- package/dist/form.d.ts.map +1 -0
- package/dist/form.js +153 -0
- package/dist/house-model.d.ts +1117 -0
- package/dist/house-model.d.ts.map +1 -0
- package/dist/house-model.js +600 -0
- package/dist/house-references/crockford.d.ts +4 -0
- package/dist/house-references/crockford.d.ts.map +1 -0
- package/dist/house-references/crockford.js +3 -0
- package/dist/house-references/patterns.d.ts +13 -0
- package/dist/house-references/patterns.d.ts.map +1 -0
- package/dist/house-references/patterns.js +20 -0
- package/dist/index.d.ts +46 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +28 -9
- package/dist/indexed.d.ts +10 -0
- package/dist/indexed.d.ts.map +1 -0
- package/dist/indexed.js +63 -0
- package/dist/kinds.d.ts +26 -0
- package/dist/kinds.d.ts.map +1 -0
- package/dist/kinds.js +218 -0
- package/dist/markdown.d.ts +71 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/markdown.js +232 -0
- package/dist/media-type.d.ts +72 -0
- package/dist/media-type.d.ts.map +1 -0
- package/dist/media-type.js +157 -0
- package/dist/moment.d.ts +9 -0
- package/dist/moment.d.ts.map +1 -0
- package/dist/moment.js +40 -0
- package/dist/not-ready.d.ts +2 -0
- package/dist/not-ready.d.ts.map +1 -0
- package/dist/not-ready.js +5 -0
- package/dist/paths.d.ts +26 -2
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +207 -16
- package/dist/pattern.d.ts +10 -0
- package/dist/pattern.d.ts.map +1 -0
- package/dist/pattern.js +356 -0
- package/dist/query/language.d.ts +257 -0
- package/dist/query/language.d.ts.map +1 -0
- package/dist/query/language.js +621 -0
- package/dist/query/match.d.ts +14 -0
- package/dist/query/match.d.ts.map +1 -0
- package/dist/query/match.js +129 -0
- package/dist/query/rows.d.ts +37 -0
- package/dist/query/rows.d.ts.map +1 -0
- package/dist/query/rows.js +190 -0
- package/dist/query/sql.d.ts +48 -0
- package/dist/query/sql.d.ts.map +1 -0
- package/dist/query/sql.js +304 -0
- package/dist/query/walk.d.ts +73 -0
- package/dist/query/walk.d.ts.map +1 -0
- package/dist/query/walk.js +277 -0
- package/dist/references.d.ts +1 -1
- package/dist/references.d.ts.map +1 -1
- package/dist/references.js +7 -2
- package/dist/refuse.d.ts +1 -0
- package/dist/refuse.d.ts.map +1 -1
- package/dist/refuse.js +1 -0
- package/dist/reserved.d.ts +6 -0
- package/dist/reserved.d.ts.map +1 -0
- package/dist/reserved.js +30 -0
- package/dist/room-types.d.ts +8 -0
- package/dist/room-types.d.ts.map +1 -0
- package/dist/room-types.js +142 -0
- package/dist/schema.d.ts +1 -2
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +11 -24
- package/dist/types.d.ts +70 -21
- package/dist/types.d.ts.map +1 -1
- package/dist/validate.d.ts +38 -2
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +445 -142
- package/dist/view.d.ts +5 -0
- package/dist/view.d.ts.map +1 -0
- package/dist/view.js +27 -0
- package/dist/yaml.d.ts +10 -4
- package/dist/yaml.d.ts.map +1 -1
- package/dist/yaml.js +258 -82
- package/fixtures/README.md +112 -67
- package/fixtures/cases/absent-link-dangles/library/item.md +1 -1
- package/fixtures/cases/absent-link-dangles/schema.md +7 -0
- package/fixtures/cases/absent-optional-field/library/companies/acme.md +1 -1
- package/fixtures/cases/absent-optional-field/library/deals/lead.md +3 -3
- package/fixtures/cases/{closed-nested-object/schema.yaml → absent-optional-field/schema.md} +12 -11
- package/fixtures/cases/absolute-link/library/item.md +1 -1
- package/fixtures/cases/absolute-link/schema.md +7 -0
- package/fixtures/cases/attachment-reference-any-file/library/companies/acme.md +1 -1
- package/fixtures/cases/attachment-reference-any-file/library/deals/renewal.md +13 -10
- package/fixtures/cases/attachment-reference-any-file/library/places/depot.md +1 -1
- package/fixtures/cases/attachment-reference-any-file/library/products/seats.md +1 -1
- package/fixtures/cases/attachment-reference-any-file/library/products/support.md +1 -1
- package/fixtures/cases/attachment-reference-any-file/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/attachment-reference-dangles/library/companies/acme.md +1 -1
- package/fixtures/cases/attachment-reference-dangles/library/deals/renewal.md +13 -10
- package/fixtures/cases/attachment-reference-dangles/library/places/depot.md +1 -1
- package/fixtures/cases/attachment-reference-dangles/library/products/seats.md +1 -1
- package/fixtures/cases/attachment-reference-dangles/library/products/support.md +1 -1
- package/fixtures/cases/attachment-reference-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/attachment-reference-outside/expected.json +2 -1
- package/fixtures/cases/attachment-reference-outside/library/companies/acme.md +1 -1
- package/fixtures/cases/attachment-reference-outside/library/deals/renewal.md +13 -10
- package/fixtures/cases/attachment-reference-outside/library/places/depot.md +1 -1
- package/fixtures/cases/attachment-reference-outside/library/products/seats.md +1 -1
- package/fixtures/cases/attachment-reference-outside/library/products/support.md +1 -1
- package/fixtures/cases/attachment-reference-outside/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-any-reference/expected.json +2 -1
- package/fixtures/cases/binary-any-reference/library/notes/draft.md +1 -1
- package/fixtures/cases/binary-any-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-document-collision/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-image-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-link-dangles/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-link-outside-collection/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-prototype-reference/expected.json +2 -1
- package/fixtures/cases/binary-prototype-reference/library/notes/draft.md +1 -1
- package/fixtures/cases/binary-prototype-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/binary-typed-reference/expected.json +2 -1
- package/fixtures/cases/binary-typed-reference/library/notes/draft.md +1 -1
- package/fixtures/cases/binary-typed-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/block-scalar-frontmatter/library/notes/literal.md +17 -0
- package/fixtures/cases/block-scalar-frontmatter/library/skills/notes/SKILL.md +10 -0
- package/fixtures/cases/boolean-field/expected.json +2 -1
- package/fixtures/cases/boolean-field/library/companies/acme.md +1 -1
- package/fixtures/cases/boolean-field/library/deals/renewal.md +49 -24
- package/fixtures/cases/{absent-optional-field/schema.yaml → boolean-field/schema.md} +12 -11
- package/fixtures/cases/bracketed-link-definition/library/item.md +1 -1
- package/fixtures/cases/bracketed-link-definition/schema.md +7 -0
- package/fixtures/cases/closed-nested-object/expected.json +2 -1
- package/fixtures/cases/closed-nested-object/library/companies/acme.md +1 -1
- package/fixtures/cases/closed-nested-object/library/deals/renewal.md +50 -25
- package/fixtures/cases/{date-time-format/schema.yaml → closed-nested-object/schema.md} +12 -11
- package/fixtures/cases/composed-root-reference/library/a.md +2 -2
- package/fixtures/cases/composed-root-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/conditional-long-text/expected.json +7 -0
- package/fixtures/cases/conditional-long-text/library/questions/hosting.md +9 -0
- package/fixtures/cases/conditional-long-text/library/questions/payments.md +12 -0
- package/fixtures/cases/conditional-long-text/schema.md +15 -0
- package/fixtures/cases/cross-room-link/expected.json +1 -0
- package/fixtures/cases/cross-room-link/library/clients/acme.md +6 -0
- package/fixtures/cases/cross-room-link/schema.md +5 -0
- package/fixtures/cases/cross-room-reference/expected.json +1 -0
- package/fixtures/cases/cross-room-reference/library/clients/acme.md +9 -0
- package/fixtures/cases/cross-room-reference/schema.md +10 -0
- package/fixtures/cases/date-time-format/expected.json +2 -1
- package/fixtures/cases/date-time-format/library/companies/acme.md +1 -1
- package/fixtures/cases/date-time-format/library/deals/renewal.md +49 -24
- package/fixtures/cases/{boolean-field/schema.yaml → date-time-format/schema.md} +12 -11
- package/fixtures/cases/declared-binary-links/schema.md +3 -0
- package/fixtures/cases/default-unfilled/library/companies/acme.md +1 -1
- package/fixtures/cases/default-unfilled/library/deals/renewal.md +47 -22
- package/fixtures/cases/default-unfilled/schema.md +57 -0
- package/fixtures/cases/defs-pattern/expected.json +2 -1
- package/fixtures/cases/defs-pattern/library/companies/acme.md +1 -1
- package/fixtures/cases/defs-pattern/library/deals/renewal.md +49 -24
- package/fixtures/cases/defs-pattern/schema.md +57 -0
- package/fixtures/cases/dependent-rule/library/companies/acme.md +1 -1
- package/fixtures/cases/dependent-rule/library/deals/renewal.md +48 -23
- package/fixtures/cases/dependent-rule/schema.md +57 -0
- package/fixtures/cases/duplicate-link-definition/library/item.md +1 -1
- package/fixtures/cases/duplicate-link-definition/schema.md +7 -0
- package/fixtures/cases/email-format/expected.json +2 -1
- package/fixtures/cases/email-format/library/companies/acme.md +1 -1
- package/fixtures/cases/email-format/library/deals/renewal.md +49 -24
- package/fixtures/cases/email-format/schema.md +57 -0
- package/fixtures/cases/equal-labels/expected.json +5 -0
- package/fixtures/cases/equal-labels/schema.md +6 -0
- package/fixtures/cases/fenced-link-definition/library/item.md +1 -1
- package/fixtures/cases/fenced-link-definition/schema.md +7 -0
- package/fixtures/cases/field-enum/expected.json +2 -1
- package/fixtures/cases/field-enum/library/item.md +2 -2
- package/fixtures/cases/field-enum/schema.md +8 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/expected.json +1 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/door.md +3 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/host.md +13 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/map.md +24 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/library/tickets/open.md +13 -0
- package/fixtures/cases/folder-keeps-a-built-in-type/schema.md +9 -0
- package/fixtures/cases/folder-keeps-a-record/expected.json +1 -0
- package/fixtures/cases/folder-keeps-a-record/library/tickets/2026-11-16-d_1.r.md +13 -0
- package/fixtures/cases/folder-keeps-a-record/library/tickets/door.md +3 -0
- package/fixtures/cases/folder-keeps-a-record/schema.md +9 -0
- package/fixtures/cases/folder-names-no-type-of-the-schema/expected.json +5 -0
- package/fixtures/cases/folder-names-no-type-of-the-schema/schema.md +7 -0
- package/fixtures/cases/folder-nearer-entry-types-a-document/expected.json +6 -0
- package/fixtures/cases/folder-nearer-entry-types-a-document/library/tickets/archive/2025/old.md +1 -0
- package/fixtures/cases/folder-nearer-entry-types-a-document/schema.md +15 -0
- package/fixtures/cases/folder-refuses-a-declared-any/expected.json +6 -0
- package/fixtures/cases/folder-refuses-a-declared-any/library/tickets/door.md +5 -0
- package/fixtures/cases/folder-refuses-a-declared-any/schema.md +9 -0
- package/fixtures/cases/folder-refuses-another-declared-type/context.json +1 -0
- package/fixtures/cases/folder-refuses-another-declared-type/expected.json +6 -0
- package/fixtures/cases/folder-refuses-another-declared-type/library/tickets/door.md +5 -0
- package/fixtures/cases/folder-refuses-another-declared-type/schema.md +12 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/context.json +1 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/expected.json +1 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/library/notes/plan.md +7 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/library/tickets/door.md +3 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/library/tickets/gate.md +7 -0
- package/fixtures/cases/folder-type-is-the-type-a-reference-reaches/schema.md +13 -0
- package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/context.json +1 -0
- package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/expected.json +6 -0
- package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/library/tickets/2026/gate.md +1 -0
- package/fixtures/cases/folder-types-a-document-in-a-folder-below-it/schema.md +9 -0
- package/fixtures/cases/folder-types-a-document-that-names-no-type/context.json +1 -0
- package/fixtures/cases/folder-types-a-document-that-names-no-type/expected.json +7 -0
- package/fixtures/cases/folder-types-a-document-that-names-no-type/library/tickets/door.md +3 -0
- package/fixtures/cases/folder-types-a-document-that-names-no-type/schema.md +9 -0
- package/fixtures/cases/folder-under-a-reserved-name/context.json +1 -0
- package/fixtures/cases/folder-under-a-reserved-name/expected.json +5 -0
- package/fixtures/cases/folder-under-a-reserved-name/schema.md +7 -0
- package/fixtures/cases/folder-without-a-trailing-slash/context.json +1 -0
- package/fixtures/cases/folder-without-a-trailing-slash/expected.json +5 -0
- package/fixtures/cases/folder-without-a-trailing-slash/schema.md +7 -0
- package/fixtures/cases/frontmatter-construct/context.json +1 -0
- package/fixtures/cases/frontmatter-construct/expected.json +7 -0
- package/fixtures/cases/frontmatter-construct/library/note.md +6 -0
- package/fixtures/cases/integer-field/expected.json +2 -1
- package/fixtures/cases/integer-field/library/companies/acme.md +1 -1
- package/fixtures/cases/integer-field/library/deals/renewal.md +49 -24
- package/fixtures/cases/integer-field/schema.md +57 -0
- package/fixtures/cases/interrupted-link-definition/schema.md +3 -0
- package/fixtures/cases/json-schema-constructs/library/companies/acme.md +1 -1
- package/fixtures/cases/json-schema-constructs/library/deals/renewal.md +49 -24
- package/fixtures/cases/json-schema-constructs/schema.md +57 -0
- package/fixtures/cases/labels-in-the-rooms-language/context.json +1 -0
- package/fixtures/cases/labels-in-the-rooms-language/expected.json +1 -0
- package/fixtures/cases/labels-in-the-rooms-language/library/deals/atlas.md +7 -0
- package/fixtures/cases/labels-in-the-rooms-language/schema.md +11 -0
- package/fixtures/cases/lazy-list-item/context.json +1 -0
- package/fixtures/cases/lazy-list-item/expected.json +3 -0
- package/fixtures/cases/lazy-list-item/library/item.md +10 -0
- package/fixtures/cases/lazy-list-item/schema.md +5 -0
- package/fixtures/cases/link-into-a-reserved-name/context.json +1 -0
- package/fixtures/cases/link-into-a-reserved-name/expected.json +5 -0
- package/fixtures/cases/link-into-a-reserved-name/library/notes/a.md +6 -0
- package/fixtures/cases/{unknown-type/schema.yaml → link-into-a-reserved-name/schema.md} +3 -1
- package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/context.json +1 -0
- package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/expected.json +5 -0
- package/fixtures/cases/link-into-a-reserved-name-from-an-untyped-document/library/notes/b.md +5 -0
- package/fixtures/cases/list-item-enum/context.json +1 -0
- package/fixtures/cases/list-item-enum/expected.json +7 -0
- package/fixtures/cases/list-item-enum/library/task.md +7 -0
- package/fixtures/cases/list-item-enum/schema.md +5 -0
- package/fixtures/cases/list-item-kind/context.json +1 -0
- package/fixtures/cases/list-item-kind/expected.json +7 -0
- package/fixtures/cases/list-item-kind/library/task.md +6 -0
- package/fixtures/cases/list-item-kind/schema.md +5 -0
- package/fixtures/cases/list-items/context.json +1 -0
- package/fixtures/cases/list-items/expected.json +1 -0
- package/fixtures/cases/list-items/library/page.md +26 -0
- package/fixtures/cases/list-items/schema.md +12 -0
- package/fixtures/cases/list-of-objects-closed/expected.json +2 -1
- package/fixtures/cases/list-of-objects-closed/library/companies/acme.md +1 -1
- package/fixtures/cases/list-of-objects-closed/library/deals/renewal.md +49 -25
- package/fixtures/cases/list-of-objects-closed/schema.md +57 -0
- package/fixtures/cases/list-of-objects-item/expected.json +2 -1
- package/fixtures/cases/list-of-objects-item/library/companies/acme.md +1 -1
- package/fixtures/cases/list-of-objects-item/library/deals/renewal.md +49 -24
- package/fixtures/cases/list-of-objects-item/schema.md +57 -0
- package/fixtures/cases/list-of-objects-reference/expected.json +2 -1
- package/fixtures/cases/list-of-objects-reference/library/companies/acme.md +1 -1
- package/fixtures/cases/list-of-objects-reference/library/deals/renewal.md +12 -9
- package/fixtures/cases/list-of-objects-reference/library/places/depot.md +1 -1
- package/fixtures/cases/list-of-objects-reference/library/products/seats.md +1 -1
- package/fixtures/cases/list-of-objects-reference/library/products/support.md +1 -1
- package/fixtures/cases/list-of-objects-reference/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/list-reference-path/context.json +1 -0
- package/fixtures/cases/list-reference-path/expected.json +7 -0
- package/fixtures/cases/list-reference-path/library/page.md +5 -0
- package/fixtures/cases/list-reference-path/schema.md +5 -0
- package/fixtures/cases/list-reference-type/context.json +1 -0
- package/fixtures/cases/list-reference-type/expected.json +7 -0
- package/fixtures/cases/list-reference-type/library/page.md +6 -0
- package/fixtures/cases/list-reference-type/schema.md +5 -0
- package/fixtures/cases/list-size/expected.json +2 -1
- package/fixtures/cases/list-size/library/companies/acme.md +1 -1
- package/fixtures/cases/list-size/library/deals/renewal.md +51 -24
- package/fixtures/cases/list-size/schema.md +57 -0
- package/fixtures/cases/long-fence-link-definition/schema.md +3 -0
- package/fixtures/cases/long-value-past-six-levels/context.json +1 -0
- package/fixtures/cases/long-value-past-six-levels/expected.json +5 -0
- package/fixtures/cases/long-value-past-six-levels/schema.md +17 -0
- package/fixtures/cases/malformed-definition/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/malformed-list/context.json +1 -0
- package/fixtures/cases/malformed-list/expected.json +7 -0
- package/fixtures/cases/{structured-section → malformed-list}/library/item.md +1 -1
- package/fixtures/cases/malformed-list/schema.md +8 -0
- package/fixtures/cases/member-document/library/people/ana.md +2 -2
- package/fixtures/cases/member-document/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/member-on-an-untyped-document/context.json +1 -0
- package/fixtures/cases/member-on-an-untyped-document/expected.json +6 -0
- package/fixtures/cases/member-on-an-untyped-document/library/note.md +4 -0
- package/fixtures/cases/member-on-another-type/context.json +1 -0
- package/fixtures/cases/member-on-another-type/expected.json +6 -0
- package/fixtures/cases/member-on-another-type/library/note.md +4 -0
- package/fixtures/cases/member-on-another-type/schema.md +9 -0
- package/fixtures/cases/missing-required-field/library/item.md +1 -1
- package/fixtures/cases/missing-required-field/schema.md +8 -0
- package/fixtures/cases/misspelled-key/expected.json +2 -1
- package/fixtures/cases/misspelled-key/library/companies/acme.md +1 -1
- package/fixtures/cases/misspelled-key/library/deals/renewal.md +50 -25
- package/fixtures/cases/misspelled-key/schema.md +57 -0
- package/fixtures/cases/name-not-a-string/context.json +1 -0
- package/fixtures/cases/name-not-a-string/expected.json +5 -0
- package/fixtures/cases/name-not-a-string/schema.md +7 -0
- package/fixtures/cases/nested-defs/expected.json +2 -1
- package/fixtures/cases/nested-defs/library/deal.md +3 -3
- package/fixtures/cases/nested-defs/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/nested-object-reference/expected.json +2 -1
- package/fixtures/cases/nested-object-reference/library/companies/acme.md +1 -1
- package/fixtures/cases/nested-object-reference/library/deals/renewal.md +12 -9
- package/fixtures/cases/nested-object-reference/library/places/depot.md +1 -1
- package/fixtures/cases/nested-object-reference/library/products/seats.md +1 -1
- package/fixtures/cases/nested-object-reference/library/products/support.md +1 -1
- package/fixtures/cases/nested-object-reference/schema.md +34 -0
- package/fixtures/cases/nested-reference/library/companies/acme.md +1 -1
- package/fixtures/cases/nested-reference/library/deals/renewal.md +13 -10
- package/fixtures/cases/nested-reference/library/places/depot.md +1 -1
- package/fixtures/cases/nested-reference/library/products/seats.md +1 -1
- package/fixtures/cases/nested-reference/library/products/support.md +1 -1
- package/fixtures/cases/nested-reference/schema.md +34 -0
- package/fixtures/cases/nested-required-field/expected.json +2 -1
- package/fixtures/cases/nested-required-field/library/companies/acme.md +1 -1
- package/fixtures/cases/nested-required-field/library/deals/renewal.md +48 -23
- package/fixtures/cases/nested-required-field/schema.md +57 -0
- package/fixtures/cases/numeric-range/expected.json +2 -1
- package/fixtures/cases/numeric-range/library/companies/acme.md +1 -1
- package/fixtures/cases/numeric-range/library/deals/renewal.md +49 -24
- package/fixtures/cases/numeric-range/schema.md +57 -0
- package/fixtures/cases/one-key-two-labels/context.json +1 -0
- package/fixtures/cases/one-key-two-labels/expected.json +5 -0
- package/fixtures/cases/one-key-two-labels/schema.md +7 -0
- package/fixtures/cases/one-key-two-types/context.json +1 -0
- package/fixtures/cases/one-key-two-types/expected.json +5 -0
- package/fixtures/cases/one-key-two-types/schema.md +6 -0
- package/fixtures/cases/one-of-variant/expected.json +2 -1
- package/fixtures/cases/one-of-variant/library/companies/acme.md +1 -1
- package/fixtures/cases/one-of-variant/library/deals/renewal.md +49 -24
- package/fixtures/cases/one-of-variant/schema.md +57 -0
- package/fixtures/cases/other-room-reference/expected.json +2 -1
- package/fixtures/cases/other-room-reference/library/companies/acme.md +1 -1
- package/fixtures/cases/other-room-reference/library/deals/renewal.md +12 -9
- package/fixtures/cases/other-room-reference/library/places/depot.md +1 -1
- package/fixtures/cases/other-room-reference/library/products/seats.md +1 -1
- package/fixtures/cases/other-room-reference/library/products/support.md +1 -1
- package/fixtures/cases/other-room-reference/schema.md +34 -0
- package/fixtures/cases/paragraph-link-definition/schema.md +3 -0
- package/fixtures/cases/prototype-field/expected.json +2 -1
- package/fixtures/cases/prototype-field/library/item.md +2 -2
- package/fixtures/cases/prototype-field/schema.md +7 -0
- package/fixtures/cases/quoted-link-definition/schema.md +3 -0
- package/fixtures/cases/reference-into-a-reserved-name/context.json +1 -0
- package/fixtures/cases/reference-into-a-reserved-name/expected.json +7 -0
- package/fixtures/cases/reference-into-a-reserved-name/library/notes/a.md +4 -0
- package/fixtures/cases/reference-into-a-reserved-name/library/settings/brief.md +1 -0
- package/fixtures/cases/reference-into-a-reserved-name/schema.md +5 -0
- package/fixtures/cases/reference-to-any-file-name/context.json +1 -0
- package/fixtures/cases/reference-to-any-file-name/expected.json +1 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/100%.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/C#.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/My notes.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/[draft].md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/c (d).md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people/caf/303/251.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/people//320/236/321/202/321/207/321/221/321/202.md +4 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/bracket.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/cyrillic.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/decomposed.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/hash.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/parenthesis.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/percent.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/library/tasks/spaced.md +9 -0
- package/fixtures/cases/reference-to-any-file-name/schema.md +12 -0
- package/fixtures/cases/referenced-missing-file/library/a.md +2 -2
- package/fixtures/cases/referenced-missing-file/library/b.md +2 -2
- package/fixtures/cases/referenced-missing-file/schema.md +12 -0
- package/fixtures/cases/referenced-missing-non-latin-file/context.json +1 -0
- package/fixtures/cases/referenced-missing-non-latin-file/expected.json +6 -0
- package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/a.md +9 -0
- package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/b.md +9 -0
- package/fixtures/cases/referenced-missing-non-latin-file/schema.md +12 -0
- package/fixtures/cases/remote-ref/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/room-md-declares-a-type/context.json +1 -0
- package/fixtures/cases/room-md-declares-a-type/expected.json +6 -0
- package/fixtures/cases/room-md-declares-a-type/library/ROOM.md +5 -0
- package/fixtures/cases/schema-body-ignored/context.json +1 -0
- package/fixtures/cases/schema-body-ignored/expected.json +1 -0
- package/fixtures/cases/schema-body-ignored/schema.md +9 -0
- package/fixtures/cases/schema-type-named-folders/context.json +1 -0
- package/fixtures/cases/schema-type-named-folders/expected.json +5 -0
- package/fixtures/cases/schema-type-named-folders/schema.md +5 -0
- package/fixtures/cases/schema-type-named-type/context.json +1 -0
- package/fixtures/cases/schema-type-named-type/expected.json +5 -0
- package/fixtures/cases/schema-type-named-type/schema.md +5 -0
- package/fixtures/cases/second-member-document/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/sections-keyword-refused/context.json +1 -0
- package/fixtures/cases/sections-keyword-refused/expected.json +5 -0
- package/fixtures/cases/{structured-section/schema.yaml → sections-keyword-refused/schema.md} +3 -2
- package/fixtures/cases/shortcut-reference-link/library/item.md +1 -1
- package/fixtures/cases/shortcut-reference-link/schema.md +7 -0
- package/fixtures/cases/string-length/expected.json +2 -1
- package/fixtures/cases/string-length/library/companies/acme.md +1 -1
- package/fixtures/cases/string-length/library/deals/renewal.md +49 -24
- package/fixtures/cases/string-length/schema.md +57 -0
- package/fixtures/cases/submission-keys/library/notes/visitor.md +2 -2
- package/fixtures/cases/submission-keys/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/text-field-kind/expected.json +1 -4
- package/fixtures/cases/text-field-kind/library/page.md +1 -1
- package/fixtures/cases/text-field-kind/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/thematic-break-ends-the-values/context.json +1 -0
- package/fixtures/cases/thematic-break-ends-the-values/expected.json +1 -0
- package/fixtures/cases/thematic-break-ends-the-values/library/item.md +10 -0
- package/fixtures/cases/thematic-break-ends-the-values/schema.md +5 -0
- package/fixtures/cases/truncated-link-definition/schema.md +3 -0
- package/fixtures/cases/typed-path-names-another-type/context.json +11 -0
- package/fixtures/cases/typed-path-names-another-type/expected.json +6 -0
- package/fixtures/cases/typed-path-names-another-type/library/settings/prefs/one.md +3 -0
- package/fixtures/cases/typed-path-names-another-type/schema.md +8 -0
- package/fixtures/cases/typed-path-names-its-type/context.json +11 -0
- package/fixtures/cases/typed-path-names-its-type/expected.json +3 -0
- package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/deeper/two.md +1 -0
- package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/one.md +4 -0
- package/fixtures/cases/typed-path-names-its-type/schema.md +8 -0
- package/fixtures/cases/typed-path-names-no-type/context.json +11 -0
- package/fixtures/cases/typed-path-names-no-type/expected.json +6 -0
- package/fixtures/cases/typed-path-names-no-type/library/settings/prefs/one.md +1 -0
- package/fixtures/cases/typed-path-names-no-type/schema.md +8 -0
- package/fixtures/cases/types-folder-content/library/types/task.md +1 -1
- package/fixtures/cases/types-folder-content/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/undeclared-field/expected.json +2 -1
- package/fixtures/cases/undeclared-field/library/item.md +2 -2
- package/fixtures/cases/undeclared-field/schema.md +7 -0
- package/fixtures/cases/unevaluated-items-closed/expected.json +2 -1
- package/fixtures/cases/unevaluated-items-closed/library/trip.md +13 -3
- package/fixtures/cases/unevaluated-items-closed/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unique-in-app-schema/context.json +1 -0
- package/fixtures/cases/unique-in-app-schema/expected.json +5 -0
- package/fixtures/cases/unique-in-app-schema/schema.yaml +7 -0
- package/fixtures/cases/unique-indexed-field/context.json +1 -0
- package/fixtures/cases/unique-indexed-field/expected.json +1 -0
- package/fixtures/cases/unique-indexed-field/library/tickets/first.md +8 -0
- package/fixtures/cases/unique-indexed-field/library/tickets/second.md +8 -0
- package/fixtures/cases/unique-indexed-field/schema.md +9 -0
- package/fixtures/cases/unique-off-indexed-field/context.json +1 -0
- package/fixtures/cases/unique-off-indexed-field/expected.json +5 -0
- package/fixtures/cases/unique-off-indexed-field/schema.md +9 -0
- package/fixtures/cases/unlisted-reference-type/{schema.yaml → schema.md} +2 -0
- package/fixtures/cases/unnamed-typed-path-checks-its-fields/context.json +11 -0
- package/fixtures/cases/unnamed-typed-path-checks-its-fields/expected.json +6 -0
- package/fixtures/cases/unnamed-typed-path-checks-its-fields/library/rooms/team/tasks/plan.md +5 -0
- package/fixtures/cases/unnamed-typed-path-checks-its-fields/schema.md +7 -0
- package/fixtures/cases/unnamed-typed-path-names-a-type/context.json +11 -0
- package/fixtures/cases/unnamed-typed-path-names-a-type/expected.json +6 -0
- package/fixtures/cases/unnamed-typed-path-names-a-type/library/rooms/team/tasks/plan.md +7 -0
- package/fixtures/cases/unnamed-typed-path-names-a-type/schema.md +7 -0
- package/fixtures/cases/unnamed-typed-path-reads-its-type/context.json +11 -0
- package/fixtures/cases/unnamed-typed-path-reads-its-type/expected.json +3 -0
- package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/plan.md +1 -0
- package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/tasks/plan.md +6 -0
- package/fixtures/cases/unnamed-typed-path-reads-its-type/schema.md +7 -0
- package/fixtures/cases/unnamed-typed-path-without-a-body/context.json +11 -0
- package/fixtures/cases/unnamed-typed-path-without-a-body/expected.json +5 -0
- package/fixtures/cases/unnamed-typed-path-without-a-body/library/rooms/team/tasks/plan.md +5 -0
- package/fixtures/cases/unnamed-typed-path-without-a-body/schema.md +7 -0
- package/fixtures/cases/unresolved-link/library/item.md +1 -1
- package/fixtures/cases/unresolved-link/schema.md +7 -0
- package/fixtures/cases/valid-typed-document/library/people/ada.md +1 -1
- package/fixtures/cases/valid-typed-document/library/tasks/one.md +11 -11
- package/fixtures/cases/valid-typed-document/schema.md +17 -0
- package/fixtures/cases/wide-item-fence-link/schema.md +3 -0
- package/fixtures/forms.json +371 -0
- package/fixtures/preamble.json +29 -8
- package/fixtures/queries.json +2134 -0
- package/fixtures/references.json +15 -0
- package/package.json +20 -4
- package/dist/blocks.d.ts +0 -11
- package/dist/blocks.d.ts.map +0 -1
- package/dist/blocks.js +0 -62
- package/dist/condition.d.ts +0 -137
- package/dist/condition.d.ts.map +0 -1
- package/dist/condition.js +0 -394
- package/dist/divide.d.ts +0 -3
- package/dist/divide.d.ts.map +0 -1
- package/dist/divide.js +0 -310
- package/dist/links.d.ts +0 -26
- package/dist/links.d.ts.map +0 -1
- package/dist/links.js +0 -774
- package/dist/profile.d.ts +0 -6
- package/dist/profile.d.ts.map +0 -1
- package/dist/profile.js +0 -5
- package/dist/project.d.ts +0 -21
- package/dist/project.d.ts.map +0 -1
- package/dist/project.js +0 -105
- package/dist/sections.d.ts +0 -11
- package/dist/sections.d.ts.map +0 -1
- package/dist/sections.js +0 -57
- package/fixtures/cases/absent-link-dangles/schema.yaml +0 -6
- package/fixtures/cases/absolute-link/schema.yaml +0 -6
- package/fixtures/cases/bracketed-link-definition/schema.yaml +0 -6
- package/fixtures/cases/declared-binary-links/schema.yaml +0 -1
- package/fixtures/cases/default-unfilled/schema.yaml +0 -56
- package/fixtures/cases/defs-pattern/schema.yaml +0 -56
- package/fixtures/cases/dependent-rule/schema.yaml +0 -56
- package/fixtures/cases/duplicate-link-definition/schema.yaml +0 -6
- package/fixtures/cases/email-format/schema.yaml +0 -56
- package/fixtures/cases/fenced-link-definition/schema.yaml +0 -6
- package/fixtures/cases/field-enum/schema.yaml +0 -7
- package/fixtures/cases/frontmatter-schema/expected.json +0 -5
- package/fixtures/cases/integer-field/schema.yaml +0 -56
- package/fixtures/cases/interrupted-link-definition/schema.yaml +0 -1
- package/fixtures/cases/json-schema-constructs/schema.yaml +0 -56
- package/fixtures/cases/list-of-objects-closed/schema.yaml +0 -56
- package/fixtures/cases/list-of-objects-item/schema.yaml +0 -56
- package/fixtures/cases/list-size/schema.yaml +0 -56
- package/fixtures/cases/long-fence-link-definition/schema.yaml +0 -1
- package/fixtures/cases/missing-required-field/schema.yaml +0 -7
- package/fixtures/cases/missing-section-item-kind/expected.json +0 -5
- package/fixtures/cases/missing-section-item-kind/schema.yaml +0 -6
- package/fixtures/cases/misspelled-key/schema.yaml +0 -56
- package/fixtures/cases/nested-object-reference/schema.yaml +0 -32
- package/fixtures/cases/nested-reference/schema.yaml +0 -32
- package/fixtures/cases/nested-required-field/schema.yaml +0 -56
- package/fixtures/cases/null-refused/expected.json +0 -6
- package/fixtures/cases/null-refused/library/companies/acme.md +0 -4
- package/fixtures/cases/null-refused/library/deals/renewal.md +0 -31
- package/fixtures/cases/null-refused/schema.yaml +0 -56
- package/fixtures/cases/numeric-range/schema.yaml +0 -56
- package/fixtures/cases/one-of-variant/schema.yaml +0 -56
- package/fixtures/cases/open-map-value/expected.json +0 -6
- package/fixtures/cases/open-map-value/library/companies/acme.md +0 -4
- package/fixtures/cases/open-map-value/library/deals/renewal.md +0 -31
- package/fixtures/cases/open-map-value/schema.yaml +0 -56
- package/fixtures/cases/other-room-reference/schema.yaml +0 -32
- package/fixtures/cases/paragraph-link-definition/schema.yaml +0 -1
- package/fixtures/cases/prototype-field/schema.yaml +0 -6
- package/fixtures/cases/quoted-link-definition/schema.yaml +0 -1
- package/fixtures/cases/referenced-missing-file/schema.yaml +0 -11
- package/fixtures/cases/section-item-enum/expected.json +0 -6
- package/fixtures/cases/section-item-enum/library/task.md +0 -8
- package/fixtures/cases/section-item-enum/schema.yaml +0 -3
- package/fixtures/cases/section-item-kind/expected.json +0 -6
- package/fixtures/cases/section-item-kind/library/task.md +0 -8
- package/fixtures/cases/section-item-kind/schema.yaml +0 -3
- package/fixtures/cases/section-items/library/page.md +0 -42
- package/fixtures/cases/section-items/schema.yaml +0 -10
- package/fixtures/cases/section-reference-path/expected.json +0 -6
- package/fixtures/cases/section-reference-path/library/page.md +0 -7
- package/fixtures/cases/section-reference-path/schema.yaml +0 -3
- package/fixtures/cases/section-reference-type/expected.json +0 -6
- package/fixtures/cases/section-reference-type/library/page.md +0 -7
- package/fixtures/cases/section-reference-type/schema.yaml +0 -3
- package/fixtures/cases/shortcut-reference-link/schema.yaml +0 -6
- package/fixtures/cases/string-length/schema.yaml +0 -56
- package/fixtures/cases/structured-section/expected.json +0 -6
- package/fixtures/cases/truncated-link-definition/schema.yaml +0 -1
- package/fixtures/cases/undeclared-field/schema.yaml +0 -6
- package/fixtures/cases/unresolved-link/schema.yaml +0 -6
- package/fixtures/cases/valid-typed-document/schema.yaml +0 -16
- package/fixtures/cases/wide-item-fence-link/schema.yaml +0 -1
- package/fixtures/division.json +0 -409
- package/fixtures/projection.json +0 -255
- /package/fixtures/cases/{frontmatter-schema → block-scalar-frontmatter}/context.json +0 -0
- /package/fixtures/cases/{section-items → block-scalar-frontmatter}/expected.json +0 -0
- /package/fixtures/cases/{missing-section-item-kind → conditional-long-text}/context.json +0 -0
- /package/fixtures/cases/{null-refused → cross-room-link}/context.json +0 -0
- /package/fixtures/cases/{open-map-value → cross-room-reference}/context.json +0 -0
- /package/fixtures/cases/{section-item-enum → equal-labels}/context.json +0 -0
- /package/fixtures/cases/{section-item-kind → folder-keeps-a-built-in-type}/context.json +0 -0
- /package/fixtures/cases/{section-items → folder-keeps-a-record}/context.json +0 -0
- /package/fixtures/cases/{section-reference-path → folder-names-no-type-of-the-schema}/context.json +0 -0
- /package/fixtures/cases/{section-reference-type → folder-nearer-entry-types-a-document}/context.json +0 -0
- /package/fixtures/cases/{structured-section → folder-refuses-a-declared-any}/context.json +0 -0
- /package/fixtures/cases/{section-items → list-items}/library/other.md +0 -0
- /package/fixtures/cases/{section-reference-path → list-reference-path}/library/other.md +0 -0
- /package/fixtures/cases/{section-reference-type → list-reference-type}/library/note.md +0 -0
- /package/fixtures/cases/{frontmatter-schema/schema.yaml → unknown-type/schema.md} +0 -0
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
deal:
|
|
12
|
-
type: object
|
|
13
|
-
properties:
|
|
14
|
-
title: { type: string, minLength: 1, maxLength: 40 }
|
|
15
|
-
company: { type: string, reference: company }
|
|
16
|
-
stage: { enum: [lead, proposal, won, lost], default: lead }
|
|
17
|
-
amount: { type: integer, minimum: 0 }
|
|
18
|
-
probability: { type: number, minimum: 0, maximum: 1 }
|
|
19
|
-
open: { type: boolean }
|
|
20
|
-
closes_at: { type: string, format: date-time }
|
|
21
|
-
contact_email: { type: string, format: email }
|
|
22
|
-
note: { type: [string, 'null'] }
|
|
23
|
-
shipping: { $ref: '#/$defs/address' }
|
|
24
|
-
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
25
|
-
lines:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: object
|
|
29
|
-
properties:
|
|
30
|
-
product: { type: string }
|
|
31
|
-
quantity: { type: integer, minimum: 1 }
|
|
32
|
-
required: [product, quantity]
|
|
33
|
-
blocks:
|
|
34
|
-
type: array
|
|
35
|
-
items:
|
|
36
|
-
oneOf:
|
|
37
|
-
- properties:
|
|
38
|
-
kind: { const: paragraph }
|
|
39
|
-
text: { type: string }
|
|
40
|
-
required: [kind, text]
|
|
41
|
-
- properties:
|
|
42
|
-
kind: { const: quiz }
|
|
43
|
-
question: { type: string }
|
|
44
|
-
required: [kind, question]
|
|
45
|
-
attributes:
|
|
46
|
-
type: object
|
|
47
|
-
additionalProperties: { type: string }
|
|
48
|
-
required: [title, company, stage]
|
|
49
|
-
if:
|
|
50
|
-
properties:
|
|
51
|
-
stage: { const: won }
|
|
52
|
-
required: [stage]
|
|
53
|
-
then:
|
|
54
|
-
required: [amount]
|
|
55
|
-
sections:
|
|
56
|
-
Description: { kind: text }
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
deal:
|
|
12
|
-
type: object
|
|
13
|
-
properties:
|
|
14
|
-
title: { type: string, minLength: 1, maxLength: 40 }
|
|
15
|
-
company: { type: string, reference: company }
|
|
16
|
-
stage: { enum: [lead, proposal, won, lost], default: lead }
|
|
17
|
-
amount: { type: integer, minimum: 0 }
|
|
18
|
-
probability: { type: number, minimum: 0, maximum: 1 }
|
|
19
|
-
open: { type: boolean }
|
|
20
|
-
closes_at: { type: string, format: date-time }
|
|
21
|
-
contact_email: { type: string, format: email }
|
|
22
|
-
note: { type: [string, 'null'] }
|
|
23
|
-
shipping: { $ref: '#/$defs/address' }
|
|
24
|
-
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
25
|
-
lines:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: object
|
|
29
|
-
properties:
|
|
30
|
-
product: { type: string }
|
|
31
|
-
quantity: { type: integer, minimum: 1 }
|
|
32
|
-
required: [product, quantity]
|
|
33
|
-
blocks:
|
|
34
|
-
type: array
|
|
35
|
-
items:
|
|
36
|
-
oneOf:
|
|
37
|
-
- properties:
|
|
38
|
-
kind: { const: paragraph }
|
|
39
|
-
text: { type: string }
|
|
40
|
-
required: [kind, text]
|
|
41
|
-
- properties:
|
|
42
|
-
kind: { const: quiz }
|
|
43
|
-
question: { type: string }
|
|
44
|
-
required: [kind, question]
|
|
45
|
-
attributes:
|
|
46
|
-
type: object
|
|
47
|
-
additionalProperties: { type: string }
|
|
48
|
-
required: [title, company, stage]
|
|
49
|
-
if:
|
|
50
|
-
properties:
|
|
51
|
-
stage: { const: won }
|
|
52
|
-
required: [stage]
|
|
53
|
-
then:
|
|
54
|
-
required: [amount]
|
|
55
|
-
sections:
|
|
56
|
-
Description: { kind: text }
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
deal:
|
|
12
|
-
type: object
|
|
13
|
-
properties:
|
|
14
|
-
title: { type: string, minLength: 1, maxLength: 40 }
|
|
15
|
-
company: { type: string, reference: company }
|
|
16
|
-
stage: { enum: [lead, proposal, won, lost], default: lead }
|
|
17
|
-
amount: { type: integer, minimum: 0 }
|
|
18
|
-
probability: { type: number, minimum: 0, maximum: 1 }
|
|
19
|
-
open: { type: boolean }
|
|
20
|
-
closes_at: { type: string, format: date-time }
|
|
21
|
-
contact_email: { type: string, format: email }
|
|
22
|
-
note: { type: [string, 'null'] }
|
|
23
|
-
shipping: { $ref: '#/$defs/address' }
|
|
24
|
-
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
25
|
-
lines:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: object
|
|
29
|
-
properties:
|
|
30
|
-
product: { type: string }
|
|
31
|
-
quantity: { type: integer, minimum: 1 }
|
|
32
|
-
required: [product, quantity]
|
|
33
|
-
blocks:
|
|
34
|
-
type: array
|
|
35
|
-
items:
|
|
36
|
-
oneOf:
|
|
37
|
-
- properties:
|
|
38
|
-
kind: { const: paragraph }
|
|
39
|
-
text: { type: string }
|
|
40
|
-
required: [kind, text]
|
|
41
|
-
- properties:
|
|
42
|
-
kind: { const: quiz }
|
|
43
|
-
question: { type: string }
|
|
44
|
-
required: [kind, question]
|
|
45
|
-
attributes:
|
|
46
|
-
type: object
|
|
47
|
-
additionalProperties: { type: string }
|
|
48
|
-
required: [title, company, stage]
|
|
49
|
-
if:
|
|
50
|
-
properties:
|
|
51
|
-
stage: { const: won }
|
|
52
|
-
required: [stage]
|
|
53
|
-
then:
|
|
54
|
-
required: [amount]
|
|
55
|
-
sections:
|
|
56
|
-
Description: { kind: text }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
note: {}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
deal:
|
|
12
|
-
type: object
|
|
13
|
-
properties:
|
|
14
|
-
title: { type: string, minLength: 1, maxLength: 40 }
|
|
15
|
-
company: { type: string, reference: company }
|
|
16
|
-
stage: { enum: [lead, proposal, won, lost], default: lead }
|
|
17
|
-
amount: { type: integer, minimum: 0 }
|
|
18
|
-
probability: { type: number, minimum: 0, maximum: 1 }
|
|
19
|
-
open: { type: boolean }
|
|
20
|
-
closes_at: { type: string, format: date-time }
|
|
21
|
-
contact_email: { type: string, format: email }
|
|
22
|
-
note: { type: [string, 'null'] }
|
|
23
|
-
shipping: { $ref: '#/$defs/address' }
|
|
24
|
-
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
25
|
-
lines:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: object
|
|
29
|
-
properties:
|
|
30
|
-
product: { type: string }
|
|
31
|
-
quantity: { type: integer, minimum: 1 }
|
|
32
|
-
required: [product, quantity]
|
|
33
|
-
blocks:
|
|
34
|
-
type: array
|
|
35
|
-
items:
|
|
36
|
-
oneOf:
|
|
37
|
-
- properties:
|
|
38
|
-
kind: { const: paragraph }
|
|
39
|
-
text: { type: string }
|
|
40
|
-
required: [kind, text]
|
|
41
|
-
- properties:
|
|
42
|
-
kind: { const: quiz }
|
|
43
|
-
question: { type: string }
|
|
44
|
-
required: [kind, question]
|
|
45
|
-
attributes:
|
|
46
|
-
type: object
|
|
47
|
-
additionalProperties: { type: string }
|
|
48
|
-
required: [title, company, stage]
|
|
49
|
-
if:
|
|
50
|
-
properties:
|
|
51
|
-
stage: { const: won }
|
|
52
|
-
required: [stage]
|
|
53
|
-
then:
|
|
54
|
-
required: [amount]
|
|
55
|
-
sections:
|
|
56
|
-
Description: { kind: text }
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
depot: { type: string, reference: place }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
product:
|
|
12
|
-
properties:
|
|
13
|
-
name: { type: string }
|
|
14
|
-
place:
|
|
15
|
-
properties:
|
|
16
|
-
name: { type: string }
|
|
17
|
-
deal:
|
|
18
|
-
type: object
|
|
19
|
-
properties:
|
|
20
|
-
title: { type: string }
|
|
21
|
-
company: { type: string, reference: company }
|
|
22
|
-
shipping: { $ref: '#/$defs/address' }
|
|
23
|
-
lines:
|
|
24
|
-
type: array
|
|
25
|
-
items:
|
|
26
|
-
type: object
|
|
27
|
-
properties:
|
|
28
|
-
product: { type: string, reference: product }
|
|
29
|
-
quantity: { type: integer, minimum: 1 }
|
|
30
|
-
required: [product, quantity]
|
|
31
|
-
contract: { type: string, reference: attachment }
|
|
32
|
-
required: [title, company]
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
depot: { type: string, reference: place }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
product:
|
|
12
|
-
properties:
|
|
13
|
-
name: { type: string }
|
|
14
|
-
place:
|
|
15
|
-
properties:
|
|
16
|
-
name: { type: string }
|
|
17
|
-
deal:
|
|
18
|
-
type: object
|
|
19
|
-
properties:
|
|
20
|
-
title: { type: string }
|
|
21
|
-
company: { type: string, reference: company }
|
|
22
|
-
shipping: { $ref: '#/$defs/address' }
|
|
23
|
-
lines:
|
|
24
|
-
type: array
|
|
25
|
-
items:
|
|
26
|
-
type: object
|
|
27
|
-
properties:
|
|
28
|
-
product: { type: string, reference: product }
|
|
29
|
-
quantity: { type: integer, minimum: 1 }
|
|
30
|
-
required: [product, quantity]
|
|
31
|
-
contract: { type: string, reference: attachment }
|
|
32
|
-
required: [title, company]
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
deal:
|
|
12
|
-
type: object
|
|
13
|
-
properties:
|
|
14
|
-
title: { type: string, minLength: 1, maxLength: 40 }
|
|
15
|
-
company: { type: string, reference: company }
|
|
16
|
-
stage: { enum: [lead, proposal, won, lost], default: lead }
|
|
17
|
-
amount: { type: integer, minimum: 0 }
|
|
18
|
-
probability: { type: number, minimum: 0, maximum: 1 }
|
|
19
|
-
open: { type: boolean }
|
|
20
|
-
closes_at: { type: string, format: date-time }
|
|
21
|
-
contact_email: { type: string, format: email }
|
|
22
|
-
note: { type: [string, 'null'] }
|
|
23
|
-
shipping: { $ref: '#/$defs/address' }
|
|
24
|
-
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
25
|
-
lines:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: object
|
|
29
|
-
properties:
|
|
30
|
-
product: { type: string }
|
|
31
|
-
quantity: { type: integer, minimum: 1 }
|
|
32
|
-
required: [product, quantity]
|
|
33
|
-
blocks:
|
|
34
|
-
type: array
|
|
35
|
-
items:
|
|
36
|
-
oneOf:
|
|
37
|
-
- properties:
|
|
38
|
-
kind: { const: paragraph }
|
|
39
|
-
text: { type: string }
|
|
40
|
-
required: [kind, text]
|
|
41
|
-
- properties:
|
|
42
|
-
kind: { const: quiz }
|
|
43
|
-
question: { type: string }
|
|
44
|
-
required: [kind, question]
|
|
45
|
-
attributes:
|
|
46
|
-
type: object
|
|
47
|
-
additionalProperties: { type: string }
|
|
48
|
-
required: [title, company, stage]
|
|
49
|
-
if:
|
|
50
|
-
properties:
|
|
51
|
-
stage: { const: won }
|
|
52
|
-
required: [stage]
|
|
53
|
-
then:
|
|
54
|
-
required: [amount]
|
|
55
|
-
sections:
|
|
56
|
-
Description: { kind: text }
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: deal
|
|
3
|
-
title: null
|
|
4
|
-
company: ../companies/acme.md
|
|
5
|
-
stage: won
|
|
6
|
-
amount: 1200
|
|
7
|
-
probability: 0.5
|
|
8
|
-
open: false
|
|
9
|
-
closes_at: 2026-10-10T09:30:00Z
|
|
10
|
-
contact_email: ana@example.com
|
|
11
|
-
note: null
|
|
12
|
-
shipping:
|
|
13
|
-
city: Paris
|
|
14
|
-
country: FR
|
|
15
|
-
tags: [renewal, priority]
|
|
16
|
-
lines:
|
|
17
|
-
- product: seats
|
|
18
|
-
quantity: 10
|
|
19
|
-
- product: support
|
|
20
|
-
quantity: 1
|
|
21
|
-
blocks:
|
|
22
|
-
- kind: paragraph
|
|
23
|
-
text: Signed.
|
|
24
|
-
- { kind: quiz, question: Renew next year? }
|
|
25
|
-
attributes:
|
|
26
|
-
region: emea
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## Description
|
|
30
|
-
|
|
31
|
-
The yearly renewal.
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
deal:
|
|
12
|
-
type: object
|
|
13
|
-
properties:
|
|
14
|
-
title: { type: string, minLength: 1, maxLength: 40 }
|
|
15
|
-
company: { type: string, reference: company }
|
|
16
|
-
stage: { enum: [lead, proposal, won, lost], default: lead }
|
|
17
|
-
amount: { type: integer, minimum: 0 }
|
|
18
|
-
probability: { type: number, minimum: 0, maximum: 1 }
|
|
19
|
-
open: { type: boolean }
|
|
20
|
-
closes_at: { type: string, format: date-time }
|
|
21
|
-
contact_email: { type: string, format: email }
|
|
22
|
-
note: { type: [string, 'null'] }
|
|
23
|
-
shipping: { $ref: '#/$defs/address' }
|
|
24
|
-
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
25
|
-
lines:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: object
|
|
29
|
-
properties:
|
|
30
|
-
product: { type: string }
|
|
31
|
-
quantity: { type: integer, minimum: 1 }
|
|
32
|
-
required: [product, quantity]
|
|
33
|
-
blocks:
|
|
34
|
-
type: array
|
|
35
|
-
items:
|
|
36
|
-
oneOf:
|
|
37
|
-
- properties:
|
|
38
|
-
kind: { const: paragraph }
|
|
39
|
-
text: { type: string }
|
|
40
|
-
required: [kind, text]
|
|
41
|
-
- properties:
|
|
42
|
-
kind: { const: quiz }
|
|
43
|
-
question: { type: string }
|
|
44
|
-
required: [kind, question]
|
|
45
|
-
attributes:
|
|
46
|
-
type: object
|
|
47
|
-
additionalProperties: { type: string }
|
|
48
|
-
required: [title, company, stage]
|
|
49
|
-
if:
|
|
50
|
-
properties:
|
|
51
|
-
stage: { const: won }
|
|
52
|
-
required: [stage]
|
|
53
|
-
then:
|
|
54
|
-
required: [amount]
|
|
55
|
-
sections:
|
|
56
|
-
Description: { kind: text }
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
deal:
|
|
12
|
-
type: object
|
|
13
|
-
properties:
|
|
14
|
-
title: { type: string, minLength: 1, maxLength: 40 }
|
|
15
|
-
company: { type: string, reference: company }
|
|
16
|
-
stage: { enum: [lead, proposal, won, lost], default: lead }
|
|
17
|
-
amount: { type: integer, minimum: 0 }
|
|
18
|
-
probability: { type: number, minimum: 0, maximum: 1 }
|
|
19
|
-
open: { type: boolean }
|
|
20
|
-
closes_at: { type: string, format: date-time }
|
|
21
|
-
contact_email: { type: string, format: email }
|
|
22
|
-
note: { type: [string, 'null'] }
|
|
23
|
-
shipping: { $ref: '#/$defs/address' }
|
|
24
|
-
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
25
|
-
lines:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: object
|
|
29
|
-
properties:
|
|
30
|
-
product: { type: string }
|
|
31
|
-
quantity: { type: integer, minimum: 1 }
|
|
32
|
-
required: [product, quantity]
|
|
33
|
-
blocks:
|
|
34
|
-
type: array
|
|
35
|
-
items:
|
|
36
|
-
oneOf:
|
|
37
|
-
- properties:
|
|
38
|
-
kind: { const: paragraph }
|
|
39
|
-
text: { type: string }
|
|
40
|
-
required: [kind, text]
|
|
41
|
-
- properties:
|
|
42
|
-
kind: { const: quiz }
|
|
43
|
-
question: { type: string }
|
|
44
|
-
required: [kind, question]
|
|
45
|
-
attributes:
|
|
46
|
-
type: object
|
|
47
|
-
additionalProperties: { type: string }
|
|
48
|
-
required: [title, company, stage]
|
|
49
|
-
if:
|
|
50
|
-
properties:
|
|
51
|
-
stage: { const: won }
|
|
52
|
-
required: [stage]
|
|
53
|
-
then:
|
|
54
|
-
required: [amount]
|
|
55
|
-
sections:
|
|
56
|
-
Description: { kind: text }
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
deal:
|
|
12
|
-
type: object
|
|
13
|
-
properties:
|
|
14
|
-
title: { type: string, minLength: 1, maxLength: 40 }
|
|
15
|
-
company: { type: string, reference: company }
|
|
16
|
-
stage: { enum: [lead, proposal, won, lost], default: lead }
|
|
17
|
-
amount: { type: integer, minimum: 0 }
|
|
18
|
-
probability: { type: number, minimum: 0, maximum: 1 }
|
|
19
|
-
open: { type: boolean }
|
|
20
|
-
closes_at: { type: string, format: date-time }
|
|
21
|
-
contact_email: { type: string, format: email }
|
|
22
|
-
note: { type: [string, 'null'] }
|
|
23
|
-
shipping: { $ref: '#/$defs/address' }
|
|
24
|
-
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
25
|
-
lines:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: object
|
|
29
|
-
properties:
|
|
30
|
-
product: { type: string }
|
|
31
|
-
quantity: { type: integer, minimum: 1 }
|
|
32
|
-
required: [product, quantity]
|
|
33
|
-
blocks:
|
|
34
|
-
type: array
|
|
35
|
-
items:
|
|
36
|
-
oneOf:
|
|
37
|
-
- properties:
|
|
38
|
-
kind: { const: paragraph }
|
|
39
|
-
text: { type: string }
|
|
40
|
-
required: [kind, text]
|
|
41
|
-
- properties:
|
|
42
|
-
kind: { const: quiz }
|
|
43
|
-
question: { type: string }
|
|
44
|
-
required: [kind, question]
|
|
45
|
-
attributes:
|
|
46
|
-
type: object
|
|
47
|
-
additionalProperties: { type: string }
|
|
48
|
-
required: [title, company, stage]
|
|
49
|
-
if:
|
|
50
|
-
properties:
|
|
51
|
-
stage: { const: won }
|
|
52
|
-
required: [stage]
|
|
53
|
-
then:
|
|
54
|
-
required: [amount]
|
|
55
|
-
sections:
|
|
56
|
-
Description: { kind: text }
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: deal
|
|
3
|
-
title: Renewal
|
|
4
|
-
company: ../companies/acme.md
|
|
5
|
-
stage: won
|
|
6
|
-
amount: 1200
|
|
7
|
-
probability: 0.5
|
|
8
|
-
open: false
|
|
9
|
-
closes_at: 2026-10-10T09:30:00Z
|
|
10
|
-
contact_email: ana@example.com
|
|
11
|
-
note: null
|
|
12
|
-
shipping:
|
|
13
|
-
city: Paris
|
|
14
|
-
country: FR
|
|
15
|
-
tags: [renewal, priority]
|
|
16
|
-
lines:
|
|
17
|
-
- product: seats
|
|
18
|
-
quantity: 10
|
|
19
|
-
- product: support
|
|
20
|
-
quantity: 1
|
|
21
|
-
blocks:
|
|
22
|
-
- kind: paragraph
|
|
23
|
-
text: Signed.
|
|
24
|
-
- { kind: quiz, question: Renew next year? }
|
|
25
|
-
attributes:
|
|
26
|
-
region: 3
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## Description
|
|
30
|
-
|
|
31
|
-
The yearly renewal.
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
$defs:
|
|
2
|
-
address:
|
|
3
|
-
type: object
|
|
4
|
-
properties:
|
|
5
|
-
city: { type: string }
|
|
6
|
-
country: { type: string, pattern: '^[A-Z]{2}$' }
|
|
7
|
-
required: [city]
|
|
8
|
-
company:
|
|
9
|
-
properties:
|
|
10
|
-
name: { type: string }
|
|
11
|
-
deal:
|
|
12
|
-
type: object
|
|
13
|
-
properties:
|
|
14
|
-
title: { type: string, minLength: 1, maxLength: 40 }
|
|
15
|
-
company: { type: string, reference: company }
|
|
16
|
-
stage: { enum: [lead, proposal, won, lost], default: lead }
|
|
17
|
-
amount: { type: integer, minimum: 0 }
|
|
18
|
-
probability: { type: number, minimum: 0, maximum: 1 }
|
|
19
|
-
open: { type: boolean }
|
|
20
|
-
closes_at: { type: string, format: date-time }
|
|
21
|
-
contact_email: { type: string, format: email }
|
|
22
|
-
note: { type: [string, 'null'] }
|
|
23
|
-
shipping: { $ref: '#/$defs/address' }
|
|
24
|
-
tags: { type: array, items: { type: string }, maxItems: 3 }
|
|
25
|
-
lines:
|
|
26
|
-
type: array
|
|
27
|
-
items:
|
|
28
|
-
type: object
|
|
29
|
-
properties:
|
|
30
|
-
product: { type: string }
|
|
31
|
-
quantity: { type: integer, minimum: 1 }
|
|
32
|
-
required: [product, quantity]
|
|
33
|
-
blocks:
|
|
34
|
-
type: array
|
|
35
|
-
items:
|
|
36
|
-
oneOf:
|
|
37
|
-
- properties:
|
|
38
|
-
kind: { const: paragraph }
|
|
39
|
-
text: { type: string }
|
|
40
|
-
required: [kind, text]
|
|
41
|
-
- properties:
|
|
42
|
-
kind: { const: quiz }
|
|
43
|
-
question: { type: string }
|
|
44
|
-
required: [kind, question]
|
|
45
|
-
attributes:
|
|
46
|
-
type: object
|
|
47
|
-
additionalProperties: { type: string }
|
|
48
|
-
required: [title, company, stage]
|
|
49
|
-
if:
|
|
50
|
-
properties:
|
|
51
|
-
stage: { const: won }
|
|
52
|
-
required: [stage]
|
|
53
|
-
then:
|
|
54
|
-
required: [amount]
|
|
55
|
-
sections:
|
|
56
|
-
Description: { kind: text }
|