@ms-cloudpack/api-server 0.60.0 → 0.60.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.
Files changed (42) hide show
  1. package/lib/data/busSources.d.ts +18 -292
  2. package/lib/data/busSources.d.ts.map +1 -1
  3. package/lib/index.d.ts +2 -1
  4. package/lib/index.d.ts.map +1 -1
  5. package/lib/index.js +1 -1
  6. package/lib/index.js.map +1 -1
  7. package/lib/types/TaskDescription.d.ts +14 -224
  8. package/lib/types/TaskDescription.d.ts.map +1 -1
  9. package/lib/types/TaskDescription.js +2 -2
  10. package/lib/types/TaskDescription.js.map +1 -1
  11. package/lib/types/TaskEndDescription.d.ts +14 -224
  12. package/lib/types/TaskEndDescription.d.ts.map +1 -1
  13. package/lib/types/TaskList.d.ts +18 -292
  14. package/lib/types/TaskList.d.ts.map +1 -1
  15. package/lib/types/TaskMessage.d.ts +11 -108
  16. package/lib/types/TaskMessage.d.ts.map +1 -1
  17. package/lib/types/TaskMessage.js +3 -2
  18. package/lib/types/TaskMessage.js.map +1 -1
  19. package/lib/types/TaskMessageLocation.d.ts +6 -13
  20. package/lib/types/TaskMessageLocation.d.ts.map +1 -1
  21. package/lib/types/TaskMessageLocation.js +2 -1
  22. package/lib/types/TaskMessageLocation.js.map +1 -1
  23. package/lib/utilities/matchingZodObject.d.ts +4 -0
  24. package/lib/utilities/matchingZodObject.d.ts.map +1 -1
  25. package/lib/utilities/matchingZodObject.js +4 -0
  26. package/lib/utilities/matchingZodObject.js.map +1 -1
  27. package/lib/utilities/writeStubForDensityEntries.d.ts.map +1 -1
  28. package/lib/utilities/writeStubForDensityEntries.js +2 -1
  29. package/lib/utilities/writeStubForDensityEntries.js.map +1 -1
  30. package/package.json +1 -1
  31. package/lib/types/TaskResponse.d.ts +0 -337
  32. package/lib/types/TaskResponse.d.ts.map +0 -1
  33. package/lib/types/TaskResponse.js +0 -8
  34. package/lib/types/TaskResponse.js.map +0 -1
  35. package/lib/types/TaskResult.d.ts +0 -233
  36. package/lib/types/TaskResult.d.ts.map +0 -1
  37. package/lib/types/TaskResult.js +0 -7
  38. package/lib/types/TaskResult.js.map +0 -1
  39. package/lib/types/Timings.d.ts +0 -20
  40. package/lib/types/Timings.d.ts.map +0 -1
  41. package/lib/types/Timings.js +0 -5
  42. package/lib/types/Timings.js.map +0 -1
@@ -1,112 +1,15 @@
1
1
  import z from 'zod';
