emanate-ai-chat-lib 0.1.3 → 0.1.4

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.
@@ -1052,13 +1052,7 @@
1052
1052
  this.authorName = '';
1053
1053
  this.intent = '';
1054
1054
  this.isLoading = true;
1055
- var request = {
1056
- query: inquiry,
1057
- conversationId: this.conversationId,
1058
- userId: this.userId,
1059
- userName: this.userName,
1060
- appSource: this.appSource
1061
- };
1055
+ var request = Object.assign(Object.assign(Object.assign(Object.assign({ query: inquiry }, (this.conversationId && { conversationId: String(this.conversationId) })), (this.userId && { userId: this.userId })), (this.userName && { userName: this.userName })), (this.appSource && { appSource: this.appSource }));
1062
1056
  this.aiAgentService.processInquiry(request)
1063
1057
  .pipe(operators.takeUntil(this.destroy$))
1064
1058
  .subscribe({