@salesforce/lds-adapters-service-serviceplan 1.308.0-dev7 → 1.309.0-dev8
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/service-serviceplan.js +32 -3
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanDetailsOutputRepresentation.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationOutputRepresentation.d.ts +1 -0
- package/package.json +3 -3
- package/sfdc/index.js +39 -4
- package/src/raml/luvio.raml +8 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$4, typeCheckConfig as typeCheckConfig$4, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
|
-
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
10
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
11
11
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
12
|
/**
|
|
13
13
|
* Validates an adapter config is well-formed.
|
|
@@ -31,7 +31,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
31
31
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
32
32
|
}
|
|
33
33
|
const supported = required.concat(optional);
|
|
34
|
-
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
34
|
+
if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
|
|
35
35
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -71,6 +71,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
71
71
|
}
|
|
72
72
|
const keyPrefix = 'ServicePlan';
|
|
73
73
|
|
|
74
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
74
75
|
const { isArray: ArrayIsArray } = Array;
|
|
75
76
|
const { stringify: JSONStringify } = JSON;
|
|
76
77
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -1177,6 +1178,20 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1177
1178
|
getTypeCacheKeys$3(rootKeySet, luvio, input.plan, () => rootKey + "__" + "plan");
|
|
1178
1179
|
}
|
|
1179
1180
|
}
|
|
1181
|
+
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
1182
|
+
return function notifyServicePlanGenerationUpdateAvailable(configs) {
|
|
1183
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1184
|
+
const requiredKeyParams = ['id'];
|
|
1185
|
+
configs.forEach(config => {
|
|
1186
|
+
if (false === requiredKeyParams.every(req => req in config)) {
|
|
1187
|
+
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
1188
|
+
}
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
const keys = configs.map(c => keyBuilder$5(luvio, c));
|
|
1192
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1180
1195
|
|
|
1181
1196
|
function select$4(luvio, params) {
|
|
1182
1197
|
return select$5();
|
|
@@ -1865,6 +1880,20 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1865
1880
|
});
|
|
1866
1881
|
getTypeCacheKeys$1(rootKeySet, luvio, input.plan, () => rootKey + "__" + "plan");
|
|
1867
1882
|
}
|
|
1883
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
1884
|
+
return function notifyServicePlanDetailsUpdateAvailable(configs) {
|
|
1885
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1886
|
+
const requiredKeyParams = ['id'];
|
|
1887
|
+
configs.forEach(config => {
|
|
1888
|
+
if (false === requiredKeyParams.every(req => req in config)) {
|
|
1889
|
+
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
1890
|
+
}
|
|
1891
|
+
});
|
|
1892
|
+
}
|
|
1893
|
+
const keys = configs.map(c => keyBuilder$2(luvio, c));
|
|
1894
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
1895
|
+
};
|
|
1896
|
+
};
|
|
1868
1897
|
|
|
1869
1898
|
function select(luvio, params) {
|
|
1870
1899
|
return select$1();
|
|
@@ -2006,4 +2035,4 @@ const getServicePlanAdapterFactory = (luvio) => function ServicePlan__getService
|
|
|
2006
2035
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
2007
2036
|
};
|
|
2008
2037
|
|
|
2009
|
-
export { executeServicePlanAdapterFactory, generateServicePlanAdapterFactory, getGenerationRequestAdapterFactory, getServicePlanAdapterFactory };
|
|
2038
|
+
export { executeServicePlanAdapterFactory, generateServicePlanAdapterFactory, getGenerationRequestAdapterFactory, getServicePlanAdapterFactory, notifyUpdateAvailableFactory as notifyServicePlanDetailsUpdateAvailableFactory, notifyUpdateAvailableFactory$1 as notifyServicePlanGenerationUpdateAvailableFactory };
|
|
@@ -2,3 +2,5 @@ export { executeServicePlanAdapterFactory } from '../adapters/executeServicePlan
|
|
|
2
2
|
export { generateServicePlanAdapterFactory } from '../adapters/generateServicePlan';
|
|
3
3
|
export { getGenerationRequestAdapterFactory } from '../adapters/getGenerationRequest';
|
|
4
4
|
export { getServicePlanAdapterFactory } from '../adapters/getServicePlan';
|
|
5
|
+
export { notifyUpdateAvailableFactory as notifyServicePlanDetailsUpdateAvailableFactory } from '../types/ServicePlanDetailsOutputRepresentation';
|
|
6
|
+
export { notifyUpdateAvailableFactory as notifyServicePlanGenerationUpdateAvailableFactory } from '../types/ServicePlanGenerationOutputRepresentation';
|
|
@@ -5,4 +5,7 @@ declare let getServicePlan: any;
|
|
|
5
5
|
declare let getServicePlanNotifyChange: any;
|
|
6
6
|
declare let getGenerationRequest_imperative: any;
|
|
7
7
|
declare let getServicePlan_imperative: any;
|
|
8
|
+
declare let notifyServicePlanDetailsUpdateAvailable: any;
|
|
9
|
+
declare let notifyServicePlanGenerationUpdateAvailable: any;
|
|
8
10
|
export { executeServicePlan, generateServicePlan, getGenerationRequest, getServicePlan, getServicePlanNotifyChange, getGenerationRequest_imperative, getServicePlan_imperative, };
|
|
11
|
+
export { notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-serviceplan",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.309.0-dev8",
|
|
4
4
|
"description": "collectionof service plan apis",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-serviceplan.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.309.0-dev8"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.309.0-dev8"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { withDefaultLuvio } from 'force/ldsEngine';
|
|
|
17
17
|
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$4, typeCheckConfig as typeCheckConfig$4, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$2 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
|
-
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
20
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
21
21
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
22
|
/**
|
|
23
23
|
* Validates an adapter config is well-formed.
|
|
@@ -41,7 +41,7 @@ function validateConfig(config, adapter, oneOf) {
|
|
|
41
41
|
throw new TypeError(`adapter ${displayName} does not yet support ${unsupported.sort().join(', ')}`);
|
|
42
42
|
}
|
|
43
43
|
const supported = required.concat(optional);
|
|
44
|
-
if (ObjectKeys(config).some(key => !supported.includes(key))) {
|
|
44
|
+
if (ObjectKeys$1(config).some(key => !supported.includes(key))) {
|
|
45
45
|
throw new TypeError(`adapter ${displayName} configuration supports only ${supported.sort().join(', ')}`);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -81,6 +81,7 @@ function buildAdapterValidationConfig(displayName, paramsMeta) {
|
|
|
81
81
|
}
|
|
82
82
|
const keyPrefix = 'ServicePlan';
|
|
83
83
|
|
|
84
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
84
85
|
const { isArray: ArrayIsArray } = Array;
|
|
85
86
|
const { stringify: JSONStringify } = JSON;
|
|
86
87
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -1187,6 +1188,20 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1187
1188
|
getTypeCacheKeys$3(rootKeySet, luvio, input.plan, () => rootKey + "__" + "plan");
|
|
1188
1189
|
}
|
|
1189
1190
|
}
|
|
1191
|
+
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
1192
|
+
return function notifyServicePlanGenerationUpdateAvailable(configs) {
|
|
1193
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1194
|
+
const requiredKeyParams = ['id'];
|
|
1195
|
+
configs.forEach(config => {
|
|
1196
|
+
if (false === requiredKeyParams.every(req => req in config)) {
|
|
1197
|
+
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1201
|
+
const keys = configs.map(c => keyBuilder$5(luvio, c));
|
|
1202
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1190
1205
|
|
|
1191
1206
|
function select$4(luvio, params) {
|
|
1192
1207
|
return select$5();
|
|
@@ -1875,6 +1890,20 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1875
1890
|
});
|
|
1876
1891
|
getTypeCacheKeys$1(rootKeySet, luvio, input.plan, () => rootKey + "__" + "plan");
|
|
1877
1892
|
}
|
|
1893
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
1894
|
+
return function notifyServicePlanDetailsUpdateAvailable(configs) {
|
|
1895
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1896
|
+
const requiredKeyParams = ['id'];
|
|
1897
|
+
configs.forEach(config => {
|
|
1898
|
+
if (false === requiredKeyParams.every(req => req in config)) {
|
|
1899
|
+
throw new Error(`one of the configs did not contain all required parameters: ${JSONStringify(ObjectKeys(config))}`);
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1902
|
+
}
|
|
1903
|
+
const keys = configs.map(c => keyBuilder$2(luvio, c));
|
|
1904
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
1905
|
+
};
|
|
1906
|
+
};
|
|
1878
1907
|
|
|
1879
1908
|
function select(luvio, params) {
|
|
1880
1909
|
return select$1();
|
|
@@ -2072,6 +2101,8 @@ const getGenerationRequestMetadata = {
|
|
|
2072
2101
|
};
|
|
2073
2102
|
const getServicePlanMetadata = { apiFamily: 'ServicePlan', name: 'getServicePlan', ttl: 1000 };
|
|
2074
2103
|
// Notify Update Available
|
|
2104
|
+
let notifyServicePlanDetailsUpdateAvailable;
|
|
2105
|
+
let notifyServicePlanGenerationUpdateAvailable;
|
|
2075
2106
|
function bindExportsTo(luvio) {
|
|
2076
2107
|
// LDS Adapters
|
|
2077
2108
|
const getGenerationRequest_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getGenerationRequest', getGenerationRequestAdapterFactory), getGenerationRequestMetadata);
|
|
@@ -2090,6 +2121,8 @@ function bindExportsTo(luvio) {
|
|
|
2090
2121
|
getGenerationRequest_imperative: createImperativeAdapter(luvio, getGenerationRequest_ldsAdapter, getGenerationRequestMetadata),
|
|
2091
2122
|
getServicePlan_imperative: createImperativeAdapter(luvio, getServicePlan_ldsAdapter, getServicePlanMetadata),
|
|
2092
2123
|
// Notify Update Availables
|
|
2124
|
+
notifyServicePlanDetailsUpdateAvailable: createLDSAdapter(luvio, 'notifyServicePlanDetailsUpdateAvailable', notifyUpdateAvailableFactory),
|
|
2125
|
+
notifyServicePlanGenerationUpdateAvailable: createLDSAdapter(luvio, 'notifyServicePlanGenerationUpdateAvailable', notifyUpdateAvailableFactory$1),
|
|
2093
2126
|
};
|
|
2094
2127
|
}
|
|
2095
2128
|
withDefaultLuvio((luvio) => {
|
|
@@ -2101,8 +2134,10 @@ withDefaultLuvio((luvio) => {
|
|
|
2101
2134
|
getServicePlanNotifyChange,
|
|
2102
2135
|
getGenerationRequest_imperative,
|
|
2103
2136
|
getServicePlan_imperative,
|
|
2137
|
+
notifyServicePlanDetailsUpdateAvailable,
|
|
2138
|
+
notifyServicePlanGenerationUpdateAvailable,
|
|
2104
2139
|
} = bindExportsTo(luvio));
|
|
2105
2140
|
});
|
|
2106
2141
|
|
|
2107
|
-
export { executeServicePlan, generateServicePlan, getGenerationRequest, getGenerationRequest_imperative, getServicePlan, getServicePlanNotifyChange, getServicePlan_imperative };
|
|
2108
|
-
// version: 1.
|
|
2142
|
+
export { executeServicePlan, generateServicePlan, getGenerationRequest, getGenerationRequest_imperative, getServicePlan, getServicePlanNotifyChange, getServicePlan_imperative, notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
|
|
2143
|
+
// version: 1.309.0-dev8-411e383cef
|
package/src/raml/luvio.raml
CHANGED
|
@@ -18,6 +18,10 @@ types:
|
|
|
18
18
|
(luvio.key):
|
|
19
19
|
id: id
|
|
20
20
|
(luvio.ttl): 1000
|
|
21
|
+
(luvio.updateAvailable):
|
|
22
|
+
name: notifyServicePlanGenerationUpdateAvailable
|
|
23
|
+
parameters:
|
|
24
|
+
id: id
|
|
21
25
|
ServicePlanOutputRepresentation:
|
|
22
26
|
(luvio.opaque): true
|
|
23
27
|
ServicePlanRepresentation:
|
|
@@ -41,6 +45,10 @@ types:
|
|
|
41
45
|
(luvio.key):
|
|
42
46
|
id: planRequestId
|
|
43
47
|
(luvio.ttl): 1000
|
|
48
|
+
(luvio.updateAvailable):
|
|
49
|
+
name: notifyServicePlanDetailsUpdateAvailable
|
|
50
|
+
parameters:
|
|
51
|
+
id: id
|
|
44
52
|
|
|
45
53
|
/connect/service-plan:
|
|
46
54
|
/execute/{planOrStepId}:
|