@salesforce/lds-adapters-service-milestones 1.395.0 → 1.397.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/service-milestones.js +133 -23
- package/dist/es/es2018/types/src/generated/types/MilestoneRelationshipDetailsRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/MilestonesDataManagerRepresentation.d.ts +5 -1
- package/package.json +3 -3
- package/sfdc/index.js +124 -14
- package/src/raml/api.raml +23 -0
|
@@ -113,8 +113,8 @@ function createLink(ref) {
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
const TTL$2 = 100;
|
|
116
|
-
const VERSION$
|
|
117
|
-
function validate$
|
|
116
|
+
const VERSION$3 = "77385f3d3c79cead805a91e3f9f1f94b";
|
|
117
|
+
function validate$3(obj, path = 'BusinessHoursRepresentation') {
|
|
118
118
|
const v_error = (() => {
|
|
119
119
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
120
120
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -178,10 +178,10 @@ const RepresentationType$2 = 'BusinessHoursRepresentation';
|
|
|
178
178
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
179
179
|
return input;
|
|
180
180
|
}
|
|
181
|
-
const select$
|
|
181
|
+
const select$6 = function BusinessHoursRepresentationSelect() {
|
|
182
182
|
return {
|
|
183
183
|
kind: 'Fragment',
|
|
184
|
-
version: VERSION$
|
|
184
|
+
version: VERSION$3,
|
|
185
185
|
private: [],
|
|
186
186
|
selections: [
|
|
187
187
|
{
|
|
@@ -195,7 +195,7 @@ const select$5 = function BusinessHoursRepresentationSelect() {
|
|
|
195
195
|
]
|
|
196
196
|
};
|
|
197
197
|
};
|
|
198
|
-
function equals$
|
|
198
|
+
function equals$3(existing, incoming) {
|
|
199
199
|
const existing_endTime = existing.endTime;
|
|
200
200
|
const incoming_endTime = incoming.endTime;
|
|
201
201
|
if (!(existing_endTime === incoming_endTime)) {
|
|
@@ -210,14 +210,14 @@ function equals$2(existing, incoming) {
|
|
|
210
210
|
}
|
|
211
211
|
const ingest$2 = function BusinessHoursRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
212
212
|
if (process.env.NODE_ENV !== 'production') {
|
|
213
|
-
const validateError = validate$
|
|
213
|
+
const validateError = validate$3(input);
|
|
214
214
|
if (validateError !== null) {
|
|
215
215
|
throw validateError;
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
const key = path.fullPath;
|
|
219
219
|
const ttlToUse = TTL$2;
|
|
220
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "Milestones", VERSION$
|
|
220
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "Milestones", VERSION$3, RepresentationType$2, equals$3);
|
|
221
221
|
return createLink(key);
|
|
222
222
|
};
|
|
223
223
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -230,8 +230,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
function select$
|
|
234
|
-
return select$
|
|
233
|
+
function select$5(luvio, params) {
|
|
234
|
+
return select$6();
|
|
235
235
|
}
|
|
236
236
|
function keyBuilder$4(luvio, params) {
|
|
237
237
|
return keyPrefix + '::BusinessHoursRepresentation:(' + 'businessHoursId:' + params.queryParams.businessHoursId + ',' + 'getNextDayBusinessHours:' + params.queryParams.getNextDayBusinessHours + ')';
|
|
@@ -245,7 +245,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
245
245
|
luvio.storeIngest(key, ingest$2, body);
|
|
246
246
|
const snapshot = luvio.storeLookup({
|
|
247
247
|
recordId: key,
|
|
248
|
-
node: select$
|
|
248
|
+
node: select$5(),
|
|
249
249
|
variables: {},
|
|
250
250
|
}, snapshotRefresh);
|
|
251
251
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -262,7 +262,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
262
262
|
const storeMetadataParams = {
|
|
263
263
|
ttl: TTL$2,
|
|
264
264
|
namespace: keyPrefix,
|
|
265
|
-
version: VERSION$
|
|
265
|
+
version: VERSION$3,
|
|
266
266
|
representationName: RepresentationType$2
|
|
267
267
|
};
|
|
268
268
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -326,7 +326,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
326
326
|
}
|
|
327
327
|
function adapterFragment$1(luvio, config) {
|
|
328
328
|
createResourceParams$2(config);
|
|
329
|
-
return select$
|
|
329
|
+
return select$5();
|
|
330
330
|
}
|
|
331
331
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
332
332
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
@@ -383,8 +383,8 @@ const getBusinessHoursAdapterFactory = (luvio) => function Milestones__getBusine
|
|
|
383
383
|
};
|
|
384
384
|
|
|
385
385
|
const TTL$1 = 100;
|
|
386
|
-
const VERSION$
|
|
387
|
-
function validate$
|
|
386
|
+
const VERSION$2 = "2225350c2bb6b0628fe14b755cc2f9ee";
|
|
387
|
+
function validate$2(obj, path = 'MilestoneCompletedRepresentation') {
|
|
388
388
|
const v_error = (() => {
|
|
389
389
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
390
390
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -457,15 +457,15 @@ function keyBuilderFromType(luvio, object) {
|
|
|
457
457
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
458
458
|
return input;
|
|
459
459
|
}
|
|
460
|
-
const select$
|
|
460
|
+
const select$4 = function MilestoneCompletedRepresentationSelect() {
|
|
461
461
|
return {
|
|
462
462
|
kind: 'Fragment',
|
|
463
|
-
version: VERSION$
|
|
463
|
+
version: VERSION$2,
|
|
464
464
|
private: [],
|
|
465
465
|
opaque: true
|
|
466
466
|
};
|
|
467
467
|
};
|
|
468
|
-
function equals$
|
|
468
|
+
function equals$2(existing, incoming) {
|
|
469
469
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
470
470
|
return false;
|
|
471
471
|
}
|
|
@@ -473,14 +473,14 @@ function equals$1(existing, incoming) {
|
|
|
473
473
|
}
|
|
474
474
|
const ingest$1 = function MilestoneCompletedRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
475
475
|
if (process.env.NODE_ENV !== 'production') {
|
|
476
|
-
const validateError = validate$
|
|
476
|
+
const validateError = validate$2(input);
|
|
477
477
|
if (validateError !== null) {
|
|
478
478
|
throw validateError;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
const key = keyBuilderFromType(luvio, input);
|
|
482
482
|
const ttlToUse = TTL$1;
|
|
483
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "Milestones", VERSION$
|
|
483
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "Milestones", VERSION$2, RepresentationType$1, equals$2);
|
|
484
484
|
return createLink(key);
|
|
485
485
|
};
|
|
486
486
|
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -493,8 +493,8 @@ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
-
function select$
|
|
497
|
-
return select$
|
|
496
|
+
function select$3(luvio, params) {
|
|
497
|
+
return select$4();
|
|
498
498
|
}
|
|
499
499
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
500
500
|
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
@@ -505,7 +505,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
505
505
|
luvio.storeIngest(key, ingest$1, body);
|
|
506
506
|
const snapshot = luvio.storeLookup({
|
|
507
507
|
recordId: key,
|
|
508
|
-
node: select$
|
|
508
|
+
node: select$3(),
|
|
509
509
|
variables: {},
|
|
510
510
|
});
|
|
511
511
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -589,8 +589,86 @@ const markMilestoneCompletedAdapterFactory = (luvio) => {
|
|
|
589
589
|
};
|
|
590
590
|
};
|
|
591
591
|
|
|
592
|
+
const VERSION$1 = "c81705fecab6e7f97ab7b43668f122b7";
|
|
593
|
+
function validate$1(obj, path = 'MilestoneRelationshipDetailsRepresentation') {
|
|
594
|
+
const v_error = (() => {
|
|
595
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
596
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
597
|
+
}
|
|
598
|
+
const obj_entityRelationshipType = obj.entityRelationshipType;
|
|
599
|
+
const path_entityRelationshipType = path + '.entityRelationshipType';
|
|
600
|
+
if (typeof obj_entityRelationshipType !== 'string') {
|
|
601
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityRelationshipType + '" (at "' + path_entityRelationshipType + '")');
|
|
602
|
+
}
|
|
603
|
+
const obj_linkedEntityId = obj.linkedEntityId;
|
|
604
|
+
const path_linkedEntityId = path + '.linkedEntityId';
|
|
605
|
+
if (typeof obj_linkedEntityId !== 'string') {
|
|
606
|
+
return new TypeError('Expected "string" but received "' + typeof obj_linkedEntityId + '" (at "' + path_linkedEntityId + '")');
|
|
607
|
+
}
|
|
608
|
+
const obj_linkedEntityNumber = obj.linkedEntityNumber;
|
|
609
|
+
const path_linkedEntityNumber = path + '.linkedEntityNumber';
|
|
610
|
+
if (typeof obj_linkedEntityNumber !== 'string') {
|
|
611
|
+
return new TypeError('Expected "string" but received "' + typeof obj_linkedEntityNumber + '" (at "' + path_linkedEntityNumber + '")');
|
|
612
|
+
}
|
|
613
|
+
const obj_relatedMilestoneId = obj.relatedMilestoneId;
|
|
614
|
+
const path_relatedMilestoneId = path + '.relatedMilestoneId';
|
|
615
|
+
if (typeof obj_relatedMilestoneId !== 'string') {
|
|
616
|
+
return new TypeError('Expected "string" but received "' + typeof obj_relatedMilestoneId + '" (at "' + path_relatedMilestoneId + '")');
|
|
617
|
+
}
|
|
618
|
+
})();
|
|
619
|
+
return v_error === undefined ? null : v_error;
|
|
620
|
+
}
|
|
621
|
+
const select$2 = function MilestoneRelationshipDetailsRepresentationSelect() {
|
|
622
|
+
return {
|
|
623
|
+
kind: 'Fragment',
|
|
624
|
+
version: VERSION$1,
|
|
625
|
+
private: [],
|
|
626
|
+
selections: [
|
|
627
|
+
{
|
|
628
|
+
name: 'entityRelationshipType',
|
|
629
|
+
kind: 'Scalar'
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
name: 'linkedEntityId',
|
|
633
|
+
kind: 'Scalar'
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
name: 'linkedEntityNumber',
|
|
637
|
+
kind: 'Scalar'
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
name: 'relatedMilestoneId',
|
|
641
|
+
kind: 'Scalar'
|
|
642
|
+
}
|
|
643
|
+
]
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
function equals$1(existing, incoming) {
|
|
647
|
+
const existing_entityRelationshipType = existing.entityRelationshipType;
|
|
648
|
+
const incoming_entityRelationshipType = incoming.entityRelationshipType;
|
|
649
|
+
if (!(existing_entityRelationshipType === incoming_entityRelationshipType)) {
|
|
650
|
+
return false;
|
|
651
|
+
}
|
|
652
|
+
const existing_linkedEntityId = existing.linkedEntityId;
|
|
653
|
+
const incoming_linkedEntityId = incoming.linkedEntityId;
|
|
654
|
+
if (!(existing_linkedEntityId === incoming_linkedEntityId)) {
|
|
655
|
+
return false;
|
|
656
|
+
}
|
|
657
|
+
const existing_linkedEntityNumber = existing.linkedEntityNumber;
|
|
658
|
+
const incoming_linkedEntityNumber = incoming.linkedEntityNumber;
|
|
659
|
+
if (!(existing_linkedEntityNumber === incoming_linkedEntityNumber)) {
|
|
660
|
+
return false;
|
|
661
|
+
}
|
|
662
|
+
const existing_relatedMilestoneId = existing.relatedMilestoneId;
|
|
663
|
+
const incoming_relatedMilestoneId = incoming.relatedMilestoneId;
|
|
664
|
+
if (!(existing_relatedMilestoneId === incoming_relatedMilestoneId)) {
|
|
665
|
+
return false;
|
|
666
|
+
}
|
|
667
|
+
return true;
|
|
668
|
+
}
|
|
669
|
+
|
|
592
670
|
const TTL = 100;
|
|
593
|
-
const VERSION = "
|
|
671
|
+
const VERSION = "80c544b00a7392fb2e02d7beb9f5c872";
|
|
594
672
|
function validate(obj, path = 'MilestonesDataManagerRepresentation') {
|
|
595
673
|
const v_error = (() => {
|
|
596
674
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -662,6 +740,21 @@ function validate(obj, path = 'MilestonesDataManagerRepresentation') {
|
|
|
662
740
|
return new TypeError('Expected "string" but received "' + typeof obj_milestoneAgreementTypeMap_prop + '" (at "' + path_milestoneAgreementTypeMap_prop + '")');
|
|
663
741
|
}
|
|
664
742
|
}
|
|
743
|
+
const obj_milestoneRelationshipDetails = obj.milestoneRelationshipDetails;
|
|
744
|
+
const path_milestoneRelationshipDetails = path + '.milestoneRelationshipDetails';
|
|
745
|
+
if (!ArrayIsArray(obj_milestoneRelationshipDetails)) {
|
|
746
|
+
return new TypeError('Expected "array" but received "' + typeof obj_milestoneRelationshipDetails + '" (at "' + path_milestoneRelationshipDetails + '")');
|
|
747
|
+
}
|
|
748
|
+
for (let i = 0; i < obj_milestoneRelationshipDetails.length; i++) {
|
|
749
|
+
const obj_milestoneRelationshipDetails_item = obj_milestoneRelationshipDetails[i];
|
|
750
|
+
const path_milestoneRelationshipDetails_item = path_milestoneRelationshipDetails + '[' + i + ']';
|
|
751
|
+
const referencepath_milestoneRelationshipDetails_itemValidationError = validate$1(obj_milestoneRelationshipDetails_item, path_milestoneRelationshipDetails_item);
|
|
752
|
+
if (referencepath_milestoneRelationshipDetails_itemValidationError !== null) {
|
|
753
|
+
let message = 'Object doesn\'t match MilestoneRelationshipDetailsRepresentation (at "' + path_milestoneRelationshipDetails_item + '")\n';
|
|
754
|
+
message += referencepath_milestoneRelationshipDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
755
|
+
return new TypeError(message);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
665
758
|
const obj_overdueMilestoneIgnoreBusinessHours = obj.overdueMilestoneIgnoreBusinessHours;
|
|
666
759
|
const path_overdueMilestoneIgnoreBusinessHours = path + '.overdueMilestoneIgnoreBusinessHours';
|
|
667
760
|
let obj_overdueMilestoneIgnoreBusinessHours_union0 = null;
|
|
@@ -760,6 +853,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
760
853
|
return input;
|
|
761
854
|
}
|
|
762
855
|
const select$1 = function MilestonesDataManagerRepresentationSelect() {
|
|
856
|
+
const { selections: MilestoneRelationshipDetailsRepresentation__selections, opaque: MilestoneRelationshipDetailsRepresentation__opaque, } = select$2();
|
|
763
857
|
return {
|
|
764
858
|
kind: 'Fragment',
|
|
765
859
|
version: VERSION,
|
|
@@ -784,6 +878,12 @@ const select$1 = function MilestonesDataManagerRepresentationSelect() {
|
|
|
784
878
|
kind: 'Scalar',
|
|
785
879
|
map: true
|
|
786
880
|
},
|
|
881
|
+
{
|
|
882
|
+
name: 'milestoneRelationshipDetails',
|
|
883
|
+
kind: 'Object',
|
|
884
|
+
plural: true,
|
|
885
|
+
selections: MilestoneRelationshipDetailsRepresentation__selections
|
|
886
|
+
},
|
|
787
887
|
{
|
|
788
888
|
name: 'overdueMilestoneIgnoreBusinessHours',
|
|
789
889
|
kind: 'Scalar'
|
|
@@ -840,6 +940,16 @@ function equals(existing, incoming) {
|
|
|
840
940
|
if (equals_milestoneAgreementTypeMap_props === false) {
|
|
841
941
|
return false;
|
|
842
942
|
}
|
|
943
|
+
const existing_milestoneRelationshipDetails = existing.milestoneRelationshipDetails;
|
|
944
|
+
const incoming_milestoneRelationshipDetails = incoming.milestoneRelationshipDetails;
|
|
945
|
+
const equals_milestoneRelationshipDetails_items = equalsArray(existing_milestoneRelationshipDetails, incoming_milestoneRelationshipDetails, (existing_milestoneRelationshipDetails_item, incoming_milestoneRelationshipDetails_item) => {
|
|
946
|
+
if (!(equals$1(existing_milestoneRelationshipDetails_item, incoming_milestoneRelationshipDetails_item))) {
|
|
947
|
+
return false;
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
if (equals_milestoneRelationshipDetails_items === false) {
|
|
951
|
+
return false;
|
|
952
|
+
}
|
|
843
953
|
const existing_overdueMilestoneIgnoreBusinessHours = existing.overdueMilestoneIgnoreBusinessHours;
|
|
844
954
|
const incoming_overdueMilestoneIgnoreBusinessHours = incoming.overdueMilestoneIgnoreBusinessHours;
|
|
845
955
|
if (!(existing_overdueMilestoneIgnoreBusinessHours === incoming_overdueMilestoneIgnoreBusinessHours)) {
|
package/dist/es/es2018/types/src/generated/types/MilestoneRelationshipDetailsRepresentation.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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 = "c81705fecab6e7f97ab7b43668f122b7";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: MilestoneRelationshipDetailsRepresentation, existing: MilestoneRelationshipDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MilestoneRelationshipDetailsRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: MilestoneRelationshipDetailsRepresentationNormalized, incoming: MilestoneRelationshipDetailsRepresentationNormalized): boolean;
|
|
8
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: MilestoneRelationshipDetailsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Milestone relationship details with other linked entity
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface MilestoneRelationshipDetailsRepresentationNormalized {
|
|
17
|
+
/** Relationship type of related entity */
|
|
18
|
+
entityRelationshipType: string;
|
|
19
|
+
/** ID of linked entity */
|
|
20
|
+
linkedEntityId: string;
|
|
21
|
+
/** Entity number of related entity */
|
|
22
|
+
linkedEntityNumber: string;
|
|
23
|
+
/** Milestone ID of related entity */
|
|
24
|
+
relatedMilestoneId: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Milestone relationship details with other linked entity
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface MilestoneRelationshipDetailsRepresentation {
|
|
33
|
+
entityRelationshipType: string;
|
|
34
|
+
linkedEntityId: string;
|
|
35
|
+
linkedEntityNumber: string;
|
|
36
|
+
relatedMilestoneId: string;
|
|
37
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { MilestoneRelationshipDetailsRepresentation as MilestoneRelationshipDetailsRepresentation_MilestoneRelationshipDetailsRepresentation } from './MilestoneRelationshipDetailsRepresentation';
|
|
1
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';
|
|
2
3
|
export declare const TTL = 100;
|
|
3
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "80c544b00a7392fb2e02d7beb9f5c872";
|
|
4
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
6
|
export declare const RepresentationType: string;
|
|
6
7
|
export declare function normalize(input: MilestonesDataManagerRepresentation, existing: MilestonesDataManagerRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): MilestonesDataManagerRepresentationNormalized;
|
|
@@ -27,6 +28,8 @@ export interface MilestonesDataManagerRepresentationNormalized {
|
|
|
27
28
|
milestoneAgreementTypeMap: {
|
|
28
29
|
[key: string]: string;
|
|
29
30
|
};
|
|
31
|
+
/** List of milestone relationship details */
|
|
32
|
+
milestoneRelationshipDetails: Array<MilestoneRelationshipDetailsRepresentation_MilestoneRelationshipDetailsRepresentation>;
|
|
30
33
|
/** Get Overdue Milestone Ignore Business Hours */
|
|
31
34
|
overdueMilestoneIgnoreBusinessHours: boolean | null;
|
|
32
35
|
/** Get Record Ids */
|
|
@@ -51,6 +54,7 @@ export interface MilestonesDataManagerRepresentation {
|
|
|
51
54
|
milestoneAgreementTypeMap: {
|
|
52
55
|
[key: string]: string;
|
|
53
56
|
};
|
|
57
|
+
milestoneRelationshipDetails: Array<MilestoneRelationshipDetailsRepresentation_MilestoneRelationshipDetailsRepresentation>;
|
|
54
58
|
overdueMilestoneIgnoreBusinessHours: boolean | null;
|
|
55
59
|
recordIds: Array<string>;
|
|
56
60
|
slaExitDate: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-milestones",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.397.0",
|
|
4
4
|
"description": "Milestones API family description",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-milestones.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.397.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.397.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -123,8 +123,8 @@ function createLink(ref) {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
const TTL$2 = 100;
|
|
126
|
-
const VERSION$
|
|
127
|
-
function validate$
|
|
126
|
+
const VERSION$3 = "77385f3d3c79cead805a91e3f9f1f94b";
|
|
127
|
+
function validate$3(obj, path = 'BusinessHoursRepresentation') {
|
|
128
128
|
const v_error = (() => {
|
|
129
129
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
130
130
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -188,10 +188,10 @@ const RepresentationType$2 = 'BusinessHoursRepresentation';
|
|
|
188
188
|
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
189
189
|
return input;
|
|
190
190
|
}
|
|
191
|
-
const select$
|
|
191
|
+
const select$6 = function BusinessHoursRepresentationSelect() {
|
|
192
192
|
return {
|
|
193
193
|
kind: 'Fragment',
|
|
194
|
-
version: VERSION$
|
|
194
|
+
version: VERSION$3,
|
|
195
195
|
private: [],
|
|
196
196
|
selections: [
|
|
197
197
|
{
|
|
@@ -205,7 +205,7 @@ const select$5 = function BusinessHoursRepresentationSelect() {
|
|
|
205
205
|
]
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
function equals$
|
|
208
|
+
function equals$3(existing, incoming) {
|
|
209
209
|
const existing_endTime = existing.endTime;
|
|
210
210
|
const incoming_endTime = incoming.endTime;
|
|
211
211
|
if (!(existing_endTime === incoming_endTime)) {
|
|
@@ -220,14 +220,14 @@ function equals$2(existing, incoming) {
|
|
|
220
220
|
}
|
|
221
221
|
const ingest$2 = function BusinessHoursRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
222
222
|
if (process.env.NODE_ENV !== 'production') {
|
|
223
|
-
const validateError = validate$
|
|
223
|
+
const validateError = validate$3(input);
|
|
224
224
|
if (validateError !== null) {
|
|
225
225
|
throw validateError;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
const key = path.fullPath;
|
|
229
229
|
const ttlToUse = TTL$2;
|
|
230
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "Milestones", VERSION$
|
|
230
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "Milestones", VERSION$3, RepresentationType$2, equals$3);
|
|
231
231
|
return createLink(key);
|
|
232
232
|
};
|
|
233
233
|
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -240,8 +240,8 @@ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
function select$
|
|
244
|
-
return select$
|
|
243
|
+
function select$5(luvio, params) {
|
|
244
|
+
return select$6();
|
|
245
245
|
}
|
|
246
246
|
function keyBuilder$4(luvio, params) {
|
|
247
247
|
return keyPrefix + '::BusinessHoursRepresentation:(' + 'businessHoursId:' + params.queryParams.businessHoursId + ',' + 'getNextDayBusinessHours:' + params.queryParams.getNextDayBusinessHours + ')';
|
|
@@ -255,7 +255,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
255
255
|
luvio.storeIngest(key, ingest$2, body);
|
|
256
256
|
const snapshot = luvio.storeLookup({
|
|
257
257
|
recordId: key,
|
|
258
|
-
node: select$
|
|
258
|
+
node: select$5(),
|
|
259
259
|
variables: {},
|
|
260
260
|
}, snapshotRefresh);
|
|
261
261
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -272,7 +272,7 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
272
272
|
const storeMetadataParams = {
|
|
273
273
|
ttl: TTL$2,
|
|
274
274
|
namespace: keyPrefix,
|
|
275
|
-
version: VERSION$
|
|
275
|
+
version: VERSION$3,
|
|
276
276
|
representationName: RepresentationType$2
|
|
277
277
|
};
|
|
278
278
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -336,7 +336,7 @@ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
|
336
336
|
}
|
|
337
337
|
function adapterFragment$1(luvio, config) {
|
|
338
338
|
createResourceParams$2(config);
|
|
339
|
-
return select$
|
|
339
|
+
return select$5();
|
|
340
340
|
}
|
|
341
341
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
342
342
|
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
@@ -392,8 +392,86 @@ const getBusinessHoursAdapterFactory = (luvio) => function Milestones__getBusine
|
|
|
392
392
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
393
393
|
};
|
|
394
394
|
|
|
395
|
+
const VERSION$2 = "c81705fecab6e7f97ab7b43668f122b7";
|
|
396
|
+
function validate$2(obj, path = 'MilestoneRelationshipDetailsRepresentation') {
|
|
397
|
+
const v_error = (() => {
|
|
398
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
399
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
400
|
+
}
|
|
401
|
+
const obj_entityRelationshipType = obj.entityRelationshipType;
|
|
402
|
+
const path_entityRelationshipType = path + '.entityRelationshipType';
|
|
403
|
+
if (typeof obj_entityRelationshipType !== 'string') {
|
|
404
|
+
return new TypeError('Expected "string" but received "' + typeof obj_entityRelationshipType + '" (at "' + path_entityRelationshipType + '")');
|
|
405
|
+
}
|
|
406
|
+
const obj_linkedEntityId = obj.linkedEntityId;
|
|
407
|
+
const path_linkedEntityId = path + '.linkedEntityId';
|
|
408
|
+
if (typeof obj_linkedEntityId !== 'string') {
|
|
409
|
+
return new TypeError('Expected "string" but received "' + typeof obj_linkedEntityId + '" (at "' + path_linkedEntityId + '")');
|
|
410
|
+
}
|
|
411
|
+
const obj_linkedEntityNumber = obj.linkedEntityNumber;
|
|
412
|
+
const path_linkedEntityNumber = path + '.linkedEntityNumber';
|
|
413
|
+
if (typeof obj_linkedEntityNumber !== 'string') {
|
|
414
|
+
return new TypeError('Expected "string" but received "' + typeof obj_linkedEntityNumber + '" (at "' + path_linkedEntityNumber + '")');
|
|
415
|
+
}
|
|
416
|
+
const obj_relatedMilestoneId = obj.relatedMilestoneId;
|
|
417
|
+
const path_relatedMilestoneId = path + '.relatedMilestoneId';
|
|
418
|
+
if (typeof obj_relatedMilestoneId !== 'string') {
|
|
419
|
+
return new TypeError('Expected "string" but received "' + typeof obj_relatedMilestoneId + '" (at "' + path_relatedMilestoneId + '")');
|
|
420
|
+
}
|
|
421
|
+
})();
|
|
422
|
+
return v_error === undefined ? null : v_error;
|
|
423
|
+
}
|
|
424
|
+
const select$4 = function MilestoneRelationshipDetailsRepresentationSelect() {
|
|
425
|
+
return {
|
|
426
|
+
kind: 'Fragment',
|
|
427
|
+
version: VERSION$2,
|
|
428
|
+
private: [],
|
|
429
|
+
selections: [
|
|
430
|
+
{
|
|
431
|
+
name: 'entityRelationshipType',
|
|
432
|
+
kind: 'Scalar'
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
name: 'linkedEntityId',
|
|
436
|
+
kind: 'Scalar'
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
name: 'linkedEntityNumber',
|
|
440
|
+
kind: 'Scalar'
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: 'relatedMilestoneId',
|
|
444
|
+
kind: 'Scalar'
|
|
445
|
+
}
|
|
446
|
+
]
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
function equals$2(existing, incoming) {
|
|
450
|
+
const existing_entityRelationshipType = existing.entityRelationshipType;
|
|
451
|
+
const incoming_entityRelationshipType = incoming.entityRelationshipType;
|
|
452
|
+
if (!(existing_entityRelationshipType === incoming_entityRelationshipType)) {
|
|
453
|
+
return false;
|
|
454
|
+
}
|
|
455
|
+
const existing_linkedEntityId = existing.linkedEntityId;
|
|
456
|
+
const incoming_linkedEntityId = incoming.linkedEntityId;
|
|
457
|
+
if (!(existing_linkedEntityId === incoming_linkedEntityId)) {
|
|
458
|
+
return false;
|
|
459
|
+
}
|
|
460
|
+
const existing_linkedEntityNumber = existing.linkedEntityNumber;
|
|
461
|
+
const incoming_linkedEntityNumber = incoming.linkedEntityNumber;
|
|
462
|
+
if (!(existing_linkedEntityNumber === incoming_linkedEntityNumber)) {
|
|
463
|
+
return false;
|
|
464
|
+
}
|
|
465
|
+
const existing_relatedMilestoneId = existing.relatedMilestoneId;
|
|
466
|
+
const incoming_relatedMilestoneId = incoming.relatedMilestoneId;
|
|
467
|
+
if (!(existing_relatedMilestoneId === incoming_relatedMilestoneId)) {
|
|
468
|
+
return false;
|
|
469
|
+
}
|
|
470
|
+
return true;
|
|
471
|
+
}
|
|
472
|
+
|
|
395
473
|
const TTL$1 = 100;
|
|
396
|
-
const VERSION$1 = "
|
|
474
|
+
const VERSION$1 = "80c544b00a7392fb2e02d7beb9f5c872";
|
|
397
475
|
function validate$1(obj, path = 'MilestonesDataManagerRepresentation') {
|
|
398
476
|
const v_error = (() => {
|
|
399
477
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -465,6 +543,21 @@ function validate$1(obj, path = 'MilestonesDataManagerRepresentation') {
|
|
|
465
543
|
return new TypeError('Expected "string" but received "' + typeof obj_milestoneAgreementTypeMap_prop + '" (at "' + path_milestoneAgreementTypeMap_prop + '")');
|
|
466
544
|
}
|
|
467
545
|
}
|
|
546
|
+
const obj_milestoneRelationshipDetails = obj.milestoneRelationshipDetails;
|
|
547
|
+
const path_milestoneRelationshipDetails = path + '.milestoneRelationshipDetails';
|
|
548
|
+
if (!ArrayIsArray(obj_milestoneRelationshipDetails)) {
|
|
549
|
+
return new TypeError('Expected "array" but received "' + typeof obj_milestoneRelationshipDetails + '" (at "' + path_milestoneRelationshipDetails + '")');
|
|
550
|
+
}
|
|
551
|
+
for (let i = 0; i < obj_milestoneRelationshipDetails.length; i++) {
|
|
552
|
+
const obj_milestoneRelationshipDetails_item = obj_milestoneRelationshipDetails[i];
|
|
553
|
+
const path_milestoneRelationshipDetails_item = path_milestoneRelationshipDetails + '[' + i + ']';
|
|
554
|
+
const referencepath_milestoneRelationshipDetails_itemValidationError = validate$2(obj_milestoneRelationshipDetails_item, path_milestoneRelationshipDetails_item);
|
|
555
|
+
if (referencepath_milestoneRelationshipDetails_itemValidationError !== null) {
|
|
556
|
+
let message = 'Object doesn\'t match MilestoneRelationshipDetailsRepresentation (at "' + path_milestoneRelationshipDetails_item + '")\n';
|
|
557
|
+
message += referencepath_milestoneRelationshipDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
558
|
+
return new TypeError(message);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
468
561
|
const obj_overdueMilestoneIgnoreBusinessHours = obj.overdueMilestoneIgnoreBusinessHours;
|
|
469
562
|
const path_overdueMilestoneIgnoreBusinessHours = path + '.overdueMilestoneIgnoreBusinessHours';
|
|
470
563
|
let obj_overdueMilestoneIgnoreBusinessHours_union0 = null;
|
|
@@ -563,6 +656,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
563
656
|
return input;
|
|
564
657
|
}
|
|
565
658
|
const select$3 = function MilestonesDataManagerRepresentationSelect() {
|
|
659
|
+
const { selections: MilestoneRelationshipDetailsRepresentation__selections, opaque: MilestoneRelationshipDetailsRepresentation__opaque, } = select$4();
|
|
566
660
|
return {
|
|
567
661
|
kind: 'Fragment',
|
|
568
662
|
version: VERSION$1,
|
|
@@ -587,6 +681,12 @@ const select$3 = function MilestonesDataManagerRepresentationSelect() {
|
|
|
587
681
|
kind: 'Scalar',
|
|
588
682
|
map: true
|
|
589
683
|
},
|
|
684
|
+
{
|
|
685
|
+
name: 'milestoneRelationshipDetails',
|
|
686
|
+
kind: 'Object',
|
|
687
|
+
plural: true,
|
|
688
|
+
selections: MilestoneRelationshipDetailsRepresentation__selections
|
|
689
|
+
},
|
|
590
690
|
{
|
|
591
691
|
name: 'overdueMilestoneIgnoreBusinessHours',
|
|
592
692
|
kind: 'Scalar'
|
|
@@ -643,6 +743,16 @@ function equals$1(existing, incoming) {
|
|
|
643
743
|
if (equals_milestoneAgreementTypeMap_props === false) {
|
|
644
744
|
return false;
|
|
645
745
|
}
|
|
746
|
+
const existing_milestoneRelationshipDetails = existing.milestoneRelationshipDetails;
|
|
747
|
+
const incoming_milestoneRelationshipDetails = incoming.milestoneRelationshipDetails;
|
|
748
|
+
const equals_milestoneRelationshipDetails_items = equalsArray(existing_milestoneRelationshipDetails, incoming_milestoneRelationshipDetails, (existing_milestoneRelationshipDetails_item, incoming_milestoneRelationshipDetails_item) => {
|
|
749
|
+
if (!(equals$2(existing_milestoneRelationshipDetails_item, incoming_milestoneRelationshipDetails_item))) {
|
|
750
|
+
return false;
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
if (equals_milestoneRelationshipDetails_items === false) {
|
|
754
|
+
return false;
|
|
755
|
+
}
|
|
646
756
|
const existing_overdueMilestoneIgnoreBusinessHours = existing.overdueMilestoneIgnoreBusinessHours;
|
|
647
757
|
const incoming_overdueMilestoneIgnoreBusinessHours = incoming.overdueMilestoneIgnoreBusinessHours;
|
|
648
758
|
if (!(existing_overdueMilestoneIgnoreBusinessHours === incoming_overdueMilestoneIgnoreBusinessHours)) {
|
|
@@ -1080,4 +1190,4 @@ withDefaultLuvio((luvio) => {
|
|
|
1080
1190
|
});
|
|
1081
1191
|
|
|
1082
1192
|
export { getBusinessHours, getBusinessHours_imperative, getMilestonesDataManager, getMilestonesDataManager_imperative, markMilestoneCompleted };
|
|
1083
|
-
// version: 1.
|
|
1193
|
+
// version: 1.397.0-006831ea37
|
package/src/raml/api.raml
CHANGED
|
@@ -45,6 +45,23 @@ types:
|
|
|
45
45
|
completed:
|
|
46
46
|
description: Completed Status of the Milestone
|
|
47
47
|
type: boolean | nil
|
|
48
|
+
MilestoneRelationshipDetailsRepresentation:
|
|
49
|
+
description: Milestone relationship details with other linked entity
|
|
50
|
+
type: object
|
|
51
|
+
properties:
|
|
52
|
+
relatedMilestoneId:
|
|
53
|
+
description: Milestone ID of related entity
|
|
54
|
+
type: string
|
|
55
|
+
entityRelationshipType:
|
|
56
|
+
description: Relationship type of related entity
|
|
57
|
+
type: string
|
|
58
|
+
enum: [PARENT, CHILD, RELATED]
|
|
59
|
+
linkedEntityId:
|
|
60
|
+
description: ID of linked entity
|
|
61
|
+
type: string
|
|
62
|
+
linkedEntityNumber:
|
|
63
|
+
description: Entity number of related entity
|
|
64
|
+
type: string
|
|
48
65
|
MilestonesDataManagerRepresentation:
|
|
49
66
|
description: Milestone Data Manager Representation Description
|
|
50
67
|
type: object
|
|
@@ -83,6 +100,12 @@ types:
|
|
|
83
100
|
overdueMilestoneIgnoreBusinessHours:
|
|
84
101
|
description: Get Overdue Milestone Ignore Business Hours
|
|
85
102
|
type: boolean | nil
|
|
103
|
+
milestoneRelationshipDetails:
|
|
104
|
+
description: List of milestone relationship details
|
|
105
|
+
type: array
|
|
106
|
+
items:
|
|
107
|
+
type: MilestoneRelationshipDetailsRepresentation
|
|
108
|
+
|
|
86
109
|
/connect:
|
|
87
110
|
/milestones/business-hours:
|
|
88
111
|
get:
|