@salesforce/lds-adapters-marketing-assetcreation 1.100.2

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.
Files changed (25) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/marketing-assetcreation.js +1001 -0
  3. package/dist/types/src/generated/adapters/adapter-utils.d.ts +66 -0
  4. package/dist/types/src/generated/adapters/createAsset.d.ts +15 -0
  5. package/dist/types/src/generated/adapters/getStarterTemplateById.d.ts +27 -0
  6. package/dist/types/src/generated/adapters/getStarterTemplates.d.ts +27 -0
  7. package/dist/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/types/src/generated/artifacts/sfdc.d.ts +6 -0
  9. package/dist/types/src/generated/resources/getAssetCreationStarterTemplates.d.ts +16 -0
  10. package/dist/types/src/generated/resources/getAssetCreationStarterTemplatesByStarterTemplateId.d.ts +18 -0
  11. package/dist/types/src/generated/resources/postAssetCreationObjects.d.ts +13 -0
  12. package/dist/types/src/generated/types/AssetInputRepresentation.d.ts +39 -0
  13. package/dist/types/src/generated/types/AssetInputWrapperRepresentation.d.ts +29 -0
  14. package/dist/types/src/generated/types/AssetOutputRepresentation.d.ts +42 -0
  15. package/dist/types/src/generated/types/StarterTemplateDetailRepresentation.d.ts +48 -0
  16. package/dist/types/src/generated/types/StarterTemplateListRepresentation.d.ts +31 -0
  17. package/dist/types/src/generated/types/StarterTemplateRepresentation.d.ts +38 -0
  18. package/dist/types/src/generated/types/type-utils.d.ts +39 -0
  19. package/dist/umd/es2018/marketing-assetcreation.js +1011 -0
  20. package/dist/umd/es5/marketing-assetcreation.js +1016 -0
  21. package/package.json +66 -0
  22. package/sfdc/index.d.ts +1 -0
  23. package/sfdc/index.js +1047 -0
  24. package/src/raml/api.raml +171 -0
  25. package/src/raml/luvio.raml +33 -0
