@salesforce/lds-adapters-platform-enablement 1.152.0 → 1.152.2

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.
@@ -169,7 +169,7 @@ function equals$3(existing, incoming) {
169
169
  return true;
170
170
  }
171
171
 
172
- const VERSION$2 = "9bdf41358e75966dd0735d691f06201a";
172
+ const VERSION$2 = "3551d20ad01ebd18b70465799ab10949";
173
173
  function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation') {
174
174
  const validateEnablementProgramSummaryItemRepresentation_validateError = validate$3(obj, path);
175
175
  if (validateEnablementProgramSummaryItemRepresentation_validateError !== null) {
@@ -179,6 +179,11 @@ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation
179
179
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
180
180
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
181
181
  }
182
+ const obj_aggregationType = obj.aggregationType;
183
+ const path_aggregationType = path + '.aggregationType';
184
+ if (typeof obj_aggregationType !== 'string') {
185
+ return new TypeError('Expected "string" but received "' + typeof obj_aggregationType + '" (at "' + path_aggregationType + '")');
186
+ }
182
187
  const obj_completedDate = obj.completedDate;
183
188
  const path_completedDate = path + '.completedDate';
184
189
  let obj_completedDate_union0 = null;
@@ -429,6 +434,10 @@ const select$4 = function EnablementProgramSummaryMilestoneRepresentationSelect(
429
434
  private: [],
430
435
  selections: [
431
436
  ...EnablementProgramSummaryItemRepresentationSelections,
437
+ {
438
+ name: 'aggregationType',
439
+ kind: 'Scalar'
440
+ },
432
441
  {
433
442
  name: 'completedDate',
434
443
  kind: 'Scalar'
@@ -481,6 +490,11 @@ function equals$2(existing, incoming) {
481
490
  if (!(existing_programDay === incoming_programDay)) {
482
491
  return false;
483
492
  }
493
+ const existing_aggregationType = existing.aggregationType;
494
+ const incoming_aggregationType = incoming.aggregationType;
495
+ if (!(existing_aggregationType === incoming_aggregationType)) {
496
+ return false;
497
+ }
484
498
  const existing_completedDate = existing.completedDate;
485
499
  const incoming_completedDate = incoming.completedDate;
486
500
  if (!(existing_completedDate === incoming_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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
3
- export declare const VERSION = "9bdf41358e75966dd0735d691f06201a";
3
+ export declare const VERSION = "3551d20ad01ebd18b70465799ab10949";
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;
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: E
15
15
  * (none)
16
16
  */
17
17
  export interface EnablementProgramSummaryMilestoneRepresentationNormalized extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
18
+ /** Indicates milestone aggregation type */
19
+ aggregationType: string;
18
20
  /** The date the item was completed */
19
21
  completedDate: string | null;
20
22
  /** Percent complete for the current user */
@@ -43,6 +45,7 @@ export interface EnablementProgramSummaryMilestoneRepresentationNormalized exten
43
45
  * (none)
44
46
  */
45
47
  export interface EnablementProgramSummaryMilestoneRepresentation extends EnablementProgramSummaryItemRepresentation_EnablementProgramSummaryItemRepresentation {
48
+ aggregationType: string;
46
49
  completedDate: string | null;
47
50
  completedPercent: number | null;
48
51
  contributingRecordCount: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-enablement",
3
- "version": "1.152.0",
3
+ "version": "1.152.2",
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",
package/sfdc/index.js CHANGED
@@ -179,7 +179,7 @@ function equals$3(existing, incoming) {
179
179
  return true;
180
180
  }
181
181
 
182
- const VERSION$2 = "9bdf41358e75966dd0735d691f06201a";
182
+ const VERSION$2 = "3551d20ad01ebd18b70465799ab10949";
183
183
  function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation') {
184
184
  const validateEnablementProgramSummaryItemRepresentation_validateError = validate$3(obj, path);
185
185
  if (validateEnablementProgramSummaryItemRepresentation_validateError !== null) {
@@ -189,6 +189,11 @@ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation
189
189
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
190
190
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
191
191
  }
192
+ const obj_aggregationType = obj.aggregationType;
193
+ const path_aggregationType = path + '.aggregationType';
194
+ if (typeof obj_aggregationType !== 'string') {
195
+ return new TypeError('Expected "string" but received "' + typeof obj_aggregationType + '" (at "' + path_aggregationType + '")');
196
+ }
192
197
  const obj_completedDate = obj.completedDate;
193
198
  const path_completedDate = path + '.completedDate';
194
199
  let obj_completedDate_union0 = null;
@@ -439,6 +444,10 @@ const select$4 = function EnablementProgramSummaryMilestoneRepresentationSelect(
439
444
  private: [],
440
445
  selections: [
441
446
  ...EnablementProgramSummaryItemRepresentationSelections,
447
+ {
448
+ name: 'aggregationType',
449
+ kind: 'Scalar'
450
+ },
442
451
  {
443
452
  name: 'completedDate',
444
453
  kind: 'Scalar'
@@ -491,6 +500,11 @@ function equals$2(existing, incoming) {
491
500
  if (!(existing_programDay === incoming_programDay)) {
492
501
  return false;
493
502
  }
503
+ const existing_aggregationType = existing.aggregationType;
504
+ const incoming_aggregationType = incoming.aggregationType;
505
+ if (!(existing_aggregationType === incoming_aggregationType)) {
506
+ return false;
507
+ }
494
508
  const existing_completedDate = existing.completedDate;
495
509
  const incoming_completedDate = incoming.completedDate;
496
510
  if (!(existing_completedDate === incoming_completedDate)) {
@@ -1404,4 +1418,4 @@ withDefaultLuvio((luvio) => {
1404
1418
  });
1405
1419
 
1406
1420
  export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary, getEnablementProgramSummary_imperative };
1407
- // version: 1.152.0-6c7fc4861
1421
+ // version: 1.152.2-0ed20fd21
package/src/raml/api.raml CHANGED
@@ -66,6 +66,13 @@ types:
66
66
  discriminatorValue: Milestone
67
67
  type: EnablementProgramSummaryItemRepresentation
68
68
  properties:
69
+ aggregationType:
70
+ description: Indicates milestone aggregation type
71
+ type: string
72
+ enum:
73
+ - Average
74
+ - Count
75
+ - Sum
69
76
  completedDate:
70
77
  description: The date the item was completed
71
78
  type: string | nil