@salesforce/lds-adapters-marketing-assetcreation 0.1.0-dev1
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/LICENSE.txt +82 -0
- package/dist/es/es2018/marketing-assetcreation.js +889 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createAsset.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/getStarterTemplateById.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getStarterTemplates.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/resources/getAssetCreationStarterTemplates.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getAssetCreationStarterTemplatesByStarterTemplateId.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/resources/postAssetCreationObjects.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/AssetInputRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/AssetInputWrapperRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/AssetOutputRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/StarterTemplateDetailRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/StarterTemplateListRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/StarterTemplateRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +70 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +945 -0
- package/src/raml/api.raml +171 -0
- package/src/raml/luvio.raml +33 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
|
+
declare const ObjectKeys: {
|
|
4
|
+
(o: object): string[];
|
|
5
|
+
(o: {}): string[];
|
|
6
|
+
}, ObjectCreate: {
|
|
7
|
+
(o: object | null): any;
|
|
8
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
9
|
+
};
|
|
10
|
+
export { ObjectCreate, ObjectKeys };
|
|
11
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
12
|
+
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
13
|
+
export interface AdapterValidationConfig {
|
|
14
|
+
displayName: string;
|
|
15
|
+
parameters: {
|
|
16
|
+
required: string[];
|
|
17
|
+
optional: string[];
|
|
18
|
+
unsupported?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Validates an adapter config is well-formed.
|
|
23
|
+
* @param config The config to validate.
|
|
24
|
+
* @param adapter The adapter validation configuration.
|
|
25
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
26
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
27
|
+
*/
|
|
28
|
+
export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
|
|
29
|
+
export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
|
|
30
|
+
export type UncoercedConfiguration<Base, Options extends {
|
|
31
|
+
[key in keyof Base]?: any;
|
|
32
|
+
}> = {
|
|
33
|
+
[Key in keyof Base]?: Base[Key] | Options[Key];
|
|
34
|
+
};
|
|
35
|
+
export type Untrusted<Base> = Partial<Base>;
|
|
36
|
+
export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
|
|
37
|
+
export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
|
|
38
|
+
export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
|
|
39
|
+
export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
|
|
40
|
+
export declare const snapshotRefreshOptions: {
|
|
41
|
+
overrides: {
|
|
42
|
+
headers: {
|
|
43
|
+
'Cache-Control': string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
|
|
49
|
+
* This is needed because insertion order for JSON.stringify(object) affects output:
|
|
50
|
+
* JSON.stringify({a: 1, b: 2})
|
|
51
|
+
* "{"a":1,"b":2}"
|
|
52
|
+
* JSON.stringify({b: 2, a: 1})
|
|
53
|
+
* "{"b":2,"a":1}"
|
|
54
|
+
* @param data Data to be JSON-stringified.
|
|
55
|
+
* @returns JSON.stringified value with consistent ordering of keys.
|
|
56
|
+
*/
|
|
57
|
+
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
|
+
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
|
+
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
|
+
export declare const keyPrefix = "assetcreation";
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { AssetInputRepresentation as types_AssetInputRepresentation_AssetInputRepresentation } from '../types/AssetInputRepresentation';
|
|
4
|
+
import { ResourceRequestConfig as resources_postAssetCreationObjects_ResourceRequestConfig } from '../resources/postAssetCreationObjects';
|
|
5
|
+
import { AssetOutputRepresentation as types_AssetOutputRepresentation_AssetOutputRepresentation } from '../types/AssetOutputRepresentation';
|
|
6
|
+
export declare const adapterName = "createAsset";
|
|
7
|
+
export declare const createAsset_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const createAsset_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface CreateAssetConfig {
|
|
10
|
+
AssetInput: types_AssetInputRepresentation_AssetInputRepresentation;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: CreateAssetConfig) => resources_postAssetCreationObjects_ResourceRequestConfig;
|
|
13
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateAssetConfig>): adapter$45$utils_Untrusted<CreateAssetConfig>;
|
|
14
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateAssetConfig | null;
|
|
15
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: CreateAssetConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_AssetOutputRepresentation_AssetOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_AssetOutputRepresentation_AssetOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_AssetOutputRepresentation_AssetOutputRepresentation, any>>;
|
|
16
|
+
export declare const createAssetAdapterFactory: $64$luvio_engine_AdapterFactory<CreateAssetConfig, types_AssetOutputRepresentation_AssetOutputRepresentation>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, 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 { ResourceRequestConfig as resources_getAssetCreationStarterTemplatesByStarterTemplateId_ResourceRequestConfig } from '../resources/getAssetCreationStarterTemplatesByStarterTemplateId';
|
|
4
|
+
import { StarterTemplateDetailRepresentation as types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation } from '../types/StarterTemplateDetailRepresentation';
|
|
5
|
+
export declare const adapterName = "getStarterTemplateById";
|
|
6
|
+
export declare const getStarterTemplateById_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getStarterTemplateById_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetStarterTemplateByIdConfig {
|
|
9
|
+
starterTemplateId: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: GetStarterTemplateByIdConfig) => resources_getAssetCreationStarterTemplatesByStarterTemplateId_ResourceRequestConfig;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetStarterTemplateByIdConfig>): adapter$45$utils_Untrusted<GetStarterTemplateByIdConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetStarterTemplateByIdConfig | null;
|
|
17
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig): $64$luvio_engine_Snapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, any>;
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig, resourceParams: resources_getAssetCreationStarterTemplatesByStarterTemplateId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig, resourceParams: resources_getAssetCreationStarterTemplatesByStarterTemplateId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, any>>;
|
|
22
|
+
export type BuildSnapshotContext = {
|
|
23
|
+
luvio: $64$luvio_engine_Luvio;
|
|
24
|
+
config: GetStarterTemplateByIdConfig;
|
|
25
|
+
};
|
|
26
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, any>>;
|
|
27
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>): $64$luvio_engine_Snapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, any>;
|
|
28
|
+
export declare const getStarterTemplateByIdAdapterFactory: $64$luvio_engine_AdapterFactory<GetStarterTemplateByIdConfig, types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, 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 { ResourceRequestConfig as resources_getAssetCreationStarterTemplates_ResourceRequestConfig } from '../resources/getAssetCreationStarterTemplates';
|
|
4
|
+
import { StarterTemplateListRepresentation as types_StarterTemplateListRepresentation_StarterTemplateListRepresentation } from '../types/StarterTemplateListRepresentation';
|
|
5
|
+
export declare const adapterName = "getStarterTemplates";
|
|
6
|
+
export declare const getStarterTemplates_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getStarterTemplates_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetStarterTemplatesConfig {
|
|
9
|
+
filter?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: GetStarterTemplatesConfig) => resources_getAssetCreationStarterTemplates_ResourceRequestConfig;
|
|
13
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig): string;
|
|
14
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetStarterTemplatesConfig>): adapter$45$utils_Untrusted<GetStarterTemplatesConfig>;
|
|
16
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetStarterTemplatesConfig | null;
|
|
17
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig): $64$luvio_engine_Snapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, any>;
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig, resourceParams: resources_getAssetCreationStarterTemplates_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig, resourceParams: resources_getAssetCreationStarterTemplates_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, any>>;
|
|
22
|
+
export type BuildSnapshotContext = {
|
|
23
|
+
luvio: $64$luvio_engine_Luvio;
|
|
24
|
+
config: GetStarterTemplatesConfig;
|
|
25
|
+
};
|
|
26
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, any>>;
|
|
27
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation>): $64$luvio_engine_Snapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, any>;
|
|
28
|
+
export declare const getStarterTemplatesAdapterFactory: $64$luvio_engine_AdapterFactory<GetStarterTemplatesConfig, types_StarterTemplateListRepresentation_StarterTemplateListRepresentation>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare let createAsset: any;
|
|
2
|
+
declare let getStarterTemplateById: any;
|
|
3
|
+
declare let getStarterTemplates: any;
|
|
4
|
+
declare let getStarterTemplateById_imperative: any;
|
|
5
|
+
declare let getStarterTemplates_imperative: any;
|
|
6
|
+
export { createAsset, getStarterTemplateById, getStarterTemplates, getStarterTemplateById_imperative, getStarterTemplates_imperative, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { StarterTemplateListRepresentation as types_StarterTemplateListRepresentation_StarterTemplateListRepresentation } from '../types/StarterTemplateListRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
filter?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_StarterTemplateListRepresentation_StarterTemplateListRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, any>;
|
|
14
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { StarterTemplateDetailRepresentation as types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation } from '../types/StarterTemplateDetailRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
starterTemplateId: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
type?: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation): void;
|
|
15
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, any>;
|
|
16
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
17
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AssetInputRepresentation as types_AssetInputRepresentation_AssetInputRepresentation } from '../types/AssetInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
import { AssetOutputRepresentation as types_AssetOutputRepresentation_AssetOutputRepresentation } from '../types/AssetOutputRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
body: {
|
|
6
|
+
AssetInput: types_AssetInputRepresentation_AssetInputRepresentation;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_AssetOutputRepresentation_AssetOutputRepresentation): void;
|
|
11
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_AssetOutputRepresentation_AssetOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_AssetOutputRepresentation_AssetOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_AssetOutputRepresentation_AssetOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_AssetOutputRepresentation_AssetOutputRepresentation, any>;
|
|
12
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
13
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
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';
|
|
2
|
+
export declare const VERSION = "7eeacf485cab2afddc6d2247f37c0d4b";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: AssetInputRepresentation, existing: AssetInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AssetInputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: AssetInputRepresentationNormalized, incoming: AssetInputRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AssetInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Object to create an easy asset
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface AssetInputRepresentationNormalized {
|
|
17
|
+
/** A map of asset specific fields that are used during asset creation */
|
|
18
|
+
fields: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
/** Starter Template id to clone */
|
|
22
|
+
starterTemplateId: string;
|
|
23
|
+
/** Asset type */
|
|
24
|
+
type: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Object to create an easy asset
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface AssetInputRepresentation {
|
|
33
|
+
fields: {
|
|
34
|
+
[key: string]: string;
|
|
35
|
+
};
|
|
36
|
+
starterTemplateId: string;
|
|
37
|
+
type: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { AssetInputRepresentation as AssetInputRepresentation_AssetInputRepresentation } from './AssetInputRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
export declare const VERSION = "19aec64b4bec7f6d8a58a22e1fee1dda";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: AssetInputWrapperRepresentation, existing: AssetInputWrapperRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AssetInputWrapperRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: AssetInputWrapperRepresentationNormalized, incoming: AssetInputWrapperRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AssetInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Wrapper Input Representation for AssetInputRepresentation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface AssetInputWrapperRepresentationNormalized {
|
|
18
|
+
AssetInput: AssetInputRepresentation_AssetInputRepresentation;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Wrapper Input Representation for AssetInputRepresentation
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface AssetInputWrapperRepresentation {
|
|
27
|
+
AssetInput: AssetInputRepresentation_AssetInputRepresentation;
|
|
28
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
export declare const TTL = 1000;
|
|
3
|
+
export declare const VERSION = "b43d0a7e53f816bf92d87798789baf3a";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export type AssetOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialAssetOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): AssetOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: AssetOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: AssetOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: AssetOutputRepresentation, existing: AssetOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AssetOutputRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: AssetOutputRepresentationNormalized, incoming: AssetOutputRepresentationNormalized): boolean;
|
|
18
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AssetOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* Representation of a created template object.
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* id (string): id
|
|
25
|
+
*/
|
|
26
|
+
export interface AssetOutputRepresentationNormalized {
|
|
27
|
+
/** Url to load the specified resource in content builder. */
|
|
28
|
+
contentBuilderUrl: string;
|
|
29
|
+
/** Id of the created object. */
|
|
30
|
+
id: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Representation of a created template object.
|
|
34
|
+
*
|
|
35
|
+
* Keys:
|
|
36
|
+
* id (string): id
|
|
37
|
+
*/
|
|
38
|
+
export interface AssetOutputRepresentation {
|
|
39
|
+
contentBuilderUrl: string;
|
|
40
|
+
id: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
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';
|
|
2
|
+
export declare const TTL = 1000;
|
|
3
|
+
export declare const VERSION = "260c6823e9865ac87e1cb3929e85646c";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: StarterTemplateDetailRepresentation, existing: StarterTemplateDetailRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): StarterTemplateDetailRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: StarterTemplateDetailRepresentationNormalized, incoming: StarterTemplateDetailRepresentationNormalized): boolean;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StarterTemplateDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Representation of the details of a starter template to be displayed.
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface StarterTemplateDetailRepresentationNormalized {
|
|
18
|
+
/** Url for content builder */
|
|
19
|
+
contentBuilderUrl: string;
|
|
20
|
+
/** Creator of the object. */
|
|
21
|
+
createdBy: string;
|
|
22
|
+
/** Created date of the object. */
|
|
23
|
+
createdOn: string;
|
|
24
|
+
/** Description of the object. */
|
|
25
|
+
description: string;
|
|
26
|
+
/** HTML content of the object. */
|
|
27
|
+
html: string;
|
|
28
|
+
/** Id of the object. */
|
|
29
|
+
id: string;
|
|
30
|
+
/** Name of the object. */
|
|
31
|
+
name: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Representation of the details of a starter template to be displayed.
|
|
35
|
+
*
|
|
36
|
+
* Keys:
|
|
37
|
+
* (none)
|
|
38
|
+
*/
|
|
39
|
+
export interface StarterTemplateDetailRepresentation {
|
|
40
|
+
contentBuilderUrl: string;
|
|
41
|
+
createdBy: string;
|
|
42
|
+
createdOn: string;
|
|
43
|
+
description: string;
|
|
44
|
+
html: string;
|
|
45
|
+
id: string;
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { StarterTemplateRepresentation as StarterTemplateRepresentation_StarterTemplateRepresentation } from './StarterTemplateRepresentation';
|
|
2
|
+
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';
|
|
3
|
+
export declare const TTL = 3000;
|
|
4
|
+
export declare const VERSION = "8b256fe58f3a26927a96dc6c87f2845e";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export declare function normalize(input: StarterTemplateListRepresentation, existing: StarterTemplateListRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): StarterTemplateListRepresentationNormalized;
|
|
8
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
9
|
+
export declare function equals(existing: StarterTemplateListRepresentationNormalized, incoming: StarterTemplateListRepresentationNormalized): boolean;
|
|
10
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StarterTemplateListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
12
|
+
/**
|
|
13
|
+
* Representation of a list of starter templates.
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface StarterTemplateListRepresentationNormalized {
|
|
19
|
+
/** List of Starter Templates. */
|
|
20
|
+
starterTemplateList: Array<StarterTemplateRepresentation_StarterTemplateRepresentation>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Representation of a list of starter templates.
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface StarterTemplateListRepresentation {
|
|
29
|
+
starterTemplateList: Array<StarterTemplateRepresentation_StarterTemplateRepresentation>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
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';
|
|
2
|
+
export declare const VERSION = "6940195c96726bc70b9ad00de7d9c58a";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: StarterTemplateRepresentation, existing: StarterTemplateRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): StarterTemplateRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: StarterTemplateRepresentationNormalized, incoming: StarterTemplateRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: StarterTemplateRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Representation of a starter template object.
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface StarterTemplateRepresentationNormalized {
|
|
17
|
+
/** Description of the object. */
|
|
18
|
+
description: string;
|
|
19
|
+
/** Id of the object. */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Name of the object. */
|
|
22
|
+
name: string;
|
|
23
|
+
/** Url to thumbnail image. */
|
|
24
|
+
thumbnailUrl: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Representation of a starter template object.
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface StarterTemplateRepresentation {
|
|
33
|
+
description: string;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
thumbnailUrl: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectKeys: {
|
|
3
|
+
(o: object): string[];
|
|
4
|
+
(o: {}): string[];
|
|
5
|
+
}, ObjectCreate: {
|
|
6
|
+
(o: object | null): any;
|
|
7
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
8
|
+
}, ObjectAssign: {
|
|
9
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
10
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
11
|
+
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
|
|
12
|
+
(target: object, ...sources: any[]): any;
|
|
13
|
+
};
|
|
14
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
15
|
+
export declare const JSONStringify: {
|
|
16
|
+
(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
|
|
17
|
+
(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
|
|
18
|
+
};
|
|
19
|
+
type AllowedPrimitives = boolean | string | number | Date | null;
|
|
20
|
+
type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
|
|
21
|
+
export type RecursivePartial<T> = null | {
|
|
22
|
+
[P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
|
|
23
|
+
};
|
|
24
|
+
export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
|
|
25
|
+
export declare function equalsObject<U, V extends {
|
|
26
|
+
[key: string]: U;
|
|
27
|
+
}>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
|
|
28
|
+
export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
|
|
29
|
+
__ref: string;
|
|
30
|
+
};
|
|
31
|
+
export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
32
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/lds-adapters-marketing-assetcreation",
|
|
3
|
+
"version": "0.1.0-dev1",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
+
"description": "APIs to create assets based on templates",
|
|
6
|
+
"main": "dist/es/es2018/marketing-assetcreation.js",
|
|
7
|
+
"module": "dist/es/es2018/marketing-assetcreation.js",
|
|
8
|
+
"types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"sfdc",
|
|
12
|
+
"src/raml/*"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
17
|
+
"import": "./dist/es/es2018/marketing-assetcreation.js",
|
|
18
|
+
"require": "./dist/es/es2018/marketing-assetcreation.js"
|
|
19
|
+
},
|
|
20
|
+
"./sfdc": {
|
|
21
|
+
"types": "./sfdc/index.d.ts",
|
|
22
|
+
"import": "./sfdc/index.js",
|
|
23
|
+
"default": "./sfdc/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"contributors": [
|
|
27
|
+
"rganesan@salesforce.com"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "yarn build:services",
|
|
31
|
+
"build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
|
|
32
|
+
"build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
|
|
33
|
+
"build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
|
|
34
|
+
"clean": "rm -rf dist sfdc src/generated karma/dist",
|
|
35
|
+
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-marketing-assetcreation",
|
|
36
|
+
"release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-marketing-assetcreation",
|
|
37
|
+
"start": "nx build:karma && karma start",
|
|
38
|
+
"test": "nx build:karma && karma start --single-run"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@salesforce/lds-bindings": "^0.1.0-dev1"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
|
|
45
|
+
"@salesforce/lds-karma": "^0.1.0-dev1"
|
|
46
|
+
},
|
|
47
|
+
"nx": {
|
|
48
|
+
"targets": {
|
|
49
|
+
"build": {
|
|
50
|
+
"outputs": [
|
|
51
|
+
"{projectRoot}/dist",
|
|
52
|
+
"{projectRoot}/sfdc"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"build:raml": {
|
|
56
|
+
"outputs": [
|
|
57
|
+
"{projectRoot}/src/generated"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"build:karma": {
|
|
61
|
+
"outputs": [
|
|
62
|
+
"{projectRoot}/karma/dist"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"volta": {
|
|
68
|
+
"extends": "../../package.json"
|
|
69
|
+
}
|
|
70
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|