@salesforce/lds-adapters-platform-enablement 1.228.1 → 1.229.0-dev10

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.
@@ -190,7 +190,7 @@ function equals$3(existing, incoming) {
190
190
  return true;
191
191
  }
192
192
 
193
- const VERSION$2 = "a781c697d19a499446ef63e6b9314ac8";
193
+ const VERSION$2 = "089f71c87963595d39413fc588e5385b";
194
194
  function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation') {
195
195
  const validateEnablementProgramSummaryItemRepresentation_validateError = validate$3(obj, path);
196
196
  if (validateEnablementProgramSummaryItemRepresentation_validateError !== null) {
@@ -202,8 +202,29 @@ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation
202
202
  }
203
203
  const obj_aggregationType = obj.aggregationType;
204
204
  const path_aggregationType = path + '.aggregationType';
205
- if (typeof obj_aggregationType !== 'string') {
206
- return new TypeError('Expected "string" but received "' + typeof obj_aggregationType + '" (at "' + path_aggregationType + '")');
205
+ let obj_aggregationType_union0 = null;
206
+ const obj_aggregationType_union0_error = (() => {
207
+ if (typeof obj_aggregationType !== 'string') {
208
+ return new TypeError('Expected "string" but received "' + typeof obj_aggregationType + '" (at "' + path_aggregationType + '")');
209
+ }
210
+ })();
211
+ if (obj_aggregationType_union0_error != null) {
212
+ obj_aggregationType_union0 = obj_aggregationType_union0_error.message;
213
+ }
214
+ let obj_aggregationType_union1 = null;
215
+ const obj_aggregationType_union1_error = (() => {
216
+ if (obj_aggregationType !== null) {
217
+ return new TypeError('Expected "null" but received "' + typeof obj_aggregationType + '" (at "' + path_aggregationType + '")');
218
+ }
219
+ })();
220
+ if (obj_aggregationType_union1_error != null) {
221
+ obj_aggregationType_union1 = obj_aggregationType_union1_error.message;
222
+ }
223
+ if (obj_aggregationType_union0 && obj_aggregationType_union1) {
224
+ let message = 'Object doesn\'t match union (at "' + path_aggregationType + '")';
225
+ message += '\n' + obj_aggregationType_union0.split('\n').map((line) => '\t' + line).join('\n');
226
+ message += '\n' + obj_aggregationType_union1.split('\n').map((line) => '\t' + line).join('\n');
227
+ return new TypeError(message);
207
228
  }
208
229
  const obj_completedDate = obj.completedDate;
209
230
  const path_completedDate = path + '.completedDate';
@@ -1,6 +1,6 @@
1
1
  import { EnablementProgramSummaryItemRepresentation as EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation } from './EnablementProgramSummaryItemRepresentation';
2
2
  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';
3
- export declare const VERSION = "a781c697d19a499446ef63e6b9314ac8";
3
+ export declare const VERSION = "089f71c87963595d39413fc588e5385b";
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: EnablementProgramSummaryMilestoneRepresentation, existing: EnablementProgramSummaryMilestoneRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EnablementProgramSummaryMilestoneRepresentationNormalized;
@@ -16,7 +16,7 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
16
16
  */
17
17
  export interface EnablementProgramSummaryMilestoneRepresentationNormalized extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
18
18
  /** Indicates milestone aggregation type */
19
- aggregationType: string;
19
+ aggregationType: string | null;
20
20
  /** The date the item was completed */
21
21
  completedDate: string | null;
22
22
  /** Percent complete for the current user */
@@ -47,7 +47,7 @@ export interface EnablementProgramSummaryMilestoneRepresentationNormalized exten
47
47
  * (none)
48
48
  */
49
49
  export interface EnablementProgramSummaryMilestoneRepresentation extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
50
- aggregationType: string;
50
+ aggregationType: string | null;
51
51
  completedDate: string | null;
52
52
  completedPercent: number | null;
53
53
  contributingRecordCount: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-enablement",
3
- "version": "1.228.1",
3
+ "version": "1.229.0-dev10",
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",
@@ -44,11 +44,11 @@
44
44
  "test:unit": "jest"
45
45
  },
