@salesforce/lds-adapters-service-ecm 1.393.0 → 1.394.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 +149 -7
- package/dist/es/es2018/types/src/generated/adapters/saveEligibilityRule.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationEligibilityRule.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/EligibilityRuleDetailsRepresentation.d.ts +19 -1
- package/dist/es/es2018/types/src/generated/types/EligibilityRuleParameterRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/{RuleOutputRepresentation.d.ts → EligibilityRuleRepresentation.d.ts} +11 -11
- package/package.json +3 -3
- package/sfdc/index.js +150 -8
- package/src/raml/api.raml +36 -3
- package/src/raml/luvio.raml +1 -1
|
@@ -10030,8 +10030,8 @@ function validate$5(obj, path = 'EligibilityRuleValueInputRepresentation') {
|
|
|
10030
10030
|
}
|
|
10031
10031
|
|
|
10032
10032
|
const TTL = 6000;
|
|
10033
|
-
const VERSION$4 = "
|
|
10034
|
-
function validate$4(obj, path = '
|
|
10033
|
+
const VERSION$4 = "46e43120927331c84fedc0b4e2f9addc";
|
|
10034
|
+
function validate$4(obj, path = 'EligibilityRuleRepresentation') {
|
|
10035
10035
|
const v_error = (() => {
|
|
10036
10036
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10037
10037
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10059,7 +10059,7 @@ function validate$4(obj, path = 'RuleOutputRepresentation') {
|
|
|
10059
10059
|
})();
|
|
10060
10060
|
return v_error === undefined ? null : v_error;
|
|
10061
10061
|
}
|
|
10062
|
-
const RepresentationType$1 = '
|
|
10062
|
+
const RepresentationType$1 = 'EligibilityRuleRepresentation';
|
|
10063
10063
|
function keyBuilder$2(luvio, config) {
|
|
10064
10064
|
return keyPrefix + '::' + RepresentationType$1 + ':' + config.sourceObjectRecordId;
|
|
10065
10065
|
}
|
|
@@ -10072,7 +10072,7 @@ function keyBuilderFromType(luvio, object) {
|
|
|
10072
10072
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
10073
10073
|
return input;
|
|
10074
10074
|
}
|
|
10075
|
-
const select$6 = function
|
|
10075
|
+
const select$6 = function EligibilityRuleRepresentationSelect() {
|
|
10076
10076
|
return {
|
|
10077
10077
|
kind: 'Fragment',
|
|
10078
10078
|
version: VERSION$4,
|
|
@@ -10120,7 +10120,7 @@ function equals$4(existing, incoming) {
|
|
|
10120
10120
|
}
|
|
10121
10121
|
return true;
|
|
10122
10122
|
}
|
|
10123
|
-
const ingest$1 = function
|
|
10123
|
+
const ingest$1 = function EligibilityRuleRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10124
10124
|
if (process.env.NODE_ENV !== 'production') {
|
|
10125
10125
|
const validateError = validate$4(input);
|
|
10126
10126
|
if (validateError !== null) {
|
|
@@ -10249,7 +10249,7 @@ const saveEligibilityRuleAdapterFactory = (luvio) => {
|
|
|
10249
10249
|
};
|
|
10250
10250
|
};
|
|
10251
10251
|
|
|
10252
|
-
const VERSION$3 = "
|
|
10252
|
+
const VERSION$3 = "0bc134ba5fc7c9ad95ed90ab7be5bd2c";
|
|
10253
10253
|
function validate$3(obj, path = 'EligibilityRuleParameterRepresentation') {
|
|
10254
10254
|
const v_error = (() => {
|
|
10255
10255
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10346,6 +10346,13 @@ function validate$3(obj, path = 'EligibilityRuleParameterRepresentation') {
|
|
|
10346
10346
|
return new TypeError('Expected "string" but received "' + typeof obj_sortType + '" (at "' + path_sortType + '")');
|
|
10347
10347
|
}
|
|
10348
10348
|
}
|
|
10349
|
+
if (obj.sourceObjectLookUp !== undefined) {
|
|
10350
|
+
const obj_sourceObjectLookUp = obj.sourceObjectLookUp;
|
|
10351
|
+
const path_sourceObjectLookUp = path + '.sourceObjectLookUp';
|
|
10352
|
+
if (typeof obj_sourceObjectLookUp !== 'string') {
|
|
10353
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectLookUp + '" (at "' + path_sourceObjectLookUp + '")');
|
|
10354
|
+
}
|
|
10355
|
+
}
|
|
10349
10356
|
if (obj.usage !== undefined) {
|
|
10350
10357
|
const obj_usage = obj.usage;
|
|
10351
10358
|
const path_usage = path + '.usage';
|
|
@@ -10427,6 +10434,11 @@ const select$4 = function EligibilityRuleParameterRepresentationSelect() {
|
|
|
10427
10434
|
kind: 'Scalar',
|
|
10428
10435
|
required: false
|
|
10429
10436
|
},
|
|
10437
|
+
{
|
|
10438
|
+
name: 'sourceObjectLookUp',
|
|
10439
|
+
kind: 'Scalar',
|
|
10440
|
+
required: false
|
|
10441
|
+
},
|
|
10430
10442
|
{
|
|
10431
10443
|
name: 'usage',
|
|
10432
10444
|
kind: 'Scalar',
|
|
@@ -10605,6 +10617,19 @@ function equals$3(existing, incoming) {
|
|
|
10605
10617
|
return false;
|
|
10606
10618
|
}
|
|
10607
10619
|
}
|
|
10620
|
+
const existing_sourceObjectLookUp = existing.sourceObjectLookUp;
|
|
10621
|
+
const incoming_sourceObjectLookUp = incoming.sourceObjectLookUp;
|
|
10622
|
+
// if at least one of these optionals is defined
|
|
10623
|
+
if (existing_sourceObjectLookUp !== undefined || incoming_sourceObjectLookUp !== undefined) {
|
|
10624
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10625
|
+
// not equal
|
|
10626
|
+
if (existing_sourceObjectLookUp === undefined || incoming_sourceObjectLookUp === undefined) {
|
|
10627
|
+
return false;
|
|
10628
|
+
}
|
|
10629
|
+
if (!(existing_sourceObjectLookUp === incoming_sourceObjectLookUp)) {
|
|
10630
|
+
return false;
|
|
10631
|
+
}
|
|
10632
|
+
}
|
|
10608
10633
|
const existing_usage = existing.usage;
|
|
10609
10634
|
const incoming_usage = incoming.usage;
|
|
10610
10635
|
// if at least one of these optionals is defined
|
|
@@ -10768,7 +10793,7 @@ function equals$2(existing, incoming) {
|
|
|
10768
10793
|
return true;
|
|
10769
10794
|
}
|
|
10770
10795
|
|
|
10771
|
-
const VERSION$1 = "
|
|
10796
|
+
const VERSION$1 = "528d0c1033363f78ba017b5d63b84d7b";
|
|
10772
10797
|
function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
10773
10798
|
const v_error = (() => {
|
|
10774
10799
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10804,11 +10829,35 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10804
10829
|
if (typeof obj_description !== 'string') {
|
|
10805
10830
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
10806
10831
|
}
|
|
10832
|
+
const obj_hasIncrementalSyncFailed = obj.hasIncrementalSyncFailed;
|
|
10833
|
+
const path_hasIncrementalSyncFailed = path + '.hasIncrementalSyncFailed';
|
|
10834
|
+
if (typeof obj_hasIncrementalSyncFailed !== 'boolean') {
|
|
10835
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasIncrementalSyncFailed + '" (at "' + path_hasIncrementalSyncFailed + '")');
|
|
10836
|
+
}
|
|
10837
|
+
const obj_isIncrementalSyncEnabled = obj.isIncrementalSyncEnabled;
|
|
10838
|
+
const path_isIncrementalSyncEnabled = path + '.isIncrementalSyncEnabled';
|
|
10839
|
+
if (typeof obj_isIncrementalSyncEnabled !== 'boolean') {
|
|
10840
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isIncrementalSyncEnabled + '" (at "' + path_isIncrementalSyncEnabled + '")');
|
|
10841
|
+
}
|
|
10842
|
+
if (obj.lastIncrementalSyncDate !== undefined) {
|
|
10843
|
+
const obj_lastIncrementalSyncDate = obj.lastIncrementalSyncDate;
|
|
10844
|
+
const path_lastIncrementalSyncDate = path + '.lastIncrementalSyncDate';
|
|
10845
|
+
if (typeof obj_lastIncrementalSyncDate !== 'string') {
|
|
10846
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastIncrementalSyncDate + '" (at "' + path_lastIncrementalSyncDate + '")');
|
|
10847
|
+
}
|
|
10848
|
+
}
|
|
10807
10849
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
10808
10850
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
10809
10851
|
if (typeof obj_lastModifiedDate !== 'string') {
|
|
10810
10852
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
10811
10853
|
}
|
|
10854
|
+
if (obj.lastSyncDate !== undefined) {
|
|
10855
|
+
const obj_lastSyncDate = obj.lastSyncDate;
|
|
10856
|
+
const path_lastSyncDate = path + '.lastSyncDate';
|
|
10857
|
+
if (typeof obj_lastSyncDate !== 'string') {
|
|
10858
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastSyncDate + '" (at "' + path_lastSyncDate + '")');
|
|
10859
|
+
}
|
|
10860
|
+
}
|
|
10812
10861
|
const obj_parameters = obj.parameters;
|
|
10813
10862
|
const path_parameters = path + '.parameters';
|
|
10814
10863
|
if (!ArrayIsArray(obj_parameters)) {
|
|
@@ -10824,6 +10873,18 @@ function validate$1(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
10824
10873
|
return new TypeError(message);
|
|
10825
10874
|
}
|
|
10826
10875
|
}
|
|
10876
|
+
if (obj.refreshFailureReason !== undefined) {
|
|
10877
|
+
const obj_refreshFailureReason = obj.refreshFailureReason;
|
|
10878
|
+
const path_refreshFailureReason = path + '.refreshFailureReason';
|
|
10879
|
+
if (typeof obj_refreshFailureReason !== 'string') {
|
|
10880
|
+
return new TypeError('Expected "string" but received "' + typeof obj_refreshFailureReason + '" (at "' + path_refreshFailureReason + '")');
|
|
10881
|
+
}
|
|
10882
|
+
}
|
|
10883
|
+
const obj_refreshStatus = obj.refreshStatus;
|
|
10884
|
+
const path_refreshStatus = path + '.refreshStatus';
|
|
10885
|
+
if (typeof obj_refreshStatus !== 'string') {
|
|
10886
|
+
return new TypeError('Expected "string" but received "' + typeof obj_refreshStatus + '" (at "' + path_refreshStatus + '")');
|
|
10887
|
+
}
|
|
10827
10888
|
const obj_rowLevelOverrideType = obj.rowLevelOverrideType;
|
|
10828
10889
|
const path_rowLevelOverrideType = path + '.rowLevelOverrideType';
|
|
10829
10890
|
if (typeof obj_rowLevelOverrideType !== 'string') {
|
|
@@ -10899,16 +10960,43 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10899
10960
|
name: 'description',
|
|
10900
10961
|
kind: 'Scalar'
|
|
10901
10962
|
},
|
|
10963
|
+
{
|
|
10964
|
+
name: 'hasIncrementalSyncFailed',
|
|
10965
|
+
kind: 'Scalar'
|
|
10966
|
+
},
|
|
10967
|
+
{
|
|
10968
|
+
name: 'isIncrementalSyncEnabled',
|
|
10969
|
+
kind: 'Scalar'
|
|
10970
|
+
},
|
|
10971
|
+
{
|
|
10972
|
+
name: 'lastIncrementalSyncDate',
|
|
10973
|
+
kind: 'Scalar',
|
|
10974
|
+
required: false
|
|
10975
|
+
},
|
|
10902
10976
|
{
|
|
10903
10977
|
name: 'lastModifiedDate',
|
|
10904
10978
|
kind: 'Scalar'
|
|
10905
10979
|
},
|
|
10980
|
+
{
|
|
10981
|
+
name: 'lastSyncDate',
|
|
10982
|
+
kind: 'Scalar',
|
|
10983
|
+
required: false
|
|
10984
|
+
},
|
|
10906
10985
|
{
|
|
10907
10986
|
name: 'parameters',
|
|
10908
10987
|
kind: 'Object',
|
|
10909
10988
|
plural: true,
|
|
10910
10989
|
selections: EligibilityRuleParameterRepresentation__selections
|
|
10911
10990
|
},
|
|
10991
|
+
{
|
|
10992
|
+
name: 'refreshFailureReason',
|
|
10993
|
+
kind: 'Scalar',
|
|
10994
|
+
required: false
|
|
10995
|
+
},
|
|
10996
|
+
{
|
|
10997
|
+
name: 'refreshStatus',
|
|
10998
|
+
kind: 'Scalar'
|
|
10999
|
+
},
|
|
10912
11000
|
{
|
|
10913
11001
|
name: 'rowLevelOverrideType',
|
|
10914
11002
|
kind: 'Scalar'
|
|
@@ -10939,6 +11027,16 @@ const select$2 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
10939
11027
|
};
|
|
10940
11028
|
};
|
|
10941
11029
|
function equals$1(existing, incoming) {
|
|
11030
|
+
const existing_hasIncrementalSyncFailed = existing.hasIncrementalSyncFailed;
|
|
11031
|
+
const incoming_hasIncrementalSyncFailed = incoming.hasIncrementalSyncFailed;
|
|
11032
|
+
if (!(existing_hasIncrementalSyncFailed === incoming_hasIncrementalSyncFailed)) {
|
|
11033
|
+
return false;
|
|
11034
|
+
}
|
|
11035
|
+
const existing_isIncrementalSyncEnabled = existing.isIncrementalSyncEnabled;
|
|
11036
|
+
const incoming_isIncrementalSyncEnabled = incoming.isIncrementalSyncEnabled;
|
|
11037
|
+
if (!(existing_isIncrementalSyncEnabled === incoming_isIncrementalSyncEnabled)) {
|
|
11038
|
+
return false;
|
|
11039
|
+
}
|
|
10942
11040
|
const existing_conditionCriteria = existing.conditionCriteria;
|
|
10943
11041
|
const incoming_conditionCriteria = incoming.conditionCriteria;
|
|
10944
11042
|
if (!(existing_conditionCriteria === incoming_conditionCriteria)) {
|
|
@@ -10969,11 +11067,55 @@ function equals$1(existing, incoming) {
|
|
|
10969
11067
|
if (!(existing_description === incoming_description)) {
|
|
10970
11068
|
return false;
|
|
10971
11069
|
}
|
|
11070
|
+
const existing_lastIncrementalSyncDate = existing.lastIncrementalSyncDate;
|
|
11071
|
+
const incoming_lastIncrementalSyncDate = incoming.lastIncrementalSyncDate;
|
|
11072
|
+
// if at least one of these optionals is defined
|
|
11073
|
+
if (existing_lastIncrementalSyncDate !== undefined || incoming_lastIncrementalSyncDate !== undefined) {
|
|
11074
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11075
|
+
// not equal
|
|
11076
|
+
if (existing_lastIncrementalSyncDate === undefined || incoming_lastIncrementalSyncDate === undefined) {
|
|
11077
|
+
return false;
|
|
11078
|
+
}
|
|
11079
|
+
if (!(existing_lastIncrementalSyncDate === incoming_lastIncrementalSyncDate)) {
|
|
11080
|
+
return false;
|
|
11081
|
+
}
|
|
11082
|
+
}
|
|
10972
11083
|
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
10973
11084
|
const incoming_lastModifiedDate = incoming.lastModifiedDate;
|
|
10974
11085
|
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
10975
11086
|
return false;
|
|
10976
11087
|
}
|
|
11088
|
+
const existing_lastSyncDate = existing.lastSyncDate;
|
|
11089
|
+
const incoming_lastSyncDate = incoming.lastSyncDate;
|
|
11090
|
+
// if at least one of these optionals is defined
|
|
11091
|
+
if (existing_lastSyncDate !== undefined || incoming_lastSyncDate !== undefined) {
|
|
11092
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11093
|
+
// not equal
|
|
11094
|
+
if (existing_lastSyncDate === undefined || incoming_lastSyncDate === undefined) {
|
|
11095
|
+
return false;
|
|
11096
|
+
}
|
|
11097
|
+
if (!(existing_lastSyncDate === incoming_lastSyncDate)) {
|
|
11098
|
+
return false;
|
|
11099
|
+
}
|
|
11100
|
+
}
|
|
11101
|
+
const existing_refreshFailureReason = existing.refreshFailureReason;
|
|
11102
|
+
const incoming_refreshFailureReason = incoming.refreshFailureReason;
|
|
11103
|
+
// if at least one of these optionals is defined
|
|
11104
|
+
if (existing_refreshFailureReason !== undefined || incoming_refreshFailureReason !== undefined) {
|
|
11105
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
11106
|
+
// not equal
|
|
11107
|
+
if (existing_refreshFailureReason === undefined || incoming_refreshFailureReason === undefined) {
|
|
11108
|
+
return false;
|
|
11109
|
+
}
|
|
11110
|
+
if (!(existing_refreshFailureReason === incoming_refreshFailureReason)) {
|
|
11111
|
+
return false;
|
|
11112
|
+
}
|
|
11113
|
+
}
|
|
11114
|
+
const existing_refreshStatus = existing.refreshStatus;
|
|
11115
|
+
const incoming_refreshStatus = incoming.refreshStatus;
|
|
11116
|
+
if (!(existing_refreshStatus === incoming_refreshStatus)) {
|
|
11117
|
+
return false;
|
|
11118
|
+
}
|
|
10977
11119
|
const existing_rowLevelOverrideType = existing.rowLevelOverrideType;
|
|
10978
11120
|
const incoming_rowLevelOverrideType = incoming.rowLevelOverrideType;
|
|
10979
11121
|
if (!(existing_rowLevelOverrideType === incoming_rowLevelOverrideType)) {
|
|
@@ -2,7 +2,7 @@ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio
|
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
3
|
import { EligibilityRuleValueInputRepresentation as types_EligibilityRuleValueInputRepresentation_EligibilityRuleValueInputRepresentation } from '../types/EligibilityRuleValueInputRepresentation';
|
|
4
4
|
import { ResourceRequestConfig as resources_postConnectServiceAutomationEligibilityRule_ResourceRequestConfig } from '../resources/postConnectServiceAutomationEligibilityRule';
|
|
5
|
-
import {
|
|
5
|
+
import { EligibilityRuleRepresentation as types_EligibilityRuleRepresentation_EligibilityRuleRepresentation } from '../types/EligibilityRuleRepresentation';
|
|
6
6
|
export declare const adapterName = "saveEligibilityRule";
|
|
7
7
|
export declare const saveEligibilityRule_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
8
|
export declare const saveEligibilityRule_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
@@ -17,5 +17,5 @@ export interface SaveEligibilityRuleConfig {
|
|
|
17
17
|
export declare const createResourceParams: (config: SaveEligibilityRuleConfig) => resources_postConnectServiceAutomationEligibilityRule_ResourceRequestConfig;
|
|
18
18
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<SaveEligibilityRuleConfig>): adapter$45$utils_Untrusted<SaveEligibilityRuleConfig>;
|
|
19
19
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): SaveEligibilityRuleConfig | null;
|
|
20
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: SaveEligibilityRuleConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<
|
|
21
|
-
export declare const saveEligibilityRuleAdapterFactory: $64$luvio_engine_AdapterFactory<SaveEligibilityRuleConfig,
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: SaveEligibilityRuleConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_EligibilityRuleRepresentation_EligibilityRuleRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_EligibilityRuleRepresentation_EligibilityRuleRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_EligibilityRuleRepresentation_EligibilityRuleRepresentation, any>>;
|
|
21
|
+
export declare const saveEligibilityRuleAdapterFactory: $64$luvio_engine_AdapterFactory<SaveEligibilityRuleConfig, types_EligibilityRuleRepresentation_EligibilityRuleRepresentation>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EligibilityRuleValueInputRepresentation as types_EligibilityRuleValueInputRepresentation_EligibilityRuleValueInputRepresentation } from '../types/EligibilityRuleValueInputRepresentation';
|
|
2
2
|
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
|
-
import {
|
|
3
|
+
import { EligibilityRuleRepresentation as types_EligibilityRuleRepresentation_EligibilityRuleRepresentation } from '../types/EligibilityRuleRepresentation';
|
|
4
4
|
export interface ResourceRequestConfig {
|
|
5
5
|
body: {
|
|
6
6
|
conditionCriteria: string;
|
|
@@ -12,7 +12,7 @@ export interface ResourceRequestConfig {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
15
|
-
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response:
|
|
16
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<
|
|
15
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EligibilityRuleRepresentation_EligibilityRuleRepresentation): void;
|
|
16
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EligibilityRuleRepresentation_EligibilityRuleRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EligibilityRuleRepresentation_EligibilityRuleRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EligibilityRuleRepresentation_EligibilityRuleRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EligibilityRuleRepresentation_EligibilityRuleRepresentation, any>;
|
|
17
17
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
18
|
export default createResourceRequest;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EligibilityRuleParameterRepresentation as EligibilityRuleParameterRepresentation_EligibilityRuleParameterRepresentation } from './EligibilityRuleParameterRepresentation';
|
|
2
2
|
import { DecisionTableSourceCriteriaOutputRepresentation as DecisionTableSourceCriteriaOutputRepresentation_DecisionTableSourceCriteriaOutputRepresentation } from './DecisionTableSourceCriteriaOutputRepresentation';
|
|
3
3
|
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';
|
|
4
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "528d0c1033363f78ba017b5d63b84d7b";
|
|
5
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
6
|
export declare const RepresentationType: string;
|
|
7
7
|
export declare function normalize(input: EligibilityRuleDetailsRepresentation, existing: EligibilityRuleDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EligibilityRuleDetailsRepresentationNormalized;
|
|
@@ -28,10 +28,22 @@ export interface EligibilityRuleDetailsRepresentationNormalized {
|
|
|
28
28
|
decisionTableName: string;
|
|
29
29
|
/** The description of the condition */
|
|
30
30
|
description: string;
|
|
31
|
+
/** Indicates whether the incremental sync has failed for the decision table */
|
|
32
|
+
hasIncrementalSyncFailed: boolean;
|
|
33
|
+
/** Indicates whether incremental sync is enabled for the decision table */
|
|
34
|
+
isIncrementalSyncEnabled: boolean;
|
|
35
|
+
/** The date and time when the decision table was last incrementally synced */
|
|
36
|
+
lastIncrementalSyncDate?: string;
|
|
31
37
|
/** The date and time when the decision table was last modified */
|
|
32
38
|
lastModifiedDate: string;
|
|
39
|
+
/** The date and time when the decision table was last synced */
|
|
40
|
+
lastSyncDate?: string;
|
|
33
41
|
/** The description of the for the decision table parameters */
|
|
34
42
|
parameters: Array<EligibilityRuleParameterRepresentation_EligibilityRuleParameterRepresentation>;
|
|
43
|
+
/** The reason for the decision table refresh failure, if applicable */
|
|
44
|
+
refreshFailureReason?: string;
|
|
45
|
+
/** The refresh status of the decision table */
|
|
46
|
+
refreshStatus: string;
|
|
35
47
|
/** Indicates the override type at the row level */
|
|
36
48
|
rowLevelOverrideType: string;
|
|
37
49
|
/** The criteria used to filter and select a specific type rule for application */
|
|
@@ -58,8 +70,14 @@ export interface EligibilityRuleDetailsRepresentation {
|
|
|
58
70
|
decisionTableId: string;
|
|
59
71
|
decisionTableName: string;
|
|
60
72
|
description: string;
|
|
73
|
+
hasIncrementalSyncFailed: boolean;
|
|
74
|
+
isIncrementalSyncEnabled: boolean;
|
|
75
|
+
lastIncrementalSyncDate?: string;
|
|
61
76
|
lastModifiedDate: string;
|
|
77
|
+
lastSyncDate?: string;
|
|
62
78
|
parameters: Array<EligibilityRuleParameterRepresentation_EligibilityRuleParameterRepresentation>;
|
|
79
|
+
refreshFailureReason?: string;
|
|
80
|
+
refreshStatus: string;
|
|
63
81
|
rowLevelOverrideType: string;
|
|
64
82
|
sourceCriteria: Array<DecisionTableSourceCriteriaOutputRepresentation_DecisionTableSourceCriteriaOutputRepresentation>;
|
|
65
83
|
sourceObject: string;
|
package/dist/es/es2018/types/src/generated/types/EligibilityRuleParameterRepresentation.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 = "0bc134ba5fc7c9ad95ed90ab7be5bd2c";
|
|
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: EligibilityRuleParameterRepresentation, existing: EligibilityRuleParameterRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EligibilityRuleParameterRepresentationNormalized;
|
|
@@ -40,6 +40,8 @@ export interface EligibilityRuleParameterRepresentationNormalized {
|
|
|
40
40
|
sequence?: number;
|
|
41
41
|
/** Specifies the type of sorting done on the rows of a decision table */
|
|
42
42
|
sortType?: string;
|
|
43
|
+
/** Specifies the lookup entity the source object field is mapped to */
|
|
44
|
+
sourceObjectLookUp?: string;
|
|
43
45
|
/** A picklist to select whether a particular field will be used as input or output */
|
|
44
46
|
usage?: string;
|
|
45
47
|
}
|
|
@@ -63,5 +65,6 @@ export interface EligibilityRuleParameterRepresentation {
|
|
|
63
65
|
operator?: string;
|
|
64
66
|
sequence?: number;
|
|
65
67
|
sortType?: string;
|
|
68
|
+
sourceObjectLookUp?: string;
|
|
66
69
|
usage?: string;
|
|
67
70
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 6000;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "46e43120927331c84fedc0b4e2f9addc";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
7
|
sourceObjectRecordId: string;
|
|
8
8
|
}
|
|
9
|
-
export type
|
|
10
|
-
export type
|
|
9
|
+
export type EligibilityRuleRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialEligibilityRuleRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
11
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
-
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams):
|
|
13
|
-
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object:
|
|
14
|
-
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object:
|
|
15
|
-
export declare function normalize(input:
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): EligibilityRuleRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: EligibilityRuleRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: EligibilityRuleRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: EligibilityRuleRepresentation, existing: EligibilityRuleRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EligibilityRuleRepresentationNormalized;
|
|
16
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
-
export declare function equals(existing:
|
|
17
|
+
export declare function equals(existing: EligibilityRuleRepresentationNormalized, incoming: EligibilityRuleRepresentationNormalized): boolean;
|
|
18
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
-
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input:
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EligibilityRuleRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
20
|
/**
|
|
21
21
|
* Output Representation for the Eligibility Rules.
|
|
22
22
|
*
|
|
23
23
|
* Keys:
|
|
24
24
|
* sourceObjectRecordId (string): sourceObjectRecordId
|
|
25
25
|
*/
|
|
26
|
-
export interface
|
|
26
|
+
export interface EligibilityRuleRepresentationNormalized {
|
|
27
27
|
/** Date and time when the rule was created */
|
|
28
28
|
createdDateTime: string;
|
|
29
29
|
/** Additional information about the API request execution */
|
|
@@ -39,7 +39,7 @@ export interface RuleOutputRepresentationNormalized {
|
|
|
39
39
|
* Keys:
|
|
40
40
|
* sourceObjectRecordId (string): sourceObjectRecordId
|
|
41
41
|
*/
|
|
42
|
-
export interface
|
|
42
|
+
export interface EligibilityRuleRepresentation {
|
|
43
43
|
createdDateTime: string;
|
|
44
44
|
message: string;
|
|
45
45
|
sourceObjectRecordId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-ecm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.394.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.394.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.394.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -9184,7 +9184,7 @@ const getCatalogItemAdapterFactory = (luvio) => function ecm__getCatalogItem(unt
|
|
|
9184
9184
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
9185
9185
|
};
|
|
9186
9186
|
|
|
9187
|
-
const VERSION$6 = "
|
|
9187
|
+
const VERSION$6 = "0bc134ba5fc7c9ad95ed90ab7be5bd2c";
|
|
9188
9188
|
function validate$9(obj, path = 'EligibilityRuleParameterRepresentation') {
|
|
9189
9189
|
const v_error = (() => {
|
|
9190
9190
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -9281,6 +9281,13 @@ function validate$9(obj, path = 'EligibilityRuleParameterRepresentation') {
|
|
|
9281
9281
|
return new TypeError('Expected "string" but received "' + typeof obj_sortType + '" (at "' + path_sortType + '")');
|
|
9282
9282
|
}
|
|
9283
9283
|
}
|
|
9284
|
+
if (obj.sourceObjectLookUp !== undefined) {
|
|
9285
|
+
const obj_sourceObjectLookUp = obj.sourceObjectLookUp;
|
|
9286
|
+
const path_sourceObjectLookUp = path + '.sourceObjectLookUp';
|
|
9287
|
+
if (typeof obj_sourceObjectLookUp !== 'string') {
|
|
9288
|
+
return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectLookUp + '" (at "' + path_sourceObjectLookUp + '")');
|
|
9289
|
+
}
|
|
9290
|
+
}
|
|
9284
9291
|
if (obj.usage !== undefined) {
|
|
9285
9292
|
const obj_usage = obj.usage;
|
|
9286
9293
|
const path_usage = path + '.usage';
|
|
@@ -9362,6 +9369,11 @@ const select$b = function EligibilityRuleParameterRepresentationSelect() {
|
|
|
9362
9369
|
kind: 'Scalar',
|
|
9363
9370
|
required: false
|
|
9364
9371
|
},
|
|
9372
|
+
{
|
|
9373
|
+
name: 'sourceObjectLookUp',
|
|
9374
|
+
kind: 'Scalar',
|
|
9375
|
+
required: false
|
|
9376
|
+
},
|
|
9365
9377
|
{
|
|
9366
9378
|
name: 'usage',
|
|
9367
9379
|
kind: 'Scalar',
|
|
@@ -9540,6 +9552,19 @@ function equals$6(existing, incoming) {
|
|
|
9540
9552
|
return false;
|
|
9541
9553
|
}
|
|
9542
9554
|
}
|
|
9555
|
+
const existing_sourceObjectLookUp = existing.sourceObjectLookUp;
|
|
9556
|
+
const incoming_sourceObjectLookUp = incoming.sourceObjectLookUp;
|
|
9557
|
+
// if at least one of these optionals is defined
|
|
9558
|
+
if (existing_sourceObjectLookUp !== undefined || incoming_sourceObjectLookUp !== undefined) {
|
|
9559
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
9560
|
+
// not equal
|
|
9561
|
+
if (existing_sourceObjectLookUp === undefined || incoming_sourceObjectLookUp === undefined) {
|
|
9562
|
+
return false;
|
|
9563
|
+
}
|
|
9564
|
+
if (!(existing_sourceObjectLookUp === incoming_sourceObjectLookUp)) {
|
|
9565
|
+
return false;
|
|
9566
|
+
}
|
|
9567
|
+
}
|
|
9543
9568
|
const existing_usage = existing.usage;
|
|
9544
9569
|
const incoming_usage = incoming.usage;
|
|
9545
9570
|
// if at least one of these optionals is defined
|
|
@@ -9703,7 +9728,7 @@ function equals$5(existing, incoming) {
|
|
|
9703
9728
|
return true;
|
|
9704
9729
|
}
|
|
9705
9730
|
|
|
9706
|
-
const VERSION$4 = "
|
|
9731
|
+
const VERSION$4 = "528d0c1033363f78ba017b5d63b84d7b";
|
|
9707
9732
|
function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
9708
9733
|
const v_error = (() => {
|
|
9709
9734
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -9739,11 +9764,35 @@ function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
9739
9764
|
if (typeof obj_description !== 'string') {
|
|
9740
9765
|
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
9741
9766
|
}
|
|
9767
|
+
const obj_hasIncrementalSyncFailed = obj.hasIncrementalSyncFailed;
|
|
9768
|
+
const path_hasIncrementalSyncFailed = path + '.hasIncrementalSyncFailed';
|
|
9769
|
+
if (typeof obj_hasIncrementalSyncFailed !== 'boolean') {
|
|
9770
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_hasIncrementalSyncFailed + '" (at "' + path_hasIncrementalSyncFailed + '")');
|
|
9771
|
+
}
|
|
9772
|
+
const obj_isIncrementalSyncEnabled = obj.isIncrementalSyncEnabled;
|
|
9773
|
+
const path_isIncrementalSyncEnabled = path + '.isIncrementalSyncEnabled';
|
|
9774
|
+
if (typeof obj_isIncrementalSyncEnabled !== 'boolean') {
|
|
9775
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isIncrementalSyncEnabled + '" (at "' + path_isIncrementalSyncEnabled + '")');
|
|
9776
|
+
}
|
|
9777
|
+
if (obj.lastIncrementalSyncDate !== undefined) {
|
|
9778
|
+
const obj_lastIncrementalSyncDate = obj.lastIncrementalSyncDate;
|
|
9779
|
+
const path_lastIncrementalSyncDate = path + '.lastIncrementalSyncDate';
|
|
9780
|
+
if (typeof obj_lastIncrementalSyncDate !== 'string') {
|
|
9781
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastIncrementalSyncDate + '" (at "' + path_lastIncrementalSyncDate + '")');
|
|
9782
|
+
}
|
|
9783
|
+
}
|
|
9742
9784
|
const obj_lastModifiedDate = obj.lastModifiedDate;
|
|
9743
9785
|
const path_lastModifiedDate = path + '.lastModifiedDate';
|
|
9744
9786
|
if (typeof obj_lastModifiedDate !== 'string') {
|
|
9745
9787
|
return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
|
|
9746
9788
|
}
|
|
9789
|
+
if (obj.lastSyncDate !== undefined) {
|
|
9790
|
+
const obj_lastSyncDate = obj.lastSyncDate;
|
|
9791
|
+
const path_lastSyncDate = path + '.lastSyncDate';
|
|
9792
|
+
if (typeof obj_lastSyncDate !== 'string') {
|
|
9793
|
+
return new TypeError('Expected "string" but received "' + typeof obj_lastSyncDate + '" (at "' + path_lastSyncDate + '")');
|
|
9794
|
+
}
|
|
9795
|
+
}
|
|
9747
9796
|
const obj_parameters = obj.parameters;
|
|
9748
9797
|
const path_parameters = path + '.parameters';
|
|
9749
9798
|
if (!ArrayIsArray(obj_parameters)) {
|
|
@@ -9759,6 +9808,18 @@ function validate$7(obj, path = 'EligibilityRuleDetailsRepresentation') {
|
|
|
9759
9808
|
return new TypeError(message);
|
|
9760
9809
|
}
|
|
9761
9810
|
}
|
|
9811
|
+
if (obj.refreshFailureReason !== undefined) {
|
|
9812
|
+
const obj_refreshFailureReason = obj.refreshFailureReason;
|
|
9813
|
+
const path_refreshFailureReason = path + '.refreshFailureReason';
|
|
9814
|
+
if (typeof obj_refreshFailureReason !== 'string') {
|
|
9815
|
+
return new TypeError('Expected "string" but received "' + typeof obj_refreshFailureReason + '" (at "' + path_refreshFailureReason + '")');
|
|
9816
|
+
}
|
|
9817
|
+
}
|
|
9818
|
+
const obj_refreshStatus = obj.refreshStatus;
|
|
9819
|
+
const path_refreshStatus = path + '.refreshStatus';
|
|
9820
|
+
if (typeof obj_refreshStatus !== 'string') {
|
|
9821
|
+
return new TypeError('Expected "string" but received "' + typeof obj_refreshStatus + '" (at "' + path_refreshStatus + '")');
|
|
9822
|
+
}
|
|
9762
9823
|
const obj_rowLevelOverrideType = obj.rowLevelOverrideType;
|
|
9763
9824
|
const path_rowLevelOverrideType = path + '.rowLevelOverrideType';
|
|
9764
9825
|
if (typeof obj_rowLevelOverrideType !== 'string') {
|
|
@@ -9834,16 +9895,43 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
9834
9895
|
name: 'description',
|
|
9835
9896
|
kind: 'Scalar'
|
|
9836
9897
|
},
|
|
9898
|
+
{
|
|
9899
|
+
name: 'hasIncrementalSyncFailed',
|
|
9900
|
+
kind: 'Scalar'
|
|
9901
|
+
},
|
|
9902
|
+
{
|
|
9903
|
+
name: 'isIncrementalSyncEnabled',
|
|
9904
|
+
kind: 'Scalar'
|
|
9905
|
+
},
|
|
9906
|
+
{
|
|
9907
|
+
name: 'lastIncrementalSyncDate',
|
|
9908
|
+
kind: 'Scalar',
|
|
9909
|
+
required: false
|
|
9910
|
+
},
|
|
9837
9911
|
{
|
|
9838
9912
|
name: 'lastModifiedDate',
|
|
9839
9913
|
kind: 'Scalar'
|
|
9840
9914
|
},
|
|
9915
|
+
{
|
|
9916
|
+
name: 'lastSyncDate',
|
|
9917
|
+
kind: 'Scalar',
|
|
9918
|
+
required: false
|
|
9919
|
+
},
|
|
9841
9920
|
{
|
|
9842
9921
|
name: 'parameters',
|
|
9843
9922
|
kind: 'Object',
|
|
9844
9923
|
plural: true,
|
|
9845
9924
|
selections: EligibilityRuleParameterRepresentation__selections
|
|
9846
9925
|
},
|
|
9926
|
+
{
|
|
9927
|
+
name: 'refreshFailureReason',
|
|
9928
|
+
kind: 'Scalar',
|
|
9929
|
+
required: false
|
|
9930
|
+
},
|
|
9931
|
+
{
|
|
9932
|
+
name: 'refreshStatus',
|
|
9933
|
+
kind: 'Scalar'
|
|
9934
|
+
},
|
|
9847
9935
|
{
|
|
9848
9936
|
name: 'rowLevelOverrideType',
|
|
9849
9937
|
kind: 'Scalar'
|
|
@@ -9874,6 +9962,16 @@ const select$9 = function EligibilityRuleDetailsRepresentationSelect() {
|
|
|
9874
9962
|
};
|
|
9875
9963
|
};
|
|
9876
9964
|
function equals$4(existing, incoming) {
|
|
9965
|
+
const existing_hasIncrementalSyncFailed = existing.hasIncrementalSyncFailed;
|
|
9966
|
+
const incoming_hasIncrementalSyncFailed = incoming.hasIncrementalSyncFailed;
|
|
9967
|
+
if (!(existing_hasIncrementalSyncFailed === incoming_hasIncrementalSyncFailed)) {
|
|
9968
|
+
return false;
|
|
9969
|
+
}
|
|
9970
|
+
const existing_isIncrementalSyncEnabled = existing.isIncrementalSyncEnabled;
|
|
9971
|
+
const incoming_isIncrementalSyncEnabled = incoming.isIncrementalSyncEnabled;
|
|
9972
|
+
if (!(existing_isIncrementalSyncEnabled === incoming_isIncrementalSyncEnabled)) {
|
|
9973
|
+
return false;
|
|
9974
|
+
}
|
|
9877
9975
|
const existing_conditionCriteria = existing.conditionCriteria;
|
|
9878
9976
|
const incoming_conditionCriteria = incoming.conditionCriteria;
|
|
9879
9977
|
if (!(existing_conditionCriteria === incoming_conditionCriteria)) {
|
|
@@ -9904,11 +10002,55 @@ function equals$4(existing, incoming) {
|
|
|
9904
10002
|
if (!(existing_description === incoming_description)) {
|
|
9905
10003
|
return false;
|
|
9906
10004
|
}
|
|
10005
|
+
const existing_lastIncrementalSyncDate = existing.lastIncrementalSyncDate;
|
|
10006
|
+
const incoming_lastIncrementalSyncDate = incoming.lastIncrementalSyncDate;
|
|
10007
|
+
// if at least one of these optionals is defined
|
|
10008
|
+
if (existing_lastIncrementalSyncDate !== undefined || incoming_lastIncrementalSyncDate !== undefined) {
|
|
10009
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10010
|
+
// not equal
|
|
10011
|
+
if (existing_lastIncrementalSyncDate === undefined || incoming_lastIncrementalSyncDate === undefined) {
|
|
10012
|
+
return false;
|
|
10013
|
+
}
|
|
10014
|
+
if (!(existing_lastIncrementalSyncDate === incoming_lastIncrementalSyncDate)) {
|
|
10015
|
+
return false;
|
|
10016
|
+
}
|
|
10017
|
+
}
|
|
9907
10018
|
const existing_lastModifiedDate = existing.lastModifiedDate;
|
|
9908
10019
|
const incoming_lastModifiedDate = incoming.lastModifiedDate;
|
|
9909
10020
|
if (!(existing_lastModifiedDate === incoming_lastModifiedDate)) {
|
|
9910
10021
|
return false;
|
|
9911
10022
|
}
|
|
10023
|
+
const existing_lastSyncDate = existing.lastSyncDate;
|
|
10024
|
+
const incoming_lastSyncDate = incoming.lastSyncDate;
|
|
10025
|
+
// if at least one of these optionals is defined
|
|
10026
|
+
if (existing_lastSyncDate !== undefined || incoming_lastSyncDate !== undefined) {
|
|
10027
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10028
|
+
// not equal
|
|
10029
|
+
if (existing_lastSyncDate === undefined || incoming_lastSyncDate === undefined) {
|
|
10030
|
+
return false;
|
|
10031
|
+
}
|
|
10032
|
+
if (!(existing_lastSyncDate === incoming_lastSyncDate)) {
|
|
10033
|
+
return false;
|
|
10034
|
+
}
|
|
10035
|
+
}
|
|
10036
|
+
const existing_refreshFailureReason = existing.refreshFailureReason;
|
|
10037
|
+
const incoming_refreshFailureReason = incoming.refreshFailureReason;
|
|
10038
|
+
// if at least one of these optionals is defined
|
|
10039
|
+
if (existing_refreshFailureReason !== undefined || incoming_refreshFailureReason !== undefined) {
|
|
10040
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
10041
|
+
// not equal
|
|
10042
|
+
if (existing_refreshFailureReason === undefined || incoming_refreshFailureReason === undefined) {
|
|
10043
|
+
return false;
|
|
10044
|
+
}
|
|
10045
|
+
if (!(existing_refreshFailureReason === incoming_refreshFailureReason)) {
|
|
10046
|
+
return false;
|
|
10047
|
+
}
|
|
10048
|
+
}
|
|
10049
|
+
const existing_refreshStatus = existing.refreshStatus;
|
|
10050
|
+
const incoming_refreshStatus = incoming.refreshStatus;
|
|
10051
|
+
if (!(existing_refreshStatus === incoming_refreshStatus)) {
|
|
10052
|
+
return false;
|
|
10053
|
+
}
|
|
9912
10054
|
const existing_rowLevelOverrideType = existing.rowLevelOverrideType;
|
|
9913
10055
|
const incoming_rowLevelOverrideType = incoming.rowLevelOverrideType;
|
|
9914
10056
|
if (!(existing_rowLevelOverrideType === incoming_rowLevelOverrideType)) {
|
|
@@ -10561,8 +10703,8 @@ function validate$4(obj, path = 'EligibilityRuleValueInputRepresentation') {
|
|
|
10561
10703
|
}
|
|
10562
10704
|
|
|
10563
10705
|
const TTL$1 = 6000;
|
|
10564
|
-
const VERSION$1 = "
|
|
10565
|
-
function validate$3(obj, path = '
|
|
10706
|
+
const VERSION$1 = "46e43120927331c84fedc0b4e2f9addc";
|
|
10707
|
+
function validate$3(obj, path = 'EligibilityRuleRepresentation') {
|
|
10566
10708
|
const v_error = (() => {
|
|
10567
10709
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
10568
10710
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -10590,7 +10732,7 @@ function validate$3(obj, path = 'RuleOutputRepresentation') {
|
|
|
10590
10732
|
})();
|
|
10591
10733
|
return v_error === undefined ? null : v_error;
|
|
10592
10734
|
}
|
|
10593
|
-
const RepresentationType$1 = '
|
|
10735
|
+
const RepresentationType$1 = 'EligibilityRuleRepresentation';
|
|
10594
10736
|
function keyBuilder$1(luvio, config) {
|
|
10595
10737
|
return keyPrefix + '::' + RepresentationType$1 + ':' + config.sourceObjectRecordId;
|
|
10596
10738
|
}
|
|
@@ -10603,7 +10745,7 @@ function keyBuilderFromType$1(luvio, object) {
|
|
|
10603
10745
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
10604
10746
|
return input;
|
|
10605
10747
|
}
|
|
10606
|
-
const select$4 = function
|
|
10748
|
+
const select$4 = function EligibilityRuleRepresentationSelect() {
|
|
10607
10749
|
return {
|
|
10608
10750
|
kind: 'Fragment',
|
|
10609
10751
|
version: VERSION$1,
|
|
@@ -10651,7 +10793,7 @@ function equals$1(existing, incoming) {
|
|
|
10651
10793
|
}
|
|
10652
10794
|
return true;
|
|
10653
10795
|
}
|
|
10654
|
-
const ingest$1 = function
|
|
10796
|
+
const ingest$1 = function EligibilityRuleRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
10655
10797
|
if (process.env.NODE_ENV !== 'production') {
|
|
10656
10798
|
const validateError = validate$3(input);
|
|
10657
10799
|
if (validateError !== null) {
|
|
@@ -11419,4 +11561,4 @@ withDefaultLuvio((luvio) => {
|
|
|
11419
11561
|
});
|
|
11420
11562
|
|
|
11421
11563
|
export { createAgentAction, createAgentFlow, createCatalogItem, deployTemplate, downloadServiceProcessTemplate, downloadServiceProcessTemplate_imperative, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate, getAllServiceProcessTemplate_imperative, getCatalogItem, getCatalogItem_imperative, getEligibilityRuleMetadata, getEligibilityRuleMetadata_imperative, getServiceRequest, getServiceRequest_imperative, saveEligibilityRule, updateCatalogItem, updateEpcCategories };
|
|
11422
|
-
// version: 1.
|
|
11564
|
+
// version: 1.394.0-db58817a4e
|
package/src/raml/api.raml
CHANGED
|
@@ -1692,16 +1692,45 @@ types:
|
|
|
1692
1692
|
required: true
|
|
1693
1693
|
description: The name of the decision table
|
|
1694
1694
|
type: string
|
|
1695
|
+
hasIncrementalSyncFailed:
|
|
1696
|
+
required: true
|
|
1697
|
+
description: Indicates whether the incremental sync has failed for the decision table
|
|
1698
|
+
type: boolean
|
|
1699
|
+
isIncrementalSyncEnabled:
|
|
1700
|
+
required: true
|
|
1701
|
+
description: Indicates whether incremental sync is enabled for the decision table
|
|
1702
|
+
type: boolean
|
|
1703
|
+
lastIncrementalSyncDate:
|
|
1704
|
+
required: false
|
|
1705
|
+
description: The date and time when the decision table was last incrementally synced
|
|
1706
|
+
type: string
|
|
1695
1707
|
lastModifiedDate:
|
|
1696
1708
|
required: true
|
|
1697
1709
|
description: The date and time when the decision table was last modified
|
|
1698
1710
|
type: string
|
|
1711
|
+
lastSyncDate:
|
|
1712
|
+
required: false
|
|
1713
|
+
description: The date and time when the decision table was last synced
|
|
1714
|
+
type: string
|
|
1699
1715
|
parameters:
|
|
1700
1716
|
required: true
|
|
1701
1717
|
description: The description of the for the decision table parameters
|
|
1702
1718
|
type: array
|
|
1703
1719
|
items:
|
|
1704
1720
|
type: EligibilityRuleParameterRepresentation
|
|
1721
|
+
refreshStatus:
|
|
1722
|
+
required: true
|
|
1723
|
+
description: The refresh status of the decision table
|
|
1724
|
+
type: string
|
|
1725
|
+
enum:
|
|
1726
|
+
- Initiated
|
|
1727
|
+
- Completed
|
|
1728
|
+
- InProgress
|
|
1729
|
+
- Failed
|
|
1730
|
+
refreshFailureReason:
|
|
1731
|
+
required: false
|
|
1732
|
+
description: The reason for the decision table refresh failure, if applicable
|
|
1733
|
+
type: string
|
|
1705
1734
|
sourceCriteria:
|
|
1706
1735
|
required: true
|
|
1707
1736
|
description: The criteria used to filter and select a specific type rule for application
|
|
@@ -1831,6 +1860,10 @@ types:
|
|
|
1831
1860
|
- DescNullFirst
|
|
1832
1861
|
- DescNullLast
|
|
1833
1862
|
- None
|
|
1863
|
+
sourceObjectLookUp:
|
|
1864
|
+
description: Specifies the lookup entity the source object field is mapped to
|
|
1865
|
+
type: string
|
|
1866
|
+
required: false
|
|
1834
1867
|
usage:
|
|
1835
1868
|
description: A picklist to select whether a particular field will be used
|
|
1836
1869
|
as input or output
|
|
@@ -1951,7 +1984,7 @@ types:
|
|
|
1951
1984
|
required: true
|
|
1952
1985
|
description: Specifies the unique identifier of the entity record domain field is mapped to
|
|
1953
1986
|
type: string
|
|
1954
|
-
|
|
1987
|
+
EligibilityRuleRepresentation:
|
|
1955
1988
|
description: Output Representation for the Eligibility Rules.
|
|
1956
1989
|
type: object
|
|
1957
1990
|
properties:
|
|
@@ -2194,11 +2227,11 @@ types:
|
|
|
2194
2227
|
description: Success
|
|
2195
2228
|
body:
|
|
2196
2229
|
application/json:
|
|
2197
|
-
type:
|
|
2230
|
+
type: EligibilityRuleRepresentation
|
|
2198
2231
|
body:
|
|
2199
2232
|
application/json:
|
|
2200
2233
|
type: EligibilityRuleInputRepresentation
|
|
2201
|
-
(oas-body-name):
|
|
2234
|
+
(oas-body-name): ruleInputPayload
|
|
2202
2235
|
/eligibility-rule-metadata:
|
|
2203
2236
|
get:
|
|
2204
2237
|
displayName: getEligibilityRuleMetadata
|
package/src/raml/luvio.raml
CHANGED