@mark1russell7/stack-needs 0.7.0 → 0.8.1
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/README.md +84 -11
- package/build/index.d.ts +224 -19
- package/build/index.d.ts.map +1 -1
- package/build/index.js +418 -45
- package/build/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -15,7 +15,9 @@ Each function is a plain function with no clock, no network and no file.
|
|
|
15
15
|
| `CalorieRow` | A sex, a range of ages in months, and the need of each activity level, or one need for all levels. |
|
|
16
16
|
| `CalorieChange` | A stage (for example `pregnancy-2`), a sex, and the change of the daily need at that stage, with the condition of the source. |
|
|
17
17
|
| `Person` | A group of persons: a sex, an age in whole months, a count and, as options, an activity level and a stage. |
|
|
18
|
-
| `HouseholdFragment` | A fragment of an endurance layer: the resources, the stores,
|
|
18
|
+
| `HouseholdFragment` | A fragment of an endurance layer: the resources, the stores, the draws and their direct uses. It has the form of `EnduranceLayer`. |
|
|
19
|
+
| `CookFragment` | A fragment of an endurance layer: the resources and one cook converter for each dry resource with a read. It has the form of `EnduranceLayer`. |
|
|
20
|
+
| `CookLine` | The energy, the cook water, the heat to boil, the stove time and the fuel of one pot of one dry food, each a read or a no read. |
|
|
19
21
|
|
|
20
22
|
## The rules of the data
|
|
21
23
|
|
|
@@ -23,7 +25,7 @@ Each function is a plain function with no clock, no network and no file.
|
|
|
23
25
|
2. An age with no row in the tables gives a line with no read for that person, not an error. The total of `calorieNeed` is then a lower limit, and `read` is false.
|
|
24
26
|
3. The activity level is an explicit input. The package has no default level.
|
|
25
27
|
4. A stage of pregnancy or lactation is an input of a person record. `calorieNeed` adds the change of the stage to the need of the row. The change comes from the table of the row. A stage that this table does not have for the sex of the record is an error, not a no read. Thus the option `leave-out` cannot remove a pregnant person from a draw. One stage holds for each day of a call. For a period that crosses stages, the planner selects the stage, for example the stage with the largest change.
|
|
26
|
-
5. The
|
|
28
|
+
5. The cook converters come from the cited cook facts of the catalog, a cited stove share and cited constants. A missing fact gives a no read, not a figure. Refer to the section on the water and the fuel of a cook.
|
|
27
29
|
|
|
28
30
|
`checkCalorieTable` is the gate of a table. It gives the findings of `checkSources` of `@mark1russell7/guidebook` for the source, also for a hash that is not 64 lowercase hexadecimal digits (`bad-sha256`). The source of a table must have a publisher (`by`), a page of its terms and a hash, and HTTPS addresses (the options `require` and `https` of the gate). A missing field gives `missing-field`. For the rows, it refuses two rows of one sex with ages in common, and a need that is not above 0 in `kcal/d`. The rows of each sex have no gap between two rows (`needs-gap`). A table can start after month 0 and end at a closed row. Each change has a stage, a title, a sex of the table and a finite value in `kcal/d`. Each stage and sex has one change at most (`needs-change`).
|
|
29
31
|
|
|
@@ -64,12 +66,14 @@ console.log(enduranceOf(food.layer, cut, { at: "2026-11-22" }).needs["food.energ
|
|
|
64
66
|
|
|
65
67
|
`householdFragment` turns the persons and a buy list into a fragment of an endurance layer. The buy list is the count of units of each product of the catalog of supplies of `@mark1russell7/market`.
|
|
66
68
|
|
|
67
|
-
- The
|
|
69
|
+
- The draw `food.energy` has the need of the persons for one day, in `kcal`. Its users are the persons.
|
|
70
|
+
- The draw `food.infant-formula` has the infants on formula below 6 months (`FORMULA_DRAW_MONTHS`), with the whole need of their rows.
|
|
71
|
+
- The fragment has each draw with one or more users. The draw `food.energy` is first.
|
|
68
72
|
- Each gift of the buy list (`giftsOf`) is one store. Examples are `food.no-cook` in `kcal`, the dry foods in `kg` and `water.stored` in `L`.
|
|
69
73
|
- A gift with no read has no store. It is in `noReads`, and `storesRead` is false. The draw does not change.
|
|
70
|
-
- The direct uses are
|
|
71
|
-
- The resources are the resources of the stores and of the
|
|
72
|
-
- The supply part of
|
|
74
|
+
- The direct uses are each use of `uses` for the need of a draw. The default `DIRECT_USES` gives `food.no-cook` to the food draw and `food.infant-formula-ready` to the formula draw, 1 kcal for each kcal.
|
|
75
|
+
- The resources are the resources of the stores and of the direct uses. The resource of each direct use is in `kcal` in the catalog, or the function throws a `RangeError`.
|
|
76
|
+
- The supply part of each draw is `supply`. Its default is the part of `NEED_SUPPLIES` for the need of the draw: `food.retail`.
|
|
73
77
|
- The result also has the food energy of each product (`buyListEnergy`). A caller gets the energy of the dry food for its converters from it.
|
|
74
78
|
|
|
75
79
|
The result has two reads. `needRead` tells if the draw has a read, and `storesRead` tells if each gift of the buy list has a read.
|
|
@@ -90,7 +94,7 @@ The infant table gives the need of an infant below 12 months (`INFANT_MONTHS`).
|
|
|
90
94
|
| --- | --- |
|
|
91
95
|
| `food` | The draw holds the need of the infant, from the infant table. |
|
|
92
96
|
| `breast-milk` | Only below 6 months (`BREAST_MILK_MONTHS`). The draw does not hold the need of the infant. The milk comes from the food of the mother, so the stage of lactation of the mother holds that energy. The result lists the infant in `breastMilk`. |
|
|
93
|
-
| `formula` | Only below 12 months.
|
|
97
|
+
| `formula` | Only below 12 months. Below 6 months (`FORMULA_DRAW_MONTHS`), the draw `food.infant-formula` holds the whole need of the infant, because the infant has milk only. Only the formula of the buy list feeds it, so a list with no formula gives 0 days. From 6 months, no cited source gives the part of formula. Thus the infant gives no layer, as a person with no row. With `noRow: "leave-out"`, no draw has the need of the infant, and `leftOut` lists the infant. The result lists each infant on formula in `formula`. |
|
|
94
98
|
|
|
95
99
|
With the default tables, the line of each infant in `need` has a read, so `need` gives the energy of the whole household.
|
|
96
100
|
|
|
@@ -100,24 +104,93 @@ The rules of breast milk:
|
|
|
100
104
|
- The change of a stage is the milk of one infant. Thus each infant on breast milk needs one person of the draw with a stage of lactation. When the infants are more, the function gives no layer, also with `leave-out`. A person that the draw leaves out does not count.
|
|
101
105
|
- From 6 months, the infant table gives 604 to 745 kcal/d, and the change of the stage is 400 kcal/d. Thus a part of the need is in no draw, and the function gives a `RangeError`. Give `food` from 6 months.
|
|
102
106
|
|
|
107
|
+
The notes b and c of Table A2-3 of the guidelines (page 141) give the two changes of lactation:
|
|
108
|
+
|
|
109
|
+
| Stage | The note of the source | The change |
|
|
110
|
+
| --- | --- | --- |
|
|
111
|
+
| `lactation-1` | 500 calories/day for the milk production, minus 170 calories/day for the weight loss after the birth. | 330 kcal/d |
|
|
112
|
+
| `lactation-2` | 400 calories/day for the milk production. The source assumes a stable weight after 6 months. | 400 kcal/d |
|
|
113
|
+
|
|
114
|
+
Thus below 6 months, a part of the milk comes from the stores of the mother. The draw holds only the part from food.
|
|
115
|
+
The source gives the energy of the milk production, not the energy that the infant gets. It gives no change for two or more infants.
|
|
116
|
+
Thus the package does not give the milk part of an infant from 6 months, and it does not give a change for twins. Each is a no read until a source gives it.
|
|
117
|
+
|
|
103
118
|
A stage of lactation is a change with `milk: true`: `lactation-1` and `lactation-2` of the guidelines. From 6 months, an infant eats food and drinks milk. With `feeding: "food"` and the stage `lactation-2` of the mother, the draw counts a part of that energy two times. The result is then more food than the household needs, which is on the safe side.
|
|
104
119
|
|
|
105
120
|
### The resources of the buy list and the join
|
|
106
121
|
|
|
107
122
|
The fragment has no converter. Thus, with this fragment alone, only `food.no-cook` feeds the draw. This is the worst case: no water and no fuel.
|
|
108
123
|
|
|
109
|
-
|
|
124
|
+
`cookFragment` gives the converters for the dry food in a different fragment, with the water and the fuel of each pot. Then `joinEndurance` joins the fragments. The dry food then adds days only while the water and the fuel last.
|
|
110
125
|
|
|
111
126
|
This fragment declares the resource codes of the buy list, for example `water.stored` in `L`. A different fragment, for example the fragment of a water tank, can declare the same resource. `joinEndurance` of `@mark1russell7/stack-endurance` joins two equal records into one. A different unit is a fault of the join.
|
|
112
127
|
|
|
128
|
+
## The water and the fuel of a cook
|
|
129
|
+
|
|
130
|
+
`cookFragment` turns the dry food of a buy list into converters of an endurance layer. One run of a converter is one pot. The run takes the dry food, the cook water and the fuel, and gives the food energy of the pot. Thus a dry food with no fuel or no water gives no meal.
|
|
131
|
+
|
|
132
|
+
```ts
|
|
133
|
+
import { SUPPLY_CATALOG } from "@mark1russell7/market/supplies";
|
|
134
|
+
import { cookFragment } from "@mark1russell7/stack-needs";
|
|
135
|
+
|
|
136
|
+
const cook = cookFragment({
|
|
137
|
+
catalog: SUPPLY_CATALOG,
|
|
138
|
+
units: { "food.rice-white-1kg": 4 },
|
|
139
|
+
// Made-up stove and share: 227 g of propane in 90 min, and 0.5 of the higher heating value.
|
|
140
|
+
stove: { fuel: "fuel.propane", rate: { amount: 227, unit: "g", per: { amount: 90, unit: "min" }, fact: "example.stove" } },
|
|
141
|
+
share: { value: 0.5, heating: "higher", cite: "example.share" },
|
|
142
|
+
batch: { value: 0.5, unit: "kg" },
|
|
143
|
+
});
|
|
144
|
+
// cook.layer has the converter cook:food.grain-dry. Join it with the layer of householdFragment and a store of fuel.
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
The model of one pot:
|
|
148
|
+
|
|
149
|
+
1. The cook water is `cookWater` of `@mark1russell7/market` times the dry mass. It takes `water.stored`, the resource of the drinking water.
|
|
150
|
+
2. The heat to boil is the mass times 4.19002 kJ/(kg.K) times the rise to the boil (100 °C). The mass is the water and the dry food. The rise starts at the start temperature. This temperature is an input with its citation. The default is 0 °C, which gives the most heat. The dry food takes the specific heat of water, which is higher than its own. This term holds the heat above the true value.
|
|
151
|
+
3. The boil time is the heat divided by the stove rate times the stove share. The share is the part of the stove heat that goes into the water and the food. The heat of the pot itself is in the losses. It is a cited input with its heating value. It has no default.
|
|
152
|
+
4. The stove time is the boil time plus the high end of the cook time. The cook time starts when the water boils.
|
|
153
|
+
5. The fuel is a safe upper limit: the stove burns at its full rate for all of the stove time. At a high place the cook time is longer. The model does not give that time, so there the fuel is not an upper limit.
|
|
154
|
+
6. A rate in a mass gives the fuel mass directly. A rate in an energy gives a mass only through the cited energy of the fuel (`fuelEnergy`), with the same heating value.
|
|
155
|
+
7. The dry mass of one pot (`batch`) is a plan of the caller. It has no default. Give the smallest pot that the cook makes. Each pot takes its own cook time, so a batch above the real pot gives too little fuel.
|
|
156
|
+
|
|
157
|
+
Each value of a line is a read or a no read with its reasons. These facts give a no read:
|
|
158
|
+
|
|
159
|
+
| Missing fact | The no read |
|
|
160
|
+
| --- | --- |
|
|
161
|
+
| No cited cook water | The water, the heat and the fuel. A food with a cook time and no cited water has no fuel. |
|
|
162
|
+
| No cited cook time | The stove time and the fuel. |
|
|
163
|
+
| No cited stove rate, or a rate that is not an energy or a mass in a time | The stove time and the fuel. |
|
|
164
|
+
| No cited stove share | The stove time and the fuel. The water and the heat keep their reads. |
|
|
165
|
+
| A heating value of the share or of the rate that is not the heating value of the fuel energy | The stove time and the fuel. |
|
|
166
|
+
| No cited energy of the fuel, with a rate in an energy or a share on a rate in a mass | The stove time and the fuel. |
|
|
167
|
+
| No food energy of the product | The energy. |
|
|
168
|
+
| A product that gives more than one food | The energy. The catalog gives one energy for the whole product. |
|
|
169
|
+
|
|
170
|
+
A dry resource with a no read in a line has no converter. It is in `noReads`, and `read` is false. Two products of the list can give one dry resource, for example rice and oats. The converter then takes the worst case of their lines: the most water, the most fuel and the least energy.
|
|
171
|
+
|
|
172
|
+
The catalog of market gives no soak water. Thus a food that needs a soak, for example dry beans, has no soak draw. The beans of the catalog have no cited cook water, so they have no converter.
|
|
173
|
+
|
|
174
|
+
The cook water and the drinking water are one store, `water.stored`. A drinking draw at a higher level takes its water first, by the take order of `enduranceOf`. The drinking draw keeps back its days times its demand, which is all of the store. Thus, when a case cuts the water supply, the dry food adds 0 days at each amount of stored water.
|
|
175
|
+
|
|
176
|
+
The cited constants:
|
|
177
|
+
|
|
178
|
+
| Name | Value | Source |
|
|
179
|
+
| --- | --- | --- |
|
|
180
|
+
| `WATER_SPECIFIC_HEAT` | 4.19002 kJ/(kg.K) | The NIST Guide to the SI (SP 811). Appendix B.8 gives 4.190 02 J for the calorie (mean). The common definition of that calorie is the mean from 0 °C to 100 °C, and SP 811 does not state the range. Footnote 10 tells that the calorie is the energy to raise 1 g of water by 1 °C. |
|
|
181
|
+
| `WATER_DENSITY_MAX` | 1 kg/L | The page Water Density of the USGS Water Science School. Its table gives 1.00000 g/cm3 at 4.0 °C, its largest value. Thus the water mass is an upper limit. |
|
|
182
|
+
| `BOIL_CELSIUS` | 100 °C | The end of the rise. Water boils at a lower temperature at a high place, so the heat is less. But the cook time is longer there, and the model does not give it. Thus at a high place the fuel is not an upper limit. |
|
|
183
|
+
|
|
184
|
+
The two sources are works of the United States federal government (the license `us-public-domain` of guidebook).
|
|
185
|
+
|
|
113
186
|
## The uses, the supply parts and the join gate
|
|
114
187
|
|
|
115
188
|
The package holds one record of each use and of each default supply part. `householdFragment` takes its food use from `DIRECT_USES`.
|
|
116
189
|
|
|
117
190
|
| Name | What it has |
|
|
118
191
|
| --- | --- |
|
|
119
|
-
| `NEED_SUPPLIES` | The default reference part of each need: `hydration.drink` to `water.main`, and `food.energy` to `food.retail`. A household with a well gives a different part. |
|
|
120
|
-
| `DIRECT_USES` | `water.stored` gives `hydration.drink`, 1 L for each L. This is a definition, not a read. `food.no-cook` gives `food.energy`, 1 kcal for each kcal. |
|
|
192
|
+
| `NEED_SUPPLIES` | The default reference part of each need: `hydration.drink` to `water.main`, and `food.energy` and `food.infant-formula` to `food.retail`. A household with a well gives a different part. |
|
|
193
|
+
| `DIRECT_USES` | `water.stored` gives `hydration.drink`, 1 L for each L. This is a definition, not a read. `food.no-cook` gives `food.energy`, and `food.infant-formula-ready` gives `food.infant-formula`, 1 kcal for each kcal. |
|
|
121
194
|
| `checkJoins` | The join gate of a catalog, the direct uses and the supply parts with the reference lists. |
|
|
122
195
|
|
|
123
196
|
`checkJoins(catalog, uses, supplies, { needs, parts })` gives one finding for each break. An empty list is a pass. Each finding is an error.
|
|
@@ -175,4 +248,4 @@ The 2025-2030 edition of the guidelines was read on 2026-11-24. It has no table
|
|
|
175
248
|
|
|
176
249
|
| Entry | What it has |
|
|
177
250
|
| --- | --- |
|
|
178
|
-
| `@mark1russell7/stack-needs` | The records, the calorie tables and `CALORIE_CHAIN`, the gates, `calorieNeed`, `householdFragment`, the uses, the supply parts and `checkJoins`. |
|
|
251
|
+
| `@mark1russell7/stack-needs` | The records, the calorie tables and `CALORIE_CHAIN`, the gates, `calorieNeed`, `householdFragment`, `cookFragment` and its constants, the uses, the supply parts and `checkJoins`. |
|
package/build/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Quantity } from "@mark1russell7/quantity";
|
|
2
2
|
import { Finding, FindingCode, GateOptions, Source } from "@mark1russell7/guidebook";
|
|
3
|
-
import { BuyListEnergy, SupplyCatalog } from "@mark1russell7/market/supplies";
|
|
3
|
+
import { BuyListEnergy, HeatingValue, StoveFacts, SupplyCatalog } from "@mark1russell7/market/supplies";
|
|
4
4
|
/** The activity levels of the table, as the source names them: sedentary, moderately active and active. */
|
|
5
5
|
export declare const ACTIVITY_LEVELS: readonly ["sedentary", "moderately-active", "active"];
|
|
6
6
|
/** An activity level of the table. */
|
|
@@ -243,10 +243,17 @@ export declare function checkCalorieChain(tables: CalorieTables, options?: GateO
|
|
|
243
243
|
export declare function hasNeedsError(findings: readonly NeedsFinding[]): boolean;
|
|
244
244
|
/** The code of the need of the food draw: food energy, in `kcal` for each day. */
|
|
245
245
|
export declare const FOOD_NEED = "food.energy";
|
|
246
|
+
/**
|
|
247
|
+
* The code of the need of the infants on formula below `FORMULA_DRAW_MONTHS`, in `kcal` for each day.
|
|
248
|
+
* It is a need of its own. Thus the food of the adults does not feed the infants, and the formula does not feed the adults.
|
|
249
|
+
*/
|
|
250
|
+
export declare const FORMULA_NEED = "food.infant-formula";
|
|
246
251
|
/** The code of the need of drinking water, in `L` for each day. */
|
|
247
252
|
export declare const WATER_NEED = "hydration.drink";
|
|
248
253
|
/** The resource of the food to eat with no water and no fuel, in `kcal`. It has a direct use for the food draw. */
|
|
249
254
|
export declare const NO_COOK = "food.no-cook";
|
|
255
|
+
/** The resource of the ready-to-feed infant formula, in `kcal`. It has a direct use for the formula need. It needs no water and no fuel. */
|
|
256
|
+
export declare const FORMULA_READY = "food.infant-formula-ready";
|
|
250
257
|
/** The resource of the stored drinking water, in `L`. It has a direct use for the water need. */
|
|
251
258
|
export declare const STORED_WATER = "water.stored";
|
|
252
259
|
/** The direct use of a resource for a need: 1 unit of the resource gives `amount` of the need. */
|
|
@@ -263,12 +270,14 @@ export interface FragmentDirectUse {
|
|
|
263
270
|
export declare const NEED_SUPPLIES: {
|
|
264
271
|
readonly "hydration.drink": "water.main";
|
|
265
272
|
readonly "food.energy": "food.retail";
|
|
273
|
+
readonly "food.infant-formula": "food.retail";
|
|
266
274
|
};
|
|
267
275
|
/**
|
|
268
276
|
* The direct uses of the resources of the buy list. Each use gives 1 unit of its need for each unit of its resource.
|
|
269
277
|
*
|
|
270
278
|
* - 1 L of stored drinking water gives 1 L of drink. This is a definition, not a read.
|
|
271
279
|
* - 1 kcal of food to eat with no water and no fuel gives 1 kcal of food energy.
|
|
280
|
+
* - 1 kcal of ready-to-feed infant formula gives 1 kcal of the formula need.
|
|
272
281
|
*
|
|
273
282
|
* These records have the form of `DirectUse` of `@mark1russell7/stack-endurance`.
|
|
274
283
|
*/
|
|
@@ -335,11 +344,11 @@ export interface FragmentStore {
|
|
|
335
344
|
readonly resource: string;
|
|
336
345
|
readonly amount: number;
|
|
337
346
|
}
|
|
338
|
-
/**
|
|
347
|
+
/** A draw: the food energy or the formula of the persons of the draw for each day. */
|
|
339
348
|
export interface FragmentDraw {
|
|
340
349
|
readonly need: string;
|
|
341
350
|
readonly level: string;
|
|
342
|
-
/** The
|
|
351
|
+
/** The energy of the persons of the draw for each day, in `kcal`. It is above 0. */
|
|
343
352
|
readonly perDay: number;
|
|
344
353
|
/** The count of the persons of the draw. */
|
|
345
354
|
readonly users: number;
|
|
@@ -362,7 +371,12 @@ export declare const INFANT_MONTHS = 12;
|
|
|
362
371
|
* From 6 months, the infant table gives more than the change of a stage of lactation, so a part of the need is in no draw. Give `food` from this age.
|
|
363
372
|
*/
|
|
364
373
|
export declare const BREAST_MILK_MONTHS = 6;
|
|
365
|
-
/**
|
|
374
|
+
/**
|
|
375
|
+
* The age in months below which an infant on formula is in the formula draw with the whole need of its row: 6.
|
|
376
|
+
* Below this age, an infant has milk only, as for `BREAST_MILK_MONTHS`. From this age, no cited source gives the part of formula.
|
|
377
|
+
*/
|
|
378
|
+
export declare const FORMULA_DRAW_MONTHS = 6;
|
|
379
|
+
/** The action for the persons that no draw can serve: no row in the table, or an infant on formula from `FORMULA_DRAW_MONTHS`. The only action is `leave-out`. */
|
|
366
380
|
export type NoRowAction = "leave-out";
|
|
367
381
|
/** The inputs of the household fragment. */
|
|
368
382
|
export interface HouseholdFragmentInput {
|
|
@@ -374,11 +388,11 @@ export interface HouseholdFragmentInput {
|
|
|
374
388
|
readonly catalog: SupplyCatalog;
|
|
375
389
|
/** The count of units of each product of the buy list, by the `id` of the product. */
|
|
376
390
|
readonly units: Readonly<Record<string, number>>;
|
|
377
|
-
/** The `id` of the part of the stack that supplies the food when no case stops it. The default is `
|
|
391
|
+
/** The `id` of the part of the stack that supplies the food and the formula when no case stops it. The default is `food.retail`, from `NEED_SUPPLIES`. */
|
|
378
392
|
readonly supply?: string | undefined;
|
|
379
|
-
/** The direct uses. The fragment takes each use for the need
|
|
393
|
+
/** The direct uses. The fragment takes each use for the need of one of its draws. The default is `DIRECT_USES`. */
|
|
380
394
|
readonly uses?: readonly FragmentDirectUse[] | undefined;
|
|
381
|
-
/** The level of the
|
|
395
|
+
/** The level of the draws. It is one of the levels of the joined layer. */
|
|
382
396
|
readonly level: string;
|
|
383
397
|
/** The levels of the fragment. The default is no levels: a different fragment of the stack gives them. */
|
|
384
398
|
readonly levels?: readonly string[] | undefined;
|
|
@@ -387,7 +401,7 @@ export interface HouseholdFragmentInput {
|
|
|
387
401
|
/** The start of the `id` of each store. The default is `buy`. */
|
|
388
402
|
readonly prefix?: string | undefined;
|
|
389
403
|
/**
|
|
390
|
-
* The action for the persons with no row in the table, and for the infants on formula
|
|
404
|
+
* The action for the persons with no row in the table, and for the infants on formula from `FORMULA_DRAW_MONTHS`. Without it, such a person gives no layer.
|
|
391
405
|
* With `leave-out`, the draw has no need of those persons, and the result lists them.
|
|
392
406
|
*/
|
|
393
407
|
readonly noRow?: NoRowAction | undefined;
|
|
@@ -418,9 +432,15 @@ export interface HouseholdFragmentRead extends HouseholdStoresResult {
|
|
|
418
432
|
readonly need: CalorieNeedTotal;
|
|
419
433
|
/** This field is true: the draw has a read for each of its users. */
|
|
420
434
|
readonly needRead: true;
|
|
421
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* The persons with no row, and the infants on formula from `FORMULA_DRAW_MONTHS`, that the option `leave-out` left out of the draws.
|
|
437
|
+
* With no option, the list is empty.
|
|
438
|
+
*/
|
|
422
439
|
readonly leftOut: readonly Person[];
|
|
423
|
-
/**
|
|
440
|
+
/**
|
|
441
|
+
* The infants on formula. Each infant below `FORMULA_DRAW_MONTHS` is in the formula draw. The option `leave-out` left the other
|
|
442
|
+
* infants out, so `leftOut` also lists them.
|
|
443
|
+
*/
|
|
424
444
|
readonly formula: readonly Person[];
|
|
425
445
|
/**
|
|
426
446
|
* The infants on breast milk only. Each has a line with a read in `need`, and no part of the draw.
|
|
@@ -436,7 +456,7 @@ export interface HouseholdFragmentNoRead extends HouseholdStoresResult {
|
|
|
436
456
|
readonly needRead: false;
|
|
437
457
|
/** The persons with no row in the table. */
|
|
438
458
|
readonly noRow: readonly Person[];
|
|
439
|
-
/** The infants on formula.
|
|
459
|
+
/** The infants on formula. */
|
|
440
460
|
readonly formula: readonly Person[];
|
|
441
461
|
/** The infants on breast milk only. */
|
|
442
462
|
readonly breastMilk: readonly Person[];
|
|
@@ -448,12 +468,15 @@ export type HouseholdFragmentResult = HouseholdFragmentRead | HouseholdFragmentN
|
|
|
448
468
|
/**
|
|
449
469
|
* This function joins a household and a buy list into a fragment of an endurance layer.
|
|
450
470
|
*
|
|
451
|
-
* - The
|
|
471
|
+
* - The draw of food energy has the rate of the need of its persons for one day, and its users are the persons.
|
|
472
|
+
* - The draw of formula has the infants on formula below `FORMULA_DRAW_MONTHS`, with the whole need of their rows.
|
|
473
|
+
* - The fragment has each draw with one or more users. The draw of food energy is first.
|
|
452
474
|
* - Each gift of the buy list with a read is one store, with the `id` `<prefix>:<product>:<resource>`. A gift with no read has no store.
|
|
453
|
-
* - The direct uses are
|
|
454
|
-
*
|
|
455
|
-
* - The
|
|
456
|
-
* - The
|
|
475
|
+
* - The direct uses are each use of `uses` for the need of a draw. The default `DIRECT_USES` gives 1 kcal for each kcal.
|
|
476
|
+
* `food.no-cook` feeds the food draw, and `food.infant-formula-ready` feeds the formula draw.
|
|
477
|
+
* - The resources are the resources of the stores and of the direct uses, with the units of the catalog.
|
|
478
|
+
* - The supply part of each draw is `supply`. Its default is the part of `NEED_SUPPLIES` for the need of the draw.
|
|
479
|
+
* - The fragment has no converter. `cookFragment` gives the converters for the dry food, with the water and the fuel of each pot.
|
|
457
480
|
*
|
|
458
481
|
* A person with no row in the tables gives no layer, because a low rate gives too many days. The default tables give a row for each age.
|
|
459
482
|
* The option `noRow: "leave-out"` leaves those persons out of the draw. A draw of 0 kcal gives no layer.
|
|
@@ -464,18 +487,200 @@ export type HouseholdFragmentResult = HouseholdFragmentRead | HouseholdFragmentN
|
|
|
464
487
|
* - `breast-milk`: the infant has a line, and no part of the draw. It is only for an infant below `BREAST_MILK_MONTHS`.
|
|
465
488
|
* A person of the household must have a stage of lactation. Each infant on breast milk needs one person of the draw with a stage of lactation.
|
|
466
489
|
* When the infants are more, the function gives no layer: the change of a stage is the milk of one infant.
|
|
467
|
-
* - `formula`:
|
|
468
|
-
*
|
|
490
|
+
* - `formula`: below `FORMULA_DRAW_MONTHS`, the whole need of the infant is in the draw of formula, because the infant has milk only.
|
|
491
|
+
* From `FORMULA_DRAW_MONTHS`, no cited source gives the part of formula, so the infant gives no layer, as a person with no row.
|
|
492
|
+
* The option `leave-out` also applies. The feeding is only for an infant below `INFANT_MONTHS`.
|
|
469
493
|
*
|
|
470
494
|
* The function is pure.
|
|
471
495
|
*
|
|
472
496
|
* @param input - The persons, the activity level, the catalog and the buy list, the supply part and the level of the draw
|
|
473
497
|
* @returns The fragment or a no read of the draw, with the energy of the list and the gifts with no read
|
|
474
498
|
* @throws RangeError for the errors of `calorieNeed`, `giftsOf` and `buyListEnergy`, except a household with no person
|
|
475
|
-
* @throws RangeError when the catalog has no resource in `kcal` for
|
|
499
|
+
* @throws RangeError when the catalog has no resource in `kcal` for the direct use of a draw
|
|
476
500
|
* @throws RangeError when a record below `INFANT_MONTHS` has no `feeding`, or when a `feeding` is not a way of `INFANT_FEEDINGS`
|
|
477
501
|
* @throws RangeError for `breast-milk` from `BREAST_MILK_MONTHS`, and for `formula` from `INFANT_MONTHS`
|
|
478
502
|
* @throws RangeError when an infant drinks only breast milk and no person of the household has a stage of lactation
|
|
479
503
|
*/
|
|
480
504
|
export declare function householdFragment(input: HouseholdFragmentInput): HouseholdFragmentResult;
|
|
505
|
+
/** The source of the specific heat of water: the NIST Guide to the SI (Special Publication 811). It is a work of the United States federal government. */
|
|
506
|
+
export declare const NIST_SI_GUIDE_SOURCE: Source;
|
|
507
|
+
/** The source of the density of water: the page Water Density of the USGS Water Science School. It is a work of the United States federal government. */
|
|
508
|
+
export declare const USGS_WATER_DENSITY_SOURCE: Source;
|
|
509
|
+
/** A physical constant of the cook model, with its source and the place of the value in the source. */
|
|
510
|
+
export interface CookConstant {
|
|
511
|
+
readonly value: number;
|
|
512
|
+
readonly unit: string;
|
|
513
|
+
readonly source: Source;
|
|
514
|
+
readonly locator: string;
|
|
515
|
+
/** How the value comes from the source. */
|
|
516
|
+
readonly note: string;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* The mean specific heat of liquid water from 0 °C to 100 °C: 4.19002 kJ/(kg.K).
|
|
520
|
+
* The NIST Guide to the SI gives 4.190 02 J for the calorie (mean). The common definition of that calorie is the mean over this range.
|
|
521
|
+
* SP 811 does not state the range. Its footnote 10 tells that the calorie is the energy to raise 1 g of water
|
|
522
|
+
* by 1 kelvin. For the default start (0 °C), the value is the mean of the rise. For a warmer start, the mean of the
|
|
523
|
+
* rise can be a little higher. The model also heats the dry food with this value, above the specific heat of a dry food.
|
|
524
|
+
* That term holds the heat of the pot above the true value.
|
|
525
|
+
*/
|
|
526
|
+
export declare const WATER_SPECIFIC_HEAT: CookConstant;
|
|
527
|
+
/**
|
|
528
|
+
* The largest density of liquid water: 1 kg/L. The USGS table gives 1.00000 g/cm3 at 4.0 °C, its largest value.
|
|
529
|
+
* Thus 1 L of cook water is 1 kg or less.
|
|
530
|
+
*/
|
|
531
|
+
export declare const WATER_DENSITY_MAX: CookConstant;
|
|
532
|
+
/**
|
|
533
|
+
* The temperature at the end of the heat to boil, in °C.
|
|
534
|
+
* Water boils at a lower temperature at a high place. Then the heat is less.
|
|
535
|
+
* But the cook time is longer there, and the model does not give that time. Thus at a high place the fuel is not an upper limit.
|
|
536
|
+
*/
|
|
537
|
+
export declare const BOIL_CELSIUS = 100;
|
|
538
|
+
/**
|
|
539
|
+
* The default start temperature of the cook water, in °C: 0, the freezing point. Liquid water at the pressure of the sea is
|
|
540
|
+
* not colder. Thus the default gives the most heat. A caller gives a warmer start with its citation.
|
|
541
|
+
*/
|
|
542
|
+
export declare const COLD_START_CELSIUS = 0;
|
|
543
|
+
/** The start temperature of the cook water, with the citation of the caller, for example a read of the stored water. */
|
|
544
|
+
export interface CookStart {
|
|
545
|
+
/** The temperature in °C, from 0 up to less than `BOIL_CELSIUS`. */
|
|
546
|
+
readonly celsius: number;
|
|
547
|
+
/** The citation of the value: the `id` of a fact or a source of the caller. */
|
|
548
|
+
readonly cite: string;
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* The stove share is the part of the heat of the fuel that goes into the water and the food of the pot.
|
|
552
|
+
* Its value is from more than 0 to 1, with its citation. The heat of the pot itself is in the losses. `heating` tells the heating value of the fuel energy that the share applies to.
|
|
553
|
+
*/
|
|
554
|
+
export interface StoveShare {
|
|
555
|
+
readonly value: number;
|
|
556
|
+
readonly heating: HeatingValue;
|
|
557
|
+
/** The citation of the value: the `id` of a fact or a source of the caller. */
|
|
558
|
+
readonly cite: string;
|
|
559
|
+
}
|
|
560
|
+
/** The inputs of the cook fragment. */
|
|
561
|
+
export interface CookFragmentInput {
|
|
562
|
+
/** The catalog of supplies of `@mark1russell7/market`. */
|
|
563
|
+
readonly catalog: SupplyCatalog;
|
|
564
|
+
/** The count of units of each product of the buy list, by the `id` of the product. */
|
|
565
|
+
readonly units: Readonly<Record<string, number>>;
|
|
566
|
+
/** The stove: the `id` of a product of the catalog with stove facts, or the cited stove facts of the caller. */
|
|
567
|
+
readonly stove: string | StoveFacts;
|
|
568
|
+
/**
|
|
569
|
+
* The dry mass of the food of one pot, for example `{ "value": 0.5, "unit": "kg" }`. It is a plan of the caller. It has no default.
|
|
570
|
+
* Give the smallest pot that the cook makes. A batch above the real pot gives too little fuel, because each pot takes its own cook time.
|
|
571
|
+
*/
|
|
572
|
+
readonly batch: Quantity;
|
|
573
|
+
/** The stove share. Without it, the fuel of the boil is a no read, so each fuel is a no read. It has no default. */
|
|
574
|
+
readonly share?: StoveShare | undefined;
|
|
575
|
+
/** The start temperature of the cook water. The default is `COLD_START_CELSIUS`. */
|
|
576
|
+
readonly start?: CookStart | undefined;
|
|
577
|
+
/** The `id` of the stove in the stack. The converters stop when the stove stops. */
|
|
578
|
+
readonly device?: string | undefined;
|
|
579
|
+
/** The start of the `id` of each converter. The default is `cook`. */
|
|
580
|
+
readonly prefix?: string | undefined;
|
|
581
|
+
}
|
|
582
|
+
/** A value of the cook model with a read, in its unit, or no read with the reasons. A no read is not 0. */
|
|
583
|
+
export type CookRead = {
|
|
584
|
+
readonly read: true;
|
|
585
|
+
readonly value: number;
|
|
586
|
+
readonly unit: string;
|
|
587
|
+
} | {
|
|
588
|
+
readonly read: false;
|
|
589
|
+
readonly why: string;
|
|
590
|
+
};
|
|
591
|
+
/** The cook values of one dry food of the buy list, for one pot. */
|
|
592
|
+
export interface CookLine {
|
|
593
|
+
readonly product: string;
|
|
594
|
+
/** The dry resource of the product, for example `food.grain-dry`. */
|
|
595
|
+
readonly resource: string;
|
|
596
|
+
/** The food energy of the dry food, in `kcal/kg`. */
|
|
597
|
+
readonly energy: CookRead;
|
|
598
|
+
/** The cook water, in `L/kg` of dry food, from `cookWater` of market. */
|
|
599
|
+
readonly water: CookRead;
|
|
600
|
+
/** The heat to boil the cook water of one pot, in `kJ`. */
|
|
601
|
+
readonly heat: CookRead;
|
|
602
|
+
/** The time of the stove for one pot: the boil time and the high end of the cook time, in `min`. */
|
|
603
|
+
readonly minutes: CookRead;
|
|
604
|
+
/** The fuel of one pot, in `kg`. */
|
|
605
|
+
readonly fuel: CookRead;
|
|
606
|
+
}
|
|
607
|
+
/** A converter of the cook fragment, with the form of `Converter` of `@mark1russell7/stack-endurance`. */
|
|
608
|
+
export interface FragmentConverter {
|
|
609
|
+
readonly id: string;
|
|
610
|
+
readonly device?: string | undefined;
|
|
611
|
+
readonly takes: readonly {
|
|
612
|
+
readonly resource: string;
|
|
613
|
+
readonly amount: number;
|
|
614
|
+
}[];
|
|
615
|
+
readonly gives: {
|
|
616
|
+
readonly need: string;
|
|
617
|
+
readonly amount: number;
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
/** The cook fragment of an endurance layer: the resources and one converter for each dry resource with a read. It has no store and no draw. */
|
|
621
|
+
export interface CookFragment {
|
|
622
|
+
/** The format of an endurance layer, `endurance/1`. */
|
|
623
|
+
readonly schema: "endurance/1";
|
|
624
|
+
readonly levels: readonly string[];
|
|
625
|
+
readonly resources: readonly {
|
|
626
|
+
readonly code: string;
|
|
627
|
+
readonly unit: string;
|
|
628
|
+
}[];
|
|
629
|
+
readonly stores: readonly never[];
|
|
630
|
+
readonly draws: readonly never[];
|
|
631
|
+
readonly converters: readonly FragmentConverter[];
|
|
632
|
+
}
|
|
633
|
+
/** A dry resource of the buy list with no converter, and the reasons. */
|
|
634
|
+
export interface CookNoRead {
|
|
635
|
+
readonly resource: string;
|
|
636
|
+
readonly why: string;
|
|
637
|
+
}
|
|
638
|
+
/** The cook fragment, the line of each dry food and the dry resources with no converter. */
|
|
639
|
+
export interface CookFragmentResult {
|
|
640
|
+
readonly layer: CookFragment;
|
|
641
|
+
/** The line of each dry food of the buy list, in the order of the list. */
|
|
642
|
+
readonly lines: readonly CookLine[];
|
|
643
|
+
/** The dry resources with no converter. Their dry food gives no meal in the layer. */
|
|
644
|
+
readonly noReads: readonly CookNoRead[];
|
|
645
|
+
/** True when each dry resource of the buy list has a converter. When it is false, the cooked days are a lower limit. */
|
|
646
|
+
readonly read: boolean;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* This function gives the converters that cook the dry food of a buy list, with the water and the fuel of each pot.
|
|
650
|
+
*
|
|
651
|
+
* - One run of a converter is one pot of `batch`. It takes the dry food, the cook water from `water.stored` and the fuel of the stove.
|
|
652
|
+
* It gives the food energy of the pot to the need `food.energy`. Thus a dry food with no fuel or no water gives no meal.
|
|
653
|
+
* - The cook water is `cookWater` of market times the dry mass. It is the resource of the drinking water.
|
|
654
|
+
* - The heat to boil is the mass of the water and the dry food times `WATER_SPECIFIC_HEAT` times the rise from the start to `BOIL_CELSIUS`.
|
|
655
|
+
* The water mass takes `WATER_DENSITY_MAX`. The dry food takes the specific heat of water, which is higher than its own.
|
|
656
|
+
* - The boil time is the heat divided by the stove rate times the share. The time of the stove is the boil time plus the high end of the cook time.
|
|
657
|
+
* - The fuel is a safe upper limit: the stove burns at its full rate for all of that time. At a high place the cook time is longer.
|
|
658
|
+
* The model does not give that time, so there the fuel is not an upper limit.
|
|
659
|
+
* - A rate in a mass gives the fuel directly. A rate in an energy gives a mass only through the cited energy of the fuel, with the same heating value.
|
|
660
|
+
*
|
|
661
|
+
* A dry food is a gift of a food resource in a unit of mass. Each missing fact gives a line with no read and its reasons, not a figure.
|
|
662
|
+
* Two products of the list can give one dry resource, for example rice and oats. The converter then takes the worst case of their lines:
|
|
663
|
+
* the most water, the most fuel and the least food energy. When a line of the resource has no read, the resource has no converter.
|
|
664
|
+
* A store of the resource from a different fragment gets the converter of this list.
|
|
665
|
+
*
|
|
666
|
+
* The catalog of market gives no soak water. A food that needs a soak, for example dry beans, has a second water draw that this function does not give.
|
|
667
|
+
* A product that gives more than one food has no energy for each food, so its energy is a no read.
|
|
668
|
+
*
|
|
669
|
+
* The cook water is `water.stored`, the store of the drinking water. A drinking draw at a higher level of the same store takes
|
|
670
|
+
* its water first, by the take order of `enduranceOf`. The drinking draw keeps back its days times its demand, which is all of the store.
|
|
671
|
+
* Thus, when a case cuts the water supply, the dry food adds 0 days at each amount of stored water.
|
|
672
|
+
*
|
|
673
|
+
* The function is pure.
|
|
674
|
+
*
|
|
675
|
+
* @param input - The catalog and the buy list, the stove, the dry mass of one pot, the share and the start temperature
|
|
676
|
+
* @returns The fragment, the line of each dry food and the dry resources with no converter
|
|
677
|
+
* @throws RangeError when the batch is not a mass above 0, or when the share is not above 0 and up to 1
|
|
678
|
+
* @throws RangeError when the start is not from 0 up to less than 100 °C
|
|
679
|
+
* @throws RangeError when the stove is a product with no stove facts
|
|
680
|
+
* @throws RangeError when the catalog has no product of an `id` of the buy list
|
|
681
|
+
* @throws RangeError when the catalog has no resource of the fuel in a unit of mass
|
|
682
|
+
* @throws RangeError when a converter has a read and the catalog has no resource `water.stored` in a unit of volume
|
|
683
|
+
* @throws RangeError for the errors of `giftsOf`
|
|
684
|
+
*/
|
|
685
|
+
export declare function cookFragment(input: CookFragmentInput): CookFragmentResult;
|
|
481
686
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/calorie.ts","../src/data.ts","../src/check.ts","../src/uses.ts","../src/household.ts"],"mappings":";;;;qBAQa;;YAGD,wBAAwB;;qBAGvB;;YAGD,qBAAqB;;;;;YAMrB;WAAyB,QAAQ,SAAS,OAAO,eAAe;WAAqB;;WAA4B,MAAM;WAAmB;;;iBAGrI;WACN,KAAK;;WAEL;;WAEA;;WAEA;WACA,MAAM;;;;;;iBAOA;;WAEN;;WAEA;;WAEA,KAAK;;WAEL,QAAQ;;WAER;;WAEA;;;iBAIM;;WAEN;WACA;WACA,QAAQ;;WAER;;WAEA,eAAe;;WAEf,mBAAmB;;;;;;YAOlB,gBAAgB,wBAAwB;;;;;;;;qBASvC;;YAGD,wBAAwB;;iBAGnB;WACN,KAAK;;WAEL;WACA;;WAEA,QAAQ;;WAER;;;;;WAKA,UAAU;;;YAIT;WACG,QAAQ;WAAiB;WAAqB,OAAO;WAAwB;WAAwB;WAAsB;WAAqC,MAAM;;WACtK,QAAQ;WAAiB;WAAsB;;;iBAG7C;;WAEN,gBAAgB;;WAEhB;;WAEA,MAAM;;WAEN;;;wBASK,gBAAgB,iBAAiB,SAAS;;;;;;;;wBAW1C,WAAW,OAAO,cAAc,KAAK,YAAY,oBAAoB;;;;;;;;;wBAYrE,aAAa,QAAQ,eAAe,KAAK,YAAY;WAA+B,OAAO;WAAuB,KAAK;;;;;;;;;wBAoBvH,cAAc,OAAO,cAAc,KAAK,YAAY,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;wBA4BpE,YAAY,QAAQ,eAAe,kBAAkB,UAAU,OAAO,eAAe,eAAe;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/calorie.ts","../src/data.ts","../src/check.ts","../src/uses.ts","../src/household.ts","../src/cook.ts"],"mappings":";;;;qBAQa;;YAGD,wBAAwB;;qBAGvB;;YAGD,qBAAqB;;;;;YAMrB;WAAyB,QAAQ,SAAS,OAAO,eAAe;WAAqB;;WAA4B,MAAM;WAAmB;;;iBAGrI;WACN,KAAK;;WAEL;;WAEA;;WAEA;WACA,MAAM;;;;;;iBAOA;;WAEN;;WAEA;;WAEA,KAAK;;WAEL,QAAQ;;WAER;;WAEA;;;iBAIM;;WAEN;WACA;WACA,QAAQ;;WAER;;WAEA,eAAe;;WAEf,mBAAmB;;;;;;YAOlB,gBAAgB,wBAAwB;;;;;;;;qBASvC;;YAGD,wBAAwB;;iBAGnB;WACN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