@salesforce/lds-adapters-marketing-assetcreation 1.260.0 → 1.262.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.
|
@@ -3,4 +3,4 @@ declare let getStarterTemplateById: any;
|
|
|
3
3
|
declare let getStarterTemplates: any;
|
|
4
4
|
declare let getStarterTemplateById_imperative: any;
|
|
5
5
|
declare let getStarterTemplates_imperative: any;
|
|
6
|
-
export { createAsset, getStarterTemplateById, getStarterTemplates, getStarterTemplateById_imperative, getStarterTemplates_imperative };
|
|
6
|
+
export { createAsset, getStarterTemplateById, getStarterTemplates, getStarterTemplateById_imperative, getStarterTemplates_imperative, };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-marketing-assetcreation",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.262.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "APIs to create assets based on templates",
|
|
6
6
|
"main": "dist/es/es2018/marketing-assetcreation.js",
|
|
@@ -35,15 +35,14 @@
|
|
|
35
35
|
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-marketing-assetcreation",
|
|
36
36
|
"release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-marketing-assetcreation",
|
|
37
37
|
"start": "nx build:karma && karma start",
|
|
38
|
-
"test": "nx build:karma && karma start --single-run"
|
|
39
|
-
"test:compat": "nx build:karma && karma start --single-run --compat"
|
|
38
|
+
"test": "nx build:karma && karma start --single-run"
|
|
40
39
|
},
|
|
41
40
|
"dependencies": {
|
|
42
|
-
"@salesforce/lds-bindings": "^1.
|
|
41
|
+
"@salesforce/lds-bindings": "^1.262.0"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
45
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
-
"@salesforce/lds-karma": "^1.
|
|
44
|
+
"@salesforce/lds-compiler-plugins": "^1.262.0",
|
|
45
|
+
"@salesforce/lds-karma": "^1.262.0"
|
|
47
46
|
},
|
|
48
47
|
"nx": {
|
|
49
48
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -902,15 +902,24 @@ let getStarterTemplates;
|
|
|
902
902
|
// Imperative GET Adapters
|
|
903
903
|
let getStarterTemplateById_imperative;
|
|
904
904
|
let getStarterTemplates_imperative;
|
|
905
|
-
const getStarterTemplateByIdMetadata = {
|
|
906
|
-
|
|
905
|
+
const getStarterTemplateByIdMetadata = {
|
|
906
|
+
apiFamily: 'assetcreation',
|
|
907
|
+
name: 'getStarterTemplateById',
|
|
908
|
+
ttl: 1000,
|
|
909
|
+
};
|
|
910
|
+
const getStarterTemplatesMetadata = {
|
|
911
|
+
apiFamily: 'assetcreation',
|
|
912
|
+
name: 'getStarterTemplates',
|
|
913
|
+
ttl: 3000,
|
|
914
|
+
};
|
|
915
|
+
// Notify Update Available
|
|
907
916
|
function bindExportsTo(luvio) {
|
|
908
917
|
// LDS Adapters
|
|
909
918
|
const getStarterTemplateById_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getStarterTemplateById', getStarterTemplateByIdAdapterFactory), getStarterTemplateByIdMetadata);
|
|
910
919
|
const getStarterTemplates_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getStarterTemplates', getStarterTemplatesAdapterFactory), getStarterTemplatesMetadata);
|
|
911
920
|
function unwrapSnapshotData(factory) {
|
|
912
921
|
const adapter = factory(luvio);
|
|
913
|
-
return (config) => adapter(config).then(snapshot => snapshot.data);
|
|
922
|
+
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
914
923
|
}
|
|
915
924
|
return {
|
|
916
925
|
createAsset: unwrapSnapshotData(createAssetAdapterFactory),
|
|
@@ -918,7 +927,8 @@ function bindExportsTo(luvio) {
|
|
|
918
927
|
getStarterTemplates: createWireAdapterConstructor(luvio, getStarterTemplates_ldsAdapter, getStarterTemplatesMetadata),
|
|
919
928
|
// Imperative GET Adapters
|
|
920
929
|
getStarterTemplateById_imperative: createImperativeAdapter(luvio, getStarterTemplateById_ldsAdapter, getStarterTemplateByIdMetadata),
|
|
921
|
-
getStarterTemplates_imperative: createImperativeAdapter(luvio, getStarterTemplates_ldsAdapter, getStarterTemplatesMetadata)
|
|
930
|
+
getStarterTemplates_imperative: createImperativeAdapter(luvio, getStarterTemplates_ldsAdapter, getStarterTemplatesMetadata),
|
|
931
|
+
// Notify Update Availables
|
|
922
932
|
};
|
|
923
933
|
}
|
|
924
934
|
withDefaultLuvio((luvio) => {
|
|
@@ -927,9 +937,9 @@ withDefaultLuvio((luvio) => {
|
|
|
927
937
|
getStarterTemplateById,
|
|
928
938
|
getStarterTemplates,
|
|
929
939
|
getStarterTemplateById_imperative,
|
|
930
|
-
getStarterTemplates_imperative
|
|
940
|
+
getStarterTemplates_imperative,
|
|
931
941
|
} = bindExportsTo(luvio));
|
|
932
942
|
});
|
|
933
943
|
|
|
934
944
|
export { createAsset, getStarterTemplateById, getStarterTemplateById_imperative, getStarterTemplates, getStarterTemplates_imperative };
|
|
935
|
-
// version: 1.
|
|
945
|
+
// version: 1.262.0-d3c071fdc
|