@ms-cloudpack/api-server 0.63.11 → 0.64.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.
- package/lib/apis/addPackageOverride.d.ts +1 -1
- package/lib/apis/addPackageOverride.js +7 -7
- package/lib/apis/addPackageOverride.js.map +1 -1
- package/lib/apis/ensurePackageBundled.js.map +1 -1
- package/lib/apis/getData.d.ts +9 -17
- package/lib/apis/getData.d.ts.map +1 -1
- package/lib/apis/getData.js +5 -5
- package/lib/apis/getData.js.map +1 -1
- package/lib/apis/getLinkConfig.d.ts +2 -4
- package/lib/apis/getLinkConfig.d.ts.map +1 -1
- package/lib/apis/getLinkConfig.js +4 -3
- package/lib/apis/getLinkConfig.js.map +1 -1
- package/lib/apis/getSessionId.d.ts +2 -6
- package/lib/apis/getSessionId.d.ts.map +1 -1
- package/lib/apis/getSessionId.js +3 -4
- package/lib/apis/getSessionId.js.map +1 -1
- package/lib/apis/linkPath.d.ts +3 -8
- package/lib/apis/linkPath.js +3 -3
- package/lib/apis/linkPath.js.map +1 -1
- package/lib/apis/notifyLinkChange.d.ts +3 -16
- package/lib/apis/notifyLinkChange.d.ts.map +1 -1
- package/lib/apis/notifyLinkChange.js +5 -4
- package/lib/apis/notifyLinkChange.js.map +1 -1
- package/lib/apis/onDataChanged.d.ts +5 -18
- package/lib/apis/onDataChanged.d.ts.map +1 -1
- package/lib/apis/onDataChanged.js +4 -10
- package/lib/apis/onDataChanged.js.map +1 -1
- package/lib/apis/openCodeEditor.d.ts +10 -26
- package/lib/apis/openCodeEditor.d.ts.map +1 -1
- package/lib/apis/openCodeEditor.js +11 -7
- package/lib/apis/openCodeEditor.js.map +1 -1
- package/lib/apis/openConfigEditor.d.ts +4 -1
- package/lib/apis/openConfigEditor.d.ts.map +1 -1
- package/lib/apis/openConfigEditor.js +6 -2
- package/lib/apis/openConfigEditor.js.map +1 -1
- package/lib/apis/openFilePath.d.ts +10 -17
- package/lib/apis/openFilePath.d.ts.map +1 -1
- package/lib/apis/openFilePath.js +9 -5
- package/lib/apis/openFilePath.js.map +1 -1
- package/lib/apis/publishData.d.ts +7 -17
- package/lib/apis/publishData.d.ts.map +1 -1
- package/lib/apis/publishData.js +5 -4
- package/lib/apis/publishData.js.map +1 -1
- package/lib/apis/reportSpan.d.ts +6 -24
- package/lib/apis/reportSpan.d.ts.map +1 -1
- package/lib/apis/reportSpan.js +6 -5
- package/lib/apis/reportSpan.js.map +1 -1
- package/lib/apis/restartAllTasks.d.ts +1 -1
- package/lib/apis/restartAllTasks.d.ts.map +1 -1
- package/lib/apis/restartAllTasks.js +14 -7
- package/lib/apis/restartAllTasks.js.map +1 -1
- package/lib/apis/restartTask.d.ts +4 -18
- package/lib/apis/restartTask.d.ts.map +1 -1
- package/lib/apis/restartTask.js +6 -5
- package/lib/apis/restartTask.js.map +1 -1
- package/lib/apis/unlinkPath.d.ts +3 -8
- package/lib/apis/unlinkPath.js +3 -3
- package/lib/apis/unlinkPath.js.map +1 -1
- package/lib/apis/validatePackageOverride.d.ts +1 -1
- package/lib/apis/validatePackageOverride.js +5 -8
- package/lib/apis/validatePackageOverride.js.map +1 -1
- package/lib/common/createApiContext.d.ts.map +1 -1
- package/lib/common/createApiContext.js +4 -1
- package/lib/common/createApiContext.js.map +1 -1
- package/lib/common/createMockContext.d.ts +16 -9
- package/lib/common/createMockContext.d.ts.map +1 -1
- package/lib/common/createMockContext.js +21 -16
- package/lib/common/createMockContext.js.map +1 -1
- package/lib/common/createMockSession.d.ts +1 -1
- package/lib/common/createMockSession.d.ts.map +1 -1
- package/lib/common/createMockSession.js.map +1 -1
- package/lib/common/createSession.d.ts +5 -1
- package/lib/common/createSession.d.ts.map +1 -1
- package/lib/common/createSession.js +1 -1
- package/lib/common/createSession.js.map +1 -1
- package/lib/common/prepareOutputPath.js +1 -1
- package/lib/common/prepareOutputPath.js.map +1 -1
- package/lib/data/busSources.d.ts +12 -240
- package/lib/data/busSources.d.ts.map +1 -1
- package/lib/data/busSources.js +4 -4
- package/lib/data/busSources.js.map +1 -1
- package/lib/index.browser.d.ts +2 -2
- package/lib/index.browser.d.ts.map +1 -1
- package/lib/index.browser.js.map +1 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib/trpc/common.d.ts +41 -2
- package/lib/trpc/common.d.ts.map +1 -1
- package/lib/trpc/common.js +44 -3
- package/lib/trpc/common.js.map +1 -1
- package/lib/types/GetLinkConfigOutput.d.ts +5 -0
- package/lib/types/GetLinkConfigOutput.d.ts.map +1 -0
- package/lib/types/GetLinkConfigOutput.js +18 -0
- package/lib/types/GetLinkConfigOutput.js.map +1 -0
- package/lib/types/LinkPath.d.ts +9 -93
- package/lib/types/LinkPath.d.ts.map +1 -1
- package/lib/types/LinkPath.js +28 -34
- package/lib/types/LinkPath.js.map +1 -1
- package/lib/types/NotifyLinkChangeInput.d.ts +9 -0
- package/lib/types/NotifyLinkChangeInput.d.ts.map +1 -0
- package/lib/types/NotifyLinkChangeInput.js +16 -0
- package/lib/types/NotifyLinkChangeInput.js.map +1 -0
- package/lib/types/Task.d.ts +20 -12
- package/lib/types/Task.d.ts.map +1 -1
- package/lib/types/Task.js.map +1 -1
- package/lib/types/TaskDescription.d.ts +19 -73
- package/lib/types/TaskDescription.d.ts.map +1 -1
- package/lib/types/TaskDescription.js +15 -12
- package/lib/types/TaskDescription.js.map +1 -1
- package/lib/types/TaskList.d.ts +6 -115
- package/lib/types/TaskList.d.ts.map +1 -1
- package/lib/types/TaskList.js +3 -2
- package/lib/types/TaskList.js.map +1 -1
- package/lib/types/TaskMessage.d.ts +3 -11
- package/lib/types/TaskMessage.d.ts.map +1 -1
- package/lib/types/TaskMessage.js +4 -4
- package/lib/types/TaskMessage.js.map +1 -1
- package/lib/types/TaskMessageLocation.d.ts +2 -6
- package/lib/types/TaskMessageLocation.d.ts.map +1 -1
- package/lib/types/TaskMessageLocation.js +3 -3
- package/lib/types/TaskMessageLocation.js.map +1 -1
- package/lib/types/TaskStats.d.ts +26 -17
- package/lib/types/TaskStats.d.ts.map +1 -1
- package/lib/types/TaskStats.js +4 -3
- package/lib/types/TaskStats.js.map +1 -1
- package/lib/types/Timing.d.ts +8 -18
- package/lib/types/Timing.d.ts.map +1 -1
- package/lib/types/Timing.js +5 -8
- package/lib/types/Timing.js.map +1 -1
- package/lib/utilities/TaskRunner.d.ts +56 -18
- package/lib/utilities/TaskRunner.d.ts.map +1 -1
- package/lib/utilities/TaskRunner.js +177 -98
- package/lib/utilities/TaskRunner.js.map +1 -1
- package/lib/utilities/createBundleTask.d.ts.map +1 -1
- package/lib/utilities/createBundleTask.js +9 -15
- package/lib/utilities/createBundleTask.js.map +1 -1
- package/lib/utilities/matchingZodObject.d.ts +18 -10
- package/lib/utilities/matchingZodObject.d.ts.map +1 -1
- package/lib/utilities/matchingZodObject.js +19 -7
- package/lib/utilities/matchingZodObject.js.map +1 -1
- package/lib/utilities/notifyHost.d.ts +3 -4
- package/lib/utilities/notifyHost.d.ts.map +1 -1
- package/lib/utilities/notifyHost.js.map +1 -1
- package/lib/utilities/notifyReload.d.ts +4 -3
- package/lib/utilities/notifyReload.d.ts.map +1 -1
- package/lib/utilities/notifyReload.js +2 -1
- package/lib/utilities/notifyReload.js.map +1 -1
- package/lib/utilities/waitForBusData.d.ts +2 -2
- package/lib/utilities/waitForBusData.d.ts.map +1 -1
- package/lib/utilities/waitForBusData.js.map +1 -1
- package/package.json +16 -16
- package/lib/types/TaskEndDescription.d.ts +0 -26
- package/lib/types/TaskEndDescription.d.ts.map +0 -1
- package/lib/types/TaskEndDescription.js +0 -8
- package/lib/types/TaskEndDescription.js.map +0 -1
- package/lib/types/TaskStartDescription.d.ts +0 -19
- package/lib/types/TaskStartDescription.d.ts.map +0 -1
- package/lib/types/TaskStartDescription.js +0 -8
- package/lib/types/TaskStartDescription.js.map +0 -1
- package/lib/types/ZodGetLinkConfigOutput.d.ts +0 -4
- package/lib/types/ZodGetLinkConfigOutput.d.ts.map +0 -1
- package/lib/types/ZodGetLinkConfigOutput.js +0 -13
- package/lib/types/ZodGetLinkConfigOutput.js.map +0 -1
- package/lib/types/ZodNotifyLinkChangeInput.d.ts +0 -45
- package/lib/types/ZodNotifyLinkChangeInput.d.ts.map +0 -1
- package/lib/types/ZodNotifyLinkChangeInput.js +0 -8
- package/lib/types/ZodNotifyLinkChangeInput.js.map +0 -1
- package/lib/types/ZodResolveMap.d.ts +0 -4
- package/lib/types/ZodResolveMap.d.ts.map +0 -1
- package/lib/types/ZodResolveMap.js +0 -14
- package/lib/types/ZodResolveMap.js.map +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import type { NotifyLinkChangeInput } from '../
|
|
1
|
+
import type { NotifyLinkChangeInput } from '../types/NotifyLinkChangeInput.js';
|
|
2
2
|
import type { PartialContext } from '../types/Context.js';
|
|
3
|
+
import { type NotifyReloadOptions } from './notifyReload.js';
|
|
3
4
|
/**
|
|
4
5
|
* Notifies clients that a reload is needed and notifies the host of link changes.
|
|
5
6
|
*/
|
|
6
|
-
export declare function notifyHost(options: NotifyLinkChangeInput &
|
|
7
|
-
reason: string;
|
|
8
|
-
}, context: PartialContext<'bus' | 'telemetryClient', 'sequence'>): Promise<void>;
|
|
7
|
+
export declare function notifyHost(options: NotifyLinkChangeInput & NotifyReloadOptions, context: PartialContext<'bus' | 'telemetryClient', 'sequence'>): Promise<void>;
|
|
9
8
|
//# sourceMappingURL=notifyHost.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifyHost.d.ts","sourceRoot":"","sources":["../../src/utilities/notifyHost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notifyHost.d.ts","sourceRoot":"","sources":["../../src/utilities/notifyHost.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAgB,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE3E;;GAEG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,qBAAqB,GAAG,mBAAmB,EACpD,OAAO,EAAE,cAAc,CAAC,KAAK,GAAG,iBAAiB,EAAE,UAAU,CAAC,GAC7D,OAAO,CAAC,IAAI,CAAC,CAKf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifyHost.js","sourceRoot":"","sources":["../../src/utilities/notifyHost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notifyHost.js","sourceRoot":"","sources":["../../src/utilities/notifyHost.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAGzD,OAAO,EAAE,YAAY,EAA4B,MAAM,mBAAmB,CAAC;AAE3E;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,OAAoD,EACpD,OAA8D;IAE9D,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,OAAO,CAAC;IACrC,MAAM,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC;IACxB,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;IACrC,MAAM,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC","sourcesContent":["import { linkUpdateSource } from '../data/busSources.js';\nimport type { NotifyLinkChangeInput } from '../types/NotifyLinkChangeInput.js';\nimport type { PartialContext } from '../types/Context.js';\nimport { notifyReload, type NotifyReloadOptions } from './notifyReload.js';\n\n/**\n * Notifies clients that a reload is needed and notifies the host of link changes.\n */\nexport async function notifyHost(\n options: NotifyLinkChangeInput & NotifyReloadOptions,\n context: PartialContext<'bus' | 'telemetryClient', 'sequence'>,\n): Promise<void> {\n const { reason, ...input } = options;\n const { bus } = context;\n bus.publish(linkUpdateSource, input);\n await notifyReload(options, context);\n}\n"]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { PartialContext } from '../types/Context.js';
|
|
2
|
+
export interface NotifyReloadOptions {
|
|
3
|
+
reason: string;
|
|
4
|
+
}
|
|
2
5
|
/**
|
|
3
6
|
* Notifies clients that a reload is needed by incrementing the session version.
|
|
4
7
|
*/
|
|
5
|
-
export declare function notifyReload(options:
|
|
6
|
-
reason: string;
|
|
7
|
-
}, context: PartialContext<'bus' | 'telemetryClient', 'sequence'>): Promise<void>;
|
|
8
|
+
export declare function notifyReload(options: NotifyReloadOptions, context: PartialContext<'bus' | 'telemetryClient', 'sequence'>): Promise<void>;
|
|
8
9
|
//# sourceMappingURL=notifyReload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifyReload.d.ts","sourceRoot":"","sources":["../../src/utilities/notifyReload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"notifyReload.d.ts","sourceRoot":"","sources":["../../src/utilities/notifyReload.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,cAAc,CAAC,KAAK,GAAG,iBAAiB,EAAE,UAAU,CAAC,GAC7D,OAAO,CAAC,IAAI,CAAC,CAYf"}
|
|
@@ -8,7 +8,8 @@ export async function notifyReload(options, context) {
|
|
|
8
8
|
await telemetryClient.tracer.startActiveSpan('NOTIFY_RELOAD', (span) => {
|
|
9
9
|
session.sequence++;
|
|
10
10
|
span.setAttributes({ sequence: session.sequence, reason });
|
|
11
|
-
|
|
11
|
+
// Publish using .path for easier testing
|
|
12
|
+
bus.publish(reloadCountSource.path, session.sequence);
|
|
12
13
|
});
|
|
13
14
|
}
|
|
14
15
|
//# sourceMappingURL=notifyReload.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifyReload.js","sourceRoot":"","sources":["../../src/utilities/notifyReload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"notifyReload.js","sourceRoot":"","sources":["../../src/utilities/notifyReload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAO1D;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,OAA4B,EAC5B,OAA8D;IAE9D,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC;IAElD,MAAM,eAAe,CAAC,MAAM,CAAC,eAAe,CAAC,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE;QACrE,OAAO,CAAC,QAAQ,EAAE,CAAC;QAEnB,IAAI,CAAC,aAAa,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;QAE3D,yCAAyC;QACzC,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { reloadCountSource } from '../data/busSources.js';\nimport type { PartialContext } from '../types/Context.js';\n\nexport interface NotifyReloadOptions {\n reason: string;\n}\n\n/**\n * Notifies clients that a reload is needed by incrementing the session version.\n */\nexport async function notifyReload(\n options: NotifyReloadOptions,\n context: PartialContext<'bus' | 'telemetryClient', 'sequence'>,\n): Promise<void> {\n const { reason } = options;\n const { bus, session, telemetryClient } = context;\n\n await telemetryClient.tracer.startActiveSpan('NOTIFY_RELOAD', (span) => {\n session.sequence++;\n\n span.setAttributes({ sequence: session.sequence, reason });\n\n // Publish using .path for easier testing\n bus.publish(reloadCountSource.path, session.sequence);\n });\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type z from 'zod';
|
|
1
|
+
import type { z } from 'zod/v4-mini';
|
|
2
2
|
import type { DataBus, DataBusPath } from '@ms-cloudpack/data-bus';
|
|
3
3
|
/**
|
|
4
4
|
* Waits for data to be published on a specific bus path, with a timeout.
|
|
@@ -7,7 +7,7 @@ export declare function waitForBusData<T>(params: {
|
|
|
7
7
|
/** Data bus to listen on */
|
|
8
8
|
bus: DataBus;
|
|
9
9
|
/** Path to subscribe to */
|
|
10
|
-
source: DataBusPath<z.
|
|
10
|
+
source: DataBusPath<z.ZodMiniType>;
|
|
11
11
|
/** Timeout in milliseconds */
|
|
12
12
|
timeoutMs?: number;
|
|
13
13
|
}): Promise<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForBusData.d.ts","sourceRoot":"","sources":["../../src/utilities/waitForBusData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"waitForBusData.d.ts","sourceRoot":"","sources":["../../src/utilities/waitForBusData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE;IAC9C,4BAA4B;IAC5B,GAAG,EAAE,OAAO,CAAC;IACb,2BAA2B;IAC3B,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;IACnC,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,CAAC,CAAC,CAgBb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"waitForBusData.js","sourceRoot":"","sources":["../../src/utilities/waitForBusData.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAI,MAOvC;IACC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;IACnD,OAAO,IAAI,OAAO,CAAI,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACjC,sCAAsC;QACtC,MAAM,WAAW,GAAe,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,KAAc,EAAE,EAAE;YACvE,YAAY,CAAC,SAAS,CAAC,CAAC;YACxB,GAAG,CAAC,KAAU,CAAC,CAAC;YAChB,WAAW,EAAE,CAAC;QAChB,CAAC,CAAC,CAAC;QAEH,iBAAiB;QACjB,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;YAChC,WAAW,EAAE,CAAC;YACd,GAAG,CAAC,IAAI,KAAK,CAAC,wCAAwC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAClF,CAAC,EAAE,SAAS,CAAC,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import type z from 'zod';\nimport type { DataBus, DataBusPath } from '@ms-cloudpack/data-bus';\n\n/**\n * Waits for data to be published on a specific bus path, with a timeout.\n */\nexport async function waitForBusData<T>(params: {\n /** Data bus to listen on */\n bus: DataBus;\n /** Path to subscribe to */\n source: DataBusPath<z.
|
|
1
|
+
{"version":3,"file":"waitForBusData.js","sourceRoot":"","sources":["../../src/utilities/waitForBusData.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAI,MAOvC;IACC,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;IACnD,OAAO,IAAI,OAAO,CAAI,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE;QACjC,sCAAsC;QACtC,MAAM,WAAW,GAAe,GAAG,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,KAAc,EAAE,EAAE;YACvE,YAAY,CAAC,SAAS,CAAC,CAAC;YACxB,GAAG,CAAC,KAAU,CAAC,CAAC;YAChB,WAAW,EAAE,CAAC;QAChB,CAAC,CAAC,CAAC;QAEH,iBAAiB;QACjB,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;YAChC,WAAW,EAAE,CAAC;YACd,GAAG,CAAC,IAAI,KAAK,CAAC,wCAAwC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;QAClF,CAAC,EAAE,SAAS,CAAC,CAAC;IAChB,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import type { z } from 'zod/v4-mini';\nimport type { DataBus, DataBusPath } from '@ms-cloudpack/data-bus';\n\n/**\n * Waits for data to be published on a specific bus path, with a timeout.\n */\nexport async function waitForBusData<T>(params: {\n /** Data bus to listen on */\n bus: DataBus;\n /** Path to subscribe to */\n source: DataBusPath<z.ZodMiniType>;\n /** Timeout in milliseconds */\n timeoutMs?: number;\n}): Promise<T> {\n const { bus, source, timeoutMs = 120000 } = params;\n return new Promise<T>((res, rej) => {\n // Set up subscription to the bus path\n const unsubscribe: () => void = bus.subscribe(source, (value: unknown) => {\n clearTimeout(timeoutId);\n res(value as T);\n unsubscribe();\n });\n\n // Set up timeout\n const timeoutId = setTimeout(() => {\n unsubscribe();\n rej(new Error(`Timeout waiting for bus data on path ${source.path.join('.')}`));\n }, timeoutMs);\n });\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/api-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.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",
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ms-cloudpack/bundler": "^0.25.
|
|
27
|
-
"@ms-cloudpack/common-types": "^0.
|
|
28
|
-
"@ms-cloudpack/config": "^0.35.
|
|
29
|
-
"@ms-cloudpack/create-express-app": "^1.10.
|
|
30
|
-
"@ms-cloudpack/data-bus": "^0.
|
|
26
|
+
"@ms-cloudpack/bundler": "^0.25.15",
|
|
27
|
+
"@ms-cloudpack/common-types": "^0.25.1",
|
|
28
|
+
"@ms-cloudpack/config": "^0.35.12",
|
|
29
|
+
"@ms-cloudpack/create-express-app": "^1.10.37",
|
|
30
|
+
"@ms-cloudpack/data-bus": "^0.5.0",
|
|
31
31
|
"@ms-cloudpack/environment": "^0.1.1",
|
|
32
|
-
"@ms-cloudpack/esm-stub-utilities": "^0.
|
|
33
|
-
"@ms-cloudpack/file-watcher": "^0.3.
|
|
34
|
-
"@ms-cloudpack/import-map": "^0.10.
|
|
32
|
+
"@ms-cloudpack/esm-stub-utilities": "^0.15.1",
|
|
33
|
+
"@ms-cloudpack/file-watcher": "^0.3.8",
|
|
34
|
+
"@ms-cloudpack/import-map": "^0.10.30",
|
|
35
35
|
"@ms-cloudpack/json-utilities": "^0.1.10",
|
|
36
|
-
"@ms-cloudpack/package-hashes": "^0.8.
|
|
37
|
-
"@ms-cloudpack/package-utilities": "^12.3.
|
|
36
|
+
"@ms-cloudpack/package-hashes": "^0.8.13",
|
|
37
|
+
"@ms-cloudpack/package-utilities": "^12.3.14",
|
|
38
38
|
"@ms-cloudpack/path-string-parsing": "^1.2.7",
|
|
39
|
-
"@ms-cloudpack/path-utilities": "^3.1.
|
|
40
|
-
"@ms-cloudpack/remote-cache": "^0.11.
|
|
41
|
-
"@ms-cloudpack/task-reporter": "^0.17.
|
|
42
|
-
"@ms-cloudpack/telemetry": "^0.11.
|
|
39
|
+
"@ms-cloudpack/path-utilities": "^3.1.8",
|
|
40
|
+
"@ms-cloudpack/remote-cache": "^0.11.24",
|
|
41
|
+
"@ms-cloudpack/task-reporter": "^0.17.2",
|
|
42
|
+
"@ms-cloudpack/telemetry": "^0.11.26",
|
|
43
43
|
"@trpc/client": "^11.1.1",
|
|
44
44
|
"@trpc/server": "^11.1.1",
|
|
45
45
|
"cors": "^2.8.5",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"p-queue": "^8.0.1",
|
|
51
51
|
"source-map": "^0.7.0",
|
|
52
52
|
"ws": "^8.16.0",
|
|
53
|
-
"zod": "^3.
|
|
53
|
+
"zod": "^3.25.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
export declare const ZodTaskEndDescription: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5
|
-
text: z.ZodType<string, z.ZodTypeDef, string>;
|
|
6
|
-
source: z.ZodType<string, z.ZodTypeDef, string>;
|
|
7
|
-
location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
|
|
8
|
-
notes: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined>;
|
|
9
|
-
}, "strict", z.ZodTypeAny, import("@ms-cloudpack/common-types").BundleMessage, import("@ms-cloudpack/common-types").BundleMessage>, "many">>;
|
|
10
|
-
warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
-
text: z.ZodType<string, z.ZodTypeDef, string>;
|
|
12
|
-
source: z.ZodType<string, z.ZodTypeDef, string>;
|
|
13
|
-
location: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageLocation | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageLocation | undefined>;
|
|
14
|
-
notes: z.ZodType<import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined, z.ZodTypeDef, import("@ms-cloudpack/common-types").BundleMessageNote[] | undefined>;
|
|
15
|
-
}, "strict", z.ZodTypeAny, import("@ms-cloudpack/common-types").BundleMessage, import("@ms-cloudpack/common-types").BundleMessage>, "many">>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
id: string;
|
|
18
|
-
errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
19
|
-
warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
id: string;
|
|
22
|
-
errors?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
23
|
-
warnings?: import("@ms-cloudpack/common-types").BundleMessage[] | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
export type TaskEndDescription = z.infer<typeof ZodTaskEndDescription>;
|
|
26
|
-
//# sourceMappingURL=TaskEndDescription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaskEndDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskEndDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;EAIhC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
import { ZodTaskMessage } from './TaskMessage.js';
|
|
3
|
-
export const ZodTaskEndDescription = z.object({
|
|
4
|
-
id: z.string(),
|
|
5
|
-
errors: z.array(ZodTaskMessage).optional(),
|
|
6
|
-
warnings: z.array(ZodTaskMessage).optional(),
|
|
7
|
-
});
|
|
8
|
-
//# sourceMappingURL=TaskEndDescription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaskEndDescription.js","sourceRoot":"","sources":["../../src/types/TaskEndDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AACpB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;IAC1C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC","sourcesContent":["import z from 'zod';\nimport { ZodTaskMessage } from './TaskMessage.js';\n\nexport const ZodTaskEndDescription = z.object({\n id: z.string(),\n errors: z.array(ZodTaskMessage).optional(),\n warnings: z.array(ZodTaskMessage).optional(),\n});\n\nexport type TaskEndDescription = z.infer<typeof ZodTaskEndDescription>;\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import z from 'zod';
|
|
2
|
-
export declare const ZodTaskStartDescription: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
name: z.ZodOptional<z.ZodString>;
|
|
5
|
-
inputPath: z.ZodOptional<z.ZodString>;
|
|
6
|
-
outputPath: z.ZodOptional<z.ZodString>;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
id: string;
|
|
9
|
-
name?: string | undefined;
|
|
10
|
-
inputPath?: string | undefined;
|
|
11
|
-
outputPath?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
id: string;
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
inputPath?: string | undefined;
|
|
16
|
-
outputPath?: string | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
export type TaskStartDescription = z.infer<typeof ZodTaskStartDescription>;
|
|
19
|
-
//# sourceMappingURL=TaskStartDescription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStartDescription.d.ts","sourceRoot":"","sources":["../../src/types/TaskStartDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStartDescription.js","sourceRoot":"","sources":["../../src/types/TaskStartDescription.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC","sourcesContent":["import z from 'zod';\n\nexport const ZodTaskStartDescription = z.object({\n id: z.string(),\n name: z.string().optional(),\n inputPath: z.string().optional(),\n outputPath: z.string().optional(),\n});\n\nexport type TaskStartDescription = z.infer<typeof ZodTaskStartDescription>;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZodGetLinkConfigOutput.d.ts","sourceRoot":"","sources":["../../src/types/ZodGetLinkConfigOutput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AACxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAQtE,eAAO,MAAM,sBAAsB,EAAE,SAAS,CAAC,mBAAmB,CAOlD,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { matchingZodObject } from '../utilities/matchingZodObject.js';
|
|
3
|
-
// Minimum acceptable match object for a low maintenance burden.
|
|
4
|
-
const ZodPackageSettingsMatchObject = z.object({ name: z.string(), version: z.string().optional() });
|
|
5
|
-
const ZodPackageSettingsMatch = z.union([z.string(), ZodPackageSettingsMatchObject]);
|
|
6
|
-
const ZodGeneratedPackageSettingsMatch = z.union([z.string(), ZodPackageSettingsMatchObject.required()]);
|
|
7
|
-
export const ZodGetLinkConfigOutput = matchingZodObject({
|
|
8
|
-
packageSettings: z.array(z.object({ match: z.union([ZodPackageSettingsMatch, z.array(ZodPackageSettingsMatch)]) }).passthrough()),
|
|
9
|
-
generated: z
|
|
10
|
-
.object({ packageSettings: z.array(z.object({ match: ZodGeneratedPackageSettingsMatch }).passthrough()) })
|
|
11
|
-
.passthrough(),
|
|
12
|
-
}).passthrough();
|
|
13
|
-
//# sourceMappingURL=ZodGetLinkConfigOutput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZodGetLinkConfigOutput.js","sourceRoot":"","sources":["../../src/types/ZodGetLinkConfigOutput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAkB,MAAM,KAAK,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,gEAAgE;AAChE,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AACrG,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,6BAA6B,CAAC,CAAC,CAAC;AACrF,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,6BAA6B,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAEzG,MAAM,CAAC,MAAM,sBAAsB,GAAmC,iBAAiB,CAAsB;IAC3G,eAAe,EAAE,CAAC,CAAC,KAAK,CACtB,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,uBAAuB,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CACxG;IACD,SAAS,EAAE,CAAC;SACT,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,gCAAgC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC;SACzG,WAAW,EAAE;CACjB,CAAC,CAAC,WAAW,EAAE,CAAC","sourcesContent":["import { z, type ZodSchema } from 'zod';\nimport type { CloudpackLinkConfig } from '@ms-cloudpack/common-types';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\n\n// Minimum acceptable match object for a low maintenance burden.\nconst ZodPackageSettingsMatchObject = z.object({ name: z.string(), version: z.string().optional() });\nconst ZodPackageSettingsMatch = z.union([z.string(), ZodPackageSettingsMatchObject]);\nconst ZodGeneratedPackageSettingsMatch = z.union([z.string(), ZodPackageSettingsMatchObject.required()]);\n\nexport const ZodGetLinkConfigOutput: ZodSchema<CloudpackLinkConfig> = matchingZodObject<CloudpackLinkConfig>({\n packageSettings: z.array(\n z.object({ match: z.union([ZodPackageSettingsMatch, z.array(ZodPackageSettingsMatch)]) }).passthrough(),\n ),\n generated: z\n .object({ packageSettings: z.array(z.object({ match: ZodGeneratedPackageSettingsMatch }).passthrough()) })\n .passthrough(),\n}).passthrough();\n"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ZodNotifyLinkChangeInput: z.ZodObject<{
|
|
3
|
-
packagePath: z.ZodString;
|
|
4
|
-
hash: z.ZodOptional<z.ZodString>;
|
|
5
|
-
definition: z.ZodOptional<z.ZodObject<{
|
|
6
|
-
name: z.ZodString;
|
|
7
|
-
version: z.ZodString;
|
|
8
|
-
exports: z.ZodAny;
|
|
9
|
-
dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUndefined, z.ZodString]>>>;
|
|
10
|
-
peerDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUndefined, z.ZodString]>>>;
|
|
11
|
-
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
name: string;
|
|
13
|
-
version: string;
|
|
14
|
-
exports?: any;
|
|
15
|
-
dependencies?: Record<string, string | undefined> | undefined;
|
|
16
|
-
peerDependencies?: Record<string, string | undefined> | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
name: string;
|
|
19
|
-
version: string;
|
|
20
|
-
exports?: any;
|
|
21
|
-
dependencies?: Record<string, string | undefined> | undefined;
|
|
22
|
-
peerDependencies?: Record<string, string | undefined> | undefined;
|
|
23
|
-
}>>;
|
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
packagePath: string;
|
|
26
|
-
hash?: string | undefined;
|
|
27
|
-
definition?: {
|
|
28
|
-
name: string;
|
|
29
|
-
version: string;
|
|
30
|
-
exports?: any;
|
|
31
|
-
dependencies?: Record<string, string | undefined> | undefined;
|
|
32
|
-
peerDependencies?: Record<string, string | undefined> | undefined;
|
|
33
|
-
} | undefined;
|
|
34
|
-
}, {
|
|
35
|
-
packagePath: string;
|
|
36
|
-
hash?: string | undefined;
|
|
37
|
-
definition?: {
|
|
38
|
-
name: string;
|
|
39
|
-
version: string;
|
|
40
|
-
exports?: any;
|
|
41
|
-
dependencies?: Record<string, string | undefined> | undefined;
|
|
42
|
-
peerDependencies?: Record<string, string | undefined> | undefined;
|
|
43
|
-
} | undefined;
|
|
44
|
-
}>;
|
|
45
|
-
//# sourceMappingURL=ZodNotifyLinkChangeInput.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZodNotifyLinkChangeInput.d.ts","sourceRoot":"","sources":["../../src/types/ZodNotifyLinkChangeInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ZodLinkPackageDefinition } from '../types/LinkPath.js';
|
|
3
|
-
export const ZodNotifyLinkChangeInput = z.object({
|
|
4
|
-
packagePath: z.string(),
|
|
5
|
-
hash: z.string().optional(),
|
|
6
|
-
definition: ZodLinkPackageDefinition.optional(),
|
|
7
|
-
});
|
|
8
|
-
//# sourceMappingURL=ZodNotifyLinkChangeInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZodNotifyLinkChangeInput.js","sourceRoot":"","sources":["../../src/types/ZodNotifyLinkChangeInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,UAAU,EAAE,wBAAwB,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { ZodLinkPackageDefinition } from '../types/LinkPath.js';\n\nexport const ZodNotifyLinkChangeInput = z.object({\n packagePath: z.string(),\n hash: z.string().optional(),\n definition: ZodLinkPackageDefinition.optional(),\n});\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZodResolveMap.d.ts","sourceRoot":"","sources":["../../src/types/ZodResolveMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AACxC,OAAO,KAAK,EAAE,UAAU,EAAmB,MAAM,4BAA4B,CAAC;AAgB9E,eAAO,MAAM,aAAa,EAAE,SAAS,CAAC,UAAU,CAA4C,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { matchingZodObject } from '../utilities/matchingZodObject.js';
|
|
3
|
-
const ZodResolveMapEntry = z.lazy(() => matchingZodObject({
|
|
4
|
-
name: z.string(),
|
|
5
|
-
version: z.string(),
|
|
6
|
-
path: z.string(),
|
|
7
|
-
dependencies: z.record(z.string()),
|
|
8
|
-
requiredBy: z.record(z.string()),
|
|
9
|
-
isExternal: z.boolean().optional(),
|
|
10
|
-
isLinked: z.boolean().optional(),
|
|
11
|
-
scopedVersions: z.record(z.lazy(() => ZodResolveMapEntry)).optional(),
|
|
12
|
-
}));
|
|
13
|
-
export const ZodResolveMap = z.record(z.string(), ZodResolveMapEntry);
|
|
14
|
-
//# sourceMappingURL=ZodResolveMap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ZodResolveMap.js","sourceRoot":"","sources":["../../src/types/ZodResolveMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAkB,MAAM,KAAK,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,MAAM,kBAAkB,GAA+B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACjE,iBAAiB,CAAkB;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,QAAQ,EAAE;CACtE,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA0B,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,kBAAkB,CAAC,CAAC","sourcesContent":["import { z, type ZodSchema } from 'zod';\nimport type { ResolveMap, ResolveMapEntry } from '@ms-cloudpack/common-types';\nimport { matchingZodObject } from '../utilities/matchingZodObject.js';\n\nconst ZodResolveMapEntry: ZodSchema<ResolveMapEntry> = z.lazy(() =>\n matchingZodObject<ResolveMapEntry>({\n name: z.string(),\n version: z.string(),\n path: z.string(),\n dependencies: z.record(z.string()),\n requiredBy: z.record(z.string()),\n isExternal: z.boolean().optional(),\n isLinked: z.boolean().optional(),\n scopedVersions: z.record(z.lazy(() => ZodResolveMapEntry)).optional(),\n }),\n);\n\nexport const ZodResolveMap: ZodSchema<ResolveMap> = z.record(z.string(), ZodResolveMapEntry);\n"]}
|