@fidusia/question-engine-dynamic 1.0.9 → 1.0.10

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.
@@ -66,7 +66,8 @@ export interface ChatbotConfig {
66
66
  }>;
67
67
  }
68
68
  /**
69
- * Obtient les IDs système avec fallback vers les valeurs par défaut
69
+ * Obtient les IDs système depuis la configuration
70
+ * ⚠️ AUCUN FALLBACK - Les IDs système doivent être chargés depuis la base de données
70
71
  */
71
72
  export declare function getSystemIds(config: ChatbotConfig): {
72
73
  budgetPriorityQuestionId: string;
@@ -108,14 +109,16 @@ export declare function getPriorityBoosts(config: ChatbotConfig): Record<string,
108
109
  */
109
110
  export declare function getPriorityToBookedProviders(config: ChatbotConfig): Record<string, string[]>;
110
111
  /**
111
- * Obtient la configuration du calcul de priorité
112
+ * Obtient la configuration du calcul de priorité depuis la configuration
113
+ * ⚠️ AUCUN FALLBACK - La configuration doit être chargée depuis la base de données
112
114
  */
113
115
  export declare function getPriorityCalculation(config: ChatbotConfig): {
114
116
  base: number;
115
117
  step: number;
116
118
  };
117
119
  /**
118
- * Obtient les comportements spéciaux avec fallbacks
120
+ * Obtient les comportements spéciaux depuis la configuration
121
+ * ⚠️ AUCUN FALLBACK - La configuration doit être chargée depuis la base de données
119
122
  */
120
123
  export declare function getSpecialBehaviors(config: ChatbotConfig): {
121
124
  budgetPriority: {
@@ -1 +1 @@
1
- {"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../src/config-loader.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,WAAW,aAAa;IAI5B,SAAS,CAAC,EAAE;QACV,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,2BAA2B,CAAC,EAAE,MAAM,CAAC;QACrC,8BAA8B,CAAC,EAAE,MAAM,CAAC;QACxC,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,4BAA4B,CAAC,EAAE,MAA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AAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAKnF;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAAC,CAK3H;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAK/E;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,CAKnH;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAK5F;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa;;;EAc3D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa;;;;;;;;;;;;;;;;;;EAmExD"}
@@ -1,17 +1,39 @@
1
1
  // ⚠️ SUPPRIMÉ : Imports des constantes hardcodées
2
2
  // Toutes les configurations doivent venir de la base de données via ChatbotConfig
3
3
  /**
4
- * Obtient les IDs système avec fallback vers les valeurs par défaut
4
+ * Obtient les IDs système depuis la configuration
5
+ * ⚠️ AUCUN FALLBACK - Les IDs système doivent être chargés depuis la base de données
5
6
  */
6
7
  export function getSystemIds(config) {
7
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
8
+ if (!config.systemIds) {
9
+ throw new Error('systemIds is required in ChatbotConfig. Configuration must be loaded from database via loadChatbotConfig().');
10
+ }
11
+ // ⚠️ Tous les IDs système doivent être présents - pas de fallback
12
+ if (!config.systemIds.budgetPriorityQuestionId) {
13
+ throw new Error('systemIds.budgetPriorityQuestionId is required in ChatbotConfig.');
14
+ }
15
+ if (!config.systemIds.contactCorrectionQuestionId) {
16
+ throw new Error('systemIds.contactCorrectionQuestionId is required in ChatbotConfig.');
17
+ }
18
+ if (!config.systemIds.continueOtherSectorsQuestionId) {
19
+ throw new Error('systemIds.continueOtherSectorsQuestionId is required in ChatbotConfig.');
20
+ }
21
+ if (!config.systemIds.finalModuleId) {
22
+ throw new Error('systemIds.finalModuleId is required in ChatbotConfig.');
23
+ }
24
+ if (!config.systemIds.introModuleId) {
25
+ throw new Error('systemIds.introModuleId is required in ChatbotConfig.');
26
+ }
27
+ if (!config.systemIds.continueOtherSectorsModuleId) {
28
+ throw new Error('systemIds.continueOtherSectorsModuleId is required in ChatbotConfig.');
29
+ }
8
30
  return {
9
- budgetPriorityQuestionId: (_b = (_a = config.systemIds) === null || _a === void 0 ? void 0 : _a.budgetPriorityQuestionId) !== null && _b !== void 0 ? _b : "budget_priority",
10
- contactCorrectionQuestionId: (_d = (_c = config.systemIds) === null || _c === void 0 ? void 0 : _c.contactCorrectionQuestionId) !== null && _d !== void 0 ? _d : "contact_correction",
11
- continueOtherSectorsQuestionId: (_f = (_e = config.systemIds) === null || _e === void 0 ? void 0 : _e.continueOtherSectorsQuestionId) !== null && _f !== void 0 ? _f : "continue_other_sectors_question",
12
- finalModuleId: (_h = (_g = config.systemIds) === null || _g === void 0 ? void 0 : _g.finalModuleId) !== null && _h !== void 0 ? _h : "final",
13
- introModuleId: (_k = (_j = config.systemIds) === null || _j === void 0 ? void 0 : _j.introModuleId) !== null && _k !== void 0 ? _k : "intro",
14
- continueOtherSectorsModuleId: (_m = (_l = config.systemIds) === null || _l === void 0 ? void 0 : _l.continueOtherSectorsModuleId) !== null && _m !== void 0 ? _m : "continue_other_sectors",
31
+ budgetPriorityQuestionId: config.systemIds.budgetPriorityQuestionId,
32
+ contactCorrectionQuestionId: config.systemIds.contactCorrectionQuestionId,
33
+ continueOtherSectorsQuestionId: config.systemIds.continueOtherSectorsQuestionId,
34
+ finalModuleId: config.systemIds.finalModuleId,
35
+ introModuleId: config.systemIds.introModuleId,
36
+ continueOtherSectorsModuleId: config.systemIds.continueOtherSectorsModuleId,
15
37
  };
16
38
  }
17
39
  /**
@@ -65,37 +87,90 @@ export function getPriorityToBookedProviders(config) {
65
87
  return config.priorityToBookedProviders;
66
88
  }
67
89
  /**
68
- * Obtient la configuration du calcul de priorité
90
+ * Obtient la configuration du calcul de priorité depuis la configuration
91
+ * ⚠️ AUCUN FALLBACK - La configuration doit être chargée depuis la base de données
69
92
  */
70
93
  export function getPriorityCalculation(config) {
71
- var _a, _b, _c, _d;
94
+ if (!config.priorityCalculation) {
95
+ throw new Error('priorityCalculation is required in ChatbotConfig. Configuration must be loaded from database via loadChatbotConfig().');
96
+ }
97
+ if (config.priorityCalculation.base === undefined) {
98
+ throw new Error('priorityCalculation.base is required in ChatbotConfig.');
99
+ }
100
+ if (config.priorityCalculation.step === undefined) {
101
+ throw new Error('priorityCalculation.step is required in ChatbotConfig.');
102
+ }
72
103
  return {
73
- base: (_b = (_a = config.priorityCalculation) === null || _a === void 0 ? void 0 : _a.base) !== null && _b !== void 0 ? _b : -500,
74
- step: (_d = (_c = config.priorityCalculation) === null || _c === void 0 ? void 0 : _c.step) !== null && _d !== void 0 ? _d : 100,
104
+ base: config.priorityCalculation.base,
105
+ step: config.priorityCalculation.step,
75
106
  };
76
107
  }
77
108
  /**
78
- * Obtient les comportements spéciaux avec fallbacks
109
+ * Obtient les comportements spéciaux depuis la configuration
110
+ * ⚠️ AUCUN FALLBACK - La configuration doit être chargée depuis la base de données
79
111
  */
80
112
  export function getSpecialBehaviors(config) {
81
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
113
+ if (!config.specialBehaviors) {
114
+ throw new Error('specialBehaviors is required in ChatbotConfig. Configuration must be loaded from database via loadChatbotConfig().');
115
+ }
116
+ // ⚠️ Tous les comportements doivent être présents - pas de fallback
117
+ if (config.specialBehaviors.budgetPriority === undefined) {
118
+ throw new Error('specialBehaviors.budgetPriority is required in ChatbotConfig.');
119
+ }
120
+ if (config.specialBehaviors.contactCorrection === undefined) {
121
+ throw new Error('specialBehaviors.contactCorrection is required in ChatbotConfig.');
122
+ }
123
+ if (config.specialBehaviors.continueOtherSectors === undefined) {
124
+ throw new Error('specialBehaviors.continueOtherSectors is required in ChatbotConfig.');
125
+ }
126
+ if (config.specialBehaviors.transitions === undefined) {
127
+ throw new Error('specialBehaviors.transitions is required in ChatbotConfig.');
128
+ }
129
+ // Vérifier que les propriétés requises sont présentes
130
+ if (config.specialBehaviors.budgetPriority.enabled === undefined) {
131
+ throw new Error('specialBehaviors.budgetPriority.enabled is required in ChatbotConfig.');
132
+ }
133
+ if (config.specialBehaviors.budgetPriority.filterOptionsByBookedProviders === undefined) {
134
+ throw new Error('specialBehaviors.budgetPriority.filterOptionsByBookedProviders is required in ChatbotConfig.');
135
+ }
136
+ if (config.specialBehaviors.contactCorrection.enabled === undefined) {
137
+ throw new Error('specialBehaviors.contactCorrection.enabled is required in ChatbotConfig.');
138
+ }
139
+ if (config.specialBehaviors.contactCorrection.detectEmailFrom === undefined) {
140
+ throw new Error('specialBehaviors.contactCorrection.detectEmailFrom is required in ChatbotConfig.');
141
+ }
142
+ if (config.specialBehaviors.continueOtherSectors.enabled === undefined) {
143
+ throw new Error('specialBehaviors.continueOtherSectors.enabled is required in ChatbotConfig.');
144
+ }
145
+ if (config.specialBehaviors.continueOtherSectors.skipToFinalOnNo === undefined) {
146
+ throw new Error('specialBehaviors.continueOtherSectors.skipToFinalOnNo is required in ChatbotConfig.');
147
+ }
148
+ if (config.specialBehaviors.continueOtherSectors.skipModulesWithPriority === undefined) {
149
+ throw new Error('specialBehaviors.continueOtherSectors.skipModulesWithPriority is required in ChatbotConfig.');
150
+ }
151
+ if (config.specialBehaviors.continueOtherSectors.insertBetweenPriorityAndNonPriority === undefined) {
152
+ throw new Error('specialBehaviors.continueOtherSectors.insertBetweenPriorityAndNonPriority is required in ChatbotConfig.');
153
+ }
154
+ if (config.specialBehaviors.transitions.excludeModules === undefined) {
155
+ throw new Error('specialBehaviors.transitions.excludeModules is required in ChatbotConfig.');
156
+ }
82
157
  return {
83
158
  budgetPriority: {
84
- enabled: (_c = (_b = (_a = config.specialBehaviors) === null || _a === void 0 ? void 0 : _a.budgetPriority) === null || _b === void 0 ? void 0 : _b.enabled) !== null && _c !== void 0 ? _c : true,
85
- filterOptionsByBookedProviders: (_f = (_e = (_d = config.specialBehaviors) === null || _d === void 0 ? void 0 : _d.budgetPriority) === null || _e === void 0 ? void 0 : _e.filterOptionsByBookedProviders) !== null && _f !== void 0 ? _f : true,
159
+ enabled: config.specialBehaviors.budgetPriority.enabled,
160
+ filterOptionsByBookedProviders: config.specialBehaviors.budgetPriority.filterOptionsByBookedProviders,
86
161
  },
87
162
  contactCorrection: {
88
- enabled: (_j = (_h = (_g = config.specialBehaviors) === null || _g === void 0 ? void 0 : _g.contactCorrection) === null || _h === void 0 ? void 0 : _h.enabled) !== null && _j !== void 0 ? _j : true,
89
- detectEmailFrom: (_m = (_l = (_k = config.specialBehaviors) === null || _k === void 0 ? void 0 : _k.contactCorrection) === null || _l === void 0 ? void 0 : _l.detectEmailFrom) !== null && _m !== void 0 ? _m : ["Par email", "contact_email"],
163
+ enabled: config.specialBehaviors.contactCorrection.enabled,
164
+ detectEmailFrom: config.specialBehaviors.contactCorrection.detectEmailFrom,
90
165
  },
91
166
  continueOtherSectors: {
92
- enabled: (_q = (_p = (_o = config.specialBehaviors) === null || _o === void 0 ? void 0 : _o.continueOtherSectors) === null || _p === void 0 ? void 0 : _p.enabled) !== null && _q !== void 0 ? _q : true,
93
- skipToFinalOnNo: (_t = (_s = (_r = config.specialBehaviors) === null || _r === void 0 ? void 0 : _r.continueOtherSectors) === null || _s === void 0 ? void 0 : _s.skipToFinalOnNo) !== null && _t !== void 0 ? _t : true,
94
- skipModulesWithPriority: (_w = (_v = (_u = config.specialBehaviors) === null || _u === void 0 ? void 0 : _u.continueOtherSectors) === null || _v === void 0 ? void 0 : _v.skipModulesWithPriority) !== null && _w !== void 0 ? _w : 0,
95
- insertBetweenPriorityAndNonPriority: (_z = (_y = (_x = config.specialBehaviors) === null || _x === void 0 ? void 0 : _x.continueOtherSectors) === null || _y === void 0 ? void 0 : _y.insertBetweenPriorityAndNonPriority) !== null && _z !== void 0 ? _z : true,
167
+ enabled: config.specialBehaviors.continueOtherSectors.enabled,
168
+ skipToFinalOnNo: config.specialBehaviors.continueOtherSectors.skipToFinalOnNo,
169
+ skipModulesWithPriority: config.specialBehaviors.continueOtherSectors.skipModulesWithPriority,
170
+ insertBetweenPriorityAndNonPriority: config.specialBehaviors.continueOtherSectors.insertBetweenPriorityAndNonPriority,
96
171
  },
97
172
  transitions: {
98
- excludeModules: (_2 = (_1 = (_0 = config.specialBehaviors) === null || _0 === void 0 ? void 0 : _0.transitions) === null || _1 === void 0 ? void 0 : _1.excludeModules) !== null && _2 !== void 0 ? _2 : ["intro", "final", "continue_other_sectors"],
173
+ excludeModules: config.specialBehaviors.transitions.excludeModules,
99
174
  },
100
175
  };
101
176
  }
package/dist/engine.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { QuestionModule, ModuleQuestion, QueueState, AnsweredQuestion, UserPriority, I18nFunctions } from "./types";
1
+ import type { QuestionModule, ModuleQuestion, QueueState, AnsweredQuestion, I18nFunctions } from "./types";
2
2
  import type { ChatbotConfig } from './config-loader';
3
3
  import type { EngineType, EngineConfig } from './engine-types';
4
4
  export declare class QuestionEngine {
@@ -77,7 +77,7 @@ export declare class QuestionEngine {
77
77
  private executeQuestionTriggers;
78
78
  private evaluateQuestionTrigger;
79
79
  private executeAction;
80
- applyUserPriority(priority: UserPriority): void;
80
+ applyUserPriority(priority: string): void;
81
81
  private recalculateQueue;
82
82
  getState(): QueueState;
83
83
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AM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IAclE,oBAAoB,IAAI,MAAM;IAK9B,UAAU,IAAI,OAAO;IAQrB,OAAO,CAAC,kBAAkB;IA0C1B,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,GAAG,MAAM,IAAI;IAK5D,OAAO,CAAC,eAAe;CAIxB;AAKD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,aAAa,GAAG,cAAc,CAKrE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,aAAa,GAAG,cAAc,CAGvE"}
package/dist/engine.js CHANGED
@@ -552,9 +552,12 @@ export class QuestionEngine {
552
552
  // (Uniquement pour le moteur avancé)
553
553
  if (!this.isSimpleEngine() && question.id === systemIds.budgetPriorityQuestionId && behaviors.budgetPriority.enabled) {
554
554
  // Les options du module sont maintenant des clés i18n (ex: "intro_options.budget_priority_venue")
555
- const loadedOptions = question.options && question.options.length > 0
556
- ? question.options
557
- : this.i18n.getQuestionOptions(question.id, 'fr');
555
+ // ⚠️ PAS DE FALLBACK - Les options doivent être chargées depuis la DB
556
+ // Si question.options est vide, c'est une erreur de configuration
557
+ if (!question.options || question.options.length === 0) {
558
+ console.error(`[QuestionEngine] Question ${question.id} has no options - options must be loaded from database`);
559
+ }
560
+ const loadedOptions = question.options || [];
558
561
  // Traduire les options pour le filtrage
559
562
  const translatedOptions = loadedOptions.map(opt => {
560
563
  if (opt.includes('.') && !opt.includes(' ')) {
package/dist/types.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  export type QuestionType = "text" | "email" | "phone" | "number" | "date" | "select" | "multiselect" | "yesno" | "priority_order" | "info";
2
- export type ModuleCategory = "system" | "intro" | "ceremony" | "venue" | "catering" | "photography" | "videography" | "music" | "flowers" | "decoration" | "dress" | "suit" | "cake" | "rings" | "stationery" | "transport" | "honeymoon" | "final" | "website" | "ecommerce" | "mobile-app" | "seo" | "social-media" | "branding" | "digital-strategy";
2
+ /**
3
+ * ⚠️ SUPPRIMÉ : ModuleCategory type hardcodé
4
+ *
5
+ * Les catégories sont maintenant chargées dynamiquement depuis la base de données
6
+ * via l'enum PostgreSQL `module_category`. Utiliser `string` directement.
7
+ */
8
+ export type ModuleCategory = string;
3
9
  export interface ModuleQuestion {
4
10
  id: string;
5
11
  text: string;
@@ -107,7 +113,25 @@ export interface AnsweredQuestion {
107
113
  answer: string | string[] | number | boolean;
108
114
  answeredAt: Date;
109
115
  }
110
- export type UserPriority = "Le lieu de réception" | "La gastronomie et le repas" | "Les photos et vidéos" | "La musique et l'animation" | "L'ambiance et la décoration" | "La robe de mariée" | "Le costume";
116
+ /**
117
+ * ⚠️ SUPPRIMÉ : UserPriority type hardcodé
118
+ *
119
+ * Ce type contenait des valeurs hardcodées spécifiques à "wedding-planner" :
120
+ * - "Le lieu de réception"
121
+ * - "La gastronomie et le repas"
122
+ * - "La robe de mariée"
123
+ * - etc.
124
+ *
125
+ * Ces valeurs ne fonctionnent que pour "wedding-planner" et ne sont pas scalables
126
+ * pour d'autres types de chatbots (ex: "digital" a des priorités différentes).
127
+ *
128
+ * Les priorités sont maintenant chargées dynamiquement depuis la base de données
129
+ * via `priorityMappings` dans `ChatbotConfig`. Les clés sont des strings arbitraires
130
+ * définies en DB pour chaque type de chatbot.
131
+ *
132
+ * Utiliser `string` directement pour les priorités utilisateur.
133
+ */
134
+ export type UserPriority = string;
111
135
  export interface PriorityBoost {
112
136
  moduleId: string;
113
137
  boost: number;
@@ -126,10 +150,16 @@ export interface I18nFunctions {
126
150
  */
127
151
  t: (key: string, params?: Record<string, any>, lang?: string) => string;
128
152
  /**
129
- * Récupère les options d'une question
153
+ * ⚠️ DÉPRÉCIÉ : getQuestionOptions()
154
+ *
155
+ * Cette fonction ne devrait plus être utilisée. Les options doivent être chargées
156
+ * depuis la base de données et passées directement dans question.options.
157
+ *
158
+ * Conservée uniquement pour compatibilité avec le code existant, mais retourne toujours [].
159
+ *
130
160
  * @param questionId - ID de la question
131
- * @param lang - Langue optionnelle (par défaut: 'fr')
132
- * @returns Tableau d'options (peut être des clés i18n ou des valeurs directes)
161
+ * @param lang - Langue optionnelle (ignorée)
162
+ * @returns Tableau vide (les options doivent être en DB)
133
163
  */
134
164
  getQuestionOptions: (questionId: string, lang?: string) => string[];
135
165
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,OAAO,GACP,OAAO,GACP,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,gBAAgB,GAChB,MAAM,CAAA;AAGV,MAAM,MAAM,cAAc,GACtB,QAAQ,GACR,OAAO,GACP,UAAU,GACV,OAAO,GACP,UAAU,GACV,aAAa,GACb,aAAa,GACb,OAAO,GACP,SAAS,GACT,YAAY,GACZ,OAAO,GACP,MAAM,GACN,MAAM,GACN,OAAO,GACP,YAAY,GACZ,WAAW,GACX,WAAW,GACX,OAAO,GAEP,SAAS,GACT,WAAW,GACX,YAAY,GACZ,KAAK,GACL,cAAc,GACd,UAAU,GACV,kBAAkB,CAAA;AAMtB,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,YAAY,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IAGZ,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B,uBAAuB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAA;IAEvD,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAA;IAE5B,uBAAuB,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAE/C,gCA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,CAAC,EAAE,MAAM,KAAK,MAAM,EAAE,CAAA;CACpE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fidusia/question-engine-dynamic",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Moteur de questions avec configuration dynamique complète",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",