@salesforce/lds-adapters-platform-enablement 1.244.0 → 1.245.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/platform-enablement.js +352 -101
- package/dist/es/es2018/types/src/generated/adapters/selfEnrollInEnablementProgram.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/unenrollFromEnablementProgram.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectEnablementProgramActionsEnrollByEnablementProgramId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectEnablementProgramActionsUnenrollByEnablementProgramId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/types/EnablementProgramSelfEnrollmentRepresentation.d.ts +38 -0
- package/package.json +1 -1
- package/sfdc/index.js +421 -160
- package/src/raml/api.raml +36 -0
- package/src/raml/luvio.raml +13 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$5, StoreKeyMap, createResourceParams as createResourceParams$5 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -98,8 +98,8 @@ var DiscriminatorValues;
|
|
|
98
98
|
DiscriminatorValues["Section"] = "Section";
|
|
99
99
|
DiscriminatorValues["Milestone"] = "Milestone";
|
|
100
100
|
})(DiscriminatorValues || (DiscriminatorValues = {}));
|
|
101
|
-
const VERSION$
|
|
102
|
-
function validate$
|
|
101
|
+
const VERSION$4 = "a9470f37b0d95500b425222897fff882";
|
|
102
|
+
function validate$4(obj, path = 'EnablementProgramSummaryItemRepresentation') {
|
|
103
103
|
const v_error = (() => {
|
|
104
104
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
105
105
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -132,10 +132,10 @@ function validate$3(obj, path = 'EnablementProgramSummaryItemRepresentation') {
|
|
|
132
132
|
})();
|
|
133
133
|
return v_error === undefined ? null : v_error;
|
|
134
134
|
}
|
|
135
|
-
const select$
|
|
135
|
+
const select$9 = function EnablementProgramSummaryItemRepresentationSelect() {
|
|
136
136
|
return {
|
|
137
137
|
kind: 'Fragment',
|
|
138
|
-
version: VERSION$
|
|
138
|
+
version: VERSION$4,
|
|
139
139
|
private: [],
|
|
140
140
|
selections: [
|
|
141
141
|
{
|
|
@@ -161,7 +161,7 @@ const select$6 = function EnablementProgramSummaryItemRepresentationSelect() {
|
|
|
161
161
|
]
|
|
162
162
|
};
|
|
163
163
|
};
|
|
164
|
-
function equals$
|
|
164
|
+
function equals$4(existing, incoming) {
|
|
165
165
|
const existing_sequenceNumber = existing.sequenceNumber;
|
|
166
166
|
const incoming_sequenceNumber = incoming.sequenceNumber;
|
|
167
167
|
if (!(existing_sequenceNumber === incoming_sequenceNumber)) {
|
|
@@ -190,9 +190,9 @@ function equals$3(existing, incoming) {
|
|
|
190
190
|
return true;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
const VERSION$
|
|
194
|
-
function validate$
|
|
195
|
-
const validateEnablementProgramSummaryItemRepresentation_validateError = validate$
|
|
193
|
+
const VERSION$3 = "089f71c87963595d39413fc588e5385b";
|
|
194
|
+
function validate$3(obj, path = 'EnablementProgramSummaryMilestoneRepresentation') {
|
|
195
|
+
const validateEnablementProgramSummaryItemRepresentation_validateError = validate$4(obj, path);
|
|
196
196
|
if (validateEnablementProgramSummaryItemRepresentation_validateError !== null) {
|
|
197
197
|
return validateEnablementProgramSummaryItemRepresentation_validateError;
|
|
198
198
|
}
|
|
@@ -494,11 +494,11 @@ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation
|
|
|
494
494
|
})();
|
|
495
495
|
return v_error === undefined ? null : v_error;
|
|
496
496
|
}
|
|
497
|
-
const select$
|
|
498
|
-
const { selections: EnablementProgramSummaryItemRepresentationSelections } = select$
|
|
497
|
+
const select$8 = function EnablementProgramSummaryMilestoneRepresentationSelect() {
|
|
498
|
+
const { selections: EnablementProgramSummaryItemRepresentationSelections } = select$9();
|
|
499
499
|
return {
|
|
500
500
|
kind: 'Fragment',
|
|
501
|
-
version: VERSION$
|
|
501
|
+
version: VERSION$3,
|
|
502
502
|
private: [],
|
|
503
503
|
selections: [
|
|
504
504
|
...EnablementProgramSummaryItemRepresentationSelections,
|
|
@@ -553,8 +553,8 @@ const select$5 = function EnablementProgramSummaryMilestoneRepresentationSelect(
|
|
|
553
553
|
]
|
|
554
554
|
};
|
|
555
555
|
};
|
|
556
|
-
function equals$
|
|
557
|
-
if (equals$
|
|
556
|
+
function equals$3(existing, incoming) {
|
|
557
|
+
if (equals$4(existing, incoming) === false) {
|
|
558
558
|
return false;
|
|
559
559
|
}
|
|
560
560
|
const existing_programDay = existing.programDay;
|
|
@@ -620,9 +620,9 @@ function equals$2(existing, incoming) {
|
|
|
620
620
|
return true;
|
|
621
621
|
}
|
|
622
622
|
|
|
623
|
-
const TTL = 15000;
|
|
624
|
-
const VERSION$
|
|
625
|
-
function validate$
|
|
623
|
+
const TTL$1 = 15000;
|
|
624
|
+
const VERSION$2 = "8c024832561adc9be3b12d390c61abe5";
|
|
625
|
+
function validate$2(obj, path = 'EnablementProgramSummaryRepresentation') {
|
|
626
626
|
const v_error = (() => {
|
|
627
627
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
628
628
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -752,7 +752,7 @@ function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
|
|
|
752
752
|
const path_outcome = path + '.outcome';
|
|
753
753
|
let obj_outcome_union0 = null;
|
|
754
754
|
const obj_outcome_union0_error = (() => {
|
|
755
|
-
const referencepath_outcomeValidationError = validate$
|
|
755
|
+
const referencepath_outcomeValidationError = validate$3(obj_outcome, path_outcome);
|
|
756
756
|
if (referencepath_outcomeValidationError !== null) {
|
|
757
757
|
let message = 'Object doesn\'t match EnablementProgramSummaryMilestoneRepresentation (at "' + path_outcome + '")\n';
|
|
758
758
|
message += referencepath_outcomeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -839,24 +839,24 @@ function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
|
|
|
839
839
|
})();
|
|
840
840
|
return v_error === undefined ? null : v_error;
|
|
841
841
|
}
|
|
842
|
-
const RepresentationType$
|
|
843
|
-
function keyBuilder$
|
|
844
|
-
return keyPrefix + '::' + RepresentationType$
|
|
842
|
+
const RepresentationType$2 = 'EnablementProgramSummaryRepresentation';
|
|
843
|
+
function keyBuilder$7(luvio, config) {
|
|
844
|
+
return keyPrefix + '::' + RepresentationType$2 + ':' + (config.enablement_program_id === null ? '' : config.enablement_program_id);
|
|
845
845
|
}
|
|
846
|
-
function keyBuilderFromType(luvio, object) {
|
|
846
|
+
function keyBuilderFromType$1(luvio, object) {
|
|
847
847
|
const keyParams = {
|
|
848
848
|
enablement_program_id: object.id
|
|
849
849
|
};
|
|
850
|
-
return keyBuilder$
|
|
850
|
+
return keyBuilder$7(luvio, keyParams);
|
|
851
851
|
}
|
|
852
|
-
function normalize$
|
|
852
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
853
853
|
return input;
|
|
854
854
|
}
|
|
855
|
-
const select$
|
|
856
|
-
const { selections: EnablementProgramSummaryMilestoneRepresentation__selections, opaque: EnablementProgramSummaryMilestoneRepresentation__opaque, } = select$
|
|
855
|
+
const select$7 = function EnablementProgramSummaryRepresentationSelect() {
|
|
856
|
+
const { selections: EnablementProgramSummaryMilestoneRepresentation__selections, opaque: EnablementProgramSummaryMilestoneRepresentation__opaque, } = select$8();
|
|
857
857
|
return {
|
|
858
858
|
kind: 'Fragment',
|
|
859
|
-
version: VERSION$
|
|
859
|
+
version: VERSION$2,
|
|
860
860
|
private: [],
|
|
861
861
|
selections: [
|
|
862
862
|
{
|
|
@@ -906,7 +906,7 @@ const select$4 = function EnablementProgramSummaryRepresentationSelect() {
|
|
|
906
906
|
]
|
|
907
907
|
};
|
|
908
908
|
};
|
|
909
|
-
function equals$
|
|
909
|
+
function equals$2(existing, incoming) {
|
|
910
910
|
const existing_doesAllowSelfEnrollment = existing.doesAllowSelfEnrollment;
|
|
911
911
|
const incoming_doesAllowSelfEnrollment = incoming.doesAllowSelfEnrollment;
|
|
912
912
|
if (!(existing_doesAllowSelfEnrollment === incoming_doesAllowSelfEnrollment)) {
|
|
@@ -952,7 +952,7 @@ function equals$1(existing, incoming) {
|
|
|
952
952
|
if (!(existing_outcome === incoming_outcome
|
|
953
953
|
|| (existing_outcome != null &&
|
|
954
954
|
incoming_outcome != null &&
|
|
955
|
-
equals$
|
|
955
|
+
equals$3(existing_outcome, incoming_outcome)))) {
|
|
956
956
|
return false;
|
|
957
957
|
}
|
|
958
958
|
const existing_systemModStamp = existing.systemModStamp;
|
|
@@ -975,30 +975,30 @@ function equals$1(existing, incoming) {
|
|
|
975
975
|
}
|
|
976
976
|
return true;
|
|
977
977
|
}
|
|
978
|
-
const ingest$
|
|
978
|
+
const ingest$2 = function EnablementProgramSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
979
979
|
if (process.env.NODE_ENV !== 'production') {
|
|
980
|
-
const validateError = validate$
|
|
980
|
+
const validateError = validate$2(input);
|
|
981
981
|
if (validateError !== null) {
|
|
982
982
|
throw validateError;
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
const key = keyBuilderFromType(luvio, input);
|
|
986
|
-
const ttlToUse = TTL;
|
|
987
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
985
|
+
const key = keyBuilderFromType$1(luvio, input);
|
|
986
|
+
const ttlToUse = TTL$1;
|
|
987
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "enablement", VERSION$2, RepresentationType$2, equals$2);
|
|
988
988
|
return createLink(key);
|
|
989
989
|
};
|
|
990
|
-
function getTypeCacheKeys$
|
|
990
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
991
991
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
992
|
-
const rootKey = keyBuilderFromType(luvio, input);
|
|
992
|
+
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
993
993
|
rootKeySet.set(rootKey, {
|
|
994
994
|
namespace: keyPrefix,
|
|
995
|
-
representationName: RepresentationType$
|
|
995
|
+
representationName: RepresentationType$2,
|
|
996
996
|
mergeable: false
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
999
|
|
|
1000
|
-
const VERSION = "7ef7adad59a82a6a2a4ab4ba77434b67";
|
|
1001
|
-
function validate(obj, path = 'EnablementProgramSummaryListRepresentation') {
|
|
1000
|
+
const VERSION$1 = "7ef7adad59a82a6a2a4ab4ba77434b67";
|
|
1001
|
+
function validate$1(obj, path = 'EnablementProgramSummaryListRepresentation') {
|
|
1002
1002
|
const v_error = (() => {
|
|
1003
1003
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1004
1004
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1023,14 +1023,14 @@ function validate(obj, path = 'EnablementProgramSummaryListRepresentation') {
|
|
|
1023
1023
|
})();
|
|
1024
1024
|
return v_error === undefined ? null : v_error;
|
|
1025
1025
|
}
|
|
1026
|
-
const RepresentationType = 'EnablementProgramSummaryListRepresentation';
|
|
1027
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1026
|
+
const RepresentationType$1 = 'EnablementProgramSummaryListRepresentation';
|
|
1027
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
1028
1028
|
const input_programSummaryList = input.programSummaryList;
|
|
1029
1029
|
const input_programSummaryList_id = path.fullPath + '__programSummaryList';
|
|
1030
1030
|
for (let i = 0; i < input_programSummaryList.length; i++) {
|
|
1031
1031
|
const input_programSummaryList_item = input_programSummaryList[i];
|
|
1032
1032
|
let input_programSummaryList_item_id = input_programSummaryList_id + '__' + i;
|
|
1033
|
-
input_programSummaryList[i] = ingest$
|
|
1033
|
+
input_programSummaryList[i] = ingest$2(input_programSummaryList_item, {
|
|
1034
1034
|
fullPath: input_programSummaryList_item_id,
|
|
1035
1035
|
propertyName: i,
|
|
1036
1036
|
parent: {
|
|
@@ -1043,10 +1043,10 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
return input;
|
|
1045
1045
|
}
|
|
1046
|
-
const select$
|
|
1046
|
+
const select$6 = function EnablementProgramSummaryListRepresentationSelect() {
|
|
1047
1047
|
return {
|
|
1048
1048
|
kind: 'Fragment',
|
|
1049
|
-
version: VERSION,
|
|
1049
|
+
version: VERSION$1,
|
|
1050
1050
|
private: [],
|
|
1051
1051
|
selections: [
|
|
1052
1052
|
{
|
|
@@ -1057,12 +1057,12 @@ const select$3 = function EnablementProgramSummaryListRepresentationSelect() {
|
|
|
1057
1057
|
name: 'programSummaryList',
|
|
1058
1058
|
kind: 'Link',
|
|
1059
1059
|
plural: true,
|
|
1060
|
-
fragment: select$
|
|
1060
|
+
fragment: select$7()
|
|
1061
1061
|
}
|
|
1062
1062
|
]
|
|
1063
1063
|
};
|
|
1064
1064
|
};
|
|
1065
|
-
function equals(existing, incoming) {
|
|
1065
|
+
function equals$1(existing, incoming) {
|
|
1066
1066
|
const existing_hasMore = existing.hasMore;
|
|
1067
1067
|
const incoming_hasMore = incoming.hasMore;
|
|
1068
1068
|
if (!(existing_hasMore === incoming_hasMore)) {
|
|
@@ -1080,48 +1080,48 @@ function equals(existing, incoming) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
return true;
|
|
1082
1082
|
}
|
|
1083
|
-
const ingest = function EnablementProgramSummaryListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1083
|
+
const ingest$1 = function EnablementProgramSummaryListRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1084
1084
|
if (process.env.NODE_ENV !== 'production') {
|
|
1085
|
-
const validateError = validate(input);
|
|
1085
|
+
const validateError = validate$1(input);
|
|
1086
1086
|
if (validateError !== null) {
|
|
1087
1087
|
throw validateError;
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
const key = path.fullPath;
|
|
1091
1091
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 15000;
|
|
1092
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "enablement", VERSION, RepresentationType, equals);
|
|
1092
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "enablement", VERSION$1, RepresentationType$1, equals$1);
|
|
1093
1093
|
return createLink(key);
|
|
1094
1094
|
};
|
|
1095
|
-
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
1095
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1096
1096
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1097
1097
|
const rootKey = fullPathFactory();
|
|
1098
1098
|
rootKeySet.set(rootKey, {
|
|
1099
1099
|
namespace: keyPrefix,
|
|
1100
|
-
representationName: RepresentationType,
|
|
1100
|
+
representationName: RepresentationType$1,
|
|
1101
1101
|
mergeable: false
|
|
1102
1102
|
});
|
|
1103
1103
|
const input_programSummaryList_length = input.programSummaryList.length;
|
|
1104
1104
|
for (let i = 0; i < input_programSummaryList_length; i++) {
|
|
1105
|
-
getTypeCacheKeys$
|
|
1105
|
+
getTypeCacheKeys$2(rootKeySet, luvio, input.programSummaryList[i]);
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
1108
1108
|
|
|
1109
|
-
function select$
|
|
1110
|
-
return select$
|
|
1109
|
+
function select$5(luvio, params) {
|
|
1110
|
+
return select$6();
|
|
1111
1111
|
}
|
|
1112
|
-
function keyBuilder$
|
|
1112
|
+
function keyBuilder$6(luvio, params) {
|
|
1113
1113
|
return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'communityId:' + params.urlParams.communityId + ')';
|
|
1114
1114
|
}
|
|
1115
|
-
function getResponseCacheKeys$
|
|
1116
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$
|
|
1115
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
1116
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
1117
1117
|
}
|
|
1118
|
-
function ingestSuccess$
|
|
1118
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
1119
1119
|
const { body } = response;
|
|
1120
|
-
const key = keyBuilder$
|
|
1121
|
-
luvio.storeIngest(key, ingest, body);
|
|
1120
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
1121
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1122
1122
|
const snapshot = luvio.storeLookup({
|
|
1123
1123
|
recordId: key,
|
|
1124
|
-
node: select$
|
|
1124
|
+
node: select$5(),
|
|
1125
1125
|
variables: {},
|
|
1126
1126
|
}, snapshotRefresh);
|
|
1127
1127
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1133,12 +1133,12 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1133
1133
|
return snapshot;
|
|
1134
1134
|
}
|
|
1135
1135
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1136
|
-
const key = keyBuilder$
|
|
1136
|
+
const key = keyBuilder$6(luvio, params);
|
|
1137
1137
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1138
1138
|
luvio.storeIngestError(key, errorSnapshot);
|
|
1139
1139
|
return errorSnapshot;
|
|
1140
1140
|
}
|
|
1141
|
-
function createResourceRequest$
|
|
1141
|
+
function createResourceRequest$4(config) {
|
|
1142
1142
|
const headers = {};
|
|
1143
1143
|
return {
|
|
1144
1144
|
baseUri: '/services/data/v60.0',
|
|
@@ -1152,63 +1152,63 @@ function createResourceRequest$2(config) {
|
|
|
1152
1152
|
};
|
|
1153
1153
|
}
|
|
1154
1154
|
|
|
1155
|
-
const adapterName$
|
|
1155
|
+
const adapterName$4 = 'getAssignedEnablementProgramSummaryForCommunity';
|
|
1156
1156
|
const getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyMetadata = [
|
|
1157
1157
|
generateParamConfigMetadata('communityId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1158
1158
|
generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
|
|
1159
1159
|
generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1160
1160
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1161
1161
|
];
|
|
1162
|
-
const getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1163
|
-
const createResourceParams$
|
|
1164
|
-
function keyBuilder$
|
|
1165
|
-
const resourceParams = createResourceParams$
|
|
1166
|
-
return keyBuilder$
|
|
1162
|
+
const getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyMetadata);
|
|
1163
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyMetadata);
|
|
1164
|
+
function keyBuilder$5(luvio, config) {
|
|
1165
|
+
const resourceParams = createResourceParams$4(config);
|
|
1166
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
1167
1167
|
}
|
|
1168
|
-
function typeCheckConfig$
|
|
1168
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
1169
1169
|
const config = {};
|
|
1170
|
-
typeCheckConfig$
|
|
1170
|
+
typeCheckConfig$5(untrustedConfig, config, getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyMetadata);
|
|
1171
1171
|
return config;
|
|
1172
1172
|
}
|
|
1173
|
-
function validateAdapterConfig$
|
|
1173
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
1174
1174
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1175
1175
|
return null;
|
|
1176
1176
|
}
|
|
1177
1177
|
if (process.env.NODE_ENV !== 'production') {
|
|
1178
1178
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1179
1179
|
}
|
|
1180
|
-
const config = typeCheckConfig$
|
|
1180
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
1181
1181
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1182
1182
|
return null;
|
|
1183
1183
|
}
|
|
1184
1184
|
return config;
|
|
1185
1185
|
}
|
|
1186
1186
|
function adapterFragment$2(luvio, config) {
|
|
1187
|
-
createResourceParams$
|
|
1188
|
-
return select$
|
|
1187
|
+
createResourceParams$4(config);
|
|
1188
|
+
return select$5();
|
|
1189
1189
|
}
|
|
1190
1190
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1191
|
-
const snapshot = ingestSuccess$
|
|
1191
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
1192
1192
|
config,
|
|
1193
|
-
resolve: () => buildNetworkSnapshot$
|
|
1193
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1194
1194
|
});
|
|
1195
1195
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1196
1196
|
}
|
|
1197
1197
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
1198
1198
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
1199
1199
|
config,
|
|
1200
|
-
resolve: () => buildNetworkSnapshot$
|
|
1200
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1201
1201
|
});
|
|
1202
1202
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1203
1203
|
}
|
|
1204
|
-
function buildNetworkSnapshot$
|
|
1205
|
-
const resourceParams = createResourceParams$
|
|
1206
|
-
const request = createResourceRequest$
|
|
1204
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
1205
|
+
const resourceParams = createResourceParams$4(config);
|
|
1206
|
+
const request = createResourceRequest$4(resourceParams);
|
|
1207
1207
|
return luvio.dispatchResourceRequest(request, options)
|
|
1208
1208
|
.then((response) => {
|
|
1209
1209
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
1210
1210
|
const cache = new StoreKeyMap();
|
|
1211
|
-
getResponseCacheKeys$
|
|
1211
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1212
1212
|
return cache;
|
|
1213
1213
|
});
|
|
1214
1214
|
}, (response) => {
|
|
@@ -1216,23 +1216,23 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
1218
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1219
|
-
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
1219
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
1220
1220
|
}
|
|
1221
1221
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1222
1222
|
const { luvio, config } = context;
|
|
1223
1223
|
const selector = {
|
|
1224
|
-
recordId: keyBuilder$
|
|
1224
|
+
recordId: keyBuilder$5(luvio, config),
|
|
1225
1225
|
node: adapterFragment$2(luvio, config),
|
|
1226
1226
|
variables: {},
|
|
1227
1227
|
};
|
|
1228
1228
|
const cacheSnapshot = storeLookup(selector, {
|
|
1229
1229
|
config,
|
|
1230
|
-
resolve: () => buildNetworkSnapshot$
|
|
1230
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
1231
1231
|
});
|
|
1232
1232
|
return cacheSnapshot;
|
|
1233
1233
|
}
|
|
1234
1234
|
const getAssignedEnablementProgramSummaryForCommunityAdapterFactory = (luvio) => function enablement__getAssignedEnablementProgramSummaryForCommunity(untrustedConfig, requestContext) {
|
|
1235
|
-
const config = validateAdapterConfig$
|
|
1235
|
+
const config = validateAdapterConfig$4(untrustedConfig, getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyNames);
|
|
1236
1236
|
// Invalid or incomplete config
|
|
1237
1237
|
if (config === null) {
|
|
1238
1238
|
return null;
|
|
@@ -1241,19 +1241,270 @@ const getAssignedEnablementProgramSummaryForCommunityAdapterFactory = (luvio) =>
|
|
|
1241
1241
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1242
1242
|
};
|
|
1243
1243
|
|
|
1244
|
+
const TTL = 15000;
|
|
1245
|
+
const VERSION = "f87a4ca2a25d6b000ce11b00273a58f4";
|
|
1246
|
+
function validate(obj, path = 'EnablementProgramSelfEnrollmentRepresentation') {
|
|
1247
|
+
const v_error = (() => {
|
|
1248
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1249
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1250
|
+
}
|
|
1251
|
+
const obj_learningItemAssignmentId = obj.learningItemAssignmentId;
|
|
1252
|
+
const path_learningItemAssignmentId = path + '.learningItemAssignmentId';
|
|
1253
|
+
if (typeof obj_learningItemAssignmentId !== 'string') {
|
|
1254
|
+
return new TypeError('Expected "string" but received "' + typeof obj_learningItemAssignmentId + '" (at "' + path_learningItemAssignmentId + '")');
|
|
1255
|
+
}
|
|
1256
|
+
})();
|
|
1257
|
+
return v_error === undefined ? null : v_error;
|
|
1258
|
+
}
|
|
1259
|
+
const RepresentationType = 'EnablementProgramSelfEnrollmentRepresentation';
|
|
1260
|
+
function keyBuilder$4(luvio, config) {
|
|
1261
|
+
return keyPrefix + '::' + RepresentationType + ':' + config.learning_item_assignment_id;
|
|
1262
|
+
}
|
|
1263
|
+
function keyBuilderFromType(luvio, object) {
|
|
1264
|
+
const keyParams = {
|
|
1265
|
+
learning_item_assignment_id: object.learningItemAssignmentId
|
|
1266
|
+
};
|
|
1267
|
+
return keyBuilder$4(luvio, keyParams);
|
|
1268
|
+
}
|
|
1269
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
1270
|
+
return input;
|
|
1271
|
+
}
|
|
1272
|
+
const select$4 = function EnablementProgramSelfEnrollmentRepresentationSelect() {
|
|
1273
|
+
return {
|
|
1274
|
+
kind: 'Fragment',
|
|
1275
|
+
version: VERSION,
|
|
1276
|
+
private: [],
|
|
1277
|
+
selections: [
|
|
1278
|
+
{
|
|
1279
|
+
name: 'learningItemAssignmentId',
|
|
1280
|
+
kind: 'Scalar'
|
|
1281
|
+
}
|
|
1282
|
+
]
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
function equals(existing, incoming) {
|
|
1286
|
+
const existing_learningItemAssignmentId = existing.learningItemAssignmentId;
|
|
1287
|
+
const incoming_learningItemAssignmentId = incoming.learningItemAssignmentId;
|
|
1288
|
+
if (!(existing_learningItemAssignmentId === incoming_learningItemAssignmentId)) {
|
|
1289
|
+
return false;
|
|
1290
|
+
}
|
|
1291
|
+
return true;
|
|
1292
|
+
}
|
|
1293
|
+
const ingest = function EnablementProgramSelfEnrollmentRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1294
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1295
|
+
const validateError = validate(input);
|
|
1296
|
+
if (validateError !== null) {
|
|
1297
|
+
throw validateError;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
const key = keyBuilderFromType(luvio, input);
|
|
1301
|
+
const ttlToUse = TTL;
|
|
1302
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "enablement", VERSION, RepresentationType, equals);
|
|
1303
|
+
return createLink(key);
|
|
1304
|
+
};
|
|
1305
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
1306
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1307
|
+
const rootKey = keyBuilderFromType(luvio, input);
|
|
1308
|
+
rootKeySet.set(rootKey, {
|
|
1309
|
+
namespace: keyPrefix,
|
|
1310
|
+
representationName: RepresentationType,
|
|
1311
|
+
mergeable: false
|
|
1312
|
+
});
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
function select$3(luvio, params) {
|
|
1316
|
+
return select$4();
|
|
1317
|
+
}
|
|
1318
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
1319
|
+
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
1320
|
+
}
|
|
1321
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
1322
|
+
const { body } = response;
|
|
1323
|
+
const key = keyBuilderFromType(luvio, body);
|
|
1324
|
+
luvio.storeIngest(key, ingest, body);
|
|
1325
|
+
const snapshot = luvio.storeLookup({
|
|
1326
|
+
recordId: key,
|
|
1327
|
+
node: select$3(),
|
|
1328
|
+
variables: {},
|
|
1329
|
+
});
|
|
1330
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1331
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1332
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
deepFreeze(snapshot.data);
|
|
1336
|
+
return snapshot;
|
|
1337
|
+
}
|
|
1338
|
+
function createResourceRequest$3(config) {
|
|
1339
|
+
const headers = {};
|
|
1340
|
+
return {
|
|
1341
|
+
baseUri: '/services/data/v60.0',
|
|
1342
|
+
basePath: '/connect/enablement/program/actions/enroll/' + config.urlParams.enablementProgramId + '',
|
|
1343
|
+
method: 'post',
|
|
1344
|
+
body: null,
|
|
1345
|
+
urlParams: config.urlParams,
|
|
1346
|
+
queryParams: {},
|
|
1347
|
+
headers,
|
|
1348
|
+
priority: 'normal',
|
|
1349
|
+
};
|
|
1350
|
+
}
|
|
1351
|
+
|
|
1352
|
+
const adapterName$3 = 'selfEnrollInEnablementProgram';
|
|
1353
|
+
const selfEnrollInEnablementProgram_ConfigPropertyMetadata = [
|
|
1354
|
+
generateParamConfigMetadata('enablementProgramId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1355
|
+
];
|
|
1356
|
+
const selfEnrollInEnablementProgram_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, selfEnrollInEnablementProgram_ConfigPropertyMetadata);
|
|
1357
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(selfEnrollInEnablementProgram_ConfigPropertyMetadata);
|
|
1358
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
1359
|
+
const config = {};
|
|
1360
|
+
typeCheckConfig$5(untrustedConfig, config, selfEnrollInEnablementProgram_ConfigPropertyMetadata);
|
|
1361
|
+
return config;
|
|
1362
|
+
}
|
|
1363
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
1364
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1365
|
+
return null;
|
|
1366
|
+
}
|
|
1367
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1368
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1369
|
+
}
|
|
1370
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
1371
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1372
|
+
return null;
|
|
1373
|
+
}
|
|
1374
|
+
return config;
|
|
1375
|
+
}
|
|
1376
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
1377
|
+
const resourceParams = createResourceParams$3(config);
|
|
1378
|
+
const request = createResourceRequest$3(resourceParams);
|
|
1379
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1380
|
+
.then((response) => {
|
|
1381
|
+
return luvio.handleSuccessResponse(() => {
|
|
1382
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
1383
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1384
|
+
}, () => {
|
|
1385
|
+
const cache = new StoreKeyMap();
|
|
1386
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
1387
|
+
return cache;
|
|
1388
|
+
});
|
|
1389
|
+
}, (response) => {
|
|
1390
|
+
deepFreeze(response);
|
|
1391
|
+
throw response;
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
const selfEnrollInEnablementProgramAdapterFactory = (luvio) => {
|
|
1395
|
+
return function selfEnrollInEnablementProgram(untrustedConfig) {
|
|
1396
|
+
const config = validateAdapterConfig$3(untrustedConfig, selfEnrollInEnablementProgram_ConfigPropertyNames);
|
|
1397
|
+
// Invalid or incomplete config
|
|
1398
|
+
if (config === null) {
|
|
1399
|
+
throw new Error('Invalid config for "selfEnrollInEnablementProgram"');
|
|
1400
|
+
}
|
|
1401
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1404
|
+
|
|
1405
|
+
function select$2(luvio, params) {
|
|
1406
|
+
return select$4();
|
|
1407
|
+
}
|
|
1408
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1409
|
+
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
1410
|
+
}
|
|
1411
|
+
function ingestSuccess$2(luvio, resourceParams, response) {
|
|
1412
|
+
const { body } = response;
|
|
1413
|
+
const key = keyBuilderFromType(luvio, body);
|
|
1414
|
+
luvio.storeIngest(key, ingest, body);
|
|
1415
|
+
const snapshot = luvio.storeLookup({
|
|
1416
|
+
recordId: key,
|
|
1417
|
+
node: select$2(),
|
|
1418
|
+
variables: {},
|
|
1419
|
+
});
|
|
1420
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1421
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1422
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
deepFreeze(snapshot.data);
|
|
1426
|
+
return snapshot;
|
|
1427
|
+
}
|
|
1428
|
+
function createResourceRequest$2(config) {
|
|
1429
|
+
const headers = {};
|
|
1430
|
+
return {
|
|
1431
|
+
baseUri: '/services/data/v60.0',
|
|
1432
|
+
basePath: '/connect/enablement/program/actions/unenroll/' + config.urlParams.enablementProgramId + '',
|
|
1433
|
+
method: 'post',
|
|
1434
|
+
body: null,
|
|
1435
|
+
urlParams: config.urlParams,
|
|
1436
|
+
queryParams: {},
|
|
1437
|
+
headers,
|
|
1438
|
+
priority: 'normal',
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
const adapterName$2 = 'unenrollFromEnablementProgram';
|
|
1443
|
+
const unenrollFromEnablementProgram_ConfigPropertyMetadata = [
|
|
1444
|
+
generateParamConfigMetadata('enablementProgramId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1445
|
+
];
|
|
1446
|
+
const unenrollFromEnablementProgram_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, unenrollFromEnablementProgram_ConfigPropertyMetadata);
|
|
1447
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(unenrollFromEnablementProgram_ConfigPropertyMetadata);
|
|
1448
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
1449
|
+
const config = {};
|
|
1450
|
+
typeCheckConfig$5(untrustedConfig, config, unenrollFromEnablementProgram_ConfigPropertyMetadata);
|
|
1451
|
+
return config;
|
|
1452
|
+
}
|
|
1453
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
1454
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1455
|
+
return null;
|
|
1456
|
+
}
|
|
1457
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1458
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1459
|
+
}
|
|
1460
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
1461
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1462
|
+
return null;
|
|
1463
|
+
}
|
|
1464
|
+
return config;
|
|
1465
|
+
}
|
|
1466
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
1467
|
+
const resourceParams = createResourceParams$2(config);
|
|
1468
|
+
const request = createResourceRequest$2(resourceParams);
|
|
1469
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1470
|
+
.then((response) => {
|
|
1471
|
+
return luvio.handleSuccessResponse(() => {
|
|
1472
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response);
|
|
1473
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1474
|
+
}, () => {
|
|
1475
|
+
const cache = new StoreKeyMap();
|
|
1476
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1477
|
+
return cache;
|
|
1478
|
+
});
|
|
1479
|
+
}, (response) => {
|
|
1480
|
+
deepFreeze(response);
|
|
1481
|
+
throw response;
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
const unenrollFromEnablementProgramAdapterFactory = (luvio) => {
|
|
1485
|
+
return function unenrollFromEnablementProgram(untrustedConfig) {
|
|
1486
|
+
const config = validateAdapterConfig$2(untrustedConfig, unenrollFromEnablementProgram_ConfigPropertyNames);
|
|
1487
|
+
// Invalid or incomplete config
|
|
1488
|
+
if (config === null) {
|
|
1489
|
+
throw new Error('Invalid config for "unenrollFromEnablementProgram"');
|
|
1490
|
+
}
|
|
1491
|
+
return buildNetworkSnapshot$2(luvio, config);
|
|
1492
|
+
};
|
|
1493
|
+
};
|
|
1494
|
+
|
|
1244
1495
|
function select$1(luvio, params) {
|
|
1245
|
-
return select$
|
|
1496
|
+
return select$6();
|
|
1246
1497
|
}
|
|
1247
1498
|
function keyBuilder$3(luvio, params) {
|
|
1248
1499
|
return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
1249
1500
|
}
|
|
1250
1501
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1251
|
-
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1502
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
1252
1503
|
}
|
|
1253
1504
|
function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
1254
1505
|
const { body } = response;
|
|
1255
1506
|
const key = keyBuilder$3(luvio, resourceParams);
|
|
1256
|
-
luvio.storeIngest(key, ingest, body);
|
|
1507
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
1257
1508
|
const snapshot = luvio.storeLookup({
|
|
1258
1509
|
recordId: key,
|
|
1259
1510
|
node: select$1(),
|
|
@@ -1294,14 +1545,14 @@ const getAssignedEnablementProgramSummary_ConfigPropertyMetadata = [
|
|
|
1294
1545
|
generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
1295
1546
|
];
|
|
1296
1547
|
const getAssignedEnablementProgramSummary_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getAssignedEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1297
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
1548
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(getAssignedEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1298
1549
|
function keyBuilder$2(luvio, config) {
|
|
1299
1550
|
const resourceParams = createResourceParams$1(config);
|
|
1300
1551
|
return keyBuilder$3(luvio, resourceParams);
|
|
1301
1552
|
}
|
|
1302
1553
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1303
1554
|
const config = {};
|
|
1304
|
-
typeCheckConfig$
|
|
1555
|
+
typeCheckConfig$5(untrustedConfig, config, getAssignedEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1305
1556
|
return config;
|
|
1306
1557
|
}
|
|
1307
1558
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -1376,20 +1627,20 @@ const getAssignedEnablementProgramSummaryAdapterFactory = (luvio) => function en
|
|
|
1376
1627
|
};
|
|
1377
1628
|
|
|
1378
1629
|
function select(luvio, params) {
|
|
1379
|
-
return select$
|
|
1630
|
+
return select$7();
|
|
1380
1631
|
}
|
|
1381
1632
|
function keyBuilder$1(luvio, params) {
|
|
1382
|
-
return keyBuilder$
|
|
1633
|
+
return keyBuilder$7(luvio, {
|
|
1383
1634
|
enablement_program_id: params.urlParams.enablementProgramId
|
|
1384
1635
|
});
|
|
1385
1636
|
}
|
|
1386
1637
|
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1387
|
-
getTypeCacheKeys$
|
|
1638
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
1388
1639
|
}
|
|
1389
1640
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
1390
1641
|
const { body } = response;
|
|
1391
1642
|
const key = keyBuilder$1(luvio, resourceParams);
|
|
1392
|
-
luvio.storeIngest(key, ingest$
|
|
1643
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
1393
1644
|
const snapshot = luvio.storeLookup({
|
|
1394
1645
|
recordId: key,
|
|
1395
1646
|
node: select(),
|
|
@@ -1407,10 +1658,10 @@ function ingestError(luvio, params, error, snapshotRefresh) {
|
|
|
1407
1658
|
const key = keyBuilder$1(luvio, params);
|
|
1408
1659
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1409
1660
|
const storeMetadataParams = {
|
|
1410
|
-
ttl: TTL,
|
|
1661
|
+
ttl: TTL$1,
|
|
1411
1662
|
namespace: keyPrefix,
|
|
1412
|
-
version: VERSION$
|
|
1413
|
-
representationName: RepresentationType$
|
|
1663
|
+
version: VERSION$2,
|
|
1664
|
+
representationName: RepresentationType$2
|
|
1414
1665
|
};
|
|
1415
1666
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1416
1667
|
return errorSnapshot;
|
|
@@ -1435,14 +1686,14 @@ const getEnablementProgramSummary_ConfigPropertyMetadata = [
|
|
|
1435
1686
|
generateParamConfigMetadata('includeProgress', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
1436
1687
|
];
|
|
1437
1688
|
const getEnablementProgramSummary_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1438
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
1689
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$5(getEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1439
1690
|
function keyBuilder(luvio, config) {
|
|
1440
1691
|
const resourceParams = createResourceParams(config);
|
|
1441
1692
|
return keyBuilder$1(luvio, resourceParams);
|
|
1442
1693
|
}
|
|
1443
1694
|
function typeCheckConfig(untrustedConfig) {
|
|
1444
1695
|
const config = {};
|
|
1445
|
-
typeCheckConfig$
|
|
1696
|
+
typeCheckConfig$5(untrustedConfig, config, getEnablementProgramSummary_ConfigPropertyMetadata);
|
|
1446
1697
|
return config;
|
|
1447
1698
|
}
|
|
1448
1699
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1516,4 +1767,4 @@ const getEnablementProgramSummaryAdapterFactory = (luvio) => function enablement
|
|
|
1516
1767
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1517
1768
|
};
|
|
1518
1769
|
|
|
1519
|
-
export { getAssignedEnablementProgramSummaryAdapterFactory, getAssignedEnablementProgramSummaryForCommunityAdapterFactory, getEnablementProgramSummaryAdapterFactory };
|
|
1770
|
+
export { getAssignedEnablementProgramSummaryAdapterFactory, getAssignedEnablementProgramSummaryForCommunityAdapterFactory, getEnablementProgramSummaryAdapterFactory, selfEnrollInEnablementProgramAdapterFactory, unenrollFromEnablementProgramAdapterFactory };
|