@telia-ace/widget-runtime-flamingo 1.0.5 → 1.0.6

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.
@@ -0,0 +1,25 @@
1
+ import { ComponentNodeController } from '@telia-ace/widget-core';
2
+ import { Container } from '@webprovisions/platform';
3
+ type DataResource = {
4
+ query: (input: Record<string, any>, providerSettings: Record<string, any>) => Promise<any>;
5
+ };
6
+ type DataProviderSettings = Record<string, any>;
7
+ export declare const getProvider: (component: ComponentNodeController, container: Container) => Promise<{
8
+ provider: DataProvider;
9
+ settings: {};
10
+ }>;
11
+ export declare const createDataProvider: (component: ComponentNodeController, container: Container) => Promise<{
12
+ addResource: (resourceKey: string, resource: DataResource) => void;
13
+ getData: (resourceKey: string, input: Record<string, any>) => Promise<any>;
14
+ }>;
15
+ export declare class DataProvider {
16
+ container: Container;
17
+ private resources;
18
+ private nodeConfiguration;
19
+ constructor(container: Container);
20
+ getData(resourceKey: string, input: Record<string, any>, providerSettings: Record<string, any>): Promise<any>;
21
+ addResource(resourceKey: string, resource: DataResource): void;
22
+ applyComponentNodeSettings(nodeId: string, value: DataProviderSettings): void;
23
+ }
24
+ export {};
25
+ //# sourceMappingURL=data-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-provider.d.ts","sourceRoot":"","sources":["../../src/data-provider/data-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,CACL,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAClC,OAAO,CAAC,GAAG,CAAC,CAAC;CACnB,CAAC;AAEF,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAEhD,eAAO,MAAM,WAAW,cACX,uBAAuB,aACvB,SAAS;;;EAwBrB,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAClB,uBAAuB,aACvB,SAAS;+BAKS,MAAM,YAAY,YAAY;2BAGlC,MAAM,SAAS,OAAO,MAAM,EAAE,GAAG,CAAC;EAI5D,CAAC;AAEF,qBAAa,YAAY;IAIJ,SAAS,EAAE,SAAS;IAHvC,OAAO,CAAC,SAAS,CAAmC;IACpD,OAAO,CAAC,iBAAiB,CAA2C;gBAEjD,SAAS,EAAE,SAAS;IAEjC,OAAO,CACX,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAavC,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY;IAIvD,0BAA0B,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,oBAAoB;CAGvE"}
@@ -0,0 +1,3 @@
1
+ import { Container } from '@webprovisions/platform';
2
+ export declare const GuideProviderPlugin: (container: Container) => Promise<void>;
3
+ //# sourceMappingURL=guide-provider.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guide-provider.plugin.d.ts","sourceRoot":"","sources":["../../../src/data-provider/providers/guide-provider.plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA2DpD,eAAO,MAAM,mBAAmB,cAAqB,SAAS,kBAI7D,CAAC"}