@dereekb/dbx-components-mcp 13.11.14 → 13.11.16
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/dbx-components-mcp.js +3050 -1928
- package/generated/dereekb-date.utils.mcp.generated.json +220 -80
- package/generated/dereekb-dbx-core.filters.mcp.generated.json +1 -1
- package/generated/dereekb-dbx-web.ui-components.mcp.generated.json +165 -1
- package/generated/dereekb-firebase.model-snapshot-fields.mcp.generated.json +45 -45
- package/generated/dereekb-firebase.utils.mcp.generated.json +63 -63
- package/generated/dereekb-util.semantic-types.mcp.generated.json +2 -2
- package/generated/dereekb-util.utils.mcp.generated.json +632 -553
- package/generated/rule-catalog.generated.json +51 -3
- package/package.json +11 -11
|
@@ -290,11 +290,11 @@
|
|
|
290
290
|
{
|
|
291
291
|
"name": "collection",
|
|
292
292
|
"type": "DateCellCollection<B>",
|
|
293
|
-
"description": "-
|
|
293
|
+
"description": "- Collection whose timing and blocks should be expanded.",
|
|
294
294
|
"optional": false
|
|
295
295
|
}
|
|
296
296
|
],
|
|
297
|
-
"returns": "
|
|
297
|
+
"returns": "Duration spans with concrete start times for each block.",
|
|
298
298
|
"tags": [
|
|
299
299
|
"date",
|
|
300
300
|
"cell",
|
|
@@ -322,17 +322,17 @@
|
|
|
322
322
|
{
|
|
323
323
|
"name": "timing",
|
|
324
324
|
"type": "DateCellTiming",
|
|
325
|
-
"description": "-
|
|
325
|
+
"description": "- Schedule providing start times and duration.",
|
|
326
326
|
"optional": false
|
|
327
327
|
},
|
|
328
328
|
{
|
|
329
329
|
"name": "blocks",
|
|
330
330
|
"type": "B[]",
|
|
331
|
-
"description": "-
|
|
331
|
+
"description": "- Blocks to expand into concrete duration spans.",
|
|
332
332
|
"optional": false
|
|
333
333
|
}
|
|
334
334
|
],
|
|
335
|
-
"returns": "
|
|
335
|
+
"returns": "Duration spans with concrete start times.",
|
|
336
336
|
"tags": [
|
|
337
337
|
"date",
|
|
338
338
|
"cell",
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
{
|
|
550
550
|
"name": "date",
|
|
551
551
|
"type": "DateOrDateCellIndex",
|
|
552
|
-
"description": "-
|
|
552
|
+
"description": "- Moment to convert; defaults to the current date/time.",
|
|
553
553
|
"optional": true
|
|
554
554
|
}
|
|
555
555
|
],
|
|
@@ -770,7 +770,7 @@
|
|
|
770
770
|
{
|
|
771
771
|
"name": "input",
|
|
772
772
|
"type": "DateOrDateCellIndex",
|
|
773
|
-
"description": "-
|
|
773
|
+
"description": "- Moment or day-index to resolve to a calendar date.",
|
|
774
774
|
"optional": false
|
|
775
775
|
}
|
|
776
776
|
],
|
|
@@ -866,6 +866,146 @@
|
|
|
866
866
|
"date-cell-index-range"
|
|
867
867
|
]
|
|
868
868
|
},
|
|
869
|
+
{
|
|
870
|
+
"slug": "date-cell-schedule-encoded-week-regex",
|
|
871
|
+
"name": "DATE_CELL_SCHEDULE_ENCODED_WEEK_REGEX",
|
|
872
|
+
"kind": "const",
|
|
873
|
+
"category": "date",
|
|
874
|
+
"module": "@dereekb/date",
|
|
875
|
+
"subpath": "date/date.cell.schedule",
|
|
876
|
+
"signature": "const DATE_CELL_SCHEDULE_ENCODED_WEEK_REGEX: RegExp",
|
|
877
|
+
"description": "Regex that loosely validates a {@link DateCellScheduleEncodedWeek}.\n\nMatches zero-to-nine digit characters (any of `0-9`). Does not enforce ascending order or uniqueness of\ndigits — use {@link isDateCellScheduleEncodedWeek} for a runtime check that mirrors the type, or\n{@link dateCellScheduleEncodedWeek} to build a guaranteed-valid encoding from {@link DateCellScheduleDayCode}\nvalues.",
|
|
878
|
+
"params": [],
|
|
879
|
+
"returns": "RegExp",
|
|
880
|
+
"tags": [
|
|
881
|
+
"date",
|
|
882
|
+
"schedule",
|
|
883
|
+
"encoded",
|
|
884
|
+
"week",
|
|
885
|
+
"regex",
|
|
886
|
+
"validate",
|
|
887
|
+
"days",
|
|
888
|
+
"cell",
|
|
889
|
+
"date_cell_schedule_encoded_week_regex"
|
|
890
|
+
],
|
|
891
|
+
"relatedSlugs": [
|
|
892
|
+
"is-date-cell-schedule-encoded-week",
|
|
893
|
+
"date-cell-schedule-encoded-week"
|
|
894
|
+
]
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"slug": "is-date-cell-schedule-encoded-week",
|
|
898
|
+
"name": "isDateCellScheduleEncodedWeek",
|
|
899
|
+
"kind": "function",
|
|
900
|
+
"category": "date",
|
|
901
|
+
"module": "@dereekb/date",
|
|
902
|
+
"subpath": "date/date.cell.schedule",
|
|
903
|
+
"signature": "isDateCellScheduleEncodedWeek(input: string): input is DateCellScheduleEncodedWeek",
|
|
904
|
+
"description": "Type guard that returns true if the input matches the {@link DATE_CELL_SCHEDULE_ENCODED_WEEK_REGEX} encoded-week format.\n\nThe regex check is loose — it allows duplicate digits and any digit ordering. To produce a canonically simplified\nencoding, use {@link dateCellScheduleEncodedWeek}.",
|
|
905
|
+
"params": [
|
|
906
|
+
{
|
|
907
|
+
"name": "input",
|
|
908
|
+
"type": "string",
|
|
909
|
+
"description": "- String to validate against the encoded week regex.",
|
|
910
|
+
"optional": false
|
|
911
|
+
}
|
|
912
|
+
],
|
|
913
|
+
"returns": "Whether the string matches the encoded week format.",
|
|
914
|
+
"tags": [
|
|
915
|
+
"date",
|
|
916
|
+
"schedule",
|
|
917
|
+
"encoded",
|
|
918
|
+
"week",
|
|
919
|
+
"type-guard",
|
|
920
|
+
"validate",
|
|
921
|
+
"check",
|
|
922
|
+
"days",
|
|
923
|
+
"is",
|
|
924
|
+
"cell",
|
|
925
|
+
"isdatecellscheduleencodedweek"
|
|
926
|
+
],
|
|
927
|
+
"example": "isDateCellScheduleEncodedWeek('24'); // true (Mon + Wed)\nisDateCellScheduleEncodedWeek('8'); // true (WEEKDAY shorthand)\nisDateCellScheduleEncodedWeek(''); // true (no days)\nisDateCellScheduleEncodedWeek('abc'); // false",
|
|
928
|
+
"relatedSlugs": [
|
|
929
|
+
"date-cell-schedule-encoded-week-regex",
|
|
930
|
+
"is-empty-date-cell-schedule-encoded-week",
|
|
931
|
+
"date-cell-schedule-encoded-week"
|
|
932
|
+
]
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
"slug": "is-empty-date-cell-schedule-encoded-week",
|
|
936
|
+
"name": "isEmptyDateCellScheduleEncodedWeek",
|
|
937
|
+
"kind": "function",
|
|
938
|
+
"category": "date",
|
|
939
|
+
"module": "@dereekb/date",
|
|
940
|
+
"subpath": "date/date.cell.schedule",
|
|
941
|
+
"signature": "isEmptyDateCellScheduleEncodedWeek(input: string): input is DateCellScheduleEncodedWeek",
|
|
942
|
+
"description": "Returns true if the input represents an empty (no days selected) {@link DateCellScheduleEncodedWeek}.\n\nBoth the empty string `''` and `'0'` are treated as empty since `0` corresponds to\n{@link DateCellScheduleDayCode.NONE}, the no-op day code.",
|
|
943
|
+
"params": [
|
|
944
|
+
{
|
|
945
|
+
"name": "input",
|
|
946
|
+
"type": "string",
|
|
947
|
+
"description": "- String to check for emptiness.",
|
|
948
|
+
"optional": false
|
|
949
|
+
}
|
|
950
|
+
],
|
|
951
|
+
"returns": "Whether the encoded week represents no selected days.",
|
|
952
|
+
"tags": [
|
|
953
|
+
"date",
|
|
954
|
+
"schedule",
|
|
955
|
+
"encoded",
|
|
956
|
+
"week",
|
|
957
|
+
"empty",
|
|
958
|
+
"check",
|
|
959
|
+
"type-guard",
|
|
960
|
+
"days",
|
|
961
|
+
"is",
|
|
962
|
+
"cell",
|
|
963
|
+
"isemptydatecellscheduleencodedweek"
|
|
964
|
+
],
|
|
965
|
+
"example": "isEmptyDateCellScheduleEncodedWeek(''); // true\nisEmptyDateCellScheduleEncodedWeek('0'); // true (NONE code)\nisEmptyDateCellScheduleEncodedWeek('8'); // false (WEEKDAY)\nisEmptyDateCellScheduleEncodedWeek('24'); // false (Mon + Wed)",
|
|
966
|
+
"relatedSlugs": [
|
|
967
|
+
"is-date-cell-schedule-encoded-week",
|
|
968
|
+
"date-cell-schedule-encoded-week"
|
|
969
|
+
]
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"slug": "date-cell-schedule-encoded-week",
|
|
973
|
+
"name": "dateCellScheduleEncodedWeek",
|
|
974
|
+
"kind": "function",
|
|
975
|
+
"category": "date",
|
|
976
|
+
"module": "@dereekb/date",
|
|
977
|
+
"subpath": "date/date.cell.schedule",
|
|
978
|
+
"signature": "dateCellScheduleEncodedWeek(codes: Iterable<DateCellScheduleDayCode>): DateCellScheduleEncodedWeek",
|
|
979
|
+
"description": "Creates a simplified {@link DateCellScheduleEncodedWeek} from an iterable of {@link DateCellScheduleDayCode} values.\n\nCodes are passed through {@link simplifyDateCellScheduleDayCodes} so redundant individual day codes are collapsed\ninto shorthand (e.g. Mon-Fri becomes WEEKDAY `8`, Sat+Sun becomes WEEKEND `9`) and digits are emitted in ascending order.",
|
|
980
|
+
"params": [
|
|
981
|
+
{
|
|
982
|
+
"name": "codes",
|
|
983
|
+
"type": "Iterable<DateCellScheduleDayCode>",
|
|
984
|
+
"description": "- Day codes to encode into the compact string representation.",
|
|
985
|
+
"optional": false
|
|
986
|
+
}
|
|
987
|
+
],
|
|
988
|
+
"returns": "The encoded week string.",
|
|
989
|
+
"tags": [
|
|
990
|
+
"date",
|
|
991
|
+
"schedule",
|
|
992
|
+
"encoded",
|
|
993
|
+
"week",
|
|
994
|
+
"encode",
|
|
995
|
+
"days",
|
|
996
|
+
"simplify",
|
|
997
|
+
"weekday",
|
|
998
|
+
"weekend",
|
|
999
|
+
"cell",
|
|
1000
|
+
"datecellscheduleencodedweek"
|
|
1001
|
+
],
|
|
1002
|
+
"example": "// Encode weekdays only — collapses into the WEEKDAY shorthand\ndateCellScheduleEncodedWeek([DateCellScheduleDayCode.MONDAY, DateCellScheduleDayCode.TUESDAY, DateCellScheduleDayCode.WEDNESDAY, DateCellScheduleDayCode.THURSDAY, DateCellScheduleDayCode.FRIDAY]);\n// Returns '8'\n\n// Encode specific days\ndateCellScheduleEncodedWeek([DateCellScheduleDayCode.MONDAY, DateCellScheduleDayCode.WEDNESDAY]);\n// Returns '24'\n\n// Encode the full week\ndateCellScheduleEncodedWeek([DateCellScheduleDayCode.WEEKDAY, DateCellScheduleDayCode.WEEKEND]);\n// Returns '89'",
|
|
1003
|
+
"relatedSlugs": [
|
|
1004
|
+
"is-date-cell-schedule-encoded-week",
|
|
1005
|
+
"simplify-date-cell-schedule-day-codes",
|
|
1006
|
+
"expand-date-cell-schedule-day-codes"
|
|
1007
|
+
]
|
|
1008
|
+
},
|
|
869
1009
|
{
|
|
870
1010
|
"slug": "time-duration-data-is-empty",
|
|
871
1011
|
"name": "timeDurationDataIsEmpty",
|
|
@@ -879,11 +1019,11 @@
|
|
|
879
1019
|
{
|
|
880
1020
|
"name": "data",
|
|
881
1021
|
"type": "TimeDurationData",
|
|
882
|
-
"description": "- The duration data to check",
|
|
1022
|
+
"description": "- The duration data to check.",
|
|
883
1023
|
"optional": false
|
|
884
1024
|
}
|
|
885
1025
|
],
|
|
886
|
-
"returns": "True if empty",
|
|
1026
|
+
"returns": "True if empty.",
|
|
887
1027
|
"tags": [
|
|
888
1028
|
"date",
|
|
889
1029
|
"duration",
|
|
@@ -914,11 +1054,11 @@
|
|
|
914
1054
|
{
|
|
915
1055
|
"name": "data",
|
|
916
1056
|
"type": "TimeDurationData",
|
|
917
|
-
"description": "- The duration data to convert",
|
|
1057
|
+
"description": "- The duration data to convert.",
|
|
918
1058
|
"optional": false
|
|
919
1059
|
}
|
|
920
1060
|
],
|
|
921
|
-
"returns": "Total milliseconds",
|
|
1061
|
+
"returns": "Total milliseconds.",
|
|
922
1062
|
"tags": [
|
|
923
1063
|
"date",
|
|
924
1064
|
"duration",
|
|
@@ -951,7 +1091,7 @@
|
|
|
951
1091
|
{
|
|
952
1092
|
"name": "ms",
|
|
953
1093
|
"type": "Milliseconds",
|
|
954
|
-
"description": "- The total milliseconds to decompose",
|
|
1094
|
+
"description": "- The total milliseconds to decompose.",
|
|
955
1095
|
"optional": false
|
|
956
1096
|
},
|
|
957
1097
|
{
|
|
@@ -961,7 +1101,7 @@
|
|
|
961
1101
|
"optional": true
|
|
962
1102
|
}
|
|
963
1103
|
],
|
|
964
|
-
"returns": "A TimeDurationData with the decomposed values",
|
|
1104
|
+
"returns": "A TimeDurationData with the decomposed values.",
|
|
965
1105
|
"tags": [
|
|
966
1106
|
"date",
|
|
967
1107
|
"duration",
|
|
@@ -995,17 +1135,17 @@
|
|
|
995
1135
|
{
|
|
996
1136
|
"name": "data",
|
|
997
1137
|
"type": "TimeDurationData",
|
|
998
|
-
"description": "- The duration data",
|
|
1138
|
+
"description": "- The duration data.",
|
|
999
1139
|
"optional": false
|
|
1000
1140
|
},
|
|
1001
1141
|
{
|
|
1002
1142
|
"name": "unit",
|
|
1003
1143
|
"type": "TimeUnit",
|
|
1004
|
-
"description": "- The time unit to read",
|
|
1144
|
+
"description": "- The time unit to read.",
|
|
1005
1145
|
"optional": false
|
|
1006
1146
|
}
|
|
1007
1147
|
],
|
|
1008
|
-
"returns": "The value for that unit, or 0 if not set",
|
|
1148
|
+
"returns": "The value for that unit, or 0 if not set.",
|
|
1009
1149
|
"tags": [
|
|
1010
1150
|
"date",
|
|
1011
1151
|
"duration",
|
|
@@ -1036,23 +1176,23 @@
|
|
|
1036
1176
|
{
|
|
1037
1177
|
"name": "data",
|
|
1038
1178
|
"type": "TimeDurationData",
|
|
1039
|
-
"description": "- The original duration data",
|
|
1179
|
+
"description": "- The original duration data.",
|
|
1040
1180
|
"optional": false
|
|
1041
1181
|
},
|
|
1042
1182
|
{
|
|
1043
1183
|
"name": "unit",
|
|
1044
1184
|
"type": "TimeUnit",
|
|
1045
|
-
"description": "- The time unit to set",
|
|
1185
|
+
"description": "- The time unit to set.",
|
|
1046
1186
|
"optional": false
|
|
1047
1187
|
},
|
|
1048
1188
|
{
|
|
1049
1189
|
"name": "value",
|
|
1050
1190
|
"type": "number",
|
|
1051
|
-
"description": "- The new value",
|
|
1191
|
+
"description": "- The new value.",
|
|
1052
1192
|
"optional": false
|
|
1053
1193
|
}
|
|
1054
1194
|
],
|
|
1055
|
-
"returns": "A new TimeDurationData with the updated value",
|
|
1195
|
+
"returns": "A new TimeDurationData with the updated value.",
|
|
1056
1196
|
"tags": [
|
|
1057
1197
|
"date",
|
|
1058
1198
|
"duration",
|
|
@@ -1084,11 +1224,11 @@
|
|
|
1084
1224
|
{
|
|
1085
1225
|
"name": "input",
|
|
1086
1226
|
"type": "string",
|
|
1087
|
-
"description": "- The duration string to parse",
|
|
1227
|
+
"description": "- The duration string to parse.",
|
|
1088
1228
|
"optional": false
|
|
1089
1229
|
}
|
|
1090
1230
|
],
|
|
1091
|
-
"returns": "A TimeDurationData object with the parsed values",
|
|
1231
|
+
"returns": "A TimeDurationData object with the parsed values.",
|
|
1092
1232
|
"tags": [
|
|
1093
1233
|
"date",
|
|
1094
1234
|
"duration",
|
|
@@ -1120,11 +1260,11 @@
|
|
|
1120
1260
|
{
|
|
1121
1261
|
"name": "input",
|
|
1122
1262
|
"type": "string",
|
|
1123
|
-
"description": "- The duration string to parse",
|
|
1263
|
+
"description": "- The duration string to parse.",
|
|
1124
1264
|
"optional": false
|
|
1125
1265
|
}
|
|
1126
1266
|
],
|
|
1127
|
-
"returns": "Total milliseconds",
|
|
1267
|
+
"returns": "Total milliseconds.",
|
|
1128
1268
|
"tags": [
|
|
1129
1269
|
"date",
|
|
1130
1270
|
"duration",
|
|
@@ -1156,11 +1296,11 @@
|
|
|
1156
1296
|
{
|
|
1157
1297
|
"name": "data",
|
|
1158
1298
|
"type": "TimeDurationData",
|
|
1159
|
-
"description": "- The duration data to format",
|
|
1299
|
+
"description": "- The duration data to format.",
|
|
1160
1300
|
"optional": false
|
|
1161
1301
|
}
|
|
1162
1302
|
],
|
|
1163
|
-
"returns": "A compact duration string",
|
|
1303
|
+
"returns": "A compact duration string.",
|
|
1164
1304
|
"tags": [
|
|
1165
1305
|
"date",
|
|
1166
1306
|
"duration",
|
|
@@ -1191,11 +1331,11 @@
|
|
|
1191
1331
|
{
|
|
1192
1332
|
"name": "data",
|
|
1193
1333
|
"type": "TimeDurationData",
|
|
1194
|
-
"description": "- The duration data to format",
|
|
1334
|
+
"description": "- The duration data to format.",
|
|
1195
1335
|
"optional": false
|
|
1196
1336
|
}
|
|
1197
1337
|
],
|
|
1198
|
-
"returns": "A human-readable duration string",
|
|
1338
|
+
"returns": "A human-readable duration string.",
|
|
1199
1339
|
"tags": [
|
|
1200
1340
|
"date",
|
|
1201
1341
|
"duration",
|
|
@@ -1227,11 +1367,11 @@
|
|
|
1227
1367
|
{
|
|
1228
1368
|
"name": "span",
|
|
1229
1369
|
"type": "DateDurationSpan",
|
|
1230
|
-
"description": "-
|
|
1370
|
+
"description": "- Span whose end date should be computed.",
|
|
1231
1371
|
"optional": false
|
|
1232
1372
|
}
|
|
1233
1373
|
],
|
|
1234
|
-
"returns": "
|
|
1374
|
+
"returns": "Moment when the span ends.",
|
|
1235
1375
|
"tags": [
|
|
1236
1376
|
"date",
|
|
1237
1377
|
"duration",
|
|
@@ -1260,11 +1400,11 @@
|
|
|
1260
1400
|
{
|
|
1261
1401
|
"name": "span",
|
|
1262
1402
|
"type": "DateDurationSpan",
|
|
1263
|
-
"description": "-
|
|
1403
|
+
"description": "- Span to project onto a start/end date range.",
|
|
1264
1404
|
"optional": false
|
|
1265
1405
|
}
|
|
1266
1406
|
],
|
|
1267
|
-
"returns": "
|
|
1407
|
+
"returns": "Range from startsAt to startsAt + duration.",
|
|
1268
1408
|
"tags": [
|
|
1269
1409
|
"date",
|
|
1270
1410
|
"duration",
|
|
@@ -1292,11 +1432,11 @@
|
|
|
1292
1432
|
{
|
|
1293
1433
|
"name": "dateRange",
|
|
1294
1434
|
"type": "DateRange",
|
|
1295
|
-
"description": "-
|
|
1435
|
+
"description": "- Range to project onto a duration span.",
|
|
1296
1436
|
"optional": false
|
|
1297
1437
|
}
|
|
1298
1438
|
],
|
|
1299
|
-
"returns": "
|
|
1439
|
+
"returns": "Span anchored at the range's start with duration measured to its end.",
|
|
1300
1440
|
"tags": [
|
|
1301
1441
|
"date",
|
|
1302
1442
|
"duration",
|
|
@@ -1325,11 +1465,11 @@
|
|
|
1325
1465
|
{
|
|
1326
1466
|
"name": "inputConfig",
|
|
1327
1467
|
"type": "FormatDateRangeFunctionConfigInput",
|
|
1328
|
-
"description": "-
|
|
1468
|
+
"description": "- Format function or full configuration.",
|
|
1329
1469
|
"optional": false
|
|
1330
1470
|
}
|
|
1331
1471
|
],
|
|
1332
|
-
"returns": "
|
|
1472
|
+
"returns": "A reusable function that formats date ranges into strings.",
|
|
1333
1473
|
"tags": [
|
|
1334
1474
|
"date",
|
|
1335
1475
|
"format",
|
|
@@ -1358,23 +1498,23 @@
|
|
|
1358
1498
|
{
|
|
1359
1499
|
"name": "range",
|
|
1360
1500
|
"type": "DateRange",
|
|
1361
|
-
"description": "-
|
|
1501
|
+
"description": "- Date range to format.",
|
|
1362
1502
|
"optional": false
|
|
1363
1503
|
},
|
|
1364
1504
|
{
|
|
1365
1505
|
"name": "inputConfig",
|
|
1366
1506
|
"type": "FormatDateRangeFunctionConfigInput",
|
|
1367
|
-
"description": "-
|
|
1507
|
+
"description": "- Format function or full configuration.",
|
|
1368
1508
|
"optional": false
|
|
1369
1509
|
},
|
|
1370
1510
|
{
|
|
1371
1511
|
"name": "separator",
|
|
1372
1512
|
"type": "string",
|
|
1373
|
-
"description": "-
|
|
1513
|
+
"description": "- Optional separator override when inputConfig is a function.",
|
|
1374
1514
|
"optional": true
|
|
1375
1515
|
}
|
|
1376
1516
|
],
|
|
1377
|
-
"returns": "
|
|
1517
|
+
"returns": "The formatted date range string.",
|
|
1378
1518
|
"tags": [
|
|
1379
1519
|
"date",
|
|
1380
1520
|
"format",
|
|
@@ -1402,17 +1542,17 @@
|
|
|
1402
1542
|
{
|
|
1403
1543
|
"name": "range",
|
|
1404
1544
|
"type": "DateRange",
|
|
1405
|
-
"description": "-
|
|
1545
|
+
"description": "- Date range to compute distance for.",
|
|
1406
1546
|
"optional": false
|
|
1407
1547
|
},
|
|
1408
1548
|
{
|
|
1409
1549
|
"name": "inputConfig",
|
|
1410
1550
|
"type": "FormatDateRangeDistanceFunctionConfig",
|
|
1411
|
-
"description": "-
|
|
1551
|
+
"description": "- Optional distance formatting configuration.",
|
|
1412
1552
|
"optional": true
|
|
1413
1553
|
}
|
|
1414
1554
|
],
|
|
1415
|
-
"returns": "
|
|
1555
|
+
"returns": "The human-readable distance string.",
|
|
1416
1556
|
"tags": [
|
|
1417
1557
|
"date",
|
|
1418
1558
|
"format",
|
|
@@ -1489,11 +1629,11 @@
|
|
|
1489
1629
|
{
|
|
1490
1630
|
"name": "dateRange",
|
|
1491
1631
|
"type": "DateRange",
|
|
1492
|
-
"description": "-
|
|
1632
|
+
"description": "- Range to measure.",
|
|
1493
1633
|
"optional": false
|
|
1494
1634
|
}
|
|
1495
1635
|
],
|
|
1496
|
-
"returns": "
|
|
1636
|
+
"returns": "Inclusive count of calendar days covered by the range.",
|
|
1497
1637
|
"tags": [
|
|
1498
1638
|
"date",
|
|
1499
1639
|
"range",
|
|
@@ -1523,11 +1663,11 @@
|
|
|
1523
1663
|
{
|
|
1524
1664
|
"name": "input",
|
|
1525
1665
|
"type": "unknown",
|
|
1526
|
-
"description": "-
|
|
1666
|
+
"description": "- The value to check.",
|
|
1527
1667
|
"optional": false
|
|
1528
1668
|
}
|
|
1529
1669
|
],
|
|
1530
|
-
"returns": "
|
|
1670
|
+
"returns": "True if the value has valid Date `start` and `end` properties.",
|
|
1531
1671
|
"tags": [
|
|
1532
1672
|
"date",
|
|
1533
1673
|
"range",
|
|
@@ -1556,17 +1696,17 @@
|
|
|
1556
1696
|
{
|
|
1557
1697
|
"name": "a",
|
|
1558
1698
|
"type": "Maybe<Partial<DateRange>>",
|
|
1559
|
-
"description": "-
|
|
1699
|
+
"description": "- First date range to compare.",
|
|
1560
1700
|
"optional": false
|
|
1561
1701
|
},
|
|
1562
1702
|
{
|
|
1563
1703
|
"name": "b",
|
|
1564
1704
|
"type": "Maybe<Partial<DateRange>>",
|
|
1565
|
-
"description": "-
|
|
1705
|
+
"description": "- Second date range to compare.",
|
|
1566
1706
|
"optional": false
|
|
1567
1707
|
}
|
|
1568
1708
|
],
|
|
1569
|
-
"returns": "
|
|
1709
|
+
"returns": "True if both ranges are equal or both are nullish.",
|
|
1570
1710
|
"tags": [
|
|
1571
1711
|
"date",
|
|
1572
1712
|
"range",
|
|
@@ -1596,11 +1736,11 @@
|
|
|
1596
1736
|
{
|
|
1597
1737
|
"name": "input",
|
|
1598
1738
|
"type": "unknown",
|
|
1599
|
-
"description": "-
|
|
1739
|
+
"description": "- Value to check.",
|
|
1600
1740
|
"optional": false
|
|
1601
1741
|
}
|
|
1602
1742
|
],
|
|
1603
|
-
"returns": "
|
|
1743
|
+
"returns": "Whether the input is a Date.",
|
|
1604
1744
|
"tags": [
|
|
1605
1745
|
"date",
|
|
1606
1746
|
"type-guard",
|
|
@@ -1624,11 +1764,11 @@
|
|
|
1624
1764
|
{
|
|
1625
1765
|
"name": "milliseconds",
|
|
1626
1766
|
"type": "number",
|
|
1627
|
-
"description": "-
|
|
1767
|
+
"description": "- Duration in milliseconds.",
|
|
1628
1768
|
"optional": false
|
|
1629
1769
|
}
|
|
1630
1770
|
],
|
|
1631
|
-
"returns": "
|
|
1771
|
+
"returns": "Equivalent duration in minutes.",
|
|
1632
1772
|
"tags": [
|
|
1633
1773
|
"date",
|
|
1634
1774
|
"time",
|
|
@@ -1660,11 +1800,11 @@
|
|
|
1660
1800
|
{
|
|
1661
1801
|
"name": "milliseconds",
|
|
1662
1802
|
"type": "number",
|
|
1663
|
-
"description": "-
|
|
1803
|
+
"description": "- Duration in milliseconds.",
|
|
1664
1804
|
"optional": false
|
|
1665
1805
|
}
|
|
1666
1806
|
],
|
|
1667
|
-
"returns": "
|
|
1807
|
+
"returns": "Equivalent duration in seconds.",
|
|
1668
1808
|
"tags": [
|
|
1669
1809
|
"date",
|
|
1670
1810
|
"time",
|
|
@@ -1696,11 +1836,11 @@
|
|
|
1696
1836
|
{
|
|
1697
1837
|
"name": "hours",
|
|
1698
1838
|
"type": "number",
|
|
1699
|
-
"description": "-
|
|
1839
|
+
"description": "- Number of hours (defaults to 1)",
|
|
1700
1840
|
"optional": true
|
|
1701
1841
|
}
|
|
1702
1842
|
],
|
|
1703
|
-
"returns": "
|
|
1843
|
+
"returns": "Equivalent duration in milliseconds.",
|
|
1704
1844
|
"tags": [
|
|
1705
1845
|
"date",
|
|
1706
1846
|
"time",
|
|
@@ -1731,11 +1871,11 @@
|
|
|
1731
1871
|
{
|
|
1732
1872
|
"name": "minutes",
|
|
1733
1873
|
"type": "number",
|
|
1734
|
-
"description": "-
|
|
1874
|
+
"description": "- Number of minutes (defaults to 1)",
|
|
1735
1875
|
"optional": true
|
|
1736
1876
|
}
|
|
1737
1877
|
],
|
|
1738
|
-
"returns": "
|
|
1878
|
+
"returns": "Equivalent duration in milliseconds.",
|
|
1739
1879
|
"tags": [
|
|
1740
1880
|
"date",
|
|
1741
1881
|
"time",
|
|
@@ -1766,11 +1906,11 @@
|
|
|
1766
1906
|
{
|
|
1767
1907
|
"name": "days",
|
|
1768
1908
|
"type": "number",
|
|
1769
|
-
"description": "-
|
|
1909
|
+
"description": "- Number of days (defaults to 1)",
|
|
1770
1910
|
"optional": true
|
|
1771
1911
|
}
|
|
1772
1912
|
],
|
|
1773
|
-
"returns": "
|
|
1913
|
+
"returns": "Equivalent duration in minutes.",
|
|
1774
1914
|
"tags": [
|
|
1775
1915
|
"date",
|
|
1776
1916
|
"time",
|
|
@@ -1800,11 +1940,11 @@
|
|
|
1800
1940
|
{
|
|
1801
1941
|
"name": "date",
|
|
1802
1942
|
"type": "Date",
|
|
1803
|
-
"description": "-
|
|
1943
|
+
"description": "- Date to check.",
|
|
1804
1944
|
"optional": false
|
|
1805
1945
|
}
|
|
1806
1946
|
],
|
|
1807
|
-
"returns": "
|
|
1947
|
+
"returns": "Whether the date is the max future sentinel.",
|
|
1808
1948
|
"tags": [
|
|
1809
1949
|
"date",
|
|
1810
1950
|
"sentinel",
|
|
@@ -1833,11 +1973,11 @@
|
|
|
1833
1973
|
{
|
|
1834
1974
|
"name": "time",
|
|
1835
1975
|
"type": "Date",
|
|
1836
|
-
"description": "-
|
|
1976
|
+
"description": "- Date to truncate (defaults to now)",
|
|
1837
1977
|
"optional": true
|
|
1838
1978
|
}
|
|
1839
1979
|
],
|
|
1840
|
-
"returns": "
|
|
1980
|
+
"returns": "Date rounded down to the start of the minute.",
|
|
1841
1981
|
"tags": [
|
|
1842
1982
|
"date",
|
|
1843
1983
|
"minute",
|
|
@@ -1863,11 +2003,11 @@
|
|
|
1863
2003
|
{
|
|
1864
2004
|
"name": "input",
|
|
1865
2005
|
"type": "DateOrDateString",
|
|
1866
|
-
"description": "-
|
|
2006
|
+
"description": "- Date or date string to convert.",
|
|
1867
2007
|
"optional": false
|
|
1868
2008
|
}
|
|
1869
2009
|
],
|
|
1870
|
-
"returns": "
|
|
2010
|
+
"returns": "The ISO 8601 string representation.",
|
|
1871
2011
|
"tags": [
|
|
1872
2012
|
"date",
|
|
1873
2013
|
"iso",
|
|
@@ -1895,7 +2035,7 @@
|
|
|
1895
2035
|
"signature": "guessCurrentTimezone(): TimezoneString | undefined",
|
|
1896
2036
|
"description": "Guesses the current system's timezone using the Intl API.",
|
|
1897
2037
|
"params": [],
|
|
1898
|
-
"returns": "
|
|
2038
|
+
"returns": "The IANA timezone string (e.g. \"America/Chicago\"), or undefined if detection fails.",
|
|
1899
2039
|
"tags": [
|
|
1900
2040
|
"date",
|
|
1901
2041
|
"timezone",
|
|
@@ -1921,7 +2061,7 @@
|
|
|
1921
2061
|
"signature": "requireCurrentTimezone(): TimezoneString",
|
|
1922
2062
|
"description": "Returns the current system's timezone, throwing if detection fails.\n\nConvenience wrapper around {@link guessCurrentTimezone} for contexts where a timezone is required.",
|
|
1923
2063
|
"params": [],
|
|
1924
|
-
"returns": "
|
|
2064
|
+
"returns": "The IANA timezone string.",
|
|
1925
2065
|
"tags": [
|
|
1926
2066
|
"date",
|
|
1927
2067
|
"timezone",
|
|
@@ -1950,11 +2090,11 @@
|
|
|
1950
2090
|
{
|
|
1951
2091
|
"name": "input",
|
|
1952
2092
|
"type": "Maybe<DateOrDateString | UTCDateString>",
|
|
1953
|
-
"description": "-
|
|
2093
|
+
"description": "- Date, date string, or null/undefined.",
|
|
1954
2094
|
"optional": false
|
|
1955
2095
|
}
|
|
1956
2096
|
],
|
|
1957
|
-
"returns": "
|
|
2097
|
+
"returns": "The parsed Date or undefined if input was nullish.",
|
|
1958
2098
|
"tags": [
|
|
1959
2099
|
"date",
|
|
1960
2100
|
"parse",
|
|
@@ -1985,11 +2125,11 @@
|
|
|
1985
2125
|
{
|
|
1986
2126
|
"name": "input",
|
|
1987
2127
|
"type": "DateOrDateString | UTCDateString | UnixDateTimeMillisecondsNumber",
|
|
1988
|
-
"description": "-
|
|
2128
|
+
"description": "- Value to convert.",
|
|
1989
2129
|
"optional": false
|
|
1990
2130
|
}
|
|
1991
2131
|
],
|
|
1992
|
-
"returns": "
|
|
2132
|
+
"returns": "The parsed Date.",
|
|
1993
2133
|
"tags": [
|
|
1994
2134
|
"date",
|
|
1995
2135
|
"parse",
|
|
@@ -2022,11 +2162,11 @@
|
|
|
2022
2162
|
{
|
|
2023
2163
|
"name": "input",
|
|
2024
2164
|
"type": "ISO8601DateString | UTCDateString | UnixDateTimeMillisecondsNumber",
|
|
2025
|
-
"description": "- ISO 8601 string, UTC date string, or unix milliseconds",
|
|
2165
|
+
"description": "- ISO 8601 string, UTC date string, or unix milliseconds.",
|
|
2026
2166
|
"optional": false
|
|
2027
2167
|
}
|
|
2028
2168
|
],
|
|
2029
|
-
"returns": "
|
|
2169
|
+
"returns": "The parsed Date, or undefined if invalid.",
|
|
2030
2170
|
"tags": [
|
|
2031
2171
|
"date",
|
|
2032
2172
|
"parse",
|
|
@@ -2326,11 +2466,11 @@
|
|
|
2326
2466
|
{
|
|
2327
2467
|
"name": "date",
|
|
2328
2468
|
"type": "Date",
|
|
2329
|
-
"description": "-
|
|
2469
|
+
"description": "- Moment to round; defaults to the current date/time.",
|
|
2330
2470
|
"optional": true
|
|
2331
2471
|
}
|
|
2332
2472
|
],
|
|
2333
|
-
"returns": "the
|
|
2473
|
+
"returns": "Copy of the input with seconds and milliseconds set to zero.",
|
|
2334
2474
|
"tags": [
|
|
2335
2475
|
"date",
|
|
2336
2476
|
"round",
|
|
@@ -2362,11 +2502,11 @@
|
|
|
2362
2502
|
{
|
|
2363
2503
|
"name": "date",
|
|
2364
2504
|
"type": "Date",
|
|
2365
|
-
"description": "-
|
|
2505
|
+
"description": "- Moment to round; defaults to the current date/time.",
|
|
2366
2506
|
"optional": true
|
|
2367
2507
|
}
|
|
2368
2508
|
],
|
|
2369
|
-
"returns": "the
|
|
2509
|
+
"returns": "Copy of the input with minutes, seconds, and milliseconds set to zero.",
|
|
2370
2510
|
"tags": [
|
|
2371
2511
|
"date",
|
|
2372
2512
|
"round",
|