@cognigy/rest-api-client 0.12.0 → 0.13.0

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.
Files changed (277) hide show
  1. package/.eslintignore +15 -0
  2. package/.eslintrc.json +28 -0
  3. package/.prettierrc.json +7 -0
  4. package/build/GenericAPIFn.js +3 -3
  5. package/build/GenericUploadFn.js +8 -5
  6. package/build/PluginBase.js +1 -1
  7. package/build/RestAPIClient.js +1 -1
  8. package/build/apigroups/AdministrationAPIGroup_2_0.js +53 -47
  9. package/build/apigroups/AnalyticsAPIGroup_2_0.js +1 -1
  10. package/build/apigroups/ExternalAPIGroup_2_0.js +5 -5
  11. package/build/apigroups/InsightsAPIGroup_2_0.js +17 -12
  12. package/build/apigroups/ManagementAPIGroup_2_0.js +19 -15
  13. package/build/apigroups/MetricsAPIGroup_2_0.js +29 -29
  14. package/build/apigroups/ResourcesAPIGroup_2_0.js +238 -186
  15. package/build/apigroups/SessionsAPIGroup_2_0.js +7 -7
  16. package/build/authentication/ApiKey/ApiKeyAuthentication.js +1 -1
  17. package/build/authentication/AuthenticationAPI.js +2 -2
  18. package/build/authentication/BasicAuthentication/BasicAuthentication.js +2 -2
  19. package/build/authentication/OAuth2/IOAuth2ErrorResponse.js +1 -1
  20. package/build/authentication/OAuth2/OAuth2Authentication.js +34 -27
  21. package/build/connector/AxiosAdapter.js +28 -24
  22. package/build/connector/isRetryAllowed.js +0 -1
  23. package/build/connector/retryAfterDelay.js +3 -3
  24. package/build/shared/{interfaces/debugEvents/TSessionStateEmitParams.js → api/liveAgent/liveAgentInterfaces.js} +1 -1
  25. package/build/shared/charts/descriptors/allFields.js +1 -1
  26. package/build/shared/charts/descriptors/{profile → analytics}/activateProfile.js +2 -2
  27. package/build/shared/charts/descriptors/{profile → analytics}/blindMode.js +11 -4
  28. package/build/shared/charts/descriptors/{profile → analytics}/completeGoal.js +2 -2
  29. package/build/shared/charts/descriptors/{profile → analytics}/deactivateProfile.js +2 -2
  30. package/build/shared/charts/descriptors/{profile → analytics}/deleteProfile.js +2 -2
  31. package/build/shared/charts/descriptors/{profile → analytics}/index.js +0 -0
  32. package/build/shared/charts/descriptors/{profile → analytics}/mergeProfile.js +2 -2
  33. package/build/shared/charts/descriptors/{profile → analytics}/overwriteAnalytics.js +6 -3
  34. package/build/shared/charts/descriptors/{profile → analytics}/requestRating.js +2 -2
  35. package/build/shared/charts/descriptors/{profile → analytics}/setRating.js +2 -2
  36. package/build/shared/charts/descriptors/{profile → analytics}/updateProfile.js +2 -2
  37. package/build/shared/charts/descriptors/apps/getAppSessionPin.js +46 -0
  38. package/build/shared/charts/descriptors/apps/index.js +7 -1
  39. package/build/shared/charts/descriptors/apps/initAppSession.js +467 -12
  40. package/build/shared/charts/descriptors/apps/setAdaptiveCardAppState.js +79 -0
  41. package/build/shared/charts/descriptors/apps/setAppState.js +13 -15
  42. package/build/shared/charts/descriptors/apps/setHtmlAppState.js +108 -0
  43. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/amazonStorageProviderConnection.js +14 -0
  44. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/azureBlobStorageProviderConnection.js +13 -0
  45. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/googleCloudStorageProviderConnection.js +13 -0
  46. package/build/shared/charts/descriptors/connectionNodes/internalStorageProviders/index.js +23 -0
  47. package/build/shared/charts/descriptors/connectionNodes/mongoDB/aggregate.js +1 -1
  48. package/build/shared/charts/descriptors/connectionNodes/mongoDB/find.js +1 -1
  49. package/build/shared/charts/descriptors/connectionNodes/mongoDB/findOne.js +1 -1
  50. package/build/shared/charts/descriptors/connectionNodes/mongoDB/index.js +1 -1
  51. package/build/shared/charts/descriptors/connectionNodes/mongoDB/insert.js +1 -1
  52. package/build/shared/charts/descriptors/connectionNodes/mongoDB/remove.js +1 -1
  53. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateMany.js +1 -1
  54. package/build/shared/charts/descriptors/connectionNodes/mongoDB/updateOne.js +1 -1
  55. package/build/shared/charts/descriptors/connectionNodes/smtp/emailNotification.js +2 -2
  56. package/build/shared/charts/descriptors/connectionNodes/smtp/index.js +1 -1
  57. package/build/shared/charts/descriptors/connectionNodes/smtp/sendEmail.js +2 -2
  58. package/build/shared/charts/descriptors/connectionNodes/sql/index.js +1 -1
  59. package/build/shared/charts/descriptors/connectionNodes/sql/runQuery.js +1 -1
  60. package/build/shared/charts/descriptors/connectionNodes/sql/runStoredProcedure.js +1 -1
  61. package/build/shared/charts/descriptors/connectionNodes/sql/runTransaction.js +1 -1
  62. package/build/shared/charts/descriptors/data/addToContext.js +1 -1
  63. package/build/shared/charts/descriptors/data/code.js +1 -1
  64. package/build/shared/charts/descriptors/data/copyDataToContext.js +1 -1
  65. package/build/shared/charts/descriptors/data/copySlotsToContext.js +1 -1
  66. package/build/shared/charts/descriptors/data/log.js +1 -1
  67. package/build/shared/charts/descriptors/data/removeFromContext.js +1 -1
  68. package/build/shared/charts/descriptors/data/resetContext.js +1 -1
  69. package/build/shared/charts/descriptors/end.js +1 -1
  70. package/build/shared/charts/descriptors/index.js +25 -16
  71. package/build/shared/charts/descriptors/liveAgent/assistInfo.js +195 -0
  72. package/build/shared/charts/descriptors/liveAgent/index.js +6 -0
  73. package/build/shared/charts/descriptors/liveAgent/utils/buildCognigyWhisperAssistResponse.js +135 -0
  74. package/build/shared/charts/descriptors/liveAgent/utils/index.js +6 -0
  75. package/build/shared/charts/descriptors/logic/disableSlotFillers.js +1 -1
  76. package/build/shared/charts/descriptors/logic/enableSlotFillers.js +1 -1
  77. package/build/shared/charts/descriptors/logic/executeFlow.js +1 -1
  78. package/build/shared/charts/descriptors/logic/goTo.js +1 -1
  79. package/build/shared/charts/descriptors/logic/if/else.js +1 -1
  80. package/build/shared/charts/descriptors/logic/if/if.js +1 -1
  81. package/build/shared/charts/descriptors/logic/if/then.js +1 -1
  82. package/build/shared/charts/descriptors/logic/interval/elseInterval.js +1 -1
  83. package/build/shared/charts/descriptors/logic/interval/interval.js +1 -1
  84. package/build/shared/charts/descriptors/logic/interval/onInterval.js +1 -1
  85. package/build/shared/charts/descriptors/logic/once/afterwards.js +1 -1
  86. package/build/shared/charts/descriptors/logic/once/onFirstExecution.js +1 -1
  87. package/build/shared/charts/descriptors/logic/once/once.js +1 -1
  88. package/build/shared/charts/descriptors/logic/resetState.js +1 -1
  89. package/build/shared/charts/descriptors/logic/setState.js +1 -1
  90. package/build/shared/charts/descriptors/logic/setTranslation.js +1 -1
  91. package/build/shared/charts/descriptors/logic/sleep.js +1 -1
  92. package/build/shared/charts/descriptors/logic/stop.js +1 -1
  93. package/build/shared/charts/descriptors/logic/switch/case.js +1 -1
  94. package/build/shared/charts/descriptors/logic/switch/default.js +1 -1
  95. package/build/shared/charts/descriptors/logic/switch/switch.js +22 -8
  96. package/build/shared/charts/descriptors/logic/switchLocale.js +1 -1
  97. package/build/shared/charts/descriptors/logic/think.js +1 -1
  98. package/build/shared/charts/descriptors/logic/thinkV2.js +1 -1
  99. package/build/shared/charts/descriptors/logic/wait.js +1 -1
  100. package/build/shared/charts/descriptors/message/checkChannelChange/checkChannelChange.js +1 -1
  101. package/build/shared/charts/descriptors/message/checkChannelChange/onNo.js +1 -1
  102. package/build/shared/charts/descriptors/message/checkChannelChange/onYes.js +1 -1
  103. package/build/shared/charts/descriptors/message/checkChannelChange/unchanged.js +1 -1
  104. package/build/shared/charts/descriptors/message/datePicker.js +5 -5
  105. package/build/shared/charts/descriptors/message/question/onAnswer.js +1 -1
  106. package/build/shared/charts/descriptors/message/question/onQuestion.js +1 -1
  107. package/build/shared/charts/descriptors/message/question/optionalQuestion.js +2 -2
  108. package/build/shared/charts/descriptors/message/question/question.js +201 -24
  109. package/build/shared/charts/descriptors/message/question/utils/datepickerUtils.js +31 -2
  110. package/build/shared/charts/descriptors/message/question/utils/evaluateQuestionAnswer.js +4 -1
  111. package/build/shared/charts/descriptors/message/question/utils/questionHandover.js +13 -0
  112. package/build/shared/charts/descriptors/message/say.js +10 -4
  113. package/build/shared/charts/descriptors/message/sendImage.js +1 -1
  114. package/build/shared/charts/descriptors/message/sendText.js +1 -1
  115. package/build/shared/charts/descriptors/microsoft/getToken.js +1 -1
  116. package/build/shared/charts/descriptors/microsoft/index.js +1 -1
  117. package/build/shared/charts/descriptors/microsoft/invalidateToken.js +1 -1
  118. package/build/shared/charts/descriptors/microsoft/tokenStatus/index.js +1 -1
  119. package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenGranted.js +1 -1
  120. package/build/shared/charts/descriptors/microsoft/tokenStatus/tokenNotGranted.js +1 -1
  121. package/build/shared/charts/descriptors/nlu/addLexiconKeyphrase.js +1 -1
  122. package/build/shared/charts/descriptors/nlu/executeCognigyNLU.js +18 -3
  123. package/build/shared/charts/descriptors/nlu/extractAnswer.js +1 -1
  124. package/build/shared/charts/descriptors/nlu/fuzzySearch.js +2 -2
  125. package/build/shared/charts/descriptors/nlu/matchPattern.js +13 -4
  126. package/build/shared/charts/descriptors/nlu/regexSlotFiller.js +1 -1
  127. package/build/shared/charts/descriptors/nlu/utils/patternMatcher.js +129 -61
  128. package/build/shared/charts/descriptors/placeholder.js +1 -1
  129. package/build/shared/charts/descriptors/requiredFields.js +1 -1
  130. package/build/shared/charts/descriptors/service/checkAgentAvailability.js +203 -0
  131. package/build/shared/charts/descriptors/service/handover.js +1 -1
  132. package/build/shared/charts/descriptors/service/handoverV2.js +66 -3
  133. package/build/shared/charts/descriptors/service/httpRequest.js +16 -5
  134. package/build/shared/charts/descriptors/service/index.js +3 -1
  135. package/build/shared/charts/descriptors/service/triggerFunction/onScheduled.js +1 -1
  136. package/build/shared/charts/descriptors/service/triggerFunction/onSchedulingError.js +1 -1
  137. package/build/shared/charts/descriptors/service/triggerFunction/triggerFunction.js +1 -1
  138. package/build/shared/charts/descriptors/start.js +1 -1
  139. package/build/shared/charts/descriptors/voice/index.js +20 -0
  140. package/build/shared/charts/descriptors/voice/interface/IAudioCodes.js +3 -0
  141. package/build/shared/charts/descriptors/voice/interface/IVoiceGateway2.js +3 -0
  142. package/build/shared/charts/descriptors/voice/mappers/hangup.mapper.js +59 -0
  143. package/build/shared/charts/descriptors/voice/mappers/play.mapper.js +99 -0
  144. package/build/shared/charts/descriptors/voice/mappers/setSessionConfig.mapper.js +296 -0
  145. package/build/shared/charts/descriptors/voice/mappers/transfer.mapper.js +86 -0
  146. package/build/shared/charts/descriptors/voice/nodes/bargeIn.js +60 -0
  147. package/build/shared/charts/descriptors/voice/nodes/continuousAsr.js +72 -0
  148. package/build/shared/charts/descriptors/voice/nodes/dtmf.js +86 -0
  149. package/build/shared/charts/descriptors/voice/nodes/hangup.js +48 -0
  150. package/build/shared/charts/descriptors/voice/nodes/noUserInput.js +105 -0
  151. package/build/shared/charts/descriptors/voice/nodes/play.js +95 -0
  152. package/build/shared/charts/descriptors/voice/nodes/sessionSpeechParameters.js +105 -0
  153. package/build/shared/charts/descriptors/voice/nodes/transfer.js +114 -0
  154. package/build/shared/charts/descriptors/voice/utils/constants.js +8 -0
  155. package/build/shared/charts/descriptors/voice/utils/design.js +5 -0
  156. package/build/shared/charts/descriptors/voice/utils/helper.js +11 -0
  157. package/build/shared/charts/descriptors/voicegateway/index.js +1 -1
  158. package/build/shared/charts/descriptors/voicegateway/nodes/agentAssist.js +1 -1
  159. package/build/shared/charts/descriptors/voicegateway/nodes/callRecording.js +1 -1
  160. package/build/shared/charts/descriptors/voicegateway/nodes/handover.js +18 -32
  161. package/build/shared/charts/descriptors/voicegateway/nodes/hangup.js +11 -20
  162. package/build/shared/charts/descriptors/voicegateway/nodes/playURL.js +14 -29
  163. package/build/shared/charts/descriptors/voicegateway/nodes/sendMessage.js +4 -4
  164. package/build/shared/charts/descriptors/voicegateway/nodes/sendMetaData.js +1 -1
  165. package/build/shared/charts/descriptors/voicegateway/nodes/setSessionParams.js +4 -4
  166. package/build/shared/charts/descriptors/voicegateway/utils/paramUtils.js +25 -5
  167. package/build/shared/charts/descriptors/voicegateway2/index.js +6 -2
  168. package/build/shared/charts/descriptors/voicegateway2/nodes/dtmf.js +9 -5
  169. package/build/shared/charts/descriptors/voicegateway2/nodes/hangup.js +17 -19
  170. package/build/shared/charts/descriptors/voicegateway2/nodes/play.js +19 -105
  171. package/build/shared/charts/descriptors/voicegateway2/nodes/refer.js +73 -14
  172. package/build/shared/charts/descriptors/voicegateway2/nodes/sendMetadata.js +64 -0
  173. package/build/shared/charts/descriptors/voicegateway2/nodes/setSessionConfig.js +95 -325
  174. package/build/shared/charts/descriptors/voicegateway2/nodes/transfer.js +99 -0
  175. package/build/shared/charts/descriptors/voicegateway2/utils/constants.js +7 -0
  176. package/build/shared/charts/descriptors/voicegateway2/utils/helper.js +39 -0
  177. package/build/shared/constants.js +3 -1
  178. package/build/shared/errors/baseError.js +2 -2
  179. package/build/shared/handoverClients/interfaces/TAnyProviderResponse.js +3 -0
  180. package/build/shared/handoverClients/interfaces/THandoverEventType.js +12 -0
  181. package/build/shared/helper/BaseContext.js +1 -1
  182. package/build/shared/helper/defaultDatepickerFunction.js +13 -0
  183. package/build/shared/helper/rest/query-string/index.js +5 -5
  184. package/build/shared/helper/rest/query.js +0 -0
  185. package/build/shared/interfaces/IApiKey.js +1 -1
  186. package/build/shared/interfaces/IOrganisation.js +21 -2
  187. package/build/shared/interfaces/IProfile.js +1 -1
  188. package/build/shared/interfaces/ISayNodeSettings.js +3 -0
  189. package/build/shared/interfaces/ai.js +0 -1
  190. package/build/shared/interfaces/amazonLexV2Interface.js +3 -0
  191. package/build/shared/interfaces/amqpInterface.js +1 -1
  192. package/build/shared/interfaces/analytics/IAnalyticsRating.js +13 -0
  193. package/build/shared/interfaces/analytics/IStepEvent.js +2 -0
  194. package/build/shared/interfaces/fileStorage.js +23 -0
  195. package/build/shared/interfaces/handover.js +74 -4
  196. package/build/shared/interfaces/journeys/IJourney.js +1 -1
  197. package/build/shared/interfaces/management/deleteOrganisation/deleteOrganisationTypes.js +3 -0
  198. package/build/shared/interfaces/messageAPI/analytics.js +3 -0
  199. package/build/shared/interfaces/messageAPI/endpoints.js +89 -3
  200. package/build/shared/interfaces/messageAPI/handover.js +270 -0
  201. package/build/shared/interfaces/resources/IAppTemplate.js +24 -0
  202. package/build/shared/interfaces/resources/IAuditEvent.js +25 -2
  203. package/build/shared/interfaces/resources/IChart.js +2 -1
  204. package/build/shared/interfaces/resources/IChartNode.js +3 -2
  205. package/build/shared/interfaces/resources/IConnection.js +1 -1
  206. package/build/shared/interfaces/resources/IConnectionSchema.js +1 -1
  207. package/build/shared/interfaces/resources/IEndpoint.js +2 -0
  208. package/build/shared/interfaces/resources/IExtension.js +17 -0
  209. package/build/shared/interfaces/resources/IFile.js +1 -1
  210. package/build/shared/interfaces/resources/IFlow.js +10 -2
  211. package/build/shared/interfaces/resources/IFlowState.js +1 -1
  212. package/build/shared/interfaces/resources/IFunctionInstance.js +1 -1
  213. package/build/shared/interfaces/resources/IHandoverConfiguration.js +13 -0
  214. package/build/shared/interfaces/resources/ILexicon.js +1 -1
  215. package/build/shared/interfaces/resources/ILexiconEntry.js +1 -1
  216. package/build/shared/interfaces/resources/INodeDescriptorSet.js +5 -1
  217. package/build/shared/interfaces/resources/IOrganisationDeletion.js +10 -0
  218. package/build/shared/interfaces/resources/IPlaybookRun.js +7 -7
  219. package/build/shared/interfaces/resources/IProject.js +14 -1
  220. package/build/shared/interfaces/resources/IRemoveDuplicatedSlotsAndUpdateLexionEntries.js +3 -0
  221. package/build/shared/interfaces/resources/TNLUConnectorType.js +1 -0
  222. package/build/shared/interfaces/resources/TRestChannelType.js +5 -0
  223. package/build/shared/interfaces/resources/TSocketChannelType.js +5 -5
  224. package/build/shared/interfaces/resources/TWebhookChannelType.js +10 -0
  225. package/build/shared/interfaces/resources/intent/IIntent.js +26 -8
  226. package/build/shared/interfaces/resources/intent/IIntentTrainGroup.js +19 -1
  227. package/build/shared/interfaces/resources/settings/IAgentSettings.js +47 -6
  228. package/build/shared/interfaces/resources/settings/IFlowSettings.js +20 -2
  229. package/build/shared/interfaces/resources/settings/ISharedSettings.js +5 -1
  230. package/build/shared/interfaces/resources/yesNoIntent/IYesNoItem.js +9 -0
  231. package/build/shared/interfaces/resources/yesNoIntent/index.js +3 -0
  232. package/build/shared/interfaces/restAPI/administration/liveAgent/v2.0/IUpdateCognigyLiveAgentInboxRest_2_0.js +3 -0
  233. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IReadCollectionsToBeDeletedRest_2_0.js +21 -0
  234. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/IRequestOrganisationDeletionRest_2_0.js +3 -0
  235. package/build/shared/interfaces/restAPI/administration/organisations/v2.0/index.js +3 -0
  236. package/build/shared/interfaces/restAPI/audio/v2.0/IAudioPreviewLanguages_2_0.js +3 -0
  237. package/build/shared/interfaces/restAPI/audio/v2.0/IAudioPreviewRest_2_0.js +3 -0
  238. package/build/shared/interfaces/restAPI/audio/v2.0/IIndexAudioPreviewLanguages_2_0.js +4 -0
  239. package/build/shared/interfaces/restAPI/audio/v2.0/ITestVoiceProviderRest_2_0.js +3 -0
  240. package/build/shared/interfaces/restAPI/audio/v2.0/ITestVoiceProvider_2_0.js +3 -0
  241. package/build/shared/interfaces/restAPI/audio/v2.0/IVGCallSettings_2_0.js +4 -0
  242. package/build/shared/interfaces/restAPI/audio/v2.0/IVoicePrepareCallRest_2_0.js +3 -0
  243. package/build/shared/interfaces/restAPI/audio/v2.0/IVoicePrepareCall_2_0.js +4 -0
  244. package/build/shared/interfaces/restAPI/audio/v2.0/index.js +3 -0
  245. package/build/shared/interfaces/restAPI/insights/publish/IPublishAnalyticsRestDataBody.js +4 -0
  246. package/build/shared/interfaces/restAPI/management/organisations/v2.0/IDeleteOrganisationRest_2_0.js +4 -0
  247. package/build/shared/interfaces/restAPI/resources/file/v2.0/IUploadFileRest_2_0.js +3 -0
  248. package/build/shared/interfaces/restAPI/resources/file/v2.0/index.js +3 -0
  249. package/build/shared/interfaces/restAPI/resources/flow/v2.0/ICloneFlowRest_2_0.js +4 -0
  250. package/build/shared/interfaces/restAPI/resources/flow/v2.0/sentence/IYesNoSentence_2_0.js +3 -0
  251. package/build/shared/interfaces/restAPI/resources/flow/v2.0/settings/ILocaleSettings_2_0.js +16 -0
  252. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IDeleteYesNoIntentRest_2_0.js +3 -0
  253. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IReadYesNoIntentsRest_2_0.js +3 -0
  254. package/build/shared/interfaces/restAPI/resources/{flow/v2.0/intent → locales/v2.0/yesNoIntents}/ITrainYesNoIntentsRest_2_0.js +0 -0
  255. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IUpdateYesNoIntentRest_2_0.js +3 -0
  256. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IYesNoIntentItem_2_0.js +3 -0
  257. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IYesNoIntentMetaData_2_0.js +4 -0
  258. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/IYesNoIntents_2_0.js +8 -0
  259. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoIntents/index.js +3 -0
  260. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/ICreateYesNoSentenceRest_2_0.js +3 -0
  261. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IDeleteYesNoSentenceRest_2_0.js +3 -0
  262. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IIndexYesNoSentencesRest_2_0.js +3 -0
  263. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IReadYesNoSentenceRest_2_0.js +3 -0
  264. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/IUpdateYesNoSentenceRest_2_0.js +3 -0
  265. package/build/shared/interfaces/restAPI/resources/locales/v2.0/yesNoSentence/index.js +3 -0
  266. package/build/shared/interfaces/restAPI/resources/nluconnector/v2.0/TNLUConnectorType_2_0.js +2 -0
  267. package/build/shared/interfaces/restAPI/resources/project/v2.0/ICreateProjectRest_2_0.js +1 -0
  268. package/build/shared/interfaces/restAPI/resources/project/v2.0/ITrainAllProjectFlowsRest_2_0.js +3 -0
  269. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ITestTranslationSettingsRest_2_0.js +3 -0
  270. package/build/shared/interfaces/restAPI/resources/project/v2.0/settings/ITestTranslationSettings_2_0.js +3 -0
  271. package/build/shared/interfaces/security/IACL.js +1 -1
  272. package/build/shared/interfaces/security/IPermission.js +4 -0
  273. package/build/shared/interfaces/security/IRole.js +13 -1
  274. package/build/shared/interfaces/trainer/ITrainerRecord.js +1 -1
  275. package/build/shared/interfaces/user.js +1 -1
  276. package/package.json +40 -31
  277. package/types/index.d.ts +1734 -501
@@ -9,7 +9,7 @@ const createNodeDescriptor_1 = require("../../createNodeDescriptor");
9
9
  * Purpose:
10
10
  * Adds a value to the contact profile
11
11
  */
12
- exports.UPDATE_PROFILE = createNodeDescriptor_1.createNodeDescriptor({
12
+ exports.UPDATE_PROFILE = (0, createNodeDescriptor_1.createNodeDescriptor)({
13
13
  type: "updateProfile",
14
14
  defaultLabel: "Update Profile",
15
15
  summary: "Updates a Field in the Contact Profile",
@@ -35,7 +35,7 @@ exports.UPDATE_PROFILE = createNodeDescriptor_1.createNodeDescriptor({
35
35
  key: "key",
36
36
  type: "text"
37
37
  },
38
- tags: ["profile"],
38
+ tags: ["analytics", "profile"],
39
39
  function: async ({ cognigy, config }) => {
40
40
  const { key, value } = config;
41
41
  const { api } = cognigy;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET_APP_SESSION_PIN = void 0;
4
+ /* Custom modules */
5
+ const createNodeDescriptor_1 = require("../../createNodeDescriptor");
6
+ /**
7
+ * Node name: 'getAppSessionPin'
8
+ *
9
+ * Purpose:
10
+ * Retrieve a short-lived Cognigy App Session PIN.
11
+ */
12
+ exports.GET_APP_SESSION_PIN = (0, createNodeDescriptor_1.createNodeDescriptor)({
13
+ type: "getAppSessionPin",
14
+ defaultLabel: "Get App Session PIN",
15
+ summary: "Get a new App Session PIN.",
16
+ appearance: {
17
+ showIcon: false,
18
+ },
19
+ fields: [],
20
+ tags: ["basic", "apps"],
21
+ tokens: [
22
+ {
23
+ type: "input",
24
+ label: "App Session PIN",
25
+ script: "input.appSessionPin || ''",
26
+ },
27
+ {
28
+ type: "input",
29
+ label: "App PIN Page URL",
30
+ script: `
31
+ (() => {
32
+ if (!input.shellPageBaseURL) return '';
33
+ const overrides = input.shellPageOverrides ? \`?overrides=\${encodeURIComponent(JSON.stringify(input.shellPageOverrides))}\` : '';
34
+ return [input.shellPageBaseURL, overrides].join('');
35
+ })()`
36
+ .split("\n")
37
+ .join(" "),
38
+ },
39
+ ],
40
+ function: async ({ cognigy }) => {
41
+ const { api } = cognigy;
42
+ const appSessionPin = await api.getAppSessionPin();
43
+ api.addToInput("appSessionPin", appSessionPin);
44
+ },
45
+ });
46
+ //# sourceMappingURL=getAppSessionPin.js.map
@@ -1,8 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SET_APP_STATE = exports.INIT_APP_SESSION = void 0;
3
+ exports.SET_ADAPTIVE_CARD_APP_STATE = exports.SET_HTML_APP_STATE = exports.GET_APP_SESSION_PIN = exports.SET_APP_STATE = exports.INIT_APP_SESSION = void 0;
4
4
  var initAppSession_1 = require("./initAppSession");
5
5
  Object.defineProperty(exports, "INIT_APP_SESSION", { enumerable: true, get: function () { return initAppSession_1.INIT_APP_SESSION; } });
6
6
  var setAppState_1 = require("./setAppState");
7
7
  Object.defineProperty(exports, "SET_APP_STATE", { enumerable: true, get: function () { return setAppState_1.SET_APP_STATE; } });
8
+ var getAppSessionPin_1 = require("./getAppSessionPin");
9
+ Object.defineProperty(exports, "GET_APP_SESSION_PIN", { enumerable: true, get: function () { return getAppSessionPin_1.GET_APP_SESSION_PIN; } });
10
+ var setHtmlAppState_1 = require("./setHtmlAppState");
11
+ Object.defineProperty(exports, "SET_HTML_APP_STATE", { enumerable: true, get: function () { return setHtmlAppState_1.SET_HTML_APP_STATE; } });
12
+ var setAdaptiveCardAppState_1 = require("./setAdaptiveCardAppState");
13
+ Object.defineProperty(exports, "SET_ADAPTIVE_CARD_APP_STATE", { enumerable: true, get: function () { return setAdaptiveCardAppState_1.SET_ADAPTIVE_CARD_APP_STATE; } });
8
14
  //# sourceMappingURL=index.js.map
@@ -9,25 +9,480 @@ const createNodeDescriptor_1 = require("../../createNodeDescriptor");
9
9
  * Purpose:
10
10
  * Initializes a new Cognigy App Session.
11
11
  */
12
- exports.INIT_APP_SESSION = createNodeDescriptor_1.createNodeDescriptor({
12
+ exports.INIT_APP_SESSION = (0, createNodeDescriptor_1.createNodeDescriptor)({
13
13
  type: "initAppSession",
14
14
  defaultLabel: "Init App Session",
15
- summary: 'Initializes a new App Session.',
15
+ summary: "Initializes a new App Session.",
16
16
  appearance: {
17
- showIcon: false
17
+ showIcon: false,
18
18
  },
19
- fields: [],
20
- preview: {
21
- key: "key",
22
- type: "text",
23
- },
24
- tags: ["basic"],
25
- function: async ({ cognigy }) => {
19
+ fields: [
20
+ // Style Customization
21
+ {
22
+ type: "cognigyText",
23
+ key: "backgroundColor",
24
+ label: "Background Color",
25
+ description: "This color will be displayed in the background of all Shell Page Screens. Supports CSS background-color values (e.g. hex, hsl+a, rgb+a)",
26
+ },
27
+ {
28
+ type: "cognigyText",
29
+ key: "textColor",
30
+ label: "Text Color",
31
+ description: "This color will be used for textual content on all Shell Page Screens. Supports CSS color values (e.g. hex, hsl+a, rgb+a). Make sure to have a high contrast to the background color!",
32
+ },
33
+ {
34
+ type: "select",
35
+ key: "logo",
36
+ label: "Logo",
37
+ description: "Decides whether the default logo, no logo or a custom logo should be used on the Shell Page Screens.",
38
+ params: {
39
+ options: [
40
+ {
41
+ label: "Show Default Logo",
42
+ value: "default",
43
+ },
44
+ {
45
+ label: "Don't show a Logo",
46
+ value: "none",
47
+ },
48
+ {
49
+ label: "Show custom Logo",
50
+ value: "custom",
51
+ },
52
+ ],
53
+ },
54
+ defaultValue: "default",
55
+ },
56
+ {
57
+ type: "cognigyText",
58
+ key: "logoUrl",
59
+ label: "Custom Logo URL",
60
+ description: "A valid image URL for the custom logo. Make sure to choose a logo that is distinguishable from the background color, especially when using transparency in the logo!",
61
+ condition: {
62
+ key: "logo",
63
+ value: "custom",
64
+ },
65
+ },
66
+ // PIN Screen
67
+ {
68
+ type: "cognigyText",
69
+ key: "pinEnterPinText",
70
+ label: "'Enter PIN' Text",
71
+ description: "This text asks the user to enter the App Session PIN.",
72
+ },
73
+ {
74
+ type: "cognigyText",
75
+ key: "pinIncorrectText",
76
+ label: "'Pin Incorrect' Text",
77
+ description: "This text tells the user that the entered PIN was incorrect.",
78
+ },
79
+ {
80
+ type: "cognigyText",
81
+ key: "pinUnavailableText",
82
+ label: "'Unavailable' Text",
83
+ description: "This text tells the user that the application is not available right now.",
84
+ },
85
+ // App Pages
86
+ {
87
+ type: "description",
88
+ key: "appSectionDescription",
89
+ label: " ",
90
+ params: {
91
+ text: "This section is used to customize content related to the 'App Screen' sections (Active App + App Overrides).",
92
+ },
93
+ },
94
+ {
95
+ type: "cognigyText",
96
+ key: "appLoadingText",
97
+ label: "'Loading' Text",
98
+ description: "This text is shown on the 'Loading Screen' when an App Page is launched.",
99
+ },
100
+ {
101
+ type: "cognigyText",
102
+ key: "appLaunchErrorText",
103
+ label: "'Launch Error' Text",
104
+ description: "This text is shown when an App Page fails to load for any reason.",
105
+ },
106
+ // Intermediate Screen
107
+ {
108
+ type: "description",
109
+ key: "intermediateScreenDescription",
110
+ label: " ",
111
+ params: {
112
+ text: "This section is used to customize the 'intermediate screen', which is shown on the apps website while no app is active.",
113
+ },
114
+ },
115
+ {
116
+ type: "select",
117
+ key: "intermediateScreenCustomizationType",
118
+ label: "Customization Type",
119
+ params: {
120
+ options: [
121
+ {
122
+ label: "No customization",
123
+ value: "none",
124
+ },
125
+ {
126
+ label: "Customized Texts",
127
+ value: "override",
128
+ },
129
+ {
130
+ label: "Replace with App",
131
+ value: "app",
132
+ },
133
+ ],
134
+ },
135
+ defaultValue: "none",
136
+ },
137
+ // Intermediate Screen - Override
138
+ {
139
+ type: "cognigyText",
140
+ key: "intermediateScreenOverrideText",
141
+ label: "Text Override",
142
+ description: "Customizes the text that is shown on the 'intermediate' screen",
143
+ defaultValue: "Nothing to do...",
144
+ condition: {
145
+ key: "intermediateScreenCustomizationType",
146
+ value: "override",
147
+ },
148
+ },
149
+ // Intermediate Screen - Custom App
150
+ {
151
+ type: "cognigyText",
152
+ key: "intermediateScreenAppTemplateId",
153
+ label: "App Template",
154
+ description: "Select which App Template should be used to replace the intermediate screen",
155
+ defaultValue: "",
156
+ condition: {
157
+ key: "intermediateScreenCustomizationType",
158
+ value: "app",
159
+ },
160
+ params: {
161
+ required: true,
162
+ },
163
+ },
164
+ {
165
+ type: "json",
166
+ key: "intermediateScreenAppTemplateData",
167
+ label: "App Template Data",
168
+ description: "Select which data should be provided to the App Template which replaces the intermediate screen",
169
+ defaultValue: "{}",
170
+ condition: {
171
+ key: "intermediateScreenCustomizationType",
172
+ value: "app",
173
+ },
174
+ },
175
+ // Connection Screen
176
+ {
177
+ type: "description",
178
+ key: "connectionScreenDescription",
179
+ label: " ",
180
+ params: {
181
+ text: "This section is used to customize the 'connection screen', which is shown on the apps website while the realtime connection to the backend is (re)-established.",
182
+ },
183
+ },
184
+ {
185
+ type: "select",
186
+ key: "connectionScreenCustomizationType",
187
+ label: "Customization Type",
188
+ params: {
189
+ options: [
190
+ {
191
+ label: "No customization",
192
+ value: "none",
193
+ },
194
+ {
195
+ label: "Customized Texts",
196
+ value: "override",
197
+ },
198
+ {
199
+ label: "Replace with App",
200
+ value: "app",
201
+ },
202
+ ],
203
+ },
204
+ defaultValue: "none",
205
+ },
206
+ // Connection Screen - Override
207
+ {
208
+ type: "cognigyText",
209
+ key: "connectionScreenOverrideConnectingText",
210
+ label: "Connecting Text Override",
211
+ description: "This text is shown while a connection to the backend is being established.",
212
+ defaultValue: "Connecting...",
213
+ condition: {
214
+ key: "connectionScreenCustomizationType",
215
+ value: "override",
216
+ },
217
+ },
218
+ {
219
+ type: "cognigyText",
220
+ key: "connectionScreenOverrideInvalidText",
221
+ label: "'Invalid' Error Message",
222
+ description: "This Error message is shown if the token is invalid (e.g. the link was opened after the session expired).",
223
+ defaultValue: "This session does not exist or is no longer active.",
224
+ condition: {
225
+ key: "connectionScreenCustomizationType",
226
+ value: "override",
227
+ },
228
+ },
229
+ {
230
+ type: "cognigyText",
231
+ key: "connectionScreenOverrideUnavailableText",
232
+ label: "'Unavailable' Error Message",
233
+ description: "This Error message is shown when the backend turns out to be unreachable.",
234
+ defaultValue: "The application is not available right now.",
235
+ condition: {
236
+ key: "connectionScreenCustomizationType",
237
+ value: "override",
238
+ },
239
+ },
240
+ // Connection Screen - Custom App
241
+ {
242
+ type: "cognigyText",
243
+ key: "connectionScreenAppTemplateId",
244
+ label: "App Template",
245
+ description: "Select which App Template should be used to replace the connection screen",
246
+ defaultValue: "",
247
+ condition: {
248
+ key: "connectionScreenCustomizationType",
249
+ value: "app",
250
+ },
251
+ params: {
252
+ required: true,
253
+ },
254
+ },
255
+ {
256
+ type: "json",
257
+ key: "connectionScreenAppTemplateData",
258
+ label: "App Template Data",
259
+ description: "Select which data should be provided to the App Template which replaces the connection screen",
260
+ defaultValue: "{}",
261
+ condition: {
262
+ key: "connectionScreenCustomizationType",
263
+ value: "app",
264
+ },
265
+ },
266
+ // OTHER
267
+ {
268
+ type: "cognigyText",
269
+ label: "App Shell Page Base URL",
270
+ description: "This field exists during development until this value is automatically assigned",
271
+ defaultValue: "http://static.test/",
272
+ key: "shellPageBaseURL",
273
+ },
274
+ ],
275
+ sections: [
276
+ {
277
+ label: "Style Customization",
278
+ key: "styleSection",
279
+ fields: [
280
+ "backgroundColor",
281
+ "textColor",
282
+ "errorTextColor",
283
+ "logo",
284
+ "logoUrl",
285
+ ],
286
+ defaultCollapsed: false,
287
+ },
288
+ {
289
+ label: "PIN Screen",
290
+ key: "pinScreenSection",
291
+ fields: ["pinEnterPinText", "pinIncorrectText", "pinUnavailableText"],
292
+ defaultCollapsed: false,
293
+ },
294
+ {
295
+ label: "App Screens",
296
+ key: "appScreensSection",
297
+ fields: ["appLoadingText", "appLaunchErrorText"],
298
+ defaultCollapsed: false,
299
+ },
300
+ {
301
+ label: "Intermediate Screen",
302
+ key: "intermediateScreenSection",
303
+ fields: [
304
+ "intermediateScreenDescription",
305
+ "intermediateScreenCustomizationType",
306
+ "intermediateScreenOverrideText",
307
+ "intermediateScreenAppTemplateId",
308
+ "intermediateScreenAppTemplateData",
309
+ ],
310
+ defaultCollapsed: false,
311
+ },
312
+ {
313
+ label: "Connection Screen",
314
+ key: "connectionScreenSection",
315
+ fields: [
316
+ "connectionScreenDescription",
317
+ "connectionScreenCustomizationType",
318
+ "connectionScreenOverrideConnectingText",
319
+ "connectionScreenOverrideInvalidText",
320
+ "connectionScreenOverrideUnavailableText",
321
+ "connectionScreenAppTemplateId",
322
+ "connectionScreenAppTemplateData",
323
+ ],
324
+ defaultCollapsed: false,
325
+ },
326
+ ],
327
+ form: [
328
+ {
329
+ type: "section",
330
+ key: "styleSection",
331
+ },
332
+ {
333
+ type: "section",
334
+ key: "pinScreenSection",
335
+ },
336
+ {
337
+ type: "section",
338
+ key: "appScreensSection",
339
+ },
340
+ {
341
+ type: "section",
342
+ key: "intermediateScreenSection",
343
+ },
344
+ {
345
+ type: "section",
346
+ key: "connectionScreenSection",
347
+ },
348
+ {
349
+ type: "field",
350
+ key: "shellPageBaseURL",
351
+ },
352
+ ],
353
+ tags: ["basic", "apps"],
354
+ tokens: [
355
+ {
356
+ type: "input",
357
+ label: "App Session Token",
358
+ script: "input.appSessionToken || ''",
359
+ },
360
+ {
361
+ type: "input",
362
+ label: "App Session URL",
363
+ script: `
364
+ (() => {
365
+ if (!input.shellPageBaseURL) return '';
366
+ if (!input.appSessionToken) return '';
367
+ const overrides = input.shellPageOverrides ? \`&overrides=\${encodeURIComponent(JSON.stringify(input.shellPageOverrides))}\` : '';
368
+ return [input.shellPageBaseURL, '?token=', input.appSessionToken, overrides].join('');
369
+ })()`
370
+ .split("\n")
371
+ .join(" "),
372
+ },
373
+ ],
374
+ function: async ({ cognigy, config }) => {
26
375
  const { api, input } = cognigy;
376
+ const {
377
+ // general
378
+ shellPageBaseURL,
379
+ // styling
380
+ backgroundColor, textColor, errorTextColor, logo, logoUrl,
381
+ // pin screen
382
+ pinEnterPinText, pinIncorrectText, pinUnavailableText,
383
+ // apps screen
384
+ appLoadingText, appLaunchErrorText,
385
+ // intermediate screen
386
+ intermediateScreenCustomizationType, intermediateScreenOverrideText, intermediateScreenAppTemplateId, intermediateScreenAppTemplateData,
387
+ // status screen
388
+ connectionScreenCustomizationType, connectionScreenOverrideConnectingText, connectionScreenOverrideInvalidText, connectionScreenOverrideUnavailableText, connectionScreenAppTemplateId, connectionScreenAppTemplateData, } = config;
389
+ const style = (() => {
390
+ const ret = {};
391
+ if (backgroundColor !== "" && backgroundColor !== undefined) {
392
+ ret.backgroundColor = backgroundColor;
393
+ }
394
+ if (textColor !== "" && textColor !== undefined) {
395
+ ret.textColor = textColor;
396
+ }
397
+ if (errorTextColor !== "" && errorTextColor !== undefined) {
398
+ ret.errorTextColor = errorTextColor;
399
+ }
400
+ switch (logo) {
401
+ case "none":
402
+ ret.logoUrl = null;
403
+ break;
404
+ case "custom":
405
+ if (logoUrl !== "" && logoUrl !== undefined) {
406
+ ret.logoUrl = logoUrl;
407
+ }
408
+ break;
409
+ default:
410
+ case "default":
411
+ break;
412
+ }
413
+ return ret;
414
+ })();
415
+ const pinScreenCustomization = {
416
+ enterPinText: pinEnterPinText,
417
+ incorrectText: pinIncorrectText,
418
+ unavailableText: pinUnavailableText,
419
+ };
420
+ const appScreenCustomization = {
421
+ loadingText: appLoadingText,
422
+ launchErrorText: appLaunchErrorText,
423
+ };
424
+ const intermediateScreenCustomization = (() => {
425
+ switch (intermediateScreenCustomizationType) {
426
+ case "override": {
427
+ return {
428
+ type: "regular",
429
+ idleText: intermediateScreenOverrideText || "",
430
+ // TODO successText
431
+ };
432
+ }
433
+ case "app": {
434
+ return {
435
+ type: "app",
436
+ appTemplateUrl: intermediateScreenAppTemplateId,
437
+ appTemplateData: intermediateScreenAppTemplateData,
438
+ };
439
+ }
440
+ case "none":
441
+ default: {
442
+ return undefined;
443
+ }
444
+ }
445
+ })();
446
+ const statusScreenCustomization = (() => {
447
+ switch (connectionScreenCustomizationType) {
448
+ case "override": {
449
+ return {
450
+ type: "regular",
451
+ connectingText: connectionScreenOverrideConnectingText || "",
452
+ invalidTokenText: connectionScreenOverrideInvalidText || "",
453
+ unavailableText: connectionScreenOverrideUnavailableText || "",
454
+ // TODO connectionErrorText
455
+ };
456
+ }
457
+ case "app": {
458
+ return {
459
+ type: "app",
460
+ appTemplateUrl: connectionScreenAppTemplateId,
461
+ appTemplateData: connectionScreenAppTemplateData,
462
+ };
463
+ }
464
+ case "none":
465
+ default: {
466
+ return undefined;
467
+ }
468
+ }
469
+ })();
470
+ const customization = (() => {
471
+ // TODO filter empty values
472
+ return {
473
+ style: style,
474
+ intermediateScreen: intermediateScreenCustomization,
475
+ statusScreen: statusScreenCustomization,
476
+ pinScreen: pinScreenCustomization,
477
+ appScreen: appScreenCustomization,
478
+ };
479
+ })();
27
480
  if (!input.appSessionToken) {
28
- const appSessionToken = await api.initAppSession();
481
+ const appSessionToken = await api.initAppSession({});
29
482
  api.addToInput("appSessionToken", appSessionToken);
30
483
  }
31
- }
484
+ api.addToInput("shellPageBaseURL", shellPageBaseURL);
485
+ api.addToInput("shellPageOverrides", customization || null);
486
+ },
32
487
  });
33
488
  //# sourceMappingURL=initAppSession.js.map
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SET_ADAPTIVE_CARD_APP_STATE = void 0;
4
+ /* Custom modules */
5
+ const createNodeDescriptor_1 = require("../../createNodeDescriptor");
6
+ /**
7
+ * Node name: 'setAdaptiveCardAppState'
8
+ *
9
+ * Purpose:
10
+ * Set the state of an AdaptiveCard App
11
+ */
12
+ exports.SET_ADAPTIVE_CARD_APP_STATE = (0, createNodeDescriptor_1.createNodeDescriptor)({
13
+ type: "setAdaptiveCardAppState",
14
+ defaultLabel: "Set AdaptiveCard App State",
15
+ summary: "Shows an AdaptiveCard via an App",
16
+ appearance: {
17
+ showIcon: false,
18
+ },
19
+ fields: [
20
+ {
21
+ key: "card",
22
+ type: "json",
23
+ label: "AdaptiveCard Definition",
24
+ description: "Insert a definition for an AdaptiveCard here. See https://adaptivecards.io/designer for help",
25
+ defaultValue: {},
26
+ },
27
+ {
28
+ key: "primaryColor",
29
+ type: "cognigyText",
30
+ label: "Primary Color Override",
31
+ description: "Alters the color of the background and interaction elements. Has to be a CSS-compatible color",
32
+ defaultValue: "",
33
+ },
34
+ {
35
+ key: "primaryContrastColor",
36
+ type: "cognigyText",
37
+ label: "Primary Contrast Color Override",
38
+ description: "Alters the color of text that is rendered on the 'Primary Color' (e.g. button labels). Has to be a CSS-compatible color",
39
+ defaultValue: "",
40
+ },
41
+ // OTHER
42
+ {
43
+ type: "cognigyText",
44
+ label: "AdaptiveCard Template URL",
45
+ description: "This field exists during development until this value is automatically assigned",
46
+ defaultValue: "http://static.test/apps/adaptivecards/",
47
+ key: "appTemplateURL",
48
+ },
49
+ ],
50
+ sections: [
51
+ {
52
+ key: "overrideSection",
53
+ defaultCollapsed: true,
54
+ fields: ["primaryColor", "primaryContrastColor"],
55
+ label: "Style Overrides",
56
+ },
57
+ ],
58
+ form: [
59
+ { type: "field", key: "card" },
60
+ { type: "section", key: "overrideSection" },
61
+ { type: "field", key: "appTemplateURL" },
62
+ ],
63
+ tags: ["basic", "apps"],
64
+ function: async ({ cognigy, config }) => {
65
+ const { api } = cognigy;
66
+ const { card, primaryColor, primaryContrastColor, appTemplateURL: _appTemplateURL, } = config;
67
+ const appTemplateURL = (() => {
68
+ if (!!_appTemplateURL)
69
+ return _appTemplateURL;
70
+ return "http://static.test/apps/adaptivecards/";
71
+ })();
72
+ api.setAppState(appTemplateURL, {
73
+ card,
74
+ primaryColor: primaryColor || undefined,
75
+ primaryContrastColor: primaryContrastColor || undefined,
76
+ });
77
+ },
78
+ });
79
+ //# sourceMappingURL=setAdaptiveCardAppState.js.map