@qingwu-ui/holiday-data 1.0.0 → 1.1.0

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/dist/index.d.cts CHANGED
@@ -17,6 +17,8 @@ interface HolidayYear {
17
17
  updatedAt: string;
18
18
  sources: DataSource[];
19
19
  days: HolidayDay[];
20
+ /** 非空时表示仅部分收录;未列出的日期不能据此认定为工作日。 */
21
+ missingHolidays?: string[];
20
22
  }
21
23
  interface SourcedText {
22
24
  text: string;
@@ -40,6 +42,11 @@ interface HolidayData {
40
42
  updatedAt: string;
41
43
  years: HolidayYear[];
42
44
  festivals: FestivalRecord[];
45
+ coverage?: {
46
+ startYear: number;
47
+ endYear: number;
48
+ missingYears: number[];
49
+ };
43
50
  }
44
51
  declare function isISODate(value: unknown): value is string;
45
52
  declare function validateHolidayYear(value: unknown): asserts value is HolidayYear;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/schema.d.ts","../src/index.ts"],"mappings":";;UACiB;EACb;EACA;EACA;EACA;;UAEa;EACb;EACA;EACA;;UAEa;EACb;EACA;EACA;EACA,SAAS;EACT,MAAM;;UAEO;EACb;EACA,SAAS;;UAEI;EACb;EACA;EACA;IACI;IACA;IACA;IACA;;EAEJ,aAAa;EACb,QAAQ;EACR,SAAS;;UAEI;EACb;EACA;EACA,OAAO;EACP,WAAW;;iBAES,UAAU,iBAAiB;iBAC3B,oBAAoB,yBAAyB,SAAS;iBACtD,oBAAoB,yBAAyB,SAAS;;iBAEtD,iBAAiB,iBAAiB;iBAClC,iBAAiB,MAAM,aAAa,QAAQ,cAAc,cAAc;;;cC3CnF,aAAA;iBACG,eAAe,eAAf"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/schema.ts","../src/index.ts"],"mappings":";;UACiB;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,SAAS;EACT,MAAM;;EAEN;;UAGe;EACf;EACA,SAAS;;UAGM;EACf;EACA;EACA;IACE;IACA;IACA;IACA;;EAEF,aAAa;EACb,QAAQ;EACR,SAAS;;UAGM;EACf;EACA;EACA,OAAO;EACP,WAAW;EACX;IAAa;IAAmB;IAAiB;;;iBAGnC,UAAU,iBAAiB;iBAwC3B,oBAAoB,yBAAyB,SAAS;iBAmCtD,oBAAoB,yBAAyB,SAAS;;iBAmEtD,iBAAiB,iBAAiB;iBASlC,iBACd,MAAM,aACN,QAAQ,cAAc,cACrB;;;cCzMU,aAAA;iBACG,eAAe,eAAf"}
package/dist/index.d.mts CHANGED
@@ -17,6 +17,8 @@ interface HolidayYear {
17
17
  updatedAt: string;
18
18
  sources: DataSource[];
19
19
  days: HolidayDay[];
20
+ /** 非空时表示仅部分收录;未列出的日期不能据此认定为工作日。 */
21
+ missingHolidays?: string[];
20
22
  }
21
23
  interface SourcedText {
22
24
  text: string;
@@ -40,6 +42,11 @@ interface HolidayData {
40
42
  updatedAt: string;
41
43
  years: HolidayYear[];
42
44
  festivals: FestivalRecord[];
45
+ coverage?: {
46
+ startYear: number;
47
+ endYear: number;
48
+ missingYears: number[];
49
+ };
43
50
  }
44
51
  declare function isISODate(value: unknown): value is string;
45
52
  declare function validateHolidayYear(value: unknown): asserts value is HolidayYear;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/schema.ts","../src/index.ts"],"mappings":";;UACiB;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,SAAS;EACT,MAAM;;UAGS;EACf;EACA,SAAS;;UAGM;EACf;EACA;EACA;IACE;IACA;IACA;IACA;;EAEF,aAAa;EACb,QAAQ;EACR,SAAS;;UAGM;EACf;EACA;EACA,OAAO;EACP,WAAW;;iBAGG,UAAU,iBAAiB;iBAwC3B,oBAAoB,yBAAyB,SAAS;iBA2BtD,oBAAoB,yBAAyB,SAAS;;iBAiDtD,iBAAiB,iBAAiB;iBASlC,iBACd,MAAM,aACN,QAAQ,cAAc,cACrB;;;cC5KU,aAAA;iBACG,eAAe,eAAf"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/schema.ts","../src/index.ts"],"mappings":";;UACiB;EACf;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,SAAS;EACT,MAAM;;EAEN;;UAGe;EACf;EACA,SAAS;;UAGM;EACf;EACA;EACA;IACE;IACA;IACA;IACA;;EAEF,aAAa;EACb,QAAQ;EACR,SAAS;;UAGM;EACf;EACA;EACA,OAAO;EACP,WAAW;EACX;IAAa;IAAmB;IAAiB;;;iBAGnC,UAAU,iBAAiB;iBAwC3B,oBAAoB,yBAAyB,SAAS;iBAmCtD,oBAAoB,yBAAyB,SAAS;;iBAmEtD,iBAAiB,iBAAiB;iBASlC,iBACd,MAAM,aACN,QAAQ,cAAc,cACrB;;;cCzMU,aAAA;iBACG,eAAe,eAAf"}