@salesforce/lds-adapters-sales-eci 1.222.0 → 1.223.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.
@@ -92,7 +92,7 @@ function createLink(ref) {
92
92
  }
93
93
 
94
94
  const TTL$1 = 60000;
95
- const VERSION$1 = "8289d11d1d770bd305faf52036284892";
95
+ const VERSION$1 = "10bf968dbd562928dfa701c7f6a854b2";
96
96
  function validate$1(obj, path = 'ConversationSummaryRepresentation') {
97
97
  const v_error = (() => {
98
98
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -136,8 +136,29 @@ function validate$1(obj, path = 'ConversationSummaryRepresentation') {
136
136
  }
137
137
  const obj_source = obj.source;
138
138
  const path_source = path + '.source';
139
- if (typeof obj_source !== 'string') {
140
- return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
139
+ let obj_source_union0 = null;
140
+ const obj_source_union0_error = (() => {
141
+ if (typeof obj_source !== 'string') {
142
+ return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
143
+ }
144
+ })();
145
+ if (obj_source_union0_error != null) {
146
+ obj_source_union0 = obj_source_union0_error.message;
147
+ }
148
+ let obj_source_union1 = null;
149
+ const obj_source_union1_error = (() => {
150
+ if (obj_source !== null) {
151
+ return new TypeError('Expected "null" but received "' + typeof obj_source + '" (at "' + path_source + '")');
152
+ }
153
+ })();
154
+ if (obj_source_union1_error != null) {
155
+ obj_source_union1 = obj_source_union1_error.message;
156
+ }
157
+ if (obj_source_union0 && obj_source_union1) {
158
+ let message = 'Object doesn\'t match union (at "' + path_source + '")';
159
+ message += '\n' + obj_source_union0.split('\n').map((line) => '\t' + line).join('\n');
160
+ message += '\n' + obj_source_union1.split('\n').map((line) => '\t' + line).join('\n');
161
+ return new TypeError(message);
141
162
  }
142
163
  const obj_status = obj.status;
143
164
  const path_status = path + '.status';
@@ -146,8 +167,29 @@ function validate$1(obj, path = 'ConversationSummaryRepresentation') {
146
167
  }
147
168
  const obj_summary = obj.summary;
148
169
  const path_summary = path + '.summary';
149
- if (typeof obj_summary !== 'string') {
150
- return new TypeError('Expected "string" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
170
+ let obj_summary_union0 = null;
171
+ const obj_summary_union0_error = (() => {
172
+ if (typeof obj_summary !== 'string') {
173
+ return new TypeError('Expected "string" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
174
+ }
175
+ })();
176
+ if (obj_summary_union0_error != null) {
177
+ obj_summary_union0 = obj_summary_union0_error.message;
178
+ }
179
+ let obj_summary_union1 = null;
180
+ const obj_summary_union1_error = (() => {
181
+ if (obj_summary !== null) {
182
+ return new TypeError('Expected "null" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
183
+ }
184
+ })();
185
+ if (obj_summary_union1_error != null) {
186
+ obj_summary_union1 = obj_summary_union1_error.message;
187
+ }
188
+ if (obj_summary_union0 && obj_summary_union1) {
189
+ let message = 'Object doesn\'t match union (at "' + path_summary + '")';
190
+ message += '\n' + obj_summary_union0.split('\n').map((line) => '\t' + line).join('\n');
191
+ message += '\n' + obj_summary_union1.split('\n').map((line) => '\t' + line).join('\n');
192
+ return new TypeError(message);
151
193
  }
152
194
  })();
153
195
  return v_error === undefined ? null : v_error;
@@ -209,26 +251,26 @@ function equals$1(existing, incoming) {
209
251
  if (!(existing_id === incoming_id)) {
210
252
  return false;
211
253
  }
212
- const existing_source = existing.source;
213
- const incoming_source = incoming.source;
214
- if (!(existing_source === incoming_source)) {
215
- return false;
216
- }
217
254
  const existing_status = existing.status;
218
255
  const incoming_status = incoming.status;
219
256
  if (!(existing_status === incoming_status)) {
220
257
  return false;
221
258
  }
222
- const existing_summary = existing.summary;
223
- const incoming_summary = incoming.summary;
224
- if (!(existing_summary === incoming_summary)) {
225
- return false;
226
- }
227
259
  const existing_errorMessage = existing.errorMessage;
228
260
  const incoming_errorMessage = incoming.errorMessage;
229
261
  if (!(existing_errorMessage === incoming_errorMessage)) {
230
262
  return false;
231
263
  }
264
+ const existing_source = existing.source;
265
+ const incoming_source = incoming.source;
266
+ if (!(existing_source === incoming_source)) {
267
+ return false;
268
+ }
269
+ const existing_summary = existing.summary;
270
+ const incoming_summary = incoming.summary;
271
+ if (!(existing_summary === incoming_summary)) {
272
+ return false;
273
+ }
232
274
  return true;
233
275
  }
234
276
  const ingest$1 = function ConversationSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -1,6 +1,6 @@
1
1
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  export declare const TTL = 60000;
3
- export declare const VERSION = "8289d11d1d770bd305faf52036284892";
3
+ export declare const VERSION = "10bf968dbd562928dfa701c7f6a854b2";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -31,11 +31,11 @@ export interface ConversationSummaryRepresentationNormalized {
31
31
  /** GenAIConversationSummary Record ID for this summary. */
32
32
  id: string;
33
33
  /** The source of the most recent update of the summary field. Values: USER_EDITED, EINSTEIN_GPT */
34
- source: string;
34
+ source: string | null;
35
35
  /** The status this summary is in: Success, Generating, Error */
36
36
  status: string;
37
37
  /** The generated or edited summary of the referenced record */
38
- summary: string;
38
+ summary: string | null;
39
39
  }
40
40
  /**
41
41
  * This represents a single GenAIConversationSummary record
@@ -47,7 +47,7 @@ export interface ConversationSummaryRepresentation {
47
47
  conversationRecordId: string;
48
48
  errorMessage: string | null;
49
49
  id: string;
50
- source: string;
50
+ source: string | null;
51
51
  status: string;
52
- summary: string;
52
+ summary: string | null;
53
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-sales-eci",
3
- "version": "1.222.0",
3
+ "version": "1.223.0",
4
4
  "description": "Einstein Conversation Insights",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/sales-eci.js",
package/sfdc/index.js CHANGED
@@ -102,7 +102,7 @@ function createLink(ref) {
102
102
  }
103
103
 
104
104
  const TTL$1 = 60000;
105
- const VERSION$1 = "8289d11d1d770bd305faf52036284892";
105
+ const VERSION$1 = "10bf968dbd562928dfa701c7f6a854b2";
106
106
  function validate$1(obj, path = 'ConversationSummaryRepresentation') {
107
107
  const v_error = (() => {
108
108
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -146,8 +146,29 @@ function validate$1(obj, path = 'ConversationSummaryRepresentation') {
146
146
  }
147
147
  const obj_source = obj.source;
148
148
  const path_source = path + '.source';
149
- if (typeof obj_source !== 'string') {
150
- return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
149
+ let obj_source_union0 = null;
150
+ const obj_source_union0_error = (() => {
151
+ if (typeof obj_source !== 'string') {
152
+ return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
153
+ }
154
+ })();
155
+ if (obj_source_union0_error != null) {
156
+ obj_source_union0 = obj_source_union0_error.message;
157
+ }
158
+ let obj_source_union1 = null;
159
+ const obj_source_union1_error = (() => {
160
+ if (obj_source !== null) {
161
+ return new TypeError('Expected "null" but received "' + typeof obj_source + '" (at "' + path_source + '")');
162
+ }
163
+ })();
164
+ if (obj_source_union1_error != null) {
165
+ obj_source_union1 = obj_source_union1_error.message;
166
+ }
167
+ if (obj_source_union0 && obj_source_union1) {
168
+ let message = 'Object doesn\'t match union (at "' + path_source + '")';
169
+ message += '\n' + obj_source_union0.split('\n').map((line) => '\t' + line).join('\n');
170
+ message += '\n' + obj_source_union1.split('\n').map((line) => '\t' + line).join('\n');
171
+ return new TypeError(message);
151
172
  }
152
173
  const obj_status = obj.status;
153
174
  const path_status = path + '.status';
@@ -156,8 +177,29 @@ function validate$1(obj, path = 'ConversationSummaryRepresentation') {
156
177
  }
157
178
  const obj_summary = obj.summary;
158
179
  const path_summary = path + '.summary';
159
- if (typeof obj_summary !== 'string') {
160
- return new TypeError('Expected "string" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
180
+ let obj_summary_union0 = null;
181
+ const obj_summary_union0_error = (() => {
182
+ if (typeof obj_summary !== 'string') {
183
+ return new TypeError('Expected "string" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
184
+ }
185
+ })();
186
+ if (obj_summary_union0_error != null) {
187
+ obj_summary_union0 = obj_summary_union0_error.message;
188
+ }
189
+ let obj_summary_union1 = null;
190
+ const obj_summary_union1_error = (() => {
191
+ if (obj_summary !== null) {
192
+ return new TypeError('Expected "null" but received "' + typeof obj_summary + '" (at "' + path_summary + '")');
193
+ }
194
+ })();
195
+ if (obj_summary_union1_error != null) {
196
+ obj_summary_union1 = obj_summary_union1_error.message;
197
+ }
198
+ if (obj_summary_union0 && obj_summary_union1) {
199
+ let message = 'Object doesn\'t match union (at "' + path_summary + '")';
200
+ message += '\n' + obj_summary_union0.split('\n').map((line) => '\t' + line).join('\n');
201
+ message += '\n' + obj_summary_union1.split('\n').map((line) => '\t' + line).join('\n');
202
+ return new TypeError(message);
161
203
  }
162
204
  })();
163
205
  return v_error === undefined ? null : v_error;
@@ -219,26 +261,26 @@ function equals$1(existing, incoming) {
219
261
  if (!(existing_id === incoming_id)) {
220
262
  return false;
221
263
  }
222
- const existing_source = existing.source;
223
- const incoming_source = incoming.source;
224
- if (!(existing_source === incoming_source)) {
225
- return false;
226
- }
227
264
  const existing_status = existing.status;
228
265
  const incoming_status = incoming.status;
229
266
  if (!(existing_status === incoming_status)) {
230
267
  return false;
231
268
  }
232
- const existing_summary = existing.summary;
233
- const incoming_summary = incoming.summary;
234
- if (!(existing_summary === incoming_summary)) {
235
- return false;
236
- }
237
269
  const existing_errorMessage = existing.errorMessage;
238
270
  const incoming_errorMessage = incoming.errorMessage;
239
271
  if (!(existing_errorMessage === incoming_errorMessage)) {
240
272
  return false;
241
273
  }
274
+ const existing_source = existing.source;
275
+ const incoming_source = incoming.source;
276
+ if (!(existing_source === incoming_source)) {
277
+ return false;
278
+ }
279
+ const existing_summary = existing.summary;
280
+ const incoming_summary = incoming.summary;
281
+ if (!(existing_summary === incoming_summary)) {
282
+ return false;
283
+ }
242
284
  return true;
243
285
  }
244
286
  const ingest$1 = function ConversationSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
@@ -684,4 +726,4 @@ withDefaultLuvio((luvio) => {
684
726
  });
685
727
 
686
728
  export { generateConversationSummary, getConversationSummaryRelatedList, getConversationSummaryRelatedListNotifyChange, getConversationSummaryRelatedList_imperative };
687
- // version: 1.222.0-1cc7ded7f
729
+ // version: 1.223.0-c8d49800b