@salesforce/lds-adapters-platform-learning-content 1.278.0 → 1.280.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-learning-content.js +66 -125
- package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackRepresentation.d.ts +4 -11
- package/dist/es/es2018/types/src/generated/types/LearningPracticeRepresentation.d.ts +5 -5
- package/package.json +4 -4
- package/sfdc/index.js +81 -140
- package/src/raml/api.raml +5 -54
- package/dist/es/es2018/types/src/generated/types/AbstractCoachingAIFeedbackSectionRepresentation.d.ts +0 -34
- package/dist/es/es2018/types/src/generated/types/CoachingAICriteriaBasedFeedbackRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackSectionStringCollectionRepresentation.d.ts +0 -30
- package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackSectionTextRepresentation.d.ts +0 -30
|
@@ -112,91 +112,22 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
const VERSION$
|
|
116
|
-
function validate$i(obj, path = 'CoachingAICriteriaBasedFeedbackRepresentation') {
|
|
117
|
-
const v_error = (() => {
|
|
118
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
119
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
120
|
-
}
|
|
121
|
-
const obj_criteriaName = obj.criteriaName;
|
|
122
|
-
const path_criteriaName = path + '.criteriaName';
|
|
123
|
-
if (typeof obj_criteriaName !== 'string') {
|
|
124
|
-
return new TypeError('Expected "string" but received "' + typeof obj_criteriaName + '" (at "' + path_criteriaName + '")');
|
|
125
|
-
}
|
|
126
|
-
obj.criteriaScore;
|
|
127
|
-
})();
|
|
128
|
-
return v_error === undefined ? null : v_error;
|
|
129
|
-
}
|
|
130
|
-
const select$t = function CoachingAICriteriaBasedFeedbackRepresentationSelect() {
|
|
131
|
-
return {
|
|
132
|
-
kind: 'Fragment',
|
|
133
|
-
version: VERSION$h,
|
|
134
|
-
private: [],
|
|
135
|
-
selections: [
|
|
136
|
-
{
|
|
137
|
-
name: 'criteriaName',
|
|
138
|
-
kind: 'Scalar'
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
name: 'criteriaScore',
|
|
142
|
-
kind: 'Scalar'
|
|
143
|
-
}
|
|
144
|
-
]
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
function equals$h(existing, incoming) {
|
|
148
|
-
const existing_criteriaName = existing.criteriaName;
|
|
149
|
-
const incoming_criteriaName = incoming.criteriaName;
|
|
150
|
-
if (!(existing_criteriaName === incoming_criteriaName)) {
|
|
151
|
-
return false;
|
|
152
|
-
}
|
|
153
|
-
const existing_criteriaScore = existing.criteriaScore;
|
|
154
|
-
const incoming_criteriaScore = incoming.criteriaScore;
|
|
155
|
-
if (!(existing_criteriaScore === incoming_criteriaScore)) {
|
|
156
|
-
return false;
|
|
157
|
-
}
|
|
158
|
-
return true;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
const VERSION$g = "ce799f65b2acf684ff815d1c883d123e";
|
|
115
|
+
const VERSION$g = "1d9120ef9f750e06b6b3bd3301a1970a";
|
|
162
116
|
function validate$h(obj, path = 'CoachingAIFeedbackRepresentation') {
|
|
163
117
|
const v_error = (() => {
|
|
164
118
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
165
119
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
166
120
|
}
|
|
167
|
-
const obj_additionalFeedback = obj.additionalFeedback;
|
|
168
|
-
const path_additionalFeedback = path + '.additionalFeedback';
|
|
169
|
-
if (!ArrayIsArray(obj_additionalFeedback)) {
|
|
170
|
-
return new TypeError('Expected "array" but received "' + typeof obj_additionalFeedback + '" (at "' + path_additionalFeedback + '")');
|
|
171
|
-
}
|
|
172
|
-
for (let i = 0; i < obj_additionalFeedback.length; i++) {
|
|
173
|
-
const obj_additionalFeedback_item = obj_additionalFeedback[i];
|
|
174
|
-
const path_additionalFeedback_item = path_additionalFeedback + '[' + i + ']';
|
|
175
|
-
if (obj_additionalFeedback_item === undefined) {
|
|
176
|
-
return new TypeError('Expected "defined" but received "' + typeof obj_additionalFeedback_item + '" (at "' + path_additionalFeedback_item + '")');
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
121
|
const obj_conversationSummaryId = obj.conversationSummaryId;
|
|
180
122
|
const path_conversationSummaryId = path + '.conversationSummaryId';
|
|
181
123
|
if (typeof obj_conversationSummaryId !== 'string') {
|
|
182
124
|
return new TypeError('Expected "string" but received "' + typeof obj_conversationSummaryId + '" (at "' + path_conversationSummaryId + '")');
|
|
183
125
|
}
|
|
184
|
-
const
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
187
|
-
return new TypeError('Expected "
|
|
188
|
-
}
|
|
189
|
-
for (let i = 0; i < obj_criteriaBasedScores.length; i++) {
|
|
190
|
-
const obj_criteriaBasedScores_item = obj_criteriaBasedScores[i];
|
|
191
|
-
const path_criteriaBasedScores_item = path_criteriaBasedScores + '[' + i + ']';
|
|
192
|
-
const referencepath_criteriaBasedScores_itemValidationError = validate$i(obj_criteriaBasedScores_item, path_criteriaBasedScores_item);
|
|
193
|
-
if (referencepath_criteriaBasedScores_itemValidationError !== null) {
|
|
194
|
-
let message = 'Object doesn\'t match CoachingAICriteriaBasedFeedbackRepresentation (at "' + path_criteriaBasedScores_item + '")\n';
|
|
195
|
-
message += referencepath_criteriaBasedScores_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
196
|
-
return new TypeError(message);
|
|
197
|
-
}
|
|
126
|
+
const obj_feedback = obj.feedback;
|
|
127
|
+
const path_feedback = path + '.feedback';
|
|
128
|
+
if (typeof obj_feedback !== 'string') {
|
|
129
|
+
return new TypeError('Expected "string" but received "' + typeof obj_feedback + '" (at "' + path_feedback + '")');
|
|
198
130
|
}
|
|
199
|
-
obj.score;
|
|
200
131
|
})();
|
|
201
132
|
return v_error === undefined ? null : v_error;
|
|
202
133
|
}
|
|
@@ -205,29 +136,17 @@ function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
|
205
136
|
return input;
|
|
206
137
|
}
|
|
207
138
|
const select$s = function CoachingAIFeedbackRepresentationSelect() {
|
|
208
|
-
const { selections: CoachingAICriteriaBasedFeedbackRepresentation__selections, opaque: CoachingAICriteriaBasedFeedbackRepresentation__opaque, } = select$t();
|
|
209
139
|
return {
|
|
210
140
|
kind: 'Fragment',
|
|
211
141
|
version: VERSION$g,
|
|
212
142
|
private: [],
|
|
213
143
|
selections: [
|
|
214
|
-
{
|
|
215
|
-
name: 'additionalFeedback',
|
|
216
|
-
kind: 'Object',
|
|
217
|
-
// any
|
|
218
|
-
},
|
|
219
144
|
{
|
|
220
145
|
name: 'conversationSummaryId',
|
|
221
146
|
kind: 'Scalar'
|
|
222
147
|
},
|
|
223
148
|
{
|
|
224
|
-
name: '
|
|
225
|
-
kind: 'Object',
|
|
226
|
-
plural: true,
|
|
227
|
-
selections: CoachingAICriteriaBasedFeedbackRepresentation__selections
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
name: 'score',
|
|
149
|
+
name: 'feedback',
|
|
231
150
|
kind: 'Scalar'
|
|
232
151
|
}
|
|
233
152
|
]
|
|
@@ -239,29 +158,9 @@ function equals$g(existing, incoming) {
|
|
|
239
158
|
if (!(existing_conversationSummaryId === incoming_conversationSummaryId)) {
|
|
240
159
|
return false;
|
|
241
160
|
}
|
|
242
|
-
const
|
|
243
|
-
const
|
|
244
|
-
if (!(
|
|
245
|
-
return false;
|
|
246
|
-
}
|
|
247
|
-
const existing_additionalFeedback = existing.additionalFeedback;
|
|
248
|
-
const incoming_additionalFeedback = incoming.additionalFeedback;
|
|
249
|
-
const equals_additionalFeedback_items = equalsArray(existing_additionalFeedback, incoming_additionalFeedback, (existing_additionalFeedback_item, incoming_additionalFeedback_item) => {
|
|
250
|
-
if (JSONStringify(incoming_additionalFeedback_item) !== JSONStringify(existing_additionalFeedback_item)) {
|
|
251
|
-
return false;
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
if (equals_additionalFeedback_items === false) {
|
|
255
|
-
return false;
|
|
256
|
-
}
|
|
257
|
-
const existing_criteriaBasedScores = existing.criteriaBasedScores;
|
|
258
|
-
const incoming_criteriaBasedScores = incoming.criteriaBasedScores;
|
|
259
|
-
const equals_criteriaBasedScores_items = equalsArray(existing_criteriaBasedScores, incoming_criteriaBasedScores, (existing_criteriaBasedScores_item, incoming_criteriaBasedScores_item) => {
|
|
260
|
-
if (!(equals$h(existing_criteriaBasedScores_item, incoming_criteriaBasedScores_item))) {
|
|
261
|
-
return false;
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
if (equals_criteriaBasedScores_items === false) {
|
|
161
|
+
const existing_feedback = existing.feedback;
|
|
162
|
+
const incoming_feedback = incoming.feedback;
|
|
163
|
+
if (!(existing_feedback === incoming_feedback)) {
|
|
265
164
|
return false;
|
|
266
165
|
}
|
|
267
166
|
return true;
|
|
@@ -4618,7 +4517,7 @@ const getModuleAdapterFactory = (luvio) => function LearningContentPlatform__get
|
|
|
4618
4517
|
};
|
|
4619
4518
|
|
|
4620
4519
|
const TTL$1 = 60000;
|
|
4621
|
-
const VERSION$2 = "
|
|
4520
|
+
const VERSION$2 = "2925211e5284d3a12b358a5bda082646";
|
|
4622
4521
|
function validate$3(obj, path = 'LearningPracticeRepresentation') {
|
|
4623
4522
|
const v_error = (() => {
|
|
4624
4523
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4636,13 +4535,55 @@ function validate$3(obj, path = 'LearningPracticeRepresentation') {
|
|
|
4636
4535
|
}
|
|
4637
4536
|
const obj_minimumInviteeQuantity = obj.minimumInviteeQuantity;
|
|
4638
4537
|
const path_minimumInviteeQuantity = path + '.minimumInviteeQuantity';
|
|
4639
|
-
|
|
4640
|
-
|
|
4538
|
+
let obj_minimumInviteeQuantity_union0 = null;
|
|
4539
|
+
const obj_minimumInviteeQuantity_union0_error = (() => {
|
|
4540
|
+
if (typeof obj_minimumInviteeQuantity !== 'number' || (typeof obj_minimumInviteeQuantity === 'number' && Math.floor(obj_minimumInviteeQuantity) !== obj_minimumInviteeQuantity)) {
|
|
4541
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_minimumInviteeQuantity + '" (at "' + path_minimumInviteeQuantity + '")');
|
|
4542
|
+
}
|
|
4543
|
+
})();
|
|
4544
|
+
if (obj_minimumInviteeQuantity_union0_error != null) {
|
|
4545
|
+
obj_minimumInviteeQuantity_union0 = obj_minimumInviteeQuantity_union0_error.message;
|
|
4546
|
+
}
|
|
4547
|
+
let obj_minimumInviteeQuantity_union1 = null;
|
|
4548
|
+
const obj_minimumInviteeQuantity_union1_error = (() => {
|
|
4549
|
+
if (obj_minimumInviteeQuantity !== null) {
|
|
4550
|
+
return new TypeError('Expected "null" but received "' + typeof obj_minimumInviteeQuantity + '" (at "' + path_minimumInviteeQuantity + '")');
|
|
4551
|
+
}
|
|
4552
|
+
})();
|
|
4553
|
+
if (obj_minimumInviteeQuantity_union1_error != null) {
|
|
4554
|
+
obj_minimumInviteeQuantity_union1 = obj_minimumInviteeQuantity_union1_error.message;
|
|
4555
|
+
}
|
|
4556
|
+
if (obj_minimumInviteeQuantity_union0 && obj_minimumInviteeQuantity_union1) {
|
|
4557
|
+
let message = 'Object doesn\'t match union (at "' + path_minimumInviteeQuantity + '")';
|
|
4558
|
+
message += '\n' + obj_minimumInviteeQuantity_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4559
|
+
message += '\n' + obj_minimumInviteeQuantity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4560
|
+
return new TypeError(message);
|
|
4641
4561
|
}
|
|
4642
4562
|
const obj_surveyId = obj.surveyId;
|
|
4643
4563
|
const path_surveyId = path + '.surveyId';
|
|
4644
|
-
|
|
4645
|
-
|
|
4564
|
+
let obj_surveyId_union0 = null;
|
|
4565
|
+
const obj_surveyId_union0_error = (() => {
|
|
4566
|
+
if (typeof obj_surveyId !== 'string') {
|
|
4567
|
+
return new TypeError('Expected "string" but received "' + typeof obj_surveyId + '" (at "' + path_surveyId + '")');
|
|
4568
|
+
}
|
|
4569
|
+
})();
|
|
4570
|
+
if (obj_surveyId_union0_error != null) {
|
|
4571
|
+
obj_surveyId_union0 = obj_surveyId_union0_error.message;
|
|
4572
|
+
}
|
|
4573
|
+
let obj_surveyId_union1 = null;
|
|
4574
|
+
const obj_surveyId_union1_error = (() => {
|
|
4575
|
+
if (obj_surveyId !== null) {
|
|
4576
|
+
return new TypeError('Expected "null" but received "' + typeof obj_surveyId + '" (at "' + path_surveyId + '")');
|
|
4577
|
+
}
|
|
4578
|
+
})();
|
|
4579
|
+
if (obj_surveyId_union1_error != null) {
|
|
4580
|
+
obj_surveyId_union1 = obj_surveyId_union1_error.message;
|
|
4581
|
+
}
|
|
4582
|
+
if (obj_surveyId_union0 && obj_surveyId_union1) {
|
|
4583
|
+
let message = 'Object doesn\'t match union (at "' + path_surveyId + '")';
|
|
4584
|
+
message += '\n' + obj_surveyId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4585
|
+
message += '\n' + obj_surveyId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4586
|
+
return new TypeError(message);
|
|
4646
4587
|
}
|
|
4647
4588
|
const obj_title = obj.title;
|
|
4648
4589
|
const path_title = path + '.title';
|
|
@@ -4695,11 +4636,6 @@ const select$5 = function LearningPracticeRepresentationSelect() {
|
|
|
4695
4636
|
};
|
|
4696
4637
|
};
|
|
4697
4638
|
function equals$2(existing, incoming) {
|
|
4698
|
-
const existing_minimumInviteeQuantity = existing.minimumInviteeQuantity;
|
|
4699
|
-
const incoming_minimumInviteeQuantity = incoming.minimumInviteeQuantity;
|
|
4700
|
-
if (!(existing_minimumInviteeQuantity === incoming_minimumInviteeQuantity)) {
|
|
4701
|
-
return false;
|
|
4702
|
-
}
|
|
4703
4639
|
const existing_description = existing.description;
|
|
4704
4640
|
const incoming_description = incoming.description;
|
|
4705
4641
|
if (!(existing_description === incoming_description)) {
|
|
@@ -4710,16 +4646,21 @@ function equals$2(existing, incoming) {
|
|
|
4710
4646
|
if (!(existing_learningItemId === incoming_learningItemId)) {
|
|
4711
4647
|
return false;
|
|
4712
4648
|
}
|
|
4713
|
-
const existing_surveyId = existing.surveyId;
|
|
4714
|
-
const incoming_surveyId = incoming.surveyId;
|
|
4715
|
-
if (!(existing_surveyId === incoming_surveyId)) {
|
|
4716
|
-
return false;
|
|
4717
|
-
}
|
|
4718
4649
|
const existing_title = existing.title;
|
|
4719
4650
|
const incoming_title = incoming.title;
|
|
4720
4651
|
if (!(existing_title === incoming_title)) {
|
|
4721
4652
|
return false;
|
|
4722
4653
|
}
|
|
4654
|
+
const existing_minimumInviteeQuantity = existing.minimumInviteeQuantity;
|
|
4655
|
+
const incoming_minimumInviteeQuantity = incoming.minimumInviteeQuantity;
|
|
4656
|
+
if (!(existing_minimumInviteeQuantity === incoming_minimumInviteeQuantity)) {
|
|
4657
|
+
return false;
|
|
4658
|
+
}
|
|
4659
|
+
const existing_surveyId = existing.surveyId;
|
|
4660
|
+
const incoming_surveyId = incoming.surveyId;
|
|
4661
|
+
if (!(existing_surveyId === incoming_surveyId)) {
|
|
4662
|
+
return false;
|
|
4663
|
+
}
|
|
4723
4664
|
return true;
|
|
4724
4665
|
}
|
|
4725
4666
|
const ingest$1 = function LearningPracticeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CoachingAICriteriaBasedFeedbackRepresentation as CoachingAICriteriaBasedFeedbackRepresentation_CoachingAICriteriaBasedFeedbackRepresentation } from './CoachingAICriteriaBasedFeedbackRepresentation';
|
|
2
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';
|
|
3
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "1d9120ef9f750e06b6b3bd3301a1970a";
|
|
4
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
4
|
export declare const RepresentationType: string;
|
|
6
5
|
export declare function normalize(input: CoachingAIFeedbackRepresentation, existing: CoachingAIFeedbackRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CoachingAIFeedbackRepresentationNormalized;
|
|
@@ -15,14 +14,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
15
14
|
* (none)
|
|
16
15
|
*/
|
|
17
16
|
export interface CoachingAIFeedbackRepresentationNormalized {
|
|
18
|
-
/** List of additional feedback sections */
|
|
19
|
-
additionalFeedback: Array<unknown>;
|
|
20
17
|
/** Conversation Summary ID for the coaching AI feedback */
|
|
21
18
|
conversationSummaryId: string;
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
/** The overall score */
|
|
25
|
-
score: number;
|
|
19
|
+
/** Feedback in the form of rich text */
|
|
20
|
+
feedback: string;
|
|
26
21
|
}
|
|
27
22
|
/**
|
|
28
23
|
* This representation defines the coaching AI feedback
|
|
@@ -31,8 +26,6 @@ export interface CoachingAIFeedbackRepresentationNormalized {
|
|
|
31
26
|
* (none)
|
|
32
27
|
*/
|
|
33
28
|
export interface CoachingAIFeedbackRepresentation {
|
|
34
|
-
additionalFeedback: Array<unknown>;
|
|
35
29
|
conversationSummaryId: string;
|
|
36
|
-
|
|
37
|
-
score: number;
|
|
30
|
+
feedback: string;
|
|
38
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 60000;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "2925211e5284d3a12b358a5bda082646";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -29,9 +29,9 @@ export interface LearningPracticeRepresentationNormalized {
|
|
|
29
29
|
/** Learning Item ID of the learning practice */
|
|
30
30
|
learningItemId: string;
|
|
31
31
|
/** Specifies the minimum invitee quantity for the Learning Practice */
|
|
32
|
-
minimumInviteeQuantity: number;
|
|
32
|
+
minimumInviteeQuantity: number | null;
|
|
33
33
|
/** Specifies the Survey Id for the Learning Practice */
|
|
34
|
-
surveyId: string;
|
|
34
|
+
surveyId: string | null;
|
|
35
35
|
/** Title of the learning practice */
|
|
36
36
|
title: string;
|
|
37
37
|
}
|
|
@@ -44,7 +44,7 @@ export interface LearningPracticeRepresentationNormalized {
|
|
|
44
44
|
export interface LearningPracticeRepresentation {
|
|
45
45
|
description: string;
|
|
46
46
|
learningItemId: string;
|
|
47
|
-
minimumInviteeQuantity: number;
|
|
48
|
-
surveyId: string;
|
|
47
|
+
minimumInviteeQuantity: number | null;
|
|
48
|
+
surveyId: string | null;
|
|
49
49
|
title: string;
|
|
50
50
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-platform-learning-content",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.280.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Learning content platform",
|
|
6
6
|
"main": "dist/es/es2018/platform-learning-content.js",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"test:unit": "jest --config=./jest.config.js"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@salesforce/lds-bindings": "^1.
|
|
42
|
+
"@salesforce/lds-bindings": "^1.280.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
-
"@salesforce/lds-karma": "^1.
|
|
45
|
+
"@salesforce/lds-compiler-plugins": "^1.280.0",
|
|
46
|
+
"@salesforce/lds-karma": "^1.280.0"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
/*
|
|
7
|
+
/*
|
|
8
8
|
* ATTENTION!
|
|
9
9
|
* THIS IS A GENERATED FILE FROM https://github.com/salesforce-experience-platform-emu/lds-lightning-platform
|
|
10
10
|
* If you would like to contribute to LDS, please follow the steps outlined in the git repo.
|
|
@@ -122,7 +122,7 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
function validate$
|
|
125
|
+
function validate$h(obj, path = 'EvaluateLearningItemInputRepresentation') {
|
|
126
126
|
const v_error = (() => {
|
|
127
127
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
128
128
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -153,8 +153,8 @@ function validate$i(obj, path = 'EvaluateLearningItemInputRepresentation') {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
const TTL$7 = 15000;
|
|
156
|
-
const VERSION$
|
|
157
|
-
function validate$
|
|
156
|
+
const VERSION$g = "ef3b97b73983e10731031f11a195bba6";
|
|
157
|
+
function validate$g(obj, path = 'LearningItemProgressRepresentation') {
|
|
158
158
|
const v_error = (() => {
|
|
159
159
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
160
160
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -237,10 +237,10 @@ function keyBuilderFromType$7(luvio, object) {
|
|
|
237
237
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
238
238
|
return input;
|
|
239
239
|
}
|
|
240
|
-
const select$
|
|
240
|
+
const select$s = function LearningItemProgressRepresentationSelect() {
|
|
241
241
|
return {
|
|
242
242
|
kind: 'Fragment',
|
|
243
|
-
version: VERSION$
|
|
243
|
+
version: VERSION$g,
|
|
244
244
|
private: [],
|
|
245
245
|
selections: [
|
|
246
246
|
{
|
|
@@ -262,7 +262,7 @@ const select$t = function LearningItemProgressRepresentationSelect() {
|
|
|
262
262
|
]
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
|
-
function equals$
|
|
265
|
+
function equals$g(existing, incoming) {
|
|
266
266
|
const existing_isCompleted = existing.isCompleted;
|
|
267
267
|
const incoming_isCompleted = incoming.isCompleted;
|
|
268
268
|
if (!(existing_isCompleted === incoming_isCompleted)) {
|
|
@@ -287,14 +287,14 @@ function equals$h(existing, incoming) {
|
|
|
287
287
|
}
|
|
288
288
|
const ingest$d = function LearningItemProgressRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
289
289
|
if (process.env.NODE_ENV !== 'production') {
|
|
290
|
-
const validateError = validate$
|
|
290
|
+
const validateError = validate$g(input);
|
|
291
291
|
if (validateError !== null) {
|
|
292
292
|
throw validateError;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
295
|
const key = keyBuilderFromType$7(luvio, input);
|
|
296
296
|
const ttlToUse = TTL$7;
|
|
297
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "LearningContentPlatform", VERSION$
|
|
297
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "LearningContentPlatform", VERSION$g, RepresentationType$d, equals$g);
|
|
298
298
|
return createLink(key);
|
|
299
299
|
};
|
|
300
300
|
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -321,8 +321,8 @@ const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
|
321
321
|
};
|
|
322
322
|
};
|
|
323
323
|
|
|
324
|
-
function select$
|
|
325
|
-
return select$
|
|
324
|
+
function select$r(luvio, params) {
|
|
325
|
+
return select$s();
|
|
326
326
|
}
|
|
327
327
|
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
328
328
|
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
@@ -333,7 +333,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
333
333
|
luvio.storeIngest(key, ingest$d, body);
|
|
334
334
|
const snapshot = luvio.storeLookup({
|
|
335
335
|
recordId: key,
|
|
336
|
-
node: select$
|
|
336
|
+
node: select$r(),
|
|
337
337
|
variables: {},
|
|
338
338
|
});
|
|
339
339
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -367,7 +367,7 @@ const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(evaluateLear
|
|
|
367
367
|
function typeCheckConfig$b(untrustedConfig) {
|
|
368
368
|
const config = {};
|
|
369
369
|
const untrustedConfig_payload = untrustedConfig.payload;
|
|
370
|
-
const referenceEvaluateLearningItemInputRepresentationValidationError = validate$
|
|
370
|
+
const referenceEvaluateLearningItemInputRepresentationValidationError = validate$h(untrustedConfig_payload);
|
|
371
371
|
if (referenceEvaluateLearningItemInputRepresentationValidationError === null) {
|
|
372
372
|
config.payload = untrustedConfig_payload;
|
|
373
373
|
}
|
|
@@ -415,91 +415,22 @@ const evaluateLearningItemAdapterFactory = (luvio) => {
|
|
|
415
415
|
};
|
|
416
416
|
};
|
|
417
417
|
|
|
418
|
-
const VERSION$
|
|
419
|
-
function validate$g(obj, path = 'CoachingAICriteriaBasedFeedbackRepresentation') {
|
|
420
|
-
const v_error = (() => {
|
|
421
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
422
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
423
|
-
}
|
|
424
|
-
const obj_criteriaName = obj.criteriaName;
|
|
425
|
-
const path_criteriaName = path + '.criteriaName';
|
|
426
|
-
if (typeof obj_criteriaName !== 'string') {
|
|
427
|
-
return new TypeError('Expected "string" but received "' + typeof obj_criteriaName + '" (at "' + path_criteriaName + '")');
|
|
428
|
-
}
|
|
429
|
-
obj.criteriaScore;
|
|
430
|
-
})();
|
|
431
|
-
return v_error === undefined ? null : v_error;
|
|
432
|
-
}
|
|
433
|
-
const select$r = function CoachingAICriteriaBasedFeedbackRepresentationSelect() {
|
|
434
|
-
return {
|
|
435
|
-
kind: 'Fragment',
|
|
436
|
-
version: VERSION$g,
|
|
437
|
-
private: [],
|
|
438
|
-
selections: [
|
|
439
|
-
{
|
|
440
|
-
name: 'criteriaName',
|
|
441
|
-
kind: 'Scalar'
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
name: 'criteriaScore',
|
|
445
|
-
kind: 'Scalar'
|
|
446
|
-
}
|
|
447
|
-
]
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
function equals$g(existing, incoming) {
|
|
451
|
-
const existing_criteriaName = existing.criteriaName;
|
|
452
|
-
const incoming_criteriaName = incoming.criteriaName;
|
|
453
|
-
if (!(existing_criteriaName === incoming_criteriaName)) {
|
|
454
|
-
return false;
|
|
455
|
-
}
|
|
456
|
-
const existing_criteriaScore = existing.criteriaScore;
|
|
457
|
-
const incoming_criteriaScore = incoming.criteriaScore;
|
|
458
|
-
if (!(existing_criteriaScore === incoming_criteriaScore)) {
|
|
459
|
-
return false;
|
|
460
|
-
}
|
|
461
|
-
return true;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
const VERSION$f = "ce799f65b2acf684ff815d1c883d123e";
|
|
418
|
+
const VERSION$f = "1d9120ef9f750e06b6b3bd3301a1970a";
|
|
465
419
|
function validate$f(obj, path = 'CoachingAIFeedbackRepresentation') {
|
|
466
420
|
const v_error = (() => {
|
|
467
421
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
468
422
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
469
423
|
}
|
|
470
|
-
const obj_additionalFeedback = obj.additionalFeedback;
|
|
471
|
-
const path_additionalFeedback = path + '.additionalFeedback';
|
|
472
|
-
if (!ArrayIsArray(obj_additionalFeedback)) {
|
|
473
|
-
return new TypeError('Expected "array" but received "' + typeof obj_additionalFeedback + '" (at "' + path_additionalFeedback + '")');
|
|
474
|
-
}
|
|
475
|
-
for (let i = 0; i < obj_additionalFeedback.length; i++) {
|
|
476
|
-
const obj_additionalFeedback_item = obj_additionalFeedback[i];
|
|
477
|
-
const path_additionalFeedback_item = path_additionalFeedback + '[' + i + ']';
|
|
478
|
-
if (obj_additionalFeedback_item === undefined) {
|
|
479
|
-
return new TypeError('Expected "defined" but received "' + typeof obj_additionalFeedback_item + '" (at "' + path_additionalFeedback_item + '")');
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
424
|
const obj_conversationSummaryId = obj.conversationSummaryId;
|
|
483
425
|
const path_conversationSummaryId = path + '.conversationSummaryId';
|
|
484
426
|
if (typeof obj_conversationSummaryId !== 'string') {
|
|
485
427
|
return new TypeError('Expected "string" but received "' + typeof obj_conversationSummaryId + '" (at "' + path_conversationSummaryId + '")');
|
|
486
428
|
}
|
|
487
|
-
const
|
|
488
|
-
const
|
|
489
|
-
if (
|
|
490
|
-
return new TypeError('Expected "
|
|
491
|
-
}
|
|
492
|
-
for (let i = 0; i < obj_criteriaBasedScores.length; i++) {
|
|
493
|
-
const obj_criteriaBasedScores_item = obj_criteriaBasedScores[i];
|
|
494
|
-
const path_criteriaBasedScores_item = path_criteriaBasedScores + '[' + i + ']';
|
|
495
|
-
const referencepath_criteriaBasedScores_itemValidationError = validate$g(obj_criteriaBasedScores_item, path_criteriaBasedScores_item);
|
|
496
|
-
if (referencepath_criteriaBasedScores_itemValidationError !== null) {
|
|
497
|
-
let message = 'Object doesn\'t match CoachingAICriteriaBasedFeedbackRepresentation (at "' + path_criteriaBasedScores_item + '")\n';
|
|
498
|
-
message += referencepath_criteriaBasedScores_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
499
|
-
return new TypeError(message);
|
|
500
|
-
}
|
|
429
|
+
const obj_feedback = obj.feedback;
|
|
430
|
+
const path_feedback = path + '.feedback';
|
|
431
|
+
if (typeof obj_feedback !== 'string') {
|
|
432
|
+
return new TypeError('Expected "string" but received "' + typeof obj_feedback + '" (at "' + path_feedback + '")');
|
|
501
433
|
}
|
|
502
|
-
obj.score;
|
|
503
434
|
})();
|
|
504
435
|
return v_error === undefined ? null : v_error;
|
|
505
436
|
}
|
|
@@ -508,29 +439,17 @@ function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
|
508
439
|
return input;
|
|
509
440
|
}
|
|
510
441
|
const select$q = function CoachingAIFeedbackRepresentationSelect() {
|
|
511
|
-
const { selections: CoachingAICriteriaBasedFeedbackRepresentation__selections, opaque: CoachingAICriteriaBasedFeedbackRepresentation__opaque, } = select$r();
|
|
512
442
|
return {
|
|
513
443
|
kind: 'Fragment',
|
|
514
444
|
version: VERSION$f,
|
|
515
445
|
private: [],
|
|
516
446
|
selections: [
|
|
517
|
-
{
|
|
518
|
-
name: 'additionalFeedback',
|
|
519
|
-
kind: 'Object',
|
|
520
|
-
// any
|
|
521
|
-
},
|
|
522
447
|
{
|
|
523
448
|
name: 'conversationSummaryId',
|
|
524
449
|
kind: 'Scalar'
|
|
525
450
|
},
|
|
526
451
|
{
|
|
527
|
-
name: '
|
|
528
|
-
kind: 'Object',
|
|
529
|
-
plural: true,
|
|
530
|
-
selections: CoachingAICriteriaBasedFeedbackRepresentation__selections
|
|
531
|
-
},
|
|
532
|
-
{
|
|
533
|
-
name: 'score',
|
|
452
|
+
name: 'feedback',
|
|
534
453
|
kind: 'Scalar'
|
|
535
454
|
}
|
|
536
455
|
]
|
|
@@ -542,29 +461,9 @@ function equals$f(existing, incoming) {
|
|
|
542
461
|
if (!(existing_conversationSummaryId === incoming_conversationSummaryId)) {
|
|
543
462
|
return false;
|
|
544
463
|
}
|
|
545
|
-
const
|
|
546
|
-
const
|
|
547
|
-
if (!(
|
|
548
|
-
return false;
|
|
549
|
-
}
|
|
550
|
-
const existing_additionalFeedback = existing.additionalFeedback;
|
|
551
|
-
const incoming_additionalFeedback = incoming.additionalFeedback;
|
|
552
|
-
const equals_additionalFeedback_items = equalsArray(existing_additionalFeedback, incoming_additionalFeedback, (existing_additionalFeedback_item, incoming_additionalFeedback_item) => {
|
|
553
|
-
if (JSONStringify(incoming_additionalFeedback_item) !== JSONStringify(existing_additionalFeedback_item)) {
|
|
554
|
-
return false;
|
|
555
|
-
}
|
|
556
|
-
});
|
|
557
|
-
if (equals_additionalFeedback_items === false) {
|
|
558
|
-
return false;
|
|
559
|
-
}
|
|
560
|
-
const existing_criteriaBasedScores = existing.criteriaBasedScores;
|
|
561
|
-
const incoming_criteriaBasedScores = incoming.criteriaBasedScores;
|
|
562
|
-
const equals_criteriaBasedScores_items = equalsArray(existing_criteriaBasedScores, incoming_criteriaBasedScores, (existing_criteriaBasedScores_item, incoming_criteriaBasedScores_item) => {
|
|
563
|
-
if (!(equals$g(existing_criteriaBasedScores_item, incoming_criteriaBasedScores_item))) {
|
|
564
|
-
return false;
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
if (equals_criteriaBasedScores_items === false) {
|
|
464
|
+
const existing_feedback = existing.feedback;
|
|
465
|
+
const incoming_feedback = incoming.feedback;
|
|
466
|
+
if (!(existing_feedback === incoming_feedback)) {
|
|
568
467
|
return false;
|
|
569
468
|
}
|
|
570
469
|
return true;
|
|
@@ -2066,7 +1965,7 @@ const select$h = function LearningItemProgressListRepresentationSelect() {
|
|
|
2066
1965
|
name: 'list',
|
|
2067
1966
|
kind: 'Link',
|
|
2068
1967
|
plural: true,
|
|
2069
|
-
fragment: select$
|
|
1968
|
+
fragment: select$s()
|
|
2070
1969
|
}
|
|
2071
1970
|
]
|
|
2072
1971
|
};
|
|
@@ -3879,7 +3778,7 @@ const getLearningModelAdapterFactory = (luvio) => function LearningContentPlatfo
|
|
|
3879
3778
|
};
|
|
3880
3779
|
|
|
3881
3780
|
const TTL$3 = 60000;
|
|
3882
|
-
const VERSION$5 = "
|
|
3781
|
+
const VERSION$5 = "2925211e5284d3a12b358a5bda082646";
|
|
3883
3782
|
function validate$5(obj, path = 'LearningPracticeRepresentation') {
|
|
3884
3783
|
const v_error = (() => {
|
|
3885
3784
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -3897,13 +3796,55 @@ function validate$5(obj, path = 'LearningPracticeRepresentation') {
|
|
|
3897
3796
|
}
|
|
3898
3797
|
const obj_minimumInviteeQuantity = obj.minimumInviteeQuantity;
|
|
3899
3798
|
const path_minimumInviteeQuantity = path + '.minimumInviteeQuantity';
|
|
3900
|
-
|
|
3901
|
-
|
|
3799
|
+
let obj_minimumInviteeQuantity_union0 = null;
|
|
3800
|
+
const obj_minimumInviteeQuantity_union0_error = (() => {
|
|
3801
|
+
if (typeof obj_minimumInviteeQuantity !== 'number' || (typeof obj_minimumInviteeQuantity === 'number' && Math.floor(obj_minimumInviteeQuantity) !== obj_minimumInviteeQuantity)) {
|
|
3802
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_minimumInviteeQuantity + '" (at "' + path_minimumInviteeQuantity + '")');
|
|
3803
|
+
}
|
|
3804
|
+
})();
|
|
3805
|
+
if (obj_minimumInviteeQuantity_union0_error != null) {
|
|
3806
|
+
obj_minimumInviteeQuantity_union0 = obj_minimumInviteeQuantity_union0_error.message;
|
|
3807
|
+
}
|
|
3808
|
+
let obj_minimumInviteeQuantity_union1 = null;
|
|
3809
|
+
const obj_minimumInviteeQuantity_union1_error = (() => {
|
|
3810
|
+
if (obj_minimumInviteeQuantity !== null) {
|
|
3811
|
+
return new TypeError('Expected "null" but received "' + typeof obj_minimumInviteeQuantity + '" (at "' + path_minimumInviteeQuantity + '")');
|
|
3812
|
+
}
|
|
3813
|
+
})();
|
|
3814
|
+
if (obj_minimumInviteeQuantity_union1_error != null) {
|
|
3815
|
+
obj_minimumInviteeQuantity_union1 = obj_minimumInviteeQuantity_union1_error.message;
|
|
3816
|
+
}
|
|
3817
|
+
if (obj_minimumInviteeQuantity_union0 && obj_minimumInviteeQuantity_union1) {
|
|
3818
|
+
let message = 'Object doesn\'t match union (at "' + path_minimumInviteeQuantity + '")';
|
|
3819
|
+
message += '\n' + obj_minimumInviteeQuantity_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3820
|
+
message += '\n' + obj_minimumInviteeQuantity_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3821
|
+
return new TypeError(message);
|
|
3902
3822
|
}
|
|
3903
3823
|
const obj_surveyId = obj.surveyId;
|
|
3904
3824
|
const path_surveyId = path + '.surveyId';
|
|
3905
|
-
|
|
3906
|
-
|
|
3825
|
+
let obj_surveyId_union0 = null;
|
|
3826
|
+
const obj_surveyId_union0_error = (() => {
|
|
3827
|
+
if (typeof obj_surveyId !== 'string') {
|
|
3828
|
+
return new TypeError('Expected "string" but received "' + typeof obj_surveyId + '" (at "' + path_surveyId + '")');
|
|
3829
|
+
}
|
|
3830
|
+
})();
|
|
3831
|
+
if (obj_surveyId_union0_error != null) {
|
|
3832
|
+
obj_surveyId_union0 = obj_surveyId_union0_error.message;
|
|
3833
|
+
}
|
|
3834
|
+
let obj_surveyId_union1 = null;
|
|
3835
|
+
const obj_surveyId_union1_error = (() => {
|
|
3836
|
+
if (obj_surveyId !== null) {
|
|
3837
|
+
return new TypeError('Expected "null" but received "' + typeof obj_surveyId + '" (at "' + path_surveyId + '")');
|
|
3838
|
+
}
|
|
3839
|
+
})();
|
|
3840
|
+
if (obj_surveyId_union1_error != null) {
|
|
3841
|
+
obj_surveyId_union1 = obj_surveyId_union1_error.message;
|
|
3842
|
+
}
|
|
3843
|
+
if (obj_surveyId_union0 && obj_surveyId_union1) {
|
|
3844
|
+
let message = 'Object doesn\'t match union (at "' + path_surveyId + '")';
|
|
3845
|
+
message += '\n' + obj_surveyId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3846
|
+
message += '\n' + obj_surveyId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3847
|
+
return new TypeError(message);
|
|
3907
3848
|
}
|
|
3908
3849
|
const obj_title = obj.title;
|
|
3909
3850
|
const path_title = path + '.title';
|
|
@@ -3956,11 +3897,6 @@ const select$9 = function LearningPracticeRepresentationSelect() {
|
|
|
3956
3897
|
};
|
|
3957
3898
|
};
|
|
3958
3899
|
function equals$5(existing, incoming) {
|
|
3959
|
-
const existing_minimumInviteeQuantity = existing.minimumInviteeQuantity;
|
|
3960
|
-
const incoming_minimumInviteeQuantity = incoming.minimumInviteeQuantity;
|
|
3961
|
-
if (!(existing_minimumInviteeQuantity === incoming_minimumInviteeQuantity)) {
|
|
3962
|
-
return false;
|
|
3963
|
-
}
|
|
3964
3900
|
const existing_description = existing.description;
|
|
3965
3901
|
const incoming_description = incoming.description;
|
|
3966
3902
|
if (!(existing_description === incoming_description)) {
|
|
@@ -3971,16 +3907,21 @@ function equals$5(existing, incoming) {
|
|
|
3971
3907
|
if (!(existing_learningItemId === incoming_learningItemId)) {
|
|
3972
3908
|
return false;
|
|
3973
3909
|
}
|
|
3974
|
-
const existing_surveyId = existing.surveyId;
|
|
3975
|
-
const incoming_surveyId = incoming.surveyId;
|
|
3976
|
-
if (!(existing_surveyId === incoming_surveyId)) {
|
|
3977
|
-
return false;
|
|
3978
|
-
}
|
|
3979
3910
|
const existing_title = existing.title;
|
|
3980
3911
|
const incoming_title = incoming.title;
|
|
3981
3912
|
if (!(existing_title === incoming_title)) {
|
|
3982
3913
|
return false;
|
|
3983
3914
|
}
|
|
3915
|
+
const existing_minimumInviteeQuantity = existing.minimumInviteeQuantity;
|
|
3916
|
+
const incoming_minimumInviteeQuantity = incoming.minimumInviteeQuantity;
|
|
3917
|
+
if (!(existing_minimumInviteeQuantity === incoming_minimumInviteeQuantity)) {
|
|
3918
|
+
return false;
|
|
3919
|
+
}
|
|
3920
|
+
const existing_surveyId = existing.surveyId;
|
|
3921
|
+
const incoming_surveyId = incoming.surveyId;
|
|
3922
|
+
if (!(existing_surveyId === incoming_surveyId)) {
|
|
3923
|
+
return false;
|
|
3924
|
+
}
|
|
3984
3925
|
return true;
|
|
3985
3926
|
}
|
|
3986
3927
|
const ingest$3 = function LearningPracticeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
@@ -5674,4 +5615,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5674
5615
|
});
|
|
5675
5616
|
|
|
5676
5617
|
export { evaluateLearningItem, getCoachingAIFeedback, getCoachingAIFeedback_imperative, getFeaturedItemsRecommendedList, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList, getFeaturedItemsRelatedList_imperative, getLearningConfig, getLearningConfig_imperative, getLearningItemProgress, getLearningItemProgress_imperative, getLearningItemsList, getLearningItemsList_imperative, getLearningModel, getLearningModel_imperative, getLearningPractice, getLearningPracticeNotifyChange, getLearningPractice_imperative, getModule, getModuleNotifyChange, getModule_imperative, getTextLesson, getTextLessonNotifyChange, getTextLesson_imperative, notifyLearningItemProgressUpdateAvailable, notifyLearningItemUpdateAvailable, notifyLearningTextLessonUpdateAvailable, submitForCoachingAIFeedback };
|
|
5677
|
-
// version: 1.
|
|
5618
|
+
// version: 1.280.0-09f980816
|
package/src/raml/api.raml
CHANGED
|
@@ -25,14 +25,6 @@ annotationTypes:
|
|
|
25
25
|
type: string
|
|
26
26
|
allowedTargets: TypeDeclaration
|
|
27
27
|
types:
|
|
28
|
-
AbstractCoachingAIFeedbackSectionRepresentation:
|
|
29
|
-
description: Abstract coaching AI feedback section representation
|
|
30
|
-
discriminator: feedbackSectionTitle
|
|
31
|
-
type: object
|
|
32
|
-
properties:
|
|
33
|
-
feedbackSectionTitle:
|
|
34
|
-
description: Title for the feedback section
|
|
35
|
-
type: string
|
|
36
28
|
CoachingAICallSubmissionInputRepresentation:
|
|
37
29
|
description: Input representation for submitting the call
|
|
38
30
|
type: object
|
|
@@ -54,56 +46,15 @@ types:
|
|
|
54
46
|
generationId:
|
|
55
47
|
description: Generation ID for the coaching AI feedback
|
|
56
48
|
type: string
|
|
57
|
-
CoachingAICriteriaBasedFeedbackRepresentation:
|
|
58
|
-
description: This representation defines the fields for criteria based feedback.
|
|
59
|
-
type: object
|
|
60
|
-
properties:
|
|
61
|
-
criteriaName:
|
|
62
|
-
description: Name of the criteria
|
|
63
|
-
type: string
|
|
64
|
-
criteriaScore:
|
|
65
|
-
description: Score for the criteria
|
|
66
|
-
format: double
|
|
67
|
-
type: number
|
|
68
49
|
CoachingAIFeedbackRepresentation:
|
|
69
50
|
description: This representation defines the coaching AI feedback
|
|
70
51
|
type: object
|
|
71
52
|
properties:
|
|
72
|
-
additionalFeedback:
|
|
73
|
-
description: List of additional feedback sections
|
|
74
|
-
type: array
|
|
75
|
-
items:
|
|
76
|
-
type: any #TODO Hand-rolled W-8334626, Originally AbstractCoachingAIFeedbackSectionRepresentation
|
|
77
53
|
conversationSummaryId:
|
|
78
54
|
description: Conversation Summary ID for the coaching AI feedback
|
|
79
55
|
type: string
|
|
80
|
-
|
|
81
|
-
description:
|
|
82
|
-
type: array
|
|
83
|
-
items:
|
|
84
|
-
type: CoachingAICriteriaBasedFeedbackRepresentation
|
|
85
|
-
score:
|
|
86
|
-
description: The overall score
|
|
87
|
-
format: double
|
|
88
|
-
type: number
|
|
89
|
-
CoachingAIFeedbackSectionStringCollectionRepresentation:
|
|
90
|
-
description: This representation defines the fields for additional feedback section
|
|
91
|
-
items with the list of strings.
|
|
92
|
-
discriminatorValue: StringCollectionSection
|
|
93
|
-
type: AbstractCoachingAIFeedbackSectionRepresentation
|
|
94
|
-
properties:
|
|
95
|
-
feedbackSectionItems:
|
|
96
|
-
description: List of strings for the additional feedback section items
|
|
97
|
-
type: array
|
|
98
|
-
items:
|
|
99
|
-
type: string
|
|
100
|
-
CoachingAIFeedbackSectionTextRepresentation:
|
|
101
|
-
description: This representation defines the fields for additional feedback.
|
|
102
|
-
discriminatorValue: TextSection
|
|
103
|
-
type: AbstractCoachingAIFeedbackSectionRepresentation
|
|
104
|
-
properties:
|
|
105
|
-
feedbackSectionItem:
|
|
106
|
-
description: Text for the additional feedback section
|
|
56
|
+
feedback:
|
|
57
|
+
description: Feedback in the form of rich text
|
|
107
58
|
type: string
|
|
108
59
|
EvaluateLearningItemInputWrapperRepresentation: # TODO Hand-rolled W-8334626
|
|
109
60
|
description: Wrapper for evaluate learning item input representation
|
|
@@ -522,10 +473,10 @@ types:
|
|
|
522
473
|
type: string
|
|
523
474
|
minimumInviteeQuantity:
|
|
524
475
|
description: Specifies the minimum invitee quantity for the Learning Practice
|
|
525
|
-
type: integer
|
|
476
|
+
type: integer | nil
|
|
526
477
|
surveyId:
|
|
527
478
|
description: Specifies the Survey Id for the Learning Practice
|
|
528
|
-
type: string
|
|
479
|
+
type: string | nil
|
|
529
480
|
title:
|
|
530
481
|
description: Title of the learning practice
|
|
531
482
|
type: string
|
|
@@ -661,7 +612,7 @@ types:
|
|
|
661
612
|
/ai-feedback:
|
|
662
613
|
post:
|
|
663
614
|
displayName: postCoachingAICallSubmission
|
|
664
|
-
description: Return the coaching AI feedback for
|
|
615
|
+
description: Return the coaching AI feedback for the submitted call
|
|
665
616
|
responses:
|
|
666
617
|
'200':
|
|
667
618
|
description: Success
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentUnionSelection as $64$luvio_engine_FragmentUnionSelection, 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 enum DiscriminatorValues {
|
|
3
|
-
TextSection = "TextSection",
|
|
4
|
-
StringCollectionSection = "StringCollectionSection"
|
|
5
|
-
}
|
|
6
|
-
export declare const VERSION = "3e0861459566ffe894f687a275e29d17";
|
|
7
|
-
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
8
|
-
export declare const RepresentationType: string;
|
|
9
|
-
export declare function normalize(input: AbstractCoachingAIFeedbackSectionRepresentation, existing: AbstractCoachingAIFeedbackSectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AbstractCoachingAIFeedbackSectionRepresentationNormalized;
|
|
10
|
-
export declare const selectChildren: () => $64$luvio_engine_FragmentUnionSelection;
|
|
11
|
-
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
12
|
-
export declare function equals(existing: AbstractCoachingAIFeedbackSectionRepresentationNormalized, incoming: AbstractCoachingAIFeedbackSectionRepresentationNormalized): boolean;
|
|
13
|
-
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
14
|
-
export declare const discriminatorIngest: $64$luvio_engine_ResourceIngest;
|
|
15
|
-
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: AbstractCoachingAIFeedbackSectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
16
|
-
/**
|
|
17
|
-
* Abstract coaching AI feedback section representation
|
|
18
|
-
*
|
|
19
|
-
* Keys:
|
|
20
|
-
* (none)
|
|
21
|
-
*/
|
|
22
|
-
export interface AbstractCoachingAIFeedbackSectionRepresentationNormalized {
|
|
23
|
-
/** Title for the feedback section */
|
|
24
|
-
feedbackSectionTitle: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Abstract coaching AI feedback section representation
|
|
28
|
-
*
|
|
29
|
-
* Keys:
|
|
30
|
-
* (none)
|
|
31
|
-
*/
|
|
32
|
-
export interface AbstractCoachingAIFeedbackSectionRepresentation {
|
|
33
|
-
feedbackSectionTitle: string;
|
|
34
|
-
}
|
package/dist/es/es2018/types/src/generated/types/CoachingAICriteriaBasedFeedbackRepresentation.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
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 = "7877f5d0382a35ed103b8a91ff54fa47";
|
|
3
|
-
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
-
export declare const RepresentationType: string;
|
|
5
|
-
export declare function normalize(input: CoachingAICriteriaBasedFeedbackRepresentation, existing: CoachingAICriteriaBasedFeedbackRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CoachingAICriteriaBasedFeedbackRepresentationNormalized;
|
|
6
|
-
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
-
export declare function equals(existing: CoachingAICriteriaBasedFeedbackRepresentationNormalized, incoming: CoachingAICriteriaBasedFeedbackRepresentationNormalized): boolean;
|
|
8
|
-
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CoachingAICriteriaBasedFeedbackRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
-
/**
|
|
11
|
-
* This representation defines the fields for criteria based feedback.
|
|
12
|
-
*
|
|
13
|
-
* Keys:
|
|
14
|
-
* (none)
|
|
15
|
-
*/
|
|
16
|
-
export interface CoachingAICriteriaBasedFeedbackRepresentationNormalized {
|
|
17
|
-
/** Name of the criteria */
|
|
18
|
-
criteriaName: string;
|
|
19
|
-
/** Score for the criteria */
|
|
20
|
-
criteriaScore: number;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* This representation defines the fields for criteria based feedback.
|
|
24
|
-
*
|
|
25
|
-
* Keys:
|
|
26
|
-
* (none)
|
|
27
|
-
*/
|
|
28
|
-
export interface CoachingAICriteriaBasedFeedbackRepresentation {
|
|
29
|
-
criteriaName: string;
|
|
30
|
-
criteriaScore: number;
|
|
31
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AbstractCoachingAIFeedbackSectionRepresentation as AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation } from './AbstractCoachingAIFeedbackSectionRepresentation';
|
|
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 = "6fd49c0cbce9e9e962b6992e871d00fe";
|
|
4
|
-
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
-
export declare const RepresentationType: string;
|
|
6
|
-
export declare function normalize(input: CoachingAIFeedbackSectionStringCollectionRepresentation, existing: CoachingAIFeedbackSectionStringCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CoachingAIFeedbackSectionStringCollectionRepresentationNormalized;
|
|
7
|
-
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
-
export declare function equals(existing: CoachingAIFeedbackSectionStringCollectionRepresentationNormalized, incoming: CoachingAIFeedbackSectionStringCollectionRepresentationNormalized): boolean;
|
|
9
|
-
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CoachingAIFeedbackSectionStringCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
-
/**
|
|
12
|
-
* This representation defines the fields for additional feedback section items with the list of strings.
|
|
13
|
-
*
|
|
14
|
-
* Keys:
|
|
15
|
-
* (none)
|
|
16
|
-
*/
|
|
17
|
-
export interface CoachingAIFeedbackSectionStringCollectionRepresentationNormalized extends AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation {
|
|
18
|
-
/** List of strings for the additional feedback section items */
|
|
19
|
-
feedbackSectionItems: Array<string>;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* This representation defines the fields for additional feedback section items with the list of strings.
|
|
23
|
-
*
|
|
24
|
-
* Keys:
|
|
25
|
-
* (none)
|
|
26
|
-
*/
|
|
27
|
-
export interface CoachingAIFeedbackSectionStringCollectionRepresentation extends AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation {
|
|
28
|
-
feedbackSectionItems: Array<string>;
|
|
29
|
-
feedbackSectionTitle: 'StringCollectionSection';
|
|
30
|
-
}
|
package/dist/es/es2018/types/src/generated/types/CoachingAIFeedbackSectionTextRepresentation.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AbstractCoachingAIFeedbackSectionRepresentation as AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation } from './AbstractCoachingAIFeedbackSectionRepresentation';
|
|
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 = "c03891637cb55085b33861ea074a467b";
|
|
4
|
-
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
-
export declare const RepresentationType: string;
|
|
6
|
-
export declare function normalize(input: CoachingAIFeedbackSectionTextRepresentation, existing: CoachingAIFeedbackSectionTextRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CoachingAIFeedbackSectionTextRepresentationNormalized;
|
|
7
|
-
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
-
export declare function equals(existing: CoachingAIFeedbackSectionTextRepresentationNormalized, incoming: CoachingAIFeedbackSectionTextRepresentationNormalized): boolean;
|
|
9
|
-
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CoachingAIFeedbackSectionTextRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
-
/**
|
|
12
|
-
* This representation defines the fields for additional feedback.
|
|
13
|
-
*
|
|
14
|
-
* Keys:
|
|
15
|
-
* (none)
|
|
16
|
-
*/
|
|
17
|
-
export interface CoachingAIFeedbackSectionTextRepresentationNormalized extends AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation {
|
|
18
|
-
/** Text for the additional feedback section */
|
|
19
|
-
feedbackSectionItem: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* This representation defines the fields for additional feedback.
|
|
23
|
-
*
|
|
24
|
-
* Keys:
|
|
25
|
-
* (none)
|
|
26
|
-
*/
|
|
27
|
-
export interface CoachingAIFeedbackSectionTextRepresentation extends AbstractCoachingAIFeedbackSectionRepresentation_AbstractCoachingAIFeedbackSectionRepresentation {
|
|
28
|
-
feedbackSectionItem: string;
|
|
29
|
-
feedbackSectionTitle: 'TextSection';
|
|
30
|
-
}
|