@salesforce/lds-adapters-service-ecm 1.327.0 → 1.328.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/service-ecm.js +11 -4
- package/dist/es/es2018/types/src/generated/adapters/getAllServiceAutomationDep.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/ServiceAutomationDepReadInputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/ServiceAutomationOutputRecordRepresentation.d.ts +3 -3
- package/package.json +3 -3
- package/sfdc/index.js +12 -5
- package/src/raml/api.raml +3 -2
|
@@ -1084,8 +1084,8 @@ function validate$1(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
|
1084
1084
|
const key = obj_fields_keys[i];
|
|
1085
1085
|
const obj_fields_prop = obj_fields[key];
|
|
1086
1086
|
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
1087
|
-
if (
|
|
1088
|
-
return new TypeError('Expected "
|
|
1087
|
+
if (obj_fields_prop === undefined) {
|
|
1088
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
1091
|
})();
|
|
@@ -1166,7 +1166,7 @@ function select(luvio, params) {
|
|
|
1166
1166
|
return select$1();
|
|
1167
1167
|
}
|
|
1168
1168
|
function keyBuilder$1(luvio, params) {
|
|
1169
|
-
return keyPrefix + '::ServiceAutomationDepOutputRepresentation:(' + 'entityName:' + params.body.entityName + '::' + 'fields:' + params.body.fields + '::' + '[' + params.body.filters.map(element => stableJSONStringify(element)).join(',') + ']' + '::' + 'limit:' + params.body.limit + ')';
|
|
1169
|
+
return keyPrefix + '::ServiceAutomationDepOutputRepresentation:(' + 'entityName:' + params.body.entityName + '::' + 'fields:' + params.body.fields + '::' + '[' + params.body.filters.map(element => stableJSONStringify(element)).join(',') + ']' + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + ')';
|
|
1170
1170
|
}
|
|
1171
1171
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1172
1172
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -1219,7 +1219,7 @@ const getAllServiceAutomationDep_ConfigPropertyMetadata = [
|
|
|
1219
1219
|
generateParamConfigMetadata('entityName', true, 2 /* Body */, 0 /* String */),
|
|
1220
1220
|
generateParamConfigMetadata('fields', true, 2 /* Body */, 0 /* String */, true),
|
|
1221
1221
|
generateParamConfigMetadata('filters', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
1222
|
-
generateParamConfigMetadata('limit',
|
|
1222
|
+
generateParamConfigMetadata('limit', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1223
1223
|
];
|
|
1224
1224
|
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
1225
1225
|
const createResourceParams = /*#__PURE__*/ createResourceParams$4(getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
@@ -1244,6 +1244,13 @@ function typeCheckConfig(untrustedConfig) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
config.filters = untrustedConfig_filters_array;
|
|
1246
1246
|
}
|
|
1247
|
+
const untrustedConfig_limit = untrustedConfig.limit;
|
|
1248
|
+
if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
|
|
1249
|
+
config.limit = untrustedConfig_limit;
|
|
1250
|
+
}
|
|
1251
|
+
if (untrustedConfig_limit === null) {
|
|
1252
|
+
config.limit = untrustedConfig_limit;
|
|
1253
|
+
}
|
|
1247
1254
|
return config;
|
|
1248
1255
|
}
|
|
1249
1256
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -9,7 +9,7 @@ export interface GetAllServiceAutomationDepConfig {
|
|
|
9
9
|
entityName: string;
|
|
10
10
|
fields: Array<string>;
|
|
11
11
|
filters: Array<{}>;
|
|
12
|
-
limit
|
|
12
|
+
limit?: number | null;
|
|
13
13
|
}
|
|
14
14
|
export declare const createResourceParams: (config: GetAllServiceAutomationDepConfig) => resources_postConnectServiceAutomation_ResourceRequestConfig;
|
|
15
15
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAllServiceAutomationDepConfig): string;
|
|
@@ -5,7 +5,7 @@ export interface ResourceRequestConfig {
|
|
|
5
5
|
entityName: string;
|
|
6
6
|
fields: Array<string>;
|
|
7
7
|
filters: Array<{}>;
|
|
8
|
-
limit
|
|
8
|
+
limit?: number | null;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
package/dist/es/es2018/types/src/generated/types/ServiceAutomationDepReadInputRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "430491b158da350c43987ee30d64a8ca";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ServiceAutomationDepReadInputRepresentation, existing: ServiceAutomationDepReadInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceAutomationDepReadInputRepresentationNormalized;
|
|
@@ -21,7 +21,7 @@ export interface ServiceAutomationDepReadInputRepresentationNormalized {
|
|
|
21
21
|
/** The filter to be applied while fetching records */
|
|
22
22
|
filters: Array<{}>;
|
|
23
23
|
/** The limit to be applied while fetching records */
|
|
24
|
-
limit
|
|
24
|
+
limit?: number | null;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Representation of the ServiceAutomation Input Request
|
|
@@ -33,5 +33,5 @@ export interface ServiceAutomationDepReadInputRepresentation {
|
|
|
33
33
|
entityName: string;
|
|
34
34
|
fields: Array<string>;
|
|
35
35
|
filters: Array<{}>;
|
|
36
|
-
limit
|
|
36
|
+
limit?: number | null;
|
|
37
37
|
}
|
package/dist/es/es2018/types/src/generated/types/ServiceAutomationOutputRecordRepresentation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "90340de1d78f95fb886a34859d5da299";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: ServiceAutomationOutputRecordRepresentation, existing: ServiceAutomationOutputRecordRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceAutomationOutputRecordRepresentationNormalized;
|
|
@@ -16,7 +16,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
16
16
|
export interface ServiceAutomationOutputRecordRepresentationNormalized {
|
|
17
17
|
/** Fields Map of the record. */
|
|
18
18
|
fields: {
|
|
19
|
-
[key: string]:
|
|
19
|
+
[key: string]: unknown;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -27,6 +27,6 @@ export interface ServiceAutomationOutputRecordRepresentationNormalized {
|
|
|
27
27
|
*/
|
|
28
28
|
export interface ServiceAutomationOutputRecordRepresentation {
|
|
29
29
|
fields: {
|
|
30
|
-
[key: string]:
|
|
30
|
+
[key: string]: unknown;
|
|
31
31
|
};
|
|
32
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-ecm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.328.0",
|
|
4
4
|
"description": "Service Automation Request",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-ecm.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.328.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.328.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -844,8 +844,8 @@ function validate$2(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
|
844
844
|
const key = obj_fields_keys[i];
|
|
845
845
|
const obj_fields_prop = obj_fields[key];
|
|
846
846
|
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
847
|
-
if (
|
|
848
|
-
return new TypeError('Expected "
|
|
847
|
+
if (obj_fields_prop === undefined) {
|
|
848
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
})();
|
|
@@ -926,7 +926,7 @@ function select$2(luvio, params) {
|
|
|
926
926
|
return select$3();
|
|
927
927
|
}
|
|
928
928
|
function keyBuilder$3(luvio, params) {
|
|
929
|
-
return keyPrefix + '::ServiceAutomationDepOutputRepresentation:(' + 'entityName:' + params.body.entityName + '::' + 'fields:' + params.body.fields + '::' + '[' + params.body.filters.map(element => stableJSONStringify(element)).join(',') + ']' + '::' + 'limit:' + params.body.limit + ')';
|
|
929
|
+
return keyPrefix + '::ServiceAutomationDepOutputRepresentation:(' + 'entityName:' + params.body.entityName + '::' + 'fields:' + params.body.fields + '::' + '[' + params.body.filters.map(element => stableJSONStringify(element)).join(',') + ']' + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + ')';
|
|
930
930
|
}
|
|
931
931
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
932
932
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
@@ -979,7 +979,7 @@ const getAllServiceAutomationDep_ConfigPropertyMetadata = [
|
|
|
979
979
|
generateParamConfigMetadata('entityName', true, 2 /* Body */, 0 /* String */),
|
|
980
980
|
generateParamConfigMetadata('fields', true, 2 /* Body */, 0 /* String */, true),
|
|
981
981
|
generateParamConfigMetadata('filters', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
982
|
-
generateParamConfigMetadata('limit',
|
|
982
|
+
generateParamConfigMetadata('limit', false, 2 /* Body */, 4 /* Unsupported */),
|
|
983
983
|
];
|
|
984
984
|
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
985
985
|
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
@@ -1004,6 +1004,13 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
config.filters = untrustedConfig_filters_array;
|
|
1006
1006
|
}
|
|
1007
|
+
const untrustedConfig_limit = untrustedConfig.limit;
|
|
1008
|
+
if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
|
|
1009
|
+
config.limit = untrustedConfig_limit;
|
|
1010
|
+
}
|
|
1011
|
+
if (untrustedConfig_limit === null) {
|
|
1012
|
+
config.limit = untrustedConfig_limit;
|
|
1013
|
+
}
|
|
1007
1014
|
return config;
|
|
1008
1015
|
}
|
|
1009
1016
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -1416,4 +1423,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1416
1423
|
});
|
|
1417
1424
|
|
|
1418
1425
|
export { createCatalogItem, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItemNotifyChange, getCatalogItem_imperative, updateCatalogItem };
|
|
1419
|
-
// version: 1.
|
|
1426
|
+
// version: 1.328.0-e51e28f7fc
|
package/src/raml/api.raml
CHANGED
|
@@ -75,7 +75,8 @@ types:
|
|
|
75
75
|
type: object
|
|
76
76
|
limit:
|
|
77
77
|
description: The limit to be applied while fetching records
|
|
78
|
-
type: integer
|
|
78
|
+
type: integer | nil
|
|
79
|
+
required: false
|
|
79
80
|
ServiceAutomationOutputRecordRepresentation:
|
|
80
81
|
description: Output Representation of Service Automation Record List
|
|
81
82
|
type: object
|
|
@@ -85,7 +86,7 @@ types:
|
|
|
85
86
|
type: object
|
|
86
87
|
properties:
|
|
87
88
|
//:
|
|
88
|
-
type:
|
|
89
|
+
type: any
|
|
89
90
|
CatalogItemAttributeInputRepresentation:
|
|
90
91
|
description: Input Representation for Attribute Item.
|
|
91
92
|
type: object
|