@salesforce/lds-adapters-analytics-app-framework 1.319.0 → 1.321.0

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,35 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ChainDefinitionInputRepresentation as types_ChainDefinitionInputRepresentation_ChainDefinitionInputRepresentation } from '../types/ChainDefinitionInputRepresentation';
4
+ import { TemplateIconsInputRepresentation as types_TemplateIconsInputRepresentation_TemplateIconsInputRepresentation } from '../types/TemplateIconsInputRepresentation';
5
+ import { ReleaseInfoInputRepresentation as types_ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation } from '../types/ReleaseInfoInputRepresentation';
6
+ import { RuleInfoInputRepresentation as types_RuleInfoInputRepresentation_RuleInfoInputRepresentation } from '../types/RuleInfoInputRepresentation';
7
+ import { ResourceRequestConfig as resources_postAppFrameworkTemplates_ResourceRequestConfig } from '../resources/postAppFrameworkTemplates';
8
+ import { TemplateRepresentation as types_TemplateRepresentation_TemplateRepresentation } from '../types/TemplateRepresentation';
9
+ export declare const adapterName = "createTemplate";
10
+ export declare const createTemplate_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
11
+ export declare const createTemplate_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
12
+ export interface CreateTemplateConfig {
13
+ assetVersion?: number;
14
+ chainDefinitions?: Array<types_ChainDefinitionInputRepresentation_ChainDefinitionInputRepresentation>;
15
+ description?: string;
16
+ icons?: types_TemplateIconsInputRepresentation_TemplateIconsInputRepresentation;
17
+ id?: string;
18
+ label: string;
19
+ layoutDefinition?: string;
20
+ maxAppCount?: number;
21
+ name: string;
22
+ namespace?: string;
23
+ releaseInfo?: types_ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation;
24
+ rules?: Array<types_RuleInfoInputRepresentation_RuleInfoInputRepresentation>;
25
+ tags?: {
26
+ [key: string]: unknown;
27
+ };
28
+ templateType: string;
29
+ variableDefinition?: string;
30
+ }
31
+ export declare const createResourceParams: (config: CreateTemplateConfig) => resources_postAppFrameworkTemplates_ResourceRequestConfig;
32
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateTemplateConfig>): adapter$45$utils_Untrusted<CreateTemplateConfig>;
33
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateTemplateConfig | null;
34
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateTemplateConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_TemplateRepresentation_TemplateRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_TemplateRepresentation_TemplateRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_TemplateRepresentation_TemplateRepresentation, any>>;
35
+ export declare const createTemplateAdapterFactory: $64$luvio_engine_AdapterFactory<CreateTemplateConfig, types_TemplateRepresentation_TemplateRepresentation>;
@@ -7,5 +7,6 @@ export { getAppActivityAdapterFactory } from '../adapters/getAppActivity';
7
7
  export { getAppAssetsAdapterFactory } from '../adapters/getAppAssets';
8
8
  export { getInstalledAssetsAdapterFactory } from '../adapters/getInstalledAssets';
9
9
  export { getTemplatesAdapterFactory } from '../adapters/getTemplates';
10
+ export { createTemplateAdapterFactory } from '../adapters/createTemplate';
10
11
  export { getTemplateAdapterFactory } from '../adapters/getTemplate';
11
12
  export { getTemplateConfigAdapterFactory } from '../adapters/getTemplateConfig';
@@ -1,4 +1,5 @@
1
1
  declare let createApp: any;
2
+ declare let createTemplate: any;
2
3
  declare let deleteApp: any;
3
4
  declare let getApp: any;
4
5
  declare let getAppActivities: any;
@@ -24,4 +25,4 @@ declare let getInstalledAssets_imperative: any;
24
25
  declare let getTemplate_imperative: any;
25
26
  declare let getTemplateConfig_imperative: any;
26
27
  declare let getTemplates_imperative: any;
