@salesforce/lds-adapters-industries-context 1.280.0 → 1.282.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.
@@ -2584,7 +2584,7 @@ function getTypeCacheKeys$h(rootKeySet, luvio, input, fullPathFactory) {
2584
2584
  }
2585
2585
 
2586
2586
  const TTL$g = 1000;
2587
- const VERSION$i = "f10eb049e7b494efa06c2635d4f20d91";
2587
+ const VERSION$i = "9c844c38d358bc66d470df64952c4caa";
2588
2588
  function validate$t(obj, path = 'ContextAttributeMappingRepresentation') {
2589
2589
  const v_error = (() => {
2590
2590
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2628,6 +2628,13 @@ function validate$t(obj, path = 'ContextAttributeMappingRepresentation') {
2628
2628
  return new TypeError('Expected "string" but received "' + typeof obj_contextInputAttributeName + '" (at "' + path_contextInputAttributeName + '")');
2629
2629
  }
2630
2630
  }
2631
+ if (obj.description !== undefined) {
2632
+ const obj_description = obj.description;
2633
+ const path_description = path + '.description';
2634
+ if (typeof obj_description !== 'string') {
2635
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2636
+ }
2637
+ }
2631
2638
  if (obj.isSuccess !== undefined) {
2632
2639
  const obj_isSuccess = obj.isSuccess;
2633
2640
  const path_isSuccess = path + '.isSuccess';
@@ -2705,6 +2712,11 @@ const select$R = function ContextAttributeMappingRepresentationSelect() {
2705
2712
  kind: 'Scalar',
2706
2713
  required: false
2707
2714
  },
2715
+ {
2716
+ name: 'description',
2717
+ kind: 'Scalar',
2718
+ required: false
2719
+ },
2708
2720
  {
2709
2721
  name: 'isSuccess',
2710
2722
  kind: 'Scalar',
@@ -2776,6 +2788,19 @@ function equals$i(existing, incoming) {
2776
2788
  return false;
2777
2789
  }
2778
2790
  }
2791
+ const existing_description = existing.description;
2792
+ const incoming_description = incoming.description;
2793
+ // if at least one of these optionals is defined
2794
+ if (existing_description !== undefined || incoming_description !== undefined) {
2795
+ // if one of these is not defined we know the other is defined and therefore
2796
+ // not equal
2797
+ if (existing_description === undefined || incoming_description === undefined) {
2798
+ return false;
2799
+ }
2800
+ if (!(existing_description === incoming_description)) {
2801
+ return false;
2802
+ }
2803
+ }
2779
2804
  const existing_parentNodeMappingId = existing.parentNodeMappingId;
2780
2805
  const incoming_parentNodeMappingId = incoming.parentNodeMappingId;
2781
2806
  // if at least one of these optionals is defined
@@ -1,7 +1,7 @@
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, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  import { ContextAttrHydrationDetailRepresentation as ContextAttrHydrationDetailRepresentation_ContextAttrHydrationDetailRepresentation } from './ContextAttrHydrationDetailRepresentation';
3
3
  export declare const TTL = 1000;
4
- export declare const VERSION = "f10eb049e7b494efa06c2635d4f20d91";
4
+ export declare const VERSION = "9c844c38d358bc66d470df64952c4caa";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -44,6 +44,8 @@ export interface ContextAttributeMappingRepresentationNormalized {
44
44
  contextAttributeMappingId: string;
45
45
  /** Input Attribute Name */
46
46
  contextInputAttributeName?: string;
47
+ /** Description of attribute mapping */
48
+ description?: string;
47
49
  /** Success */
48
50
  isSuccess?: boolean;
49
51
  /** Id of (Parent) ContextNodeMapping */
@@ -61,6 +63,7 @@ export interface ContextAttributeMappingRepresentation {
61
63
  contextAttributeId?: string;
62
64
  contextAttributeMappingId: string;
63
65
  contextInputAttributeName?: string;
66
+ description?: string;
64
67
  isSuccess?: boolean;
65
68
  parentNodeMappingId?: string;
66
69
  }
@@ -1,5 +1,5 @@
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
- export declare const VERSION = "daad1c0c3c72d8e84c76a933b6c8ab0f";
2
+ export declare const VERSION = "d632bd75cf72050b1ab9738e2624aff4";
3
3
  export declare function validate(obj: any, path?: string): TypeError | null;
4
4
  export declare const RepresentationType: string;
5
5
  export declare function normalize(input: ContextAttributeMappingsInputRepresentation, existing: ContextAttributeMappingsInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContextAttributeMappingsInputRepresentationNormalized;
@@ -20,6 +20,8 @@ export interface ContextAttributeMappingsInputRepresentationNormalized {
20
20
  contextAttributeMappingId?: string;
21
21
  /** Context Input Attribute Name */
22
22
  contextInputAttributeName?: string;
23
+ /** Description of context attribute mapping */
24
+ description?: string;
23
25
  /** List of ContextAttributeHydrationDetail */
24
26
  hydrationDetails?: Array<{}>;
25
27
  }
@@ -33,5 +35,6 @@ export interface ContextAttributeMappingsInputRepresentation {
33
35
  contextAttributeId: string;
34
36
  contextAttributeMappingId?: string;
35
37
  contextInputAttributeName?: string;
38
+ description?: string;
36
39
  hydrationDetails?: Array<{}>;
37
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-context",
3
- "version": "1.280.0",
3
+ "version": "1.282.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Normandy Context Service",
6
6
  "main": "dist/es/es2018/industries-context.js",
@@ -44,11 +44,11 @@
44
44
  "test:unit": "jest --config=./jest.config.js"
45
45
  },
46
46
  "dependencies": {
47
- "@salesforce/lds-bindings": "^1.280.0"
47
+ "@salesforce/lds-bindings": "^1.282.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "^1.280.0",
51
- "@salesforce/lds-karma": "^1.280.0"
50
+ "@salesforce/lds-compiler-plugins": "^1.282.0",
51
+ "@salesforce/lds-karma": "^1.282.0"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -325,7 +325,7 @@ function getTypeCacheKeys$m(rootKeySet, luvio, input, fullPathFactory) {
325
325
  }
326
326
 
327
327
  const TTL$l = 1000;
328
- const VERSION$p = "f10eb049e7b494efa06c2635d4f20d91";
328
+ const VERSION$p = "9c844c38d358bc66d470df64952c4caa";
329
329
  function validate$C(obj, path = 'ContextAttributeMappingRepresentation') {
330
330
  const v_error = (() => {
331
331
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -369,6 +369,13 @@ function validate$C(obj, path = 'ContextAttributeMappingRepresentation') {
369
369
  return new TypeError('Expected "string" but received "' + typeof obj_contextInputAttributeName + '" (at "' + path_contextInputAttributeName + '")');
370
370
  }
371
371
  }
372
+ if (obj.description !== undefined) {
373
+ const obj_description = obj.description;
374
+ const path_description = path + '.description';
375
+ if (typeof obj_description !== 'string') {
376
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
377
+ }
378
+ }
372
379
  if (obj.isSuccess !== undefined) {
373
380
  const obj_isSuccess = obj.isSuccess;
374
381
  const path_isSuccess = path + '.isSuccess';
@@ -446,6 +453,11 @@ const select$12 = function ContextAttributeMappingRepresentationSelect() {
446
453
  kind: 'Scalar',
447
454
  required: false
448
455
  },
456
+ {
457
+ name: 'description',
458
+ kind: 'Scalar',
459
+ required: false
460
+ },
449
461
  {
450
462
  name: 'isSuccess',
451
463
  kind: 'Scalar',
@@ -517,6 +529,19 @@ function equals$p(existing, incoming) {
517
529
  return false;
518
530
  }
519
531
  }
532
+ const existing_description = existing.description;
533
+ const incoming_description = incoming.description;
534
+ // if at least one of these optionals is defined
535
+ if (existing_description !== undefined || incoming_description !== undefined) {
536
+ // if one of these is not defined we know the other is defined and therefore
537
+ // not equal
538
+ if (existing_description === undefined || incoming_description === undefined) {
539
+ return false;
540
+ }
541
+ if (!(existing_description === incoming_description)) {
542
+ return false;
543
+ }
544
+ }
520
545
  const existing_parentNodeMappingId = existing.parentNodeMappingId;
521
546
  const incoming_parentNodeMappingId = incoming.parentNodeMappingId;
522
547
  // if at least one of these optionals is defined
@@ -12223,4 +12248,4 @@ withDefaultLuvio((luvio) => {
12223
12248
  });
12224
12249
 
12225
12250
  export { createContextAttributeMapping, createContextAttributeMappings, createContextAttributes, createContextMapping, createContextMappings, createContextNodeMapping, createContextNodeMappings, createContextNodes, createContextQueryRecords, createContextServiceDefinition, createContextTags, deleteContextAttributeMapping, deleteContextMapping, deleteContextNodeMapping, deleteContextServiceAttribute, deleteContextServiceAttributeMapping, deleteContextServiceDefinition, deleteContextServiceMapping, deleteContextServiceNode, deleteContextServiceNodeMapping, deleteContextServiceTag, getContext, getContextAttributeMapping, getContextAttributeMappingNotifyChange, getContextAttributeMapping_imperative, getContextDefinitions, getContextDefinitions_imperative, getContextInfo, getContextInfoNotifyChange, getContextInfo_imperative, getContextMapping, getContextMappingNotifyChange, getContextMapping_imperative, getContextNodeMapping, getContextNodeMappingNotifyChange, getContextNodeMapping_imperative, getContextNotifyChange, getContextServiceAccess, getContextServiceAccessNotifyChange, getContextServiceAccess_imperative, getContextServiceAttribute, getContextServiceAttributeMapping, getContextServiceAttributeMappingNotifyChange, getContextServiceAttributeMapping_imperative, getContextServiceAttributeNotifyChange, getContextServiceAttribute_imperative, getContextServiceDefinition, getContextServiceDefinitionInfo, getContextServiceDefinitionInfoNotifyChange, getContextServiceDefinitionInfo_imperative, getContextServiceDefinitionNotifyChange, getContextServiceDefinition_imperative, getContextServiceMapping, getContextServiceMappingNotifyChange, getContextServiceMapping_imperative, getContextServiceNode, getContextServiceNodeMapping, getContextServiceNodeMappingNotifyChange, getContextServiceNodeMapping_imperative, getContextServiceNodeNotifyChange, getContextServiceNode_imperative, getContextServiceTag, getContextServiceTagNotifyChange, getContextServiceTag_imperative, getContextTags, getContextTagsNotifyChange, getContextTags_imperative, getContextTranslation, getContextTranslation_imperative, getContext_imperative, putContextServiceAccess, queryContextRecordAndChildren, updateContextAttributeMapping, updateContextAttributeMappings, updateContextAttributes, updateContextMapping, updateContextMappings, updateContextNodeMapping, updateContextNodeMappings, updateContextNodes, updateContextServiceDefinition, updateContextTags, upgradeContextServiceDefinition };
12226
- // version: 1.280.0-09f980816
12251
+ // version: 1.282.0-dd2e9831c
package/src/raml/api.raml CHANGED
@@ -278,6 +278,10 @@ types:
278
278
  description: Context Input Attribute Name
279
279
  type: string
280
280
  required: false # TODO Hand-rolled W-12486791
281
+ description:
282
+ description: Description of context attribute mapping
283
+ type: string
284
+ required: false
281
285
  hydrationDetails:
282
286
  description: List of ContextAttributeHydrationDetail
283
287
  type: array
@@ -349,6 +353,10 @@ types:
349
353
  description: Input Attribute Name
350
354
  type: string
351
355
  required: false
356
+ description:
357
+ description: Description of attribute mapping
358
+ type: string
359
+ required: false
352
360
  isSuccess:
353
361
  description: Success
354
362
  type: boolean