diff --git a/angular.json b/angular.json index a26000e3c1..9458b76c2f 100644 --- a/angular.json +++ b/angular.json @@ -1056,6 +1056,32 @@ }, "tags": [] }, + "model-cloud-scheduler": { + "projectType": "library", + "root": "libs/model/cloud-scheduler", + "sourceRoot": "libs/model/cloud-scheduler/src", + "prefix": "app", + "targets": { + "test": { + "executor": "@nrwl/jest:jest", + "outputs": ["coverage/libs/model/cloud-scheduler"], + "options": { + "jestConfig": "libs/model/cloud-scheduler/jest.config.ts", + "passWithNoTests": true + } + }, + "lint": { + "executor": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": [ + "libs/model/cloud-scheduler/**/*.ts", + "libs/model/cloud-scheduler/**/*.html" + ] + } + } + }, + "tags": [] + }, "model-convs-mgr-bot-modules": { "projectType": "library", "root": "libs/model/convs-mgr/bot-modules", diff --git a/apps/conv-learning-manager/src/assets/i18n/en.json b/apps/conv-learning-manager/src/assets/i18n/en.json index 7d79a3114c..09408fed5c 100644 --- a/apps/conv-learning-manager/src/assets/i18n/en.json +++ b/apps/conv-learning-manager/src/assets/i18n/en.json @@ -301,8 +301,9 @@ "MULTIMEDIA-BLOCKS": "Multimedia blocks", "DOCUMENT-BLOCKS": "Document blocks", "IMAGE-BLOCKS": "Images blocks", - "QUESTION-BLOCKS": "Question Blocks", - "MESSAGE-BLOCK": "Message Block", + "QUESTION-BLOCKS": "Questions", + "MESSAGE-BLOCK": "Messages", + "OPERATION-BLOCKS": "Operations", "CMI5-BLOCK" :"CMI5 Block", "ADMIN_SETTINGS": "Settings" } diff --git a/apps/conv-lm-backend/src/app/bot/whatsapp-channel/whatsapp-upload-media-cron.function.ts b/apps/conv-lm-backend/src/app/bot/whatsapp-channel/whatsapp-upload-media-cron.function.ts new file mode 100644 index 0000000000..2e5a86d8c5 --- /dev/null +++ b/apps/conv-lm-backend/src/app/bot/whatsapp-channel/whatsapp-upload-media-cron.function.ts @@ -0,0 +1,24 @@ +import { RestRegistrar } from "@ngfi/functions"; + +import { WhatsappUploadMediaCronHandler } from "@app/functions/bot-engine/whatsapp"; + +import { ConvLearnFunction } from "../../../conv-learn-func.class"; + + +const handler = new WhatsappUploadMediaCronHandler(); + +/** + * @Description : When an end user sends a message to the chatbot, this function is triggered, + * handles the message and potentially responds to it + * + * It is specifically for Whatsapp @see {PlatformType}, and subscribes to the 'messages' webhook on + * the Meta Developers platform + * + * @see https://developers.facebook.com/docs/whatsapp/cloud-api/guides/set-up-webhooks + * + */ +export const channelWhatsappUploadMediaCron = new ConvLearnFunction('channelWhatsappUploadMediaCron', + new RestRegistrar(), + [], + handler) + .build(); \ No newline at end of file diff --git a/apps/conv-lm-backend/src/main.ts b/apps/conv-lm-backend/src/main.ts index c12cd7caf2..f8e9fe64d3 100644 --- a/apps/conv-lm-backend/src/main.ts +++ b/apps/conv-lm-backend/src/main.ts @@ -10,6 +10,7 @@ export * from './app/bot/whatsapp-channel/whatsapp-upload-media.function'; export * from './app/bot/whatsapp-channel/whatsapp-templates-api.function'; export * from './app/bot/whatsapp-channel/whatsapp-get-templates.function'; export * from './app/bot/whatsapp-channel/whatsapp-upload-media.function'; +export * from './app/bot/whatsapp-channel/whatsapp-upload-media-cron.function'; export * from './app/bot/main/send-outgoing-message.function'; export * from './app/bot/main/talk-to-human.function'; diff --git a/libs/elements/layout/ital-bread-crumb/src/index.ts b/libs/elements/layout/ital-bread-crumb/src/index.ts index b3fc3dfac5..14f13e9f3e 100644 --- a/libs/elements/layout/ital-bread-crumb/src/index.ts +++ b/libs/elements/layout/ital-bread-crumb/src/index.ts @@ -1,4 +1,4 @@ -export * from './ital-bread-crumb.module'; +export * from './lib/ital-bread-crumb.module'; export * from './lib/services/bread-crumb.service'; //resolvers diff --git a/libs/elements/layout/ital-bread-crumb/src/ital-bread-crumb.module.ts b/libs/elements/layout/ital-bread-crumb/src/ital-bread-crumb.module.ts deleted file mode 100644 index 2e75aca33e..0000000000 --- a/libs/elements/layout/ital-bread-crumb/src/ital-bread-crumb.module.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { RouterModule } from '@angular/router'; - -import { ItalBreadcrumbComponent } from './lib/components/ital-bread-crumb/ital-breadcrumb.component'; - -@NgModule({ - declarations: [ItalBreadcrumbComponent], - imports: [CommonModule, RouterModule], - exports: [ItalBreadcrumbComponent], -}) -export class ItalBreadCrumbModule {} diff --git a/libs/elements/layout/ital-bread-crumb/src/lib/ital-bread-crumb.module.ts b/libs/elements/layout/ital-bread-crumb/src/lib/ital-bread-crumb.module.ts index bd794c406f..bcbd665316 100644 --- a/libs/elements/layout/ital-bread-crumb/src/lib/ital-bread-crumb.module.ts +++ b/libs/elements/layout/ital-bread-crumb/src/lib/ital-bread-crumb.module.ts @@ -1,7 +1,11 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; +import { RouterModule } from '@angular/router'; +import { ItalBreadcrumbComponent } from './components/ital-bread-crumb/ital-breadcrumb.component'; @NgModule({ - imports: [CommonModule], + declarations: [ItalBreadcrumbComponent], + imports: [CommonModule, RouterModule], + exports: [ItalBreadcrumbComponent], }) export class ItalBreadCrumbModule {} diff --git a/libs/features/convs-mgr/stories/blocks/library/anchor-block/src/lib/components/end-anchor/end-anchor.component.scss b/libs/features/convs-mgr/stories/blocks/library/anchor-block/src/lib/components/end-anchor/end-anchor.component.scss index 27955c0f8e..cb01992981 100644 --- a/libs/features/convs-mgr/stories/blocks/library/anchor-block/src/lib/components/end-anchor/end-anchor.component.scss +++ b/libs/features/convs-mgr/stories/blocks/library/anchor-block/src/lib/components/end-anchor/end-anchor.component.scss @@ -4,6 +4,7 @@ height: 1.5rem; width: 6.5rem; padding: 0.4rem; + padding-left: 1rem; background-color: var(--convs-mgr-button-color); color: white; text-align: center; @@ -11,7 +12,7 @@ z-index: 10; font-size: small; display: flex; - justify-content: space-evenly; + justify-content: space-between; align-items: center; flex-direction: row; } diff --git a/libs/features/convs-mgr/stories/editor/src/lib/components/blocks-library/blocks-library.component.html b/libs/features/convs-mgr/stories/editor/src/lib/components/blocks-library/blocks-library.component.html index 4194b0fa69..fd0ee5c23c 100644 --- a/libs/features/convs-mgr/stories/editor/src/lib/components/blocks-library/blocks-library.component.html +++ b/libs/features/convs-mgr/stories/editor/src/lib/components/blocks-library/blocks-library.component.html @@ -1,11 +1,25 @@ -