@salesforce/lds-adapters-cdp-engmt-config 1.332.0-dev19 → 1.332.0-dev20
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 = "eaa31950e769deda23c309b13405c55a";
|
|
97
97
|
function validate$4(obj, path = 'EngagementSignalCollectionRepresentation') {
|
|
98
98
|
const v_error = (() => {
|
|
99
99
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -116,33 +116,31 @@ 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
|
-
|
|
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;
|
|
130
|
-
}
|
|
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;
|
|
119
|
+
const obj_nextPageUrl = obj.nextPageUrl;
|
|
120
|
+
const path_nextPageUrl = path + '.nextPageUrl';
|
|
121
|
+
let obj_nextPageUrl_union0 = null;
|
|
122
|
+
const obj_nextPageUrl_union0_error = (() => {
|
|
123
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
124
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
139
125
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
126
|
+
})();
|
|
127
|
+
if (obj_nextPageUrl_union0_error != null) {
|
|
128
|
+
obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
|
|
129
|
+
}
|
|
130
|
+
let obj_nextPageUrl_union1 = null;
|
|
131
|
+
const obj_nextPageUrl_union1_error = (() => {
|
|
132
|
+
if (obj_nextPageUrl !== null) {
|
|
133
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
145
134
|
}
|
|
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);
|
|
146
144
|
}
|
|
147
145
|
const obj_totalSize = obj.totalSize;
|
|
148
146
|
const path_totalSize = path + '.totalSize';
|
|
@@ -173,8 +171,7 @@ const select$7 = function EngagementSignalCollectionRepresentationSelect() {
|
|
|
173
171
|
},
|
|
174
172
|
{
|
|
175
173
|
name: 'nextPageUrl',
|
|
176
|
-
kind: 'Scalar'
|
|
177
|
-
required: false
|
|
174
|
+
kind: 'Scalar'
|
|
178
175
|
},
|
|
179
176
|
{
|
|
180
177
|
name: 'totalSize',
|
|
@@ -206,16 +203,8 @@ function equals$4(existing, incoming) {
|
|
|
206
203
|
}
|
|
207
204
|
const existing_nextPageUrl = existing.nextPageUrl;
|
|
208
205
|
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
}
|
|
206
|
+
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
207
|
+
return false;
|
|
219
208
|
}
|
|
220
209
|
return true;
|
|
221
210
|
}
|
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 = "eaa31950e769deda23c309b13405c55a";
|
|
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-dev20",
|
|
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-dev20"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.332.0-
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev20"
|
|
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 = "eaa31950e769deda23c309b13405c55a";
|
|
1073
1073
|
function validate(obj, path = 'EngagementSignalCollectionRepresentation') {
|
|
1074
1074
|
const v_error = (() => {
|
|
1075
1075
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1092,33 +1092,31 @@ 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
|
-
|
|
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;
|
|
1106
|
-
}
|
|
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;
|
|
1095
|
+
const obj_nextPageUrl = obj.nextPageUrl;
|
|
1096
|
+
const path_nextPageUrl = path + '.nextPageUrl';
|
|
1097
|
+
let obj_nextPageUrl_union0 = null;
|
|
1098
|
+
const obj_nextPageUrl_union0_error = (() => {
|
|
1099
|
+
if (typeof obj_nextPageUrl !== 'string') {
|
|
1100
|
+
return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
1115
1101
|
}
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1102
|
+
})();
|
|
1103
|
+
if (obj_nextPageUrl_union0_error != null) {
|
|
1104
|
+
obj_nextPageUrl_union0 = obj_nextPageUrl_union0_error.message;
|
|
1105
|
+
}
|
|
1106
|
+
let obj_nextPageUrl_union1 = null;
|
|
1107
|
+
const obj_nextPageUrl_union1_error = (() => {
|
|
1108
|
+
if (obj_nextPageUrl !== null) {
|
|
1109
|
+
return new TypeError('Expected "null" but received "' + typeof obj_nextPageUrl + '" (at "' + path_nextPageUrl + '")');
|
|
1121
1110
|
}
|
|
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);
|
|
1122
1120
|
}
|
|
1123
1121
|
const obj_totalSize = obj.totalSize;
|
|
1124
1122
|
const path_totalSize = path + '.totalSize';
|
|
@@ -1149,8 +1147,7 @@ const select$1 = function EngagementSignalCollectionRepresentationSelect() {
|
|
|
1149
1147
|
},
|
|
1150
1148
|
{
|
|
1151
1149
|
name: 'nextPageUrl',
|
|
1152
|
-
kind: 'Scalar'
|
|
1153
|
-
required: false
|
|
1150
|
+
kind: 'Scalar'
|
|
1154
1151
|
},
|
|
1155
1152
|
{
|
|
1156
1153
|
name: 'totalSize',
|
|
@@ -1182,16 +1179,8 @@ function equals(existing, incoming) {
|
|
|
1182
1179
|
}
|
|
1183
1180
|
const existing_nextPageUrl = existing.nextPageUrl;
|
|
1184
1181
|
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
1185
|
-
|
|
1186
|
-
|
|
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
|
-
}
|
|
1182
|
+
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
1183
|
+
return false;
|
|
1195
1184
|
}
|
|
1196
1185
|
return true;
|
|
1197
1186
|
}
|
|
@@ -1410,4 +1399,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1410
1399
|
});
|
|
1411
1400
|
|
|
1412
1401
|
export { createEngagementSignal, deleteEngagementSignal, getEngagementSignal, getEngagementSignalNotifyChange, getEngagementSignal_imperative, getEngagementSignals, getEngagementSignals_imperative };
|
|
1413
|
-
// version: 1.332.0-
|
|
1402
|
+
// version: 1.332.0-dev20-8600de247a
|