@salesforce/lds-adapters-cdp-engmt-config 1.332.0-dev20 → 1.332.0-dev22
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.
|
@@ -93,7 +93,7 @@ function createLink(ref) {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
const TTL$1 = 6000;
|
|
96
|
-
const VERSION$4 = "
|
|
96
|
+
const VERSION$4 = "171063a9be8004fe115bb5e31a231dd9";
|
|
97
97
|
function validate$4(obj, path = 'EngagementSignalCollectionRepresentation') {
|
|
98
98
|
const v_error = (() => {
|
|
99
99
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -116,31 +116,33 @@ function validate$4(obj, path = 'EngagementSignalCollectionRepresentation') {
|
|
|
116
116
|
return new TypeError('Expected "defined" but received "' + typeof obj_engagementSignals_item + '" (at "' + path_engagementSignals_item + '")');
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
if (obj.nextPageUrl !== undefined) {
|
|
120
|
+
const obj_nextPageUrl = obj.nextPageUrl;
|
|
121
|
+
const path_nextPageUrl = path + '.nextPageUrl';
|
|
122
|
+
let obj_nextPageUrl_union0 = null;
|
|
123
|
+
const obj_nextPageUrl_union0_error = (() => {
|
|
124
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
125
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
126
|
+
}
|
|
127
|
+
})();
|
|
128
|
+
if (obj_nextPageUrl_union0_error != null) {
|
|
129
|
+
obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
|
|
125
130
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
if (
|
|
133
|
-
|
|
131
|
+
let obj_nextPageUrl_union1 = null;
|
|
132
|
+
const obj_nextPageUrl_union1_error = (() => {
|
|
133
|
+
if (obj_nextPageUrl !== null) {
|
|
134
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
135
|
+
}
|
|
136
|
+
})();
|
|
137
|
+
if (obj_nextPageUrl_union1_error != null) {
|
|
138
|
+
obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
|
|
139
|
+
}
|
|
140
|
+
if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
|
|
141
|
+
let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
|
|
142
|
+
message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
143
|
+
message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
144
|
+
return new TypeError(message);
|
|
134
145
|
}
|
|
135
|
-
})();
|
|
136
|
-
if (obj_nextPageUrl_union1_error != null) {
|
|
137
|
-
obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
|
|
138
|
-
}
|
|
139
|
-
if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
|
|
140
|
-
let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
|
|
141
|
-
message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
142
|
-
message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
143
|
-
return new TypeError(message);
|
|
144
146
|
}
|
|
145
147
|
const obj_totalSize = obj.totalSize;
|
|
146
148
|
const path_totalSize = path + '.totalSize';
|
|
@@ -171,7 +173,8 @@ const select$7 = function EngagementSignalCollectionRepresentationSelect() {
|
|
|
171
173
|
},
|
|
172
174
|
{
|
|
173
175
|
name: 'nextPageUrl',
|
|
174
|
-
kind: 'Scalar'
|
|
176
|
+
kind: 'Scalar',
|
|
177
|
+
required: false
|
|
175
178
|
},
|
|
176
179
|
{
|
|
177
180
|
name: 'totalSize',
|
|
@@ -203,8 +206,16 @@ function equals$4(existing, incoming) {
|
|
|
203
206
|
}
|
|
204
207
|
const existing_nextPageUrl = existing.nextPageUrl;
|
|
205
208
|
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
206
|
-
if
|
|
207
|
-
|
|
209
|
+
// if at least one of these optionals is defined
|
|
210
|
+
if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
|
|
211
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
212
|
+
// not equal
|
|
213
|
+
if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
|
|
214
|
+
return false;
|
|
215
|
+
}
|
|
216
|
+
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
208
219
|
}
|
|
209
220
|
return true;
|
|
210
221
|
}
|
package/dist/es/es2018/types/src/generated/types/EngagementSignalCollectionRepresentation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
2
|
export declare const TTL = 6000;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "171063a9be8004fe115bb5e31a231dd9";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: EngagementSignalCollectionRepresentation, existing: EngagementSignalCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EngagementSignalCollectionRepresentationNormalized;
|
|
@@ -20,7 +20,7 @@ export interface EngagementSignalCollectionRepresentationNormalized {
|
|
|
20
20
|
/** Engagement signals */
|
|
21
21
|
engagementSignals: Array<unknown>;
|
|
22
22
|
/** Next page url if it exists */
|
|
23
|
-
nextPageUrl
|
|
23
|
+
nextPageUrl?: string | null;
|
|
24
24
|
/** Total size of collection */
|
|
25
25
|
totalSize: number;
|
|
26
26
|
}
|
|
@@ -33,6 +33,6 @@ export interface EngagementSignalCollectionRepresentationNormalized {
|
|
|
33
33
|
export interface EngagementSignalCollectionRepresentation {
|
|
34
34
|
currentPageUrl: string;
|
|
35
35
|
engagementSignals: Array<unknown>;
|
|
36
|
-
nextPageUrl
|
|
36
|
+
nextPageUrl?: string | null;
|
|
37
37
|
totalSize: number;
|
|
38
38
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-cdp-engmt-config",
|
|
3
|
-
"version": "1.332.0-
|
|
3
|
+
"version": "1.332.0-dev22",
|
|
4
4
|
"description": "Engagement Signal Connect API Wire Adapter",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/cdp-engmt-config.js",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"test:unit:debug": "node --inspect-brk ../../node_modules/jest/bin/jest.js --config ./jest.config.js --runInBand"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@salesforce/lds-bindings": "^1.332.0-
|
|
45
|
+
"@salesforce/lds-bindings": "^1.332.0-dev22"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.332.0-
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev22"
|
|
49
49
|
},
|
|
50
50
|
"nx": {
|
|
51
51
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1069,7 +1069,7 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
1069
1069
|
};
|
|
1070
1070
|
|
|
1071
1071
|
const TTL = 6000;
|
|
1072
|
-
const VERSION = "
|
|
1072
|
+
const VERSION = "171063a9be8004fe115bb5e31a231dd9";
|
|
1073
1073
|
function validate(obj, path = 'EngagementSignalCollectionRepresentation') {
|
|
1074
1074
|
const v_error = (() => {
|
|
1075
1075
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1092,31 +1092,33 @@ function validate(obj, path = 'EngagementSignalCollectionRepresentation') {
|
|
|
1092
1092
|
return new TypeError('Expected "defined" but received "' + typeof obj_engagementSignals_item + '" (at "' + path_engagementSignals_item + '")');
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1095
|
+
if (obj.nextPageUrl !== undefined) {
|
|
1096
|
+
const obj_nextPageUrl = obj.nextPageUrl;
|
|
1097
|
+
const path_nextPageUrl = path + '.nextPageUrl';
|
|
1098
|
+
let obj_nextPageUrl_union0 = null;
|
|
1099
|
+
const obj_nextPageUrl_union0_error = (() => {
|
|
1100
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
1101
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
1102
|
+
}
|
|
1103
|
+
})();
|
|
1104
|
+
if (obj_nextPageUrl_union0_error != null) {
|
|
1105
|
+
obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
|
|
1101
1106
|
}
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
if (
|
|
1109
|
-
|
|
1107
|
+
let obj_nextPageUrl_union1 = null;
|
|
1108
|
+
const obj_nextPageUrl_union1_error = (() => {
|
|
1109
|
+
if (obj_nextPageUrl !== null) {
|
|
1110
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
1111
|
+
}
|
|
1112
|
+
})();
|
|
1113
|
+
if (obj_nextPageUrl_union1_error != null) {
|
|
1114
|
+
obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
|
|
1115
|
+
}
|
|
1116
|
+
if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
|
|
1117
|
+
let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
|
|
1118
|
+
message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1119
|
+
message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1120
|
+
return new TypeError(message);
|
|
1110
1121
|
}
|
|
1111
|
-
})();
|
|
1112
|
-
if (obj_nextPageUrl_union1_error != null) {
|
|
1113
|
-
obj_nextPageUrl_union1 = obj_nextPageUrl_union1_error.message;
|
|
1114
|
-
}
|
|
1115
|
-
if (obj_nextPageUrl_union0 && obj_nextPageUrl_union1) {
|
|
1116
|
-
let message = 'Object doesn\'t match union (at "' + path_nextPageUrl + '")';
|
|
1117
|
-
message += '\n' + obj_nextPageUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1118
|
-
message += '\n' + obj_nextPageUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1119
|
-
return new TypeError(message);
|
|
1120
1122
|
}
|
|
1121
1123
|
const obj_totalSize = obj.totalSize;
|
|
1122
1124
|
const path_totalSize = path + '.totalSize';
|
|
@@ -1147,7 +1149,8 @@ const select$1 = function EngagementSignalCollectionRepresentationSelect() {
|
|
|
1147
1149
|
},
|
|
1148
1150
|
{
|
|
1149
1151
|
name: 'nextPageUrl',
|
|
1150
|
-
kind: 'Scalar'
|
|
1152
|
+
kind: 'Scalar',
|
|
1153
|
+
required: false
|
|
1151
1154
|
},
|
|
1152
1155
|
{
|
|
1153
1156
|
name: 'totalSize',
|
|
@@ -1179,8 +1182,16 @@ function equals(existing, incoming) {
|
|
|
1179
1182
|
}
|
|
1180
1183
|
const existing_nextPageUrl = existing.nextPageUrl;
|
|
1181
1184
|
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
1182
|
-
if
|
|
1183
|
-
|
|
1185
|
+
// if at least one of these optionals is defined
|
|
1186
|
+
if (existing_nextPageUrl !== undefined || incoming_nextPageUrl !== undefined) {
|
|
1187
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
1188
|
+
// not equal
|
|
1189
|
+
if (existing_nextPageUrl === undefined || incoming_nextPageUrl === undefined) {
|
|
1190
|
+
return false;
|
|
1191
|
+
}
|
|
1192
|
+
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
1193
|
+
return false;
|
|
1194
|
+
}
|
|
1184
1195
|
}
|
|
1185
1196
|
return true;
|
|
1186
1197
|
}
|
|
@@ -1399,4 +1410,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1399
1410
|
});
|
|
1400
1411
|
|
|
1401
1412
|
export { createEngagementSignal, deleteEngagementSignal, getEngagementSignal, getEngagementSignalNotifyChange, getEngagementSignal_imperative, getEngagementSignals, getEngagementSignals_imperative };
|
|
1402
|
-
// version: 1.332.0-
|
|
1413
|
+
// version: 1.332.0-dev22-dd082a87cf
|