@salesforce/lds-adapters-cms-authoring 1.293.0 → 1.294.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/cms-authoring.js +119 -195
- package/dist/es/es2018/types/src/generated/adapters/publishManagedContent.d.ts +5 -2
- package/dist/es/es2018/types/src/generated/adapters/unpublishManagedContent.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/resources/postConnectCmsContentsPublish.d.ts +5 -2
- package/dist/es/es2018/types/src/generated/resources/postConnectCmsContentsUnpublish.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/types/ManagedContentFileUploadRepresentation.d.ts +7 -1
- package/package.json +4 -4
- package/sfdc/index.js +221 -297
- package/src/raml/api.raml +8 -15
- package/src/raml/luvio.raml +23 -27
- package/dist/es/es2018/types/src/generated/types/ManagedContentPublishInputWrapperRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/types/ManagedContentUnpublishInputWrapperRepresentation.d.ts +0 -28
|
@@ -1,13 +1,16 @@
|
|
|
1
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
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import { ManagedContentPublishInputRepresentation as types_ManagedContentPublishInputRepresentation_ManagedContentPublishInputRepresentation } from '../types/ManagedContentPublishInputRepresentation';
|
|
4
3
|
import { ResourceRequestConfig as resources_postConnectCmsContentsPublish_ResourceRequestConfig } from '../resources/postConnectCmsContentsPublish';
|
|
5
4
|
import { ManagedContentPublishOutputRepresentation as types_ManagedContentPublishOutputRepresentation_ManagedContentPublishOutputRepresentation } from '../types/ManagedContentPublishOutputRepresentation';
|
|
6
5
|
export declare const adapterName = "publishManagedContent";
|
|
7
6
|
export declare const publishManagedContent_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
7
|
export declare const publishManagedContent_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
8
|
export interface PublishManagedContentConfig {
|
|
10
|
-
|
|
9
|
+
contentIds?: Array<string>;
|
|
10
|
+
description?: string;
|
|
11
|
+
includeContentReferences?: boolean;
|
|
12
|
+
variantIds?: Array<string>;
|
|
13
|
+
contextContentSpaceId?: string;
|
|
11
14
|
}
|
|
12
15
|
export declare const createResourceParams: (config: PublishManagedContentConfig) => resources_postConnectCmsContentsPublish_ResourceRequestConfig;
|
|
13
16
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PublishManagedContentConfig>): adapter$45$utils_Untrusted<PublishManagedContentConfig>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
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
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import { ManagedContentUnpublishInputRepresentation as types_ManagedContentUnpublishInputRepresentation_ManagedContentUnpublishInputRepresentation } from '../types/ManagedContentUnpublishInputRepresentation';
|
|
4
3
|
import { ResourceRequestConfig as resources_postConnectCmsContentsUnpublish_ResourceRequestConfig } from '../resources/postConnectCmsContentsUnpublish';
|
|
5
4
|
import { ManagedContentUnpublishOutputRepresentation as types_ManagedContentUnpublishOutputRepresentation_ManagedContentUnpublishOutputRepresentation } from '../types/ManagedContentUnpublishOutputRepresentation';
|
|
6
5
|
export declare const adapterName = "unpublishManagedContent";
|
|
7
6
|
export declare const unpublishManagedContent_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
7
|
export declare const unpublishManagedContent_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
8
|
export interface UnpublishManagedContentConfig {
|
|
10
|
-
|
|
9
|
+
contentIds?: Array<string>;
|
|
10
|
+
description?: string;
|
|
11
|
+
variantIds?: Array<string>;
|
|
11
12
|
}
|
|
12
13
|
export declare const createResourceParams: (config: UnpublishManagedContentConfig) => resources_postConnectCmsContentsUnpublish_ResourceRequestConfig;
|
|
13
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UnpublishManagedContentConfig>): adapter$45$utils_Untrusted<UnpublishManagedContentConfig>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { ManagedContentPublishInputRepresentation as types_ManagedContentPublishInputRepresentation_ManagedContentPublishInputRepresentation } from '../types/ManagedContentPublishInputRepresentation';
|
|
2
1
|
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
2
|
import { ManagedContentPublishOutputRepresentation as types_ManagedContentPublishOutputRepresentation_ManagedContentPublishOutputRepresentation } from '../types/ManagedContentPublishOutputRepresentation';
|
|
4
3
|
export interface ResourceRequestConfig {
|
|
5
4
|
body: {
|
|
6
|
-
|
|
5
|
+
contentIds?: Array<string>;
|
|
6
|
+
description?: string;
|
|
7
|
+
includeContentReferences?: boolean;
|
|
8
|
+
variantIds?: Array<string>;
|
|
9
|
+
contextContentSpaceId?: string;
|
|
7
10
|
};
|
|
8
11
|
}
|
|
9
12
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ManagedContentUnpublishInputRepresentation as types_ManagedContentUnpublishInputRepresentation_ManagedContentUnpublishInputRepresentation } from '../types/ManagedContentUnpublishInputRepresentation';
|
|
2
1
|
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
2
|
import { ManagedContentUnpublishOutputRepresentation as types_ManagedContentUnpublishOutputRepresentation_ManagedContentUnpublishOutputRepresentation } from '../types/ManagedContentUnpublishOutputRepresentation';
|
|
4
3
|
export interface ResourceRequestConfig {
|
|
5
4
|
body: {
|
|
6
|
-
|
|
5
|
+
contentIds?: Array<string>;
|
|
6
|
+
description?: string;
|
|
7
|
+
variantIds?: Array<string>;
|
|
7
8
|
};
|
|
8
9
|
}
|
|
9
10
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
package/dist/es/es2018/types/src/generated/types/ManagedContentFileUploadRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
export declare const TTL = 100;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "3aae2fad9020711e898a6f7dc26e76a9";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: ManagedContentFileUploadRepresentation, existing: ManagedContentFileUploadRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ManagedContentFileUploadRepresentationNormalized;
|
|
@@ -15,6 +15,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface ManagedContentFileUploadRepresentationNormalized {
|
|
18
|
+
/** Flag to indicate if ContentVersion has custom record types */
|
|
19
|
+
hasCustomRecordTypes: boolean;
|
|
20
|
+
/** Get the Maximum File Attachments on Feed */
|
|
21
|
+
maxFileAttachmentsOnFeed: number;
|
|
18
22
|
/** The CSRF Token for the file upload request. This token is used to authenticate the file upload */
|
|
19
23
|
token: string;
|
|
20
24
|
/** Get the file upload url. This is the decoupled mode url */
|
|
@@ -27,6 +31,8 @@ export interface ManagedContentFileUploadRepresentationNormalized {
|
|
|
27
31
|
* (none)
|
|
28
32
|
*/
|
|
29
33
|
export interface ManagedContentFileUploadRepresentation {
|
|
34
|
+
hasCustomRecordTypes: boolean;
|
|
35
|
+
maxFileAttachmentsOnFeed: number;
|
|
30
36
|
token: string;
|
|
31
37
|
uploadUrl: string;
|
|
32
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cms-authoring",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.294.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapters for CMS authoring APIs",
|
|
6
6
|
"main": "dist/es/es2018/cms-authoring.js",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"test:unit": "jest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.294.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.294.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.294.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|