@learncard/lca-api-plugin 2.0.0 → 2.0.2
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/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lca-api-plugin.cjs.development.cjs +6 -5
- package/dist/lca-api-plugin.cjs.development.cjs.map +2 -2
- package/dist/lca-api-plugin.cjs.production.min.cjs +4 -4
- package/dist/lca-api-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/lca-api-plugin.esm.js +6 -5
- package/dist/lca-api-plugin.esm.js.map +2 -2
- package/dist/learnCard.d.ts +1 -0
- package/dist/learnCard.d.ts.map +1 -0
- package/dist/plugin.d.ts +1 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/test/index.test.d.ts +1 -0
- package/dist/test/index.test.d.ts.map +1 -0
- package/dist/test/plugin-mode.test.d.ts +1 -0
- package/dist/test/plugin-mode.test.d.ts.map +1 -0
- package/dist/types.d.ts +14 -3
- package/dist/types.d.ts.map +1 -0
- package/package.json +9 -13
- package/src/plugin.ts +8 -6
- package/src/test/plugin-mode.test.ts +4 -3
- package/src/types.ts +4 -1
|
@@ -15311,10 +15311,13 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
|
|
|
15311
15311
|
client = await getNewClient(url2, _learnCard);
|
|
15312
15312
|
learnCard = _learnCard;
|
|
15313
15313
|
}, "resetLCAClient"),
|
|
15314
|
-
generateBoostInfo: /* @__PURE__ */ __name(async (_learnCard, description) => {
|
|
15314
|
+
generateBoostInfo: /* @__PURE__ */ __name(async (_learnCard, description, locale) => {
|
|
15315
15315
|
await initialized;
|
|
15316
15316
|
await updateLearnCard(_learnCard);
|
|
15317
|
-
const result = await client.ai.generateBoostInfo.query({
|
|
15317
|
+
const result = await client.ai.generateBoostInfo.query({
|
|
15318
|
+
description,
|
|
15319
|
+
locale
|
|
15320
|
+
});
|
|
15318
15321
|
return {
|
|
15319
15322
|
title: result.title,
|
|
15320
15323
|
description: result.description,
|
|
@@ -15392,9 +15395,7 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
|
|
|
15392
15395
|
generateAnalyticsAccessToken: /* @__PURE__ */ __name(async (_learnCard, payload) => {
|
|
15393
15396
|
await initialized;
|
|
15394
15397
|
await updateLearnCard(_learnCard);
|
|
15395
|
-
const result = await client.analytics.generateAnalyticsAccessToken.mutate(
|
|
15396
|
-
payload
|
|
15397
|
-
);
|
|
15398
|
+
const result = await client.analytics.generateAnalyticsAccessToken.mutate(payload);
|
|
15398
15399
|
return result;
|
|
15399
15400
|
}, "generateAnalyticsAccessToken"),
|
|
15400
15401
|
decryptDagJwe: /* @__PURE__ */ __name(async (_learnCard, jwe, jwks = []) => {
|