@ibti-tech/chatbot 0.9.0 → 0.9.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.ts CHANGED
@@ -957,11 +957,11 @@ declare module '@ibti-tech/chatbot/services/feedback/feedback.api' {
957
957
  * @param params - SendUserChatFeedbackParams: apiURL, locale, ratingScore, optional description, publicHash, visitorId
958
958
  * @returns Promise resolving to the fetch Response; check response.ok for success
959
959
  */
960
- export const sendUserChatFeedback: ({ apiURL, locale, ratingScore, description, publicHash, visitorId, }: SendUserChatFeedbackParams) => Promise<Response>;
960
+ export const sendUserChatFeedback: ({ apiURL, locale, ratingScore, description, publicHash, visitorId, userAgent, }: SendUserChatFeedbackParams) => Promise<Response>;
961
961
  //# sourceMappingURL=feedback.api.d.ts.map
962
962
  }
963
963
  declare module '@ibti-tech/chatbot/services/feedback/feedback.api.d.ts' {
964
- {"version":3,"file":"feedback.api.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/feedback/feedback.api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAAU,sEAOxC,0BAA0B,KAAG,OAAO,CAAC,QAAQ,CAY/C,CAAA"}
964
+ {"version":3,"file":"feedback.api.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/feedback/feedback.api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAE1D;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,GAAU,iFAQxC,0BAA0B,KAAG,OAAO,CAAC,QAAQ,CAa/C,CAAA"}
965
965
  }
966
966
  declare module '@ibti-tech/chatbot/services/index' {
967
967
  /**
@@ -1046,11 +1046,13 @@ declare module '@ibti-tech/chatbot/services/types/feedback.types' {
1046
1046
  ratingScore: number;
1047
1047
  /** Optional. Free-text feedback. */
1048
1048
  description?: string;
1049
+ /** Optional. User-Agent string; stored in conversation metadata. */
1050
+ userAgent?: string;
1049
1051
  };
1050
1052
  //# sourceMappingURL=feedback.types.d.ts.map
1051
1053
  }
1052
1054
  declare module '@ibti-tech/chatbot/services/types/feedback.types.d.ts' {
1053
- {"version":3,"file":"feedback.types.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/types/feedback.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,kCAAkC;IAClC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA"}
1055
+ {"version":3,"file":"feedback.types.d.ts","sourceRoot":"","sources":["../../../../../home/runner/work/ibti-chatbot/ibti-chatbot/src/services/types/feedback.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,kCAAkC;IAClC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAA;IAC3B,mCAAmC;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,4CAA4C;IAC5C,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,wEAAwE;IACxE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA"}
1054
1056
  }
1055
1057
  declare module '@ibti-tech/chatbot/services/types/index' {
1056
1058
  export * from '@ibti-tech/chatbot/services/types/chat.types';
package/dist/index.mjs CHANGED
@@ -283,7 +283,8 @@ var sendUserChatFeedback = /* @__PURE__ */ __name(async ({
283
283
  ratingScore,
284
284
  description,
285
285
  publicHash,
286
- visitorId
286
+ visitorId,
287
+ userAgent = typeof navigator !== "undefined" ? navigator.userAgent : void 0
287
288
  }) => {
288
289
  return fetch(`${apiURL}/chat/feedback`, {
289
290
  method: "POST",
@@ -293,7 +294,8 @@ var sendUserChatFeedback = /* @__PURE__ */ __name(async ({
293
294
  rating_score: ratingScore,
294
295
  message: description,
295
296
  ...publicHash && { hash: publicHash },
296
- ...visitorId && { visitorId }
297
+ ...visitorId && { visitorId },
298
+ ...userAgent && { userAgent }
297
299
  })
298
300
  });
299
301
  }, "sendUserChatFeedback");
@@ -2775,7 +2777,7 @@ var Wrapper9 = styled10.div`
2775
2777
  // package.json
2776
2778
  var package_default = {
2777
2779
  name: "@ibti-tech/chatbot",
2778
- version: "0.9.0",
2780
+ version: "0.9.2",
2779
2781
  description: "Chatbot system developed to be embedded in any website",
2780
2782
  packageManager: "yarn@3.6.4",
2781
2783
  main: "./dist/index.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibti-tech/chatbot",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "description": "Chatbot system developed to be embedded in any website",
5
5
  "packageManager": "yarn@3.6.4",
6
6
  "main": "./dist/index.mjs",