@salesforce/lds-adapters-sales-enablementmeasureconnectfamily 1.277.1 → 1.278.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.
- package/dist/es/es2018/sales-enablementmeasureconnectfamily.js +19 -40
- package/dist/es/es2018/types/src/generated/adapters/getContributingRecordsInfoForMilestone.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/resources/{getConnectEnablementContributingRecordsTaskProgressByTaskProgressId.d.ts → getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId.d.ts} +1 -1
- package/dist/es/es2018/types/src/generated/types/MilestoneProgressContributingRecordsRepresentation.d.ts +6 -6
- package/package.json +4 -4
- package/sfdc/index.js +20 -41
- package/src/raml/api.raml +9 -11
- package/src/raml/luvio.raml +1 -1
|
@@ -521,7 +521,7 @@ function equals$1(existing, incoming) {
|
|
|
521
521
|
}
|
|
522
522
|
|
|
523
523
|
const TTL = 5000;
|
|
524
|
-
const VERSION = "
|
|
524
|
+
const VERSION = "9e84d5b64bc9bd0becb2aedab6af1a57";
|
|
525
525
|
function validate(obj, path = 'MilestoneProgressContributingRecordsRepresentation') {
|
|
526
526
|
const v_error = (() => {
|
|
527
527
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -558,29 +558,8 @@ function validate(obj, path = 'MilestoneProgressContributingRecordsRepresentatio
|
|
|
558
558
|
}
|
|
559
559
|
const obj_inaccessibleRecordCount = obj.inaccessibleRecordCount;
|
|
560
560
|
const path_inaccessibleRecordCount = path + '.inaccessibleRecordCount';
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
if (typeof obj_inaccessibleRecordCount !== 'number' || (typeof obj_inaccessibleRecordCount === 'number' && Math.floor(obj_inaccessibleRecordCount) !== obj_inaccessibleRecordCount)) {
|
|
564
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_inaccessibleRecordCount + '" (at "' + path_inaccessibleRecordCount + '")');
|
|
565
|
-
}
|
|
566
|
-
})();
|
|
567
|
-
if (obj_inaccessibleRecordCount_union0_error != null) {
|
|
568
|
-
obj_inaccessibleRecordCount_union0 = obj_inaccessibleRecordCount_union0_error.message;
|
|
569
|
-
}
|
|
570
|
-
let obj_inaccessibleRecordCount_union1 = null;
|
|
571
|
-
const obj_inaccessibleRecordCount_union1_error = (() => {
|
|
572
|
-
if (obj_inaccessibleRecordCount !== null) {
|
|
573
|
-
return new TypeError('Expected "null" but received "' + typeof obj_inaccessibleRecordCount + '" (at "' + path_inaccessibleRecordCount + '")');
|
|
574
|
-
}
|
|
575
|
-
})();
|
|
576
|
-
if (obj_inaccessibleRecordCount_union1_error != null) {
|
|
577
|
-
obj_inaccessibleRecordCount_union1 = obj_inaccessibleRecordCount_union1_error.message;
|
|
578
|
-
}
|
|
579
|
-
if (obj_inaccessibleRecordCount_union0 && obj_inaccessibleRecordCount_union1) {
|
|
580
|
-
let message = 'Object doesn\'t match union (at "' + path_inaccessibleRecordCount + '")';
|
|
581
|
-
message += '\n' + obj_inaccessibleRecordCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
582
|
-
message += '\n' + obj_inaccessibleRecordCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
583
|
-
return new TypeError(message);
|
|
561
|
+
if (typeof obj_inaccessibleRecordCount !== 'number' || (typeof obj_inaccessibleRecordCount === 'number' && Math.floor(obj_inaccessibleRecordCount) !== obj_inaccessibleRecordCount)) {
|
|
562
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_inaccessibleRecordCount + '" (at "' + path_inaccessibleRecordCount + '")');
|
|
584
563
|
}
|
|
585
564
|
const obj_records = obj.records;
|
|
586
565
|
const path_records = path + '.records';
|
|
@@ -602,10 +581,10 @@ function validate(obj, path = 'MilestoneProgressContributingRecordsRepresentatio
|
|
|
602
581
|
if (typeof obj_sourceObjectApiName !== 'string') {
|
|
603
582
|
return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectApiName + '" (at "' + path_sourceObjectApiName + '")');
|
|
604
583
|
}
|
|
605
|
-
const
|
|
606
|
-
const
|
|
607
|
-
if (typeof
|
|
608
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
584
|
+
const obj_taskMeasureProgressId = obj.taskMeasureProgressId;
|
|
585
|
+
const path_taskMeasureProgressId = path + '.taskMeasureProgressId';
|
|
586
|
+
if (typeof obj_taskMeasureProgressId !== 'string') {
|
|
587
|
+
return new TypeError('Expected "string" but received "' + typeof obj_taskMeasureProgressId + '" (at "' + path_taskMeasureProgressId + '")');
|
|
609
588
|
}
|
|
610
589
|
})();
|
|
611
590
|
return v_error === undefined ? null : v_error;
|
|
@@ -656,13 +635,18 @@ const select$1 = function MilestoneProgressContributingRecordsRepresentationSele
|
|
|
656
635
|
kind: 'Scalar'
|
|
657
636
|
},
|
|
658
637
|
{
|
|
659
|
-
name: '
|
|
638
|
+
name: 'taskMeasureProgressId',
|
|
660
639
|
kind: 'Scalar'
|
|
661
640
|
}
|
|
662
641
|
]
|
|
663
642
|
};
|
|
664
643
|
};
|
|
665
644
|
function equals(existing, incoming) {
|
|
645
|
+
const existing_inaccessibleRecordCount = existing.inaccessibleRecordCount;
|
|
646
|
+
const incoming_inaccessibleRecordCount = incoming.inaccessibleRecordCount;
|
|
647
|
+
if (!(existing_inaccessibleRecordCount === incoming_inaccessibleRecordCount)) {
|
|
648
|
+
return false;
|
|
649
|
+
}
|
|
666
650
|
const existing_aggregationType = existing.aggregationType;
|
|
667
651
|
const incoming_aggregationType = incoming.aggregationType;
|
|
668
652
|
if (!(existing_aggregationType === incoming_aggregationType)) {
|
|
@@ -673,9 +657,9 @@ function equals(existing, incoming) {
|
|
|
673
657
|
if (!(existing_sourceObjectApiName === incoming_sourceObjectApiName)) {
|
|
674
658
|
return false;
|
|
675
659
|
}
|
|
676
|
-
const
|
|
677
|
-
const
|
|
678
|
-
if (!(
|
|
660
|
+
const existing_taskMeasureProgressId = existing.taskMeasureProgressId;
|
|
661
|
+
const incoming_taskMeasureProgressId = incoming.taskMeasureProgressId;
|
|
662
|
+
if (!(existing_taskMeasureProgressId === incoming_taskMeasureProgressId)) {
|
|
679
663
|
return false;
|
|
680
664
|
}
|
|
681
665
|
const existing_aggregationField = existing.aggregationField;
|
|
@@ -693,11 +677,6 @@ function equals(existing, incoming) {
|
|
|
693
677
|
if (!(equals$2(existing_displayField, incoming_displayField))) {
|
|
694
678
|
return false;
|
|
695
679
|
}
|
|
696
|
-
const existing_inaccessibleRecordCount = existing.inaccessibleRecordCount;
|
|
697
|
-
const incoming_inaccessibleRecordCount = incoming.inaccessibleRecordCount;
|
|
698
|
-
if (!(existing_inaccessibleRecordCount === incoming_inaccessibleRecordCount)) {
|
|
699
|
-
return false;
|
|
700
|
-
}
|
|
701
680
|
const existing_records = existing.records;
|
|
702
681
|
const incoming_records = incoming.records;
|
|
703
682
|
const equals_records_items = equalsArray(existing_records, incoming_records, (existing_records_item, incoming_records_item) => {
|
|
@@ -736,7 +715,7 @@ function select(luvio, params) {
|
|
|
736
715
|
return select$1();
|
|
737
716
|
}
|
|
738
717
|
function keyBuilder$1(luvio, params) {
|
|
739
|
-
return keyPrefix + '::MilestoneProgressContributingRecordsRepresentation:(' + '
|
|
718
|
+
return keyPrefix + '::MilestoneProgressContributingRecordsRepresentation:(' + 'taskMeasureProgressId:' + params.urlParams.taskMeasureProgressId + ')';
|
|
740
719
|
}
|
|
741
720
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
742
721
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
@@ -774,7 +753,7 @@ function createResourceRequest(config) {
|
|
|
774
753
|
const headers = {};
|
|
775
754
|
return {
|
|
776
755
|
baseUri: '/services/data/v61.0',
|
|
777
|
-
basePath: '/connect/enablement/contributing-records/
|
|
756
|
+
basePath: '/connect/enablement/contributing-records/taskMeasureProgress/' + config.urlParams.taskMeasureProgressId + '',
|
|
778
757
|
method: 'get',
|
|
779
758
|
body: null,
|
|
780
759
|
urlParams: config.urlParams,
|
|
@@ -786,7 +765,7 @@ function createResourceRequest(config) {
|
|
|
786
765
|
|
|
787
766
|
const adapterName = 'getContributingRecordsInfoForMilestone';
|
|
788
767
|
const getContributingRecordsInfoForMilestone_ConfigPropertyMetadata = [
|
|
789
|
-
generateParamConfigMetadata('
|
|
768
|
+
generateParamConfigMetadata('taskMeasureProgressId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
790
769
|
];
|
|
791
770
|
const getContributingRecordsInfoForMilestone_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getContributingRecordsInfoForMilestone_ConfigPropertyMetadata);
|
|
792
771
|
const createResourceParams = /*#__PURE__*/ createResourceParams$2(getContributingRecordsInfoForMilestone_ConfigPropertyMetadata);
|
package/dist/es/es2018/types/src/generated/adapters/getContributingRecordsInfoForMilestone.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import { ResourceRequestConfig as
|
|
3
|
+
import { ResourceRequestConfig as resources_getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId_ResourceRequestConfig } from '../resources/getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId';
|
|
4
4
|
import { MilestoneProgressContributingRecordsRepresentation as types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation } from '../types/MilestoneProgressContributingRecordsRepresentation';
|
|
5
5
|
export declare const adapterName = "getContributingRecordsInfoForMilestone";
|
|
6
6
|
export declare const getContributingRecordsInfoForMilestone_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getContributingRecordsInfoForMilestone_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetContributingRecordsInfoForMilestoneConfig {
|
|
9
|
-
|
|
9
|
+
taskMeasureProgressId: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const createResourceParams: (config: GetContributingRecordsInfoForMilestoneConfig) =>
|
|
11
|
+
export declare const createResourceParams: (config: GetContributingRecordsInfoForMilestoneConfig) => resources_getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId_ResourceRequestConfig;
|
|
12
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig): string;
|
|
13
13
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
14
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetContributingRecordsInfoForMilestoneConfig>): adapter$45$utils_Untrusted<GetContributingRecordsInfoForMilestoneConfig>;
|
|
15
15
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetContributingRecordsInfoForMilestoneConfig | null;
|
|
16
16
|
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig): $64$luvio_engine_Fragment;
|
|
17
17
|
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig): $64$luvio_engine_Snapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, any>;
|
|
18
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig, resourceParams:
|
|
19
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig, resourceParams:
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig, resourceParams: resources_getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig, resourceParams: resources_getConnectEnablementContributingRecordsTaskMeasureProgressByTaskMeasureProgressId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
20
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetContributingRecordsInfoForMilestoneConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation, any>>;
|
|
21
21
|
export type BuildSnapshotContext = {
|
|
22
22
|
luvio: $64$luvio_engine_Luvio;
|
|
@@ -2,7 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { MilestoneProgressContributingRecordsRepresentation as types_MilestoneProgressContributingRecordsRepresentation_MilestoneProgressContributingRecordsRepresentation } from '../types/MilestoneProgressContributingRecordsRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
5
|
-
|
|
5
|
+
taskMeasureProgressId: string;
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -2,7 +2,7 @@ import { ContributingRecordFieldInfoRepresentation as ContributingRecordFieldInf
|
|
|
2
2
|
import { ContributingRecordFieldsValueRepresentation as ContributingRecordFieldsValueRepresentation_ContributingRecordFieldsValueRepresentation } from './ContributingRecordFieldsValueRepresentation';
|
|
3
3
|
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';
|
|
4
4
|
export declare const TTL = 5000;
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "9e84d5b64bc9bd0becb2aedab6af1a57";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export declare function normalize(input: MilestoneProgressContributingRecordsRepresentation, existing: MilestoneProgressContributingRecordsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MilestoneProgressContributingRecordsRepresentationNormalized;
|
|
@@ -23,13 +23,13 @@ export interface MilestoneProgressContributingRecordsRepresentationNormalized {
|
|
|
23
23
|
dateFilterField: ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation;
|
|
24
24
|
displayField: ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation;
|
|
25
25
|
/** Inaccessible Contributing records count */
|
|
26
|
-
inaccessibleRecordCount: number
|
|
26
|
+
inaccessibleRecordCount: number;
|
|
27
27
|
/** Contributing records */
|
|
28
28
|
records: Array<ContributingRecordFieldsValueRepresentation_ContributingRecordFieldsValueRepresentation>;
|
|
29
29
|
/** Source Object on which the measure is defined */
|
|
30
30
|
sourceObjectApiName: string;
|
|
31
|
-
/** Task progress id */
|
|
32
|
-
|
|
31
|
+
/** Task measure progress id */
|
|
32
|
+
taskMeasureProgressId: string;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
* MilestoneProgress Contributing Records Output Representation
|
|
@@ -42,8 +42,8 @@ export interface MilestoneProgressContributingRecordsRepresentation {
|
|
|
42
42
|
aggregationType: string;
|
|
43
43
|
dateFilterField: ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation;
|
|
44
44
|
displayField: ContributingRecordFieldInfoRepresentation_ContributingRecordFieldInfoRepresentation;
|
|
45
|
-
inaccessibleRecordCount: number
|
|
45
|
+
inaccessibleRecordCount: number;
|
|
46
46
|
records: Array<ContributingRecordFieldsValueRepresentation_ContributingRecordFieldsValueRepresentation>;
|
|
47
47
|
sourceObjectApiName: string;
|
|
48
|
-
|
|
48
|
+
taskMeasureProgressId: string;
|
|
49
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-sales-enablementmeasureconnectfamily",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.278.0",
|
|
4
4
|
"description": "Enablement Measure related Connect APIs",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/sales-enablementmeasureconnectfamily.js",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.278.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
47
|
-
"@salesforce/lds-karma": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.278.0",
|
|
47
|
+
"@salesforce/lds-karma": "^1.278.0"
|
|
48
48
|
},
|
|
49
49
|
"nx": {
|
|
50
50
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -370,7 +370,7 @@ function equals$2(existing, incoming) {
|
|
|
370
370
|
}
|
|
371
371
|
|
|
372
372
|
const TTL$1 = 5000;
|
|
373
|
-
const VERSION$1 = "
|
|
373
|
+
const VERSION$1 = "9e84d5b64bc9bd0becb2aedab6af1a57";
|
|
374
374
|
function validate$1(obj, path = 'MilestoneProgressContributingRecordsRepresentation') {
|
|
375
375
|
const v_error = (() => {
|
|
376
376
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -407,29 +407,8 @@ function validate$1(obj, path = 'MilestoneProgressContributingRecordsRepresentat
|
|
|
407
407
|
}
|
|
408
408
|
const obj_inaccessibleRecordCount = obj.inaccessibleRecordCount;
|
|
409
409
|
const path_inaccessibleRecordCount = path + '.inaccessibleRecordCount';
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
if (typeof obj_inaccessibleRecordCount !== 'number' || (typeof obj_inaccessibleRecordCount === 'number' && Math.floor(obj_inaccessibleRecordCount) !== obj_inaccessibleRecordCount)) {
|
|
413
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_inaccessibleRecordCount + '" (at "' + path_inaccessibleRecordCount + '")');
|
|
414
|
-
}
|
|
415
|
-
})();
|
|
416
|
-
if (obj_inaccessibleRecordCount_union0_error != null) {
|
|
417
|
-
obj_inaccessibleRecordCount_union0 = obj_inaccessibleRecordCount_union0_error.message;
|
|
418
|
-
}
|
|
419
|
-
let obj_inaccessibleRecordCount_union1 = null;
|
|
420
|
-
const obj_inaccessibleRecordCount_union1_error = (() => {
|
|
421
|
-
if (obj_inaccessibleRecordCount !== null) {
|
|
422
|
-
return new TypeError('Expected "null" but received "' + typeof obj_inaccessibleRecordCount + '" (at "' + path_inaccessibleRecordCount + '")');
|
|
423
|
-
}
|
|
424
|
-
})();
|
|
425
|
-
if (obj_inaccessibleRecordCount_union1_error != null) {
|
|
426
|
-
obj_inaccessibleRecordCount_union1 = obj_inaccessibleRecordCount_union1_error.message;
|
|
427
|
-
}
|
|
428
|
-
if (obj_inaccessibleRecordCount_union0 && obj_inaccessibleRecordCount_union1) {
|
|
429
|
-
let message = 'Object doesn\'t match union (at "' + path_inaccessibleRecordCount + '")';
|
|
430
|
-
message += '\n' + obj_inaccessibleRecordCount_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
431
|
-
message += '\n' + obj_inaccessibleRecordCount_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
432
|
-
return new TypeError(message);
|
|
410
|
+
if (typeof obj_inaccessibleRecordCount !== 'number' || (typeof obj_inaccessibleRecordCount === 'number' && Math.floor(obj_inaccessibleRecordCount) !== obj_inaccessibleRecordCount)) {
|
|
411
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_inaccessibleRecordCount + '" (at "' + path_inaccessibleRecordCount + '")');
|
|
433
412
|
}
|
|
434
413
|
const obj_records = obj.records;
|
|
435
414
|
const path_records = path + '.records';
|
|
@@ -451,10 +430,10 @@ function validate$1(obj, path = 'MilestoneProgressContributingRecordsRepresentat
|
|
|
451
430
|
if (typeof obj_sourceObjectApiName !== 'string') {
|
|
452
431
|
return new TypeError('Expected "string" but received "' + typeof obj_sourceObjectApiName + '" (at "' + path_sourceObjectApiName + '")');
|
|
453
432
|
}
|
|
454
|
-
const
|
|
455
|
-
const
|
|
456
|
-
if (typeof
|
|
457
|
-
return new TypeError('Expected "string" but received "' + typeof
|
|
433
|
+
const obj_taskMeasureProgressId = obj.taskMeasureProgressId;
|
|
434
|
+
const path_taskMeasureProgressId = path + '.taskMeasureProgressId';
|
|
435
|
+
if (typeof obj_taskMeasureProgressId !== 'string') {
|
|
436
|
+
return new TypeError('Expected "string" but received "' + typeof obj_taskMeasureProgressId + '" (at "' + path_taskMeasureProgressId + '")');
|
|
458
437
|
}
|
|
459
438
|
})();
|
|
460
439
|
return v_error === undefined ? null : v_error;
|
|
@@ -505,13 +484,18 @@ const select$3 = function MilestoneProgressContributingRecordsRepresentationSele
|
|
|
505
484
|
kind: 'Scalar'
|
|
506
485
|
},
|
|
507
486
|
{
|
|
508
|
-
name: '
|
|
487
|
+
name: 'taskMeasureProgressId',
|
|
509
488
|
kind: 'Scalar'
|
|
510
489
|
}
|
|
511
490
|
]
|
|
512
491
|
};
|
|
513
492
|
};
|
|
514
493
|
function equals$1(existing, incoming) {
|
|
494
|
+
const existing_inaccessibleRecordCount = existing.inaccessibleRecordCount;
|
|
495
|
+
const incoming_inaccessibleRecordCount = incoming.inaccessibleRecordCount;
|
|
496
|
+
if (!(existing_inaccessibleRecordCount === incoming_inaccessibleRecordCount)) {
|
|
497
|
+
return false;
|
|
498
|
+
}
|
|
515
499
|
const existing_aggregationType = existing.aggregationType;
|
|
516
500
|
const incoming_aggregationType = incoming.aggregationType;
|
|
517
501
|
if (!(existing_aggregationType === incoming_aggregationType)) {
|
|
@@ -522,9 +506,9 @@ function equals$1(existing, incoming) {
|
|
|
522
506
|
if (!(existing_sourceObjectApiName === incoming_sourceObjectApiName)) {
|
|
523
507
|
return false;
|
|
524
508
|
}
|
|
525
|
-
const
|
|
526
|
-
const
|
|
527
|
-
if (!(
|
|
509
|
+
const existing_taskMeasureProgressId = existing.taskMeasureProgressId;
|
|
510
|
+
const incoming_taskMeasureProgressId = incoming.taskMeasureProgressId;
|
|
511
|
+
if (!(existing_taskMeasureProgressId === incoming_taskMeasureProgressId)) {
|
|
528
512
|
return false;
|
|
529
513
|
}
|
|
530
514
|
const existing_aggregationField = existing.aggregationField;
|
|
@@ -542,11 +526,6 @@ function equals$1(existing, incoming) {
|
|
|
542
526
|
if (!(equals$3(existing_displayField, incoming_displayField))) {
|
|
543
527
|
return false;
|
|
544
528
|
}
|
|
545
|
-
const existing_inaccessibleRecordCount = existing.inaccessibleRecordCount;
|
|
546
|
-
const incoming_inaccessibleRecordCount = incoming.inaccessibleRecordCount;
|
|
547
|
-
if (!(existing_inaccessibleRecordCount === incoming_inaccessibleRecordCount)) {
|
|
548
|
-
return false;
|
|
549
|
-
}
|
|
550
529
|
const existing_records = existing.records;
|
|
551
530
|
const incoming_records = incoming.records;
|
|
552
531
|
const equals_records_items = equalsArray(existing_records, incoming_records, (existing_records_item, incoming_records_item) => {
|
|
@@ -585,7 +564,7 @@ function select$2(luvio, params) {
|
|
|
585
564
|
return select$3();
|
|
586
565
|
}
|
|
587
566
|
function keyBuilder$2(luvio, params) {
|
|
588
|
-
return keyPrefix + '::MilestoneProgressContributingRecordsRepresentation:(' + '
|
|
567
|
+
return keyPrefix + '::MilestoneProgressContributingRecordsRepresentation:(' + 'taskMeasureProgressId:' + params.urlParams.taskMeasureProgressId + ')';
|
|
589
568
|
}
|
|
590
569
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
591
570
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
@@ -623,7 +602,7 @@ function createResourceRequest$1(config) {
|
|
|
623
602
|
const headers = {};
|
|
624
603
|
return {
|
|
625
604
|
baseUri: '/services/data/v61.0',
|
|
626
|
-
basePath: '/connect/enablement/contributing-records/
|
|
605
|
+
basePath: '/connect/enablement/contributing-records/taskMeasureProgress/' + config.urlParams.taskMeasureProgressId + '',
|
|
627
606
|
method: 'get',
|
|
628
607
|
body: null,
|
|
629
608
|
urlParams: config.urlParams,
|
|
@@ -635,7 +614,7 @@ function createResourceRequest$1(config) {
|
|
|
635
614
|
|
|
636
615
|
const adapterName$1 = 'getContributingRecordsInfoForMilestone';
|
|
637
616
|
const getContributingRecordsInfoForMilestone_ConfigPropertyMetadata = [
|
|
638
|
-
generateParamConfigMetadata('
|
|
617
|
+
generateParamConfigMetadata('taskMeasureProgressId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
639
618
|
];
|
|
640
619
|
const getContributingRecordsInfoForMilestone_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getContributingRecordsInfoForMilestone_ConfigPropertyMetadata);
|
|
641
620
|
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$2(getContributingRecordsInfoForMilestone_ConfigPropertyMetadata);
|
|
@@ -915,4 +894,4 @@ withDefaultLuvio((luvio) => {
|
|
|
915
894
|
});
|
|
916
895
|
|
|
917
896
|
export { getContributingRecordsInfoForMilestone, getContributingRecordsInfoForMilestone_imperative, triggerOnDemandComputation };
|
|
918
|
-
// version: 1.
|
|
897
|
+
// version: 1.278.0-a388a38f0
|
package/src/raml/api.raml
CHANGED
|
@@ -53,19 +53,19 @@ types:
|
|
|
53
53
|
displayField:
|
|
54
54
|
description: Display Field
|
|
55
55
|
type: ContributingRecordFieldInfoRepresentation
|
|
56
|
+
inaccessibleRecordCount:
|
|
57
|
+
description: Inaccessible Contributing records count
|
|
58
|
+
type: integer
|
|
56
59
|
records:
|
|
57
60
|
description: Contributing records
|
|
58
61
|
type: array
|
|
59
62
|
items:
|
|
60
63
|
type: ContributingRecordFieldsValueRepresentation
|
|
61
|
-
inaccessibleRecordCount:
|
|
62
|
-
description: Inaccessible Contributing records count
|
|
63
|
-
type: integer | nil
|
|
64
64
|
sourceObjectApiName:
|
|
65
65
|
description: Source Object on which the measure is defined
|
|
66
66
|
type: string
|
|
67
|
-
|
|
68
|
-
description: Task progress id
|
|
67
|
+
taskMeasureProgressId:
|
|
68
|
+
description: Task measure progress id
|
|
69
69
|
type: string
|
|
70
70
|
ContributingRecordFieldsValueRepresentation:
|
|
71
71
|
description: MilestoneProgress Contributing Record Fields Output Representation
|
|
@@ -101,8 +101,7 @@ types:
|
|
|
101
101
|
/on-demand-computation/programs/{programId}:
|
|
102
102
|
patch:
|
|
103
103
|
displayName: patchOnDemandComputation
|
|
104
|
-
description: HTTP Patch method to for triggering on demand computation for
|
|
105
|
-
a given program
|
|
104
|
+
description: HTTP Patch method to for triggering on demand computation for a given program
|
|
106
105
|
responses:
|
|
107
106
|
'200':
|
|
108
107
|
description: Success
|
|
@@ -113,11 +112,10 @@ types:
|
|
|
113
112
|
programId:
|
|
114
113
|
type: string
|
|
115
114
|
required: true
|
|
116
|
-
/contributing-records/
|
|
115
|
+
/contributing-records/taskMeasureProgress/{taskMeasureProgressId}:
|
|
117
116
|
get:
|
|
118
117
|
displayName: getMilestoneContributingRecordsInfo
|
|
119
|
-
description: HTTP GET method to fetch contributing records' info for given
|
|
120
|
-
milestone progress
|
|
118
|
+
description: HTTP GET method to fetch contributing records' info for given milestone progress
|
|
121
119
|
responses:
|
|
122
120
|
'200':
|
|
123
121
|
description: Success
|
|
@@ -125,6 +123,6 @@ types:
|
|
|
125
123
|
application/json:
|
|
126
124
|
type: MilestoneProgressContributingRecordsRepresentation
|
|
127
125
|
uriParameters:
|
|
128
|
-
|
|
126
|
+
taskMeasureProgressId:
|
|
129
127
|
type: string
|
|
130
128
|
required: true
|
package/src/raml/luvio.raml
CHANGED
|
@@ -20,7 +20,7 @@ types:
|
|
|
20
20
|
patch:
|
|
21
21
|
(luvio.adapter):
|
|
22
22
|
name: triggerOnDemandComputation
|
|
23
|
-
/contributing-records/
|
|
23
|
+
/contributing-records/taskMeasureProgress/{taskMeasureProgressId}:
|
|
24
24
|
get:
|
|
25
25
|
(luvio.adapter):
|
|
26
26
|
name: getContributingRecordsInfoForMilestone
|