27
- export { createApp, deleteApp, getApp, getAppActivities, getAppActivitiesNotifyChange, getAppActivity, getAppActivityNotifyChange, getAppAssets, getAppAssetsNotifyChange, getAppNotifyChange, getApps, getInstalledAssets, getTemplate, getTemplateConfig, getTemplateConfigNotifyChange, getTemplateNotifyChange, getTemplates, getApp_imperative, getAppActivities_imperative, getAppActivity_imperative, getAppAssets_imperative, getApps_imperative, getInstalledAssets_imperative, getTemplate_imperative, getTemplateConfig_imperative, getTemplates_imperative, };
28
+ export { createApp, createTemplate, deleteApp, getApp, getAppActivities, getAppActivitiesNotifyChange, getAppActivity, getAppActivityNotifyChange, getAppAssets, getAppAssetsNotifyChange, getAppNotifyChange, getApps, getInstalledAssets, getTemplate, getTemplateConfig, getTemplateConfigNotifyChange, getTemplateNotifyChange, getTemplates, getApp_imperative, getAppActivities_imperative, getAppActivity_imperative, getAppAssets_imperative, getApps_imperative, getInstalledAssets_imperative, getTemplate_imperative, getTemplateConfig_imperative, getTemplates_imperative, };
@@ -0,0 +1,32 @@
1
+ import { ChainDefinitionInputRepresentation as types_ChainDefinitionInputRepresentation_ChainDefinitionInputRepresentation } from '../types/ChainDefinitionInputRepresentation';
2
+ import { TemplateIconsInputRepresentation as types_TemplateIconsInputRepresentation_TemplateIconsInputRepresentation } from '../types/TemplateIconsInputRepresentation';
3
+ import { ReleaseInfoInputRepresentation as types_ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation } from '../types/ReleaseInfoInputRepresentation';
4
+ import { RuleInfoInputRepresentation as types_RuleInfoInputRepresentation_RuleInfoInputRepresentation } from '../types/RuleInfoInputRepresentation';
5
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
6
+ import { TemplateRepresentation as types_TemplateRepresentation_TemplateRepresentation } from '../types/TemplateRepresentation';
7
+ export interface ResourceRequestConfig {
8
+ body: {
9
+ assetVersion?: number;
10
+ chainDefinitions?: Array<types_ChainDefinitionInputRepresentation_ChainDefinitionInputRepresentation>;
11
+ description?: string;
12
+ icons?: types_TemplateIconsInputRepresentation_TemplateIconsInputRepresentation;
13
+ id?: string;
14
+ label: string;
15
+ layoutDefinition?: string;
16
+ maxAppCount?: number;
17
+ name: string;
18
+ namespace?: string;
19
+ releaseInfo?: types_ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation;
20
+ rules?: Array<types_RuleInfoInputRepresentation_RuleInfoInputRepresentation>;
21
+ tags?: {
22
+ [key: string]: unknown;
23
+ };
24
+ templateType: string;
25
+ variableDefinition?: string;
26
+ };
27
+ }
28
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
29
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TemplateRepresentation_TemplateRepresentation): void;
30
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_TemplateRepresentation_TemplateRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_TemplateRepresentation_TemplateRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_TemplateRepresentation_TemplateRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_TemplateRepresentation_TemplateRepresentation, any>;
31
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
32
+ export default createResourceRequest;
@@ -3,7 +3,7 @@ import { TemplateIconsInputRepresentation as TemplateIconsInputRepresentation_Te
3
3
  import { ReleaseInfoInputRepresentation as ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation } from './ReleaseInfoInputRepresentation';
4
4
  import { RuleInfoInputRepresentation as RuleInfoInputRepresentation_RuleInfoInputRepresentation } from './RuleInfoInputRepresentation';
5
5
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
6
- export declare const VERSION = "9fa2237e96c7796d8f32dc23ad0718f2";
6
+ export declare const VERSION = "494e26953b2b89185a8319776f2c1cfb";
7
7
  export declare function validate(obj: any, path?: string): TypeError | null;
8
8
  export declare const RepresentationType: string;
9
9
  export declare function normalize(input: TemplateInputRepresentation, existing: TemplateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TemplateInputRepresentationNormalized;
@@ -19,15 +19,15 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
19
19
  */
20
20
  export interface TemplateInputRepresentationNormalized {
21
21
  /** The version of the Template assets. */
22
- assetVersion: number;
22
+ assetVersion?: number;
23
23
  /** The Template chain definitions */
24
- chainDefinitions: Array<ChainDefinitionInputRepresentation_ChainDefinitionInputRepresentation>;
24
+ chainDefinitions?: Array<ChainDefinitionInputRepresentation_ChainDefinitionInputRepresentation>;
25
25
  /** The Template description. */
26
26
  description?: string;
27
27
  /** The Template icons. */
28
28
  icons?: TemplateIconsInputRepresentation_TemplateIconsInputRepresentation;
29
29
  /** The Template Id. */
30
- id: string;
30
+ id?: string;
31
31
  /** The Template label. */
32
32
  label: string;
33
33
  /** The Template layout definition file. */
@@ -39,11 +39,13 @@ export interface TemplateInputRepresentationNormalized {
39
39
  /** The Template developer namespace. */
40
40
  namespace?: string;
41
41
  /** The Template release notes */
42
- releaseInfo: ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation;
42
+ releaseInfo?: ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation;
43
43
  /** The Template rules file */
44
44
  rules?: Array<RuleInfoInputRepresentation_RuleInfoInputRepresentation>;
45
45
  /** The Template Tags. */
46
- tags?: Array<string>;
46
+ tags?: {
47
+ [key: string]: unknown;
48
+ };
47
49
  /** The Template Type. */
48
50
  templateType: string;
49
51
  /** The Template variables file */
@@ -56,19 +58,21 @@ export interface TemplateInputRepresentationNormalized {
56
58
  * (none)
57
59
  */
58
60
  export interface TemplateInputRepresentation {
59
- assetVersion: number;
60
- chainDefinitions: Array<ChainDefinitionInputRepresentation_ChainDefinitionInputRepresentation>;
61
+ assetVersion?: number;
62
+ chainDefinitions?: Array<ChainDefinitionInputRepresentation_ChainDefinitionInputRepresentation>;
61
63
  description?: string;
62
64
  icons?: TemplateIconsInputRepresentation_TemplateIconsInputRepresentation;
63
- id: string;
65
+ id?: string;
64
66
  label: string;
65
67
  layoutDefinition?: string;
66
68
  maxAppCount?: number;
67
69
  name: string;
68
70
  namespace?: string;
69
- releaseInfo: ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation;
71
+ releaseInfo?: ReleaseInfoInputRepresentation_ReleaseInfoInputRepresentation;
70
72
  rules?: Array<RuleInfoInputRepresentation_RuleInfoInputRepresentation>;
71
- tags?: Array<string>;
73
+ tags?: {
74
+ [key: string]: unknown;
75
+ };
72
76
  templateType: string;
73
77
  variableDefinition?: string;
74
78
  }
@@ -1,6 +1,6 @@
1
1
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  export declare const TTL = 5000;
3
- export declare const VERSION = "a234a33bacb2228183eba50f4f96aef4";
3
+ export declare const VERSION = "7b301696f68bda5cea09d0c20ea77f58";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -26,14 +26,22 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
26
26
  export interface TemplateRepresentationNormalized {
27
27
  /** Url for configuration information */
28
28
  configurationUrl: string;
29
+ /** The created date of the application Template. */
30
+ createdDate: string;
29
31
  /** The description of the application template. */
30
32
  description: string | null;
31
33
  /** The ID or fully qualified API name of this template. */
32
34
  id: string;
33
35
  /** The localized name of the application template. */
34
36
  label: string;
37
+ /** The last modified date of the application Template. */
38
+ lastModifiedDate: string;
35
39
  /** The local API name of the application template. */
36
40
  name: string;
41
+ /** The Template Tags. */
42
+ tags: {
43
+ [key: string]: unknown;
44
+ };
37
45
  /** The template type. */
38
46
  templateType: string;
39
47
  /** The this url. */
@@ -47,10 +55,15 @@ export interface TemplateRepresentationNormalized {
47
55
  */
48
56
  export interface TemplateRepresentation {
49
57
  configurationUrl: string;
58
+ createdDate: string;
50
59
  description: string | null;
51
60
  id: string;
52
61
  label: string;
62
+ lastModifiedDate: string;
53
63
  name: string;
64
+ tags: {
65
+ [key: string]: unknown;
66
+ };
54
67
  templateType: string;
55
68
  url: string;
56
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-app-framework",
3
- "version": "1.319.0",
3
+ "version": "1.321.0",
4
4
  "description": "APIs for the app-framework",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/analytics-app-framework.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.319.0"
43
+ "@salesforce/lds-bindings": "^1.321.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.319.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.321.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {