@salesforce/lds-adapters-industries-clm 1.246.0 → 1.248.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.
@@ -599,6 +599,13 @@ function validate$e(obj, path = 'TemplateInputRepresentation') {
599
599
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
600
600
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
601
601
  }
602
+ if (obj.externalReviewType !== undefined) {
603
+ const obj_externalReviewType = obj.externalReviewType;
604
+ const path_externalReviewType = path + '.externalReviewType';
605
+ if (typeof obj_externalReviewType !== 'string') {
606
+ return new TypeError('Expected "string" but received "' + typeof obj_externalReviewType + '" (at "' + path_externalReviewType + '")');
607
+ }
608
+ }
602
609
  if (obj.isExternalReviewImport !== undefined) {
603
610
  const obj_isExternalReviewImport = obj.isExternalReviewImport;
604
611
  const path_isExternalReviewImport = path + '.isExternalReviewImport';
@@ -2343,10 +2350,12 @@ function validate$6(obj, path = 'ContractDocumentVersionReviewInputRepresentatio
2343
2350
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2344
2351
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2345
2352
  }
2346
- const obj_message = obj.message;
2347
- const path_message = path + '.message';
2348
- if (typeof obj_message !== 'string') {
2349
- return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
2353
+ if (obj.message !== undefined) {
2354
+ const obj_message = obj.message;
2355
+ const path_message = path + '.message';
2356
+ if (typeof obj_message !== 'string') {
2357
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
2358
+ }
2350
2359
  }
2351
2360
  const obj_reviewers = obj.reviewers;
2352
2361
  const path_reviewers = path + '.reviewers';
@@ -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, BaseFragment as $64$luvio_engine_BaseFragment, 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 = 60000;
3
- export declare const VERSION = "9e1a39d00d226f1148324e7a031ddc3b";
3
+ export declare const VERSION = "4b26c175dd339e964754a89bb0207866";
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: ContractDocumentVersionReviewInputRepresentation, existing: ContractDocumentVersionReviewInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ContractDocumentVersionReviewInputRepresentationNormalized;
@@ -16,7 +16,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  */
17
17
  export interface ContractDocumentVersionReviewInputRepresentationNormalized {
18
18
  /** Personalized message to be sent with the invitation email */
19
- message: string;
19
+ message?: string;
20
20
  /** List of reviewers assigned by the contract author */
21
21
  reviewers: Array<{}>;
22
22
  /** whether to send email notifications for the reviewers or not */
@@ -29,7 +29,7 @@ export interface ContractDocumentVersionReviewInputRepresentationNormalized {
29
29
  * (none)
30
30
  */
31
31
  export interface ContractDocumentVersionReviewInputRepresentation {
32
- message: string;
32
+ message?: string;
33
33
  reviewers: Array<{}>;
34
34
  sendEmailNotification: boolean;
35
35
  }
@@ -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 = "15497ff43dfcf2e4574aeca16809146d";
2
+ export declare const VERSION = "25e6e08e1a13e9c70f630484e8d2a91d";
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: TemplateInputRepresentation, existing: TemplateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TemplateInputRepresentationNormalized;
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
14
  * (none)
15
15
  */
16
16
  export interface TemplateInputRepresentationNormalized {
17
+ /** External Review Type */
18
+ externalReviewType?: string;
17
19
  /** Flag for whether the checkout is for external review import */
18
20
  isExternalReviewImport?: boolean;
19
21
  /** contract pdf document id */
@@ -30,6 +32,7 @@ export interface TemplateInputRepresentationNormalized {
30
32
  * (none)
31
33
  */
32
34
  export interface TemplateInputRepresentation {
35
+ externalReviewType?: string;
33
36
  isExternalReviewImport?: boolean;
34
37
  pdfDocumentId?: string;
35
38
  templateId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-clm",
3
- "version": "1.246.0",
3
+ "version": "1.248.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",
@@ -27,16 +27,16 @@
27
27
  "sunitha.hegde@salesforce.com"
28
28
  ],
29
29
  "scripts": {
30
- "build": "yarn build:services && yarn build:karma",
30
+ "build": "yarn build:services",
31
31
  "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
32
32
  "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
33
33
  "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
34
34
  "clean": "rm -rf dist sfdc src/generated karma/dist",
35
35
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-clm",
36
36
  "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-industries-clm",
37
- "start": "karma start",
38
- "test": "karma start --single-run",
39
- "test:compat": "karma start --single-run --compat",
37
+ "start": "nx build:karma && karma start",
38
+ "test": "nx build:karma && karma start --single-run",
39
+ "test:compat": "nx build:karma && karma start --single-run --compat",
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
@@ -51,7 +51,6 @@
51
51
  "build": {
52
52
  "outputs": [
53
53
  "{projectRoot}/dist",
54
- "{projectRoot}/karma/dist",
55
54
  "{projectRoot}/sfdc"
56
55
  ]
57
56
  },
@@ -59,6 +58,11 @@
59
58
  "outputs": [
60
59
  "{projectRoot}/src/generated"
61
60
  ]
61
+ },
62
+ "build:karma": {
63
+ "outputs": [
64
+ "{projectRoot}/karma/dist"
65
+ ]
62
66
  }
63
67
  }
64
68
  },
package/sfdc/index.js CHANGED
@@ -269,6 +269,13 @@ function validate$h(obj, path = 'TemplateInputRepresentation') {
269
269
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
270
270
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
271
271
  }
272
+ if (obj.externalReviewType !== undefined) {
273
+ const obj_externalReviewType = obj.externalReviewType;
274
+ const path_externalReviewType = path + '.externalReviewType';
275
+ if (typeof obj_externalReviewType !== 'string') {
276
+ return new TypeError('Expected "string" but received "' + typeof obj_externalReviewType + '" (at "' + path_externalReviewType + '")');
277
+ }
278
+ }
272
279
  if (obj.isExternalReviewImport !== undefined) {
273
280
  const obj_isExternalReviewImport = obj.isExternalReviewImport;
274
281
  const path_isExternalReviewImport = path + '.isExternalReviewImport';
@@ -731,10 +738,12 @@ function validate$e(obj, path = 'ContractDocumentVersionReviewInputRepresentatio
731
738
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
732
739
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
733
740
  }
734
- const obj_message = obj.message;
735
- const path_message = path + '.message';
736
- if (typeof obj_message !== 'string') {
737
- return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
741
+ if (obj.message !== undefined) {
742
+ const obj_message = obj.message;
743
+ const path_message = path + '.message';
744
+ if (typeof obj_message !== 'string') {
745
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
746
+ }
738
747
  }
739
748
  const obj_reviewers = obj.reviewers;
740
749
  const path_reviewers = path + '.reviewers';
@@ -3771,4 +3780,4 @@ withDefaultLuvio((luvio) => {
3771
3780
  });
3772
3781
 
3773
3782
  export { checkIn, checkoutContractDocumentVersion, createContractDocumentVersionAndInitializeGenerateDocumentProcess, createContractDocumentVersionReview, createExternalReviewDocument, deleteAttachment, deleteContractDocumentVersionReview, executeContractAction, getContentDocument, getContentDocumentNotifyChange, getContentDocument_imperative, getContractActions, getContractActionsNotifyChange, getContractActions_imperative, getContractDocumentVersion, getContractDocumentVersionReview, getContractDocumentVersionReviewNotifyChange, getContractDocumentVersionReview_imperative, getContractDocumentVersion_imperative, getDocumentGenerationProcessDetails, getDocumentGenerationProcessDetails_imperative, getTemplates, getTemplates_imperative, lockContractDocumentVersion, saveExternalDocument, unlock, updateContractDocumentVersionReview, updateContractDocumentVersionWithTemplate };
3774
- // version: 1.246.0-3f6b4cf3f
3783
+ // version: 1.248.0-0a41f7ec3
package/src/raml/api.raml CHANGED
@@ -195,6 +195,7 @@ types:
195
195
  message:
196
196
  description: Personalized message to be sent with the invitation email
197
197
  type: string
198
+ required: false
198
199
  ContractDocumentVersionReviewOutputRepresentation:
199
200
  description: Output representation for createContractDocumentVersionReview
200
201
  type: object
@@ -358,6 +359,10 @@ types:
358
359
  description: Input representation to get TemplateId
359
360
  type: object
360
361
  properties:
362
+ externalReviewType:
363
+ description: External Review Type
364
+ type: string
365
+ required: false
361
366
  isExternalReviewImport:
362
367
  description: Flag for whether the checkout is for external review import
363
368
  type: boolean