Skip to content

Commit e10983b

Browse files
mosofskyMichael Osofskypre-commit-ci[bot]
authored
Added abc-supply-plan 10.1.0 schema (SchemaStore#4873)
* Added abc-supply-plan 10.1.0 schema This commit introduces version 10.1.0 of the ABC Supply Plan schema, which includes new inventory management features and enhanced analytics capabilities. Files Added/Updated: - src/schemas/json/abc-supply-plan-10.1.0.json: New schema version - src/api/json/catalog.json: Added 10.1.0 entry and set as default - src/schema-validation.jsonc: Added validation config for 10.1.0 - src/test/abc-supply-plan-10.1.0/: Positive test case - src/negative_test/abc-supply-plan-10.1.0/: 8 negative test cases Key Schema Changes: - Added targetMFC metric type in analytics for MFC visualization - Added validation abcArePlanningFrequencyChangesOnPlanningMonths Testing: - `node ./cli.js check` passed (manually confirmed that this command would, in fact, fail if, for example, if "abcArePlanningFrequencyChangesOnPlanningMonths" were missing from src/schema-validation.jsonc for abc-supply-plan-10.1.0.json * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Michael Osofsky <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 44a0c7e commit e10983b

12 files changed

+2138
-2
lines changed

src/api/json/catalog.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
"name": "ABCSupplyPlan",
157157
"description": "ABCSupplyPlan representing all the state for performing inventory optimization and expiry analysis in ABC-Plan MasterPlanner",
158158
"fileMatch": ["abc-supply-plan-*.json"],
159-
"url": "https://www.schemastore.org/abc-supply-plan-10.0.0.json",
159+
"url": "https://www.schemastore.org/abc-supply-plan-10.1.0.json",
160160
"versions": {
161161
"1.0.0": "https://www.schemastore.org/abc-supply-plan-1.0.0.json",
162162
"2.0.0": "https://www.schemastore.org/abc-supply-plan-2.0.0.json",
@@ -167,7 +167,8 @@
167167
"7.0.0": "https://www.schemastore.org/abc-supply-plan-7.0.0.json",
168168
"8.0.0": "https://www.schemastore.org/abc-supply-plan-8.0.0.json",
169169
"9.0.0": "https://www.schemastore.org/abc-supply-plan-9.0.0.json",
170-
"10.0.0": "https://www.schemastore.org/abc-supply-plan-10.0.0.json"
170+
"10.0.0": "https://www.schemastore.org/abc-supply-plan-10.0.0.json",
171+
"10.1.0": "https://www.schemastore.org/abc-supply-plan-10.1.0.json"
171172
}
172173
},
173174
{
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
3+
"abcMaterialsMap": {},
4+
"analytics": {
5+
"items": [],
6+
"layouts": [],
7+
"tabs": []
8+
},
9+
"planDate": "2020-03-01",
10+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
11+
"recipeMap": {},
12+
"this_is_an_invalid_property": {
13+
"this_is_an_invalid_object_property": "this_is_an_invalid_object_value"
14+
}
15+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
3+
"abcMaterialsMap": {
4+
"1": {
5+
"abcMaterialName": "FDP",
6+
"actuals": {},
7+
"currency": "USD",
8+
"decimalPrecision": 0,
9+
"demand": {
10+
"2020-07-01": 100
11+
},
12+
"doExpiryCarryover": false,
13+
"expiryAdjustments": {},
14+
"firmOrders": [],
15+
"firmRelease": {},
16+
"firmingPeriod": 0,
17+
"inventory": {},
18+
"leadTime": 3,
19+
"lifetime": 10,
20+
"lotSizes": [
21+
{
22+
"endDate": null,
23+
"startDate": null,
24+
"timeDependentValue": 100.5
25+
}
26+
],
27+
"maximumInventories": [],
28+
"minimumInventories": [],
29+
"ordering": 1,
30+
"otherDemand": {},
31+
"otherDemandAnnotations": {},
32+
"plannedOrders": {},
33+
"plannedRelease": {},
34+
"productionMethod": "CumulativeLeadTime",
35+
"timeAggregateType": "Monthly",
36+
"x": 249,
37+
"y": 127
38+
}
39+
},
40+
"analytics": {
41+
"items": [],
42+
"layouts": [],
43+
"tabs": []
44+
},
45+
"planDate": "2020-03-01",
46+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
47+
"recipeMap": {}
48+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
3+
"abcMaterialsMap": {},
4+
"analytics": {
5+
"items": [],
6+
"layouts": [],
7+
"tabs": []
8+
},
9+
"planDate": "March 1st, 2020",
10+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
11+
"recipeMap": {}
12+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
3+
"abcMaterialsMap": {
4+
"1": {
5+
"abcMaterialName": "FDP",
6+
"actuals": {},
7+
"currency": "USD",
8+
"decimalPrecision": "zero",
9+
"demand": {
10+
"2020-07-01": "one hundred"
11+
},
12+
"doExpiryCarryover": false,
13+
"expiryAdjustments": {},
14+
"firmOrders": [],
15+
"firmRelease": {},
16+
"firmingPeriod": "0",
17+
"inventory": {},
18+
"leadTime": "three",
19+
"lifetime": 10,
20+
"lotSizes": [
21+
{
22+
"endDate": null,
23+
"startDate": null,
24+
"timeDependentValue": "2000"
25+
}
26+
],
27+
"maximumInventories": [],
28+
"minimumInventories": [],
29+
"ordering": 1,
30+
"otherDemand": {},
31+
"otherDemandAnnotations": {},
32+
"plannedOrders": {},
33+
"plannedRelease": {},
34+
"productionMethod": "CumulativeLeadTime",
35+
"timeAggregateType": "Monthly",
36+
"x": 249,
37+
"y": 127
38+
}
39+
},
40+
"analytics": {
41+
"items": [],
42+
"layouts": [],
43+
"tabs": []
44+
},
45+
"planDate": "2020-03-01",
46+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
47+
"recipeMap": {}
48+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
3+
"abcMaterialsMap": {
4+
"1": {
5+
"abcMaterialName": "FDP",
6+
"actuals": {},
7+
"currency": "USD",
8+
"decimalPrecision": 0,
9+
"demand": {
10+
"2020-07-01": 100
11+
},
12+
"doExpiryCarryover": false,
13+
"expiryAdjustments": {},
14+
"firmOrders": [],
15+
"firmRelease": {},
16+
"firmingPeriod": 0,
17+
"inventory": {},
18+
"leadTime": 3,
19+
"lifetime": 10,
20+
"lotSizes": [
21+
{
22+
"endDate": null,
23+
"startDate": null,
24+
"timeDependentValue": 2000
25+
}
26+
],
27+
"maximumInventories": [],
28+
"minimumInventories": [],
29+
"ordering": 1,
30+
"otherDemand": {},
31+
"otherDemandAnnotations": {},
32+
"plannedOrders": {},
33+
"plannedRelease": {},
34+
"productionMethod": "CumulativeLeadTime",
35+
"targetMFCs": [],
36+
"timeAggregateType": "Monthly",
37+
"timeDependentPlanningParameters": true,
38+
"uom": "EA",
39+
"x": 249,
40+
"y": 127
41+
}
42+
},
43+
"analytics": {
44+
"items": [],
45+
"layouts": [],
46+
"tabs": []
47+
},
48+
"planDate": "2020-03-01",
49+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
50+
"recipeMap": {}
51+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
3+
"abcMaterialsMap": {
4+
"1": {
5+
"abcMaterialName": "FDP",
6+
"actuals": {},
7+
"currency": "USD",
8+
"decimalPrecision": 0,
9+
"demand": {
10+
"2020-07-01": 100
11+
},
12+
"doExpiryCarryover": false,
13+
"expiryAdjustments": {},
14+
"firmOrders": [],
15+
"firmRelease": {},
16+
"firmingPeriod": 0,
17+
"inventory": {},
18+
"leadTime": 3,
19+
"lifetime": 10,
20+
"lotSizes": [
21+
{
22+
"endDate": null,
23+
"startDate": null,
24+
"timeDependentValue": 2000
25+
}
26+
],
27+
"maximumInventories": [],
28+
"minimumInventories": [],
29+
"ordering": 1,
30+
"otherDemand": {},
31+
"otherDemandAnnotations": {},
32+
"plannedOrders": {},
33+
"plannedRelease": {},
34+
"productionMethod": "CumulativeLeadTime",
35+
"targetMFCs": [
36+
{
37+
"endDate": null,
38+
"startDate": null,
39+
"timeDependentValue": 3
40+
},
41+
{
42+
"endDate": "2020-12-31",
43+
"startDate": "2021-01-01",
44+
"timeDependentValue": 4
45+
}
46+
],
47+
"timeAggregateType": "Monthly",
48+
"timeDependentPlanningParameters": false,
49+
"uom": "EA",
50+
"x": 249,
51+
"y": 127
52+
}
53+
},
54+
"analytics": {
55+
"items": [],
56+
"layouts": [],
57+
"tabs": []
58+
},
59+
"planDate": "2020-03-01",
60+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
61+
"recipeMap": {}
62+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"abcMaterialsMap": {},
3+
"analytics": {
4+
"items": [],
5+
"layouts": [],
6+
"tabs": []
7+
},
8+
"planDate": "2020-03-01",
9+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
10+
"recipeMap": {}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-10.1.0.json",
3+
"abcMaterialsMap": {},
4+
"analytics": {
5+
"items": [],
6+
"layouts": []
7+
},
8+
"planDate": "2020-03-01",
9+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
10+
"recipeMap": {}
11+
}

src/schema-validation.jsonc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,28 @@
585585
"abcDemandDetailsMatchDemandRows"
586586
]
587587
},
588+
"abc-supply-plan-10.1.0.json": {
589+
"unknownFormat": ["abc-draft-js_RawDraftContentState"],
590+
"unknownKeywords": [
591+
"abcIsFirstDayOfMonth",
592+
"abcIsLastDayOfMonth",
593+
"abcIsAfter0001-01-01",
594+
"abcIsBefore9999-12-31",
595+
"abcDoMaterialIDsExist",
596+
"abcIsAcyclic",
597+
"abcAreAllocationMethodsHomogeneous",
598+
"abcIsValidColor",
599+
"abcNoDuplicateValuesForOrderingProperty",
600+
"abcHasNonOverlappingTimeDependentValues",
601+
"abcHasUninterruptedTimeDependentValues",
602+
"abcIsExpirationDateOnOrAfterManufactureDate",
603+
"abcIsReleaseDateOnOrAfterPlanDate",
604+
"abcIsReleaseDateOnOrAfterManufactureDate",
605+
"abcIsExpirationDateOnOrAfterReleaseDate",
606+
"abcDemandDetailsMatchDemandRows",
607+
"abcArePlanningFrequencyChangesOnPlanningMonths"
608+
]
609+
},
588610
"anywork-ac-1.0.json": {
589611
"externalSchema": ["base.json"]
590612
},

0 commit comments

Comments
 (0)