@tmlmobilidade/go-types-extractions 20260914.1727.46

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.
Files changed (63) hide show
  1. package/dist/create.d.ts +156 -0
  2. package/dist/create.js +11 -0
  3. package/dist/extraction.d.ts +264 -0
  4. package/dist/extraction.js +11 -0
  5. package/dist/index.d.ts +5 -0
  6. package/dist/index.js +5 -0
  7. package/dist/modules/index.d.ts +3 -0
  8. package/dist/modules/index.js +3 -0
  9. package/dist/modules/infrastructure/index.d.ts +1 -0
  10. package/dist/modules/infrastructure/index.js +1 -0
  11. package/dist/modules/infrastructure/stops/index.d.ts +1 -0
  12. package/dist/modules/infrastructure/stops/index.js +1 -0
  13. package/dist/modules/infrastructure/stops/v1/create.d.ts +26 -0
  14. package/dist/modules/infrastructure/stops/v1/create.js +9 -0
  15. package/dist/modules/infrastructure/stops/v1/extraction.d.ts +62 -0
  16. package/dist/modules/infrastructure/stops/v1/extraction.js +6 -0
  17. package/dist/modules/infrastructure/stops/v1/index.d.ts +4 -0
  18. package/dist/modules/infrastructure/stops/v1/index.js +4 -0
  19. package/dist/modules/infrastructure/stops/v1/properties.d.ts +9 -0
  20. package/dist/modules/infrastructure/stops/v1/properties.js +6 -0
  21. package/dist/modules/infrastructure/stops/v1/version.d.ts +4 -0
  22. package/dist/modules/infrastructure/stops/v1/version.js +5 -0
  23. package/dist/modules/offer/gtfs/index.d.ts +1 -0
  24. package/dist/modules/offer/gtfs/index.js +1 -0
  25. package/dist/modules/offer/gtfs/v29/create.d.ts +92 -0
  26. package/dist/modules/offer/gtfs/v29/create.js +9 -0
  27. package/dist/modules/offer/gtfs/v29/extraction.d.ts +128 -0
  28. package/dist/modules/offer/gtfs/v29/extraction.js +6 -0
  29. package/dist/modules/offer/gtfs/v29/index.d.ts +4 -0
  30. package/dist/modules/offer/gtfs/v29/index.js +4 -0
  31. package/dist/modules/offer/gtfs/v29/properties.d.ts +47 -0
  32. package/dist/modules/offer/gtfs/v29/properties.js +17 -0
  33. package/dist/modules/offer/gtfs/v29/version.d.ts +4 -0
  34. package/dist/modules/offer/gtfs/v29/version.js +5 -0
  35. package/dist/modules/offer/index.d.ts +1 -0
  36. package/dist/modules/offer/index.js +1 -0
  37. package/dist/modules/operation/index.d.ts +1 -0
  38. package/dist/modules/operation/index.js +1 -0
  39. package/dist/modules/operation/rides/index.d.ts +1 -0
  40. package/dist/modules/operation/rides/index.js +1 -0
  41. package/dist/modules/operation/rides/v1/create.d.ts +44 -0
  42. package/dist/modules/operation/rides/v1/create.js +9 -0
  43. package/dist/modules/operation/rides/v1/extraction.d.ts +80 -0
  44. package/dist/modules/operation/rides/v1/extraction.js +6 -0
  45. package/dist/modules/operation/rides/v1/index.d.ts +4 -0
  46. package/dist/modules/operation/rides/v1/index.js +4 -0
  47. package/dist/modules/operation/rides/v1/properties.d.ts +19 -0
  48. package/dist/modules/operation/rides/v1/properties.js +11 -0
  49. package/dist/modules/operation/rides/v1/version.d.ts +4 -0
  50. package/dist/modules/operation/rides/v1/version.js +5 -0
  51. package/dist/shared/base-create.d.ts +9 -0
  52. package/dist/shared/base-create.js +6 -0
  53. package/dist/shared/base.d.ts +41 -0
  54. package/dist/shared/base.js +10 -0
  55. package/dist/shared/index.d.ts +4 -0
  56. package/dist/shared/index.js +4 -0
  57. package/dist/shared/task-context.d.ts +12 -0
  58. package/dist/shared/task-context.js +7 -0
  59. package/dist/shared/task-result.d.ts +3 -0
  60. package/dist/shared/task-result.js +4 -0
  61. package/dist/version.d.ts +4 -0
  62. package/dist/version.js +12 -0
  63. package/package.json +49 -0
