Skip to content

Commit 8903ea6

Browse files
mosofskyMichael Osofskypre-commit-ci[bot]
authored
abc-supply-plan-8.0.0.json (SchemaStore#4615)
* abc-supply-plan-8.0.0.json * Renamed unitCost ➜ manufacturingCost (applies to Planned & Firm Orders) * Introduced standardCost (applies to Inventory & Expiry Adjustments) * Required showQuantitiesAs: null for mfc under analytics * Added validation rules for time-dependent planning parameters * Renamed enum showQuantitiesAs: "Cost" ➜ "Monetary" to better reflect monetary quantity views Testing: - node ./cli.js check * [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 a8c76f4 commit 8903ea6

9 files changed

+2103
-2
lines changed

src/api/json/catalog.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,16 @@
125125
"name": "ABCSupplyPlan",
126126
"description": "ABCSupplyPlan representing all the state for performing inventory optimization and expiry analysis in ABC-Plan MasterPlanner",
127127
"fileMatch": ["abc-supply-plan-*.json"],
128-
"url": "https://json.schemastore.org/abc-supply-plan-7.0.0.json",
128+
"url": "https://json.schemastore.org/abc-supply-plan-8.0.0.json",
129129
"versions": {
130130
"1.0.0": "https://json.schemastore.org/abc-supply-plan-1.0.0.json",
131131
"2.0.0": "https://json.schemastore.org/abc-supply-plan-2.0.0.json",
132132
"3.0.0": "https://json.schemastore.org/abc-supply-plan-3.0.0.json",
133133
"4.0.0": "https://json.schemastore.org/abc-supply-plan-4.0.0.json",
134134
"5.0.0": "https://json.schemastore.org/abc-supply-plan-5.0.0.json",
135135
"6.0.0": "https://json.schemastore.org/abc-supply-plan-6.0.0.json",
136-
"7.0.0": "https://json.schemastore.org/abc-supply-plan-7.0.0.json"
136+
"7.0.0": "https://json.schemastore.org/abc-supply-plan-7.0.0.json",
137+
"8.0.0": "https://json.schemastore.org/abc-supply-plan-8.0.0.json"
137138
}
138139
},
139140
{
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"abcMaterialsMap": {},
3+
"analytics": {
4+
"items": [],
5+
"layouts": []
6+
},
7+
"planDate": "2020-03-01",
8+
"planNotes": "{\"blocks\":[{\"key\":\"8o58p\",\"text\":\"Plan for March 2020\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
9+
"recipeMap": {}
10+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-8.0.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+
"this_is_an_invalid_property": {
12+
"this_is_an_invalid_object_property": "this_is_an_invalid_object_value"
13+
}
14+
}
Lines changed: 170 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-8.0.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+
"2020-08-01": 125,
12+
"2020-09-01": 150,
13+
"2020-10-01": 175,
14+
"2020-11-01": 200,
15+
"2020-12-01": 110,
16+
"2021-01-01": 140,
17+
"2021-02-01": 130,
18+
"2021-03-01": 205,
19+
"2021-04-01": 210
20+
},
21+
"doExpiryCarryover": false,
22+
"expiryAdjustments": {
23+
"2020-07-01": 0,
24+
"2020-08-01": 0,
25+
"2020-09-01": 0,
26+
"2020-10-01": 0,
27+
"2020-11-01": 0,
28+
"2020-12-01": 0,
29+
"2021-01-01": 0,
30+
"2021-02-01": 0,
31+
"2021-03-01": 0,
32+
"2021-04-01": 0
33+
},
34+
"expiryAnalysisType": "Expiration",
35+
"firmOrders": [
36+
{
37+
"expirationDate": "2020-11-30",
38+
"firmOrderName": "May Order",
39+
"firmOrderQuantity": 105,
40+
"manufactureDate": "2020-05-01",
41+
"releaseDate": "2020-07-01"
42+
},
43+
{
44+
"expirationDate": "2020-12-31",
45+
"firmOrderName": "June Order",
46+
"firmOrderQuantity": 103,
47+
"manufactureDate": "2020-06-01",
48+
"releaseDate": "2020-08-01"
49+
},
50+
{
51+
"expirationDate": "2021-01-31",
52+
"firmOrderName": "July Order",
53+
"firmOrderQuantity": 200,
54+
"manufactureDate": "2020-07-01",
55+
"releaseDate": "2020-09-01"
56+
},
57+
{
58+
"expirationDate": "2021-02-28",
59+
"firmOrderName": "August Order",
60+
"firmOrderQuantity": 100,
61+
"manufactureDate": "2020-08-01",
62+
"releaseDate": "2020-10-01"
63+
},
64+
{
65+
"expirationDate": "2021-03-31",
66+
"firmOrderName": "September Order",
67+
"firmOrderQuantity": 100,
68+
"manufactureDate": "2020-09-01",
69+
"releaseDate": "2020-11-01"
70+
}
71+
],
72+
"firmingPeriod": 3,
73+
"initialInventories": [
74+
{
75+
"expirationDate": "2020-09-30",
76+
"initialInventoryQuantity": 109,
77+
"lotNumber": "Lot C4R1",
78+
"manufactureDate": "2020-03-01"
79+
},
80+
{
81+
"expirationDate": "2020-10-31",
82+
"initialInventoryQuantity": 98,
83+
"lotNumber": "Lot C4R2",
84+
"manufactureDate": "2020-04-01"
85+
},
86+
{
87+
"expirationDate": "2020-10-31",
88+
"initialInventoryQuantity": 93,
89+
"lotNumber": "Lot C4R3",
90+
"manufactureDate": "2020-04-01"
91+
}
92+
],
93+
"inventoryMethod": "TargetMFC",
94+
"inventorySystemLocationName": null,
95+
"inventorySystemMaterialNumber": null,
96+
"isCapacityConstraintNode": false,
97+
"leadTime": 2,
98+
"lotSize": 100.8,
99+
"materialColor": "#3D85C6",
100+
"materialShape": "circle",
101+
"minimumInventories": [
102+
{
103+
"endDate": null,
104+
"startDate": null,
105+
"timeDependentValue": 0
106+
}
107+
],
108+
"ordering": 0,
109+
"otherDemand": {
110+
"2020-07-01": 0,
111+
"2020-08-01": 0,
112+
"2020-09-01": 0,
113+
"2020-10-01": 0,
114+
"2020-11-01": 0,
115+
"2020-12-01": 0,
116+
"2021-01-01": 0,
117+
"2021-02-01": 0,
118+
"2021-03-01": 0,
119+
"2021-04-01": 0
120+
},
121+
"otherDemandAnnotation": {},
122+
"plannedOrders": {
123+
"2020-10-01": 500,
124+
"2020-11-01": 200
125+
},
126+
"planningFrequencies": [
127+
{
128+
"endDate": null,
129+
"startDate": null,
130+
"timeDependentValue": 1
131+
}
132+
],
133+
"shelfLives": [
134+
{
135+
"endDate": null,
136+
"startDate": null,
137+
"timeDependentValue": 6
138+
}
139+
],
140+
"showQuantitiesAs": "Units",
141+
"stopshipBuffers": [
142+
{
143+
"endDate": null,
144+
"startDate": null,
145+
"timeDependentValue": 0
146+
}
147+
],
148+
"targetMFCs": [
149+
{
150+
"endDate": null,
151+
"startDate": null,
152+
"timeDependentValue": 3
153+
}
154+
],
155+
"timeAggregateType": "Monthly",
156+
"timeDependentPlanningParameters": false,
157+
"unitCost": 0,
158+
"uom": "bottle",
159+
"x": 258,
160+
"y": 75
161+
}
162+
},
163+
"analytics": {
164+
"items": [],
165+
"layouts": []
166+
},
167+
"planDate": "2020-07-01",
168+
"planNotes": "{\"blocks\":[{\"key\":\"d4m4a\",\"text\":\"`July 2020 base plan`\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
169+
"recipeMap": {}
170+
}
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-8.0.0.json",
3+
"abcMaterialsMap": {},
4+
"analytics": {
5+
"items": [],
6+
"layouts": []
7+
},
8+
"planDate": 1715443874,
9+
"planNotes": "{\"blocks\":[{\"key\":\"d4m4a\",\"text\":\"`July 2020 base plan`\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
10+
"recipeMap": {}
11+
}
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
{
2+
"$schema": "https://json.schemastore.org/abc-supply-plan-8.0.0.json",
3+
"abcMaterialsMap": {
4+
"1": {
5+
"abcMaterialName": 1,
6+
"actuals": {},
7+
"currency": "USD",
8+
"decimalPrecision": 0,
9+
"demand": {
10+
"2020-07-01": 100,
11+
"2020-08-01": 125,
12+
"2020-09-01": 150,
13+
"2020-10-01": 175,
14+
"2020-11-01": 200,
15+
"2020-12-01": 110,
16+
"2021-01-01": 140,
17+
"2021-02-01": 130,
18+
"2021-03-01": 205,
19+
"2021-04-01": 210
20+
},
21+
"doExpiryCarryover": false,
22+
"expiryAdjustments": {
23+
"2020-07-01": 0,
24+
"2020-08-01": 0,
25+
"2020-09-01": 0,
26+
"2020-10-01": 0,
27+
"2020-11-01": 0,
28+
"2020-12-01": 0,
29+
"2021-01-01": 0,
30+
"2021-02-01": 0,
31+
"2021-03-01": 0,
32+
"2021-04-01": 0
33+
},
34+
"expiryAnalysisType": "Expiration",
35+
"firmOrders": [
36+
{
37+
"expirationDate": "2020-11-30",
38+
"firmOrderName": 1,
39+
"firmOrderQuantity": 105,
40+
"manufactureDate": "2020-05-01",
41+
"releaseDate": "2020-07-01"
42+
}
43+
],
44+
"firmingPeriod": 3,
45+
"initialInventories": [
46+
{
47+
"expirationDate": "2020-09-30",
48+
"initialInventoryQuantity": 109,
49+
"lotNumber": 1,
50+
"manufactureDate": "2020-03-01"
51+
}
52+
],
53+
"inventoryMethod": "TargetMFC",
54+
"inventorySystemLocationName": null,
55+
"inventorySystemMaterialNumber": null,
56+
"isCapacityConstraintNode": false,
57+
"leadTime": 2,
58+
"lotSize": 100,
59+
"materialColor": "#3D85C6",
60+
"materialShape": "circle",
61+
"minimumInventories": [
62+
{
63+
"endDate": null,
64+
"startDate": null,
65+
"timeDependentValue": 0
66+
}
67+
],
68+
"ordering": 0,
69+
"otherDemand": {
70+
"2020-07-01": 0,
71+
"2020-08-01": 0,
72+
"2020-09-01": 0,
73+
"2020-10-01": 0,
74+
"2020-11-01": 0,
75+
"2020-12-01": 0,
76+
"2021-01-01": 0,
77+
"2021-02-01": 0,
78+
"2021-03-01": 0,
79+
"2021-04-01": 0
80+
},
81+
"otherDemandAnnotation": {},
82+
"plannedOrders": {
83+
"2020-10-01": 500,
84+
"2020-11-01": 200
85+
},
86+
"planningFrequencies": [
87+
{
88+
"endDate": null,
89+
"startDate": null,
90+
"timeDependentValue": 1
91+
}
92+
],
93+
"shelfLives": [
94+
{
95+
"endDate": null,
96+
"startDate": null,
97+
"timeDependentValue": 6
98+
}
99+
],
100+
"showQuantitiesAs": "Units",
101+
"stopshipBuffers": [
102+
{
103+
"endDate": null,
104+
"startDate": null,
105+
"timeDependentValue": 0
106+
}
107+
],
108+
"targetMFCs": [
109+
{
110+
"endDate": null,
111+
"startDate": null,
112+
"timeDependentValue": 3
113+
}
114+
],
115+
"timeAggregateType": "Monthly",
116+
"timeDependentPlanningParameters": false,
117+
"unitCost": 0,
118+
"uom": "bottle",
119+
"x": 258,
120+
"y": 75
121+
}
122+
},
123+
"analytics": {
124+
"items": [],
125+
"layouts": []
126+
},
127+
"planDate": "2020-07-01",
128+
"planNotes": "{\"blocks\":[{\"key\":\"d4m4a\",\"text\":\"`July 2020 base plan`\",\"type\":\"unstyled\",\"depth\":0,\"inlineStyleRanges\":[],\"entityRanges\":[],\"data\":{}}],\"entityMap\":{}}",
129+
"recipeMap": {}
130+
}