46
46
  "dependencies": {
47
- "@salesforce/lds-bindings": "*"
47
+ "@salesforce/lds-bindings": "1.229.0-dev10"
48
48
  },
49
49
  "devDependencies": {
50
- "@salesforce/lds-compiler-plugins": "*",
51
- "@salesforce/lds-karma": "*"
50
+ "@salesforce/lds-compiler-plugins": "1.229.0-dev10",
51
+ "@salesforce/lds-karma": "1.229.0-dev10"
52
52
  },
53
53
  "nx": {
54
54
  "targets": {
package/sfdc/index.js CHANGED
@@ -200,7 +200,7 @@ function equals$3(existing, incoming) {
200
200
  return true;
201
201
  }
202
202
 
203
- const VERSION$2 = "a781c697d19a499446ef63e6b9314ac8";
203
+ const VERSION$2 = "089f71c87963595d39413fc588e5385b";
204
204
  function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation') {
205
205
  const validateEnablementProgramSummaryItemRepresentation_validateError = validate$3(obj, path);
206
206
  if (validateEnablementProgramSummaryItemRepresentation_validateError !== null) {
@@ -212,8 +212,29 @@ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation
212
212
  }
213
213
  const obj_aggregationType = obj.aggregationType;
214
214
  const path_aggregationType = path + '.aggregationType';
215
- if (typeof obj_aggregationType !== 'string') {
216
- return new TypeError('Expected "string" but received "' + typeof obj_aggregationType + '" (at "' + path_aggregationType + '")');
215
+ let obj_aggregationType_union0 = null;
216
+ const obj_aggregationType_union0_error = (() => {
217
+ if (typeof obj_aggregationType !== 'string') {
218
+ return new TypeError('Expected "string" but received "' + typeof obj_aggregationType + '" (at "' + path_aggregationType + '")');
219
+ }
220
+ })();
221
+ if (obj_aggregationType_union0_error != null) {
222
+ obj_aggregationType_union0 = obj_aggregationType_union0_error.message;
223
+ }
224
+ let obj_aggregationType_union1 = null;
225
+ const obj_aggregationType_union1_error = (() => {
226
+ if (obj_aggregationType !== null) {
227
+ return new TypeError('Expected "null" but received "' + typeof obj_aggregationType + '" (at "' + path_aggregationType + '")');
228
+ }
229
+ })();
230
+ if (obj_aggregationType_union1_error != null) {
231
+ obj_aggregationType_union1 = obj_aggregationType_union1_error.message;
232
+ }
233
+ if (obj_aggregationType_union0 && obj_aggregationType_union1) {
234
+ let message = 'Object doesn\'t match union (at "' + path_aggregationType + '")';
235
+ message += '\n' + obj_aggregationType_union0.split('\n').map((line) => '\t' + line).join('\n');
236
+ message += '\n' + obj_aggregationType_union1.split('\n').map((line) => '\t' + line).join('\n');
237
+ return new TypeError(message);
217
238
  }
218
239
  const obj_completedDate = obj.completedDate;
219
240
  const path_completedDate = path + '.completedDate';
@@ -1529,4 +1550,4 @@ withDefaultLuvio((luvio) => {
1529
1550
  });
1530
1551
 
1531
1552
  export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummaryForCommunity, getAssignedEnablementProgramSummaryForCommunity_imperative, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary, getEnablementProgramSummary_imperative };
1532
- // version: 1.228.1-0cb6f94f1
1553
+ // version: 1.229.0-dev10-abb060196
package/src/raml/api.raml CHANGED
@@ -68,7 +68,7 @@ types:
68
68
  properties:
69
69
  aggregationType:
70
70
  description: Indicates milestone aggregation type
71
- type: string
71
+ type: string | nil
72
72
  enum:
73
73
  - Average
74
74
  - Count