@@ -0,0 +1,7 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ /* * */
4
+ export const ExtractionTaskContextSchema = z.object({
5
+ attachment_name: z.string(),
6
+ output_path: z.string(),
7
+ });
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const ExtractionTaskResultSchema: z.ZodUndefined;
3
+ export type ExtractionTaskResult = z.infer<typeof ExtractionTaskResultSchema>;
@@ -0,0 +1,4 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ /* * */
4
+ export const ExtractionTaskResultSchema = z.undefined();
@@ -0,0 +1,4 @@
1
+ import { z } from 'zod';
2
+ export declare const ExtractionVersionValues: readonly ["infrastructure-stops-v1", "offer-gtfs-v29", "operation-rides-v1"];
3
+ export declare const ExtractionVersionSchema: z.ZodEnum<["infrastructure-stops-v1", "offer-gtfs-v29", "operation-rides-v1"]>;
4
+ export type ExtractionVersion = z.infer<typeof ExtractionVersionSchema>;
@@ -0,0 +1,12 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ import { InfrastructureStopsV1ExtractionVersionValue } from './modules/infrastructure/stops/v1/version.js';
4
+ import { OfferGtfsV29ExtractionVersionValue } from './modules/offer/gtfs/v29/version.js';
5
+ import { OperationRidesV1ExtractionVersionValue } from './modules/operation/rides/v1/version.js';
6
+ /* * */
7
+ export const ExtractionVersionValues = [
8
+ InfrastructureStopsV1ExtractionVersionValue,
9
+ OfferGtfsV29ExtractionVersionValue,
10
+ OperationRidesV1ExtractionVersionValue,
11
+ ];
12
+ export const ExtractionVersionSchema = z.enum(ExtractionVersionValues);
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@tmlmobilidade/go-types-extractions",
3
+ "version": "20260914.1727.46",
4
+ "author": {
5
+ "email": "iso@tmlmobilidade.pt",
6
+ "name": "TML-ISO"
7
+ },
8
+ "license": "AGPL-3.0-or-later",
9
+ "homepage": "https://go.tmlmobilidade.pt",
10
+ "bugs": {
11
+ "url": "https://github.com/tmlmobilidade/go/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/tmlmobilidade/go.git"
16
+ },
17
+ "keywords": [
18
+ "public transit",
19
+ "tml",
20
+ "transportes metropolitanos de lisboa",
21
+ "go"
22
+ ],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "type": "module",
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "main": "./dist/index.js",
31
+ "types": "./dist/index.d.ts",
32
+ "scripts": {
33
+ "build": "tsc && resolve-tspaths",
34
+ "lint": "eslint ./src/ && tsc --noEmit",
35
+ "lint:fix": "eslint ./src/ --fix",
36
+ "watch": "tsc-watch --onSuccess 'resolve-tspaths'"
37
+ },
38
+ "dependencies": {
39
+ "@tmlmobilidade/go-types-shared": "*",
40
+ "zod": "3.25.76"
41
+ },
42
+ "devDependencies": {
43
+ "@tmlmobilidade/go-utils-tsconfig": "*",
44
+ "@types/node": "26.4.0",
45
+ "resolve-tspaths": "0.8.23",
46
+ "tsc-watch": "7.2.1",
47
+ "typescript": "6.0.3"
48
+ }
49
+ }