@salesforce/lds-adapters-platform-enablement 1.195.0 → 1.197.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 +186 -13
- package/dist/es/es2018/types/src/generated/adapters/getAssignedEnablementProgramSummaryForCommunity.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectCommunitiesEnablementProgramSummaryAssignedByCommunityId.d.ts +20 -0
- package/package.json +1 -1
- package/sfdc/index.js +203 -22
- package/src/raml/api.raml +71 -43
- package/src/raml/luvio.raml +17 -12
|
@@ -111,7 +111,7 @@ function validate$3(obj, path = 'EnablementProgramSummaryItemRepresentation') {
|
|
|
111
111
|
})();
|
|
112
112
|
return v_error === undefined ? null : v_error;
|
|
113
113
|
}
|
|
114
|
-
const select$
|
|
114
|
+
const select$6 = function EnablementProgramSummaryItemRepresentationSelect() {
|
|
115
115
|
return {
|
|
116
116
|
kind: 'Fragment',
|
|
117
117
|
version: VERSION$3,
|
|
@@ -452,8 +452,8 @@ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation
|
|
|
452
452
|
})();
|
|
453
453
|
return v_error === undefined ? null : v_error;
|
|
454
454
|
}
|
|
455
|
-
const select$
|
|
456
|
-
const { selections: EnablementProgramSummaryItemRepresentationSelections } = select$
|
|
455
|
+
const select$5 = function EnablementProgramSummaryMilestoneRepresentationSelect() {
|
|
456
|
+
const { selections: EnablementProgramSummaryItemRepresentationSelections } = select$6();
|
|
457
457
|
return {
|
|
458
458
|
kind: 'Fragment',
|
|
459
459
|
version: VERSION$2,
|
|
@@ -793,20 +793,20 @@ function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
|
|
|
793
793
|
return v_error === undefined ? null : v_error;
|
|
794
794
|
}
|
|
795
795
|
const RepresentationType$1 = 'EnablementProgramSummaryRepresentation';
|
|
796
|
-
function keyBuilder$
|
|
796
|
+
function keyBuilder$6(luvio, config) {
|
|
797
797
|
return keyPrefix + '::' + RepresentationType$1 + ':' + (config.enablement_program_id === null ? '' : config.enablement_program_id);
|
|
798
798
|
}
|
|
799
799
|
function keyBuilderFromType(luvio, object) {
|
|
800
800
|
const keyParams = {
|
|
801
801
|
enablement_program_id: object.id
|
|
802
802
|
};
|
|
803
|
-
return keyBuilder$
|
|
803
|
+
return keyBuilder$6(luvio, keyParams);
|
|
804
804
|
}
|
|
805
805
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
806
806
|
return input;
|
|
807
807
|
}
|
|
808
|
-
const select$
|
|
809
|
-
const { selections: EnablementProgramSummaryMilestoneRepresentation__selections, opaque: EnablementProgramSummaryMilestoneRepresentation__opaque, } = select$
|
|
808
|
+
const select$4 = function EnablementProgramSummaryRepresentationSelect() {
|
|
809
|
+
const { selections: EnablementProgramSummaryMilestoneRepresentation__selections, opaque: EnablementProgramSummaryMilestoneRepresentation__opaque, } = select$5();
|
|
810
810
|
return {
|
|
811
811
|
kind: 'Fragment',
|
|
812
812
|
version: VERSION$1,
|
|
@@ -1005,7 +1005,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
return input;
|
|
1007
1007
|
}
|
|
1008
|
-
const select$
|
|
1008
|
+
const select$3 = function EnablementProgramSummaryListRepresentationSelect() {
|
|
1009
1009
|
return {
|
|
1010
1010
|
kind: 'Fragment',
|
|
1011
1011
|
version: VERSION,
|
|
@@ -1019,7 +1019,7 @@ const select$2 = function EnablementProgramSummaryListRepresentationSelect() {
|
|
|
1019
1019
|
name: 'programSummaryList',
|
|
1020
1020
|
kind: 'Link',
|
|
1021
1021
|
plural: true,
|
|
1022
|
-
fragment: select$
|
|
1022
|
+
fragment: select$4()
|
|
1023
1023
|
}
|
|
1024
1024
|
]
|
|
1025
1025
|
};
|
|
@@ -1086,9 +1086,182 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
|
|
1089
|
-
function select$
|
|
1089
|
+
function select$2(luvio, params) {
|
|
1090
|
+
return select$3();
|
|
1091
|
+
}
|
|
1092
|
+
function keyBuilder$5(luvio, params) {
|
|
1093
|
+
return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'communityId:' + params.urlParams.communityId + ')';
|
|
1094
|
+
}
|
|
1095
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1096
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
1097
|
+
}
|
|
1098
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1099
|
+
const { body } = response;
|
|
1100
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
1101
|
+
luvio.storeIngest(key, ingest, body);
|
|
1102
|
+
const snapshot = luvio.storeLookup({
|
|
1103
|
+
recordId: key,
|
|
1104
|
+
node: select$2(),
|
|
1105
|
+
variables: {},
|
|
1106
|
+
}, snapshotRefresh);
|
|
1107
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1108
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1109
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
deepFreeze(snapshot.data);
|
|
1113
|
+
return snapshot;
|
|
1114
|
+
}
|
|
1115
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1116
|
+
const key = keyBuilder$5(luvio, params);
|
|
1117
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1118
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
1119
|
+
return errorSnapshot;
|
|
1120
|
+
}
|
|
1121
|
+
function createResourceRequest$2(config) {
|
|
1122
|
+
const headers = {};
|
|
1123
|
+
return {
|
|
1124
|
+
baseUri: '/services/data/v59.0',
|
|
1125
|
+
basePath: '/connect/communities/' + config.urlParams.communityId + '/enablement/program/summary/assigned',
|
|
1126
|
+
method: 'get',
|
|
1127
|
+
body: null,
|
|
1128
|
+
urlParams: config.urlParams,
|
|
1129
|
+
queryParams: config.queryParams,
|
|
1130
|
+
headers,
|
|
1131
|
+
priority: 'normal',
|
|
1132
|
+
};
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
const getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyNames = {
|
|
1136
|
+
displayName: 'getAssignedEnablementProgramSummaryForCommunity',
|
|
1137
|
+
parameters: {
|
|
1138
|
+
required: ['communityId'],
|
|
1139
|
+
optional: ['filter', 'limit', 'offset']
|
|
1140
|
+
}
|
|
1141
|
+
};
|
|
1142
|
+
function createResourceParams$2(config) {
|
|
1143
|
+
const resourceParams = {
|
|
1144
|
+
urlParams: {
|
|
1145
|
+
communityId: config.communityId
|
|
1146
|
+
},
|
|
1147
|
+
queryParams: {
|
|
1148
|
+
filter: config.filter, limit: config.limit, offset: config.offset
|
|
1149
|
+
}
|
|
1150
|
+
};
|
|
1151
|
+
return resourceParams;
|
|
1152
|
+
}
|
|
1153
|
+
function keyBuilder$4(luvio, config) {
|
|
1154
|
+
const resourceParams = createResourceParams$2(config);
|
|
1155
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
1156
|
+
}
|
|
1157
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
1158
|
+
const config = {};
|
|
1159
|
+
const untrustedConfig_communityId = untrustedConfig.communityId;
|
|
1160
|
+
if (typeof untrustedConfig_communityId === 'string') {
|
|
1161
|
+
config.communityId = untrustedConfig_communityId;
|
|
1162
|
+
}
|
|
1163
|
+
const untrustedConfig_filter = untrustedConfig.filter;
|
|
1164
|
+
if (typeof untrustedConfig_filter === 'string') {
|
|
1165
|
+
config.filter = untrustedConfig_filter;
|
|
1166
|
+
}
|
|
1167
|
+
const untrustedConfig_limit = untrustedConfig.limit;
|
|
1168
|
+
if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
|
|
1169
|
+
config.limit = untrustedConfig_limit;
|
|
1170
|
+
}
|
|
1171
|
+
const untrustedConfig_offset = untrustedConfig.offset;
|
|
1172
|
+
if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
|
|
1173
|
+
config.offset = untrustedConfig_offset;
|
|
1174
|
+
}
|
|
1175
|
+
return config;
|
|
1176
|
+
}
|
|
1177
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
1178
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1179
|
+
return null;
|
|
1180
|
+
}
|
|
1181
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1182
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1183
|
+
}
|
|
1184
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
1185
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1186
|
+
return null;
|
|
1187
|
+
}
|
|
1188
|
+
return config;
|
|
1189
|
+
}
|
|
1190
|
+
function adapterFragment$2(luvio, config) {
|
|
1191
|
+
createResourceParams$2(config);
|
|
1090
1192
|
return select$2();
|
|
1091
1193
|
}
|
|
1194
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1195
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
1196
|
+
config,
|
|
1197
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1198
|
+
});
|
|
1199
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1200
|
+
}
|
|
1201
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
1202
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
1203
|
+
config,
|
|
1204
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1205
|
+
});
|
|
1206
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1207
|
+
}
|
|
1208
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
1209
|
+
const resourceParams = createResourceParams$2(config);
|
|
1210
|
+
const request = createResourceRequest$2(resourceParams);
|
|
1211
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1212
|
+
.then((response) => {
|
|
1213
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
1214
|
+
const cache = new StoreKeyMap();
|
|
1215
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1216
|
+
return cache;
|
|
1217
|
+
});
|
|
1218
|
+
}, (response) => {
|
|
1219
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1223
|
+
const { luvio, config } = context;
|
|
1224
|
+
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1225
|
+
const dispatchOptions = {
|
|
1226
|
+
resourceRequestContext: {
|
|
1227
|
+
requestCorrelator,
|
|
1228
|
+
luvioRequestMethod: undefined,
|
|
1229
|
+
},
|
|
1230
|
+
eventObservers
|
|
1231
|
+
};
|
|
1232
|
+
if (networkPriority !== 'normal') {
|
|
1233
|
+
dispatchOptions.overrides = {
|
|
1234
|
+
priority: networkPriority
|
|
1235
|
+
};
|
|
1236
|
+
}
|
|
1237
|
+
return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
|
|
1238
|
+
}
|
|
1239
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1240
|
+
const { luvio, config } = context;
|
|
1241
|
+
const selector = {
|
|
1242
|
+
recordId: keyBuilder$4(luvio, config),
|
|
1243
|
+
node: adapterFragment$2(luvio, config),
|
|
1244
|
+
variables: {},
|
|
1245
|
+
};
|
|
1246
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1247
|
+
config,
|
|
1248
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1249
|
+
});
|
|
1250
|
+
return cacheSnapshot;
|
|
1251
|
+
}
|
|
1252
|
+
const getAssignedEnablementProgramSummaryForCommunityAdapterFactory = (luvio) => function enablement__getAssignedEnablementProgramSummaryForCommunity(untrustedConfig, requestContext) {
|
|
1253
|
+
const config = validateAdapterConfig$2(untrustedConfig, getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyNames);
|
|
1254
|
+
// Invalid or incomplete config
|
|
1255
|
+
if (config === null) {
|
|
1256
|
+
return null;
|
|
1257
|
+
}
|
|
1258
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1259
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1262
|
+
function select$1(luvio, params) {
|
|
1263
|
+
return select$3();
|
|
1264
|
+
}
|
|
1092
1265
|
function keyBuilder$3(luvio, params) {
|
|
1093
1266
|
return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
1094
1267
|
}
|
|
@@ -1253,10 +1426,10 @@ const getAssignedEnablementProgramSummaryAdapterFactory = (luvio) => function en
|
|
|
1253
1426
|
};
|
|
1254
1427
|
|
|
1255
1428
|
function select(luvio, params) {
|
|
1256
|
-
return select$
|
|
1429
|
+
return select$4();
|
|
1257
1430
|
}
|
|
1258
1431
|
function keyBuilder$1(luvio, params) {
|
|
1259
|
-
return keyBuilder$
|
|
1432
|
+
return keyBuilder$6(luvio, {
|
|
1260
1433
|
enablement_program_id: params.urlParams.enablementProgramId
|
|
1261
1434
|
});
|
|
1262
1435
|
}
|
|
@@ -1425,4 +1598,4 @@ const getEnablementProgramSummaryAdapterFactory = (luvio) => function enablement
|
|
|
1425
1598
|
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
1426
1599
|
};
|
|
1427
1600
|
|
|
1428
|
-
export { getAssignedEnablementProgramSummaryAdapterFactory, getEnablementProgramSummaryAdapterFactory };
|
|
1601
|
+
export { getAssignedEnablementProgramSummaryAdapterFactory, getAssignedEnablementProgramSummaryForCommunityAdapterFactory, getEnablementProgramSummaryAdapterFactory };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
|
|
2
|
+
import { ResourceRequestConfig as resources_getConnectCommunitiesEnablementProgramSummaryAssignedByCommunityId_ResourceRequestConfig } from '../resources/getConnectCommunitiesEnablementProgramSummaryAssignedByCommunityId';
|
|
3
|
+
import { 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';
|
|
4
|
+
import { EnablementProgramSummaryListRepresentation as types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation } from '../types/EnablementProgramSummaryListRepresentation';
|
|
5
|
+
export declare const adapterName = "getAssignedEnablementProgramSummaryForCommunity";
|
|
6
|
+
export declare const getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
|
+
export interface GetAssignedEnablementProgramSummaryForCommunityConfig {
|
|
8
|
+
communityId: string;
|
|
9
|
+
filter?: string;
|
|
10
|
+
limit?: number;
|
|
11
|
+
offset?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare function createResourceParams(config: GetAssignedEnablementProgramSummaryForCommunityConfig): resources_getConnectCommunitiesEnablementProgramSummaryAssignedByCommunityId_ResourceRequestConfig;
|
|
14
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryForCommunityConfig): string;
|
|
15
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryForCommunityConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetAssignedEnablementProgramSummaryForCommunityConfig>): adapter$45$utils_Untrusted<GetAssignedEnablementProgramSummaryForCommunityConfig>;
|
|
17
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetAssignedEnablementProgramSummaryForCommunityConfig | null;
|
|
18
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryForCommunityConfig): $64$luvio_engine_Fragment;
|
|
19
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryForCommunityConfig): $64$luvio_engine_Snapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>;
|
|
20
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryForCommunityConfig, resourceParams: resources_getConnectCommunitiesEnablementProgramSummaryAssignedByCommunityId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>>;
|
|
21
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryForCommunityConfig, resourceParams: resources_getConnectCommunitiesEnablementProgramSummaryAssignedByCommunityId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
22
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetAssignedEnablementProgramSummaryForCommunityConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>>;
|
|
23
|
+
export type BuildSnapshotContext = {
|
|
24
|
+
luvio: $64$luvio_engine_Luvio;
|
|
25
|
+
config: GetAssignedEnablementProgramSummaryForCommunityConfig;
|
|
26
|
+
};
|
|
27
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>>;
|
|
28
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>): $64$luvio_engine_Snapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>;
|
|
29
|
+
export declare const getAssignedEnablementProgramSummaryForCommunityAdapterFactory: $64$luvio_engine_AdapterFactory<GetAssignedEnablementProgramSummaryForCommunityConfig, types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
export { getAssignedEnablementProgramSummaryForCommunityAdapterFactory } from '../adapters/getAssignedEnablementProgramSummaryForCommunity';
|
|
1
2
|
export { getAssignedEnablementProgramSummaryAdapterFactory } from '../adapters/getAssignedEnablementProgramSummary';
|
|
2
3
|
export { getEnablementProgramSummaryAdapterFactory } from '../adapters/getEnablementProgramSummary';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
declare let getAssignedEnablementProgramSummary: any;
|
|
2
|
+
declare let getAssignedEnablementProgramSummaryForCommunity: any;
|
|
2
3
|
declare let getEnablementProgramSummary: any;
|
|
3
4
|
declare let getAssignedEnablementProgramSummary_imperative: any;
|
|
5
|
+
declare let getAssignedEnablementProgramSummaryForCommunity_imperative: any;
|
|
4
6
|
declare let getEnablementProgramSummary_imperative: any;
|
|
5
|
-
export { getAssignedEnablementProgramSummary, getEnablementProgramSummary, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary_imperative };
|
|
7
|
+
export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummaryForCommunity, getEnablementProgramSummary, getAssignedEnablementProgramSummary_imperative, getAssignedEnablementProgramSummaryForCommunity_imperative, getEnablementProgramSummary_imperative };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { EnablementProgramSummaryListRepresentation as types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation } from '../types/EnablementProgramSummaryListRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
communityId: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
filter?: string;
|
|
9
|
+
limit?: number;
|
|
10
|
+
offset?: number;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
14
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
15
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation): void;
|
|
17
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation, any>;
|
|
18
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_EnablementProgramSummaryListRepresentation_EnablementProgramSummaryListRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
19
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
20
|
+
export default createResourceRequest;
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -121,7 +121,7 @@ function validate$3(obj, path = 'EnablementProgramSummaryItemRepresentation') {
|
|
|
121
121
|
})();
|
|
122
122
|
return v_error === undefined ? null : v_error;
|
|
123
123
|
}
|
|
124
|
-
const select$
|
|
124
|
+
const select$6 = function EnablementProgramSummaryItemRepresentationSelect() {
|
|
125
125
|
return {
|
|
126
126
|
kind: 'Fragment',
|
|
127
127
|
version: VERSION$3,
|
|
@@ -462,8 +462,8 @@ function validate$2(obj, path = 'EnablementProgramSummaryMilestoneRepresentation
|
|
|
462
462
|
})();
|
|
463
463
|
return v_error === undefined ? null : v_error;
|
|
464
464
|
}
|
|
465
|
-
const select$
|
|
466
|
-
const { selections: EnablementProgramSummaryItemRepresentationSelections } = select$
|
|
465
|
+
const select$5 = function EnablementProgramSummaryMilestoneRepresentationSelect() {
|
|
466
|
+
const { selections: EnablementProgramSummaryItemRepresentationSelections } = select$6();
|
|
467
467
|
return {
|
|
468
468
|
kind: 'Fragment',
|
|
469
469
|
version: VERSION$2,
|
|
@@ -803,20 +803,20 @@ function validate$1(obj, path = 'EnablementProgramSummaryRepresentation') {
|
|
|
803
803
|
return v_error === undefined ? null : v_error;
|
|
804
804
|
}
|
|
805
805
|
const RepresentationType$1 = 'EnablementProgramSummaryRepresentation';
|
|
806
|
-
function keyBuilder$
|
|
806
|
+
function keyBuilder$6(luvio, config) {
|
|
807
807
|
return keyPrefix + '::' + RepresentationType$1 + ':' + (config.enablement_program_id === null ? '' : config.enablement_program_id);
|
|
808
808
|
}
|
|
809
809
|
function keyBuilderFromType(luvio, object) {
|
|
810
810
|
const keyParams = {
|
|
811
811
|
enablement_program_id: object.id
|
|
812
812
|
};
|
|
813
|
-
return keyBuilder$
|
|
813
|
+
return keyBuilder$6(luvio, keyParams);
|
|
814
814
|
}
|
|
815
815
|
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
816
816
|
return input;
|
|
817
817
|
}
|
|
818
|
-
const select$
|
|
819
|
-
const { selections: EnablementProgramSummaryMilestoneRepresentation__selections, opaque: EnablementProgramSummaryMilestoneRepresentation__opaque, } = select$
|
|
818
|
+
const select$4 = function EnablementProgramSummaryRepresentationSelect() {
|
|
819
|
+
const { selections: EnablementProgramSummaryMilestoneRepresentation__selections, opaque: EnablementProgramSummaryMilestoneRepresentation__opaque, } = select$5();
|
|
820
820
|
return {
|
|
821
821
|
kind: 'Fragment',
|
|
822
822
|
version: VERSION$1,
|
|
@@ -1015,7 +1015,7 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
return input;
|
|
1017
1017
|
}
|
|
1018
|
-
const select$
|
|
1018
|
+
const select$3 = function EnablementProgramSummaryListRepresentationSelect() {
|
|
1019
1019
|
return {
|
|
1020
1020
|
kind: 'Fragment',
|
|
1021
1021
|
version: VERSION,
|
|
@@ -1029,7 +1029,7 @@ const select$2 = function EnablementProgramSummaryListRepresentationSelect() {
|
|
|
1029
1029
|
name: 'programSummaryList',
|
|
1030
1030
|
kind: 'Link',
|
|
1031
1031
|
plural: true,
|
|
1032
|
-
fragment: select$
|
|
1032
|
+
fragment: select$4()
|
|
1033
1033
|
}
|
|
1034
1034
|
]
|
|
1035
1035
|
};
|
|
@@ -1096,11 +1096,177 @@ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
|
|
1099
|
-
function select$
|
|
1099
|
+
function select$2(luvio, params) {
|
|
1100
|
+
return select$3();
|
|
1101
|
+
}
|
|
1102
|
+
function keyBuilder$5(luvio, params) {
|
|
1103
|
+
return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
1104
|
+
}
|
|
1105
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1106
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
|
|
1107
|
+
}
|
|
1108
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1109
|
+
const { body } = response;
|
|
1110
|
+
const key = keyBuilder$5(luvio, resourceParams);
|
|
1111
|
+
luvio.storeIngest(key, ingest, body);
|
|
1112
|
+
const snapshot = luvio.storeLookup({
|
|
1113
|
+
recordId: key,
|
|
1114
|
+
node: select$2(),
|
|
1115
|
+
variables: {},
|
|
1116
|
+
}, snapshotRefresh);
|
|
1117
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1118
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
1119
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
deepFreeze(snapshot.data);
|
|
1123
|
+
return snapshot;
|
|
1124
|
+
}
|
|
1125
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
1126
|
+
const key = keyBuilder$5(luvio, params);
|
|
1127
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1128
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
1129
|
+
return errorSnapshot;
|
|
1130
|
+
}
|
|
1131
|
+
function createResourceRequest$2(config) {
|
|
1132
|
+
const headers = {};
|
|
1133
|
+
return {
|
|
1134
|
+
baseUri: '/services/data/v59.0',
|
|
1135
|
+
basePath: '/connect/enablement/program/summary/assigned',
|
|
1136
|
+
method: 'get',
|
|
1137
|
+
body: null,
|
|
1138
|
+
urlParams: {},
|
|
1139
|
+
queryParams: config.queryParams,
|
|
1140
|
+
headers,
|
|
1141
|
+
priority: 'normal',
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
const getAssignedEnablementProgramSummary_ConfigPropertyNames = {
|
|
1146
|
+
displayName: 'getAssignedEnablementProgramSummary',
|
|
1147
|
+
parameters: {
|
|
1148
|
+
required: [],
|
|
1149
|
+
optional: ['filter', 'limit', 'offset']
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1152
|
+
function createResourceParams$2(config) {
|
|
1153
|
+
const resourceParams = {
|
|
1154
|
+
queryParams: {
|
|
1155
|
+
filter: config.filter, limit: config.limit, offset: config.offset
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
return resourceParams;
|
|
1159
|
+
}
|
|
1160
|
+
function keyBuilder$4(luvio, config) {
|
|
1161
|
+
const resourceParams = createResourceParams$2(config);
|
|
1162
|
+
return keyBuilder$5(luvio, resourceParams);
|
|
1163
|
+
}
|
|
1164
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
1165
|
+
const config = {};
|
|
1166
|
+
const untrustedConfig_filter = untrustedConfig.filter;
|
|
1167
|
+
if (typeof untrustedConfig_filter === 'string') {
|
|
1168
|
+
config.filter = untrustedConfig_filter;
|
|
1169
|
+
}
|
|
1170
|
+
const untrustedConfig_limit = untrustedConfig.limit;
|
|
1171
|
+
if (typeof untrustedConfig_limit === 'number' && Math.floor(untrustedConfig_limit) === untrustedConfig_limit) {
|
|
1172
|
+
config.limit = untrustedConfig_limit;
|
|
1173
|
+
}
|
|
1174
|
+
const untrustedConfig_offset = untrustedConfig.offset;
|
|
1175
|
+
if (typeof untrustedConfig_offset === 'number' && Math.floor(untrustedConfig_offset) === untrustedConfig_offset) {
|
|
1176
|
+
config.offset = untrustedConfig_offset;
|
|
1177
|
+
}
|
|
1178
|
+
return config;
|
|
1179
|
+
}
|
|
1180
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
1181
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
1182
|
+
return null;
|
|
1183
|
+
}
|
|
1184
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
1185
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
1186
|
+
}
|
|
1187
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
1188
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1189
|
+
return null;
|
|
1190
|
+
}
|
|
1191
|
+
return config;
|
|
1192
|
+
}
|
|
1193
|
+
function adapterFragment$2(luvio, config) {
|
|
1194
|
+
createResourceParams$2(config);
|
|
1100
1195
|
return select$2();
|
|
1101
1196
|
}
|
|
1197
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
1198
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
1199
|
+
config,
|
|
1200
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1201
|
+
});
|
|
1202
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1203
|
+
}
|
|
1204
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
1205
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
1206
|
+
config,
|
|
1207
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1208
|
+
});
|
|
1209
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
1210
|
+
}
|
|
1211
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
1212
|
+
const resourceParams = createResourceParams$2(config);
|
|
1213
|
+
const request = createResourceRequest$2(resourceParams);
|
|
1214
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
1215
|
+
.then((response) => {
|
|
1216
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
1217
|
+
const cache = new StoreKeyMap();
|
|
1218
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1219
|
+
return cache;
|
|
1220
|
+
});
|
|
1221
|
+
}, (response) => {
|
|
1222
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
1226
|
+
const { luvio, config } = context;
|
|
1227
|
+
const { networkPriority, requestCorrelator, eventObservers } = coercedAdapterRequestContext;
|
|
1228
|
+
const dispatchOptions = {
|
|
1229
|
+
resourceRequestContext: {
|
|
1230
|
+
requestCorrelator,
|
|
1231
|
+
luvioRequestMethod: undefined,
|
|
1232
|
+
},
|
|
1233
|
+
eventObservers
|
|
1234
|
+
};
|
|
1235
|
+
if (networkPriority !== 'normal') {
|
|
1236
|
+
dispatchOptions.overrides = {
|
|
1237
|
+
priority: networkPriority
|
|
1238
|
+
};
|
|
1239
|
+
}
|
|
1240
|
+
return buildNetworkSnapshot$2(luvio, config, dispatchOptions);
|
|
1241
|
+
}
|
|
1242
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
1243
|
+
const { luvio, config } = context;
|
|
1244
|
+
const selector = {
|
|
1245
|
+
recordId: keyBuilder$4(luvio, config),
|
|
1246
|
+
node: adapterFragment$2(luvio, config),
|
|
1247
|
+
variables: {},
|
|
1248
|
+
};
|
|
1249
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
1250
|
+
config,
|
|
1251
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
1252
|
+
});
|
|
1253
|
+
return cacheSnapshot;
|
|
1254
|
+
}
|
|
1255
|
+
const getAssignedEnablementProgramSummaryAdapterFactory = (luvio) => function enablement__getAssignedEnablementProgramSummary(untrustedConfig, requestContext) {
|
|
1256
|
+
const config = validateAdapterConfig$2(untrustedConfig, getAssignedEnablementProgramSummary_ConfigPropertyNames);
|
|
1257
|
+
// Invalid or incomplete config
|
|
1258
|
+
if (config === null) {
|
|
1259
|
+
return null;
|
|
1260
|
+
}
|
|
1261
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1262
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
function select$1(luvio, params) {
|
|
1266
|
+
return select$3();
|
|
1267
|
+
}
|
|
1102
1268
|
function keyBuilder$3(luvio, params) {
|
|
1103
|
-
return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
|
|
1269
|
+
return keyPrefix + '::EnablementProgramSummaryListRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'communityId:' + params.urlParams.communityId + ')';
|
|
1104
1270
|
}
|
|
1105
1271
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1106
1272
|
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
|
|
@@ -1132,25 +1298,28 @@ function createResourceRequest$1(config) {
|
|
|
1132
1298
|
const headers = {};
|
|
1133
1299
|
return {
|
|
1134
1300
|
baseUri: '/services/data/v59.0',
|
|
1135
|
-
basePath: '/connect/enablement/program/summary/assigned',
|
|
1301
|
+
basePath: '/connect/communities/' + config.urlParams.communityId + '/enablement/program/summary/assigned',
|
|
1136
1302
|
method: 'get',
|
|
1137
1303
|
body: null,
|
|
1138
|
-
urlParams:
|
|
1304
|
+
urlParams: config.urlParams,
|
|
1139
1305
|
queryParams: config.queryParams,
|
|
1140
1306
|
headers,
|
|
1141
1307
|
priority: 'normal',
|
|
1142
1308
|
};
|
|
1143
1309
|
}
|
|
1144
1310
|
|
|
1145
|
-
const
|
|
1146
|
-
displayName: '
|
|
1311
|
+
const getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyNames = {
|
|
1312
|
+
displayName: 'getAssignedEnablementProgramSummaryForCommunity',
|
|
1147
1313
|
parameters: {
|
|
1148
|
-
required: [],
|
|
1314
|
+
required: ['communityId'],
|
|
1149
1315
|
optional: ['filter', 'limit', 'offset']
|
|
1150
1316
|
}
|
|
1151
1317
|
};
|
|
1152
1318
|
function createResourceParams$1(config) {
|
|
1153
1319
|
const resourceParams = {
|
|
1320
|
+
urlParams: {
|
|
1321
|
+
communityId: config.communityId
|
|
1322
|
+
},
|
|
1154
1323
|
queryParams: {
|
|
1155
1324
|
filter: config.filter, limit: config.limit, offset: config.offset
|
|
1156
1325
|
}
|
|
@@ -1163,6 +1332,10 @@ function keyBuilder$2(luvio, config) {
|
|
|
1163
1332
|
}
|
|
1164
1333
|
function typeCheckConfig$1(untrustedConfig) {
|
|
1165
1334
|
const config = {};
|
|
1335
|
+
const untrustedConfig_communityId = untrustedConfig.communityId;
|
|
1336
|
+
if (typeof untrustedConfig_communityId === 'string') {
|
|
1337
|
+
config.communityId = untrustedConfig_communityId;
|
|
1338
|
+
}
|
|
1166
1339
|
const untrustedConfig_filter = untrustedConfig.filter;
|
|
1167
1340
|
if (typeof untrustedConfig_filter === 'string') {
|
|
1168
1341
|
config.filter = untrustedConfig_filter;
|
|
@@ -1252,8 +1425,8 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
1252
1425
|
});
|
|
1253
1426
|
return cacheSnapshot;
|
|
1254
1427
|
}
|
|
1255
|
-
const
|
|
1256
|
-
const config = validateAdapterConfig$1(untrustedConfig,
|
|
1428
|
+
const getAssignedEnablementProgramSummaryForCommunityAdapterFactory = (luvio) => function enablement__getAssignedEnablementProgramSummaryForCommunity(untrustedConfig, requestContext) {
|
|
1429
|
+
const config = validateAdapterConfig$1(untrustedConfig, getAssignedEnablementProgramSummaryForCommunity_ConfigPropertyNames);
|
|
1257
1430
|
// Invalid or incomplete config
|
|
1258
1431
|
if (config === null) {
|
|
1259
1432
|
return null;
|
|
@@ -1263,10 +1436,10 @@ const getAssignedEnablementProgramSummaryAdapterFactory = (luvio) => function en
|
|
|
1263
1436
|
};
|
|
1264
1437
|
|
|
1265
1438
|
function select(luvio, params) {
|
|
1266
|
-
return select$
|
|
1439
|
+
return select$4();
|
|
1267
1440
|
}
|
|
1268
1441
|
function keyBuilder$1(luvio, params) {
|
|
1269
|
-
return keyBuilder$
|
|
1442
|
+
return keyBuilder$6(luvio, {
|
|
1270
1443
|
enablement_program_id: params.urlParams.enablementProgramId
|
|
1271
1444
|
});
|
|
1272
1445
|
}
|
|
@@ -1436,33 +1609,41 @@ const getEnablementProgramSummaryAdapterFactory = (luvio) => function enablement
|
|
|
1436
1609
|
};
|
|
1437
1610
|
|
|
1438
1611
|
let getAssignedEnablementProgramSummary;
|
|
1612
|
+
let getAssignedEnablementProgramSummaryForCommunity;
|
|
1439
1613
|
let getEnablementProgramSummary;
|
|
1440
1614
|
// Imperative GET Adapters
|
|
1441
1615
|
let getAssignedEnablementProgramSummary_imperative;
|
|
1616
|
+
let getAssignedEnablementProgramSummaryForCommunity_imperative;
|
|
1442
1617
|
let getEnablementProgramSummary_imperative;
|
|
1443
1618
|
// Adapter Metadata
|
|
1444
1619
|
const getAssignedEnablementProgramSummaryMetadata = { apiFamily: 'enablement', name: 'getAssignedEnablementProgramSummary' };
|
|
1620
|
+
const getAssignedEnablementProgramSummaryForCommunityMetadata = { apiFamily: 'enablement', name: 'getAssignedEnablementProgramSummaryForCommunity' };
|
|
1445
1621
|
const getEnablementProgramSummaryMetadata = { apiFamily: 'enablement', name: 'getEnablementProgramSummary', ttl: 15000 };
|
|
1446
1622
|
function bindExportsTo(luvio) {
|
|
1447
1623
|
// LDS Adapters
|
|
1448
1624
|
const getAssignedEnablementProgramSummary_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAssignedEnablementProgramSummary', getAssignedEnablementProgramSummaryAdapterFactory), getAssignedEnablementProgramSummaryMetadata);
|
|
1625
|
+
const getAssignedEnablementProgramSummaryForCommunity_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAssignedEnablementProgramSummaryForCommunity', getAssignedEnablementProgramSummaryForCommunityAdapterFactory), getAssignedEnablementProgramSummaryForCommunityMetadata);
|
|
1449
1626
|
const getEnablementProgramSummary_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getEnablementProgramSummary', getEnablementProgramSummaryAdapterFactory), getEnablementProgramSummaryMetadata);
|
|
1450
1627
|
return {
|
|
1451
1628
|
getAssignedEnablementProgramSummary: createWireAdapterConstructor(luvio, getAssignedEnablementProgramSummary_ldsAdapter, getAssignedEnablementProgramSummaryMetadata),
|
|
1629
|
+
getAssignedEnablementProgramSummaryForCommunity: createWireAdapterConstructor(luvio, getAssignedEnablementProgramSummaryForCommunity_ldsAdapter, getAssignedEnablementProgramSummaryForCommunityMetadata),
|
|
1452
1630
|
getEnablementProgramSummary: createWireAdapterConstructor(luvio, getEnablementProgramSummary_ldsAdapter, getEnablementProgramSummaryMetadata),
|
|
1453
1631
|
// Imperative GET Adapters
|
|
1454
1632
|
getAssignedEnablementProgramSummary_imperative: createImperativeAdapter(luvio, getAssignedEnablementProgramSummary_ldsAdapter, getAssignedEnablementProgramSummaryMetadata),
|
|
1633
|
+
getAssignedEnablementProgramSummaryForCommunity_imperative: createImperativeAdapter(luvio, getAssignedEnablementProgramSummaryForCommunity_ldsAdapter, getAssignedEnablementProgramSummaryForCommunityMetadata),
|
|
1455
1634
|
getEnablementProgramSummary_imperative: createImperativeAdapter(luvio, getEnablementProgramSummary_ldsAdapter, getEnablementProgramSummaryMetadata)
|
|
1456
1635
|
};
|
|
1457
1636
|
}
|
|
1458
1637
|
withDefaultLuvio((luvio) => {
|
|
1459
1638
|
({
|
|
1460
1639
|
getAssignedEnablementProgramSummary,
|
|
1640
|
+
getAssignedEnablementProgramSummaryForCommunity,
|
|
1461
1641
|
getEnablementProgramSummary,
|
|
1462
1642
|
getAssignedEnablementProgramSummary_imperative,
|
|
1643
|
+
getAssignedEnablementProgramSummaryForCommunity_imperative,
|
|
1463
1644
|
getEnablementProgramSummary_imperative
|
|
1464
1645
|
} = bindExportsTo(luvio));
|
|
1465
1646
|
});
|
|
1466
1647
|
|
|
1467
|
-
export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary, getEnablementProgramSummary_imperative };
|
|
1468
|
-
// version: 1.
|
|
1648
|
+
export { getAssignedEnablementProgramSummary, getAssignedEnablementProgramSummaryForCommunity, getAssignedEnablementProgramSummaryForCommunity_imperative, getAssignedEnablementProgramSummary_imperative, getEnablementProgramSummary, getEnablementProgramSummary_imperative };
|
|
1649
|
+
// version: 1.197.0-1c08ab368
|
package/src/raml/api.raml
CHANGED
|
@@ -203,47 +203,75 @@ types:
|
|
|
203
203
|
- TextLesson
|
|
204
204
|
- Trailhead
|
|
205
205
|
- Video
|
|
206
|
-
/connect
|
|
207
|
-
/program:
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
206
|
+
/connect:
|
|
207
|
+
/communities/{communityId}/enablement/program/summary/assigned:
|
|
208
|
+
get:
|
|
209
|
+
description: Assigned Enablement Program Summary
|
|
210
|
+
responses:
|
|
211
|
+
'200':
|
|
212
|
+
description: Success
|
|
213
|
+
body:
|
|
214
|
+
application/json:
|
|
215
|
+
type: EnablementProgramSummaryListRepresentation
|
|
216
|
+
queryParameters:
|
|
217
|
+
filter:
|
|
218
|
+
type: string
|
|
219
|
+
required: false
|
|
220
|
+
enum:
|
|
221
|
+
- All
|
|
222
|
+
- Completed
|
|
223
|
+
- InProgress
|
|
224
|
+
limit:
|
|
225
|
+
type: integer
|
|
226
|
+
required: false
|
|
227
|
+
offset:
|
|
228
|
+
type: integer
|
|
229
|
+
required: false
|
|
230
|
+
uriParameters:
|
|
231
|
+
communityId:
|
|
232
|
+
type: string
|
|
233
|
+
required: true
|
|
234
|
+
/enablement:
|
|
235
|
+
/program:
|
|
236
|
+
/summary:
|
|
237
|
+
/assigned:
|
|
238
|
+
get:
|
|
239
|
+
description: Assigned Enablement Program Summary
|
|
240
|
+
responses:
|
|
241
|
+
'200':
|
|
242
|
+
description: Success
|
|
243
|
+
body:
|
|
244
|
+
application/json:
|
|
245
|
+
type: EnablementProgramSummaryListRepresentation
|
|
246
|
+
queryParameters:
|
|
247
|
+
filter:
|
|
248
|
+
type: string
|
|
249
|
+
required: false
|
|
250
|
+
enum:
|
|
251
|
+
- All
|
|
252
|
+
- Completed
|
|
253
|
+
- InProgress
|
|
254
|
+
limit:
|
|
255
|
+
type: integer
|
|
256
|
+
required: false
|
|
257
|
+
offset:
|
|
258
|
+
type: integer
|
|
259
|
+
required: false
|
|
260
|
+
/{enablementProgramId}:
|
|
261
|
+
get:
|
|
262
|
+
description: Enablement Program Summary
|
|
263
|
+
responses:
|
|
264
|
+
'200':
|
|
265
|
+
description: Success
|
|
266
|
+
body:
|
|
267
|
+
application/json:
|
|
268
|
+
type: EnablementProgramSummaryRepresentation
|
|
269
|
+
queryParameters:
|
|
270
|
+
includeProgress:
|
|
271
|
+
type: boolean
|
|
272
|
+
required: false
|
|
273
|
+
default: true
|
|
274
|
+
uriParameters:
|
|
275
|
+
enablementProgramId:
|
|
220
276
|
type: string
|
|
221
|
-
required:
|
|
222
|
-
enum:
|
|
223
|
-
- All
|
|
224
|
-
- Completed
|
|
225
|
-
- InProgress
|
|
226
|
-
limit:
|
|
227
|
-
type: integer
|
|
228
|
-
required: false
|
|
229
|
-
offset:
|
|
230
|
-
type: integer
|
|
231
|
-
required: false
|
|
232
|
-
/{enablementProgramId}:
|
|
233
|
-
get:
|
|
234
|
-
description: Enablement Program Summary
|
|
235
|
-
responses:
|
|
236
|
-
'200':
|
|
237
|
-
description: Success
|
|
238
|
-
body:
|
|
239
|
-
application/json:
|
|
240
|
-
type: EnablementProgramSummaryRepresentation
|
|
241
|
-
queryParameters:
|
|
242
|
-
includeProgress:
|
|
243
|
-
type: boolean
|
|
244
|
-
required: false
|
|
245
|
-
default: true
|
|
246
|
-
uriParameters:
|
|
247
|
-
enablementProgramId:
|
|
248
|
-
type: string
|
|
249
|
-
required: true
|
|
277
|
+
required: true
|
package/src/raml/luvio.raml
CHANGED
|
@@ -13,15 +13,20 @@ types:
|
|
|
13
13
|
(luvio.key):
|
|
14
14
|
enablement_program_id: id
|
|
15
15
|
|
|
16
|
-
/connect
|
|
17
|
-
/program:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
/connect:
|
|
17
|
+
/communities/{communityId}/enablement/program/summary/assigned:
|
|
18
|
+
get:
|
|
19
|
+
(luvio.adapter):
|
|
20
|
+
name: getAssignedEnablementProgramSummaryForCommunity
|
|
21
|
+
/enablement:
|
|
22
|
+
/program:
|
|
23
|
+
/summary/{enablementProgramId}:
|
|
24
|
+
get:
|
|
25
|
+
(luvio.adapter):
|
|
26
|
+
name: getEnablementProgramSummary
|
|
27
|
+
(luvio.key):
|
|
28
|
+
enablement_program_id: urlParams.enablementProgramId
|
|
29
|
+
/summary/assigned:
|
|
30
|
+
get:
|
|
31
|
+
(luvio.adapter):
|
|
32
|
+
name: getAssignedEnablementProgramSummary
|