@salesforce/lds-adapters-industries-education 1.451.0-dev2 → 1.451.0-dev4
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/industries-education.js +53 -11
- package/dist/es/es2018/types/src/generated/adapters/getAvailableTopics.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectEducationAppointmentBookingAvailableTopics.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/AvailableTopic.d.ts +8 -1
- package/package.json +3 -3
- package/sfdc/index.js +54 -12
- package/src/raml/api.raml +20 -0
|
@@ -2824,7 +2824,7 @@ const getAvailableTimeSlotsAdapterFactory = (luvio) => function education__getAv
|
|
|
2824
2824
|
buildCachedSnapshotCachePolicy$e, buildNetworkSnapshotCachePolicy$e);
|
|
2825
2825
|
};
|
|
2826
2826
|
|
|
2827
|
-
const VERSION$w = "
|
|
2827
|
+
const VERSION$w = "4321b4734473e76ac586993908ee84c4";
|
|
2828
2828
|
function validate$Y(obj, path = 'AvailableTopic') {
|
|
2829
2829
|
const v_error = (() => {
|
|
2830
2830
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2853,6 +2853,22 @@ function validate$Y(obj, path = 'AvailableTopic') {
|
|
|
2853
2853
|
}
|
|
2854
2854
|
}
|
|
2855
2855
|
}
|
|
2856
|
+
if (obj.workTypeGroupFields !== undefined) {
|
|
2857
|
+
const obj_workTypeGroupFields = obj.workTypeGroupFields;
|
|
2858
|
+
const path_workTypeGroupFields = path + '.workTypeGroupFields';
|
|
2859
|
+
if (typeof obj_workTypeGroupFields !== 'object' || ArrayIsArray(obj_workTypeGroupFields) || obj_workTypeGroupFields === null) {
|
|
2860
|
+
return new TypeError('Expected "object" but received "' + typeof obj_workTypeGroupFields + '" (at "' + path_workTypeGroupFields + '")');
|
|
2861
|
+
}
|
|
2862
|
+
const obj_workTypeGroupFields_keys = ObjectKeys(obj_workTypeGroupFields);
|
|
2863
|
+
for (let i = 0; i < obj_workTypeGroupFields_keys.length; i++) {
|
|
2864
|
+
const key = obj_workTypeGroupFields_keys[i];
|
|
2865
|
+
const obj_workTypeGroupFields_prop = obj_workTypeGroupFields[key];
|
|
2866
|
+
const path_workTypeGroupFields_prop = path_workTypeGroupFields + '["' + key + '"]';
|
|
2867
|
+
if (obj_workTypeGroupFields_prop === undefined) {
|
|
2868
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_workTypeGroupFields_prop + '" (at "' + path_workTypeGroupFields_prop + '")');
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2856
2872
|
if (obj.workTypeGroupId !== undefined) {
|
|
2857
2873
|
const obj_workTypeGroupId = obj.workTypeGroupId;
|
|
2858
2874
|
const path_workTypeGroupId = path + '.workTypeGroupId';
|
|
@@ -2886,6 +2902,11 @@ const select$Q = function AvailableTopicSelect() {
|
|
|
2886
2902
|
kind: 'Object',
|
|
2887
2903
|
// any
|
|
2888
2904
|
},
|
|
2905
|
+
{
|
|
2906
|
+
name: 'workTypeGroupFields',
|
|
2907
|
+
kind: 'Object',
|
|
2908
|
+
// any
|
|
2909
|
+
},
|
|
2889
2910
|
{
|
|
2890
2911
|
name: 'workTypeGroupId',
|
|
2891
2912
|
kind: 'Scalar',
|
|
@@ -2957,6 +2978,24 @@ function equals$w(existing, incoming) {
|
|
|
2957
2978
|
return false;
|
|
2958
2979
|
}
|
|
2959
2980
|
}
|
|
2981
|
+
const existing_workTypeGroupFields = existing.workTypeGroupFields;
|
|
2982
|
+
const incoming_workTypeGroupFields = incoming.workTypeGroupFields;
|
|
2983
|
+
// if at least one of these optionals is defined
|
|
2984
|
+
if (existing_workTypeGroupFields !== undefined || incoming_workTypeGroupFields !== undefined) {
|
|
2985
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
2986
|
+
// not equal
|
|
2987
|
+
if (existing_workTypeGroupFields === undefined || incoming_workTypeGroupFields === undefined) {
|
|
2988
|
+
return false;
|
|
2989
|
+
}
|
|
2990
|
+
const equals_workTypeGroupFields_props = equalsObject(existing_workTypeGroupFields, incoming_workTypeGroupFields, (existing_workTypeGroupFields_prop, incoming_workTypeGroupFields_prop) => {
|
|
2991
|
+
if (JSONStringify(incoming_workTypeGroupFields_prop) !== JSONStringify(existing_workTypeGroupFields_prop)) {
|
|
2992
|
+
return false;
|
|
2993
|
+
}
|
|
2994
|
+
});
|
|
2995
|
+
if (equals_workTypeGroupFields_props === false) {
|
|
2996
|
+
return false;
|
|
2997
|
+
}
|
|
2998
|
+
}
|
|
2960
2999
|
return true;
|
|
2961
3000
|
}
|
|
2962
3001
|
|
|
@@ -3043,14 +3082,14 @@ function select$O(luvio, params) {
|
|
|
3043
3082
|
return select$P();
|
|
3044
3083
|
}
|
|
3045
3084
|
function keyBuilder$w(luvio, params) {
|
|
3046
|
-
return keyPrefix + '::AvailableTopicsOutputRepresentation:(' + ')';
|
|
3085
|
+
return keyPrefix + '::AvailableTopicsOutputRepresentation:(' + 'workTypeGroupFields:' + params.queryParams.workTypeGroupFields + ')';
|
|
3047
3086
|
}
|
|
3048
3087
|
function getResponseCacheKeys$j(storeKeyMap, luvio, resourceParams, response) {
|
|
3049
|
-
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$w());
|
|
3088
|
+
getTypeCacheKeys$i(storeKeyMap, luvio, response, () => keyBuilder$w(luvio, resourceParams));
|
|
3050
3089
|
}
|
|
3051
3090
|
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
3052
3091
|
const { body } = response;
|
|
3053
|
-
const key = keyBuilder$w();
|
|
3092
|
+
const key = keyBuilder$w(luvio, resourceParams);
|
|
3054
3093
|
luvio.storeIngest(key, ingest$i, body);
|
|
3055
3094
|
const snapshot = luvio.storeLookup({
|
|
3056
3095
|
recordId: key,
|
|
@@ -3066,7 +3105,7 @@ function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3066
3105
|
return snapshot;
|
|
3067
3106
|
}
|
|
3068
3107
|
function ingestError$d(luvio, params, error, snapshotRefresh) {
|
|
3069
|
-
const key = keyBuilder$w();
|
|
3108
|
+
const key = keyBuilder$w(luvio, params);
|
|
3070
3109
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
3071
3110
|
luvio.storeIngestError(key, errorSnapshot);
|
|
3072
3111
|
return errorSnapshot;
|
|
@@ -3079,22 +3118,25 @@ function createResourceRequest$j(config) {
|
|
|
3079
3118
|
method: 'get',
|
|
3080
3119
|
body: null,
|
|
3081
3120
|
urlParams: {},
|
|
3082
|
-
queryParams:
|
|
3121
|
+
queryParams: config.queryParams,
|
|
3083
3122
|
headers,
|
|
3084
3123
|
priority: 'normal',
|
|
3085
3124
|
};
|
|
3086
3125
|
}
|
|
3087
3126
|
|
|
3088
3127
|
const adapterName$j = 'getAvailableTopics';
|
|
3089
|
-
const getAvailableTopics_ConfigPropertyMetadata = [
|
|
3128
|
+
const getAvailableTopics_ConfigPropertyMetadata = [
|
|
3129
|
+
generateParamConfigMetadata('workTypeGroupFields', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
3130
|
+
];
|
|
3090
3131
|
const getAvailableTopics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$j, getAvailableTopics_ConfigPropertyMetadata);
|
|
3091
3132
|
const createResourceParams$j = /*#__PURE__*/ createResourceParams$q(getAvailableTopics_ConfigPropertyMetadata);
|
|
3092
3133
|
function keyBuilder$v(luvio, config) {
|
|
3093
|
-
createResourceParams$j(config);
|
|
3094
|
-
return keyBuilder$w();
|
|
3134
|
+
const resourceParams = createResourceParams$j(config);
|
|
3135
|
+
return keyBuilder$w(luvio, resourceParams);
|
|
3095
3136
|
}
|
|
3096
3137
|
function typeCheckConfig$j(untrustedConfig) {
|
|
3097
3138
|
const config = {};
|
|
3139
|
+
typeCheckConfig$q(untrustedConfig, config, getAvailableTopics_ConfigPropertyMetadata);
|
|
3098
3140
|
return config;
|
|
3099
3141
|
}
|
|
3100
3142
|
function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
@@ -3104,7 +3146,7 @@ function validateAdapterConfig$j(untrustedConfig, configPropertyNames) {
|
|
|
3104
3146
|
if (process.env.NODE_ENV !== 'production') {
|
|
3105
3147
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
3106
3148
|
}
|
|
3107
|
-
const config = typeCheckConfig$j();
|
|
3149
|
+
const config = typeCheckConfig$j(untrustedConfig);
|
|
3108
3150
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
3109
3151
|
return null;
|
|
3110
3152
|
}
|
|
@@ -3130,7 +3172,7 @@ function onFetchResponseError$d(luvio, config, resourceParams, response) {
|
|
|
3130
3172
|
}
|
|
3131
3173
|
function buildNetworkSnapshot$j(luvio, config, options) {
|
|
3132
3174
|
const resourceParams = createResourceParams$j(config);
|
|
3133
|
-
const request = createResourceRequest$j();
|
|
3175
|
+
const request = createResourceRequest$j(resourceParams);
|
|
3134
3176
|
return luvio.dispatchResourceRequest(request, options)
|
|
3135
3177
|
.then((response) => {
|
|
3136
3178
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$d(luvio, config, resourceParams, response), () => {
|
|
@@ -6,6 +6,7 @@ export declare const adapterName = "getAvailableTopics";
|
|
|
6
6
|
export declare const getAvailableTopics_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getAvailableTopics_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetAvailableTopicsConfig {
|
|
9
|
+
workTypeGroupFields?: Array<string>;
|
|
9
10
|
}
|
|
10
11
|
export declare const createResourceParams: (config: GetAvailableTopicsConfig) => resources_getConnectEducationAppointmentBookingAvailableTopics_ResourceRequestConfig;
|
|
11
12
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetAvailableTopicsConfig): string;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
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
2
|
import { AvailableTopicsOutputRepresentation as types_AvailableTopicsOutputRepresentation_AvailableTopicsOutputRepresentation } from '../types/AvailableTopicsOutputRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
workTypeGroupFields?: Array<string>;
|
|
6
|
+
};
|
|
4
7
|
}
|
|
5
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
6
9
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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 = "
|
|
2
|
+
export declare const VERSION = "4321b4734473e76ac586993908ee84c4";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: AvailableTopic, existing: AvailableTopicNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AvailableTopicNormalized;
|
|
@@ -20,6 +20,10 @@ export interface AvailableTopicNormalized {
|
|
|
20
20
|
serviceTerritoryWorkTypes?: {
|
|
21
21
|
[key: string]: unknown;
|
|
22
22
|
};
|
|
23
|
+
/** Values of the requested Work Type Group fields, keyed by field API name. Populated only for the field API names supplied in the request's workTypeGroupFields input, and only for fields the requesting user can read. */
|
|
24
|
+
workTypeGroupFields?: {
|
|
25
|
+
[key: string]: unknown;
|
|
26
|
+
};
|
|
23
27
|
/** The ID of the work type group that represents the available topic. */
|
|
24
28
|
workTypeGroupId?: string;
|
|
25
29
|
/** The name of the work type group that represents the available topic. */
|
|
@@ -36,6 +40,9 @@ export interface AvailableTopic {
|
|
|
36
40
|
serviceTerritoryWorkTypes?: {
|
|
37
41
|
[key: string]: unknown;
|
|
38
42
|
};
|
|
43
|
+
workTypeGroupFields?: {
|
|
44
|
+
[key: string]: unknown;
|
|
45
|
+
};
|
|
39
46
|
workTypeGroupId?: string;
|
|
40
47
|
workTypeGroupName?: string;
|
|
41
48
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-education",
|
|
3
|
-
"version": "1.451.0-
|
|
3
|
+
"version": "1.451.0-dev4",
|
|
4
4
|
"description": "Education Cloud related actions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/es/es2018/industries-education.js",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"test:unit": "jest --config=./jest.config.js"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@salesforce/lds-bindings": "^1.451.0-
|
|
46
|
+
"@salesforce/lds-bindings": "^1.451.0-dev4"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@salesforce/lds-compiler-plugins": "^1.451.0-
|
|
49
|
+
"@salesforce/lds-compiler-plugins": "^1.451.0-dev4"
|
|
50
50
|
},
|
|
51
51
|
"nx": {
|
|
52
52
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -4658,7 +4658,7 @@ const getAvailableTimeSlotsAdapterFactory = (luvio) => function education__getAv
|
|
|
4658
4658
|
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$d);
|
|
4659
4659
|
};
|
|
4660
4660
|
|
|
4661
|
-
const VERSION$n = "
|
|
4661
|
+
const VERSION$n = "4321b4734473e76ac586993908ee84c4";
|
|
4662
4662
|
function validate$J(obj, path = 'AvailableTopic') {
|
|
4663
4663
|
const v_error = (() => {
|
|
4664
4664
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4687,6 +4687,22 @@ function validate$J(obj, path = 'AvailableTopic') {
|
|
|
4687
4687
|
}
|
|
4688
4688
|
}
|
|
4689
4689
|
}
|
|
4690
|
+
if (obj.workTypeGroupFields !== undefined) {
|
|
4691
|
+
const obj_workTypeGroupFields = obj.workTypeGroupFields;
|
|
4692
|
+
const path_workTypeGroupFields = path + '.workTypeGroupFields';
|
|
4693
|
+
if (typeof obj_workTypeGroupFields !== 'object' || ArrayIsArray(obj_workTypeGroupFields) || obj_workTypeGroupFields === null) {
|
|
4694
|
+
return new TypeError('Expected "object" but received "' + typeof obj_workTypeGroupFields + '" (at "' + path_workTypeGroupFields + '")');
|
|
4695
|
+
}
|
|
4696
|
+
const obj_workTypeGroupFields_keys = ObjectKeys(obj_workTypeGroupFields);
|
|
4697
|
+
for (let i = 0; i < obj_workTypeGroupFields_keys.length; i++) {
|
|
4698
|
+
const key = obj_workTypeGroupFields_keys[i];
|
|
4699
|
+
const obj_workTypeGroupFields_prop = obj_workTypeGroupFields[key];
|
|
4700
|
+
const path_workTypeGroupFields_prop = path_workTypeGroupFields + '["' + key + '"]';
|
|
4701
|
+
if (obj_workTypeGroupFields_prop === undefined) {
|
|
4702
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_workTypeGroupFields_prop + '" (at "' + path_workTypeGroupFields_prop + '")');
|
|
4703
|
+
}
|
|
4704
|
+
}
|
|
4705
|
+
}
|
|
4690
4706
|
if (obj.workTypeGroupId !== undefined) {
|
|
4691
4707
|
const obj_workTypeGroupId = obj.workTypeGroupId;
|
|
4692
4708
|
const path_workTypeGroupId = path + '.workTypeGroupId';
|
|
@@ -4720,6 +4736,11 @@ const select$E = function AvailableTopicSelect() {
|
|
|
4720
4736
|
kind: 'Object',
|
|
4721
4737
|
// any
|
|
4722
4738
|
},
|
|
4739
|
+
{
|
|
4740
|
+
name: 'workTypeGroupFields',
|
|
4741
|
+
kind: 'Object',
|
|
4742
|
+
// any
|
|
4743
|
+
},
|
|
4723
4744
|
{
|
|
4724
4745
|
name: 'workTypeGroupId',
|
|
4725
4746
|
kind: 'Scalar',
|
|
@@ -4791,6 +4812,24 @@ function equals$n(existing, incoming) {
|
|
|
4791
4812
|
return false;
|
|
4792
4813
|
}
|
|
4793
4814
|
}
|
|
4815
|
+
const existing_workTypeGroupFields = existing.workTypeGroupFields;
|
|
4816
|
+
const incoming_workTypeGroupFields = incoming.workTypeGroupFields;
|
|
4817
|
+
// if at least one of these optionals is defined
|
|
4818
|
+
if (existing_workTypeGroupFields !== undefined || incoming_workTypeGroupFields !== undefined) {
|
|
4819
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4820
|
+
// not equal
|
|
4821
|
+
if (existing_workTypeGroupFields === undefined || incoming_workTypeGroupFields === undefined) {
|
|
4822
|
+
return false;
|
|
4823
|
+
}
|
|
4824
|
+
const equals_workTypeGroupFields_props = equalsObject(existing_workTypeGroupFields, incoming_workTypeGroupFields, (existing_workTypeGroupFields_prop, incoming_workTypeGroupFields_prop) => {
|
|
4825
|
+
if (JSONStringify(incoming_workTypeGroupFields_prop) !== JSONStringify(existing_workTypeGroupFields_prop)) {
|
|
4826
|
+
return false;
|
|
4827
|
+
}
|
|
4828
|
+
});
|
|
4829
|
+
if (equals_workTypeGroupFields_props === false) {
|
|
4830
|
+
return false;
|
|
4831
|
+
}
|
|
4832
|
+
}
|
|
4794
4833
|
return true;
|
|
4795
4834
|
}
|
|
4796
4835
|
|
|
@@ -4877,14 +4916,14 @@ function select$C(luvio, params) {
|
|
|
4877
4916
|
return select$D();
|
|
4878
4917
|
}
|
|
4879
4918
|
function keyBuilder$r(luvio, params) {
|
|
4880
|
-
return keyPrefix + '::AvailableTopicsOutputRepresentation:(' + ')';
|
|
4919
|
+
return keyPrefix + '::AvailableTopicsOutputRepresentation:(' + 'workTypeGroupFields:' + params.queryParams.workTypeGroupFields + ')';
|
|
4881
4920
|
}
|
|
4882
4921
|
function getResponseCacheKeys$g(storeKeyMap, luvio, resourceParams, response) {
|
|
4883
|
-
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$r());
|
|
4922
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$r(luvio, resourceParams));
|
|
4884
4923
|
}
|
|
4885
4924
|
function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
4886
4925
|
const { body } = response;
|
|
4887
|
-
const key = keyBuilder$r();
|
|
4926
|
+
const key = keyBuilder$r(luvio, resourceParams);
|
|
4888
4927
|
luvio.storeIngest(key, ingest$e, body);
|
|
4889
4928
|
const snapshot = luvio.storeLookup({
|
|
4890
4929
|
recordId: key,
|
|
@@ -4900,7 +4939,7 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4900
4939
|
return snapshot;
|
|
4901
4940
|
}
|
|
4902
4941
|
function ingestError$c(luvio, params, error, snapshotRefresh) {
|
|
4903
|
-
const key = keyBuilder$r();
|
|
4942
|
+
const key = keyBuilder$r(luvio, params);
|
|
4904
4943
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
4905
4944
|
luvio.storeIngestError(key, errorSnapshot);
|
|
4906
4945
|
return errorSnapshot;
|
|
@@ -4913,22 +4952,25 @@ function createResourceRequest$g(config) {
|
|
|
4913
4952
|
method: 'get',
|
|
4914
4953
|
body: null,
|
|
4915
4954
|
urlParams: {},
|
|
4916
|
-
queryParams:
|
|
4955
|
+
queryParams: config.queryParams,
|
|
4917
4956
|
headers,
|
|
4918
4957
|
priority: 'normal',
|
|
4919
4958
|
};
|
|
4920
4959
|
}
|
|
4921
4960
|
|
|
4922
4961
|
const adapterName$g = 'getAvailableTopics';
|
|
4923
|
-
const getAvailableTopics_ConfigPropertyMetadata = [
|
|
4962
|
+
const getAvailableTopics_ConfigPropertyMetadata = [
|
|
4963
|
+
generateParamConfigMetadata('workTypeGroupFields', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
4964
|
+
];
|
|
4924
4965
|
const getAvailableTopics_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, getAvailableTopics_ConfigPropertyMetadata);
|
|
4925
4966
|
const createResourceParams$g = /*#__PURE__*/ createResourceParams$q(getAvailableTopics_ConfigPropertyMetadata);
|
|
4926
4967
|
function keyBuilder$q(luvio, config) {
|
|
4927
|
-
createResourceParams$g(config);
|
|
4928
|
-
return keyBuilder$r();
|
|
4968
|
+
const resourceParams = createResourceParams$g(config);
|
|
4969
|
+
return keyBuilder$r(luvio, resourceParams);
|
|
4929
4970
|
}
|
|
4930
4971
|
function typeCheckConfig$g(untrustedConfig) {
|
|
4931
4972
|
const config = {};
|
|
4973
|
+
typeCheckConfig$q(untrustedConfig, config, getAvailableTopics_ConfigPropertyMetadata);
|
|
4932
4974
|
return config;
|
|
4933
4975
|
}
|
|
4934
4976
|
function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
@@ -4938,7 +4980,7 @@ function validateAdapterConfig$g(untrustedConfig, configPropertyNames) {
|
|
|
4938
4980
|
if (process.env.NODE_ENV !== 'production') {
|
|
4939
4981
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
4940
4982
|
}
|
|
4941
|
-
const config = typeCheckConfig$g();
|
|
4983
|
+
const config = typeCheckConfig$g(untrustedConfig);
|
|
4942
4984
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
4943
4985
|
return null;
|
|
4944
4986
|
}
|
|
@@ -4964,7 +5006,7 @@ function onFetchResponseError$c(luvio, config, resourceParams, response) {
|
|
|
4964
5006
|
}
|
|
4965
5007
|
function buildNetworkSnapshot$g(luvio, config, options) {
|
|
4966
5008
|
const resourceParams = createResourceParams$g(config);
|
|
4967
|
-
const request = createResourceRequest$g();
|
|
5009
|
+
const request = createResourceRequest$g(resourceParams);
|
|
4968
5010
|
return luvio.dispatchResourceRequest(request, options)
|
|
4969
5011
|
.then((response) => {
|
|
4970
5012
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$c(luvio, config, resourceParams, response), () => {
|
|
@@ -10728,4 +10770,4 @@ withDefaultLuvio((luvio) => {
|
|
|
10728
10770
|
});
|
|
10729
10771
|
|
|
10730
10772
|
export { createCarePlans, createLearnings, createPreliminaryApplicationReferences, createTask, getAcademicTerms, getAcademicTerms_imperative, getApplicationDetails, getApplicationDetails_imperative, getApplications, getApplications_imperative, getAptsTasksPlans, getAptsTasksPlans_imperative, getAvailableTimeSlots, getAvailableTimeSlots_imperative, getAvailableTopics, getAvailableTopics_imperative, getDocumentTypes, getDocumentTypes_imperative, getIndividualApplicationTask, getIndividualApplicationTask_imperative, getLearnerProgress, getLearnerProgress_imperative, getLearning, getLearning_imperative, getNewApplicationPreliminaryData, getNewApplicationPreliminaryData_imperative, getPersonPublicProfile, getPersonPublicProfile_imperative, getPicklistValues, getPicklistValues_imperative, getPreviewLearningProgramPlan, getPreviewLearningProgramPlan_imperative, getProgramTermApplicationTimelines, getProgramTermApplicationTimelines_imperative, getSuccessTeam, getSuccessTeam_imperative, postBenefitAssignment, postMatchingSelector, postMatchingSelector_imperative, postPublishLearningProgramPlan, postValidateLearningFoundationList, postValidateLearningFoundationList_imperative, updateLearnings, updateTaskStatus };
|
|
10731
|
-
// version: 1.451.0-
|
|
10773
|
+
// version: 1.451.0-dev4-4d3d402e25
|
package/src/raml/api.raml
CHANGED
|
@@ -578,6 +578,15 @@ types:
|
|
|
578
578
|
topic.
|
|
579
579
|
type: string
|
|
580
580
|
required: false
|
|
581
|
+
workTypeGroupFields: # TODO Hand-rolled
|
|
582
|
+
description: Values of the requested Work Type Group fields, keyed by field
|
|
583
|
+
API name. Populated only for the field API names supplied in the request's
|
|
584
|
+
workTypeGroupFields input, and only for fields the requesting user can read.
|
|
585
|
+
type: object
|
|
586
|
+
required: false
|
|
587
|
+
properties:
|
|
588
|
+
//:
|
|
589
|
+
type: any
|
|
581
590
|
AvailableTopicsOutputRepresentation:
|
|
582
591
|
description: Output representation of the get available topics request.
|
|
583
592
|
type: object
|
|
@@ -3334,6 +3343,17 @@ types:
|
|
|
3334
3343
|
body:
|
|
3335
3344
|
application/json:
|
|
3336
3345
|
type: AvailableTopicsOutputRepresentation
|
|
3346
|
+
queryParameters:
|
|
3347
|
+
workTypeGroupFields: # TODO Hand-rolled
|
|
3348
|
+
description: API names of the Work Type Group fields to surface for each
|
|
3349
|
+
available topic. Each requested field's value is returned in the topic's
|
|
3350
|
+
workTypeGroupFields map, subject to the requesting user's field-level
|
|
3351
|
+
security.
|
|
3352
|
+
type: array
|
|
3353
|
+
required: false
|
|
3354
|
+
items:
|
|
3355
|
+
type: string
|
|
3356
|
+
(oas-collectionFormat): csv
|
|
3337
3357
|
/campus-setup:
|
|
3338
3358
|
/learner/{contactId}/learner-progress:
|
|
3339
3359
|
get:
|