@salesforce/lds-adapters-industries-education 1.369.0 → 1.371.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 +33 -11
- package/dist/es/es2018/types/src/generated/types/GetApplicationDetailsResult.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/LearningStatus.d.ts +12 -3
- package/package.json +4 -4
- package/sfdc/index.js +34 -12
- package/src/raml/api.raml +14 -1
|
@@ -401,6 +401,16 @@ function validate$1e(obj, path = 'LearningStatus') {
|
|
|
401
401
|
return new TypeError('Expected "string" but received "' + typeof obj_academicYear + '" (at "' + path_academicYear + '")');
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
+
const obj_courseOfferingId = obj.courseOfferingId;
|
|
405
|
+
const path_courseOfferingId = path + '.courseOfferingId';
|
|
406
|
+
if (typeof obj_courseOfferingId !== 'string') {
|
|
407
|
+
return new TypeError('Expected "string" but received "' + typeof obj_courseOfferingId + '" (at "' + path_courseOfferingId + '")');
|
|
408
|
+
}
|
|
409
|
+
const obj_courseOfferingParticipantId = obj.courseOfferingParticipantId;
|
|
410
|
+
const path_courseOfferingParticipantId = path + '.courseOfferingParticipantId';
|
|
411
|
+
if (typeof obj_courseOfferingParticipantId !== 'string') {
|
|
412
|
+
return new TypeError('Expected "string" but received "' + typeof obj_courseOfferingParticipantId + '" (at "' + path_courseOfferingParticipantId + '")');
|
|
413
|
+
}
|
|
404
414
|
if (obj.durationUnit !== undefined) {
|
|
405
415
|
const obj_durationUnit = obj.durationUnit;
|
|
406
416
|
const path_durationUnit = path + '.durationUnit';
|
|
@@ -408,18 +418,23 @@ function validate$1e(obj, path = 'LearningStatus') {
|
|
|
408
418
|
return new TypeError('Expected "string" but received "' + typeof obj_durationUnit + '" (at "' + path_durationUnit + '")');
|
|
409
419
|
}
|
|
410
420
|
}
|
|
411
|
-
const
|
|
412
|
-
const
|
|
413
|
-
if (
|
|
414
|
-
return new TypeError('Expected "
|
|
421
|
+
const obj_isAlternativeGradeRelated = obj.isAlternativeGradeRelated;
|
|
422
|
+
const path_isAlternativeGradeRelated = path + '.isAlternativeGradeRelated';
|
|
423
|
+
if (typeof obj_isAlternativeGradeRelated !== 'boolean') {
|
|
424
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAlternativeGradeRelated + '" (at "' + path_isAlternativeGradeRelated + '")');
|
|
425
|
+
}
|
|
426
|
+
const obj_learningEquivalencies = obj.learningEquivalencies;
|
|
427
|
+
const path_learningEquivalencies = path + '.learningEquivalencies';
|
|
428
|
+
if (!ArrayIsArray(obj_learningEquivalencies)) {
|
|
429
|
+
return new TypeError('Expected "array" but received "' + typeof obj_learningEquivalencies + '" (at "' + path_learningEquivalencies + '")');
|
|
415
430
|
}
|
|
416
|
-
for (let i = 0; i <
|
|
417
|
-
const
|
|
418
|
-
const
|
|
419
|
-
const
|
|
420
|
-
if (
|
|
421
|
-
let message = 'Object doesn\'t match LearningEquivalency (at "' +
|
|
422
|
-
message +=
|
|
431
|
+
for (let i = 0; i < obj_learningEquivalencies.length; i++) {
|
|
432
|
+
const obj_learningEquivalencies_item = obj_learningEquivalencies[i];
|
|
433
|
+
const path_learningEquivalencies_item = path_learningEquivalencies + '[' + i + ']';
|
|
434
|
+
const referencepath_learningEquivalencies_itemValidationError = validate$1f(obj_learningEquivalencies_item, path_learningEquivalencies_item);
|
|
435
|
+
if (referencepath_learningEquivalencies_itemValidationError !== null) {
|
|
436
|
+
let message = 'Object doesn\'t match LearningEquivalency (at "' + path_learningEquivalencies_item + '")\n';
|
|
437
|
+
message += referencepath_learningEquivalencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
423
438
|
return new TypeError(message);
|
|
424
439
|
}
|
|
425
440
|
}
|
|
@@ -2079,6 +2094,13 @@ function validate$$(obj, path = 'GetApplicationDetailsResult') {
|
|
|
2079
2094
|
}
|
|
2080
2095
|
}
|
|
2081
2096
|
}
|
|
2097
|
+
if (obj.isSubmitted !== undefined) {
|
|
2098
|
+
const obj_isSubmitted = obj.isSubmitted;
|
|
2099
|
+
const path_isSubmitted = path + '.isSubmitted';
|
|
2100
|
+
if (typeof obj_isSubmitted !== 'boolean') {
|
|
2101
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSubmitted + '" (at "' + path_isSubmitted + '")');
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2082
2104
|
if (obj.programName !== undefined) {
|
|
2083
2105
|
const obj_programName = obj.programName;
|
|
2084
2106
|
const path_programName = path + '.programName';
|
|
@@ -2,7 +2,7 @@ import { Applicant as Applicant_Applicant } from './Applicant';
|
|
|
2
2
|
import { IndividualApplicationTask as IndividualApplicationTask_IndividualApplicationTask } from './IndividualApplicationTask';
|
|
3
3
|
import { Submitter as Submitter_Submitter } from './Submitter';
|
|
4
4
|
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';
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "9f22ecf29e2117560559d30b868048f1";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export declare function normalize(input: GetApplicationDetailsResult, existing: GetApplicationDetailsResultNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GetApplicationDetailsResultNormalized;
|
|
@@ -31,6 +31,8 @@ export interface GetApplicationDetailsResultNormalized {
|
|
|
31
31
|
id?: string;
|
|
32
32
|
/** The Individual Application Tasks related to the application. */
|
|
33
33
|
individualApplicationTasks?: Array<IndividualApplicationTask_IndividualApplicationTask>;
|
|
34
|
+
/** An indicator of whether the Application is submitted. */
|
|
35
|
+
isSubmitted?: boolean;
|
|
34
36
|
/** The name of the program associated with an application. */
|
|
35
37
|
programName?: string;
|
|
36
38
|
/** The number of completed required individual application tasks associated with an application. */
|
|
@@ -59,6 +61,7 @@ export interface GetApplicationDetailsResult {
|
|
|
59
61
|
appliedDate?: string;
|
|
60
62
|
id?: string;
|
|
61
63
|
individualApplicationTasks?: Array<IndividualApplicationTask_IndividualApplicationTask>;
|
|
64
|
+
isSubmitted?: boolean;
|
|
62
65
|
programName?: string;
|
|
63
66
|
requiredItemsCompleted?: number;
|
|
64
67
|
status?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LearningEquivalency as LearningEquivalency_LearningEquivalency } from './LearningEquivalency';
|
|
2
2
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "a44773f0f7abbf29d1644cdbd7194511";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: LearningStatus, existing: LearningStatusNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningStatusNormalized;
|
|
@@ -25,10 +25,16 @@ export interface LearningStatusNormalized {
|
|
|
25
25
|
academicTermId?: string;
|
|
26
26
|
/** The year in which this learning is taken or will be taken */
|
|
27
27
|
academicYear?: string;
|
|
28
|
+
/** Learning course offering id. */
|
|
29
|
+
courseOfferingId: string;
|
|
30
|
+
/** Learning course offering participant id. */
|
|
31
|
+
courseOfferingParticipantId: string;
|
|
28
32
|
/** The unit of measurement for completion of the course */
|
|
29
33
|
durationUnit?: string;
|
|
34
|
+
/** Can be fulfilled by External Learning. */
|
|
35
|
+
isAlternativeGradeRelated: boolean;
|
|
30
36
|
/** List of equivalencies like Transfer credit, Work Equivalency, etc. */
|
|
31
|
-
|
|
37
|
+
learningEquivalencies: Array<LearningEquivalency_LearningEquivalency>;
|
|
32
38
|
/** Learning Id */
|
|
33
39
|
learningId?: string;
|
|
34
40
|
/** The letter grade awarded to the learner for completing the course */
|
|
@@ -58,8 +64,11 @@ export interface LearningStatus {
|
|
|
58
64
|
academicTermEnrollmentId?: string;
|
|
59
65
|
academicTermId?: string;
|
|
60
66
|
academicYear?: string;
|
|
67
|
+
courseOfferingId: string;
|
|
68
|
+
courseOfferingParticipantId: string;
|
|
61
69
|
durationUnit?: string;
|
|
62
|
-
|
|
70
|
+
isAlternativeGradeRelated: boolean;
|
|
71
|
+
learningEquivalencies: Array<LearningEquivalency_LearningEquivalency>;
|
|
63
72
|
learningId?: string;
|
|
64
73
|
letterGrade?: string;
|
|
65
74
|
mappedStatusDefinition: Array<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-industries-education",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.371.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.371.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
53
|
-
"@salesforce/lds-karma": "^1.
|
|
52
|
+
"@salesforce/lds-compiler-plugins": "^1.371.0",
|
|
53
|
+
"@salesforce/lds-karma": "^1.371.0"
|
|
54
54
|
},
|
|
55
55
|
"nx": {
|
|
56
56
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -2348,6 +2348,13 @@ function validate$U(obj, path = 'GetApplicationDetailsResult') {
|
|
|
2348
2348
|
}
|
|
2349
2349
|
}
|
|
2350
2350
|
}
|
|
2351
|
+
if (obj.isSubmitted !== undefined) {
|
|
2352
|
+
const obj_isSubmitted = obj.isSubmitted;
|
|
2353
|
+
const path_isSubmitted = path + '.isSubmitted';
|
|
2354
|
+
if (typeof obj_isSubmitted !== 'boolean') {
|
|
2355
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSubmitted + '" (at "' + path_isSubmitted + '")');
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2351
2358
|
if (obj.programName !== undefined) {
|
|
2352
2359
|
const obj_programName = obj.programName;
|
|
2353
2360
|
const path_programName = path + '.programName';
|
|
@@ -5418,6 +5425,16 @@ function validate$B(obj, path = 'LearningStatus') {
|
|
|
5418
5425
|
return new TypeError('Expected "string" but received "' + typeof obj_academicYear + '" (at "' + path_academicYear + '")');
|
|
5419
5426
|
}
|
|
5420
5427
|
}
|
|
5428
|
+
const obj_courseOfferingId = obj.courseOfferingId;
|
|
5429
|
+
const path_courseOfferingId = path + '.courseOfferingId';
|
|
5430
|
+
if (typeof obj_courseOfferingId !== 'string') {
|
|
5431
|
+
return new TypeError('Expected "string" but received "' + typeof obj_courseOfferingId + '" (at "' + path_courseOfferingId + '")');
|
|
5432
|
+
}
|
|
5433
|
+
const obj_courseOfferingParticipantId = obj.courseOfferingParticipantId;
|
|
5434
|
+
const path_courseOfferingParticipantId = path + '.courseOfferingParticipantId';
|
|
5435
|
+
if (typeof obj_courseOfferingParticipantId !== 'string') {
|
|
5436
|
+
return new TypeError('Expected "string" but received "' + typeof obj_courseOfferingParticipantId + '" (at "' + path_courseOfferingParticipantId + '")');
|
|
5437
|
+
}
|
|
5421
5438
|
if (obj.durationUnit !== undefined) {
|
|
5422
5439
|
const obj_durationUnit = obj.durationUnit;
|
|
5423
5440
|
const path_durationUnit = path + '.durationUnit';
|
|
@@ -5425,18 +5442,23 @@ function validate$B(obj, path = 'LearningStatus') {
|
|
|
5425
5442
|
return new TypeError('Expected "string" but received "' + typeof obj_durationUnit + '" (at "' + path_durationUnit + '")');
|
|
5426
5443
|
}
|
|
5427
5444
|
}
|
|
5428
|
-
const
|
|
5429
|
-
const
|
|
5430
|
-
if (
|
|
5431
|
-
return new TypeError('Expected "
|
|
5445
|
+
const obj_isAlternativeGradeRelated = obj.isAlternativeGradeRelated;
|
|
5446
|
+
const path_isAlternativeGradeRelated = path + '.isAlternativeGradeRelated';
|
|
5447
|
+
if (typeof obj_isAlternativeGradeRelated !== 'boolean') {
|
|
5448
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAlternativeGradeRelated + '" (at "' + path_isAlternativeGradeRelated + '")');
|
|
5449
|
+
}
|
|
5450
|
+
const obj_learningEquivalencies = obj.learningEquivalencies;
|
|
5451
|
+
const path_learningEquivalencies = path + '.learningEquivalencies';
|
|
5452
|
+
if (!ArrayIsArray(obj_learningEquivalencies)) {
|
|
5453
|
+
return new TypeError('Expected "array" but received "' + typeof obj_learningEquivalencies + '" (at "' + path_learningEquivalencies + '")');
|
|
5432
5454
|
}
|
|
5433
|
-
for (let i = 0; i <
|
|
5434
|
-
const
|
|
5435
|
-
const
|
|
5436
|
-
const
|
|
5437
|
-
if (
|
|
5438
|
-
let message = 'Object doesn\'t match LearningEquivalency (at "' +
|
|
5439
|
-
message +=
|
|
5455
|
+
for (let i = 0; i < obj_learningEquivalencies.length; i++) {
|
|
5456
|
+
const obj_learningEquivalencies_item = obj_learningEquivalencies[i];
|
|
5457
|
+
const path_learningEquivalencies_item = path_learningEquivalencies + '[' + i + ']';
|
|
5458
|
+
const referencepath_learningEquivalencies_itemValidationError = validate$C(obj_learningEquivalencies_item, path_learningEquivalencies_item);
|
|
5459
|
+
if (referencepath_learningEquivalencies_itemValidationError !== null) {
|
|
5460
|
+
let message = 'Object doesn\'t match LearningEquivalency (at "' + path_learningEquivalencies_item + '")\n';
|
|
5461
|
+
message += referencepath_learningEquivalencies_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5440
5462
|
return new TypeError(message);
|
|
5441
5463
|
}
|
|
5442
5464
|
}
|
|
@@ -10441,4 +10463,4 @@ withDefaultLuvio((luvio) => {
|
|
|
10441
10463
|
});
|
|
10442
10464
|
|
|
10443
10465
|
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 };
|
|
10444
|
-
// version: 1.
|
|
10466
|
+
// version: 1.371.0-1f3d834ba4
|
package/src/raml/api.raml
CHANGED
|
@@ -1227,6 +1227,10 @@ types:
|
|
|
1227
1227
|
required: false
|
|
1228
1228
|
items:
|
|
1229
1229
|
type: IndividualApplicationTask
|
|
1230
|
+
isSubmitted:
|
|
1231
|
+
description: An indicator of whether the Application is submitted.
|
|
1232
|
+
type: boolean
|
|
1233
|
+
required: false
|
|
1230
1234
|
programName:
|
|
1231
1235
|
description: The name of the program associated with an application.
|
|
1232
1236
|
type: string
|
|
@@ -2322,7 +2326,16 @@ types:
|
|
|
2322
2326
|
description: Learning Id
|
|
2323
2327
|
type: string
|
|
2324
2328
|
required: false
|
|
2325
|
-
|
|
2329
|
+
courseOfferingId:
|
|
2330
|
+
description: Learning course offering id.
|
|
2331
|
+
type: string
|
|
2332
|
+
courseOfferingParticipantId:
|
|
2333
|
+
description: Learning course offering participant id.
|
|
2334
|
+
type: string
|
|
2335
|
+
isAlternativeGradeRelated:
|
|
2336
|
+
description: Can be fulfilled by External Learning.
|
|
2337
|
+
type: boolean
|
|
2338
|
+
learningEquivalencies:
|
|
2326
2339
|
description: List of equivalencies like Transfer credit, Work Equivalency, etc.
|
|
2327
2340
|
type: array
|
|
2328
2341
|
items:
|