@salesforce/lds-adapters-cdp-engmt-config 1.332.0-dev2 → 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 = "af006884d9c544cfb734740cc839ab94";
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) {
@@ -118,8 +118,29 @@ function validate$4(obj, path = 'EngagementSignalCollectionRepresentation') {
118
118
  }
119
119
  const obj_nextPageUrl = obj.nextPageUrl;
120
120
  const path_nextPageUrl = path + '.nextPageUrl';
121
- if (typeof obj_nextPageUrl !== 'string') {
122
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + 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 + '")');
125
+ }
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 + '")');
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);
123
144
  }
124
145
  const obj_totalSize = obj.totalSize;
125
146
  const path_totalSize = path + '.totalSize';
@@ -170,11 +191,6 @@ function equals$4(existing, incoming) {
170
191
  if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
171
192
  return false;
172
193
  }
173
- const existing_nextPageUrl = existing.nextPageUrl;
174
- const incoming_nextPageUrl = incoming.nextPageUrl;
175
- if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
176
- return false;
177
- }
178
194
  const existing_engagementSignals = existing.engagementSignals;
179
195
  const incoming_engagementSignals = incoming.engagementSignals;
180
196
  const equals_engagementSignals_items = equalsArray(existing_engagementSignals, incoming_engagementSignals, (existing_engagementSignals_item, incoming_engagementSignals_item) => {
@@ -185,6 +201,11 @@ function equals$4(existing, incoming) {
185
201
  if (equals_engagementSignals_items === false) {
186
202
  return false;
187
203
  }
204
+ const existing_nextPageUrl = existing.nextPageUrl;
205
+ const incoming_nextPageUrl = incoming.nextPageUrl;
206
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
207
+ return false;
208
+ }
188
209
  return true;
189
210
  }
190
211
  const ingest$1 = function EngagementSignalCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -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 = "af006884d9c544cfb734740cc839ab94";
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: string;
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: string;
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-dev2",
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-dev2"
45
+ "@salesforce/lds-bindings": "^1.332.0-dev20"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.332.0-dev2"
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 = "af006884d9c544cfb734740cc839ab94";
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) {
@@ -1094,8 +1094,29 @@ function validate(obj, path = 'EngagementSignalCollectionRepresentation') {
1094
1094
  }
1095
1095
  const obj_nextPageUrl = obj.nextPageUrl;
1096
1096
  const path_nextPageUrl = path + '.nextPageUrl';
1097
- if (typeof obj_nextPageUrl !== 'string') {
1098
- return new TypeError('Expected "string" but received "' + typeof obj_nextPageUrl + '" (at "' + 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 + '")');
1101
+ }
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 + '")');
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);
1099
1120
  }
1100
1121
  const obj_totalSize = obj.totalSize;
1101
1122
  const path_totalSize = path + '.totalSize';
@@ -1146,11 +1167,6 @@ function equals(existing, incoming) {
1146
1167
  if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
1147
1168
  return false;
1148
1169
  }
1149
- const existing_nextPageUrl = existing.nextPageUrl;
1150
- const incoming_nextPageUrl = incoming.nextPageUrl;
1151
- if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
1152
- return false;
1153
- }
1154
1170
  const existing_engagementSignals = existing.engagementSignals;
1155
1171
  const incoming_engagementSignals = incoming.engagementSignals;
1156
1172
  const equals_engagementSignals_items = equalsArray(existing_engagementSignals, incoming_engagementSignals, (existing_engagementSignals_item, incoming_engagementSignals_item) => {
@@ -1161,6 +1177,11 @@ function equals(existing, incoming) {
1161
1177
  if (equals_engagementSignals_items === false) {
1162
1178
  return false;
1163
1179
  }
1180
+ const existing_nextPageUrl = existing.nextPageUrl;
1181
+ const incoming_nextPageUrl = incoming.nextPageUrl;
1182
+ if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
1183
+ return false;
1184
+ }
1164
1185
  return true;
1165
1186
  }
1166
1187
  const ingest = function EngagementSignalCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -1378,4 +1399,4 @@ withDefaultLuvio((luvio) => {
1378
1399
  });
1379
1400
 
1380
1401
  export { createEngagementSignal, deleteEngagementSignal, getEngagementSignal, getEngagementSignalNotifyChange, getEngagementSignal_imperative, getEngagementSignals, getEngagementSignals_imperative };
1381
- // version: 1.332.0-dev2-db38b645f2
1402
+ // version: 1.332.0-dev20-8600de247a
package/src/raml/api.raml CHANGED
@@ -39,7 +39,7 @@ types:
39
39
  type: any
40
40
  nextPageUrl:
41
41
  description: Next page url if it exists
42
- type: string
42
+ type: string | nil
43
43
  totalSize:
44
44
  description: Total size of collection
45
45
  type: integer