@platforma-sdk/model 1.2.22 → 1.2.23
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/README.md +3 -0
- package/dist/block_api.d.ts +62 -0
- package/dist/block_api.d.ts.map +1 -0
- package/dist/block_state_patch.d.ts +5 -0
- package/dist/block_state_patch.d.ts.map +1 -0
- package/dist/block_state_util.d.ts +16 -0
- package/dist/block_state_util.d.ts.map +1 -0
- package/dist/branding.d.ts +7 -0
- package/dist/branding.d.ts.map +1 -0
- package/dist/builder.d.ts +111 -0
- package/dist/builder.d.ts.map +1 -0
- package/dist/components/PlDataTable.d.ts +36 -0
- package/dist/components/PlDataTable.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/config/actions.d.ts +45 -0
- package/dist/config/actions.d.ts.map +1 -0
- package/dist/config/actions_kinds.d.ts +114 -0
- package/dist/config/actions_kinds.d.ts.map +1 -0
- package/dist/config/index.d.ts +7 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/model.d.ts +116 -0
- package/dist/config/model.d.ts.map +1 -0
- package/dist/config/model_meta.d.ts +6 -0
- package/dist/config/model_meta.d.ts.map +1 -0
- package/dist/config/type_engine.d.ts +36 -0
- package/dist/config/type_engine.d.ts.map +1 -0
- package/dist/config/type_util.d.ts +12 -0
- package/dist/config/type_util.d.ts.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -727
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +697 -0
- package/dist/index.mjs.map +1 -0
- package/dist/internal.d.ts +19 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/pframe.d.ts +11 -0
- package/dist/pframe.d.ts.map +1 -0
- package/dist/platforma.d.ts +18 -0
- package/dist/platforma.d.ts.map +1 -0
- package/dist/ref_util.d.ts +15 -0
- package/dist/ref_util.d.ts.map +1 -0
- package/dist/render/accessor.d.ts +71 -0
- package/dist/render/accessor.d.ts.map +1 -0
- package/dist/render/api.d.ts +48 -0
- package/dist/render/api.d.ts.map +1 -0
- package/dist/render/future.d.ts +13 -0
- package/dist/render/future.d.ts.map +1 -0
- package/dist/render/index.d.ts +6 -0
- package/dist/render/index.d.ts.map +1 -0
- package/dist/render/internal.d.ts +53 -0
- package/dist/render/internal.d.ts.map +1 -0
- package/dist/render/traversal_ops.d.ts +46 -0
- package/dist/render/traversal_ops.d.ts.map +1 -0
- package/dist/sdk_info.d.ts +5 -0
- package/dist/sdk_info.d.ts.map +1 -0
- package/dist/unionize.d.ts +12 -0
- package/dist/unionize.d.ts.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/package.json +11 -11
- package/src/config/index.ts +1 -1
- package/src/render/index.ts +1 -1
- package/src/version.ts +1 -1
- package/dist/index.cjs +0 -779
- package/dist/index.cjs.map +0 -1
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { BlockOutputsBase, BlockState, NavigationState } from '@milaboratories/pl-model-common';
|
|
2
|
+
import { BlockStatePatch } from './block_state_patch';
|
|
3
|
+
/** Returned by state subscription methods to be able to cancel the subscription. */
|
|
4
|
+
export type CancelSubscription = () => void;
|
|
5
|
+
/** Defines methods to read and write current block data. */
|
|
6
|
+
export interface BlockApi<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> {
|
|
7
|
+
/**
|
|
8
|
+
* Use this method to retrieve block state during UI initialization. Then use
|
|
9
|
+
* {@link onStateUpdates} method to subscribe for updates.
|
|
10
|
+
* */
|
|
11
|
+
loadBlockState(): Promise<BlockState<Args, Outputs, UiState, Href>>;
|
|
12
|
+
/**
|
|
13
|
+
* Subscribe to updates of block state.
|
|
14
|
+
*
|
|
15
|
+
* This method internally have several ways to limit the rate at which new
|
|
16
|
+
* states are pushed to the corresponding callback. Among other rate limiting
|
|
17
|
+
* approaches it guarantees that new state will never be pushed to the
|
|
18
|
+
* supplied async callback until the previous call returns.
|
|
19
|
+
*
|
|
20
|
+
* It is a good idea to develop the callback in such a way that it will wait
|
|
21
|
+
* until the given state propagates all the way to the DOM. See for example
|
|
22
|
+
* nextTick() method from Vue framework to achieve this.
|
|
23
|
+
*
|
|
24
|
+
* This method will only push args and uiState patches if changes were made
|
|
25
|
+
* externally, i.e. by another user editing the same block.
|
|
26
|
+
*
|
|
27
|
+
* @return function that cancels created subscription
|
|
28
|
+
* */
|
|
29
|
+
onStateUpdates(cb: (updates: BlockStatePatch<Args, Outputs, UiState, Href>[]) => Promise<void>): CancelSubscription;
|
|
30
|
+
/**
|
|
31
|
+
* Sets block args.
|
|
32
|
+
*
|
|
33
|
+
* This method returns when corresponding arguments are safely saved so in
|
|
34
|
+
* case the window is closed there will be no information losses. This
|
|
35
|
+
* function under the hood may delay actual persistence of the supplied
|
|
36
|
+
* arguments.
|
|
37
|
+
* */
|
|
38
|
+
setBlockArgs(args: Args): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Sets block ui state.
|
|
41
|
+
*
|
|
42
|
+
* This method returns when corresponding arguments are safely saved so in
|
|
43
|
+
* case the window is closed there will be no information losses. This
|
|
44
|
+
* function under the hood may delay actual persistence of the supplied
|
|
45
|
+
* values.
|
|
46
|
+
* */
|
|
47
|
+
setBlockUiState(state: UiState): Promise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Sets block args and ui state.
|
|
50
|
+
*
|
|
51
|
+
* This method returns when corresponding arguments are safely saved so in
|
|
52
|
+
* case the window is closed there will be no information losses. This
|
|
53
|
+
* function under the hood may delay actual persistence of the supplied
|
|
54
|
+
* values.
|
|
55
|
+
* */
|
|
56
|
+
setBlockArgsAndUiState(args: Args, state: UiState): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Sets block navigatiopn state.
|
|
59
|
+
* */
|
|
60
|
+
setNavigationState(state: NavigationState<Href>): Promise<void>;
|
|
61
|
+
}
|
|
62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C;CACjE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Unionize } from './unionize';
|
|
2
|
+
import { BlockOutputsBase, BlockState } from '@milaboratories/pl-model-common';
|
|
3
|
+
/** Patch for the BlockState, pushed by onStateUpdates method in SDK. */
|
|
4
|
+
export type BlockStatePatch<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = Unionize<BlockState<Args, Outputs, UiState, Href>>;
|
|
5
|
+
//# sourceMappingURL=block_state_patch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block_state_patch.d.ts","sourceRoot":"","sources":["../src/block_state_patch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE/E,wEAAwE;AACxE,MAAM,MAAM,eAAe,CACzB,IAAI,GAAG,OAAO,EACd,OAAO,SAAS,gBAAgB,GAAG,gBAAgB,EACnD,OAAO,GAAG,OAAO,EACjB,IAAI,SAAS,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAE,IACtC,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BlockOutputsBase, ValueOrErrors } from '@milaboratories/pl-model-common';
|
|
2
|
+
export declare class OutputError extends Error {
|
|
3
|
+
readonly errors: string[];
|
|
4
|
+
readonly moreErrors: boolean;
|
|
5
|
+
constructor(errors: string[], moreErrors: boolean);
|
|
6
|
+
}
|
|
7
|
+
export declare function readOutput<T>(outputValue: ValueOrErrors<T>): T;
|
|
8
|
+
type ExtractValueType<V extends ValueOrErrors<unknown>> = Extract<V, {
|
|
9
|
+
ok: true;
|
|
10
|
+
}>['value'];
|
|
11
|
+
type SimpleOutputs<Outputs extends BlockOutputsBase> = {
|
|
12
|
+
[Key in keyof Outputs]: ExtractValueType<Outputs[Key]>;
|
|
13
|
+
};
|
|
14
|
+
export declare function wrapOutputs<Outputs extends BlockOutputsBase>(outputs: Outputs): SimpleOutputs<Outputs>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=block_state_util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block_state_util.d.ts","sourceRoot":"","sources":["../src/block_state_util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAElF,qBAAa,WAAY,SAAQ,KAAK;aAElB,MAAM,EAAE,MAAM,EAAE;aAChB,UAAU,EAAE,OAAO;gBADnB,MAAM,EAAE,MAAM,EAAE,EAChB,UAAU,EAAE,OAAO;CAItC;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAG9D;AAED,KAAK,gBAAgB,CAAC,CAAC,SAAS,aAAa,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC,OAAO,CAAC,CAAC;AAC5F,KAAK,aAAa,CAAC,OAAO,SAAS,gBAAgB,IAAI;KACpD,GAAG,IAAI,MAAM,OAAO,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;CACvD,CAAC;AAEF,wBAAgB,WAAW,CAAC,OAAO,SAAS,gBAAgB,EAC1D,OAAO,EAAE,OAAO,GACf,aAAa,CAAC,OAAO,CAAC,CAMxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branding.d.ts","sourceRoot":"","sources":["../src/branding.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AACrC,KAAK,KAAK,CAAC,CAAC,IAAI;IAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC;AAEjC,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { BlockRenderingMode, BlockSection, ValueOrErrors } from '@milaboratories/pl-model-common';
|
|
2
|
+
import { Checked, ConfigResult, PlResourceEntry, TypedConfig } from './config';
|
|
3
|
+
import { Platforma } from './platforma';
|
|
4
|
+
import { InferRenderFunctionReturn, RenderFunction } from './render';
|
|
5
|
+
type StdCtxArgsOnly<Args, UiState = undefined> = {
|
|
6
|
+
readonly $blockId: string;
|
|
7
|
+
readonly $args: Args;
|
|
8
|
+
readonly $ui: UiState;
|
|
9
|
+
};
|
|
10
|
+
export type StdCtx<Args, UiState = undefined> = StdCtxArgsOnly<Args, UiState> & {
|
|
11
|
+
readonly $prod: PlResourceEntry;
|
|
12
|
+
readonly $staging: PlResourceEntry;
|
|
13
|
+
};
|
|
14
|
+
export type ResolveCfgType<Cfg extends TypedConfig, Args, UiState = undefined> = ConfigResult<Cfg, StdCtx<Args, UiState>>;
|
|
15
|
+
type SectionsExpectedType = readonly BlockSection[];
|
|
16
|
+
type SectionsCfgChecked<Cfg extends TypedConfig, Args, UiState> = Checked<Cfg, ConfigResult<Cfg, StdCtxArgsOnly<Args, UiState>> extends SectionsExpectedType ? true : false>;
|
|
17
|
+
type InputsValidExpectedType = boolean;
|
|
18
|
+
type InputsValidCfgChecked<Cfg extends TypedConfig, Args, UiState> = Checked<Cfg, ConfigResult<Cfg, StdCtxArgsOnly<Args, UiState>> extends InputsValidExpectedType ? true : false>;
|
|
19
|
+
export type Code = {
|
|
20
|
+
type: 'plain';
|
|
21
|
+
content: string;
|
|
22
|
+
};
|
|
23
|
+
/** Field key to attach ConfAction information to a config type. */
|
|
24
|
+
declare const __function_handle__: unique symbol;
|
|
25
|
+
/** Creates branded Cfg type */
|
|
26
|
+
export type FunctionHandle<Return = unknown> = string & {
|
|
27
|
+
[__function_handle__]: Return;
|
|
28
|
+
};
|
|
29
|
+
export type ExtractFunctionHandleReturn<Func extends FunctionHandle> = Func[typeof __function_handle__];
|
|
30
|
+
export type TypedConfigOrFunctionHandle = TypedConfig | FunctionHandle;
|
|
31
|
+
export declare function isFunctionHandle(cfgOrFh: TypedConfigOrFunctionHandle): cfgOrFh is FunctionHandle;
|
|
32
|
+
type OnlyString<S> = S extends string ? S : '';
|
|
33
|
+
export type DeriveHref<S> = S extends readonly BlockSection[] ? OnlyString<Extract<S[number], {
|
|
34
|
+
type: 'link';
|
|
35
|
+
}>['href']> : never;
|
|
36
|
+
/** This structure is rendered from the configuration, type can accommodate any
|
|
37
|
+
* version of config structure. */
|
|
38
|
+
export type BlockConfigUniversal<Args = unknown, Outputs extends Record<string, TypedConfigOrFunctionHandle> = Record<string, TypedConfigOrFunctionHandle>> = {
|
|
39
|
+
/** SDK version used by the block */
|
|
40
|
+
readonly sdkVersion: string;
|
|
41
|
+
/** Main rendering mode for the block */
|
|
42
|
+
readonly renderingMode: BlockRenderingMode;
|
|
43
|
+
/** Initial value for the args when block is added to the project */
|
|
44
|
+
readonly initialArgs: Args;
|
|
45
|
+
/** @deprecated */
|
|
46
|
+
readonly canRun?: TypedConfigOrFunctionHandle;
|
|
47
|
+
/**
|
|
48
|
+
* Config to determine whether the block can be executed with current
|
|
49
|
+
* arguments.
|
|
50
|
+
*
|
|
51
|
+
* Optional to support earlier SDK version configs.
|
|
52
|
+
* */
|
|
53
|
+
readonly inputsValid?: TypedConfigOrFunctionHandle;
|
|
54
|
+
/** Configuration to derive list of section for the left overview panel */
|
|
55
|
+
readonly sections: TypedConfigOrFunctionHandle;
|
|
56
|
+
/** Configuration for the output cells */
|
|
57
|
+
readonly outputs: Outputs;
|
|
58
|
+
/** Config code bundle */
|
|
59
|
+
readonly code?: Code;
|
|
60
|
+
};
|
|
61
|
+
/** This structure is rendered from the configuration */
|
|
62
|
+
export type BlockConfig<Args = unknown, Outputs extends Record<string, TypedConfigOrFunctionHandle> = Record<string, TypedConfigOrFunctionHandle>> = Required<Omit<BlockConfigUniversal<Args, Outputs>, 'canRun' | 'code'>> & Pick<BlockConfigUniversal<Args, Outputs>, 'code'>;
|
|
63
|
+
/** Takes universal config, and converts it into latest structure */
|
|
64
|
+
export declare function normalizeBlockConfig<Args, Outputs extends Record<string, TypedConfigOrFunctionHandle>>(cfg: BlockConfigUniversal<Args, Outputs>): BlockConfig<Args, Outputs>;
|
|
65
|
+
/** Main entry point that each block should use in it's "config" module. Don't forget
|
|
66
|
+
* to call {@link done()} at the end of configuration. Value returned by this builder must be
|
|
67
|
+
* exported as constant with name "platforma" from the "config" module. */
|
|
68
|
+
export declare class BlockModel<Args, OutputsCfg extends Record<string, TypedConfigOrFunctionHandle>, UiState, Href extends `/${string}` = '/'> {
|
|
69
|
+
private readonly _renderingMode;
|
|
70
|
+
private readonly _initialArgs;
|
|
71
|
+
private readonly _outputs;
|
|
72
|
+
private readonly _inputsValid;
|
|
73
|
+
private readonly _sections;
|
|
74
|
+
private constructor();
|
|
75
|
+
/** Initiates configuration builder */
|
|
76
|
+
static create<Args, UiState = undefined>(renderingMode: BlockRenderingMode): BlockModel<Args, {}, UiState>;
|
|
77
|
+
/**
|
|
78
|
+
* Add output cell to the configuration
|
|
79
|
+
*
|
|
80
|
+
* @param key cell name, that can be used to retrieve the rendered value
|
|
81
|
+
* @param cfg configuration describing how to render cell value from the blocks
|
|
82
|
+
* workflow outputs
|
|
83
|
+
* */
|
|
84
|
+
output<const Key extends string, const Cfg extends TypedConfig>(key: Key, cfg: Cfg): BlockModel<Args, OutputsCfg & {
|
|
85
|
+
[K in Key]: Cfg;
|
|
86
|
+
}, UiState, Href>;
|
|
87
|
+
output<const Key extends string, const RF extends RenderFunction<Args, UiState>>(key: Key, rf: RF): BlockModel<Args, OutputsCfg & {
|
|
88
|
+
[K in Key]: FunctionHandle<InferRenderFunctionReturn<RF>>;
|
|
89
|
+
}, UiState, Href>;
|
|
90
|
+
/** @deprecated */
|
|
91
|
+
canRun<Cfg extends TypedConfig>(cfg: Cfg & InputsValidCfgChecked<Cfg, Args, UiState>): BlockModel<Args, OutputsCfg, UiState, Href>;
|
|
92
|
+
/** Sets custom configuration predicate on the block args at which block can be executed */
|
|
93
|
+
inputsValid<Cfg extends TypedConfig>(cfg: Cfg & InputsValidCfgChecked<Cfg, Args, UiState>): BlockModel<Args, OutputsCfg, UiState, Href>;
|
|
94
|
+
inputsValid<RF extends RenderFunction<Args, UiState, boolean>>(rf: RF): BlockModel<Args, OutputsCfg, UiState, Href>;
|
|
95
|
+
/** Sets the config to generate list of section in the left block overviews panel */
|
|
96
|
+
sections<const S extends SectionsExpectedType>(rf: S): BlockModel<Args, OutputsCfg, UiState, DeriveHref<S>>;
|
|
97
|
+
sections<const Ret extends SectionsExpectedType, const RF extends RenderFunction<Args, UiState, Ret>>(rf: RF): BlockModel<Args, OutputsCfg, UiState, DeriveHref<ReturnType<RF>>>;
|
|
98
|
+
sections<const Cfg extends TypedConfig>(cfg: Cfg & SectionsCfgChecked<Cfg, Args, UiState>): BlockModel<Args, OutputsCfg, UiState, DeriveHref<ConfigResult<Cfg, StdCtxArgsOnly<Args, UiState>>>>;
|
|
99
|
+
/** Sets initial args for the block, this value must be specified. */
|
|
100
|
+
initialArgs(value: Args): BlockModel<Args, OutputsCfg, UiState, Href>;
|
|
101
|
+
/** Renders all provided block settings into a pre-configured platforma API
|
|
102
|
+
* instance, that can be used in frontend to interact with block state, and
|
|
103
|
+
* other features provided by the platforma to the block. */
|
|
104
|
+
done(): Platforma<Args, InferOutputsFromConfigs<Args, OutputsCfg, UiState>, UiState, Href>;
|
|
105
|
+
}
|
|
106
|
+
export type InferOutputType<CfgOrFH, Args, UiState> = CfgOrFH extends TypedConfig ? ResolveCfgType<CfgOrFH, Args, UiState> : CfgOrFH extends FunctionHandle ? ExtractFunctionHandleReturn<CfgOrFH> : never;
|
|
107
|
+
type InferOutputsFromConfigs<Args, OutputsCfg extends Record<string, TypedConfigOrFunctionHandle>, UiState> = {
|
|
108
|
+
[Key in keyof OutputsCfg]: ValueOrErrors<InferOutputType<OutputsCfg[Key], Args, UiState>>;
|
|
109
|
+
};
|
|
110
|
+
export {};
|
|
111
|
+
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../src/builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAClG,OAAO,EAAE,OAAO,EAAE,YAAY,EAAgB,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE7F,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,yBAAyB,EAAa,cAAc,EAAE,MAAM,UAAU,CAAC;AAGhF,KAAK,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,IAAI;IAC/C,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;IACrB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,IAAI,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG;IAC9E,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,GAAG,SAAS,WAAW,EAAE,IAAI,EAAE,OAAO,GAAG,SAAS,IAAI,YAAY,CAC3F,GAAG,EACH,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CACtB,CAAC;AAEF,KAAK,oBAAoB,GAAG,SAAS,YAAY,EAAE,CAAC;AAEpD,KAAK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C9D,WAAW,CAAC,KAAK,EAAE,IAAI,GAAG,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC;IAU5E;;gEAE4D;IACrD,IAAI,IAAI,SAAS,CACtB,IAAI,EACJ,uBAAuB,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,EAClD,OAAO,EACP,IAAI,CACL;CAkBF;AAED,MAAM,MAAM,eAAe,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,IAAI,OAAO,SAAS,WAAW,GAC7E,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,GACtC,OAAO,SAAS,cAAc,GAC5B,2BAA2B,CAAC,OAAO,CAAC,GACpC,KAAK,CAAC;AAEZ,KAAK,uBAAuB,CAC1B,IAAI,EACJ,UAAU,SAAS,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,EAC9D,OAAO,IACL;KACD,GAAG,IAAI,MAAM,UAAU,GAAG,aAAa,CAAC,eAAe,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;CAC1F,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PTableRecordFilter, PTableSorting } from '@milaboratories/pl-model-common';
|
|
2
|
+
/** Data table state */
|
|
3
|
+
export type PlDataTableGridState = {
|
|
4
|
+
/** Includes column ordering */
|
|
5
|
+
columnOrder?: {
|
|
6
|
+
/** All colIds in order */
|
|
7
|
+
orderedColIds: string[];
|
|
8
|
+
};
|
|
9
|
+
/** Includes current sort columns and direction */
|
|
10
|
+
sort?: {
|
|
11
|
+
/** Sorted columns and directions in order */
|
|
12
|
+
sortModel: {
|
|
13
|
+
/** Column Id to apply the sort to. */
|
|
14
|
+
colId: string;
|
|
15
|
+
/** Sort direction */
|
|
16
|
+
sort: 'asc' | 'desc';
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
/** current sheet selections */
|
|
20
|
+
sheets?: Record<string, string>;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Params used to get p-table handle from the driver
|
|
24
|
+
*/
|
|
25
|
+
export type PTableParams = {
|
|
26
|
+
sorting?: PTableSorting[];
|
|
27
|
+
filters?: PTableRecordFilter[];
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* PlDataTable persisted state
|
|
31
|
+
*/
|
|
32
|
+
export type PlDataTableState = {
|
|
33
|
+
gridState: PlDataTableGridState;
|
|
34
|
+
pTableParams?: PTableParams;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=PlDataTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlDataTable.d.ts","sourceRoot":"","sources":["../../src/components/PlDataTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEpF,uBAAuB;AACvB,MAAM,MAAM,oBAAoB,GAAG;IACjC,+BAA+B;IAC/B,WAAW,CAAC,EAAE;QACZ,0BAA0B;QAC1B,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IACF,kDAAkD;IAClD,IAAI,CAAC,EAAE;QACL,6CAA6C;QAC7C,SAAS,EAAE;YACT,sCAAsC;YACtC,KAAK,EAAE,MAAM,CAAC;YACd,qBAAqB;YACrB,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;SACtB,EAAE,CAAC;KACL,CAAC;IAEF,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAE7B,SAAS,EAAE,oBAAoB,CAAC;IAGhC,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ActGetField, ActGetFromCtx, ActGetImmediate, ActGetResourceField, ActGetResourceValueAsJson, ActMakeObject, ActMapRecordValues, ActMapResourceFields, ActMapArrayValues, ActIsEmpty, ActNot, ActIsolate, ActGetBlobContentAsJson, ActGetBlobContentAsString, ActGetBlobContent, ActAnd, ActOr, ActMakeArray, ActFlatten, ActGetDownloadedBlobContent, ActGetOnDemandBlobContent, ActImportProgress, ActGetLastLogs, ActGetProgressLog, ActGetLogHandle } from './actions_kinds';
|
|
2
|
+
import { ExtractAction, POCExtractAction, PrimitiveOrConfig, TypedConfig } from './type_engine';
|
|
3
|
+
import { CheckedSyncConf } from './type_util';
|
|
4
|
+
export declare function getFromCfg<const V extends string>(variable: V): TypedConfig<ActGetFromCtx<V>>;
|
|
5
|
+
export declare function isolate<const Config extends TypedConfig>(cfg: Config): TypedConfig<ActIsolate<ExtractAction<Config>>>;
|
|
6
|
+
export declare const Args: TypedConfig<ActGetFromCtx<"$args">>;
|
|
7
|
+
export declare const It: TypedConfig<ActGetFromCtx<"$it">>;
|
|
8
|
+
export declare const MainOutputs: TypedConfig<ActGetFromCtx<"$prod">>;
|
|
9
|
+
export declare const StagingOutputs: TypedConfig<ActGetFromCtx<"$staging">>;
|
|
10
|
+
export declare const UiState: TypedConfig<ActGetFromCtx<"$ui">>;
|
|
11
|
+
export declare function getImmediate<const T>(value: T): TypedConfig<ActGetImmediate<T>>;
|
|
12
|
+
export declare function makeObject<const T extends Record<string, PrimitiveOrConfig>>(template: T): TypedConfig<ActMakeObject<{
|
|
13
|
+
[Key in keyof T]: POCExtractAction<T[Key]>;
|
|
14
|
+
}>>;
|
|
15
|
+
export declare function makeArray<const T extends PrimitiveOrConfig[]>(...template: T): TypedConfig<ActMakeArray<{
|
|
16
|
+
[Key in keyof T]: POCExtractAction<T[Key]>;
|
|
17
|
+
}>>;
|
|
18
|
+
export declare function getJsonField<const Source extends PrimitiveOrConfig, const Field extends PrimitiveOrConfig>(source: Source, field: Field): TypedConfig<ActGetField<POCExtractAction<Source>, POCExtractAction<Field>>>;
|
|
19
|
+
export declare function mapRecordValues<const Source extends TypedConfig, const Mapping extends TypedConfig>(source: Source & CheckedSyncConf<Source>, mapping: Mapping): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, '$it'>>;
|
|
20
|
+
export declare function mapRecordValues<const Source extends TypedConfig, const Mapping extends TypedConfig>(source: Source, mapping: Mapping & CheckedSyncConf<Mapping>): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, '$it'>>;
|
|
21
|
+
export declare function mapRecordValues<const Source extends TypedConfig, const Mapping extends TypedConfig, const ItVar extends string>(source: Source & CheckedSyncConf<Source>, mapping: Mapping, itVar: ItVar): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;
|
|
22
|
+
export declare function mapRecordValues<const Source extends TypedConfig, const Mapping extends TypedConfig, const ItVar extends string>(source: Source, mapping: Mapping & CheckedSyncConf<Mapping>, itVar: ItVar): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;
|
|
23
|
+
export declare function mapArrayValues<const Source extends TypedConfig, const Mapping extends TypedConfig>(source: Source & CheckedSyncConf<Source>, mapping: Mapping): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, '$it'>>;
|
|
24
|
+
export declare function mapArrayValues<const Source extends TypedConfig, const Mapping extends TypedConfig>(source: Source, mapping: Mapping & CheckedSyncConf<Mapping>): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, '$it'>>;
|
|
25
|
+
export declare function mapArrayValues<const Source extends TypedConfig, const Mapping extends TypedConfig, const ItVar extends string>(source: Source & CheckedSyncConf<Source>, mapping: Mapping, itVar: ItVar): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;
|
|
26
|
+
export declare function mapArrayValues<const Source extends TypedConfig, const Mapping extends TypedConfig, const ItVar extends string>(source: Source, mapping: Mapping & CheckedSyncConf<Mapping>, itVar: ItVar): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;
|
|
27
|
+
export declare function flatten<const Source extends TypedConfig>(source: Source): TypedConfig<ActFlatten<ExtractAction<Source>>>;
|
|
28
|
+
export declare function isEmpty<const Arg extends TypedConfig>(arg: Arg): TypedConfig<ActIsEmpty<ExtractAction<Arg>>>;
|
|
29
|
+
export declare function not<const Operand extends TypedConfig>(operand: Operand): TypedConfig<ActNot<ExtractAction<Operand>>>;
|
|
30
|
+
export declare function and<const Operand1 extends TypedConfig, const Operand2 extends TypedConfig>(operand1: Operand1, operand2: Operand2): TypedConfig<ActAnd<ExtractAction<Operand1>, ExtractAction<Operand2>>>;
|
|
31
|
+
export declare function or<const Operand1 extends TypedConfig, const Operand2 extends TypedConfig>(operand1: Operand1, operand2: Operand2): TypedConfig<ActOr<ExtractAction<Operand1>, ExtractAction<Operand2>>>;
|
|
32
|
+
export declare function getResourceField<const Source extends PrimitiveOrConfig, const Field extends PrimitiveOrConfig>(source: Source, field: Field): TypedConfig<ActGetResourceField<POCExtractAction<Source>, POCExtractAction<Field>>>;
|
|
33
|
+
export declare function getResourceValueAsJson<T>(): <const Source extends PrimitiveOrConfig>(source: Source) => TypedConfig<ActGetResourceValueAsJson<POCExtractAction<Source>, T>>;
|
|
34
|
+
export declare function mapResourceFields<const Source extends TypedConfig, const Mapping extends TypedConfig>(source: Source, mapping: Mapping): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, '$it'>>;
|
|
35
|
+
export declare function mapResourceFields<const Source extends TypedConfig, const Mapping extends TypedConfig, const ItVar extends string>(source: Source, mapping: Mapping, itVar: ItVar): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;
|
|
36
|
+
export declare function getBlobContent<const Source extends TypedConfig>(source: Source): TypedConfig<ActGetBlobContent<ExtractAction<Source>>>;
|
|
37
|
+
export declare function getBlobContentAsString<const Source extends TypedConfig>(source: Source): TypedConfig<ActGetBlobContentAsString<ExtractAction<Source>>>;
|
|
38
|
+
export declare function getBlobContentAsJson<T>(): <const Source extends TypedConfig>(source: Source) => TypedConfig<ActGetBlobContentAsJson<ExtractAction<Source>, T>>;
|
|
39
|
+
export declare function getDownloadedBlobContent<const Source extends TypedConfig>(source: Source): TypedConfig<ActGetDownloadedBlobContent<ExtractAction<Source>>>;
|
|
40
|
+
export declare function getOnDemandBlobContent<const Source extends TypedConfig>(source: Source): TypedConfig<ActGetOnDemandBlobContent<ExtractAction<Source>>>;
|
|
41
|
+
export declare function getImportProgress<const Source extends TypedConfig>(source: Source): TypedConfig<ActImportProgress<ExtractAction<Source>>>;
|
|
42
|
+
export declare function getLastLogs<const Source extends TypedConfig>(source: Source, lines: number): TypedConfig<ActGetLastLogs<ExtractAction<Source>>>;
|
|
43
|
+
export declare function getProgressLog<const Source extends TypedConfig>(source: Source, patternToSearch: string): TypedConfig<ActGetProgressLog<ExtractAction<Source>>>;
|
|
44
|
+
export declare function getLogHandle<const Source extends TypedConfig>(source: Source): TypedConfig<ActGetLogHandle<ExtractAction<Source>>>;
|
|
45
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/config/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EACzB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,EACjB,UAAU,EACV,MAAM,EACN,UAAU,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,eAAe,EAAE,MAAM,GACtB,WAAW,CAAC,iBAAiB,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAMvD;AAED,wBAAgB,YAAY,CAAC,KAAK,CAAC,MAAM,SAAS,WAAW,EAC3D,MAAM,EAAE,MAAM,GACb,WAAW,CAAC,eAAe,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAKrD"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { ConfAction, ActionResult, InferVarTypeSafe, PlResourceEntry } from './type_engine';
|
|
2
|
+
import { And, IsA, SyncConfAction } from './type_util';
|
|
3
|
+
import { LocalBlobHandleAndSize, RemoteBlobHandleAndSize, ImportProgress, AnyLogHandle } from '@milaboratories/pl-model-common';
|
|
4
|
+
export interface ActGetFromCtx<V extends string> extends ConfAction {
|
|
5
|
+
new: (x: this['ctx']) => InferVarTypeSafe<typeof x, V>;
|
|
6
|
+
isSync: true;
|
|
7
|
+
}
|
|
8
|
+
export interface ActIsolate<Nested extends ConfAction> extends ConfAction {
|
|
9
|
+
new: (x: this['ctx']) => ActionResult<Nested, typeof x>;
|
|
10
|
+
isSync: false;
|
|
11
|
+
}
|
|
12
|
+
export interface ActGetImmediate<T> extends ConfAction {
|
|
13
|
+
new: () => T;
|
|
14
|
+
isSync: true;
|
|
15
|
+
}
|
|
16
|
+
export interface ActMakeObject<T extends Record<string, ConfAction>> extends ConfAction {
|
|
17
|
+
new: (x: this['ctx']) => {
|
|
18
|
+
[Key in keyof T]: ActionResult<T[Key], typeof x>;
|
|
19
|
+
};
|
|
20
|
+
isSync: IsA<T, Record<string, SyncConfAction>>;
|
|
21
|
+
}
|
|
22
|
+
export interface ActMakeArray<T extends ConfAction[]> extends ConfAction {
|
|
23
|
+
new: (x: this['ctx']) => {
|
|
24
|
+
[Key in keyof T]: ActionResult<T[Key], typeof x>;
|
|
25
|
+
};
|
|
26
|
+
isSync: IsA<T, SyncConfAction[]>;
|
|
27
|
+
}
|
|
28
|
+
export interface ActGetField<Source extends ConfAction, Field extends ConfAction> extends ConfAction {
|
|
29
|
+
new: (x: this['ctx']) => InferVarTypeSafe<ActionResult<Source, typeof x>, ActionResult<Field, typeof x>>;
|
|
30
|
+
isSync: true;
|
|
31
|
+
}
|
|
32
|
+
export interface ActMapRecordValues<Source extends ConfAction, Mapping extends ConfAction, ItVar extends string> extends ConfAction {
|
|
33
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends Record<string, infer V> ? Record<string, ActionResult<Mapping, typeof x & {
|
|
34
|
+
[K in ItVar]: V;
|
|
35
|
+
}>> : unknown;
|
|
36
|
+
isSync: And<IsA<Source, SyncConfAction>, IsA<Mapping, SyncConfAction>>;
|
|
37
|
+
}
|
|
38
|
+
export interface ActMapArrayValues<Source extends ConfAction, Mapping extends ConfAction, ItVar extends string> extends ConfAction {
|
|
39
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends (infer V)[] ? ActionResult<Mapping, typeof x & {
|
|
40
|
+
[K in ItVar]: V;
|
|
41
|
+
}>[] : unknown;
|
|
42
|
+
isSync: And<IsA<Source, SyncConfAction>, IsA<Mapping, SyncConfAction>>;
|
|
43
|
+
}
|
|
44
|
+
export interface ActFlatten<Sources extends ConfAction> extends ConfAction {
|
|
45
|
+
new: (x: this['ctx']) => ActionResult<Sources, typeof x> extends (infer V)[][] ? V[] : unknown;
|
|
46
|
+
isSync: IsA<Sources, SyncConfAction[]>;
|
|
47
|
+
}
|
|
48
|
+
export interface ActIsEmpty<Source extends ConfAction> extends ConfAction {
|
|
49
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends unknown[] | string | undefined ? boolean : unknown;
|
|
50
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
51
|
+
}
|
|
52
|
+
export interface ActNot<Source extends ConfAction> extends ConfAction {
|
|
53
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends boolean ? boolean : unknown;
|
|
54
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
55
|
+
}
|
|
56
|
+
export interface ActAnd<Source1 extends ConfAction, Source2 extends ConfAction> extends ConfAction {
|
|
57
|
+
new: (x: this['ctx']) => ActionResult<Source1, typeof x> extends boolean ? ActionResult<Source2, typeof x> extends boolean ? boolean : unknown : unknown;
|
|
58
|
+
isSync: IsA<Source1, SyncConfAction> & IsA<Source2, SyncConfAction>;
|
|
59
|
+
}
|
|
60
|
+
export interface ActOr<Source1 extends ConfAction, Source2 extends ConfAction> extends ConfAction {
|
|
61
|
+
new: (x: this['ctx']) => ActionResult<Source1, typeof x> extends boolean ? ActionResult<Source2, typeof x> extends boolean ? boolean : unknown : unknown;
|
|
62
|
+
isSync: IsA<Source1, SyncConfAction> & IsA<Source2, SyncConfAction>;
|
|
63
|
+
}
|
|
64
|
+
export interface ActGetResourceField<Source extends ConfAction, Field extends ConfAction> extends ConfAction {
|
|
65
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? ActionResult<Field, typeof x> extends string ? PlResourceEntry : unknown : unknown;
|
|
66
|
+
isSync: And<IsA<Source, SyncConfAction>, IsA<Field, SyncConfAction>>;
|
|
67
|
+
}
|
|
68
|
+
export interface ActMapResourceFields<Source extends ConfAction, Mapping extends ConfAction, ItVar extends string> extends ConfAction {
|
|
69
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? Record<string, ActionResult<Mapping, typeof x & {
|
|
70
|
+
[K in ItVar]: PlResourceEntry;
|
|
71
|
+
}>> : unknown;
|
|
72
|
+
isSync: And<IsA<Source, SyncConfAction>, IsA<Mapping, SyncConfAction>>;
|
|
73
|
+
}
|
|
74
|
+
export interface ActGetResourceValueAsJson<Source extends ConfAction, T> extends ConfAction {
|
|
75
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? T : unknown;
|
|
76
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
77
|
+
}
|
|
78
|
+
export interface ActGetBlobContent<Source extends ConfAction> extends ConfAction {
|
|
79
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? Uint8Array : unknown;
|
|
80
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
81
|
+
}
|
|
82
|
+
export interface ActGetBlobContentAsString<Source extends ConfAction> extends ConfAction {
|
|
83
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
|
|
84
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
85
|
+
}
|
|
86
|
+
export interface ActGetBlobContentAsJson<Source extends ConfAction, T> extends ConfAction {
|
|
87
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? T : unknown;
|
|
88
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
89
|
+
}
|
|
90
|
+
export interface ActGetDownloadedBlobContent<Source extends ConfAction> extends ConfAction {
|
|
91
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? LocalBlobHandleAndSize : unknown;
|
|
92
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
93
|
+
}
|
|
94
|
+
export interface ActGetOnDemandBlobContent<Source extends ConfAction> extends ConfAction {
|
|
95
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? RemoteBlobHandleAndSize : unknown;
|
|
96
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
97
|
+
}
|
|
98
|
+
export interface ActImportProgress<Source extends ConfAction> extends ConfAction {
|
|
99
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? ImportProgress : unknown;
|
|
100
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
101
|
+
}
|
|
102
|
+
export interface ActGetLastLogs<Source extends ConfAction> extends ConfAction {
|
|
103
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
|
|
104
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
105
|
+
}
|
|
106
|
+
export interface ActGetProgressLog<Source extends ConfAction> extends ConfAction {
|
|
107
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
|
|
108
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
109
|
+
}
|
|
110
|
+
export interface ActGetLogHandle<Source extends ConfAction> extends ConfAction {
|
|
111
|
+
new: (x: this['ctx']) => ActionResult<Source, typeof x> extends PlResourceEntry ? AnyLogHandle : unknown;
|
|
112
|
+
isSync: IsA<Source, SyncConfAction>;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=actions_kinds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions_kinds.d.ts","sourceRoot":"","sources":["../../src/config/actions_kinds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAM/D,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,UAAU;IACjE,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;IACvD,MAAM,EAAE,IAAI,CAAC;CACd;AAMD,MAAM,WAAW,UAAU,CAAC,MAAM,SAAS,UAAU,CAAE,SAAQ,UAAU;IACvE,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACxD,MAAM,EAAE,KAAK,CAAC;CACf;AAMD,MAAM,WAAW,eAAe,CAAC,CAAC,C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AAM,EAAE,cAAc,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,eAAe,CAAC,MAAM,SAAS,UAAU,CAAE,SAAQ,UAAU;IAC5E,GAAG,EAAE,CACH,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,KACX,YAAY,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,GAAG,YAAY,GAAG,OAAO,CAAC;IACrF,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export type Cfg = CfgGetFromCtx | CfgIsolate | CfgImmediate | CfgMakeObject | CfgMakeArray | CfgGetJsonField | CfgMapRecordValues | CfgMapArrayValues | CfgFlatten | CfgIsEmpty | CfgNot | CfgAnd | CfgOr | CfgMapResourceFields | CfgGetResourceField | CfgResourceValueAsJson | CfgBlobContent | CfgBlobContentAsString | CfgBlobContentAsJson | CfgDownloadedBlobContent | CfgOnDemandBlobContent | CfgImportProgress | CfgLastLogs | CfgProgressLog | CfgLogHandle;
|
|
2
|
+
/** Forces wrapped config to be rendered asynchronously, using its own
|
|
3
|
+
* rendering cell */
|
|
4
|
+
export type CfgIsolate = {
|
|
5
|
+
type: 'Isolate';
|
|
6
|
+
cfg: Cfg;
|
|
7
|
+
};
|
|
8
|
+
export type CfgGetFromCtx = {
|
|
9
|
+
type: 'GetFromCtx';
|
|
10
|
+
variable: string;
|
|
11
|
+
};
|
|
12
|
+
export type CfgImmediate = {
|
|
13
|
+
type: 'Immediate';
|
|
14
|
+
value: any;
|
|
15
|
+
};
|
|
16
|
+
export type CfgGetJsonField = {
|
|
17
|
+
type: 'GetJsonField';
|
|
18
|
+
source: Cfg;
|
|
19
|
+
field: Cfg;
|
|
20
|
+
};
|
|
21
|
+
export type CfgMakeObject = {
|
|
22
|
+
type: 'MakeObject';
|
|
23
|
+
template: Record<string, Cfg>;
|
|
24
|
+
};
|
|
25
|
+
export type CfgMakeArray = {
|
|
26
|
+
type: 'MakeArray';
|
|
27
|
+
template: Cfg[];
|
|
28
|
+
};
|
|
29
|
+
export type CfgMapRecordValues = {
|
|
30
|
+
type: 'MapRecordValues';
|
|
31
|
+
source: Cfg;
|
|
32
|
+
itVar: string;
|
|
33
|
+
mapping: Cfg;
|
|
34
|
+
};
|
|
35
|
+
export type CfgMapArrayValues = {
|
|
36
|
+
type: 'MapArrayValues';
|
|
37
|
+
source: Cfg;
|
|
38
|
+
itVar: string;
|
|
39
|
+
mapping: Cfg;
|
|
40
|
+
};
|
|
41
|
+
export type CfgFlatten = {
|
|
42
|
+
type: 'Flatten';
|
|
43
|
+
source: Cfg;
|
|
44
|
+
};
|
|
45
|
+
export type CfgIsEmpty = {
|
|
46
|
+
type: 'IsEmpty';
|
|
47
|
+
arg: Cfg;
|
|
48
|
+
};
|
|
49
|
+
export type CfgNot = {
|
|
50
|
+
type: 'Not';
|
|
51
|
+
operand: Cfg;
|
|
52
|
+
};
|
|
53
|
+
export type CfgAnd = {
|
|
54
|
+
type: 'And';
|
|
55
|
+
operand1: Cfg;
|
|
56
|
+
operand2: Cfg;
|
|
57
|
+
};
|
|
58
|
+
export type CfgOr = {
|
|
59
|
+
type: 'Or';
|
|
60
|
+
operand1: Cfg;
|
|
61
|
+
operand2: Cfg;
|
|
62
|
+
};
|
|
63
|
+
export type CfgMapResourceFields = {
|
|
64
|
+
type: 'MapResourceFields';
|
|
65
|
+
source: Cfg;
|
|
66
|
+
itVar: string;
|
|
67
|
+
mapping: Cfg;
|
|
68
|
+
};
|
|
69
|
+
export type CfgGetResourceField = {
|
|
70
|
+
type: 'GetResourceField';
|
|
71
|
+
source: Cfg;
|
|
72
|
+
field: Cfg;
|
|
73
|
+
};
|
|
74
|
+
export type CfgResourceValueAsJson = {
|
|
75
|
+
type: 'GetResourceValueAsJson';
|
|
76
|
+
source: Cfg;
|
|
77
|
+
};
|
|
78
|
+
export type CfgBlobContent = {
|
|
79
|
+
type: 'GetBlobContent';
|
|
80
|
+
source: Cfg;
|
|
81
|
+
};
|
|
82
|
+
export type CfgBlobContentAsString = {
|
|
83
|
+
type: 'GetBlobContentAsString';
|
|
84
|
+
source: Cfg;
|
|
85
|
+
};
|
|
86
|
+
export type CfgBlobContentAsJson = {
|
|
87
|
+
type: 'GetBlobContentAsJson';
|
|
88
|
+
source: Cfg;
|
|
89
|
+
};
|
|
90
|
+
export type CfgDownloadedBlobContent = {
|
|
91
|
+
type: 'GetDownloadedBlobContent';
|
|
92
|
+
source: Cfg;
|
|
93
|
+
};
|
|
94
|
+
export type CfgOnDemandBlobContent = {
|
|
95
|
+
type: 'GetOnDemandBlobContent';
|
|
96
|
+
source: Cfg;
|
|
97
|
+
};
|
|
98
|
+
export type CfgImportProgress = {
|
|
99
|
+
type: 'GetImportProgress';
|
|
100
|
+
source: Cfg;
|
|
101
|
+
};
|
|
102
|
+
export type CfgLastLogs = {
|
|
103
|
+
type: 'GetLastLogs';
|
|
104
|
+
source: Cfg;
|
|
105
|
+
lines: number;
|
|
106
|
+
};
|
|
107
|
+
export type CfgProgressLog = {
|
|
108
|
+
type: 'GetProgressLog';
|
|
109
|
+
source: Cfg;
|
|
110
|
+
patternToSearch: string;
|
|
111
|
+
};
|
|
112
|
+
export type CfgLogHandle = {
|
|
113
|
+
type: 'GetLogHandle';
|
|
114
|
+
source: Cfg;
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["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