@agentshouse/mdmodel 0.1.0-c83456e1cebfb → 0.1.0-cabd61587647f
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 +242 -181
- package/README.md +17 -18
- package/dist/blocks.d.ts.map +1 -1
- package/dist/blocks.js +33 -26
- package/dist/condition.d.ts +149 -0
- package/dist/condition.d.ts.map +1 -0
- package/dist/condition.js +500 -0
- package/dist/definition.d.ts +62 -24
- package/dist/definition.d.ts.map +1 -1
- package/dist/definition.js +703 -138
- package/dist/divide.d.ts.map +1 -1
- package/dist/divide.js +18 -8
- package/dist/document.d.ts +10 -2
- package/dist/document.d.ts.map +1 -1
- package/dist/document.js +370 -114
- package/dist/fields.d.ts +2 -0
- package/dist/fields.d.ts.map +1 -1
- package/dist/fields.js +7 -0
- package/dist/index.d.ts +14 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -4
- package/dist/links.d.ts +2 -0
- package/dist/links.d.ts.map +1 -1
- package/dist/links.js +23 -12
- package/dist/paths.d.ts +4 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +110 -10
- package/dist/project.d.ts +1 -0
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +52 -30
- package/dist/references.d.ts +4 -0
- package/dist/references.d.ts.map +1 -0
- package/dist/references.js +25 -0
- package/dist/schema.d.ts +7 -6
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +157 -31
- package/dist/types.d.ts +43 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/validate.d.ts +6 -1
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +167 -144
- package/dist/yaml.d.ts +8 -3
- package/dist/yaml.d.ts.map +1 -1
- package/dist/yaml.js +133 -43
- package/fixtures/README.md +49 -38
- package/fixtures/cases/absent-link-dangles/context.json +1 -0
- package/fixtures/cases/absent-link-dangles/expected.json +1 -0
- package/fixtures/cases/absent-link-dangles/library/item.md +8 -0
- package/fixtures/cases/absent-link-dangles/schema.yaml +6 -0
- package/fixtures/cases/absent-optional-field/context.json +1 -0
- package/fixtures/cases/absent-optional-field/expected.json +1 -0
- package/fixtures/cases/absent-optional-field/library/companies/acme.md +4 -0
- package/fixtures/cases/absent-optional-field/library/deals/lead.md +6 -0
- package/fixtures/cases/absent-optional-field/schema.yaml +56 -0
- package/fixtures/cases/absolute-link/context.json +1 -0
- package/fixtures/cases/{missing-binary-image → absolute-link}/expected.json +1 -1
- package/fixtures/cases/absolute-link/library/item.md +8 -0
- package/fixtures/cases/absolute-link/schema.yaml +6 -0
- package/fixtures/cases/attachment-reference-any-file/context.json +1 -0
- package/fixtures/cases/attachment-reference-any-file/expected.json +1 -0
- package/fixtures/cases/attachment-reference-any-file/library/companies/acme.md +4 -0
- package/fixtures/cases/attachment-reference-any-file/library/deals/renewal.md +15 -0
- package/fixtures/cases/attachment-reference-any-file/library/places/depot.md +4 -0
- package/fixtures/cases/attachment-reference-any-file/library/products/seats.md +4 -0
- package/fixtures/cases/attachment-reference-any-file/library/products/support.md +4 -0
- package/fixtures/cases/attachment-reference-any-file/schema.yaml +32 -0
- package/fixtures/cases/attachment-reference-dangles/context.json +1 -0
- package/fixtures/cases/attachment-reference-dangles/expected.json +1 -0
- package/fixtures/cases/attachment-reference-dangles/library/companies/acme.md +4 -0
- package/fixtures/cases/attachment-reference-dangles/library/deals/renewal.md +15 -0
- package/fixtures/cases/attachment-reference-dangles/library/places/depot.md +4 -0
- package/fixtures/cases/attachment-reference-dangles/library/products/seats.md +4 -0
- package/fixtures/cases/attachment-reference-dangles/library/products/support.md +4 -0
- package/fixtures/cases/attachment-reference-dangles/schema.yaml +32 -0
- package/fixtures/cases/attachment-reference-outside/context.json +1 -0
- package/fixtures/cases/attachment-reference-outside/expected.json +6 -0
- package/fixtures/cases/attachment-reference-outside/library/companies/acme.md +4 -0
- package/fixtures/cases/attachment-reference-outside/library/deals/renewal.md +15 -0
- package/fixtures/cases/attachment-reference-outside/library/places/depot.md +4 -0
- package/fixtures/cases/attachment-reference-outside/library/products/seats.md +4 -0
- package/fixtures/cases/attachment-reference-outside/library/products/support.md +4 -0
- package/fixtures/cases/attachment-reference-outside/schema.yaml +32 -0
- package/fixtures/cases/binary-any-reference/expected.json +1 -1
- package/fixtures/cases/binary-any-reference/schema.yaml +4 -4
- package/fixtures/cases/binary-document-collision/schema.yaml +1 -2
- package/fixtures/cases/binary-image-dangles/expected.json +1 -0
- package/fixtures/cases/binary-image-dangles/schema.yaml +1 -0
- package/fixtures/cases/binary-link-dangles/expected.json +1 -0
- package/fixtures/cases/binary-link-dangles/schema.yaml +1 -0
- package/fixtures/cases/binary-link-outside-collection/schema.yaml +1 -2
- package/fixtures/cases/binary-prototype-reference/expected.json +1 -1
- package/fixtures/cases/binary-prototype-reference/schema.yaml +4 -4
- package/fixtures/cases/binary-typed-reference/expected.json +1 -1
- package/fixtures/cases/binary-typed-reference/schema.yaml +5 -5
- package/fixtures/cases/boolean-field/context.json +1 -0
- package/fixtures/cases/boolean-field/expected.json +6 -0
- package/fixtures/cases/boolean-field/library/companies/acme.md +4 -0
- package/fixtures/cases/boolean-field/library/deals/renewal.md +31 -0
- package/fixtures/cases/boolean-field/schema.yaml +56 -0
- package/fixtures/cases/bracketed-link-definition/schema.yaml +6 -6
- package/fixtures/cases/closed-nested-object/context.json +1 -0
- package/fixtures/cases/closed-nested-object/expected.json +6 -0
- package/fixtures/cases/closed-nested-object/library/companies/acme.md +4 -0
- package/fixtures/cases/closed-nested-object/library/deals/renewal.md +32 -0
- package/fixtures/cases/closed-nested-object/schema.yaml +56 -0
- package/fixtures/cases/composed-root-reference/context.json +1 -0
- package/fixtures/cases/composed-root-reference/expected.json +6 -0
- package/fixtures/cases/composed-root-reference/library/a.md +5 -0
- package/fixtures/cases/composed-root-reference/schema.yaml +13 -0
- package/fixtures/cases/date-time-format/context.json +1 -0
- package/fixtures/cases/date-time-format/expected.json +6 -0
- package/fixtures/cases/date-time-format/library/companies/acme.md +4 -0
- package/fixtures/cases/date-time-format/library/deals/renewal.md +31 -0
- package/fixtures/cases/date-time-format/schema.yaml +56 -0
- package/fixtures/cases/declared-binary-links/schema.yaml +1 -2
- package/fixtures/cases/default-unfilled/context.json +1 -0
- package/fixtures/cases/default-unfilled/expected.json +6 -0
- package/fixtures/cases/default-unfilled/library/companies/acme.md +4 -0
- package/fixtures/cases/default-unfilled/library/deals/renewal.md +29 -0
- package/fixtures/cases/default-unfilled/schema.yaml +56 -0
- package/fixtures/cases/defs-pattern/context.json +1 -0
- package/fixtures/cases/defs-pattern/expected.json +6 -0
- package/fixtures/cases/defs-pattern/library/companies/acme.md +4 -0
- package/fixtures/cases/defs-pattern/library/deals/renewal.md +31 -0
- package/fixtures/cases/defs-pattern/schema.yaml +56 -0
- package/fixtures/cases/dependent-rule/context.json +1 -0
- package/fixtures/cases/dependent-rule/expected.json +6 -0
- package/fixtures/cases/dependent-rule/library/companies/acme.md +4 -0
- package/fixtures/cases/dependent-rule/library/deals/renewal.md +30 -0
- package/fixtures/cases/dependent-rule/schema.yaml +56 -0
- package/fixtures/cases/duplicate-link-definition/schema.yaml +6 -6
- package/fixtures/cases/email-format/context.json +1 -0
- package/fixtures/cases/email-format/expected.json +6 -0
- package/fixtures/cases/email-format/library/companies/acme.md +4 -0
- package/fixtures/cases/email-format/library/deals/renewal.md +31 -0
- package/fixtures/cases/email-format/schema.yaml +56 -0
- package/fixtures/cases/fenced-link-definition/schema.yaml +6 -6
- package/fixtures/cases/field-enum/expected.json +2 -2
- package/fixtures/cases/field-enum/schema.yaml +7 -7
- package/fixtures/cases/frontmatter-schema/schema.yaml +3 -4
- package/fixtures/cases/integer-field/context.json +1 -0
- package/fixtures/cases/integer-field/expected.json +6 -0
- package/fixtures/cases/integer-field/library/companies/acme.md +4 -0
- package/fixtures/cases/integer-field/library/deals/renewal.md +31 -0
- package/fixtures/cases/integer-field/schema.yaml +56 -0
- package/fixtures/cases/interrupted-link-definition/schema.yaml +1 -2
- package/fixtures/cases/json-schema-constructs/context.json +1 -0
- package/fixtures/cases/json-schema-constructs/expected.json +1 -0
- package/fixtures/cases/json-schema-constructs/library/companies/acme.md +4 -0
- package/fixtures/cases/json-schema-constructs/library/deals/renewal.md +31 -0
- package/fixtures/cases/json-schema-constructs/schema.yaml +56 -0
- package/fixtures/cases/list-of-objects-closed/context.json +1 -0
- package/fixtures/cases/list-of-objects-closed/expected.json +6 -0
- package/fixtures/cases/list-of-objects-closed/library/companies/acme.md +4 -0
- package/fixtures/cases/list-of-objects-closed/library/deals/renewal.md +32 -0
- package/fixtures/cases/list-of-objects-closed/schema.yaml +56 -0
- package/fixtures/cases/list-of-objects-item/context.json +1 -0
- package/fixtures/cases/list-of-objects-item/expected.json +6 -0
- package/fixtures/cases/list-of-objects-item/library/companies/acme.md +4 -0
- package/fixtures/cases/list-of-objects-item/library/deals/renewal.md +31 -0
- package/fixtures/cases/list-of-objects-item/schema.yaml +56 -0
- package/fixtures/cases/list-of-objects-reference/context.json +1 -0
- package/fixtures/cases/list-of-objects-reference/expected.json +6 -0
- package/fixtures/cases/list-of-objects-reference/library/companies/acme.md +4 -0
- package/fixtures/cases/list-of-objects-reference/library/deals/renewal.md +14 -0
- package/fixtures/cases/list-of-objects-reference/library/places/depot.md +4 -0
- package/fixtures/cases/list-of-objects-reference/library/products/seats.md +4 -0
- package/fixtures/cases/list-of-objects-reference/library/products/support.md +4 -0
- package/fixtures/cases/list-of-objects-reference/schema.yaml +32 -0
- package/fixtures/cases/list-size/context.json +1 -0
- package/fixtures/cases/list-size/expected.json +6 -0
- package/fixtures/cases/list-size/library/companies/acme.md +4 -0
- package/fixtures/cases/list-size/library/deals/renewal.md +31 -0
- package/fixtures/cases/list-size/schema.yaml +56 -0
- package/fixtures/cases/long-fence-link-definition/schema.yaml +1 -2
- package/fixtures/cases/malformed-definition/expected.json +2 -2
- package/fixtures/cases/malformed-definition/schema.yaml +3 -4
- package/fixtures/cases/member-document/schema.yaml +5 -5
- package/fixtures/cases/missing-required-field/expected.json +2 -2
- package/fixtures/cases/missing-required-field/schema.yaml +7 -7
- package/fixtures/cases/missing-section-item-kind/expected.json +2 -2
- package/fixtures/cases/missing-section-item-kind/schema.yaml +6 -6
- package/fixtures/cases/misspelled-key/context.json +1 -0
- package/fixtures/cases/misspelled-key/expected.json +6 -0
- package/fixtures/cases/misspelled-key/library/companies/acme.md +4 -0
- package/fixtures/cases/misspelled-key/library/deals/renewal.md +32 -0
- package/fixtures/cases/misspelled-key/schema.yaml +56 -0
- package/fixtures/cases/nested-defs/context.json +1 -0
- package/fixtures/cases/nested-defs/expected.json +6 -0
- package/fixtures/cases/nested-defs/library/deal.md +6 -0
- package/fixtures/cases/nested-defs/schema.yaml +11 -0
- package/fixtures/cases/nested-object-reference/context.json +1 -0
- package/fixtures/cases/nested-object-reference/expected.json +6 -0
- package/fixtures/cases/nested-object-reference/library/companies/acme.md +4 -0
- package/fixtures/cases/nested-object-reference/library/deals/renewal.md +14 -0
- package/fixtures/cases/nested-object-reference/library/places/depot.md +4 -0
- package/fixtures/cases/nested-object-reference/library/products/seats.md +4 -0
- package/fixtures/cases/nested-object-reference/library/products/support.md +4 -0
- package/fixtures/cases/nested-object-reference/schema.yaml +32 -0
- package/fixtures/cases/nested-reference/context.json +1 -0
- package/fixtures/cases/nested-reference/expected.json +1 -0
- package/fixtures/cases/nested-reference/library/companies/acme.md +4 -0
- package/fixtures/cases/nested-reference/library/deals/renewal.md +15 -0
- package/fixtures/cases/nested-reference/library/places/depot.md +4 -0
- package/fixtures/cases/nested-reference/library/products/seats.md +4 -0
- package/fixtures/cases/nested-reference/library/products/support.md +4 -0
- package/fixtures/cases/nested-reference/schema.yaml +32 -0
- package/fixtures/cases/nested-required-field/context.json +1 -0
- package/fixtures/cases/nested-required-field/expected.json +6 -0
- package/fixtures/cases/nested-required-field/library/companies/acme.md +4 -0
- package/fixtures/cases/nested-required-field/library/deals/renewal.md +30 -0
- package/fixtures/cases/nested-required-field/schema.yaml +56 -0
- package/fixtures/cases/null-refused/context.json +1 -0
- package/fixtures/cases/null-refused/expected.json +6 -0
- package/fixtures/cases/null-refused/library/companies/acme.md +4 -0
- package/fixtures/cases/null-refused/library/deals/renewal.md +31 -0
- package/fixtures/cases/null-refused/schema.yaml +56 -0
- package/fixtures/cases/numeric-range/context.json +1 -0
- package/fixtures/cases/numeric-range/expected.json +6 -0
- package/fixtures/cases/numeric-range/library/companies/acme.md +4 -0
- package/fixtures/cases/numeric-range/library/deals/renewal.md +31 -0
- package/fixtures/cases/numeric-range/schema.yaml +56 -0
- package/fixtures/cases/one-of-variant/context.json +1 -0
- package/fixtures/cases/one-of-variant/expected.json +6 -0
- package/fixtures/cases/one-of-variant/library/companies/acme.md +4 -0
- package/fixtures/cases/one-of-variant/library/deals/renewal.md +31 -0
- package/fixtures/cases/one-of-variant/schema.yaml +56 -0
- package/fixtures/cases/open-map-value/context.json +1 -0
- package/fixtures/cases/open-map-value/expected.json +6 -0
- package/fixtures/cases/open-map-value/library/companies/acme.md +4 -0
- package/fixtures/cases/open-map-value/library/deals/renewal.md +31 -0
- package/fixtures/cases/open-map-value/schema.yaml +56 -0
- package/fixtures/cases/other-room-reference/context.json +1 -0
- package/fixtures/cases/other-room-reference/expected.json +6 -0
- package/fixtures/cases/other-room-reference/library/companies/acme.md +4 -0
- package/fixtures/cases/other-room-reference/library/deals/renewal.md +14 -0
- package/fixtures/cases/other-room-reference/library/places/depot.md +4 -0
- package/fixtures/cases/other-room-reference/library/products/seats.md +4 -0
- package/fixtures/cases/other-room-reference/library/products/support.md +4 -0
- package/fixtures/cases/other-room-reference/schema.yaml +32 -0
- package/fixtures/cases/paragraph-link-definition/schema.yaml +1 -2
- package/fixtures/cases/prototype-field/expected.json +1 -1
- package/fixtures/cases/prototype-field/schema.yaml +6 -6
- package/fixtures/cases/quoted-link-definition/library/notes/draft.md +1 -1
- package/fixtures/cases/quoted-link-definition/schema.yaml +1 -2
- package/fixtures/cases/referenced-missing-file/schema.yaml +11 -10
- package/fixtures/cases/remote-ref/context.json +1 -0
- package/fixtures/cases/remote-ref/expected.json +5 -0
- package/fixtures/cases/remote-ref/schema.yaml +3 -0
- package/fixtures/cases/second-member-document/expected.json +2 -2
- package/fixtures/cases/second-member-document/schema.yaml +4 -5
- package/fixtures/cases/section-item-enum/schema.yaml +3 -4
- package/fixtures/cases/section-item-kind/schema.yaml +3 -4
- package/fixtures/cases/section-items/library/page.md +14 -0
- package/fixtures/cases/section-items/schema.yaml +10 -8
- package/fixtures/cases/section-reference-path/schema.yaml +3 -4
- package/fixtures/cases/section-reference-type/schema.yaml +3 -4
- package/fixtures/cases/shortcut-reference-link/library/item.md +1 -1
- package/fixtures/cases/shortcut-reference-link/schema.yaml +6 -6
- package/fixtures/cases/string-length/context.json +1 -0
- package/fixtures/cases/string-length/expected.json +6 -0
- package/fixtures/cases/string-length/library/companies/acme.md +4 -0
- package/fixtures/cases/string-length/library/deals/renewal.md +31 -0
- package/fixtures/cases/string-length/schema.yaml +56 -0
- package/fixtures/cases/structured-section/schema.yaml +7 -7
- package/fixtures/cases/submission-keys/schema.yaml +4 -4
- package/fixtures/cases/text-field-kind/expected.json +2 -2
- package/fixtures/cases/text-field-kind/schema.yaml +4 -4
- package/fixtures/cases/truncated-link-definition/library/notes/draft.md +1 -1
- package/fixtures/cases/truncated-link-definition/schema.yaml +1 -2
- package/fixtures/cases/types-folder-content/schema.yaml +4 -4
- package/fixtures/cases/undeclared-field/expected.json +1 -1
- package/fixtures/cases/undeclared-field/schema.yaml +6 -6
- package/fixtures/cases/unevaluated-items-closed/context.json +1 -0
- package/fixtures/cases/unevaluated-items-closed/expected.json +6 -0
- package/fixtures/cases/unevaluated-items-closed/library/trip.md +6 -0
- package/fixtures/cases/unevaluated-items-closed/schema.yaml +10 -0
- package/fixtures/cases/unknown-type/expected.json +1 -1
- package/fixtures/cases/unknown-type/schema.yaml +3 -4
- package/fixtures/cases/unlisted-reference-type/expected.json +2 -2
- package/fixtures/cases/unlisted-reference-type/schema.yaml +3 -4
- package/fixtures/cases/unresolved-link/library/item.md +1 -1
- package/fixtures/cases/unresolved-link/schema.yaml +6 -6
- package/fixtures/cases/valid-typed-document/schema.yaml +16 -15
- package/fixtures/cases/wide-item-fence-link/schema.yaml +1 -2
- package/fixtures/division.json +1 -1
- package/fixtures/projection.json +33 -1
- package/package.json +4 -2
- package/fixtures/cases/missing-binary-image/schema.yaml +0 -2
- package/fixtures/cases/missing-binary-link/expected.json +0 -5
- package/fixtures/cases/missing-binary-link/schema.yaml +0 -2
- /package/fixtures/cases/{missing-binary-image → binary-image-dangles}/context.json +0 -0
- /package/fixtures/cases/{missing-binary-image → binary-image-dangles}/library/notes/draft.md +0 -0
- /package/fixtures/cases/{missing-binary-link → binary-link-dangles}/context.json +0 -0
- /package/fixtures/cases/{missing-binary-link → binary-link-dangles}/library/notes/draft.md +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
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, yearly, large]
|
|
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.
|
|
@@ -0,0 +1,56 @@
|
|
|
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,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
note: {}
|
|
1
|
+
note: {}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
title: { kind: widget }
|
|
1
|
+
task:
|
|
2
|
+
properties:
|
|
3
|
+
title: { type: widget }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
contact:
|
|
2
|
+
member_document: true
|
|
3
|
+
properties:
|
|
4
|
+
name: { type: string }
|
|
5
|
+
required: [name]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
task:
|
|
2
|
+
properties:
|
|
3
|
+
title: { type: string }
|
|
4
|
+
status: { enum: [open, in-progress, done] }
|
|
5
|
+
required: [title, status]
|
|
6
|
+
sections:
|
|
7
|
+
Description: { kind: text, required: true }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
task:
|
|
2
|
+
properties:
|
|
3
|
+
title: { type: string }
|
|
4
|
+
required: [title]
|
|
5
|
+
sections:
|
|
6
|
+
Acceptance: { kind: list }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": [] }
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: deal
|
|
3
|
+
title: Renewal
|
|
4
|
+
opne: true
|
|
5
|
+
company: ../companies/acme.md
|
|
6
|
+
stage: won
|
|
7
|
+
amount: 1200
|
|
8
|
+
probability: 0.5
|
|
9
|
+
open: false
|
|
10
|
+
closes_at: 2026-10-10T09:30:00Z
|
|
11
|
+
contact_email: ana@example.com
|
|
12
|
+
note: null
|
|
13
|
+
shipping:
|
|
14
|
+
city: Paris
|
|
15
|
+
country: FR
|
|
16
|
+
tags: [renewal, priority]
|
|
17
|
+
lines:
|
|
18
|
+
- product: seats
|
|
19
|
+
quantity: 10
|
|
20
|
+
- product: support
|
|
21
|
+
quantity: 1
|
|
22
|
+
blocks:
|
|
23
|
+
- kind: paragraph
|
|
24
|
+
text: Signed.
|
|
25
|
+
- { kind: quiz, question: Renew next year? }
|
|
26
|
+
attributes:
|
|
27
|
+
region: emea
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Description
|
|
31
|
+
|
|
32
|
+
The yearly renewal.
|
|
@@ -0,0 +1,56 @@
|
|
|
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 }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": [] }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
$defs:
|
|
2
|
+
address:
|
|
3
|
+
$defs:
|
|
4
|
+
city: { type: string, minLength: 2 }
|
|
5
|
+
type: object
|
|
6
|
+
properties:
|
|
7
|
+
city: { $ref: '#/$defs/address/$defs/city' }
|
|
8
|
+
deal:
|
|
9
|
+
properties:
|
|
10
|
+
shipping: { $ref: '#/$defs/address' }
|
|
11
|
+
billing_city: { $ref: '#/$defs/address/properties/city' }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": [] }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: deal
|
|
3
|
+
title: Renewal
|
|
4
|
+
company: ../companies/acme.md
|
|
5
|
+
shipping:
|
|
6
|
+
city: Paris
|
|
7
|
+
depot: ../companies/acme.md
|
|
8
|
+
lines:
|
|
9
|
+
- product: ../products/seats.md
|
|
10
|
+
quantity: 10
|
|
11
|
+
- { product: ../products/support.md, quantity: 1 }
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
The yearly renewal.
|
|
@@ -0,0 +1,32 @@
|
|
|
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]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": ["assets/contract.pdf"] }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "verdict": "accept" }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: deal
|
|
3
|
+
title: Renewal
|
|
4
|
+
company: ../companies/acme.md
|
|
5
|
+
shipping:
|
|
6
|
+
city: Paris
|
|
7
|
+
depot: ../places/depot.md
|
|
8
|
+
lines:
|
|
9
|
+
- product: ../products/seats.md
|
|
10
|
+
quantity: 10
|
|
11
|
+
- { product: ../products/support.md, quantity: 1 }
|
|
12
|
+
contract: ../assets/contract.pdf
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
The yearly renewal.
|
|
@@ -0,0 +1,32 @@
|
|
|
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]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": [] }
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
country: FR
|
|
14
|
+
tags: [renewal, priority]
|
|
15
|
+
lines:
|
|
16
|
+
- product: seats
|
|
17
|
+
quantity: 10
|
|
18
|
+
- product: support
|
|
19
|
+
quantity: 1
|
|
20
|
+
blocks:
|
|
21
|
+
- kind: paragraph
|
|
22
|
+
text: Signed.
|
|
23
|
+
- { kind: quiz, question: Renew next year? }
|
|
24
|
+
attributes:
|
|
25
|
+
region: emea
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Description
|
|
29
|
+
|
|
30
|
+
The yearly renewal.
|
|
@@ -0,0 +1,56 @@
|
|
|
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 }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{ "binaryTargets": [] }
|
|
@@ -0,0 +1,31 @@
|
|
|
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.
|