@learnpack/learnpack 5.0.318 → 5.0.320

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.
@@ -10,7 +10,7 @@
10
10
  />
11
11
 
12
12
  <title>Learnpack Creator: Craft tutorials in seconds!</title>
13
- <script type="module" crossorigin src="/creator/assets/index-XZDcEWl9.js"></script>
13
+ <script type="module" crossorigin src="/creator/assets/index-BhqDgBS9.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="/creator/assets/index-CjddKHB_.css">
15
15
  </head>
16
16
  <body>
@@ -96,7 +96,7 @@ type TInitialContentGeneratorInputs = {
96
96
  current_syllabus: string;
97
97
  lesson_description: string;
98
98
  };
99
- export declare const initialContentGenerator: (token: string, inputs: TInitialContentGeneratorInputs, webhookUrl?: string) => Promise<any>;
99
+ export declare const initialContentGenerator: (token: string, inputs: TInitialContentGeneratorInputs, webhookUrl?: string, endpointSlug?: string) => Promise<any>;
100
100
  type TAddInteractivityInputs = {
101
101
  components: string;
102
102
  prev_lesson: string;
@@ -283,9 +283,9 @@ const getLanguageCodes = async (token, inputs) => {
283
283
  return response.data;
284
284
  };
285
285
  exports.getLanguageCodes = getLanguageCodes;
286
- const initialContentGenerator = async (token, inputs, webhookUrl) => {
286
+ const initialContentGenerator = async (token, inputs, webhookUrl, endpointSlug = "initial-step-content-generator") => {
287
287
  try {
288
- const response = await axios_1.default.post(`${api_1.RIGOBOT_HOST}/v1/prompting/completion/initial-step-content-generator/`, {
288
+ const response = await axios_1.default.post(`${api_1.RIGOBOT_HOST}/v1/prompting/completion/${endpointSlug}/`, {
289
289
  inputs,
290
290
  include_purpose_objective: false,
291
291
  execute_async: !!webhookUrl,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@learnpack/learnpack",
3
3
  "description": "Seamlessly build, sell and/or take interactive & auto-graded tutorials, start learning now or build a new tutorial to your audience.",
4
- "version": "5.0.318",
4
+ "version": "5.0.320",
5
5
  "author": "Alejandro Sanchez @alesanchezr",
6
6
  "contributors": [
7
7
  {