@salesforce/lds-adapters-service-knowledge-questions 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/service-knowledge-questions.js +25 -269
- package/dist/es/es2018/types/src/generated/adapters/getKnowledgeAnswer.d.ts +3 -2
- package/dist/es/es2018/types/src/generated/adapters/getKnowledgeQuestionsGen.d.ts +4 -4
- package/dist/es/es2018/types/src/generated/adapters/putKnowledgeUpdateQuestion.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/{postConnectSelfServiceKnowledgeAnswer.d.ts → postConnectArticleAnswerByRecordId.d.ts} +3 -0
- package/dist/es/es2018/types/src/generated/resources/{postConnectSelfServiceKnowledgeUpdateQuestionByQuestionId.d.ts → putConnectArticleQuestionsSelectioncountByRecordIdAndQuestionId.d.ts} +1 -0
- package/dist/es/es2018/types/src/generated/types/KnowledgeAnswerRepresentation.d.ts +3 -7
- package/dist/es/es2018/types/src/generated/types/KnowledgeQuestionCollectionRepresentation.d.ts +1 -5
- package/dist/es/es2018/types/src/generated/types/KnowledgeUpdateQuestionRepresentation.d.ts +6 -10
- package/package.json +3 -3
- package/sfdc/index.js +29 -273
- package/src/raml/api.raml +23 -44
- package/src/raml/luvio.raml +5 -7
- package/dist/es/es2018/types/src/generated/adapters/postKnowledgeUpdateQuestion.d.ts +0 -15
- package/dist/es/es2018/types/src/generated/types/SSKnowledgeErrorDetailsOutputRepresentation.d.ts +0 -32
- /package/dist/es/es2018/types/src/generated/resources/{getConnectSelfServiceKnowledgeGetQuestionsByRecordId.d.ts → getConnectArticleQuestionsByRecordId.d.ts} +0 -0
|
@@ -91,80 +91,8 @@ function createLink(ref) {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
const VERSION$4 = "d28d9f1d9c88cda2437b9983c72a36e1";
|
|
95
|
-
function validate$4(obj, path = 'SSKnowledgeErrorDetailsOutputRepresentation') {
|
|
96
|
-
const v_error = (() => {
|
|
97
|
-
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
|
-
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
99
|
-
}
|
|
100
|
-
if (obj.code !== undefined) {
|
|
101
|
-
const obj_code = obj.code;
|
|
102
|
-
const path_code = path + '.code';
|
|
103
|
-
if (typeof obj_code !== 'number' || (typeof obj_code === 'number' && Math.floor(obj_code) !== obj_code)) {
|
|
104
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_code + '" (at "' + path_code + '")');
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
if (obj.message !== undefined) {
|
|
108
|
-
const obj_message = obj.message;
|
|
109
|
-
const path_message = path + '.message';
|
|
110
|
-
if (typeof obj_message !== 'string') {
|
|
111
|
-
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
})();
|
|
115
|
-
return v_error === undefined ? null : v_error;
|
|
116
|
-
}
|
|
117
|
-
const select$7 = function SSKnowledgeErrorDetailsOutputRepresentationSelect() {
|
|
118
|
-
return {
|
|
119
|
-
kind: 'Fragment',
|
|
120
|
-
version: VERSION$4,
|
|
121
|
-
private: [],
|
|
122
|
-
selections: [
|
|
123
|
-
{
|
|
124
|
-
name: 'code',
|
|
125
|
-
kind: 'Scalar',
|
|
126
|
-
required: false
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: 'message',
|
|
130
|
-
kind: 'Scalar',
|
|
131
|
-
required: false
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
function equals$4(existing, incoming) {
|
|
137
|
-
const existing_code = existing.code;
|
|
138
|
-
const incoming_code = incoming.code;
|
|
139
|
-
// if at least one of these optionals is defined
|
|
140
|
-
if (existing_code !== undefined || incoming_code !== undefined) {
|
|
141
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
142
|
-
// not equal
|
|
143
|
-
if (existing_code === undefined || incoming_code === undefined) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
if (!(existing_code === incoming_code)) {
|
|
147
|
-
return false;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
const existing_message = existing.message;
|
|
151
|
-
const incoming_message = incoming.message;
|
|
152
|
-
// if at least one of these optionals is defined
|
|
153
|
-
if (existing_message !== undefined || incoming_message !== undefined) {
|
|
154
|
-
// if one of these is not defined we know the other is defined and therefore
|
|
155
|
-
// not equal
|
|
156
|
-
if (existing_message === undefined || incoming_message === undefined) {
|
|
157
|
-
return false;
|
|
158
|
-
}
|
|
159
|
-
if (!(existing_message === incoming_message)) {
|
|
160
|
-
return false;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
return true;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
94
|
const TTL$2 = 300;
|
|
167
|
-
const VERSION$3 = "
|
|
95
|
+
const VERSION$3 = "224afab57d30317cfefba7f46d67f106";
|
|
168
96
|
function validate$3(obj, path = 'KnowledgeAnswerRepresentation') {
|
|
169
97
|
const v_error = (() => {
|
|
170
98
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -175,60 +103,10 @@ function validate$3(obj, path = 'KnowledgeAnswerRepresentation') {
|
|
|
175
103
|
if (typeof obj_answer !== 'string') {
|
|
176
104
|
return new TypeError('Expected "string" but received "' + typeof obj_answer + '" (at "' + path_answer + '")');
|
|
177
105
|
}
|
|
178
|
-
const obj_error = obj.error;
|
|
179
|
-
const path_error = path + '.error';
|
|
180
|
-
let obj_error_union0 = null;
|
|
181
|
-
const obj_error_union0_error = (() => {
|
|
182
|
-
const referencepath_errorValidationError = validate$4(obj_error, path_error);
|
|
183
|
-
if (referencepath_errorValidationError !== null) {
|
|
184
|
-
let message = 'Object doesn\'t match SSKnowledgeErrorDetailsOutputRepresentation (at "' + path_error + '")\n';
|
|
185
|
-
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
186
|
-
return new TypeError(message);
|
|
187
|
-
}
|
|
188
|
-
})();
|
|
189
|
-
if (obj_error_union0_error != null) {
|
|
190
|
-
obj_error_union0 = obj_error_union0_error.message;
|
|
191
|
-
}
|
|
192
|
-
let obj_error_union1 = null;
|
|
193
|
-
const obj_error_union1_error = (() => {
|
|
194
|
-
if (obj_error !== null) {
|
|
195
|
-
return new TypeError('Expected "null" but received "' + typeof obj_error + '" (at "' + path_error + '")');
|
|
196
|
-
}
|
|
197
|
-
})();
|
|
198
|
-
if (obj_error_union1_error != null) {
|
|
199
|
-
obj_error_union1 = obj_error_union1_error.message;
|
|
200
|
-
}
|
|
201
|
-
if (obj_error_union0 && obj_error_union1) {
|
|
202
|
-
let message = 'Object doesn\'t match union (at "' + path_error + '")';
|
|
203
|
-
message += '\n' + obj_error_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
204
|
-
message += '\n' + obj_error_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
205
|
-
return new TypeError(message);
|
|
206
|
-
}
|
|
207
106
|
const obj_status = obj.status;
|
|
208
107
|
const path_status = path + '.status';
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
if (typeof obj_status !== 'string') {
|
|
212
|
-
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
213
|
-
}
|
|
214
|
-
})();
|
|
215
|
-
if (obj_status_union0_error != null) {
|
|
216
|
-
obj_status_union0 = obj_status_union0_error.message;
|
|
217
|
-
}
|
|
218
|
-
let obj_status_union1 = null;
|
|
219
|
-
const obj_status_union1_error = (() => {
|
|
220
|
-
if (obj_status !== null) {
|
|
221
|
-
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
222
|
-
}
|
|
223
|
-
})();
|
|
224
|
-
if (obj_status_union1_error != null) {
|
|
225
|
-
obj_status_union1 = obj_status_union1_error.message;
|
|
226
|
-
}
|
|
227
|
-
if (obj_status_union0 && obj_status_union1) {
|
|
228
|
-
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
229
|
-
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
230
|
-
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
231
|
-
return new TypeError(message);
|
|
108
|
+
if (typeof obj_status !== 'string') {
|
|
109
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
232
110
|
}
|
|
233
111
|
})();
|
|
234
112
|
return v_error === undefined ? null : v_error;
|
|
@@ -247,7 +125,6 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
|
247
125
|
return input;
|
|
248
126
|
}
|
|
249
127
|
const select$6 = function KnowledgeAnswerRepresentationSelect() {
|
|
250
|
-
const { selections: SSKnowledgeErrorDetailsOutputRepresentation__selections, opaque: SSKnowledgeErrorDetailsOutputRepresentation__opaque, } = select$7();
|
|
251
128
|
return {
|
|
252
129
|
kind: 'Fragment',
|
|
253
130
|
version: VERSION$3,
|
|
@@ -257,12 +134,6 @@ const select$6 = function KnowledgeAnswerRepresentationSelect() {
|
|
|
257
134
|
name: 'answer',
|
|
258
135
|
kind: 'Scalar'
|
|
259
136
|
},
|
|
260
|
-
{
|
|
261
|
-
name: 'error',
|
|
262
|
-
kind: 'Object',
|
|
263
|
-
nullable: true,
|
|
264
|
-
selections: SSKnowledgeErrorDetailsOutputRepresentation__selections
|
|
265
|
-
},
|
|
266
137
|
{
|
|
267
138
|
name: 'status',
|
|
268
139
|
kind: 'Scalar'
|
|
@@ -276,14 +147,6 @@ function equals$3(existing, incoming) {
|
|
|
276
147
|
if (!(existing_answer === incoming_answer)) {
|
|
277
148
|
return false;
|
|
278
149
|
}
|
|
279
|
-
const existing_error = existing.error;
|
|
280
|
-
const incoming_error = incoming.error;
|
|
281
|
-
if (!(existing_error === incoming_error
|
|
282
|
-
|| (existing_error != null &&
|
|
283
|
-
incoming_error != null &&
|
|
284
|
-
equals$4(existing_error, incoming_error)))) {
|
|
285
|
-
return false;
|
|
286
|
-
}
|
|
287
150
|
const existing_status = existing.status;
|
|
288
151
|
const incoming_status = incoming.status;
|
|
289
152
|
if (!(existing_status === incoming_status)) {
|
|
@@ -340,10 +203,10 @@ function createResourceRequest$2(config) {
|
|
|
340
203
|
const headers = {};
|
|
341
204
|
return {
|
|
342
205
|
baseUri: '/services/data/v65.0',
|
|
343
|
-
basePath: '/connect/
|
|
206
|
+
basePath: '/connect/article/' + config.urlParams.recordId + '/answer',
|
|
344
207
|
method: 'post',
|
|
345
208
|
body: config.body,
|
|
346
|
-
urlParams:
|
|
209
|
+
urlParams: config.urlParams,
|
|
347
210
|
queryParams: {},
|
|
348
211
|
headers,
|
|
349
212
|
priority: 'normal',
|
|
@@ -352,6 +215,7 @@ function createResourceRequest$2(config) {
|
|
|
352
215
|
|
|
353
216
|
const adapterName$2 = 'getKnowledgeAnswer';
|
|
354
217
|
const getKnowledgeAnswer_ConfigPropertyMetadata = [
|
|
218
|
+
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
355
219
|
generateParamConfigMetadata('contextInfo', true, 2 /* Body */, 4 /* Unsupported */),
|
|
356
220
|
generateParamConfigMetadata('metadata', true, 2 /* Body */, 4 /* Unsupported */),
|
|
357
221
|
generateParamConfigMetadata('question', true, 2 /* Body */, 0 /* String */),
|
|
@@ -518,41 +382,12 @@ function equals$2(existing, incoming) {
|
|
|
518
382
|
}
|
|
519
383
|
|
|
520
384
|
const TTL$1 = 300;
|
|
521
|
-
const VERSION$1 = "
|
|
385
|
+
const VERSION$1 = "e2fb301a62e482f53092c6ef8c054fce";
|
|
522
386
|
function validate$1(obj, path = 'KnowledgeQuestionCollectionRepresentation') {
|
|
523
387
|
const v_error = (() => {
|
|
524
388
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
525
389
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
526
390
|
}
|
|
527
|
-
const obj_error = obj.error;
|
|
528
|
-
const path_error = path + '.error';
|
|
529
|
-
let obj_error_union0 = null;
|
|
530
|
-
const obj_error_union0_error = (() => {
|
|
531
|
-
const referencepath_errorValidationError = validate$4(obj_error, path_error);
|
|
532
|
-
if (referencepath_errorValidationError !== null) {
|
|
533
|
-
let message = 'Object doesn\'t match SSKnowledgeErrorDetailsOutputRepresentation (at "' + path_error + '")\n';
|
|
534
|
-
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
535
|
-
return new TypeError(message);
|
|
536
|
-
}
|
|
537
|
-
})();
|
|
538
|
-
if (obj_error_union0_error != null) {
|
|
539
|
-
obj_error_union0 = obj_error_union0_error.message;
|
|
540
|
-
}
|
|
541
|
-
let obj_error_union1 = null;
|
|
542
|
-
const obj_error_union1_error = (() => {
|
|
543
|
-
if (obj_error !== null) {
|
|
544
|
-
return new TypeError('Expected "null" but received "' + typeof obj_error + '" (at "' + path_error + '")');
|
|
545
|
-
}
|
|
546
|
-
})();
|
|
547
|
-
if (obj_error_union1_error != null) {
|
|
548
|
-
obj_error_union1 = obj_error_union1_error.message;
|
|
549
|
-
}
|
|
550
|
-
if (obj_error_union0 && obj_error_union1) {
|
|
551
|
-
let message = 'Object doesn\'t match union (at "' + path_error + '")';
|
|
552
|
-
message += '\n' + obj_error_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
553
|
-
message += '\n' + obj_error_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
554
|
-
return new TypeError(message);
|
|
555
|
-
}
|
|
556
391
|
if (obj.generatedDate !== undefined) {
|
|
557
392
|
const obj_generatedDate = obj.generatedDate;
|
|
558
393
|
const path_generatedDate = path + '.generatedDate';
|
|
@@ -583,19 +418,12 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
583
418
|
return input;
|
|
584
419
|
}
|
|
585
420
|
const select$3 = function KnowledgeQuestionCollectionRepresentationSelect() {
|
|
586
|
-
const { selections: SSKnowledgeErrorDetailsOutputRepresentation__selections, opaque: SSKnowledgeErrorDetailsOutputRepresentation__opaque, } = select$7();
|
|
587
421
|
const { selections: KnowledgeQuestionRepresentation__selections, opaque: KnowledgeQuestionRepresentation__opaque, } = select$4();
|
|
588
422
|
return {
|
|
589
423
|
kind: 'Fragment',
|
|
590
424
|
version: VERSION$1,
|
|
591
425
|
private: [],
|
|
592
426
|
selections: [
|
|
593
|
-
{
|
|
594
|
-
name: 'error',
|
|
595
|
-
kind: 'Object',
|
|
596
|
-
nullable: true,
|
|
597
|
-
selections: SSKnowledgeErrorDetailsOutputRepresentation__selections
|
|
598
|
-
},
|
|
599
427
|
{
|
|
600
428
|
name: 'generatedDate',
|
|
601
429
|
kind: 'Scalar',
|
|
@@ -624,14 +452,6 @@ function equals$1(existing, incoming) {
|
|
|
624
452
|
return false;
|
|
625
453
|
}
|
|
626
454
|
}
|
|
627
|
-
const existing_error = existing.error;
|
|
628
|
-
const incoming_error = incoming.error;
|
|
629
|
-
if (!(existing_error === incoming_error
|
|
630
|
-
|| (existing_error != null &&
|
|
631
|
-
incoming_error != null &&
|
|
632
|
-
equals$4(existing_error, incoming_error)))) {
|
|
633
|
-
return false;
|
|
634
|
-
}
|
|
635
455
|
const existing_knowledgeQuestionRepresentationList = existing.knowledgeQuestionRepresentationList;
|
|
636
456
|
const incoming_knowledgeQuestionRepresentationList = incoming.knowledgeQuestionRepresentationList;
|
|
637
457
|
const equals_knowledgeQuestionRepresentationList_items = equalsArray(existing_knowledgeQuestionRepresentationList, incoming_knowledgeQuestionRepresentationList, (existing_knowledgeQuestionRepresentationList_item, incoming_knowledgeQuestionRepresentationList_item) => {
|
|
@@ -708,7 +528,7 @@ function createResourceRequest$1(config) {
|
|
|
708
528
|
const headers = {};
|
|
709
529
|
return {
|
|
710
530
|
baseUri: '/services/data/v65.0',
|
|
711
|
-
basePath: '/connect/
|
|
531
|
+
basePath: '/connect/article/' + config.urlParams.recordId + '/questions',
|
|
712
532
|
method: 'get',
|
|
713
533
|
body: null,
|
|
714
534
|
urlParams: config.urlParams,
|
|
@@ -806,73 +626,23 @@ const getKnowledgeQuestionsGenAdapterFactory = (luvio) => function knowledgeQues
|
|
|
806
626
|
};
|
|
807
627
|
|
|
808
628
|
const TTL = 300;
|
|
809
|
-
const VERSION = "
|
|
629
|
+
const VERSION = "2c05b16c1586e5c8b7e6d423d2776998";
|
|
810
630
|
function validate(obj, path = 'KnowledgeUpdateQuestionRepresentation') {
|
|
811
631
|
const v_error = (() => {
|
|
812
632
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
813
633
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
814
634
|
}
|
|
815
|
-
const obj_error = obj.error;
|
|
816
|
-
const path_error = path + '.error';
|
|
817
|
-
let obj_error_union0 = null;
|
|
818
|
-
const obj_error_union0_error = (() => {
|
|
819
|
-
const referencepath_errorValidationError = validate$4(obj_error, path_error);
|
|
820
|
-
if (referencepath_errorValidationError !== null) {
|
|
821
|
-
let message = 'Object doesn\'t match SSKnowledgeErrorDetailsOutputRepresentation (at "' + path_error + '")\n';
|
|
822
|
-
message += referencepath_errorValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
823
|
-
return new TypeError(message);
|
|
824
|
-
}
|
|
825
|
-
})();
|
|
826
|
-
if (obj_error_union0_error != null) {
|
|
827
|
-
obj_error_union0 = obj_error_union0_error.message;
|
|
828
|
-
}
|
|
829
|
-
let obj_error_union1 = null;
|
|
830
|
-
const obj_error_union1_error = (() => {
|
|
831
|
-
if (obj_error !== null) {
|
|
832
|
-
return new TypeError('Expected "null" but received "' + typeof obj_error + '" (at "' + path_error + '")');
|
|
833
|
-
}
|
|
834
|
-
})();
|
|
835
|
-
if (obj_error_union1_error != null) {
|
|
836
|
-
obj_error_union1 = obj_error_union1_error.message;
|
|
837
|
-
}
|
|
838
|
-
if (obj_error_union0 && obj_error_union1) {
|
|
839
|
-
let message = 'Object doesn\'t match union (at "' + path_error + '")';
|
|
840
|
-
message += '\n' + obj_error_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
841
|
-
message += '\n' + obj_error_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
842
|
-
return new TypeError(message);
|
|
843
|
-
}
|
|
844
635
|
const obj_status = obj.status;
|
|
845
636
|
const path_status = path + '.status';
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
if (typeof obj_status !== 'string') {
|
|
849
|
-
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
850
|
-
}
|
|
851
|
-
})();
|
|
852
|
-
if (obj_status_union0_error != null) {
|
|
853
|
-
obj_status_union0 = obj_status_union0_error.message;
|
|
854
|
-
}
|
|
855
|
-
let obj_status_union1 = null;
|
|
856
|
-
const obj_status_union1_error = (() => {
|
|
857
|
-
if (obj_status !== null) {
|
|
858
|
-
return new TypeError('Expected "null" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
859
|
-
}
|
|
860
|
-
})();
|
|
861
|
-
if (obj_status_union1_error != null) {
|
|
862
|
-
obj_status_union1 = obj_status_union1_error.message;
|
|
863
|
-
}
|
|
864
|
-
if (obj_status_union0 && obj_status_union1) {
|
|
865
|
-
let message = 'Object doesn\'t match union (at "' + path_status + '")';
|
|
866
|
-
message += '\n' + obj_status_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
867
|
-
message += '\n' + obj_status_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
868
|
-
return new TypeError(message);
|
|
637
|
+
if (typeof obj_status !== 'string') {
|
|
638
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
869
639
|
}
|
|
870
640
|
})();
|
|
871
641
|
return v_error === undefined ? null : v_error;
|
|
872
642
|
}
|
|
873
643
|
const RepresentationType = 'KnowledgeUpdateQuestionRepresentation';
|
|
874
644
|
function keyBuilder(luvio, config) {
|
|
875
|
-
return keyPrefix + '::' + RepresentationType + ':' +
|
|
645
|
+
return keyPrefix + '::' + RepresentationType + ':' + config.id;
|
|
876
646
|
}
|
|
877
647
|
function keyBuilderFromType(luvio, object) {
|
|
878
648
|
const keyParams = {
|
|
@@ -884,18 +654,11 @@ function normalize(input, existing, path, luvio, store, timestamp) {
|
|
|
884
654
|
return input;
|
|
885
655
|
}
|
|
886
656
|
const select$1 = function KnowledgeUpdateQuestionRepresentationSelect() {
|
|
887
|
-
const { selections: SSKnowledgeErrorDetailsOutputRepresentation__selections, opaque: SSKnowledgeErrorDetailsOutputRepresentation__opaque, } = select$7();
|
|
888
657
|
return {
|
|
889
658
|
kind: 'Fragment',
|
|
890
659
|
version: VERSION,
|
|
891
660
|
private: [],
|
|
892
661
|
selections: [
|
|
893
|
-
{
|
|
894
|
-
name: 'error',
|
|
895
|
-
kind: 'Object',
|
|
896
|
-
nullable: true,
|
|
897
|
-
selections: SSKnowledgeErrorDetailsOutputRepresentation__selections
|
|
898
|
-
},
|
|
899
662
|
{
|
|
900
663
|
name: 'status',
|
|
901
664
|
kind: 'Scalar'
|
|
@@ -904,14 +667,6 @@ const select$1 = function KnowledgeUpdateQuestionRepresentationSelect() {
|
|
|
904
667
|
};
|
|
905
668
|
};
|
|
906
669
|
function equals(existing, incoming) {
|
|
907
|
-
const existing_error = existing.error;
|
|
908
|
-
const incoming_error = incoming.error;
|
|
909
|
-
if (!(existing_error === incoming_error
|
|
910
|
-
|| (existing_error != null &&
|
|
911
|
-
incoming_error != null &&
|
|
912
|
-
equals$4(existing_error, incoming_error)))) {
|
|
913
|
-
return false;
|
|
914
|
-
}
|
|
915
670
|
const existing_status = existing.status;
|
|
916
671
|
const incoming_status = incoming.status;
|
|
917
672
|
if (!(existing_status === incoming_status)) {
|
|
@@ -968,8 +723,8 @@ function createResourceRequest(config) {
|
|
|
968
723
|
const headers = {};
|
|
969
724
|
return {
|
|
970
725
|
baseUri: '/services/data/v65.0',
|
|
971
|
-
basePath: '/connect/
|
|
972
|
-
method: '
|
|
726
|
+
basePath: '/connect/article/' + config.urlParams.recordId + '/questions/' + config.urlParams.questionId + '/selectioncount',
|
|
727
|
+
method: 'put',
|
|
973
728
|
body: null,
|
|
974
729
|
urlParams: config.urlParams,
|
|
975
730
|
queryParams: {},
|
|
@@ -978,15 +733,16 @@ function createResourceRequest(config) {
|
|
|
978
733
|
};
|
|
979
734
|
}
|
|
980
735
|
|
|
981
|
-
const adapterName = '
|
|
982
|
-
const
|
|
736
|
+
const adapterName = 'putKnowledgeUpdateQuestion';
|
|
737
|
+
const putKnowledgeUpdateQuestion_ConfigPropertyMetadata = [
|
|
738
|
+
generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
983
739
|
generateParamConfigMetadata('questionId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
984
740
|
];
|
|
985
|
-
const
|
|
986
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$3(
|
|
741
|
+
const putKnowledgeUpdateQuestion_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, putKnowledgeUpdateQuestion_ConfigPropertyMetadata);
|
|
742
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$3(putKnowledgeUpdateQuestion_ConfigPropertyMetadata);
|
|
987
743
|
function typeCheckConfig(untrustedConfig) {
|
|
988
744
|
const config = {};
|
|
989
|
-
typeCheckConfig$3(untrustedConfig, config,
|
|
745
|
+
typeCheckConfig$3(untrustedConfig, config, putKnowledgeUpdateQuestion_ConfigPropertyMetadata);
|
|
990
746
|
return config;
|
|
991
747
|
}
|
|
992
748
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -1020,15 +776,15 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1020
776
|
throw response;
|
|
1021
777
|
});
|
|
1022
778
|
}
|
|
1023
|
-
const
|
|
1024
|
-
return function
|
|
1025
|
-
const config = validateAdapterConfig(untrustedConfig,
|
|
779
|
+
const putKnowledgeUpdateQuestionAdapterFactory = (luvio) => {
|
|
780
|
+
return function putKnowledgeUpdateQuestion(untrustedConfig) {
|
|
781
|
+
const config = validateAdapterConfig(untrustedConfig, putKnowledgeUpdateQuestion_ConfigPropertyNames);
|
|
1026
782
|
// Invalid or incomplete config
|
|
1027
783
|
if (config === null) {
|
|
1028
|
-
throw new Error('Invalid config for "
|
|
784
|
+
throw new Error('Invalid config for "putKnowledgeUpdateQuestion"');
|
|
1029
785
|
}
|
|
1030
786
|
return buildNetworkSnapshot(luvio, config);
|
|
1031
787
|
};
|
|
1032
788
|
};
|
|
1033
789
|
|
|
1034
|
-
export { getKnowledgeAnswerAdapterFactory, getKnowledgeQuestionsGenAdapterFactory,
|
|
790
|
+
export { getKnowledgeAnswerAdapterFactory, getKnowledgeQuestionsGenAdapterFactory, putKnowledgeUpdateQuestionAdapterFactory };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, 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_postConnectArticleAnswerByRecordId_ResourceRequestConfig } from '../resources/postConnectArticleAnswerByRecordId';
|
|
4
4
|
import { KnowledgeAnswerRepresentation as types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation } from '../types/KnowledgeAnswerRepresentation';
|
|
5
5
|
export declare const adapterName = "getKnowledgeAnswer";
|
|
6
6
|
export declare const getKnowledgeAnswer_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
7
|
export declare const getKnowledgeAnswer_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
8
|
export interface GetKnowledgeAnswerConfig {
|
|
9
|
+
recordId: string;
|
|
9
10
|
contextInfo: {
|
|
10
11
|
[key: string]: string;
|
|
11
12
|
};
|
|
@@ -14,7 +15,7 @@ export interface GetKnowledgeAnswerConfig {
|
|
|
14
15
|
};
|
|
15
16
|
question: string;
|
|
16
17
|
}
|
|
17
|
-
export declare const createResourceParams: (config: GetKnowledgeAnswerConfig) =>
|
|
18
|
+
export declare const createResourceParams: (config: GetKnowledgeAnswerConfig) => resources_postConnectArticleAnswerByRecordId_ResourceRequestConfig;
|
|
18
19
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetKnowledgeAnswerConfig>): adapter$45$utils_Untrusted<GetKnowledgeAnswerConfig>;
|
|
19
20
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetKnowledgeAnswerConfig | null;
|
|
20
21
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeAnswerConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation, any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
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_getConnectArticleQuestionsByRecordId_ResourceRequestConfig } from '../resources/getConnectArticleQuestionsByRecordId';
|
|
4
4
|
import { KnowledgeQuestionCollectionRepresentation as types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation } from '../types/KnowledgeQuestionCollectionRepresentation';
|
|
5
5
|
export declare const adapterName = "getKnowledgeQuestionsGen";
|
|
6
6
|
export declare const getKnowledgeQuestionsGen_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
@@ -9,15 +9,15 @@ export interface GetKnowledgeQuestionsGenConfig {
|
|
|
9
9
|
recordId: string;
|
|
10
10
|
maxResults?: number;
|
|
11
11
|
}
|
|
12
|
-
export declare const createResourceParams: (config: GetKnowledgeQuestionsGenConfig) =>
|
|
12
|
+
export declare const createResourceParams: (config: GetKnowledgeQuestionsGenConfig) => resources_getConnectArticleQuestionsByRecordId_ResourceRequestConfig;
|
|
13
13
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig): string;
|
|
14
14
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetKnowledgeQuestionsGenConfig>): adapter$45$utils_Untrusted<GetKnowledgeQuestionsGenConfig>;
|
|
16
16
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetKnowledgeQuestionsGenConfig | null;
|
|
17
17
|
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig): $64$luvio_engine_Fragment;
|
|
18
18
|
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig): $64$luvio_engine_Snapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, any>;
|
|
19
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig, resourceParams:
|
|
20
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig, resourceParams:
|
|
19
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig, resourceParams: resources_getConnectArticleQuestionsByRecordId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, any>>;
|
|
20
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig, resourceParams: resources_getConnectArticleQuestionsByRecordId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
21
|
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetKnowledgeQuestionsGenConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_KnowledgeQuestionCollectionRepresentation_KnowledgeQuestionCollectionRepresentation, any>>;
|
|
22
22
|
export type BuildSnapshotContext = {
|
|
23
23
|
luvio: $64$luvio_engine_Luvio;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
2
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_putConnectArticleQuestionsSelectioncountByRecordIdAndQuestionId_ResourceRequestConfig } from '../resources/putConnectArticleQuestionsSelectioncountByRecordIdAndQuestionId';
|
|
4
|
+
import { KnowledgeUpdateQuestionRepresentation as types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation } from '../types/KnowledgeUpdateQuestionRepresentation';
|
|
5
|
+
export declare const adapterName = "putKnowledgeUpdateQuestion";
|
|
6
|
+
export declare const putKnowledgeUpdateQuestion_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const putKnowledgeUpdateQuestion_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface PutKnowledgeUpdateQuestionConfig {
|
|
9
|
+
recordId: string;
|
|
10
|
+
questionId: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: PutKnowledgeUpdateQuestionConfig) => resources_putConnectArticleQuestionsSelectioncountByRecordIdAndQuestionId_ResourceRequestConfig;
|
|
13
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PutKnowledgeUpdateQuestionConfig>): adapter$45$utils_Untrusted<PutKnowledgeUpdateQuestionConfig>;
|
|
14
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PutKnowledgeUpdateQuestionConfig | null;
|
|
15
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PutKnowledgeUpdateQuestionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation, any>>;
|
|
16
|
+
export declare const putKnowledgeUpdateQuestionAdapterFactory: $64$luvio_engine_AdapterFactory<PutKnowledgeUpdateQuestionConfig, types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { getKnowledgeAnswerAdapterFactory } from '../adapters/getKnowledgeAnswer';
|
|
2
2
|
export { getKnowledgeQuestionsGenAdapterFactory } from '../adapters/getKnowledgeQuestionsGen';
|
|
3
|
-
export {
|
|
3
|
+
export { putKnowledgeUpdateQuestionAdapterFactory } from '../adapters/putKnowledgeUpdateQuestion';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare let getKnowledgeAnswer: any;
|
|
2
2
|
declare let getKnowledgeQuestionsGen: any;
|
|
3
|
-
declare let
|
|
3
|
+
declare let putKnowledgeUpdateQuestion: any;
|
|
4
4
|
declare let getKnowledgeQuestionsGen_imperative: any;
|
|
5
|
-
export { getKnowledgeAnswer, getKnowledgeQuestionsGen,
|
|
5
|
+
export { getKnowledgeAnswer, getKnowledgeQuestionsGen, putKnowledgeUpdateQuestion, getKnowledgeQuestionsGen_imperative, };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
2
|
import { KnowledgeAnswerRepresentation as types_KnowledgeAnswerRepresentation_KnowledgeAnswerRepresentation } from '../types/KnowledgeAnswerRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
recordId: string;
|
|
6
|
+
};
|
|
4
7
|
body: {
|
|
5
8
|
contextInfo: {
|
|
6
9
|
[key: string]: string;
|
|
@@ -2,6 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { KnowledgeUpdateQuestionRepresentation as types_KnowledgeUpdateQuestionRepresentation_KnowledgeUpdateQuestionRepresentation } from '../types/KnowledgeUpdateQuestionRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
5
|
+
recordId: string;
|
|
5
6
|
questionId: string;
|
|
6
7
|
};
|
|
7
8
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { SSKnowledgeErrorDetailsOutputRepresentation as SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation } from './SSKnowledgeErrorDetailsOutputRepresentation';
|
|
2
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';
|
|
3
2
|
export declare const TTL = 300;
|
|
4
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "224afab57d30317cfefba7f46d67f106";
|
|
5
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
5
|
export declare const RepresentationType: string;
|
|
7
6
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -27,10 +26,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
27
26
|
export interface KnowledgeAnswerRepresentationNormalized {
|
|
28
27
|
/** Answer to given question */
|
|
29
28
|
answer: string;
|
|
30
|
-
/** Error Message if any */
|
|
31
|
-
error: SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation | null;
|
|
32
29
|
/** Status of the update */
|
|
33
|
-
status: string
|
|
30
|
+
status: string;
|
|
34
31
|
}
|
|
35
32
|
/**
|
|
36
33
|
* Represent the knowledge article answer to given questionId
|
|
@@ -40,6 +37,5 @@ export interface KnowledgeAnswerRepresentationNormalized {
|
|
|
40
37
|
*/
|
|
41
38
|
export interface KnowledgeAnswerRepresentation {
|
|
42
39
|
answer: string;
|
|
43
|
-
|
|
44
|
-
status: string | null;
|
|
40
|
+
status: string;
|
|
45
41
|
}
|
package/dist/es/es2018/types/src/generated/types/KnowledgeQuestionCollectionRepresentation.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { SSKnowledgeErrorDetailsOutputRepresentation as SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation } from './SSKnowledgeErrorDetailsOutputRepresentation';
|
|
2
1
|
import { KnowledgeQuestionRepresentation as KnowledgeQuestionRepresentation_KnowledgeQuestionRepresentation } from './KnowledgeQuestionRepresentation';
|
|
3
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';
|
|
4
3
|
export declare const TTL = 300;
|
|
5
|
-
export declare const VERSION = "
|
|
4
|
+
export declare const VERSION = "e2fb301a62e482f53092c6ef8c054fce";
|
|
6
5
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
6
|
export declare const RepresentationType: string;
|
|
8
7
|
export declare function normalize(input: KnowledgeQuestionCollectionRepresentation, existing: KnowledgeQuestionCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): KnowledgeQuestionCollectionRepresentationNormalized;
|
|
@@ -17,8 +16,6 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
17
16
|
* (none)
|
|
18
17
|
*/
|
|
19
18
|
export interface KnowledgeQuestionCollectionRepresentationNormalized {
|
|
20
|
-
/** Error Message if any */
|
|
21
|
-
error: SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation | null;
|
|
22
19
|
/** Generated Date */
|
|
23
20
|
generatedDate?: string;
|
|
24
21
|
/** List of Knowledge Article Questions */
|
|
@@ -31,7 +28,6 @@ export interface KnowledgeQuestionCollectionRepresentationNormalized {
|
|
|
31
28
|
* (none)
|
|
32
29
|
*/
|
|
33
30
|
export interface KnowledgeQuestionCollectionRepresentation {
|
|
34
|
-
error: SSKnowledgeErrorDetailsOutputRepresentation_SSKnowledgeErrorDetailsOutputRepresentation | null;
|
|
35
31
|
generatedDate?: string;
|
|
36
32
|
knowledgeQuestionRepresentationList: Array<KnowledgeQuestionRepresentation_KnowledgeQuestionRepresentation>;
|
|
37
33
|
}
|