@salesforce/lds-adapters-industries-education 1.342.0 → 1.344.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/industries-education.js +53 -27
- package/dist/es/es2018/types/src/generated/adapters/getLearning.d.ts +7 -5
- package/dist/es/es2018/types/src/generated/resources/{getConnectEducationAcademicOperationsLearningsByLearningId.d.ts → getConnectEducationAcademicOperationsLearningsByRecordId.d.ts} +5 -1
- package/dist/es/es2018/types/src/generated/types/GetLearningOutputRepresentation.d.ts +8 -1
- package/package.json +4 -4
- package/sfdc/index.js +32 -6
- package/src/raml/api.raml +22 -2
- package/src/raml/luvio.raml +1 -1
|
@@ -588,8 +588,27 @@ function validate$1b(obj, path = 'LearningFoundationItemOutput') {
|
|
|
588
588
|
return v_error === undefined ? null : v_error;
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
|
|
592
|
-
|
|
591
|
+
function validate$1a(obj, path = 'EducationApiErrorDetails') {
|
|
592
|
+
const v_error = (() => {
|
|
593
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
594
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
595
|
+
}
|
|
596
|
+
const obj_field = obj.field;
|
|
597
|
+
const path_field = path + '.field';
|
|
598
|
+
if (typeof obj_field !== 'string') {
|
|
599
|
+
return new TypeError('Expected "string" but received "' + typeof obj_field + '" (at "' + path_field + '")');
|
|
600
|
+
}
|
|
601
|
+
const obj_message = obj.message;
|
|
602
|
+
const path_message = path + '.message';
|
|
603
|
+
if (typeof obj_message !== 'string') {
|
|
604
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
605
|
+
}
|
|
606
|
+
})();
|
|
607
|
+
return v_error === undefined ? null : v_error;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
const VERSION$C = "e5893e4dd2e0536eac513ce278a79023";
|
|
611
|
+
function validate$19(obj, path = 'GetLearningOutputRepresentation') {
|
|
593
612
|
const v_error = (() => {
|
|
594
613
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
595
614
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -611,6 +630,23 @@ function validate$1a(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
611
630
|
}
|
|
612
631
|
}
|
|
613
632
|
}
|
|
633
|
+
if (obj.errors !== undefined) {
|
|
634
|
+
const obj_errors = obj.errors;
|
|
635
|
+
const path_errors = path + '.errors';
|
|
636
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
637
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
638
|
+
}
|
|
639
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
640
|
+
const obj_errors_item = obj_errors[i];
|
|
641
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
642
|
+
const referencepath_errors_itemValidationError = validate$1a(obj_errors_item, path_errors_item);
|
|
643
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
644
|
+
let message = 'Object doesn\'t match EducationApiErrorDetails (at "' + path_errors_item + '")\n';
|
|
645
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
646
|
+
return new TypeError(message);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
}
|
|
614
650
|
if (obj.learning !== undefined) {
|
|
615
651
|
const obj_learning = obj.learning;
|
|
616
652
|
const path_learning = path + '.learning';
|
|
@@ -672,6 +708,13 @@ function validate$1a(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
672
708
|
}
|
|
673
709
|
}
|
|
674
710
|
}
|
|
711
|
+
if (obj.success !== undefined) {
|
|
712
|
+
const obj_success = obj.success;
|
|
713
|
+
const path_success = path + '.success';
|
|
714
|
+
if (typeof obj_success !== 'boolean') {
|
|
715
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_success + '" (at "' + path_success + '")');
|
|
716
|
+
}
|
|
717
|
+
}
|
|
675
718
|
})();
|
|
676
719
|
return v_error === undefined ? null : v_error;
|
|
677
720
|
}
|
|
@@ -695,7 +738,7 @@ function equals$C(existing, incoming) {
|
|
|
695
738
|
}
|
|
696
739
|
const ingest$m = function GetLearningOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
697
740
|
if (process.env.NODE_ENV !== 'production') {
|
|
698
|
-
const validateError = validate$
|
|
741
|
+
const validateError = validate$19(input);
|
|
699
742
|
if (validateError !== null) {
|
|
700
743
|
throw validateError;
|
|
701
744
|
}
|
|
@@ -719,7 +762,7 @@ function select$_(luvio, params) {
|
|
|
719
762
|
return select$$();
|
|
720
763
|
}
|
|
721
764
|
function keyBuilder$D(luvio, params) {
|
|
722
|
-
return keyPrefix + '::GetLearningOutputRepresentation:(' + '
|
|
765
|
+
return keyPrefix + '::GetLearningOutputRepresentation:(' + 'course_external_id_field:' + params.queryParams.course_external_id_field + ',' + 'program_external_id_field:' + params.queryParams.program_external_id_field + ',' + 'recordId:' + params.urlParams.recordId + ')';
|
|
723
766
|
}
|
|
724
767
|
function getResponseCacheKeys$o(storeKeyMap, luvio, resourceParams, response) {
|
|
725
768
|
getTypeCacheKeys$m(storeKeyMap, luvio, response, () => keyBuilder$D(luvio, resourceParams));
|
|
@@ -751,11 +794,11 @@ function createResourceRequest$o(config) {
|
|
|
751
794
|
const headers = {};
|
|
752
795
|
return {
|
|
753
796
|
baseUri: '/services/data/v64.0',
|
|
754
|
-
basePath: '/connect/education/academic-operations/learnings/' + config.urlParams.
|
|
797
|
+
basePath: '/connect/education/academic-operations/learnings/' + config.urlParams.recordId + '',
|
|
755
798
|
method: 'get',
|
|
756
799
|
body: null,
|
|
757
800
|
urlParams: config.urlParams,
|
|
758
|
-
queryParams:
|
|
801
|
+
queryParams: config.queryParams,
|
|
759
802
|
headers,
|
|
760
803
|
priority: 'normal',
|
|
761
804
|
};
|
|
@@ -763,7 +806,9 @@ function createResourceRequest$o(config) {
|
|
|
763
806
|
|
|
764
807
|
const adapterName$o = 'getLearning';
|
|
765
808
|
const getLearning_ConfigPropertyMetadata = [
|
|
766
|
-
generateParamConfigMetadata('
|
|
809
|
+
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
810
|
+
generateParamConfigMetadata('course_external_id_field', false, 1 /* QueryParameter */, 0 /* String */),
|
|
811
|
+
generateParamConfigMetadata('program_external_id_field', false, 1 /* QueryParameter */, 0 /* String */),
|
|
767
812
|
];
|
|
768
813
|
const getLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$o, getLearning_ConfigPropertyMetadata);
|
|
769
814
|
const createResourceParams$o = /*#__PURE__*/ createResourceParams$p(getLearning_ConfigPropertyMetadata);
|
|
@@ -847,25 +892,6 @@ const getLearningAdapterFactory = (luvio) => function education__getLearning(unt
|
|
|
847
892
|
buildCachedSnapshotCachePolicy$g, buildNetworkSnapshotCachePolicy$g);
|
|
848
893
|
};
|
|
849
894
|
|
|
850
|
-
function validate$19(obj, path = 'EducationApiErrorDetails') {
|
|
851
|
-
const v_error = (() => {
|
|
852
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
853
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
854
|
-
}
|
|
855
|
-
const obj_field = obj.field;
|
|
856
|
-
const path_field = path + '.field';
|
|
857
|
-
if (typeof obj_field !== 'string') {
|
|
858
|
-
return new TypeError('Expected "string" but received "' + typeof obj_field + '" (at "' + path_field + '")');
|
|
859
|
-
}
|
|
860
|
-
const obj_message = obj.message;
|
|
861
|
-
const path_message = path + '.message';
|
|
862
|
-
if (typeof obj_message !== 'string') {
|
|
863
|
-
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
864
|
-
}
|
|
865
|
-
})();
|
|
866
|
-
return v_error === undefined ? null : v_error;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
895
|
function validate$18(obj, path = 'CreateLearningOutputRepresentation') {
|
|
870
896
|
const v_error = (() => {
|
|
871
897
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -880,7 +906,7 @@ function validate$18(obj, path = 'CreateLearningOutputRepresentation') {
|
|
|
880
906
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
881
907
|
const obj_errors_item = obj_errors[i];
|
|
882
908
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
883
|
-
const referencepath_errors_itemValidationError = validate$
|
|
909
|
+
const referencepath_errors_itemValidationError = validate$1a(obj_errors_item, path_errors_item);
|
|
884
910
|
if (referencepath_errors_itemValidationError !== null) {
|
|
885
911
|
let message = 'Object doesn\'t match EducationApiErrorDetails (at "' + path_errors_item + '")\n';
|
|
886
912
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
2
|
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
-
import { ResourceRequestConfig as
|
|
3
|
+
import { ResourceRequestConfig as resources_getConnectEducationAcademicOperationsLearningsByRecordId_ResourceRequestConfig } from '../resources/getConnectEducationAcademicOperationsLearningsByRecordId';
|
|
4
4
|
import { GetLearningOutputRepresentation as types_GetLearningOutputRepresentation_GetLearningOutputRepresentation } from '../types/GetLearningOutputRepresentation';
|
|
5
5
|
export declare const adapterName = "getLearning";
|
|
6
6
|
export declare const getLearning_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getLearning_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetLearningConfig {
|
|
9
|
-
|
|
9
|
+
recordId: string;
|
|
10
|
+
course_external_id_field?: string;
|
|
11
|
+
program_external_id_field?: string;
|
|
10
12
|
}
|
|
11
|
-
export declare const createResourceParams: (config: GetLearningConfig) =>
|
|
13
|
+
export declare const createResourceParams: (config: GetLearningConfig) => resources_getConnectEducationAcademicOperationsLearningsByRecordId_ResourceRequestConfig;
|
|
12
14
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLearningConfig): string;
|
|
13
15
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetLearningConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
16
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetLearningConfig>): adapter$45$utils_Untrusted<GetLearningConfig>;
|
|
15
17
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetLearningConfig | null;
|
|
16
18
|
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetLearningConfig): $64$luvio_engine_Fragment;
|
|
17
19
|
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetLearningConfig): $64$luvio_engine_Snapshot<types_GetLearningOutputRepresentation_GetLearningOutputRepresentation, any>;
|
|
18
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetLearningConfig, resourceParams:
|
|
19
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetLearningConfig, resourceParams:
|
|
20
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetLearningConfig, resourceParams: resources_getConnectEducationAcademicOperationsLearningsByRecordId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_GetLearningOutputRepresentation_GetLearningOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_GetLearningOutputRepresentation_GetLearningOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_GetLearningOutputRepresentation_GetLearningOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_GetLearningOutputRepresentation_GetLearningOutputRepresentation, any>>;
|
|
21
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetLearningConfig, resourceParams: resources_getConnectEducationAcademicOperationsLearningsByRecordId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
22
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetLearningConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_GetLearningOutputRepresentation_GetLearningOutputRepresentation, any>>;
|
|
21
23
|
export type BuildSnapshotContext = {
|
|
22
24
|
luvio: $64$luvio_engine_Luvio;
|
|
@@ -2,7 +2,11 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { GetLearningOutputRepresentation as types_GetLearningOutputRepresentation_GetLearningOutputRepresentation } from '../types/GetLearningOutputRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
5
|
-
|
|
5
|
+
recordId: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
course_external_id_field?: string;
|
|
9
|
+
program_external_id_field?: string;
|
|
6
10
|
};
|
|
7
11
|
}
|
|
8
12
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { LearningFoundationItemOutput as LearningFoundationItemOutput_LearningFoundationItemOutput } from './LearningFoundationItemOutput';
|
|
2
|
+
import { EducationApiErrorDetails as EducationApiErrorDetails_EducationApiErrorDetails } from './EducationApiErrorDetails';
|
|
2
3
|
import { LearningOutput as LearningOutput_LearningOutput } from './LearningOutput';
|
|
3
4
|
import { LearningOutcomeItemOutput as LearningOutcomeItemOutput_LearningOutcomeItemOutput } from './LearningOutcomeItemOutput';
|
|
4
5
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
5
6
|
import { LearningCourseOutput as LearningCourseOutput_LearningCourseOutput } from './LearningCourseOutput';
|
|
6
7
|
import { LearningProgramOutput as LearningProgramOutput_LearningProgramOutput } from './LearningProgramOutput';
|
|
7
|
-
export declare const VERSION = "
|
|
8
|
+
export declare const VERSION = "e5893e4dd2e0536eac513ce278a79023";
|
|
8
9
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
9
10
|
export declare const RepresentationType: string;
|
|
10
11
|
export declare function normalize(input: GetLearningOutputRepresentation, existing: GetLearningOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GetLearningOutputRepresentationNormalized;
|
|
@@ -21,6 +22,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
21
22
|
export interface GetLearningOutputRepresentationNormalized {
|
|
22
23
|
/** Corequisites */
|
|
23
24
|
corequisites?: Array<LearningFoundationItemOutput_LearningFoundationItemOutput>;
|
|
25
|
+
/** Specifies the validation errors for the API parameters. */
|
|
26
|
+
errors?: Array<EducationApiErrorDetails_EducationApiErrorDetails>;
|
|
24
27
|
learning?: LearningOutput_LearningOutput;
|
|
25
28
|
/** Outcomes */
|
|
26
29
|
outcomes?: Array<LearningOutcomeItemOutput_LearningOutcomeItemOutput>;
|
|
@@ -28,6 +31,8 @@ export interface GetLearningOutputRepresentationNormalized {
|
|
|
28
31
|
prerequisites?: Array<LearningFoundationItemOutput_LearningFoundationItemOutput>;
|
|
29
32
|
/** Recommended */
|
|
30
33
|
recommended?: Array<LearningFoundationItemOutput_LearningFoundationItemOutput>;
|
|
34
|
+
/** Specifies the success of the API. */
|
|
35
|
+
success?: boolean;
|
|
31
36
|
}
|
|
32
37
|
/**
|
|
33
38
|
* Learning output.
|
|
@@ -37,8 +42,10 @@ export interface GetLearningOutputRepresentationNormalized {
|
|
|
37
42
|
*/
|
|
38
43
|
export interface GetLearningOutputRepresentation {
|
|
39
44
|
corequisites?: Array<LearningFoundationItemOutput_LearningFoundationItemOutput>;
|
|
45
|
+
errors?: Array<EducationApiErrorDetails_EducationApiErrorDetails>;
|
|
40
46
|
learning?: LearningCourseOutput_LearningCourseOutput | LearningProgramOutput_LearningProgramOutput;
|
|
41
47
|
outcomes?: Array<LearningOutcomeItemOutput_LearningOutcomeItemOutput>;
|
|
42
48
|
prerequisites?: Array<LearningFoundationItemOutput_LearningFoundationItemOutput>;
|
|
43
49
|
recommended?: Array<LearningFoundationItemOutput_LearningFoundationItemOutput>;
|
|
50
|
+
success?: boolean;
|
|
44
51
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-education",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.344.0",
|
|
4
4
|
"description": "Education Cloud related actions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/es/es2018/industries-education.js",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"test:unit": "jest --config=./jest.config.js"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@salesforce/lds-bindings": "^1.
|
|
49
|
+
"@salesforce/lds-bindings": "^1.344.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
53
|
-
"@salesforce/lds-karma": "^1.
|
|
52
|
+
"@salesforce/lds-compiler-plugins": "^1.344.0",
|
|
53
|
+
"@salesforce/lds-karma": "^1.344.0"
|
|
54
54
|
},
|
|
55
55
|
"nx": {
|
|
56
56
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -6141,7 +6141,7 @@ function validate$u(obj, path = 'LearningFoundationItemOutput') {
|
|
|
6141
6141
|
return v_error === undefined ? null : v_error;
|
|
6142
6142
|
}
|
|
6143
6143
|
|
|
6144
|
-
const VERSION$i = "
|
|
6144
|
+
const VERSION$i = "e5893e4dd2e0536eac513ce278a79023";
|
|
6145
6145
|
function validate$t(obj, path = 'GetLearningOutputRepresentation') {
|
|
6146
6146
|
const v_error = (() => {
|
|
6147
6147
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6164,6 +6164,23 @@ function validate$t(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
6164
6164
|
}
|
|
6165
6165
|
}
|
|
6166
6166
|
}
|
|
6167
|
+
if (obj.errors !== undefined) {
|
|
6168
|
+
const obj_errors = obj.errors;
|
|
6169
|
+
const path_errors = path + '.errors';
|
|
6170
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
6171
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
6172
|
+
}
|
|
6173
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
6174
|
+
const obj_errors_item = obj_errors[i];
|
|
6175
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
6176
|
+
const referencepath_errors_itemValidationError = validate$12(obj_errors_item, path_errors_item);
|
|
6177
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
6178
|
+
let message = 'Object doesn\'t match EducationApiErrorDetails (at "' + path_errors_item + '")\n';
|
|
6179
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6180
|
+
return new TypeError(message);
|
|
6181
|
+
}
|
|
6182
|
+
}
|
|
6183
|
+
}
|
|
6167
6184
|
if (obj.learning !== undefined) {
|
|
6168
6185
|
const obj_learning = obj.learning;
|
|
6169
6186
|
const path_learning = path + '.learning';
|
|
@@ -6225,6 +6242,13 @@ function validate$t(obj, path = 'GetLearningOutputRepresentation') {
|
|
|
6225
6242
|
}
|
|
6226
6243
|
}
|
|
6227
6244
|
}
|
|
6245
|
+
if (obj.success !== undefined) {
|
|
6246
|
+
const obj_success = obj.success;
|
|
6247
|
+
const path_success = path + '.success';
|
|
6248
|
+
if (typeof obj_success !== 'boolean') {
|
|
6249
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_success + '" (at "' + path_success + '")');
|
|
6250
|
+
}
|
|
6251
|
+
}
|
|
6228
6252
|
})();
|
|
6229
6253
|
return v_error === undefined ? null : v_error;
|
|
6230
6254
|
}
|
|
@@ -6272,7 +6296,7 @@ function select$u(luvio, params) {
|
|
|
6272
6296
|
return select$v();
|
|
6273
6297
|
}
|
|
6274
6298
|
function keyBuilder$j(luvio, params) {
|
|
6275
|
-
return keyPrefix + '::GetLearningOutputRepresentation:(' + '
|
|
6299
|
+
return keyPrefix + '::GetLearningOutputRepresentation:(' + 'course_external_id_field:' + params.queryParams.course_external_id_field + ',' + 'program_external_id_field:' + params.queryParams.program_external_id_field + ',' + 'recordId:' + params.urlParams.recordId + ')';
|
|
6276
6300
|
}
|
|
6277
6301
|
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
6278
6302
|
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
|
|
@@ -6304,11 +6328,11 @@ function createResourceRequest$c(config) {
|
|
|
6304
6328
|
const headers = {};
|
|
6305
6329
|
return {
|
|
6306
6330
|
baseUri: '/services/data/v64.0',
|
|
6307
|
-
basePath: '/connect/education/academic-operations/learnings/' + config.urlParams.
|
|
6331
|
+
basePath: '/connect/education/academic-operations/learnings/' + config.urlParams.recordId + '',
|
|
6308
6332
|
method: 'get',
|
|
6309
6333
|
body: null,
|
|
6310
6334
|
urlParams: config.urlParams,
|
|
6311
|
-
queryParams:
|
|
6335
|
+
queryParams: config.queryParams,
|
|
6312
6336
|
headers,
|
|
6313
6337
|
priority: 'normal',
|
|
6314
6338
|
};
|
|
@@ -6316,7 +6340,9 @@ function createResourceRequest$c(config) {
|
|
|
6316
6340
|
|
|
6317
6341
|
const adapterName$c = 'getLearning';
|
|
6318
6342
|
const getLearning_ConfigPropertyMetadata = [
|
|
6319
|
-
generateParamConfigMetadata('
|
|
6343
|
+
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6344
|
+
generateParamConfigMetadata('course_external_id_field', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6345
|
+
generateParamConfigMetadata('program_external_id_field', false, 1 /* QueryParameter */, 0 /* String */),
|
|
6320
6346
|
];
|
|
6321
6347
|
const getLearning_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getLearning_ConfigPropertyMetadata);
|
|
6322
6348
|
const createResourceParams$c = /*#__PURE__*/ createResourceParams$p(getLearning_ConfigPropertyMetadata);
|
|
@@ -10269,4 +10295,4 @@ withDefaultLuvio((luvio) => {
|
|
|
10269
10295
|
});
|
|
10270
10296
|
|
|
10271
10297
|
export { createCarePlans, createLearnings, createPreliminaryApplicationReferences, createTask, getAcademicTerms, getAcademicTerms_imperative, getApplicationDetails, getApplicationDetails_imperative, getApplications, getApplications_imperative, getAptsTasksPlans, getAptsTasksPlans_imperative, getAvailableTimeSlots, getAvailableTimeSlots_imperative, getAvailableTopics, getAvailableTopics_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 };
|
|
10272
|
-
// version: 1.
|
|
10298
|
+
// version: 1.344.0-455da7ef74
|
package/src/raml/api.raml
CHANGED
|
@@ -1257,6 +1257,12 @@ types:
|
|
|
1257
1257
|
required: false
|
|
1258
1258
|
items:
|
|
1259
1259
|
type: LearningFoundationItemOutput
|
|
1260
|
+
errors:
|
|
1261
|
+
description: Specifies the validation errors for the API parameters.
|
|
1262
|
+
type: array
|
|
1263
|
+
required: false
|
|
1264
|
+
items:
|
|
1265
|
+
type: EducationApiErrorDetails
|
|
1260
1266
|
learning:
|
|
1261
1267
|
description: Learning
|
|
1262
1268
|
type: LearningOutput
|
|
@@ -1279,6 +1285,10 @@ types:
|
|
|
1279
1285
|
required: false
|
|
1280
1286
|
items:
|
|
1281
1287
|
type: LearningFoundationItemOutput
|
|
1288
|
+
success:
|
|
1289
|
+
description: Specifies the success of the API.
|
|
1290
|
+
type: boolean
|
|
1291
|
+
required: false
|
|
1282
1292
|
GetNewApplicationPreliminaryDataResult:
|
|
1283
1293
|
description: Representation of the get new application preliminary data request.
|
|
1284
1294
|
type: object
|
|
@@ -2921,7 +2931,7 @@ types:
|
|
|
2921
2931
|
type: string
|
|
2922
2932
|
required: false
|
|
2923
2933
|
/connect/education:
|
|
2924
|
-
/academic-operations/learnings/{
|
|
2934
|
+
/academic-operations/learnings/{recordId}:
|
|
2925
2935
|
get:
|
|
2926
2936
|
displayName: getLearning
|
|
2927
2937
|
description: Get learning, achievements and their associations for Education
|
|
@@ -2932,8 +2942,18 @@ types:
|
|
|
2932
2942
|
body:
|
|
2933
2943
|
application/json:
|
|
2934
2944
|
type: GetLearningOutputRepresentation
|
|
2945
|
+
queryParameters:
|
|
2946
|
+
course_external_id_field:
|
|
2947
|
+
description: Learning course external ID field name
|
|
2948
|
+
type: string
|
|
2949
|
+
required: false
|
|
2950
|
+
program_external_id_field:
|
|
2951
|
+
description: Learning program external ID field name
|
|
2952
|
+
type: string
|
|
2953
|
+
required: false
|
|
2935
2954
|
uriParameters:
|
|
2936
|
-
|
|
2955
|
+
recordId:
|
|
2956
|
+
description: Specifies a learning ID or an external ID
|
|
2937
2957
|
type: string
|
|
2938
2958
|
required: true
|
|
2939
2959
|
/academic-operations:
|