@platforma-sdk/test 1.42.20 → 1.42.28

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.ts CHANGED
@@ -3,3 +3,4 @@ export * from './test-template';
3
3
  export * from './test-block';
4
4
  export { awaitStableState } from './util';
5
5
  export * as ML from '@milaboratories/pl-middle-layer';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE1C,OAAO,KAAK,EAAE,MAAM,iCAAiC,CAAC"}
@@ -1,4 +1,5 @@
1
- import { InferBlockState, LocalImportFileHandle, Platforma, Project, MiddleLayer } from '@milaboratories/pl-middle-layer';
1
+ import type { InferBlockState, LocalImportFileHandle, Platforma, Project } from '@milaboratories/pl-middle-layer';
2
+ import { MiddleLayer } from '@milaboratories/pl-middle-layer';
2
3
  export type AwaitBlockDoneOps = {
3
4
  timeout?: number | AbortSignal;
4
5
  ignoreBlockError?: boolean;
@@ -13,12 +14,13 @@ export interface RawHelpers {
13
14
  awaitBlockDoneAndGetStableBlockState<Pl extends Platforma>(blockId: string, timeoutOrOps?: number | AwaitBlockDoneOps): Promise<InferBlockState<Pl>>;
14
15
  getLocalFileHandle(localPath: string): Promise<LocalImportFileHandle>;
15
16
  }
16
- export declare const blockTest: import('vitest').TestAPI<{
17
- pl: import('@milaboratories/pl-client').PlClient;
18
- createTree: (res: import('@milaboratories/pl-client').ResourceId, ops?: import('@milaboratories/pl-tree').SynchronizedTreeOps) => Promise<import('@milaboratories/pl-tree').SynchronizedTreeState>;
19
- rootTree: import('@milaboratories/pl-tree').SynchronizedTreeState;
17
+ export declare const blockTest: import("vitest").TestAPI<{
18
+ pl: import("@milaboratories/pl-client").PlClient;
19
+ createTree: (res: import("@milaboratories/pl-client").ResourceId, ops?: import("@milaboratories/pl-tree").SynchronizedTreeOps) => Promise<import("@milaboratories/pl-tree").SynchronizedTreeState>;
20
+ rootTree: import("@milaboratories/pl-tree").SynchronizedTreeState;
20
21
  tmpFolder: string;
21
22
  ml: MiddleLayer;
22
23
  rawPrj: Project;
23
24
  helpers: RawHelpers;
24
25
  }>;
26
+ //# sourceMappingURL=test-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-block.d.ts","sourceRoot":"","sources":["../src/test-block.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EAAE,qBAAqB,EACtC,SAAS,EACT,OAAO,EACR,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,WAAW,EACZ,MAAM,iCAAiC,CAAC;AAIzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,WAAW,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC;AA0BF,eAAO,MAAM,gCAAgC,OAAO,CAAC;AAuCrD,MAAM,WAAW,UAAU;IACzB,cAAc,CACZ,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,GAAG,iBAAiB,GACxC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,oCAAoC,CAAC,EAAE,SAAS,SAAS,EACvD,OAAO,EAAE,MAAM,EACf,YAAY,CAAC,EAAE,MAAM,GAAG,iBAAiB,GACxC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACvE;AAED,eAAO,MAAM,SAAS;;;;;;;;EA4DpB,CAAC"}
package/dist/test-pl.d.ts CHANGED
@@ -1,8 +1,10 @@
1
- import { PlClient, ResourceId } from '@milaboratories/pl-middle-layer';
2
- import { SynchronizedTreeOps, SynchronizedTreeState } from '@milaboratories/pl-tree';
3
- export declare const plTest: import('vitest').TestAPI<{
1
+ import type { PlClient, ResourceId } from '@milaboratories/pl-middle-layer';
2
+ import type { SynchronizedTreeOps } from '@milaboratories/pl-tree';
3
+ import { SynchronizedTreeState } from '@milaboratories/pl-tree';
4
+ export declare const plTest: import("vitest").TestAPI<{
4
5
  pl: PlClient;
5
6
  createTree: (res: ResourceId, ops?: SynchronizedTreeOps) => Promise<SynchronizedTreeState>;
6
7
  rootTree: SynchronizedTreeState;
7
8
  tmpFolder: string;
8
9
  }>;
10
+ //# sourceMappingURL=test-pl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-pl.d.ts","sourceRoot":"","sources":["../src/test-pl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,QAAQ,EACR,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAMtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAMhE,eAAO,MAAM,MAAM;;sBAGZ,UAAU,QACT,mBAAmB,KACpB,OAAO,CAAC,qBAAqB,CAAC;;;EAiE/B,CAAC"}
@@ -1,6 +1,7 @@
1
- import { ComputableCtx, ComputableStableDefined, UnwrapComputables, Computable } from '@milaboratories/computable';
2
- import { AnyRef, MiddleLayerDriverKit, PlClient, PlTransaction, ResourceId, TemplateSpecAny } from '@milaboratories/pl-middle-layer';
3
- import { PlTreeEntry, PlTreeNodeAccessor, SynchronizedTreeState } from '@milaboratories/pl-tree';
1
+ import type { ComputableCtx, ComputableStableDefined, UnwrapComputables } from '@milaboratories/computable';
2
+ import { Computable } from '@milaboratories/computable';
3
+ import type { AnyRef, MiddleLayerDriverKit, PlClient, PlTransaction, ResourceId, TemplateSpecAny } from '@milaboratories/pl-middle-layer';
4
+ import type { PlTreeEntry, PlTreeNodeAccessor, SynchronizedTreeState } from '@milaboratories/pl-tree';
4
5
  export type WorkflowRenderOps = {
5
6
  parent?: ResourceId;
6
7
  exportProcessor?: TemplateSpecAny;
@@ -33,14 +34,15 @@ export declare class TplTestHelpers {
33
34
  private readonly resultRootTree;
34
35
  constructor(pl: PlClient, resultRootRid: ResourceId, resultRootTree: SynchronizedTreeState);
35
36
  renderTemplate<const O extends string>(ephemeral: boolean, template: string | TemplateSpecAny, outputs: O[], inputs: (tx: PlTransaction) => Record<string, AnyRef> | Promise<Record<string, AnyRef>>): Promise<TestRenderResults<O>>;
36
- createObject(tx: PlTransaction, value: any): import('@milaboratories/pl-client').ResourceRef;
37
+ createObject(tx: PlTransaction, value: any): import("@milaboratories/pl-client").ResourceRef;
37
38
  renderWorkflow(workflow: string | TemplateSpecAny, preRun: boolean, args: Record<string, any> | Promise<Record<string, any>>, ops?: WorkflowRenderOps): Promise<TestWorkflowResults>;
38
39
  }
39
- export declare const tplTest: import('vitest').TestAPI<{
40
+ export declare const tplTest: import("vitest").TestAPI<{
40
41
  pl: PlClient;
41
- createTree: (res: ResourceId, ops?: import('@milaboratories/pl-tree').SynchronizedTreeOps) => Promise<SynchronizedTreeState>;
42
+ createTree: (res: ResourceId, ops?: import("@milaboratories/pl-tree").SynchronizedTreeOps) => Promise<SynchronizedTreeState>;
42
43
  rootTree: SynchronizedTreeState;
43
44
  tmpFolder: string;
44
45
  helper: TplTestHelpers;
45
46
  driverKit: MiddleLayerDriverKit;
46
47
  }>;
48
+ //# sourceMappingURL=test-template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-template.d.ts","sourceRoot":"","sources":["../src/test-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL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AG,EAAE,aAAa,KAAK,CAAC;IAY7D,MAAM,CAAC,CAAC,EACb,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,CAAC,GAAG,EAAE,kBAAkB,GAAG,SAAS,EAAE,GAAG,EAAE,aAAa,KAAK,CAAC;CAMrE;AAED,qBAAa,cAAc;IAEvB,OAAO,CAAC,QAAQ,CAAC,EAAE;IACnB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,cAAc;gBAFd,EAAE,EAAE,QAAQ,EACZ,aAAa,EAAE,UAAU,EACzB,cAAc,EAAE,qBAAqB;IAGlD,cAAc,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,EACzC,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,MAAM,GAAG,eAAe,EAClC,OAAO,EAAE,CAAC,EAAE,EACZ,MAAM,EAAE,CAAC,EAAE,EAAE,aAAa,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GACtF,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;IA2BhC,YAAY,CAAC,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG;IAIpC,cAAc,CAClB,QAAQ,EAAE,MAAM,GAAG,eAAe,EAClC,MAAM,EAAE,OAAO,EACf,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EACxD,GAAG,GAAE,iBAAsB,GAC1B,OAAO,CAAC,mBAAmB,CAAC;CAiChC;AAED,eAAO,MAAM,OAAO;;;;;;;EA4BlB,CAAC"}
package/dist/util.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { Computable } from '@milaboratories/computable';
2
- import { BigIntStats } from 'node:fs';
1
+ import type { Computable } from '@milaboratories/computable';
2
+ import type { BigIntStats } from 'node:fs';
3
3
  export declare function tryStat(path: string): Promise<BigIntStats | undefined>;
4
4
  export declare function awaitStableState<S>(computable: Computable<unknown, S>, timeout?: number | AbortSignal): Promise<S>;
5
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,wBAAsB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC,CAS5E;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EACtC,UAAU,EAAE,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,EAClC,OAAO,GAAE,MAAM,GAAG,WAAkB,GACnC,OAAO,CAAC,CAAC,CAAC,CAeZ"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/test",
3
- "version": "1.42.20",
3
+ "version": "1.42.28",
4
4
  "description": "Typescript Block Test Helpers",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.cjs",
@@ -18,19 +18,19 @@
18
18
  "license": "UNLICENSED",
19
19
  "dependencies": {
20
20
  "vitest": "^2.1.9",
21
- "@milaboratories/pl-tree": "^1.7.6",
22
- "@milaboratories/computable": "^2.6.4",
23
- "@platforma-sdk/model": "~1.42.20",
24
- "@milaboratories/pl-client": "~2.11.9",
25
- "@milaboratories/pl-middle-layer": "~1.42.3",
26
- "@milaboratories/ts-helpers": "^1.4.4"
21
+ "@platforma-sdk/model": "1.42.25",
22
+ "@milaboratories/pl-middle-layer": "1.42.9",
23
+ "@milaboratories/computable": "2.6.5",
24
+ "@milaboratories/pl-tree": "1.7.7",
25
+ "@milaboratories/pl-client": "2.11.11",
26
+ "@milaboratories/ts-helpers": "1.4.5"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "~20.16.15",
30
30
  "typescript": "~5.6.3",
31
- "@milaboratories/ts-builder": "1.0.1",
31
+ "@milaboratories/build-configs": "1.0.8",
32
32
  "@milaboratories/ts-configs": "1.0.6",
33
- "@milaboratories/build-configs": "1.0.6"
33
+ "@milaboratories/ts-builder": "1.0.5"
34
34
  },
35
35
  "scripts": {
36
36
  "type-check": "ts-builder types --target node",