@salesforce/lds-adapters-cdp-engmt-config 1.332.0-dev2 → 1.332.0-dev21
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,10 +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
|
-
|
|
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;
|
|
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;
|
|
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);
|
|
145
|
+
}
|
|
123
146
|
}
|
|
124
147
|
const obj_totalSize = obj.totalSize;
|
|
125
148
|
const path_totalSize = path + '.totalSize';
|
|
@@ -150,7 +173,8 @@ const select$7 = function EngagementSignalCollectionRepresentationSelect() {
|
|
|
150
173
|
},
|
|
151
174
|
{
|
|
152
175
|
name: 'nextPageUrl',
|
|
153
|
-
kind: 'Scalar'
|
|
176
|
+
kind: 'Scalar',
|
|
177
|
+
required: false
|
|
154
178
|
},
|
|
155
179
|
{
|
|
156
180
|
name: 'totalSize',
|
|
@@ -170,11 +194,6 @@ function equals$4(existing, incoming) {
|
|
|
170
194
|
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
171
195
|
return false;
|
|
172
196
|
}
|
|
173
|
-
const existing_nextPageUrl = existing.nextPageUrl;
|
|
174
|
-
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
175
|
-
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
176
|
-
return false;
|
|
177
|
-
}
|
|
178
197
|
const existing_engagementSignals = existing.engagementSignals;
|
|
179
198
|
const incoming_engagementSignals = incoming.engagementSignals;
|
|
180
199
|
const equals_engagementSignals_items = equalsArray(existing_engagementSignals, incoming_engagementSignals, (existing_engagementSignals_item, incoming_engagementSignals_item) => {
|
|
@@ -185,6 +204,19 @@ function equals$4(existing, incoming) {
|
|
|
185
204
|
if (equals_engagementSignals_items === false) {
|
|
186
205
|
return false;
|
|
187
206
|
}
|
|
207
|
+
const existing_nextPageUrl = existing.nextPageUrl;
|
|
208
|
+
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
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
|
+
}
|
|
219
|
+
}
|
|
188
220
|
return true;
|
|
189
221
|
}
|
|
190
222
|
const ingest$1 = function EngagementSignalCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
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-dev21",
|
|
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-dev21"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@salesforce/lds-compiler-plugins": "^1.332.0-
|
|
48
|
+
"@salesforce/lds-compiler-plugins": "^1.332.0-dev21"
|
|
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,10 +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
|
-
|
|
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;
|
|
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;
|
|
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);
|
|
1121
|
+
}
|
|
1099
1122
|
}
|
|
1100
1123
|
const obj_totalSize = obj.totalSize;
|
|
1101
1124
|
const path_totalSize = path + '.totalSize';
|
|
@@ -1126,7 +1149,8 @@ const select$1 = function EngagementSignalCollectionRepresentationSelect() {
|
|
|
1126
1149
|
},
|
|
1127
1150
|
{
|
|
1128
1151
|
name: 'nextPageUrl',
|
|
1129
|
-
kind: 'Scalar'
|
|
1152
|
+
kind: 'Scalar',
|
|
1153
|
+
required: false
|
|
1130
1154
|
},
|
|
1131
1155
|
{
|
|
1132
1156
|
name: 'totalSize',
|
|
@@ -1146,11 +1170,6 @@ function equals(existing, incoming) {
|
|
|
1146
1170
|
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
1147
1171
|
return false;
|
|
1148
1172
|
}
|
|
1149
|
-
const existing_nextPageUrl = existing.nextPageUrl;
|
|
1150
|
-
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
1151
|
-
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
1152
|
-
return false;
|
|
1153
|
-
}
|
|
1154
1173
|
const existing_engagementSignals = existing.engagementSignals;
|
|
1155
1174
|
const incoming_engagementSignals = incoming.engagementSignals;
|
|
1156
1175
|
const equals_engagementSignals_items = equalsArray(existing_engagementSignals, incoming_engagementSignals, (existing_engagementSignals_item, incoming_engagementSignals_item) => {
|
|
@@ -1161,6 +1180,19 @@ function equals(existing, incoming) {
|
|
|
1161
1180
|
if (equals_engagementSignals_items === false) {
|
|
1162
1181
|
return false;
|
|
1163
1182
|
}
|
|
1183
|
+
const existing_nextPageUrl = existing.nextPageUrl;
|
|
1184
|
+
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
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
|
+
}
|
|
1195
|
+
}
|
|
1164
1196
|
return true;
|
|
1165
1197
|
}
|
|
1166
1198
|
const ingest = function EngagementSignalCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -1378,4 +1410,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1378
1410
|
});
|
|
1379
1411
|
|
|
1380
1412
|
export { createEngagementSignal, deleteEngagementSignal, getEngagementSignal, getEngagementSignalNotifyChange, getEngagementSignal_imperative, getEngagementSignals, getEngagementSignals_imperative };
|
|
1381
|
-
// version: 1.332.0-
|
|
1413
|
+
// version: 1.332.0-dev21-cc02503f9d
|