@@ -0,0 +1,66 @@
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
2
+ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
+ declare const ObjectKeys: {
4
+ (o: object): string[];
5
+ (o: {}): string[];
6
+ }, ObjectFreeze: {
7
+ <T extends Function>(f: T): T;
8
+ <T_1 extends {
9
+ [idx: string]: object | U | null | undefined;
10
+ }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
11
+ <T_2>(o: T_2): Readonly<T_2>;
12
+ }, ObjectCreate: {
13
+ (o: object | null): any;
14
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
15
+ };
16
+ export { ObjectFreeze, ObjectCreate, ObjectKeys };
17
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
18
+ export declare const ArrayPrototypePush: (...items: any[]) => number;
19
+ export interface AdapterValidationConfig {
20
+ displayName: string;
21
+ parameters: {
22
+ required: string[];
23
+ optional: string[];
24
+ unsupported?: string[];
25
+ };
26
+ }
27
+ /**
28
+ * Validates an adapter config is well-formed.
29
+ * @param config The config to validate.
30
+ * @param adapter The adapter validation configuration.
31
+ * @param oneOf The keys the config must contain at least one of.
32
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
33
+ */
34
+ export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
35
+ export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
36
+ export type UncoercedConfiguration<Base, Options extends {
37
+ [key in keyof Base]?: any;
38
+ }> = {
39
+ [Key in keyof Base]?: Base[Key] | Options[Key];
40
+ };
41
+ export type Untrusted<Base> = Partial<Base>;
42
+ export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
43
+ 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>;
44
+ export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
45
+ export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
46
+ export declare const snapshotRefreshOptions: {
47
+ overrides: {
48
+ headers: {
49
+ 'Cache-Control': string;
50
+ };
51
+ };
52
+ };
53
+ /**
54
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
55
+ * This is needed because insertion order for JSON.stringify(object) affects output:
56
+ * JSON.stringify({a: 1, b: 2})
57
+ * "{"a":1,"b":2}"
58
+ * JSON.stringify({b: 2, a: 1})
59
+ * "{"b":2,"a":1}"
60
+ * @param data Data to be JSON-stringified.
61
+ * @returns JSON.stringified value with consistent ordering of keys.
62
+ */
63
+ export declare function stableJSONStringify(node: any): string | undefined;
64
+ export declare function getFetchResponseStatusText(status: number): string;
65
+ export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
66
+ export declare const keyPrefix = "assetcreation";
@@ -0,0 +1,15 @@
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ import { AssetInputRepresentation as types_AssetInputRepresentation_AssetInputRepresentation } from '../types/AssetInputRepresentation';
3
+ import { ResourceRequestConfig as resources_postAssetCreationObjects_ResourceRequestConfig } from '../resources/postAssetCreationObjects';
4
+ import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
5
+ import { AssetOutputRepresentation as types_AssetOutputRepresentation_AssetOutputRepresentation } from '../types/AssetOutputRepresentation';
6
+ export declare const adapterName = "createAsset";
7
+ export declare const createAsset_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface CreateAssetConfig {
9
+ AssetInput: types_AssetInputRepresentation_AssetInputRepresentation;
10
+ }
11
+ export declare function createResourceParams(config: CreateAssetConfig): resources_postAssetCreationObjects_ResourceRequestConfig;
12
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateAssetConfig>): adapter$45$utils_Untrusted<CreateAssetConfig>;
13
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): CreateAssetConfig | null;
14
+ 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>>;
15
+ export declare const createAssetAdapterFactory: $64$luvio_engine_AdapterFactory<CreateAssetConfig, types_AssetOutputRepresentation_AssetOutputRepresentation>;
@@ -0,0 +1,27 @@
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ import { ResourceRequestConfig as resources_getAssetCreationStarterTemplatesByStarterTemplateId_ResourceRequestConfig } from '../resources/getAssetCreationStarterTemplatesByStarterTemplateId';
3
+ import { 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';
4
+ import { StarterTemplateDetailRepresentation as types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation } from '../types/StarterTemplateDetailRepresentation';
5
+ export declare const adapterName = "getStarterTemplateById";
6
+ export declare const getStarterTemplateById_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
+ export interface GetStarterTemplateByIdConfig {
8
+ starterTemplateId: string;
9
+ type?: string;
10
+ }
11
+ export declare function createResourceParams(config: GetStarterTemplateByIdConfig): resources_getAssetCreationStarterTemplatesByStarterTemplateId_ResourceRequestConfig;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetStarterTemplateByIdConfig>): adapter$45$utils_Untrusted<GetStarterTemplateByIdConfig>;
15
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetStarterTemplateByIdConfig | null;
16
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig): $64$luvio_engine_Fragment;
17
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplateByIdConfig): $64$luvio_engine_Snapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, any>;
18
+ 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").PendingSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, any> | import("@luvio/engine").FulfilledSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, {}>>;
19
+ 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>;
20
+ 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>>;
21
+ export type BuildSnapshotContext = {
22
+ luvio: $64$luvio_engine_Luvio;
23
+ config: GetStarterTemplateByIdConfig;
24
+ };
25
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, any>>;
26
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>): $64$luvio_engine_Snapshot<types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation, any>;
27
+ export declare const getStarterTemplateByIdAdapterFactory: $64$luvio_engine_AdapterFactory<GetStarterTemplateByIdConfig, types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation>;
@@ -0,0 +1,27 @@
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ import { ResourceRequestConfig as resources_getAssetCreationStarterTemplates_ResourceRequestConfig } from '../resources/getAssetCreationStarterTemplates';
3
+ import { 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';
4
+ import { StarterTemplateListRepresentation as types_StarterTemplateListRepresentation_StarterTemplateListRepresentation } from '../types/StarterTemplateListRepresentation';
5
+ export declare const adapterName = "getStarterTemplates";
6
+ export declare const getStarterTemplates_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
+ export interface GetStarterTemplatesConfig {
8
+ filter?: string;
9
+ type?: string;
10
+ }
11
+ export declare function createResourceParams(config: GetStarterTemplatesConfig): resources_getAssetCreationStarterTemplates_ResourceRequestConfig;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetStarterTemplatesConfig>): adapter$45$utils_Untrusted<GetStarterTemplatesConfig>;
15
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetStarterTemplatesConfig | null;
16
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig): $64$luvio_engine_Fragment;
17
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetStarterTemplatesConfig): $64$luvio_engine_Snapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, any>;
18
+ 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").PendingSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, any> | import("@luvio/engine").FulfilledSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, {}>>;
19
+ 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>;
20
+ 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>>;
21
+ export type BuildSnapshotContext = {
22
+ luvio: $64$luvio_engine_Luvio;
23
+ config: GetStarterTemplatesConfig;
24
+ };
25
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, any>>;
26
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation>): $64$luvio_engine_Snapshot<types_StarterTemplateListRepresentation_StarterTemplateListRepresentation, any>;
27
+ export declare const getStarterTemplatesAdapterFactory: $64$luvio_engine_AdapterFactory<GetStarterTemplatesConfig, types_StarterTemplateListRepresentation_StarterTemplateListRepresentation>;
@@ -0,0 +1,3 @@
1
+ export { createAssetAdapterFactory } from '../adapters/createAsset';
2
+ export { getStarterTemplatesAdapterFactory } from '../adapters/getStarterTemplates';
3
+ export { getStarterTemplateByIdAdapterFactory } from '../adapters/getStarterTemplateById';
@@ -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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, 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(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_StarterTemplateListRepresentation_StarterTemplateListRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, 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(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_StarterTemplateDetailRepresentation_StarterTemplateDetailRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, 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(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_AssetOutputRepresentation_AssetOutputRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
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,39 @@
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } 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 function deepFreeze(input: AssetInputRepresentation): void;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AssetInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
+ /**
12
+ * Object to create an easy asset
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface AssetInputRepresentationNormalized {
18
+ /** A map of asset specific fields that are used during asset creation */
19
+ fields: {
20
+ [key: string]: string;
21
+ };
22
+ /** Starter Template id to clone */
23
+ starterTemplateId: string;
24
+ /** Asset type */
25
+ type: string;
26
+ }
27
+ /**
28
+ * Object to create an easy asset
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface AssetInputRepresentation {
34
+ fields: {
35
+ [key: string]: string;
36
+ };
37
+ starterTemplateId: string;
38
+ type: string;
39
+ }
@@ -0,0 +1,29 @@
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } 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 function deepFreeze(input: AssetInputWrapperRepresentation): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AssetInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * Wrapper Input Representation for AssetInputRepresentation
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface AssetInputWrapperRepresentationNormalized {
19
+ AssetInput: AssetInputRepresentation_AssetInputRepresentation;
20
+ }
21
+ /**
22
+ * Wrapper Input Representation for AssetInputRepresentation
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface AssetInputWrapperRepresentation {
28
+ AssetInput: AssetInputRepresentation_AssetInputRepresentation;
29
+ }
@@ -0,0 +1,42 @@
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 function deepFreeze(input: AssetOutputRepresentation): void;
19
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
20
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: AssetOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
21
+ /**
22
+ * Representation of a created template object.
23
+ *
24
+ * Keys:
25
+ * id (string): id
26
+ */
27
+ export interface AssetOutputRepresentationNormalized {
28
+ /** Url to load the specified resource in content builder. */
29
+ contentBuilderUrl: string;
30
+ /** Id of the created object. */
31
+ id: string;
32
+ }
33
+ /**
34
+ * Representation of a created template object.
35
+ *
36
+ * Keys:
37
+ * id (string): id
38
+ */
39
+ export interface AssetOutputRepresentation {
40
+ contentBuilderUrl: string;
41
+ id: string;
42
+ }
@@ -0,0 +1,48 @@
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } 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 function deepFreeze(input: StarterTemplateDetailRepresentation): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: StarterTemplateDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * Representation of the details of a starter template to be displayed.
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface StarterTemplateDetailRepresentationNormalized {
19
+ /** Url for content builder */
20
+ contentBuilderUrl: string;
21
+ /** Creator of the object. */
22
+ createdBy: string;
23
+ /** Created date of the object. */
24
+ createdOn: string;
25
+ /** Description of the object. */
26
+ description: string;
27
+ /** HTML content of the object. */
28
+ html: string;
29
+ /** Id of the object. */
30
+ id: string;
31
+ /** Name of the object. */
32
+ name: string;
33
+ }
34
+ /**
35
+ * Representation of the details of a starter template to be displayed.
36
+ *
37
+ * Keys:
38
+ * (none)
39
+ */
40
+ export interface StarterTemplateDetailRepresentation {
41
+ contentBuilderUrl: string;
42
+ createdBy: string;
43
+ createdOn: string;
44
+ description: string;
45
+ html: string;
46
+ id: string;
47
+ name: string;
48
+ }
@@ -0,0 +1,31 @@
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } 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 function deepFreeze(input: StarterTemplateListRepresentation): void;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: StarterTemplateListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
13
+ /**
14
+ * Representation of a list of starter templates.
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface StarterTemplateListRepresentationNormalized {
20
+ /** List of Starter Templates. */
21
+ starterTemplateList: Array<StarterTemplateRepresentation_StarterTemplateRepresentation>;
22
+ }
23
+ /**
24
+ * Representation of a list of starter templates.
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface StarterTemplateListRepresentation {
30
+ starterTemplateList: Array<StarterTemplateRepresentation_StarterTemplateRepresentation>;
31
+ }
@@ -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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } 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 function deepFreeze(input: StarterTemplateRepresentation): void;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: StarterTemplateRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
+ /**
12
+ * Representation of a starter template object.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface StarterTemplateRepresentationNormalized {
18
+ /** Description of the object. */
19
+ description: string;
20
+ /** Id of the object. */
21
+ id: string;
22
+ /** Name of the object. */
23
+ name: string;
24
+ /** Url to thumbnail image. */
25
+ thumbnailUrl: string;
26
+ }
27
+ /**
28
+ * Representation of a starter template object.
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface StarterTemplateRepresentation {
34
+ description: string;
35
+ id: string;
36
+ name: string;
37
+ thumbnailUrl: string;
38
+ }
@@ -0,0 +1,39 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectFreeze: {
3
+ <T extends Function>(f: T): T;
4
+ <T_1 extends {
5
+ [idx: string]: object | U | null | undefined;
6
+ }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
7
+ <T_2>(o: T_2): Readonly<T_2>;
8
+ }, ObjectKeys: {
9
+ (o: object): string[];
10
+ (o: {}): string[];
11
+ }, ObjectCreate: {
12
+ (o: object | null): any;
13
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
14
+ }, ObjectAssign: {
15
+ <T extends {}, U>(target: T, source: U): T & U;
16
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
17
+ <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;
18
+ (target: object, ...sources: any[]): any;
19
+ };
20
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
21
+ export declare const JSONStringify: {
22
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
23
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
24
+ };
25
+ type AllowedPrimitives = boolean | string | number | Date | null;
26
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
27
+ export type RecursivePartial<T> = null | {
28
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
29
+ };
30
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
31
+ export declare function equalsObject<U, V extends {
32
+ [key: string]: U;
33
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
34
+ export declare function deepFreeze(value: any): void;
35
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
36
+ __ref: string;
37
+ };
38
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
39
+ export {};