src/schema-validation.jsonc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,26 @@
519519
"abcIsExpirationDateOnOrAfterReleaseDate"
520520
]
521521
},
522+
"abc-supply-plan-8.0.0.json": {
523+
"unknownFormat": ["abc-draft-js_RawDraftContentState"],
524+
"unknownKeywords": [
525+
"abcIsFirstDayOfMonth",
526+
"abcIsLastDayOfMonth",
527+
"abcIsAfter0001-01-01",
528+
"abcIsBefore9999-12-31",
529+
"abcDoMaterialIDsExist",
530+
"abcIsAcyclic",
531+
"abcAreAllocationMethodsHomogeneous",
532+
"abcIsValidColor",
533+
"abcNoDuplicateValuesForOrderingProperty",
534+
"abcHasNonOverlappingTimeDependentValues",
535+
"abcHasUninterruptedTimeDependentValues",
536+
"abcIsExpirationDateOnOrAfterManufactureDate",
537+
"abcIsReleaseDateOnOrAfterPlanDate",
538+
"abcIsReleaseDateOnOrAfterManufactureDate",
539+
"abcIsExpirationDateOnOrAfterReleaseDate"
540+
]
541+
},
522542
"anywork-ac-1.0.json": {
523543
"externalSchema": ["base.json"]
524544
},

0 commit comments

Comments
 (0)