@tmlmobilidade/go-types-shared 20261104.2315.12 → 20261105.1522.39

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.
@@ -1,6 +1,7 @@
1
1
  export * from './calendar-date.js';
2
2
  export * from './date-format.js';
3
3
  export * from './interval.js';
4
+ export * from './months.js';
4
5
  export * from './operational-date-int.js';
5
6
  export * from './operational-date.js';
6
7
  export * from './operational-time.js';
@@ -8,3 +9,4 @@ export * from './time-slot.js';
8
9
  export * from './timezone-identified.js';
9
10
  export * from './unix-millis.js';
10
11
  export * from './unix-seconds.js';
12
+ export * from './weekdays.js';
@@ -1,6 +1,7 @@
1
1
  export * from './calendar-date.js';
2
2
  export * from './date-format.js';
3
3
  export * from './interval.js';
4
+ export * from './months.js';
4
5
  export * from './operational-date-int.js';
5
6
  export * from './operational-date.js';
6
7
  export * from './operational-time.js';
@@ -8,3 +9,4 @@ export * from './time-slot.js';
8
9
  export * from './timezone-identified.js';
9
10
  export * from './unix-millis.js';
10
11
  export * from './unix-seconds.js';
12
+ export * from './weekdays.js';
@@ -0,0 +1,15 @@
1
+ export type Month = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
2
+ export declare const MONTHS: {
3
+ readonly Apr: 4;
4
+ readonly Aug: 8;
5
+ readonly Dec: 12;
6
+ readonly Feb: 2;
7
+ readonly Jan: 1;
8
+ readonly Jul: 7;
9
+ readonly Jun: 6;
10
+ readonly Mar: 3;
11
+ readonly May: 5;
12
+ readonly Nov: 11;
13
+ readonly Oct: 10;
14
+ readonly Sep: 9;
15
+ };
@@ -0,0 +1,15 @@
1
+ /* * */
2
+ export const MONTHS = {
3
+ Apr: 4,
4
+ Aug: 8,
5
+ Dec: 12,
6
+ Feb: 2,
7
+ Jan: 1,
8
+ Jul: 7,
9
+ Jun: 6,
10
+ Mar: 3,
11
+ May: 5,
12
+ Nov: 11,
13
+ Oct: 10,
14
+ Sep: 9,
15
+ };
@@ -0,0 +1,10 @@
1
+ export type IsoWeekday = 1 | 2 | 3 | 4 | 5 | 6 | 7;
2
+ export declare const WEEKDAYS: {
3
+ readonly Fri: 5;
4
+ readonly Mon: 1;
5
+ readonly Sat: 6;
6
+ readonly Sun: 7;
7
+ readonly Thu: 4;
8
+ readonly Tue: 2;
9
+ readonly Wed: 3;
10
+ };
@@ -0,0 +1,10 @@
1
+ /* * */
2
+ export const WEEKDAYS = {
3
+ Fri: 5,
4
+ Mon: 1,
5
+ Sat: 6,
6
+ Sun: 7,
7
+ Thu: 4,
8
+ Tue: 2,
9
+ Wed: 3,
10
+ };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './api/index.js';
2
2
  export * from './conditions/index.js';
3
3
  export * from './datetime/index.js';
4
4
  export * from './documents/index.js';
5
+ export * from './modules/index.js';
5
6
  export * from './numbers/index.js';
6
7
  export * from './status/index.js';
7
8
  export * from './theme/index.js';
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@ export * from './api/index.js';
2
2
  export * from './conditions/index.js';
3
3
  export * from './datetime/index.js';
4
4
  export * from './documents/index.js';
5
+ export * from './modules/index.js';
5
6
  export * from './numbers/index.js';
6
7
  export * from './status/index.js';
7
8
  export * from './theme/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './module-id.js';
2
+ export * from './module-scope.js';
@@ -0,0 +1,2 @@
1
+ export * from './module-id.js';
2
+ export * from './module-scope.js';
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ export declare const ModuleIdValues: readonly ["apex", "core", "dates", "exporter", "hub", "infrastructure", "offer", "operation", "performance", "tracker"];
3
+ export declare const ModuleIdSchema: z.ZodEnum<["apex", "core", "dates", "exporter", "hub", "infrastructure", "offer", "operation", "performance", "tracker"]>;
4
+ export type ModuleId = z.infer<typeof ModuleIdSchema>;
@@ -0,0 +1,5 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ /* * */
4
+ export const ModuleIdValues = ['apex', 'core', 'dates', 'exporter', 'hub', 'infrastructure', 'offer', 'operation', 'performance', 'tracker'];
5
+ export const ModuleIdSchema = z.enum(ModuleIdValues);
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ export declare const ModuleScopeSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ type: z.ZodLiteral<"platform">;
4
+ }, "strict", z.ZodTypeAny, {
5
+ type: "platform";
6
+ }, {
7
+ type: "platform";
8
+ }>, z.ZodObject<{
9
+ module_ids: z.ZodEffects<z.ZodArray<z.ZodEnum<["apex", "core", "dates", "exporter", "hub", "infrastructure", "offer", "operation", "performance", "tracker"]>, "atleastone">, ["apex" | "core" | "dates" | "exporter" | "hub" | "infrastructure" | "offer" | "operation" | "performance" | "tracker", ...("apex" | "core" | "dates" | "exporter" | "hub" | "infrastructure" | "offer" | "operation" | "performance" | "tracker")[]], ["apex" | "core" | "dates" | "exporter" | "hub" | "infrastructure" | "offer" | "operation" | "performance" | "tracker", ...("apex" | "core" | "dates" | "exporter" | "hub" | "infrastructure" | "offer" | "operation" | "performance" | "tracker")[]]>;
10
+ type: z.ZodLiteral<"modules">;
11
+ }, "strict", z.ZodTypeAny, {
12
+ type: "modules";
13
+ module_ids: ["apex" | "core" | "dates" | "exporter" | "hub" | "infrastructure" | "offer" | "operation" | "performance" | "tracker", ...("apex" | "core" | "dates" | "exporter" | "hub" | "infrastructure" | "offer" | "operation" | "performance" | "tracker")[]];
14
+ }, {
15
+ type: "modules";
16
+ module_ids: ["apex" | "core" | "dates" | "exporter" | "hub" | "infrastructure" | "offer" | "operation" | "performance" | "tracker", ...("apex" | "core" | "dates" | "exporter" | "hub" | "infrastructure" | "offer" | "operation" | "performance" | "tracker")[]];
17
+ }>]>;
18
+ export type ModuleScope = z.infer<typeof ModuleScopeSchema>;
@@ -0,0 +1,10 @@
1
+ import { z } from 'zod';
2
+ import { ModuleIdSchema } from './module-id.js';
3
+ /* * */
4
+ export const ModuleScopeSchema = z.discriminatedUnion('type', [
5
+ z.object({ type: z.literal('platform') }).strict(),
6
+ z.object({
7
+ module_ids: z.array(ModuleIdSchema).nonempty().refine(ids => new Set(ids).size === ids.length, 'Module IDs must be unique'),
8
+ type: z.literal('modules'),
9
+ }).strict(),
10
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/go-types-shared",
3
- "version": "20261104.2315.12",
3
+ "version": "20261105.1522.39",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"