@salesforce/lds-adapters-platform-external-services 1.274.0 → 1.276.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/platform-external-services.js +10 -1
- package/dist/es/es2018/types/src/main.d.ts +6 -0
- package/dist/es/es2018/types/src/raml-artifacts/types/ExternalServiceStatisticsOutputRepresentation/notifyUpdateAvailableFactory.d.ts +2 -0
- package/dist/es/es2018/types/src/sfdc.d.ts +7 -0
- package/package.json +8 -6
- package/sfdc/index.d.ts +1 -1
- package/sfdc/index.js +30 -4
|
@@ -2736,4 +2736,13 @@ const getStatisticsForServiceAdapterFactory = (luvio) => function externalServic
|
|
|
2736
2736
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
2737
2737
|
};
|
|
2738
2738
|
|
|
2739
|
-
|
|
2739
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
2740
|
+
// custom override of notifyUpdateAvailable function to bypass luvio key requirement since it is not possible to have
|
|
2741
|
+
// a luvio.key for ExternalServiceStatisticOutputRepresentation
|
|
2742
|
+
return function notifyExternalServiceStatisticsOutputRepresentationUpdateAvailable() {
|
|
2743
|
+
const key = keyBuilder$3();
|
|
2744
|
+
return luvio.notifyStoreUpdateAvailable([key]);
|
|
2745
|
+
};
|
|
2746
|
+
};
|
|
2747
|
+
|
|
2748
|
+
export { getActionDetailsForServiceAdapterFactory, getDataShapeAdapterFactory, getOpenApiSpecAdapterFactory, getStatisticsAdapterFactory, getStatisticsForServiceAdapterFactory, notifyUpdateAvailableFactory as notifyExternalServiceStatisticsOutputRepresentationUpdateAvailableFactory, sendTestConnectionRequestAdapterFactory, validateSchemaAdapterFactory };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Original file is in 'packages/lds-adapters-platform-external-services/src/generated/artifacts/main.ts'
|
|
3
|
+
* Overriding this file to manually inject custom notifyUpdateAvailableFactory implementation.
|
|
4
|
+
*/
|
|
5
|
+
export * from './generated/artifacts/main';
|
|
6
|
+
export { notifyUpdateAvailableFactory as notifyExternalServiceStatisticsOutputRepresentationUpdateAvailableFactory } from './raml-artifacts/types/ExternalServiceStatisticsOutputRepresentation/notifyUpdateAvailableFactory';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Original file is in 'packages/lds-adapters-platform-external-services/src/generated/artifacts/sfdc.ts'
|
|
3
|
+
* Overriding this file to manually inject custom notifyUpdateAvailableFactory implementation.
|
|
4
|
+
*/
|
|
5
|
+
export * from './generated/artifacts/sfdc';
|
|
6
|
+
declare let notifyExternalServiceStatisticsOutputRepresentationUpdateAvailable: any;
|
|
7
|
+
export { notifyExternalServiceStatisticsOutputRepresentationUpdateAvailable };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-external-services",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.276.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "External Services Connect API Family",
|
|
6
6
|
"main": "dist/es/es2018/platform-external-services.js",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"module": "platformExternalServicesApi"
|
|
29
29
|
},
|
|
30
30
|
"contributors": [
|
|
31
|
-
"sixuanchen@salesforce.com"
|
|
31
|
+
"sixuanchen@salesforce.com",
|
|
32
|
+
"kattie.tay@salesforce.com"
|
|
32
33
|
],
|
|
33
34
|
"scripts": {
|
|
34
35
|
"build": "yarn build:services",
|
|
@@ -39,14 +40,15 @@
|
|
|
39
40
|
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-external-services",
|
|
40
41
|
"release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-platform-external-services",
|
|
41
42
|
"start": "nx build:karma && karma start",
|
|
42
|
-
"test": "nx build:karma && karma start --single-run"
|
|
43
|
+
"test": "nx build:karma && karma start --single-run",
|
|
44
|
+
"test:unit": "jest --config=./jest.config.js"
|
|
43
45
|
},
|
|
44
46
|
"dependencies": {
|
|
45
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.276.0"
|
|
46
48
|
},
|
|
47
49
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
49
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.276.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.276.0"
|
|
50
52
|
},
|
|
51
53
|
"nx": {
|
|
52
54
|
"targets": {
|
package/sfdc/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../dist/es/es2018/types/src/
|
|
1
|
+
export * from '../dist/es/es2018/types/src/sfdc';
|
package/sfdc/index.js
CHANGED
|
@@ -2778,7 +2778,7 @@ const sendTestConnectionRequestMetadata = {
|
|
|
2778
2778
|
ttl: 100,
|
|
2779
2779
|
};
|
|
2780
2780
|
// Notify Update Available
|
|
2781
|
-
function bindExportsTo(luvio) {
|
|
2781
|
+
function bindExportsTo$1(luvio) {
|
|
2782
2782
|
// LDS Adapters
|
|
2783
2783
|
const getActionDetailsForService_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getActionDetailsForService', getActionDetailsForServiceAdapterFactory), getActionDetailsForServiceMetadata);
|
|
2784
2784
|
const getDataShape_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getDataShape', getDataShapeAdapterFactory), getDataShapeMetadata);
|
|
@@ -2823,8 +2823,34 @@ withDefaultLuvio((luvio) => {
|
|
|
2823
2823
|
getStatistics_imperative,
|
|
2824
2824
|
getStatisticsForService_imperative,
|
|
2825
2825
|
sendTestConnectionRequest_imperative,
|
|
2826
|
-
} = bindExportsTo(luvio));
|
|
2826
|
+
} = bindExportsTo$1(luvio));
|
|
2827
|
+
});
|
|
2828
|
+
|
|
2829
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
2830
|
+
// custom override of notifyUpdateAvailable function to bypass luvio key requirement since it is not possible to have
|
|
2831
|
+
// a luvio.key for ExternalServiceStatisticOutputRepresentation
|
|
2832
|
+
return function notifyExternalServiceStatisticsOutputRepresentationUpdateAvailable() {
|
|
2833
|
+
const key = keyBuilder$6();
|
|
2834
|
+
return luvio.notifyStoreUpdateAvailable([key]);
|
|
2835
|
+
};
|
|
2836
|
+
};
|
|
2837
|
+
|
|
2838
|
+
/**
|
|
2839
|
+
* Original file is in 'packages/lds-adapters-platform-external-services/src/generated/artifacts/sfdc.ts'
|
|
2840
|
+
* Overriding this file to manually inject custom notifyUpdateAvailableFactory implementation.
|
|
2841
|
+
*/
|
|
2842
|
+
// Notify Update Available
|
|
2843
|
+
// manually injected notifyUpdateAvailable
|
|
2844
|
+
let notifyExternalServiceStatisticsOutputRepresentationUpdateAvailable;
|
|
2845
|
+
function bindExportsTo(luvio) {
|
|
2846
|
+
return {
|
|
2847
|
+
// Notify Update Availables
|
|
2848
|
+
notifyExternalServiceStatisticsOutputRepresentationUpdateAvailable: createLDSAdapter(luvio, 'notifyExternalServiceStatisticsOutputRepresentationUpdateAvailable', notifyUpdateAvailableFactory),
|
|
2849
|
+
};
|
|
2850
|
+
}
|
|
2851
|
+
withDefaultLuvio((luvio) => {
|
|
2852
|
+
({ notifyExternalServiceStatisticsOutputRepresentationUpdateAvailable } = bindExportsTo(luvio));
|
|
2827
2853
|
});
|
|
2828
2854
|
|
|
2829
|
-
export { getActionDetailsForService, getActionDetailsForService_imperative, getDataShape, getDataShape_imperative, getOpenApiSpec, getOpenApiSpec_imperative, getStatistics, getStatisticsForService, getStatisticsForService_imperative, getStatistics_imperative, sendTestConnectionRequest, sendTestConnectionRequest_imperative, validateSchema };
|
|
2830
|
-
// version: 1.
|
|
2855
|
+
export { getActionDetailsForService, getActionDetailsForService_imperative, getDataShape, getDataShape_imperative, getOpenApiSpec, getOpenApiSpec_imperative, getStatistics, getStatisticsForService, getStatisticsForService_imperative, getStatistics_imperative, notifyExternalServiceStatisticsOutputRepresentationUpdateAvailable, sendTestConnectionRequest, sendTestConnectionRequest_imperative, validateSchema };
|
|
2856
|
+
// version: 1.276.0-58fd72593
|