@salesforce/lds-adapters-cms-managedcontentspaces 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.
Files changed (21) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/cms-managedcontentspaces.js +749 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getManagedContentSpaceChannels.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
  7. package/dist/es/es2018/types/src/generated/resources/getConnectCmsSpacesChannelsByContentSpaceId.d.ts +19 -0
  8. package/dist/es/es2018/types/src/generated/resources/patchConnectCmsSpacesChannelsByContentSpaceId.d.ts +13 -0
  9. package/dist/es/es2018/types/src/generated/types/ManagedContentChannelSummaryRepresentation.d.ts +47 -0
  10. package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceChannelInputRepresentation.d.ts +31 -0
  11. package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceChannelRepresentation.d.ts +47 -0
  12. package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceChannelsInputList.d.ts +29 -0
  13. package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceChannelsInputRepresentation.d.ts +29 -0
  14. package/dist/es/es2018/types/src/generated/types/ManagedContentSpaceChannelsRepresentation.d.ts +51 -0
  15. package/dist/es/es2018/types/src/generated/types/ManagedContentUserSummaryRepresentation.d.ts +34 -0
  16. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  17. package/package.json +66 -0
  18. package/sfdc/index.d.ts +1 -0
  19. package/sfdc/index.js +785 -0
  20. package/src/raml/api.raml +182 -0
  21. package/src/raml/luvio.raml +27 -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 = "CmsManagement";
