@salesforce/lds-adapters-industries-actionablelist 1.119.3 → 1.120.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/industries-actionablelist.js +65 -2
- package/dist/types/src/generated/types/ActionableListDatasetByDefinitionRepresentation.d.ts +4 -1
- package/dist/types/src/generated/types/ActionableListDatasetInputRepresentation.d.ts +4 -1
- package/dist/umd/es2018/industries-actionablelist.js +65 -2
- package/dist/umd/es5/industries-actionablelist.js +65 -2
- package/package.json +1 -1
- package/sfdc/index.js +66 -3
- package/src/raml/api.raml +8 -0
|
@@ -2072,6 +2072,34 @@ function validate$4(obj, path = 'ActionableListDatasetInputRepresentation') {
|
|
|
2072
2072
|
return new TypeError(message);
|
|
2073
2073
|
}
|
|
2074
2074
|
}
|
|
2075
|
+
if (obj.queryType !== undefined) {
|
|
2076
|
+
const obj_queryType = obj.queryType;
|
|
2077
|
+
const path_queryType = path + '.queryType';
|
|
2078
|
+
let obj_queryType_union0 = null;
|
|
2079
|
+
const obj_queryType_union0_error = (() => {
|
|
2080
|
+
if (typeof obj_queryType !== 'string') {
|
|
2081
|
+
return new TypeError('Expected "string" but received "' + typeof obj_queryType + '" (at "' + path_queryType + '")');
|
|
2082
|
+
}
|
|
2083
|
+
})();
|
|
2084
|
+
if (obj_queryType_union0_error != null) {
|
|
2085
|
+
obj_queryType_union0 = obj_queryType_union0_error.message;
|
|
2086
|
+
}
|
|
2087
|
+
let obj_queryType_union1 = null;
|
|
2088
|
+
const obj_queryType_union1_error = (() => {
|
|
2089
|
+
if (obj_queryType !== null) {
|
|
2090
|
+
return new TypeError('Expected "null" but received "' + typeof obj_queryType + '" (at "' + path_queryType + '")');
|
|
2091
|
+
}
|
|
2092
|
+
})();
|
|
2093
|
+
if (obj_queryType_union1_error != null) {
|
|
2094
|
+
obj_queryType_union1 = obj_queryType_union1_error.message;
|
|
2095
|
+
}
|
|
2096
|
+
if (obj_queryType_union0 && obj_queryType_union1) {
|
|
2097
|
+
let message = 'Object doesn\'t match union (at "' + path_queryType + '")';
|
|
2098
|
+
message += '\n' + obj_queryType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2099
|
+
message += '\n' + obj_queryType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2100
|
+
return new TypeError(message);
|
|
2101
|
+
}
|
|
2102
|
+
}
|
|
2075
2103
|
if (obj.rowLimit !== undefined) {
|
|
2076
2104
|
const obj_rowLimit = obj.rowLimit;
|
|
2077
2105
|
const path_rowLimit = path + '.rowLimit';
|
|
@@ -2550,12 +2578,38 @@ function equals$1(existing, incoming) {
|
|
|
2550
2578
|
}
|
|
2551
2579
|
|
|
2552
2580
|
const TTL = 100;
|
|
2553
|
-
const VERSION = "
|
|
2581
|
+
const VERSION = "dc69507b2503baa62caf5e85fd7545b8";
|
|
2554
2582
|
function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation') {
|
|
2555
2583
|
const v_error = (() => {
|
|
2556
2584
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2557
2585
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2558
2586
|
}
|
|
2587
|
+
const obj_count = obj.count;
|
|
2588
|
+
const path_count = path + '.count';
|
|
2589
|
+
let obj_count_union0 = null;
|
|
2590
|
+
const obj_count_union0_error = (() => {
|
|
2591
|
+
if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
|
|
2592
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
2593
|
+
}
|
|
2594
|
+
})();
|
|
2595
|
+
if (obj_count_union0_error != null) {
|
|
2596
|
+
obj_count_union0 = obj_count_union0_error.message;
|
|
2597
|
+
}
|
|
2598
|
+
let obj_count_union1 = null;
|
|
2599
|
+
const obj_count_union1_error = (() => {
|
|
2600
|
+
if (obj_count !== null) {
|
|
2601
|
+
return new TypeError('Expected "null" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
2602
|
+
}
|
|
2603
|
+
})();
|
|
2604
|
+
if (obj_count_union1_error != null) {
|
|
2605
|
+
obj_count_union1 = obj_count_union1_error.message;
|
|
2606
|
+
}
|
|
2607
|
+
if (obj_count_union0 && obj_count_union1) {
|
|
2608
|
+
let message = 'Object doesn\'t match union (at "' + path_count + '")';
|
|
2609
|
+
message += '\n' + obj_count_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2610
|
+
message += '\n' + obj_count_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2611
|
+
return new TypeError(message);
|
|
2612
|
+
}
|
|
2559
2613
|
const obj_currencyCode = obj.currencyCode;
|
|
2560
2614
|
const path_currencyCode = path + '.currencyCode';
|
|
2561
2615
|
let obj_currencyCode_union0 = null;
|
|
@@ -2648,6 +2702,10 @@ const select$1 = function ActionableListDatasetByDefinitionRepresentationSelect(
|
|
|
2648
2702
|
version: VERSION,
|
|
2649
2703
|
private: [],
|
|
2650
2704
|
selections: [
|
|
2705
|
+
{
|
|
2706
|
+
name: 'count',
|
|
2707
|
+
kind: 'Scalar'
|
|
2708
|
+
},
|
|
2651
2709
|
{
|
|
2652
2710
|
name: 'currencyCode',
|
|
2653
2711
|
kind: 'Scalar'
|
|
@@ -2683,6 +2741,11 @@ function equals(existing, incoming) {
|
|
|
2683
2741
|
if (!(existing_responseId === incoming_responseId)) {
|
|
2684
2742
|
return false;
|
|
2685
2743
|
}
|
|
2744
|
+
const existing_count = existing.count;
|
|
2745
|
+
const incoming_count = incoming.count;
|
|
2746
|
+
if (!(existing_count === incoming_count)) {
|
|
2747
|
+
return false;
|
|
2748
|
+
}
|
|
2686
2749
|
const existing_currencyCode = existing.currencyCode;
|
|
2687
2750
|
const incoming_currencyCode = incoming.currencyCode;
|
|
2688
2751
|
if (!(existing_currencyCode === incoming_currencyCode)) {
|
|
@@ -2766,7 +2829,7 @@ function select(luvio, params) {
|
|
|
2766
2829
|
return select$1();
|
|
2767
2830
|
}
|
|
2768
2831
|
function keyBuilder$1(luvio, params) {
|
|
2769
|
-
return keyPrefix + '::ActionableListDatasetByDefinitionRepresentation:(' + (params.body.actionableListDataset.actionableListDefinitionId === undefined ? 'actionableListDataset.actionableListDefinitionId' : 'actionableListDataset.actionableListDefinitionId:' + params.body.actionableListDataset.actionableListDefinitionId) + '::' + (params.body.actionableListDataset.filterLogic === undefined ? 'actionableListDataset.filterLogic' : 'actionableListDataset.filterLogic:' + params.body.actionableListDataset.filterLogic) + '::' + +'::' + (params.body.actionableListDataset.offset === undefined ? 'actionableListDataset.offset' : 'actionableListDataset.offset:' + params.body.actionableListDataset.offset) + '::' + (params.body.actionableListDataset.orderBy === undefined ? 'actionableListDataset.orderBy' : 'actionableListDataset.orderBy:' + params.body.actionableListDataset.orderBy) + '::' + (params.body.actionableListDataset.rowLimit === undefined ? 'actionableListDataset.rowLimit' : 'actionableListDataset.rowLimit:' + params.body.actionableListDataset.rowLimit) + '::' + (params.body.actionableListDataset.shouldReturnCurrencyCode === undefined ? 'actionableListDataset.shouldReturnCurrencyCode' : 'actionableListDataset.shouldReturnCurrencyCode:' + params.body.actionableListDataset.shouldReturnCurrencyCode) + '::' + (params.body.actionableListDataset.sortOrder === undefined ? 'actionableListDataset.sortOrder' : 'actionableListDataset.sortOrder:' + params.body.actionableListDataset.sortOrder) + ')';
|
|
2832
|
+
return keyPrefix + '::ActionableListDatasetByDefinitionRepresentation:(' + (params.body.actionableListDataset.actionableListDefinitionId === undefined ? 'actionableListDataset.actionableListDefinitionId' : 'actionableListDataset.actionableListDefinitionId:' + params.body.actionableListDataset.actionableListDefinitionId) + '::' + (params.body.actionableListDataset.filterLogic === undefined ? 'actionableListDataset.filterLogic' : 'actionableListDataset.filterLogic:' + params.body.actionableListDataset.filterLogic) + '::' + +'::' + (params.body.actionableListDataset.offset === undefined ? 'actionableListDataset.offset' : 'actionableListDataset.offset:' + params.body.actionableListDataset.offset) + '::' + (params.body.actionableListDataset.orderBy === undefined ? 'actionableListDataset.orderBy' : 'actionableListDataset.orderBy:' + params.body.actionableListDataset.orderBy) + '::' + (params.body.actionableListDataset.queryType === undefined ? 'actionableListDataset.queryType' : 'actionableListDataset.queryType:' + params.body.actionableListDataset.queryType) + '::' + (params.body.actionableListDataset.rowLimit === undefined ? 'actionableListDataset.rowLimit' : 'actionableListDataset.rowLimit:' + params.body.actionableListDataset.rowLimit) + '::' + (params.body.actionableListDataset.shouldReturnCurrencyCode === undefined ? 'actionableListDataset.shouldReturnCurrencyCode' : 'actionableListDataset.shouldReturnCurrencyCode:' + params.body.actionableListDataset.shouldReturnCurrencyCode) + '::' + (params.body.actionableListDataset.sortOrder === undefined ? 'actionableListDataset.sortOrder' : 'actionableListDataset.sortOrder:' + params.body.actionableListDataset.sortOrder) + ')';
|
|
2770
2833
|
}
|
|
2771
2834
|
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
2772
2835
|
return getTypeCacheKeys(luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -3,7 +3,7 @@ import { ActionableListDatasetRowRepresentation as ActionableListDatasetRowRepre
|
|
|
3
3
|
import { ActionableListMemberStatusRepresentation as ActionableListMemberStatusRepresentation_ActionableListMemberStatusRepresentation } from './ActionableListMemberStatusRepresentation';
|
|
4
4
|
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
5
5
|
export declare const TTL = 100;
|
|
6
|
-
export declare const VERSION = "
|
|
6
|
+
export declare const VERSION = "dc69507b2503baa62caf5e85fd7545b8";
|
|
7
7
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
8
|
export declare const RepresentationType: string;
|
|
9
9
|
export declare function normalize(input: ActionableListDatasetByDefinitionRepresentation, existing: ActionableListDatasetByDefinitionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionableListDatasetByDefinitionRepresentationNormalized;
|
|
@@ -19,6 +19,8 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: A
|
|
|
19
19
|
* (none)
|
|
20
20
|
*/
|
|
21
21
|
export interface ActionableListDatasetByDefinitionRepresentationNormalized {
|
|
22
|
+
/** Count of records in query result */
|
|
23
|
+
count: number | null;
|
|
22
24
|
/** Currency code of the currency fields in dataset */
|
|
23
25
|
currencyCode: string | null;
|
|
24
26
|
/** A list of dataset columns information in a actionableList */
|
|
@@ -37,6 +39,7 @@ export interface ActionableListDatasetByDefinitionRepresentationNormalized {
|
|
|
37
39
|
* (none)
|
|
38
40
|
*/
|
|
39
41
|
export interface ActionableListDatasetByDefinitionRepresentation {
|
|
42
|
+
count: number | null;
|
|
40
43
|
currencyCode: string | null;
|
|
41
44
|
datasetColumns: Array<ActionableListDatasetColumnRepresentation_ActionableListDatasetColumnRepresentation>;
|
|
42
45
|
datasetRows: Array<ActionableListDatasetRowRepresentation_ActionableListDatasetRowRepresentation>;
|
|
@@ -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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "4791cc5a0dd94f1ec8e8ae121964d15c";
|
|
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: ActionableListDatasetInputRepresentation, existing: ActionableListDatasetInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ActionableListDatasetInputRepresentationNormalized;
|
|
@@ -25,6 +25,8 @@ export interface ActionableListDatasetInputRepresentationNormalized {
|
|
|
25
25
|
offset?: number | null;
|
|
26
26
|
/** order by clause in query while fetching dataset rows */
|
|
27
27
|
orderBy?: string | null;
|
|
28
|
+
/** Query type decides if this is a count query or records query etc */
|
|
29
|
+
queryType?: string | null;
|
|
28
30
|
/** Limit of dataset rows */
|
|
29
31
|
rowLimit?: number | null;
|
|
30
32
|
/** Should the API return Currency Code used for formatting */
|
|
@@ -44,6 +46,7 @@ export interface ActionableListDatasetInputRepresentation {
|
|
|
44
46
|
filters?: {};
|
|
45
47
|
offset?: number | null;
|
|
46
48
|
orderBy?: string | null;
|
|
49
|
+
queryType?: string | null;
|
|
47
50
|
rowLimit?: number | null;
|
|
48
51
|
shouldReturnCurrencyCode?: boolean;
|
|
49
52
|
sortOrder?: string | null;
|
|
@@ -2076,6 +2076,34 @@
|
|
|
2076
2076
|
return new TypeError(message);
|
|
2077
2077
|
}
|
|
2078
2078
|
}
|
|
2079
|
+
if (obj.queryType !== undefined) {
|
|
2080
|
+
const obj_queryType = obj.queryType;
|
|
2081
|
+
const path_queryType = path + '.queryType';
|
|
2082
|
+
let obj_queryType_union0 = null;
|
|
2083
|
+
const obj_queryType_union0_error = (() => {
|
|
2084
|
+
if (typeof obj_queryType !== 'string') {
|
|
2085
|
+
return new TypeError('Expected "string" but received "' + typeof obj_queryType + '" (at "' + path_queryType + '")');
|
|
2086
|
+
}
|
|
2087
|
+
})();
|
|
2088
|
+
if (obj_queryType_union0_error != null) {
|
|
2089
|
+
obj_queryType_union0 = obj_queryType_union0_error.message;
|
|
2090
|
+
}
|
|
2091
|
+
let obj_queryType_union1 = null;
|
|
2092
|
+
const obj_queryType_union1_error = (() => {
|
|
2093
|
+
if (obj_queryType !== null) {
|
|
2094
|
+
return new TypeError('Expected "null" but received "' + typeof obj_queryType + '" (at "' + path_queryType + '")');
|
|
2095
|
+
}
|
|
2096
|
+
})();
|
|
2097
|
+
if (obj_queryType_union1_error != null) {
|
|
2098
|
+
obj_queryType_union1 = obj_queryType_union1_error.message;
|
|
2099
|
+
}
|
|
2100
|
+
if (obj_queryType_union0 && obj_queryType_union1) {
|
|
2101
|
+
let message = 'Object doesn\'t match union (at "' + path_queryType + '")';
|
|
2102
|
+
message += '\n' + obj_queryType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2103
|
+
message += '\n' + obj_queryType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2104
|
+
return new TypeError(message);
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2079
2107
|
if (obj.rowLimit !== undefined) {
|
|
2080
2108
|
const obj_rowLimit = obj.rowLimit;
|
|
2081
2109
|
const path_rowLimit = path + '.rowLimit';
|
|
@@ -2554,12 +2582,38 @@
|
|
|
2554
2582
|
}
|
|
2555
2583
|
|
|
2556
2584
|
const TTL = 100;
|
|
2557
|
-
const VERSION = "
|
|
2585
|
+
const VERSION = "dc69507b2503baa62caf5e85fd7545b8";
|
|
2558
2586
|
function validate(obj, path = 'ActionableListDatasetByDefinitionRepresentation') {
|
|
2559
2587
|
const v_error = (() => {
|
|
2560
2588
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2561
2589
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2562
2590
|
}
|
|
2591
|
+
const obj_count = obj.count;
|
|
2592
|
+
const path_count = path + '.count';
|
|
2593
|
+
let obj_count_union0 = null;
|
|
2594
|
+
const obj_count_union0_error = (() => {
|
|
2595
|
+
if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
|
|
2596
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
2597
|
+
}
|
|
2598
|
+
})();
|
|
2599
|
+
if (obj_count_union0_error != null) {
|
|
2600
|
+
obj_count_union0 = obj_count_union0_error.message;
|
|
2601
|
+
}
|
|
2602
|
+
let obj_count_union1 = null;
|
|
2603
|
+
const obj_count_union1_error = (() => {
|
|
2604
|
+
if (obj_count !== null) {
|
|
2605
|
+
return new TypeError('Expected "null" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
2606
|
+
}
|
|
2607
|
+
})();
|
|
2608
|
+
if (obj_count_union1_error != null) {
|
|
2609
|
+
obj_count_union1 = obj_count_union1_error.message;
|
|
2610
|
+
}
|
|
2611
|
+
if (obj_count_union0 && obj_count_union1) {
|
|
2612
|
+
let message = 'Object doesn\'t match union (at "' + path_count + '")';
|
|
2613
|
+
message += '\n' + obj_count_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2614
|
+
message += '\n' + obj_count_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2615
|
+
return new TypeError(message);
|
|
2616
|
+
}
|
|
2563
2617
|
const obj_currencyCode = obj.currencyCode;
|
|
2564
2618
|
const path_currencyCode = path + '.currencyCode';
|
|
2565
2619
|
let obj_currencyCode_union0 = null;
|
|
@@ -2652,6 +2706,10 @@
|
|
|
2652
2706
|
version: VERSION,
|
|
2653
2707
|
private: [],
|
|
2654
2708
|
selections: [
|
|
2709
|
+
{
|
|
2710
|
+
name: 'count',
|
|
2711
|
+
kind: 'Scalar'
|
|
2712
|
+
},
|
|
2655
2713
|
{
|
|
2656
2714
|
name: 'currencyCode',
|
|
2657
2715
|
kind: 'Scalar'
|
|
@@ -2687,6 +2745,11 @@
|
|
|
2687
2745
|
if (!(existing_responseId === incoming_responseId)) {
|
|
2688
2746
|
return false;
|
|
2689
2747
|
}
|
|
2748
|
+
const existing_count = existing.count;
|
|
2749
|
+
const incoming_count = incoming.count;
|
|
2750
|
+
if (!(existing_count === incoming_count)) {
|
|
2751
|
+
return false;
|
|
2752
|
+
}
|
|
2690
2753
|
const existing_currencyCode = existing.currencyCode;
|
|
2691
2754
|
const incoming_currencyCode = incoming.currencyCode;
|
|
2692
2755
|
if (!(existing_currencyCode === incoming_currencyCode)) {
|
|
@@ -2770,7 +2833,7 @@
|
|
|
2770
2833
|
return select$1();
|
|
2771
2834
|
}
|
|
2772
2835
|
function keyBuilder$1(luvio, params) {
|
|
2773
|
-
return keyPrefix + '::ActionableListDatasetByDefinitionRepresentation:(' + (params.body.actionableListDataset.actionableListDefinitionId === undefined ? 'actionableListDataset.actionableListDefinitionId' : 'actionableListDataset.actionableListDefinitionId:' + params.body.actionableListDataset.actionableListDefinitionId) + '::' + (params.body.actionableListDataset.filterLogic === undefined ? 'actionableListDataset.filterLogic' : 'actionableListDataset.filterLogic:' + params.body.actionableListDataset.filterLogic) + '::' + +'::' + (params.body.actionableListDataset.offset === undefined ? 'actionableListDataset.offset' : 'actionableListDataset.offset:' + params.body.actionableListDataset.offset) + '::' + (params.body.actionableListDataset.orderBy === undefined ? 'actionableListDataset.orderBy' : 'actionableListDataset.orderBy:' + params.body.actionableListDataset.orderBy) + '::' + (params.body.actionableListDataset.rowLimit === undefined ? 'actionableListDataset.rowLimit' : 'actionableListDataset.rowLimit:' + params.body.actionableListDataset.rowLimit) + '::' + (params.body.actionableListDataset.shouldReturnCurrencyCode === undefined ? 'actionableListDataset.shouldReturnCurrencyCode' : 'actionableListDataset.shouldReturnCurrencyCode:' + params.body.actionableListDataset.shouldReturnCurrencyCode) + '::' + (params.body.actionableListDataset.sortOrder === undefined ? 'actionableListDataset.sortOrder' : 'actionableListDataset.sortOrder:' + params.body.actionableListDataset.sortOrder) + ')';
|
|
2836
|
+
return keyPrefix + '::ActionableListDatasetByDefinitionRepresentation:(' + (params.body.actionableListDataset.actionableListDefinitionId === undefined ? 'actionableListDataset.actionableListDefinitionId' : 'actionableListDataset.actionableListDefinitionId:' + params.body.actionableListDataset.actionableListDefinitionId) + '::' + (params.body.actionableListDataset.filterLogic === undefined ? 'actionableListDataset.filterLogic' : 'actionableListDataset.filterLogic:' + params.body.actionableListDataset.filterLogic) + '::' + +'::' + (params.body.actionableListDataset.offset === undefined ? 'actionableListDataset.offset' : 'actionableListDataset.offset:' + params.body.actionableListDataset.offset) + '::' + (params.body.actionableListDataset.orderBy === undefined ? 'actionableListDataset.orderBy' : 'actionableListDataset.orderBy:' + params.body.actionableListDataset.orderBy) + '::' + (params.body.actionableListDataset.queryType === undefined ? 'actionableListDataset.queryType' : 'actionableListDataset.queryType:' + params.body.actionableListDataset.queryType) + '::' + (params.body.actionableListDataset.rowLimit === undefined ? 'actionableListDataset.rowLimit' : 'actionableListDataset.rowLimit:' + params.body.actionableListDataset.rowLimit) + '::' + (params.body.actionableListDataset.shouldReturnCurrencyCode === undefined ? 'actionableListDataset.shouldReturnCurrencyCode' : 'actionableListDataset.shouldReturnCurrencyCode:' + params.body.actionableListDataset.shouldReturnCurrencyCode) + '::' + (params.body.actionableListDataset.sortOrder === undefined ? 'actionableListDataset.sortOrder' : 'actionableListDataset.sortOrder:' + params.body.actionableListDataset.sortOrder) + ')';
|
|
2774
2837
|
}
|
|
2775
2838
|
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
2776
2839
|
return getTypeCacheKeys(luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -2087,6 +2087,34 @@
|
|
|
2087
2087
|
return new TypeError(message);
|
|
2088
2088
|
}
|
|
2089
2089
|
}
|
|
2090
|
+
if (obj.queryType !== undefined) {
|
|
2091
|
+
var obj_queryType_1 = obj.queryType;
|
|
2092
|
+
var path_queryType_1 = path + '.queryType';
|
|
2093
|
+
var obj_queryType_union0 = null;
|
|
2094
|
+
var obj_queryType_union0_error = (function () {
|
|
2095
|
+
if (typeof obj_queryType_1 !== 'string') {
|
|
2096
|
+
return new TypeError('Expected "string" but received "' + typeof obj_queryType_1 + '" (at "' + path_queryType_1 + '")');
|
|
2097
|
+
}
|
|
2098
|
+
})();
|
|
2099
|
+
if (obj_queryType_union0_error != null) {
|
|
2100
|
+
obj_queryType_union0 = obj_queryType_union0_error.message;
|
|
2101
|
+
}
|
|
2102
|
+
var obj_queryType_union1 = null;
|
|
2103
|
+
var obj_queryType_union1_error = (function () {
|
|
2104
|
+
if (obj_queryType_1 !== null) {
|
|
2105
|
+
return new TypeError('Expected "null" but received "' + typeof obj_queryType_1 + '" (at "' + path_queryType_1 + '")');
|
|
2106
|
+
}
|
|
2107
|
+
})();
|
|
2108
|
+
if (obj_queryType_union1_error != null) {
|
|
2109
|
+
obj_queryType_union1 = obj_queryType_union1_error.message;
|
|
2110
|
+
}
|
|
2111
|
+
if (obj_queryType_union0 && obj_queryType_union1) {
|
|
2112
|
+
var message = 'Object doesn\'t match union (at "' + path_queryType_1 + '")';
|
|
2113
|
+
message += '\n' + obj_queryType_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2114
|
+
message += '\n' + obj_queryType_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2115
|
+
return new TypeError(message);
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2090
2118
|
if (obj.rowLimit !== undefined) {
|
|
2091
2119
|
var obj_rowLimit_1 = obj.rowLimit;
|
|
2092
2120
|
var path_rowLimit_1 = path + '.rowLimit';
|
|
@@ -2568,13 +2596,39 @@
|
|
|
2568
2596
|
}
|
|
2569
2597
|
|
|
2570
2598
|
var TTL = 100;
|
|
2571
|
-
var VERSION = "
|
|
2599
|
+
var VERSION = "dc69507b2503baa62caf5e85fd7545b8";
|
|
2572
2600
|
function validate(obj, path) {
|
|
2573
2601
|
if (path === void 0) { path = 'ActionableListDatasetByDefinitionRepresentation'; }
|
|
2574
2602
|
var v_error = (function () {
|
|
2575
2603
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2576
2604
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2577
2605
|
}
|
|
2606
|
+
var obj_count = obj.count;
|
|
2607
|
+
var path_count = path + '.count';
|
|
2608
|
+
var obj_count_union0 = null;
|
|
2609
|
+
var obj_count_union0_error = (function () {
|
|
2610
|
+
if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
|
|
2611
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
2612
|
+
}
|
|
2613
|
+
})();
|
|
2614
|
+
if (obj_count_union0_error != null) {
|
|
2615
|
+
obj_count_union0 = obj_count_union0_error.message;
|
|
2616
|
+
}
|
|
2617
|
+
var obj_count_union1 = null;
|
|
2618
|
+
var obj_count_union1_error = (function () {
|
|
2619
|
+
if (obj_count !== null) {
|
|
2620
|
+
return new TypeError('Expected "null" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
2621
|
+
}
|
|
2622
|
+
})();
|
|
2623
|
+
if (obj_count_union1_error != null) {
|
|
2624
|
+
obj_count_union1 = obj_count_union1_error.message;
|
|
2625
|
+
}
|
|
2626
|
+
if (obj_count_union0 && obj_count_union1) {
|
|
2627
|
+
var message = 'Object doesn\'t match union (at "' + path_count + '")';
|
|
2628
|
+
message += '\n' + obj_count_union0.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2629
|
+
message += '\n' + obj_count_union1.split('\n').map(function (line) { return '\t' + line; }).join('\n');
|
|
2630
|
+
return new TypeError(message);
|
|
2631
|
+
}
|
|
2578
2632
|
var obj_currencyCode = obj.currencyCode;
|
|
2579
2633
|
var path_currencyCode = path + '.currencyCode';
|
|
2580
2634
|
var obj_currencyCode_union0 = null;
|
|
@@ -2667,6 +2721,10 @@
|
|
|
2667
2721
|
version: VERSION,
|
|
2668
2722
|
private: [],
|
|
2669
2723
|
selections: [
|
|
2724
|
+
{
|
|
2725
|
+
name: 'count',
|
|
2726
|
+
kind: 'Scalar'
|
|
2727
|
+
},
|
|
2670
2728
|
{
|
|
2671
2729
|
name: 'currencyCode',
|
|
2672
2730
|
kind: 'Scalar'
|
|
@@ -2702,6 +2760,11 @@
|
|
|
2702
2760
|
if (!(existing_responseId === incoming_responseId)) {
|
|
2703
2761
|
return false;
|
|
2704
2762
|
}
|
|
2763
|
+
var existing_count = existing.count;
|
|
2764
|
+
var incoming_count = incoming.count;
|
|
2765
|
+
if (!(existing_count === incoming_count)) {
|
|
2766
|
+
return false;
|
|
2767
|
+
}
|
|
2705
2768
|
var existing_currencyCode = existing.currencyCode;
|
|
2706
2769
|
var incoming_currencyCode = incoming.currencyCode;
|
|
2707
2770
|
if (!(existing_currencyCode === incoming_currencyCode)) {
|
|
@@ -2785,7 +2848,7 @@
|
|
|
2785
2848
|
return select$1();
|
|
2786
2849
|
}
|
|
2787
2850
|
function keyBuilder$1(luvio, params) {
|
|
2788
|
-
return keyPrefix + '::ActionableListDatasetByDefinitionRepresentation:(' + (params.body.actionableListDataset.actionableListDefinitionId === undefined ? 'actionableListDataset.actionableListDefinitionId' : 'actionableListDataset.actionableListDefinitionId:' + params.body.actionableListDataset.actionableListDefinitionId) + '::' + (params.body.actionableListDataset.filterLogic === undefined ? 'actionableListDataset.filterLogic' : 'actionableListDataset.filterLogic:' + params.body.actionableListDataset.filterLogic) + '::' + +'::' + (params.body.actionableListDataset.offset === undefined ? 'actionableListDataset.offset' : 'actionableListDataset.offset:' + params.body.actionableListDataset.offset) + '::' + (params.body.actionableListDataset.orderBy === undefined ? 'actionableListDataset.orderBy' : 'actionableListDataset.orderBy:' + params.body.actionableListDataset.orderBy) + '::' + (params.body.actionableListDataset.rowLimit === undefined ? 'actionableListDataset.rowLimit' : 'actionableListDataset.rowLimit:' + params.body.actionableListDataset.rowLimit) + '::' + (params.body.actionableListDataset.shouldReturnCurrencyCode === undefined ? 'actionableListDataset.shouldReturnCurrencyCode' : 'actionableListDataset.shouldReturnCurrencyCode:' + params.body.actionableListDataset.shouldReturnCurrencyCode) + '::' + (params.body.actionableListDataset.sortOrder === undefined ? 'actionableListDataset.sortOrder' : 'actionableListDataset.sortOrder:' + params.body.actionableListDataset.sortOrder) + ')';
|
|
2851
|
+
return keyPrefix + '::ActionableListDatasetByDefinitionRepresentation:(' + (params.body.actionableListDataset.actionableListDefinitionId === undefined ? 'actionableListDataset.actionableListDefinitionId' : 'actionableListDataset.actionableListDefinitionId:' + params.body.actionableListDataset.actionableListDefinitionId) + '::' + (params.body.actionableListDataset.filterLogic === undefined ? 'actionableListDataset.filterLogic' : 'actionableListDataset.filterLogic:' + params.body.actionableListDataset.filterLogic) + '::' + +'::' + (params.body.actionableListDataset.offset === undefined ? 'actionableListDataset.offset' : 'actionableListDataset.offset:' + params.body.actionableListDataset.offset) + '::' + (params.body.actionableListDataset.orderBy === undefined ? 'actionableListDataset.orderBy' : 'actionableListDataset.orderBy:' + params.body.actionableListDataset.orderBy) + '::' + (params.body.actionableListDataset.queryType === undefined ? 'actionableListDataset.queryType' : 'actionableListDataset.queryType:' + params.body.actionableListDataset.queryType) + '::' + (params.body.actionableListDataset.rowLimit === undefined ? 'actionableListDataset.rowLimit' : 'actionableListDataset.rowLimit:' + params.body.actionableListDataset.rowLimit) + '::' + (params.body.actionableListDataset.shouldReturnCurrencyCode === undefined ? 'actionableListDataset.shouldReturnCurrencyCode' : 'actionableListDataset.shouldReturnCurrencyCode:' + params.body.actionableListDataset.shouldReturnCurrencyCode) + '::' + (params.body.actionableListDataset.sortOrder === undefined ? 'actionableListDataset.sortOrder' : 'actionableListDataset.sortOrder:' + params.body.actionableListDataset.sortOrder) + ')';
|
|
2789
2852
|
}
|
|
2790
2853
|
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
2791
2854
|
return getTypeCacheKeys(luvio, response, function () { return keyBuilder$1(luvio, resourceParams); });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-actionablelist",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.120.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Wire adapter for actionable list connect APIs",
|
|
6
6
|
"main": "dist/umd/es2018/industries-actionablelist.js",
|
package/sfdc/index.js
CHANGED
|
@@ -1051,6 +1051,34 @@ function validate$8(obj, path = 'ActionableListDatasetInputRepresentation') {
|
|
|
1051
1051
|
return new TypeError(message);
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
|
+
if (obj.queryType !== undefined) {
|
|
1055
|
+
const obj_queryType = obj.queryType;
|
|
1056
|
+
const path_queryType = path + '.queryType';
|
|
1057
|
+
let obj_queryType_union0 = null;
|
|
1058
|
+
const obj_queryType_union0_error = (() => {
|
|
1059
|
+
if (typeof obj_queryType !== 'string') {
|
|
1060
|
+
return new TypeError('Expected "string" but received "' + typeof obj_queryType + '" (at "' + path_queryType + '")');
|
|
1061
|
+
}
|
|
1062
|
+
})();
|
|
1063
|
+
if (obj_queryType_union0_error != null) {
|
|
1064
|
+
obj_queryType_union0 = obj_queryType_union0_error.message;
|
|
1065
|
+
}
|
|
1066
|
+
let obj_queryType_union1 = null;
|
|
1067
|
+
const obj_queryType_union1_error = (() => {
|
|
1068
|
+
if (obj_queryType !== null) {
|
|
1069
|
+
return new TypeError('Expected "null" but received "' + typeof obj_queryType + '" (at "' + path_queryType + '")');
|
|
1070
|
+
}
|
|
1071
|
+
})();
|
|
1072
|
+
if (obj_queryType_union1_error != null) {
|
|
1073
|
+
obj_queryType_union1 = obj_queryType_union1_error.message;
|
|
1074
|
+
}
|
|
1075
|
+
if (obj_queryType_union0 && obj_queryType_union1) {
|
|
1076
|
+
let message = 'Object doesn\'t match union (at "' + path_queryType + '")';
|
|
1077
|
+
message += '\n' + obj_queryType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1078
|
+
message += '\n' + obj_queryType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1079
|
+
return new TypeError(message);
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1054
1082
|
if (obj.rowLimit !== undefined) {
|
|
1055
1083
|
const obj_rowLimit = obj.rowLimit;
|
|
1056
1084
|
const path_rowLimit = path + '.rowLimit';
|
|
@@ -1529,12 +1557,38 @@ function equals$4(existing, incoming) {
|
|
|
1529
1557
|
}
|
|
1530
1558
|
|
|
1531
1559
|
const TTL$3 = 100;
|
|
1532
|
-
const VERSION$3 = "
|
|
1560
|
+
const VERSION$3 = "dc69507b2503baa62caf5e85fd7545b8";
|
|
1533
1561
|
function validate$4(obj, path = 'ActionableListDatasetByDefinitionRepresentation') {
|
|
1534
1562
|
const v_error = (() => {
|
|
1535
1563
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1536
1564
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1537
1565
|
}
|
|
1566
|
+
const obj_count = obj.count;
|
|
1567
|
+
const path_count = path + '.count';
|
|
1568
|
+
let obj_count_union0 = null;
|
|
1569
|
+
const obj_count_union0_error = (() => {
|
|
1570
|
+
if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
|
|
1571
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
1572
|
+
}
|
|
1573
|
+
})();
|
|
1574
|
+
if (obj_count_union0_error != null) {
|
|
1575
|
+
obj_count_union0 = obj_count_union0_error.message;
|
|
1576
|
+
}
|
|
1577
|
+
let obj_count_union1 = null;
|
|
1578
|
+
const obj_count_union1_error = (() => {
|
|
1579
|
+
if (obj_count !== null) {
|
|
1580
|
+
return new TypeError('Expected "null" but received "' + typeof obj_count + '" (at "' + path_count + '")');
|
|
1581
|
+
}
|
|
1582
|
+
})();
|
|
1583
|
+
if (obj_count_union1_error != null) {
|
|
1584
|
+
obj_count_union1 = obj_count_union1_error.message;
|
|
1585
|
+
}
|
|
1586
|
+
if (obj_count_union0 && obj_count_union1) {
|
|
1587
|
+
let message = 'Object doesn\'t match union (at "' + path_count + '")';
|
|
1588
|
+
message += '\n' + obj_count_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1589
|
+
message += '\n' + obj_count_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1590
|
+
return new TypeError(message);
|
|
1591
|
+
}
|
|
1538
1592
|
const obj_currencyCode = obj.currencyCode;
|
|
1539
1593
|
const path_currencyCode = path + '.currencyCode';
|
|
1540
1594
|
let obj_currencyCode_union0 = null;
|
|
@@ -1627,6 +1681,10 @@ const select$7 = function ActionableListDatasetByDefinitionRepresentationSelect(
|
|
|
1627
1681
|
version: VERSION$3,
|
|
1628
1682
|
private: [],
|
|
1629
1683
|
selections: [
|
|
1684
|
+
{
|
|
1685
|
+
name: 'count',
|
|
1686
|
+
kind: 'Scalar'
|
|
1687
|
+
},
|
|
1630
1688
|
{
|
|
1631
1689
|
name: 'currencyCode',
|
|
1632
1690
|
kind: 'Scalar'
|
|
@@ -1662,6 +1720,11 @@ function equals$3(existing, incoming) {
|
|
|
1662
1720
|
if (!(existing_responseId === incoming_responseId)) {
|
|
1663
1721
|
return false;
|
|
1664
1722
|
}
|
|
1723
|
+
const existing_count = existing.count;
|
|
1724
|
+
const incoming_count = incoming.count;
|
|
1725
|
+
if (!(existing_count === incoming_count)) {
|
|
1726
|
+
return false;
|
|
1727
|
+
}
|
|
1665
1728
|
const existing_currencyCode = existing.currencyCode;
|
|
1666
1729
|
const incoming_currencyCode = incoming.currencyCode;
|
|
1667
1730
|
if (!(existing_currencyCode === incoming_currencyCode)) {
|
|
@@ -1745,7 +1808,7 @@ function select$6(luvio, params) {
|
|
|
1745
1808
|
return select$7();
|
|
1746
1809
|
}
|
|
1747
1810
|
function keyBuilder$6(luvio, params) {
|
|
1748
|
-
return keyPrefix + '::ActionableListDatasetByDefinitionRepresentation:(' + (params.body.actionableListDataset.actionableListDefinitionId === undefined ? 'actionableListDataset.actionableListDefinitionId' : 'actionableListDataset.actionableListDefinitionId:' + params.body.actionableListDataset.actionableListDefinitionId) + '::' + (params.body.actionableListDataset.filterLogic === undefined ? 'actionableListDataset.filterLogic' : 'actionableListDataset.filterLogic:' + params.body.actionableListDataset.filterLogic) + '::' + +'::' + (params.body.actionableListDataset.offset === undefined ? 'actionableListDataset.offset' : 'actionableListDataset.offset:' + params.body.actionableListDataset.offset) + '::' + (params.body.actionableListDataset.orderBy === undefined ? 'actionableListDataset.orderBy' : 'actionableListDataset.orderBy:' + params.body.actionableListDataset.orderBy) + '::' + (params.body.actionableListDataset.rowLimit === undefined ? 'actionableListDataset.rowLimit' : 'actionableListDataset.rowLimit:' + params.body.actionableListDataset.rowLimit) + '::' + (params.body.actionableListDataset.shouldReturnCurrencyCode === undefined ? 'actionableListDataset.shouldReturnCurrencyCode' : 'actionableListDataset.shouldReturnCurrencyCode:' + params.body.actionableListDataset.shouldReturnCurrencyCode) + '::' + (params.body.actionableListDataset.sortOrder === undefined ? 'actionableListDataset.sortOrder' : 'actionableListDataset.sortOrder:' + params.body.actionableListDataset.sortOrder) + ')';
|
|
1811
|
+
return keyPrefix + '::ActionableListDatasetByDefinitionRepresentation:(' + (params.body.actionableListDataset.actionableListDefinitionId === undefined ? 'actionableListDataset.actionableListDefinitionId' : 'actionableListDataset.actionableListDefinitionId:' + params.body.actionableListDataset.actionableListDefinitionId) + '::' + (params.body.actionableListDataset.filterLogic === undefined ? 'actionableListDataset.filterLogic' : 'actionableListDataset.filterLogic:' + params.body.actionableListDataset.filterLogic) + '::' + +'::' + (params.body.actionableListDataset.offset === undefined ? 'actionableListDataset.offset' : 'actionableListDataset.offset:' + params.body.actionableListDataset.offset) + '::' + (params.body.actionableListDataset.orderBy === undefined ? 'actionableListDataset.orderBy' : 'actionableListDataset.orderBy:' + params.body.actionableListDataset.orderBy) + '::' + (params.body.actionableListDataset.queryType === undefined ? 'actionableListDataset.queryType' : 'actionableListDataset.queryType:' + params.body.actionableListDataset.queryType) + '::' + (params.body.actionableListDataset.rowLimit === undefined ? 'actionableListDataset.rowLimit' : 'actionableListDataset.rowLimit:' + params.body.actionableListDataset.rowLimit) + '::' + (params.body.actionableListDataset.shouldReturnCurrencyCode === undefined ? 'actionableListDataset.shouldReturnCurrencyCode' : 'actionableListDataset.shouldReturnCurrencyCode:' + params.body.actionableListDataset.shouldReturnCurrencyCode) + '::' + (params.body.actionableListDataset.sortOrder === undefined ? 'actionableListDataset.sortOrder' : 'actionableListDataset.sortOrder:' + params.body.actionableListDataset.sortOrder) + ')';
|
|
1749
1812
|
}
|
|
1750
1813
|
function getResponseCacheKeys$3(luvio, resourceParams, response) {
|
|
1751
1814
|
return getTypeCacheKeys$3(luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
@@ -2979,4 +3042,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2979
3042
|
});
|
|
2980
3043
|
|
|
2981
3044
|
export { createActionableListDefinition, getActionableListDatasetInfo, getActionableListDatasetInfo_imperative, getActionableListDefinitions, getActionableListDefinitions_imperative, getActionableListMembers, getActionableListMembers_imperative, upsertActionableList };
|
|
2982
|
-
// version: 1.
|
|
3045
|
+
// version: 1.120.0-d7f610c36
|
package/src/raml/api.raml
CHANGED
|
@@ -168,6 +168,9 @@ types:
|
|
|
168
168
|
description: Fetch rows from dataset
|
|
169
169
|
type: object
|
|
170
170
|
properties:
|
|
171
|
+
count:
|
|
172
|
+
description: Count of records in query result
|
|
173
|
+
type: integer | nil
|
|
171
174
|
currencyCode:
|
|
172
175
|
description: Currency code of the currency fields in dataset
|
|
173
176
|
type: string | nil
|
|
@@ -237,6 +240,11 @@ types:
|
|
|
237
240
|
description: order by clause in query while fetching dataset rows
|
|
238
241
|
type: string | nil
|
|
239
242
|
required: false # TODO handrolled W-9314597
|
|
243
|
+
queryType:
|
|
244
|
+
description: Query type decides if this is a count query or records query
|
|
245
|
+
etc
|
|
246
|
+
type: string | nil
|
|
247
|
+
required: false # TODO handrolled W-9314597
|
|
240
248
|
rowLimit:
|
|
241
249
|
description: Limit of dataset rows
|
|
242
250
|
type: integer | nil
|