@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 CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './types';
2
2
  export * from './plugin';
3
3
  export * from './learnCard';
4
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './types';
2
2
  export * from './plugin';
3
3
  export * from './learnCard';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
@@ -15350,10 +15350,13 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
15350
15350
  client = await getNewClient(url2, _learnCard);
15351
15351
  learnCard = _learnCard;
15352
15352
  }, "resetLCAClient"),
15353
- generateBoostInfo: /* @__PURE__ */ __name(async (_learnCard, description) => {
15353
+ generateBoostInfo: /* @__PURE__ */ __name(async (_learnCard, description, locale) => {
15354
15354
  await initialized;
15355
15355
  await updateLearnCard(_learnCard);
15356
- const result = await client.ai.generateBoostInfo.query({ description });
15356
+ const result = await client.ai.generateBoostInfo.query({
15357
+ description,
15358
+ locale
15359
+ });
15357
15360
  return {
15358
15361
  title: result.title,
15359
15362
  description: result.description,
@@ -15431,9 +15434,7 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
15431
15434
  generateAnalyticsAccessToken: /* @__PURE__ */ __name(async (_learnCard, payload) => {
15432
15435
  await initialized;
15433
15436
  await updateLearnCard(_learnCard);
15434
- const result = await client.analytics.generateAnalyticsAccessToken.mutate(
15435
- payload
15436
- );
15437
+ const result = await client.analytics.generateAnalyticsAccessToken.mutate(payload);
15437
15438
  return result;
15438
15439
  }, "generateAnalyticsAccessToken"),
15439
15440
  decryptDagJwe: /* @__PURE__ */ __name(async (_learnCard, jwe, jwks = []) => {