@@ -0,0 +1,29 @@
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_getConnectCmsSpacesChannelsByContentSpaceId_ResourceRequestConfig } from '../resources/getConnectCmsSpacesChannelsByContentSpaceId';
4
+ import { ManagedContentSpaceChannelsRepresentation as types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation } from '../types/ManagedContentSpaceChannelsRepresentation';
5
+ export declare const adapterName = "getManagedContentSpaceChannels";
6
+ export declare const getManagedContentSpaceChannels_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getManagedContentSpaceChannels_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetManagedContentSpaceChannelsConfig {
9
+ contentSpaceId: string;
10
+ page?: number;
11
+ pageSize?: number;
12
+ }
13
+ export declare const createResourceParams: (config: GetManagedContentSpaceChannelsConfig) => resources_getConnectCmsSpacesChannelsByContentSpaceId_ResourceRequestConfig;
14
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetManagedContentSpaceChannelsConfig): string;
15
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetManagedContentSpaceChannelsConfig): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetManagedContentSpaceChannelsConfig>): adapter$45$utils_Untrusted<GetManagedContentSpaceChannelsConfig>;
17
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetManagedContentSpaceChannelsConfig | null;
18
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetManagedContentSpaceChannelsConfig): $64$luvio_engine_Fragment;
19
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetManagedContentSpaceChannelsConfig): $64$luvio_engine_Snapshot<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation, any>;
20
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetManagedContentSpaceChannelsConfig, resourceParams: resources_getConnectCmsSpacesChannelsByContentSpaceId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation, any>>;
21
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetManagedContentSpaceChannelsConfig, resourceParams: resources_getConnectCmsSpacesChannelsByContentSpaceId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
22
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetManagedContentSpaceChannelsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation, any>>;
23
+ export type BuildSnapshotContext = {
24
+ luvio: $64$luvio_engine_Luvio;
25
+ config: GetManagedContentSpaceChannelsConfig;
26
+ };
27
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation, any>>;
28
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation>): $64$luvio_engine_Snapshot<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation, any>;
29
+ export declare const getManagedContentSpaceChannelsAdapterFactory: $64$luvio_engine_AdapterFactory<GetManagedContentSpaceChannelsConfig, types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation>;
@@ -0,0 +1 @@
1
+ export { getManagedContentSpaceChannelsAdapterFactory } from '../adapters/getManagedContentSpaceChannels';
@@ -0,0 +1,3 @@
1
+ declare let getManagedContentSpaceChannels: any;
2
+ declare let getManagedContentSpaceChannels_imperative: any;
3
+ export { getManagedContentSpaceChannels, getManagedContentSpaceChannels_imperative };
@@ -0,0 +1,19 @@
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 { ManagedContentSpaceChannelsRepresentation as types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation } from '../types/ManagedContentSpaceChannelsRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ contentSpaceId: string;
6
+ };
7
+ queryParams: {
8
+ page?: number;
9
+ pageSize?: number;
10
+ };
11
+ }
12
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation): void;
16
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation, any>;
17
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ManagedContentSpaceChannelsRepresentation_ManagedContentSpaceChannelsRepresentation>): $64$luvio_engine_ErrorSnapshot;
18
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
19
+ export default createResourceRequest;
@@ -0,0 +1,13 @@
1
+ import { ManagedContentSpaceChannelsInputList as types_ManagedContentSpaceChannelsInputList_ManagedContentSpaceChannelsInputList } from '../types/ManagedContentSpaceChannelsInputList';
2
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ contentSpaceId: string;
6
+ };
7
+ body: {
8
+ spaceChannels: Array<types_ManagedContentSpaceChannelsInputList_ManagedContentSpaceChannelsInputList>;
9
+ };
10
+ }
11
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
13
+ export default createResourceRequest;
@@ -0,0 +1,47 @@
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 = 30000;
3
+ export declare const VERSION = "2259491768d10f813e45abec36a864c8";
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
+ channelId: string;
8
+ }
9
+ export type ManagedContentChannelSummaryRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type PartialManagedContentChannelSummaryRepresentationNormalizedKeyMetadata = 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): ManagedContentChannelSummaryRepresentationNormalizedKeyMetadata;
13
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ManagedContentChannelSummaryRepresentation): string;
14
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ManagedContentChannelSummaryRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function normalize(input: ManagedContentChannelSummaryRepresentation, existing: ManagedContentChannelSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentChannelSummaryRepresentationNormalized;
16
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: ManagedContentChannelSummaryRepresentationNormalized, incoming: ManagedContentChannelSummaryRepresentationNormalized): 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: ManagedContentChannelSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ /**
21
+ * Contextual Information of the channel in managed content delivery api
22
+ *
23
+ * Keys:
24
+ * channelId (string): id
25
+ */
26
+ export interface ManagedContentChannelSummaryRepresentationNormalized {
27
+ /** Id of the Managed Content Channel */
28
+ id: string;
29
+ /** Name of the managed content channel */
30
+ name: string;
31
+ /** Type of Managed Content Channel */
32
+ type: string;
33
+ /** URL to the single channel management API that can read detailed information of a channel, update or delete it */
34
+ url: string;
35
+ }
36
+ /**
37
+ * Contextual Information of the channel in managed content delivery api
38
+ *
39
+ * Keys:
40
+ * channelId (string): id
41
+ */
42
+ export interface ManagedContentChannelSummaryRepresentation {
43
+ id: string;
44
+ name: string;
45
+ type: string;
46
+ url: string;
47
+ }
@@ -0,0 +1,31 @@
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 = "0632a15560065428664d7d185fcef034";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ManagedContentSpaceChannelInputRepresentation, existing: ManagedContentSpaceChannelInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentSpaceChannelInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ManagedContentSpaceChannelInputRepresentationNormalized, incoming: ManagedContentSpaceChannelInputRepresentationNormalized): 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: ManagedContentSpaceChannelInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * The input representation for a Managed Content Space Channel
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ManagedContentSpaceChannelInputRepresentationNormalized {
17
+ /** Id of the Managed Content Channel */
18
+ channelId: string;
19
+ /** Operation to perform for Managed Content Channel */
20
+ operation: string;
21
+ }
22
+ /**
23
+ * The input representation for a Managed Content Space Channel
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ManagedContentSpaceChannelInputRepresentation {
29
+ channelId: string;
30
+ operation: string;
31
+ }
@@ -0,0 +1,47 @@
1
+ import { ManagedContentUserSummaryRepresentation as ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation } from './ManagedContentUserSummaryRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ import { ManagedContentChannelSummaryRepresentation as ManagedContentChannelSummaryRepresentation_ManagedContentChannelSummaryRepresentation } from './ManagedContentChannelSummaryRepresentation';
4
+ export declare const TTL = 30000;
5
+ export declare const VERSION = "1511cb412ac3862b59548167ba28cdde";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export declare function normalize(input: ManagedContentSpaceChannelRepresentation, existing: ManagedContentSpaceChannelRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentSpaceChannelRepresentationNormalized;
9
+ export interface DynamicIngestParams {
10
+ channelSummary: $64$luvio_engine_ResourceIngest;
11
+ }
12
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ManagedContentSpaceChannelRepresentation, existing: ManagedContentSpaceChannelRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ManagedContentSpaceChannelRepresentationNormalized;
13
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
14
+ export interface DynamicSelectParams {
15
+ channelSummary?: $64$luvio_engine_LinkSelection;
16
+ }
17
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
18
+ export declare function equals(existing: ManagedContentSpaceChannelRepresentationNormalized, incoming: ManagedContentSpaceChannelRepresentationNormalized): boolean;
19
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
20
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ManagedContentSpaceChannelRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
21
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
22
+ /**
23
+ * Representation of a Managed Content space Channel
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ManagedContentSpaceChannelRepresentationNormalized {
29
+ channelSummary: $64$luvio_engine_StoreLink;
30
+ createdBy: ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation;
31
+ /** Date when the space channel is created */
32
+ createdDate: string;
33
+ /** Status of the Managed Content Space Channel. */
34
+ status: string;
35
+ }
36
+ /**
37
+ * Representation of a Managed Content space Channel
38
+ *
39
+ * Keys:
40
+ * (none)
41
+ */
42
+ export interface ManagedContentSpaceChannelRepresentation {
43
+ channelSummary: ManagedContentChannelSummaryRepresentation_ManagedContentChannelSummaryRepresentation;
44
+ createdBy: ManagedContentUserSummaryRepresentation_ManagedContentUserSummaryRepresentation;
45
+ createdDate: string;
46
+ status: string;
47
+ }
@@ -0,0 +1,29 @@
1
+ import { ManagedContentSpaceChannelInputRepresentation as ManagedContentSpaceChannelInputRepresentation_ManagedContentSpaceChannelInputRepresentation } from './ManagedContentSpaceChannelInputRepresentation';
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 = "da987d3b08515df2f4f347e7bfa08306";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ManagedContentSpaceChannelsInputList, existing: ManagedContentSpaceChannelsInputListNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentSpaceChannelsInputListNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ManagedContentSpaceChannelsInputListNormalized, incoming: ManagedContentSpaceChannelsInputListNormalized): 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: ManagedContentSpaceChannelsInputList, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * ManagedContentSpaceChannelInputRepresentation list input representation wrapper.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ManagedContentSpaceChannelsInputListNormalized {
18
+ /** Managed Content Space Channels list to be added or removed from the workspace. */
19
+ mcSpaceChannelInput: Array<ManagedContentSpaceChannelInputRepresentation_ManagedContentSpaceChannelInputRepresentation>;
20
+ }
21
+ /**
22
+ * ManagedContentSpaceChannelInputRepresentation list input representation wrapper.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface ManagedContentSpaceChannelsInputList {
28
+ mcSpaceChannelInput: Array<ManagedContentSpaceChannelInputRepresentation_ManagedContentSpaceChannelInputRepresentation>;
29
+ }
@@ -0,0 +1,29 @@
1
+ import { ManagedContentSpaceChannelsInputList as ManagedContentSpaceChannelsInputList_ManagedContentSpaceChannelsInputList } from './ManagedContentSpaceChannelsInputList';
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 = "a3587c2ee87d6122a1bcf000a52ea32a";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ManagedContentSpaceChannelsInputRepresentation, existing: ManagedContentSpaceChannelsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentSpaceChannelsInputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ManagedContentSpaceChannelsInputRepresentationNormalized, incoming: ManagedContentSpaceChannelsInputRepresentationNormalized): 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: ManagedContentSpaceChannelsInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * The input representation for a Managed Content space Channels
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ManagedContentSpaceChannelsInputRepresentationNormalized {
18
+ /** List of Managed Content Space Channels to be added or removed from the workspace */
19
+ spaceChannels: Array<ManagedContentSpaceChannelsInputList_ManagedContentSpaceChannelsInputList>;
20
+ }
21
+ /**
22
+ * The input representation for a Managed Content space Channels
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface ManagedContentSpaceChannelsInputRepresentation {
28
+ spaceChannels: Array<ManagedContentSpaceChannelsInputList_ManagedContentSpaceChannelsInputList>;
29
+ }
@@ -0,0 +1,51 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ import { ManagedContentSpaceChannelRepresentation as ManagedContentSpaceChannelRepresentation_ManagedContentSpaceChannelRepresentation } from './ManagedContentSpaceChannelRepresentation';
3
+ export declare const TTL = 30000;
4
+ export declare const VERSION = "79158e6cb18aabd47ef4cd8c47aa2d45";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: ManagedContentSpaceChannelsRepresentation, existing: ManagedContentSpaceChannelsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentSpaceChannelsRepresentationNormalized;
8
+ export interface DynamicIngestParams {
9
+ spaceChannels: $64$luvio_engine_ResourceIngest;
10
+ }
11
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ManagedContentSpaceChannelsRepresentation, existing: ManagedContentSpaceChannelsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ManagedContentSpaceChannelsRepresentationNormalized;
12
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
13
+ export interface DynamicSelectParams {
14
+ spaceChannels?: $64$luvio_engine_LinkSelection;
15
+ }
16
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: ManagedContentSpaceChannelsRepresentationNormalized, incoming: ManagedContentSpaceChannelsRepresentationNormalized): 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: ManagedContentSpaceChannelsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
21
+ /**
22
+ * List of managed content space channels.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface ManagedContentSpaceChannelsRepresentationNormalized {
28
+ /** URL to the current page of Manage Content Space Channels. */
29
+ currentPageUrl: string | null;
30
+ /** URL to the next page of Manage Content Space Channels. */
31
+ nextPageUrl: string | null;
32
+ /** URL to the previous page of Managed Content Space Channel records */
33
+ previousPageUrl: string | null;
34
+ /** Managed content space channels */
35
+ spaceChannels: Array<$64$luvio_engine_StoreLink>;
36
+ /** Total count of Manage Content Space Channel records returned for the current request */
37
+ totalSpaceChannels: number;
38
+ }
39
+ /**
40
+ * List of managed content space channels.
41
+ *
42
+ * Keys:
43
+ * (none)
44
+ */
45
+ export interface ManagedContentSpaceChannelsRepresentation {
46
+ currentPageUrl: string | null;
47
+ nextPageUrl: string | null;
48
+ previousPageUrl: string | null;
49
+ spaceChannels: Array<ManagedContentSpaceChannelRepresentation_ManagedContentSpaceChannelRepresentation>;
50
+ totalSpaceChannels: number;
51
+ }
@@ -0,0 +1,34 @@
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 = "0442df24d91a0d085c1002f69dd25754";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ManagedContentUserSummaryRepresentation, existing: ManagedContentUserSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentUserSummaryRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ManagedContentUserSummaryRepresentationNormalized, incoming: ManagedContentUserSummaryRepresentationNormalized): 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: ManagedContentUserSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Information about a user who created/modified content.
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ManagedContentUserSummaryRepresentationNormalized {
17
+ /** The id of the user. */
18
+ id: string;
19
+ /** The name of the user. */
20
+ name: string;
21
+ /** The connect endpoint resourceUrl of the user to get more information about the user. */
22
+ resourceUrl: string;
23
+ }
24
+ /**
25
+ * Information about a user who created/modified content.
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface ManagedContentUserSummaryRepresentation {
31
+ id: string;
32
+ name: string;
33
+ resourceUrl: string;
34
+ }
@@ -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,66 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-cms-managedcontentspaces",
3
+ "version": "0.1.0-dev1",
4
+ "description": "Connect Family for all the CMS Space endpoints - /cms/spaces/*",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/cms-managedcontentspaces.js",
7
+ "module": "dist/es/es2018/cms-managedcontentspaces.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/cms-managedcontentspaces.js",
18
+ "require": "./dist/es/es2018/cms-managedcontentspaces.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sfdc": {
27
+ "namespace": "lightning",
28
+ "module": "cmsManagedcontentspacesApi"
29
+ },
30
+ "contributors": [
31
+ "tgeereddy@salesforce.com"
32
+ ],
33
+ "scripts": {
34
+ "build": "yarn build:services",
35
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
36
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
37
+ "clean": "rm -rf dist sfdc src/generated",
38
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-cms-managedcontentspaces",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-cms-managedcontentspaces",
40
+ "test:unit": "jest"
41
+ },
42
+ "dependencies": {
43
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1"
47
+ },
48
+ "nx": {
49
+ "targets": {
50
+ "build": {
51
+ "outputs": [
52
+ "{projectRoot}/dist",
53
+ "{projectRoot}/sfdc"
54
+ ]
55
+ },
56
+ "build:raml": {
57
+ "outputs": [
58
+ "{projectRoot}/src/generated"
59
+ ]
60
+ }
61
+ }
62
+ },
63
+ "volta": {
64
+ "extends": "../../package.json"
65
+ }
66
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';