@salesforce/lds-adapters-platform-enablement 1.243.0 → 1.244.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.
@@ -621,7 +621,7 @@ function equals$2(existing, incoming) {
621
621
  }
622
622
 
623
623
  const TTL = 15000;
624
- const VERSION$1 = "e76fad758504d695ddffa1cdade1a181";
624
+ const VERSION$1 = "8c024832561adc9be3b12d390c61abe5";
625
625
  function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
626
626
  const v_error = (() => {
627
627
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -653,6 +653,11 @@ function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
653
653
  message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
654
654
  return new TypeError(message);
655
655
  }
656
+ const obj_doesAllowSelfEnrollment = obj.doesAllowSelfEnrollment;
657
+ const path_doesAllowSelfEnrollment = path + '.doesAllowSelfEnrollment';
658
+ if (typeof obj_doesAllowSelfEnrollment !== 'boolean') {
659
+ return new TypeError('Expected "boolean" but received "' + typeof obj_doesAllowSelfEnrollment + '" (at "' + path_doesAllowSelfEnrollment + '")');
660
+ }
656
661
  const obj_dueDate = obj.dueDate;
657
662
  const path_dueDate = path + '.dueDate';
658
663
  let obj_dueDate_union0 = null;
@@ -858,6 +863,10 @@ const select$4 = function EnablementProgramSummaryRepresentationSelect() {
858
863
  name: 'description',
859
864
  kind: 'Scalar'
860
865
  },
866
+ {
867
+ name: 'doesAllowSelfEnrollment',
868
+ kind: 'Scalar'
869
+ },
861
870
  {
862
871
  name: 'dueDate',
863
872
  kind: 'Scalar'
@@ -898,6 +907,11 @@ const select$4 = function EnablementProgramSummaryRepresentationSelect() {
898
907
  };
899
908
  };
900
909
  function equals$1(existing, incoming) {
910
+ const existing_doesAllowSelfEnrollment = existing.doesAllowSelfEnrollment;
911
+ const incoming_doesAllowSelfEnrollment = incoming.doesAllowSelfEnrollment;
912
+ if (!(existing_doesAllowSelfEnrollment === incoming_doesAllowSelfEnrollment)) {
913
+ return false;
914
+ }
901
915
  const existing_status = existing.status;
902
916
  const incoming_status = incoming.status;
903
917
  if (!(existing_status === incoming_status)) {
@@ -1,7 +1,7 @@
1
1
  import { EnablementProgramSummaryMilestoneRepresentation as EnablementProgramSummaryMilestoneRepresentation_EnablementProgramSummaryMilestoneRepresentation } from './EnablementProgramSummaryMilestoneRepresentation';
2
2
  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';
3
3
  export declare const TTL = 15000;
4
- export declare const VERSION = "e76fad758504d695ddffa1cdade1a181";
4
+ export declare const VERSION = "8c024832561adc9be3b12d390c61abe5";
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 {
@@ -27,6 +27,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
27
27
  export interface EnablementProgramSummaryRepresentationNormalized {
28
28
  /** Description of the enablement program */
29
29
  description: string | null;
30
+ /** Does the program allow self enrollment */
31
+ doesAllowSelfEnrollment: boolean;
30
32
  /** Due date for enablement program. */
31
33
  dueDate: string | null;
32
34
  /** Id of the enablement program */
@@ -52,6 +54,7 @@ export interface EnablementProgramSummaryRepresentationNormalized {
52
54
  */
53
55
  export interface EnablementProgramSummaryRepresentation {
54
56
  description: string | null;
57
+ doesAllowSelfEnrollment: boolean;
55
58
  dueDate: string | null;
56
59
  id: string | null;
57
60
  items: Array<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-enablement",
3
- "version": "1.243.0",
3
+ "version": "1.244.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Wire adapters for enablement APIs",
6
6
  "main": "dist/es/es2018/platform-enablement.js",
@@ -31,7 +31,7 @@
31
31
  "n.chandarraj@salesforce.com"
32
32
  ],
33
33
  "scripts": {
34
- "build": "yarn build:raml && yarn build:services && yarn build:karma",
34
+ "build": "yarn build:services && yarn build:karma",
35
35
  "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
36
36
  "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
37
37
  "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
@@ -56,7 +56,11 @@
56
56
  "outputs": [
57
57
  "{projectRoot}/dist",
58
58
  "{projectRoot}/karma/dist",
59
- "{projectRoot}/sfdc",
59
+ "{projectRoot}/sfdc"
60
+ ]
61
+ },
62
+ "build:raml": {
63
+ "outputs": [
60
64
  "{projectRoot}/src/generated"
61
65
  ]
62
66
  }
package/sfdc/index.js CHANGED
@@ -631,7 +631,7 @@ function equals$2(existing, incoming) {
631
631
  }
632
632
 
633
633
  const TTL = 15000;
634
- const VERSION$1 = "e76fad758504d695ddffa1cdade1a181";
634
+ const VERSION$1 = "8c024832561adc9be3b12d390c61abe5";
635
635
  function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
636
636
  const v_error = (() => {
637
637
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -663,6 +663,11 @@ function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
663
663
  message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
664
664
  return new TypeError(message);
665
665
  }
666
+ const obj_doesAllowSelfEnrollment = obj.doesAllowSelfEnrollment;
667
+ const path_doesAllowSelfEnrollment = path + '.doesAllowSelfEnrollment';
668
+ if (typeof obj_doesAllowSelfEnrollment !== 'boolean') {
669
+ return new TypeError('Expected "boolean" but received "' + typeof obj_doesAllowSelfEnrollment + '" (at "' + path_doesAllowSelfEnrollment + '")');
670
+ }
666
671
  const obj_dueDate = obj.dueDate;
667
672
  const path_dueDate = path + '.dueDate';
668
673
  let obj_dueDate_union0 = null;
@@ -868,6 +873,10 @@ const select$4 = function EnablementProgramSummaryRepresentationSelect() {
868
873
  name: 'description',
869
874
  kind: 'Scalar'
870
875
  },
876
+ {
877
+ name: 'doesAllowSelfEnrollment',
878
+ kind: 'Scalar'
879
+ },
871
880
  {
872
881
  name: 'dueDate',
873
882
  kind: 'Scalar'
@@ -908,6 +917,11 @@ const select$4 = function EnablementProgramSummaryRepresentationSelect() {
908
917
  };
909
918
  };
910
919
  function equals$1(existing, incoming) {
920
+ const existing_doesAllowSelfEnrollment = existing.doesAllowSelfEnrollment;
921
+ const incoming_doesAllowSelfEnrollment = incoming.doesAllowSelfEnrollment;
922
+ if (!(existing_doesAllowSelfEnrollment === incoming_doesAllowSelfEnrollment)) {
923
+ return false;
924
+ }
911
925
  const existing_status = existing.status;
912
926
  const incoming_status = incoming.status;
913
927
  if (!(existing_status === incoming_status)) {
@@ -1550,4 +1564,4 @@ withDefaultLuvio((luvio) => {
1550
1564
  });
1551
1565
 
1552
1566
  export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummaryForCommunity, getAssignedEnablementProgramSummaryForCommunity_imperative, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary, getEnablementProgramSummary_imperative };
1553
- // version: 1.243.0-c7d8ec9e0
1567
+ // version: 1.244.0-4d142822f
package/src/raml/api.raml CHANGED
@@ -123,6 +123,9 @@ types:
123
123
  description:
124
124
  description: Description of the enablement program
125
125
  type: string | nil
126
+ doesAllowSelfEnrollment:
127
+ description: Does the program allow self enrollment
128
+ type: boolean
126
129
  dueDate:
127
130
  description: Due date for enablement program.
128
131
  type: string | nil