@salesforce/lds-adapters-industries-clm 1.462.0 → 1.464.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.
@@ -4673,7 +4673,7 @@ const createExtractionContextMappingAdapterFactory = (luvio) => {
4673
4673
  };
4674
4674
  };
4675
4675
 
4676
- const VERSION$4 = "29179675ca082a296c41c7ce5cbd3e75";
4676
+ const VERSION$4 = "4955b453722090149738bf0aeabed770";
4677
4677
  function validate$4(obj, path = 'ExtractionContextAttributeMappingRepresentation') {
4678
4678
  const v_error = (() => {
4679
4679
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4705,6 +4705,13 @@ function validate$4(obj, path = 'ExtractionContextAttributeMappingRepresentation
4705
4705
  return new TypeError('Expected "boolean" but received "' + typeof obj_isCustom + '" (at "' + path_isCustom + '")');
4706
4706
  }
4707
4707
  }
4708
+ if (obj.sObjectName !== undefined) {
4709
+ const obj_sObjectName = obj.sObjectName;
4710
+ const path_sObjectName = path + '.sObjectName';
4711
+ if (typeof obj_sObjectName !== 'string') {
4712
+ return new TypeError('Expected "string" but received "' + typeof obj_sObjectName + '" (at "' + path_sObjectName + '")');
4713
+ }
4714
+ }
4708
4715
  if (obj.targetObjectField !== undefined) {
4709
4716
  const obj_targetObjectField = obj.targetObjectField;
4710
4717
  const path_targetObjectField = path + '.targetObjectField';
@@ -4740,6 +4747,11 @@ const select$6 = function ExtractionContextAttributeMappingRepresentationSelect(
4740
4747
  kind: 'Scalar',
4741
4748
  required: false
4742
4749
  },
4750
+ {
4751
+ name: 'sObjectName',
4752
+ kind: 'Scalar',
4753
+ required: false
4754
+ },
4743
4755
  {
4744
4756
  name: 'targetObjectField',
4745
4757
  kind: 'Scalar',
@@ -4793,6 +4805,19 @@ function equals$4(existing, incoming) {
4793
4805
  return false;
4794
4806
  }
4795
4807
  }
4808
+ const existing_sObjectName = existing.sObjectName;
4809
+ const incoming_sObjectName = incoming.sObjectName;
4810
+ // if at least one of these optionals is defined
4811
+ if (existing_sObjectName !== undefined || incoming_sObjectName !== undefined) {
4812
+ // if one of these is not defined we know the other is defined and therefore
4813
+ // not equal
4814
+ if (existing_sObjectName === undefined || incoming_sObjectName === undefined) {
4815
+ return false;
4816
+ }
4817
+ if (!(existing_sObjectName === incoming_sObjectName)) {
4818
+ return false;
4819
+ }
4820
+ }
4796
4821
  const existing_targetObjectField = existing.targetObjectField;
4797
4822
  const incoming_targetObjectField = incoming.targetObjectField;
4798
4823
  // if at least one of these optionals is defined
@@ -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 = "29179675ca082a296c41c7ce5cbd3e75";
2
+ export declare const VERSION = "4955b453722090149738bf0aeabed770";
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: ExtractionContextAttributeMappingRepresentation, existing: ExtractionContextAttributeMappingRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ExtractionContextAttributeMappingRepresentationNormalized;
@@ -22,6 +22,8 @@ export interface ExtractionContextAttributeMappingRepresentationNormalized {
22
22
  description?: string;
23
23
  /** Custom */
24
24
  isCustom?: boolean;
25
+ /** sObject name of the context node this attribute mapping belongs to, e.g. Contract or Obligation */
26
+ sObjectName?: string;
25
27
  /** target object field */
26
28
  targetObjectField?: string;
27
29
  }
@@ -36,5 +38,6 @@ export interface ExtractionContextAttributeMappingRepresentation {
36
38
  attributeName?: string;
37
39
  description?: string;
38
40
  isCustom?: boolean;
41
+ sObjectName?: string;
39
42
  targetObjectField?: string;
40
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-clm",
3
- "version": "1.462.0",
3
+ "version": "1.464.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Contract Life Cycle Management",
6
6
  "main": "dist/es/es2018/industries-clm.js",
@@ -36,10 +36,10 @@
36
36
  "test:unit": "jest"
37
37
  },
38
38
  "dependencies": {
39
- "@salesforce/lds-bindings": "^1.462.0"
39
+ "@salesforce/lds-bindings": "^1.464.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@salesforce/lds-compiler-plugins": "^1.462.0"
42
+ "@salesforce/lds-compiler-plugins": "^1.464.0"
43
43
  },
44
44
  "nx": {
45
45
  "targets": {
package/sfdc/index.js CHANGED
@@ -1656,7 +1656,7 @@ const deleteContractDocumentVersionReviewAdapterFactory = (luvio) => {
1656
1656
  };
1657
1657
  };
1658
1658
 
1659
- const VERSION$c = "29179675ca082a296c41c7ce5cbd3e75";
1659
+ const VERSION$c = "4955b453722090149738bf0aeabed770";
1660
1660
  function validate$i(obj, path = 'ExtractionContextAttributeMappingRepresentation') {
1661
1661
  const v_error = (() => {
1662
1662
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1688,6 +1688,13 @@ function validate$i(obj, path = 'ExtractionContextAttributeMappingRepresentation
1688
1688
  return new TypeError('Expected "boolean" but received "' + typeof obj_isCustom + '" (at "' + path_isCustom + '")');
1689
1689
  }
1690
1690
  }
1691
+ if (obj.sObjectName !== undefined) {
1692
+ const obj_sObjectName = obj.sObjectName;
1693
+ const path_sObjectName = path + '.sObjectName';
1694
+ if (typeof obj_sObjectName !== 'string') {
1695
+ return new TypeError('Expected "string" but received "' + typeof obj_sObjectName + '" (at "' + path_sObjectName + '")');
1696
+ }
1697
+ }
1691
1698
  if (obj.targetObjectField !== undefined) {
1692
1699
  const obj_targetObjectField = obj.targetObjectField;
1693
1700
  const path_targetObjectField = path + '.targetObjectField';
@@ -1723,6 +1730,11 @@ const select$u = function ExtractionContextAttributeMappingRepresentationSelect(
1723
1730
  kind: 'Scalar',
1724
1731
  required: false
1725
1732
  },
1733
+ {
1734
+ name: 'sObjectName',
1735
+ kind: 'Scalar',
1736
+ required: false
1737
+ },
1726
1738
  {
1727
1739
  name: 'targetObjectField',
1728
1740
  kind: 'Scalar',
@@ -1776,6 +1788,19 @@ function equals$c(existing, incoming) {
1776
1788
  return false;
1777
1789
  }
1778
1790
  }
1791
+ const existing_sObjectName = existing.sObjectName;
1792
+ const incoming_sObjectName = incoming.sObjectName;
1793
+ // if at least one of these optionals is defined
1794
+ if (existing_sObjectName !== undefined || incoming_sObjectName !== undefined) {
1795
+ // if one of these is not defined we know the other is defined and therefore
1796
+ // not equal
1797
+ if (existing_sObjectName === undefined || incoming_sObjectName === undefined) {
1798
+ return false;
1799
+ }
1800
+ if (!(existing_sObjectName === incoming_sObjectName)) {
1801
+ return false;
1802
+ }
1803
+ }
1779
1804
  const existing_targetObjectField = existing.targetObjectField;
1780
1805
  const incoming_targetObjectField = incoming.targetObjectField;
1781
1806
  // if at least one of these optionals is defined
@@ -6066,4 +6091,4 @@ withDefaultLuvio((luvio) => {
6066
6091
  });
6067
6092
 
6068
6093
  export { checkIn, checkoutContractDocumentVersion, createContractDocumentVersionAndInitializeGenerateDocumentProcess, createContractDocumentVersionReview, createExternalReviewDocument, createExtractionContextMapping, deleteAttachment, deleteContractDocumentVersionReview, deleteExtractionContextMapping, executeContractAction, getContentDocument, getContentDocumentNotifyChange, getContentDocument_imperative, getContractActions, getContractActionsNotifyChange, getContractActions_imperative, getContractDocumentVersion, getContractDocumentVersionReview, getContractDocumentVersionReviewNotifyChange, getContractDocumentVersionReview_imperative, getContractDocumentVersion_imperative, getDocumentGenerationProcessDetails, getDocumentGenerationProcessDetails_imperative, getDocumentRecipientAndStatus, getDocumentRecipientAndStatus_imperative, getExternalDocumentReviewCC, getExternalDocumentReviewCC_imperative, getExtractionContextMapping, getExtractionContextMappingNotifyChange, getExtractionContextMapping_imperative, getLatestContractDocumentVersionCC, getLatestContractDocumentVersionCCNotifyChange, getLatestContractDocumentVersionCC_imperative, getTemplates, getTemplates_imperative, lockContractDocumentVersion, saveExternalDocument, unlock, updateContractDocumentVersionReview, updateContractDocumentVersionWithTemplate, updateExtractionContextMapping, updateSharingOnAttachment };
6069
- // version: 1.462.0-2919385b97
6094
+ // version: 1.464.0-b35c0e7723
package/src/raml/api.raml CHANGED
@@ -421,6 +421,10 @@ types:
421
421
  description: target object field
422
422
  type: string
423
423
  required: false
424
+ sObjectName:
425
+ description: sObject name of the context node this attribute mapping belongs to, e.g. Contract or Obligation
426
+ type: string
427
+ required: false
424
428
  ExtractionContextDefinitionRepresentation:
425
429
  description: Output representation of Extraction Context Definition
426
430
  type: object