2
+ import type { BundleMessage, BundleMessageNote } from '@ms-cloudpack/common-types';
3
+ export type TaskNote = BundleMessageNote;
2
4
  export declare const ZodTaskNote: z.ZodObject<{
3
- text: z.ZodString;
4
- location: z.ZodOptional<z.ZodObject<{
5
- file: z.ZodString;
6
- line: z.ZodOptional<z.ZodNumber>;
7
- column: z.ZodOptional<z.ZodNumber>;
8
- }, "strip", z.ZodTypeAny, {
9
- file: string;
10
- line?: number | undefined;
11
- column?: number | undefined;
12
- }, {
13
- file: string;
14
- line?: number | undefined;
15
- column?: number | undefined;
16
- }>>;
17
- }, "strip", z.ZodTypeAny, {
18
- text: string;
19
- location?: {
20
- file: string;
21
- line?: number | undefined;
22
- column?: number | undefined;
23
- } | undefined;
24
- }, {
25
- text: string;
26
- location?: {
27
- file: string;
28
- line?: number | undefined;
29
- column?: number | undefined;
30
- } | undefined;
31
- }>;
5
+ text: z.ZodType<string, z.ZodTypeDef, string>;
6
+ location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
7
+ }, "strict", z.ZodTypeAny, BundleMessageNote, BundleMessageNote>;
8
+ export type TaskMessage = BundleMessage;
32
9
  export declare const ZodTaskMessage: z.ZodObject<{
33
- text: z.ZodString;
34
- source: z.ZodString;
35
- location: z.ZodOptional<z.ZodObject<{
36
- file: z.ZodString;
37
- line: z.ZodOptional<z.ZodNumber>;
38
- column: z.ZodOptional<z.ZodNumber>;
39
- }, "strip", z.ZodTypeAny, {
40
- file: string;
41
- line?: number | undefined;
42
- column?: number | undefined;
43
- }, {
44
- file: string;
45
- line?: number | undefined;
46
- column?: number | undefined;
47
- }>>;
48
- notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
49
- text: z.ZodString;
50
- location: z.ZodOptional<z.ZodObject<{
51
- file: z.ZodString;
52
- line: z.ZodOptional<z.ZodNumber>;
53
- column: z.ZodOptional<z.ZodNumber>;
54
- }, "strip", z.ZodTypeAny, {
55
- file: string;
56
- line?: number | undefined;
57
- column?: number | undefined;
58
- }, {
59
- file: string;
60
- line?: number | undefined;
61
- column?: number | undefined;
62
- }>>;
63
- }, "strip", z.ZodTypeAny, {
64
- text: string;
65
- location?: {
66
- file: string;
67
- line?: number | undefined;
68
- column?: number | undefined;
69
- } | undefined;
70
- }, {
71
- text: string;
72
- location?: {
73
- file: string;
74
- line?: number | undefined;
75
- column?: number | undefined;
76
- } | undefined;
77
- }>, "many">>;
78
- }, "strip", z.ZodTypeAny, {
79
- text: string;
80
- source: string;
81
- location?: {
82
- file: string;
83
- line?: number | undefined;
84
- column?: number | undefined;
85
- } | undefined;
86
- notes?: {
87
- text: string;
88
- location?: {
89
- file: string;
90
- line?: number | undefined;
91
- column?: number | undefined;
92
- } | undefined;
93
- }[] | undefined;
94
- }, {
95
- text: string;
96
- source: string;
97
- location?: {
98
- file: string;
99
- line?: number | undefined;
100
- column?: number | undefined;
101
- } | undefined;
102
- notes?: {
103
- text: string;
104
- location?: {
105
- file: string;
106
- line?: number | undefined;
107
- column?: number | undefined;
108
- } | undefined;
109
- }[] | undefined;
110
- }>;
111
- export type TaskMessage = z.infer<typeof ZodTaskMessage>;
10
+ text: z.ZodType<string, z.ZodTypeDef, string>;
11
+ source: z.ZodType<string, z.ZodTypeDef, string>;
12
+ location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
13
+ notes: z.ZodType<BundleMessageNote[] | undefined, z.ZodTypeDef, BundleMessageNote[] | undefined>;
14
+ }, "strict", z.ZodTypeAny, BundleMessage, BundleMessage>;
112
15
  //# sourceMappingURL=TaskMessage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TaskMessage.d.ts","sourceRoot":"","sources":["../../src/types/TaskMessage.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKzB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"TaskMessage.d.ts","sourceRoot":"","sources":["../../src/types/TaskMessage.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAInF,MAAM,MAAM,QAAQ,GAAG,iBAAiB,CAAC;AAEzC,eAAO,MAAM,WAAW;;;gEAGtB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;AAExC,eAAO,MAAM,cAAc;;;;;wDAKzB,CAAC"}
@@ -1,10 +1,11 @@
1
1
  import z from 'zod';
2
2
  import { ZodTaskMessageLocation } from './TaskMessageLocation.js';
3
- export const ZodTaskNote = z.object({
3
+ import { matchingZodObject } from '../utilities/matchingZodObject.js';
4
+ export const ZodTaskNote = matchingZodObject({
4
5
  text: z.string(),
5
6
  location: ZodTaskMessageLocation.optional(),
6
7
  });
7
- export const ZodTaskMessage = z.object({
8
+ export const ZodTaskMessage = matchingZodObject({
8
9
  text: z.string(),
9
10
  source: z.string(),
10
11
  location: ZodTaskMessageLocation.optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"TaskMessage.js","sourceRoot":"","sources":["../../src/types/TaskMessage.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport { ZodTaskMessageLocation } from './TaskMessageLocation.js';\n\nexport const ZodTaskNote = z.object({\n text: z.string(),\n location: ZodTaskMessageLocation.optional(),\n});\n\nexport const ZodTaskMessage = z.object({\n text: z.string(),\n source: z.string(),\n location: ZodTaskMessageLocation.optional(),\n notes: z.array(ZodTaskNote).optional(),\n});\n\nexport type TaskMessage = z.infer<typeof ZodTaskMessage>;\n"]}
1
+ {"version":3,"file":"TaskMessage.js","sourceRoot":"","sources":["../../src/types/TaskMessage.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAItE,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAW;IACrD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,cAAc,GAAG,iBAAiB,CAAc;IAC3D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport type { BundleMessage, BundleMessageNote } from '@ms-cloudpack/common-types';\nimport { ZodTaskMessageLocation } from './TaskMessageLocation.js';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\n\nexport type TaskNote = BundleMessageNote;\n\nexport const ZodTaskNote = matchingZodObject<TaskNote>({\n text: z.string(),\n location: ZodTaskMessageLocation.optional(),\n});\n\nexport type TaskMessage = BundleMessage;\n\nexport const ZodTaskMessage = matchingZodObject<TaskMessage>({\n text: z.string(),\n source: z.string(),\n location: ZodTaskMessageLocation.optional(),\n notes: z.array(ZodTaskNote).optional(),\n});\n"]}
@@ -1,16 +1,9 @@
1
1
  import z from 'zod';
2
+ import type { BundleMessageLocation } from '@ms-cloudpack/common-types';
3
+ export type TaskMessageLocation = BundleMessageLocation;
2
4
  export declare const ZodTaskMessageLocation: z.ZodObject<{
3
- file: z.ZodString;
4
- line: z.ZodOptional<z.ZodNumber>;
5
- column: z.ZodOptional<z.ZodNumber>;
6
- }, "strip", z.ZodTypeAny, {
7
- file: string;
8
- line?: number | undefined;
9
- column?: number | undefined;
10
- }, {
11
- file: string;
12
- line?: number | undefined;
13
- column?: number | undefined;
14
- }>;
15
- export type TaskMessageLocation = z.infer<typeof ZodTaskMessageLocation>;
5
+ file: z.ZodType<string, z.ZodTypeDef, string>;
6
+ line: z.ZodType<number | undefined, z.ZodTypeDef, number | undefined>;
7
+ column: z.ZodType<number | undefined, z.ZodTypeDef, number | undefined>;
8
+ }, "strict", z.ZodTypeAny, BundleMessageLocation, BundleMessageLocation>;
16
9
  //# sourceMappingURL=TaskMessageLocation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TaskMessageLocation.d.ts","sourceRoot":"","sources":["../../src/types/TaskMessageLocation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"TaskMessageLocation.d.ts","sourceRoot":"","sources":["../../src/types/TaskMessageLocation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE,MAAM,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAExD,eAAO,MAAM,sBAAsB;;;;wEAIjC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import z from 'zod';
2
- export const ZodTaskMessageLocation = z.object({
2
+ import { matchingZodObject } from '../utilities/matchingZodObject.js';
3
+ export const ZodTaskMessageLocation = matchingZodObject({
3
4
  file: z.string(),
4
5
  line: z.number().optional(),
5
6
  column: z.number().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"TaskMessageLocation.js","sourceRoot":"","sources":["../../src/types/TaskMessageLocation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC","sourcesContent":["import z from 'zod';\n\nexport const ZodTaskMessageLocation = z.object({\n file: z.string(),\n line: z.number().optional(),\n column: z.number().optional(),\n});\n\nexport type TaskMessageLocation = z.infer<typeof ZodTaskMessageLocation>;\n"]}
1
+ {"version":3,"file":"TaskMessageLocation.js","sourceRoot":"","sources":["../../src/types/TaskMessageLocation.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAItE,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAsB;IAC3E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport type { BundleMessageLocation } from '@ms-cloudpack/common-types';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\n\nexport type TaskMessageLocation = BundleMessageLocation;\n\nexport const ZodTaskMessageLocation = matchingZodObject<TaskMessageLocation>({\n file: z.string(),\n line: z.number().optional(),\n column: z.number().optional(),\n});\n"]}
@@ -9,6 +9,10 @@ type MatchingZodShape<T extends object> = {
9
9
  type MatchingZodObject<T extends object> = z.ZodObject<MatchingZodShape<T>, 'strict', z.ZodTypeAny, T, T>;
10
10
  /**
11
11
  * Get a Zod object that strictly matches the expected type, including any optional properties.
12
+ *
13
+ * Defining TS types first and using this helper to ensure matching zod objects (rather than
14
+ * defining the zod type first and using `infer`) helps reduce type explosion in intellisense
15
+ * and API reports, and allows reusing types that are already defined elsewhere.
12
16
  */
13
17
  export declare function matchingZodObject<Expected extends object>(shape: MatchingZodShape<Expected>): MatchingZodObject<Expected>;
14
18
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"matchingZodObject.d.ts","sourceRoot":"","sources":["../../src/utilities/matchingZodObject.ts"],"names":[],"mappings":"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
  import { z } from 'zod';
2
2
  /**
3
3
  * Get a Zod object that strictly matches the expected type, including any optional properties.
4
+ *
5
+ * Defining TS types first and using this helper to ensure matching zod objects (rather than
6
+ * defining the zod type first and using `infer`) helps reduce type explosion in intellisense
7
+ * and API reports, and allows reusing types that are already defined elsewhere.
4
8
  */
5
9
  export function matchingZodObject(shape) {
6
10
  // Cast the return value to convert back to the original type with optional properties
@@ -1 +1 @@
1
- {"version":3,"file":"matchingZodObject.js","sourceRoot":"","sources":["../../src/utilities/matchingZodObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAC/B,KAAiC;IAEjC,sFAAsF;IACtF,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAiC,CAAC;AACjE,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * Zod shape object matching type `T`, with any optional properties remapped to required properties\n * with type `originalType | undefined`.\n */\ntype MatchingZodShape<T extends object> = {\n [k in keyof Required<T>]: z.ZodType<T[k]>;\n};\n\ntype MatchingZodObject<T extends object> = z.ZodObject<MatchingZodShape<T>, 'strict', z.ZodTypeAny, T, T>;\n\n/**\n * Get a Zod object that strictly matches the expected type, including any optional properties.\n */\nexport function matchingZodObject<Expected extends object>(\n shape: MatchingZodShape<Expected>,\n): MatchingZodObject<Expected> {\n // Cast the return value to convert back to the original type with optional properties\n return z.object(shape).strict() as MatchingZodObject<Expected>;\n}\n"]}
1
+ {"version":3,"file":"matchingZodObject.js","sourceRoot":"","sources":["../../src/utilities/matchingZodObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAC/B,KAAiC;IAEjC,sFAAsF;IACtF,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,EAAiC,CAAC;AACjE,CAAC","sourcesContent":["import { z } from 'zod';\n\n/**\n * Zod shape object matching type `T`, with any optional properties remapped to required properties\n * with type `originalType | undefined`.\n */\ntype MatchingZodShape<T extends object> = {\n [k in keyof Required<T>]: z.ZodType<T[k]>;\n};\n\ntype MatchingZodObject<T extends object> = z.ZodObject<MatchingZodShape<T>, 'strict', z.ZodTypeAny, T, T>;\n\n/**\n * Get a Zod object that strictly matches the expected type, including any optional properties.\n *\n * Defining TS types first and using this helper to ensure matching zod objects (rather than\n * defining the zod type first and using `infer`) helps reduce type explosion in intellisense\n * and API reports, and allows reusing types that are already defined elsewhere.\n */\nexport function matchingZodObject<Expected extends object>(\n shape: MatchingZodShape<Expected>,\n): MatchingZodObject<Expected> {\n // Cast the return value to convert back to the original type with optional properties\n return z.object(shape).strict() as MatchingZodObject<Expected>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"writeStubForDensityEntries.d.ts","sourceRoot":"","sources":["../../src/utilities/writeStubForDensityEntries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,eAAe,EACf,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AAQpC,wBAAsB,0BAA0B,CAAC,MAAM,EAAE;IACvD,OAAO,EAAE;QACP,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,aAAa,CAAC;KACvB,CAAC;IACF,OAAO,EAAE;QACP,QAAQ,EAAE,uBAAuB,CAAC;QAClC,MAAM,EAAE,eAAe,CAAC;KACzB,CAAC;CACH,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAqE3B"}
1
+ {"version":3,"file":"writeStubForDensityEntries.d.ts","sourceRoot":"","sources":["../../src/utilities/writeStubForDensityEntries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,eAAe,EACf,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AASpC,wBAAsB,0BAA0B,CAAC,MAAM,EAAE;IACvD,OAAO,EAAE;QACP,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,aAAa,CAAC;KACvB,CAAC;IACF,OAAO,EAAE;QACP,QAAQ,EAAE,uBAAuB,CAAC;QAClC,MAAM,EAAE,eAAe,CAAC;KACzB,CAAC;CACH,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAqE3B"}
@@ -3,6 +3,7 @@ import { writeFile } from 'fs/promises';
3
3
  import path from 'path';
4
4
  import { toNormalizedEntryKey } from '@ms-cloudpack/bundler';
5
5
  import { flattenExportsMap, getExportsMap } from '@ms-cloudpack/package-utilities';
6
+ import { slash } from '@ms-cloudpack/path-string-parsing';
6
7
  const errorSource = 'density-entry-stub';
7
8
  export async function writeStubForDensityEntries(params) {
8
9
  const { options, context } = params;
@@ -53,7 +54,7 @@ export async function writeStubForDensityEntries(params) {
53
54
  type: outputFile.exports ? 'object' : 'other',
54
55
  keys: outputFile.exports ?? [],
55
56
  },
56
- importStatement: `const moduleExport = requireDensityModule("${moduleId}");`,
57
+ importStatement: `const moduleExport = requireDensityModule("${slash(moduleId)}");`,
57
58
  });
58
59
  await writeFile(path.join(result.outputPath, outputFile.outputPath), stub);
59
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"writeStubForDensityEntries.js","sourceRoot":"","sources":["../../src/utilities/writeStubForDensityEntries.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEnF,MAAM,WAAW,GAAG,oBAAoB,CAAC;AACzC,MAAM,CAAC,KAAK,UAAU,0BA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AC,CAAC;YAC1E,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChB,MAAM,CAAC,IAAI,CAAC;oBACV,IAAI,EAAE,4CAA4C,SAAS,kBAAkB,WAAW,kBAAkB,WAAW,EAAE;oBACvH,MAAM,EAAE,WAAW;iBACpB,CAAC,CAAC;gBACH,SAAS;YACX,CAAC;YAED,MAAM,QAAQ,GAAG,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;YAEvF,wEAAwE;YACxE,wDAAwD;YACxD,MAAM,IAAI,GAAG,0BAA0B,CAAC;gBACtC,MAAM,EAAE;oBACN,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;oBAC7C,IAAI,EAAE,UAAU,CAAC,OAAO,IAAI,EAAE;iBAC/B;gBACD,eAAe,EAAE,8CAA8C,QAAQ,KAAK;aAC7E,CAAC,CAAC;YAEH,MAAM,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,CAAC;QAC7E,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,CAAC,IAAI,CAAC;gBACV,IAAI,EAAE,iDAAiD,CAAC,kBAAkB,WAAW,kBAAkB,WAAW,EAAE;gBACpH,MAAM,EAAE,WAAW;aACpB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import type {\n BundleMessage,\n BundlerResult,\n CloudpackConfig,\n PackageDefinitionsCache,\n} from '@ms-cloudpack/common-types';\nimport { generateESMStubFromExports } from '@ms-cloudpack/esm-stub-utilities';\nimport { writeFile } from 'fs/promises';\nimport path from 'path';\nimport { toNormalizedEntryKey } from '@ms-cloudpack/bundler';\nimport { flattenExportsMap, getExportsMap } from '@ms-cloudpack/package-utilities';\n\nconst errorSource = 'density-entry-stub';\nexport async function writeStubForDensityEntries(params: {\n options: {\n packageName: string;\n packagePath: string;\n result: BundlerResult;\n };\n context: {\n packages: PackageDefinitionsCache;\n config: CloudpackConfig;\n };\n}): Promise<BundleMessage[]> {\n const { options, context } = params;\n const { packagePath, packageName, result } = options;\n const exportsMap = await getExportsMap({ packagePath }, context);\n const densityCondition = ['density'];\n const densityExportsMap = flattenExportsMap(exportsMap, {\n requiredConditions: densityCondition,\n conditions: densityCondition,\n });\n\n if (Object.keys(densityExportsMap).length === 0) {\n return [];\n }\n\n if (!result.outputFiles) {\n return [\n {\n source: errorSource,\n text: `No output files found in the result. package name:${packageName}, package path:${packagePath}`,\n },\n ];\n }\n\n if (!result.outputPath) {\n return [\n {\n source: errorSource,\n text: `No output path found in the result. package name:${packageName}, package path:${packagePath}`,\n },\n ];\n }\n\n const errors: BundleMessage[] = [];\n\n // find the corresponding output file from the result for each external entry\n for (const [key, value] of Object.entries(densityExportsMap)) {\n try {\n const entryPath = toNormalizedEntryKey(value);\n const outputFile = result.outputFiles.find((o) => o.outputPath === value);\n if (!outputFile) {\n errors.push({\n text: `No output file found for external entry: ${entryPath}, package name:${packageName}, package path:${packagePath}`,\n source: errorSource,\n });\n continue;\n }\n\n const moduleId = key === '.' ? options.packageName : path.join(packageName, entryPath);\n\n // generate new stab file for the external entry by using output.exports\n // found the output file. This file need to be replaced.\n const stub = generateESMStubFromExports({\n export: {\n type: outputFile.exports ? 'object' : 'other',\n keys: outputFile.exports ?? [],\n },\n importStatement: `const moduleExport = requireDensityModule(\"${moduleId}\");`,\n });\n\n await writeFile(path.join(result.outputPath, outputFile.outputPath), stub);\n } catch (e) {\n errors.push({\n text: `Error while creating stub for external entry: ${e}, package name:${packageName}, package path:${packagePath}`,\n source: errorSource,\n });\n }\n }\n\n return errors;\n}\n"]}
1
+ {"version":3,"file":"writeStubForDensityEntries.js","sourceRoot":"","sources":["../../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OAAO,CAAC,EAAE,CAAC;YACX,MAAM,CAAC,IAAI,CAAC;gBACV,IAAI,EAAE,iDAAiD,CAAC,kBAAkB,WAAW,kBAAkB,WAAW,EAAE;gBACpH,MAAM,EAAE,WAAW;aACpB,CAAC,CAAC;QACL,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["import type {\n BundleMessage,\n BundlerResult,\n CloudpackConfig,\n PackageDefinitionsCache,\n} from '@ms-cloudpack/common-types';\nimport { generateESMStubFromExports } from '@ms-cloudpack/esm-stub-utilities';\nimport { writeFile } from 'fs/promises';\nimport path from 'path';\nimport { toNormalizedEntryKey } from '@ms-cloudpack/bundler';\nimport { flattenExportsMap, getExportsMap } from '@ms-cloudpack/package-utilities';\nimport { slash } from '@ms-cloudpack/path-string-parsing';\n\nconst errorSource = 'density-entry-stub';\nexport async function writeStubForDensityEntries(params: {\n options: {\n packageName: string;\n packagePath: string;\n result: BundlerResult;\n };\n context: {\n packages: PackageDefinitionsCache;\n config: CloudpackConfig;\n };\n}): Promise<BundleMessage[]> {\n const { options, context } = params;\n const { packagePath, packageName, result } = options;\n const exportsMap = await getExportsMap({ packagePath }, context);\n const densityCondition = ['density'];\n const densityExportsMap = flattenExportsMap(exportsMap, {\n requiredConditions: densityCondition,\n conditions: densityCondition,\n });\n\n if (Object.keys(densityExportsMap).length === 0) {\n return [];\n }\n\n if (!result.outputFiles) {\n return [\n {\n source: errorSource,\n text: `No output files found in the result. package name:${packageName}, package path:${packagePath}`,\n },\n ];\n }\n\n if (!result.outputPath) {\n return [\n {\n source: errorSource,\n text: `No output path found in the result. package name:${packageName}, package path:${packagePath}`,\n },\n ];\n }\n\n const errors: BundleMessage[] = [];\n\n // find the corresponding output file from the result for each external entry\n for (const [key, value] of Object.entries(densityExportsMap)) {\n try {\n const entryPath = toNormalizedEntryKey(value);\n const outputFile = result.outputFiles.find((o) => o.outputPath === value);\n if (!outputFile) {\n errors.push({\n text: `No output file found for external entry: ${entryPath}, package name:${packageName}, package path:${packagePath}`,\n source: errorSource,\n });\n continue;\n }\n\n const moduleId = key === '.' ? options.packageName : path.join(packageName, entryPath);\n\n // generate new stab file for the external entry by using output.exports\n // found the output file. This file need to be replaced.\n const stub = generateESMStubFromExports({\n export: {\n type: outputFile.exports ? 'object' : 'other',\n keys: outputFile.exports ?? [],\n },\n importStatement: `const moduleExport = requireDensityModule(\"${slash(moduleId)}\");`,\n });\n\n await writeFile(path.join(result.outputPath, outputFile.outputPath), stub);\n } catch (e) {\n errors.push({\n text: `Error while creating stub for external entry: ${e}, package name:${packageName}, package path:${packagePath}`,\n source: errorSource,\n });\n }\n }\n\n return errors;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ms-cloudpack/api-server",
3
- "version": "0.60.0",
3
+ "version": "0.60.1",
4
4
  "description": "An implementation of the API server that does interacts with a task scheduler.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,337 +0,0 @@
1
- import z from 'zod';
2
- export declare const ZodTaskResponse: z.ZodObject<{
3
- result: z.ZodObject<{
4
- errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
5
- text: z.ZodString;
6
- source: z.ZodString;
7
- location: z.ZodOptional<z.ZodObject<{
8
- file: z.ZodString;
9
- line: z.ZodOptional<z.ZodNumber>;
10
- column: z.ZodOptional<z.ZodNumber>;
11
- }, "strip", z.ZodTypeAny, {
12
- file: string;
13
- line?: number | undefined;
14
- column?: number | undefined;
15
- }, {
16
- file: string;
17
- line?: number | undefined;
18
- column?: number | undefined;
19
- }>>;
20
- notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
21
- text: z.ZodString;
22
- location: z.ZodOptional<z.ZodObject<{
23
- file: z.ZodString;
24
- line: z.ZodOptional<z.ZodNumber>;
25
- column: z.ZodOptional<z.ZodNumber>;
26
- }, "strip", z.ZodTypeAny, {
27
- file: string;
28
- line?: number | undefined;
29
- column?: number | undefined;
30
- }, {
31
- file: string;
32
- line?: number | undefined;
33
- column?: number | undefined;
34
- }>>;
35
- }, "strip", z.ZodTypeAny, {
36
- text: string;
37
- location?: {
38
- file: string;
39
- line?: number | undefined;
40
- column?: number | undefined;
41
- } | undefined;
42
- }, {
43
- text: string;
44
- location?: {
45
- file: string;
46
- line?: number | undefined;
47
- column?: number | undefined;
48
- } | undefined;
49
- }>, "many">>;
50
- }, "strip", z.ZodTypeAny, {
51
- text: string;
52
- source: string;
53
- location?: {
54
- file: string;
55
- line?: number | undefined;
56
- column?: number | undefined;
57
- } | undefined;
58
- notes?: {
59
- text: string;
60
- location?: {
61
- file: string;
62
- line?: number | undefined;
63
- column?: number | undefined;
64
- } | undefined;
65
- }[] | undefined;
66
- }, {
67
- text: string;
68
- source: string;
69
- location?: {
70
- file: string;
71
- line?: number | undefined;
72
- column?: number | undefined;
73
- } | undefined;
74
- notes?: {
75
- text: string;
76
- location?: {
77
- file: string;
78
- line?: number | undefined;
79
- column?: number | undefined;
80
- } | undefined;
81
- }[] | undefined;
82
- }>, "many">>;
83
- warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
84
- text: z.ZodString;
85
- source: z.ZodString;
86
- location: z.ZodOptional<z.ZodObject<{
87
- file: z.ZodString;
88
- line: z.ZodOptional<z.ZodNumber>;
89
- column: z.ZodOptional<z.ZodNumber>;
90
- }, "strip", z.ZodTypeAny, {
91
- file: string;
92
- line?: number | undefined;
93
- column?: number | undefined;
94
- }, {
95
- file: string;
96
- line?: number | undefined;
97
- column?: number | undefined;
98
- }>>;
99
- notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
100
- text: z.ZodString;
101
- location: z.ZodOptional<z.ZodObject<{
102
- file: z.ZodString;
103
- line: z.ZodOptional<z.ZodNumber>;
104
- column: z.ZodOptional<z.ZodNumber>;
105
- }, "strip", z.ZodTypeAny, {
106
- file: string;
107
- line?: number | undefined;
108
- column?: number | undefined;
109
- }, {
110
- file: string;
111
- line?: number | undefined;
112
- column?: number | undefined;
113
- }>>;
114
- }, "strip", z.ZodTypeAny, {
115
- text: string;
116
- location?: {
117
- file: string;
118
- line?: number | undefined;
119
- column?: number | undefined;
120
- } | undefined;
121
- }, {
122
- text: string;
123
- location?: {
124
- file: string;
125
- line?: number | undefined;
126
- column?: number | undefined;
127
- } | undefined;
128
- }>, "many">>;
129
- }, "strip", z.ZodTypeAny, {
130
- text: string;
131
- source: string;
132
- location?: {
133
- file: string;
134
- line?: number | undefined;
135
- column?: number | undefined;
136
- } | undefined;
137
- notes?: {
138
- text: string;
139
- location?: {
140
- file: string;
141
- line?: number | undefined;
142
- column?: number | undefined;
143
- } | undefined;
144
- }[] | undefined;
145
- }, {
146
- text: string;
147
- source: string;
148
- location?: {
149
- file: string;
150
- line?: number | undefined;
151
- column?: number | undefined;
152
- } | undefined;
153
- notes?: {
154
- text: string;
155
- location?: {
156
- file: string;
157
- line?: number | undefined;
158
- column?: number | undefined;
159
- } | undefined;
160
- }[] | undefined;
161
- }>, "many">>;
162
- }, "strip", z.ZodTypeAny, {
163
- errors?: {
164
- text: string;
165
- source: string;
166
- location?: {
167
- file: string;
168
- line?: number | undefined;
169
- column?: number | undefined;
170
- } | undefined;
171
- notes?: {
172
- text: string;
173
- location?: {
174
- file: string;
175
- line?: number | undefined;
176
- column?: number | undefined;
177
- } | undefined;
178
- }[] | undefined;
179
- }[] | undefined;
180
- warnings?: {
181
- text: string;
182
- source: string;
183
- location?: {
184
- file: string;
185
- line?: number | undefined;
186
- column?: number | undefined;
187
- } | undefined;
188
- notes?: {
189
- text: string;
190
- location?: {
191
- file: string;
192
- line?: number | undefined;
193
- column?: number | undefined;
194
- } | undefined;
195
- }[] | undefined;
196
- }[] | undefined;
197
- }, {
198
- errors?: {
199
- text: string;
200
- source: string;
201
- location?: {
202
- file: string;
203
- line?: number | undefined;
204
- column?: number | undefined;
205
- } | undefined;
206
- notes?: {
207
- text: string;
208
- location?: {
209
- file: string;
210
- line?: number | undefined;
211
- column?: number | undefined;
212
- } | undefined;
213
- }[] | undefined;
214
- }[] | undefined;
215
- warnings?: {
216
- text: string;
217
- source: string;
218
- location?: {
219
- file: string;
220
- line?: number | undefined;
221
- column?: number | undefined;
222
- } | undefined;
223
- notes?: {
224
- text: string;
225
- location?: {
226
- file: string;
227
- line?: number | undefined;
228
- column?: number | undefined;
229
- } | undefined;
230
- }[] | undefined;
231
- }[] | undefined;
232
- }>;
233
- timings: z.ZodOptional<z.ZodArray<z.ZodObject<{
234
- name: z.ZodString;
235
- start: z.ZodNumber;
236
- end: z.ZodOptional<z.ZodNumber>;
237
- threwException: z.ZodOptional<z.ZodBoolean>;
238
- }, "strip", z.ZodTypeAny, {
239
- name: string;
240
- start: number;
241
- end?: number | undefined;
242
- threwException?: boolean | undefined;
243
- }, {
244
- name: string;
245
- start: number;
246
- end?: number | undefined;
247
- threwException?: boolean | undefined;
248
- }>, "many">>;
249
- }, "strip", z.ZodTypeAny, {
250
- result: {
251
- errors?: {
252
- text: string;
253
- source: string;
254
- location?: {
255
- file: string;
256
- line?: number | undefined;
257
- column?: number | undefined;
258
- } | undefined;
259
- notes?: {
260
- text: string;
261
- location?: {
262
- file: string;
263
- line?: number | undefined;
264
- column?: number | undefined;
265
- } | undefined;
266
- }[] | undefined;
267
- }[] | undefined;
268
- warnings?: {
269
- text: string;
270
- source: string;
271
- location?: {
272
- file: string;
273
- line?: number | undefined;
274
- column?: number | undefined;
275
- } | undefined;
276
- notes?: {
277
- text: string;
278
- location?: {
279
- file: string;
280
- line?: number | undefined;
281
- column?: number | undefined;
282
- } | undefined;
283
- }[] | undefined;
284
- }[] | undefined;
285
- };
286
- timings?: {
287
- name: string;
288
- start: number;
289
- end?: number | undefined;
290
- threwException?: boolean | undefined;
291
- }[] | undefined;
292
- }, {
293
- result: {
294
- errors?: {
295
- text: string;
296
- source: string;
297
- location?: {
298
- file: string;
299
- line?: number | undefined;
300
- column?: number | undefined;
301
- } | undefined;
302
- notes?: {
303
- text: string;
304
- location?: {
305
- file: string;
306
- line?: number | undefined;
307
- column?: number | undefined;
308
- } | undefined;
309
- }[] | undefined;
310
- }[] | undefined;
311
- warnings?: {
312
- text: string;
313
- source: string;
314
- location?: {
315
- file: string;
316
- line?: number | undefined;
317
- column?: number | undefined;
318
- } | undefined;
319
- notes?: {
320
- text: string;
321
- location?: {
322
- file: string;
323
- line?: number | undefined;
324
- column?: number | undefined;
325
- } | undefined;
326
- }[] | undefined;
327
- }[] | undefined;
328
- };
329
- timings?: {
330
- name: string;
331
- start: number;
332
- end?: number | undefined;
333
- threwException?: boolean | undefined;
334
- }[] | undefined;
335
- }>;
336
- export type TaskResponse = z.infer<typeof ZodTaskResponse>;
337
- //# sourceMappingURL=TaskResponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TaskResponse.d.ts","sourceRoot":"","sources":["../../src/types/TaskResponse.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import z from 'zod';
2
- import { ZodTaskResult } from './TaskResult.js';
3
- import { ZodTimings } from './Timings.js';
4
- export const ZodTaskResponse = z.object({
5
- result: ZodTaskResult,
6
- timings: ZodTimings.optional(),
7
- });
8
- //# sourceMappingURL=TaskResponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TaskResponse.js","sourceRoot":"","sources":["../../src/types/TaskResponse.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE,UAAU,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport { ZodTaskResult } from './TaskResult.js';\nimport { ZodTimings } from './Timings.js';\n\nexport const ZodTaskResponse = z.object({\n result: ZodTaskResult,\n timings: ZodTimings.optional(),\n});\n\nexport type TaskResponse = z.infer<typeof ZodTaskResponse>;\n"]}