diff --git a/.github/workflows/build-integrations-webapp-push-tag-shared.yaml b/.github/workflows/build-integrations-webapp-push-tag-shared.yaml index 920c0ba7..d0dbc41f 100644 --- a/.github/workflows/build-integrations-webapp-push-tag-shared.yaml +++ b/.github/workflows/build-integrations-webapp-push-tag-shared.yaml @@ -33,7 +33,7 @@ jobs: echo "COMMIT_SHA=$GITHUB_SHA" | tee -a "${GITHUB_ENV}" echo "IMAGE_TAG=${{ secrets.ECR }}/integrations:webapp-$TAG" | tee -a "${GITHUB_ENV}" echo "IMAGE_SOURCE_URL=https://github.com/weni-ai/weni-integrations-webapp" | tee -a "${GITHUB_ENV}" - echo "MANIFESTS_REPOSITORY=Ilhasoft/kubernetes-manifests-platform" | tee -a "${GITHUB_ENV}" + echo "MANIFESTS_REPOSITORY=weni-ai/kubernetes-manifests-platform" | tee -a "${GITHUB_ENV}" echo "MANIFESTS_APPLICATION=integrations-webapp" | tee -a "${GITHUB_ENV}" echo "MANIFESTS_PATCH_TARGET=deployment-webapp.json" | tee -a "${GITHUB_ENV}" diff --git a/package.json b/package.json index eb4d4249..c019bb59 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "dependencies": { "@sentry/integrations": "^6.13.2", "@sentry/vue": "^6.13.2", - "@weni/unnnic-system": "^1.16.51", + "@weni/unnnic-system": "^1.16.64", "axios": "0.21.1", "core-js": "^3.6.5", "global": "^4.4.0", diff --git a/src/api/appType/whatsapp_cloud/index.js b/src/api/appType/whatsapp_cloud/index.js index 384d3841..4d7b98d2 100644 --- a/src/api/appType/whatsapp_cloud/index.js +++ b/src/api/appType/whatsapp_cloud/index.js @@ -2,6 +2,8 @@ import qs from 'query-string'; import request from '@/api/request.js'; const resource = '/api/v1/apptypes/wpp-cloud/apps'; +const catalogsResource = '/api/v1/apptypes/wpp-cloud'; + export default { getDebugToken(params) { const queryString = qs.stringify(params); @@ -14,4 +16,26 @@ export default { configurePhoneNumber(data) { return request.$http.post(`${resource}/`, data); }, + getWhatsAppCloudCatalogs(appUuid, params) { + const queryString = qs.stringify(params); + return request.$http.get(`${catalogsResource}/${appUuid}/catalogs/?${queryString}`); + }, + fetchCatalogData(appUuid, catalogUuid) { + return request.$http.get(`${catalogsResource}/${appUuid}/catalogs/${catalogUuid}/`); + }, + disableWhatsAppCloudCatalogs(appUuid, catalogUuid) { + return request.$http.post(`${catalogsResource}/${appUuid}/catalogs/${catalogUuid}/disable/`); + }, + enableWhatsAppCloudCatalogs(appUuid, catalogUuid) { + return request.$http.post(`${catalogsResource}/${appUuid}/catalogs/${catalogUuid}/enable/`); + }, + toggleCartVisibility(appUuid, data) { + return request.$http.post(`${catalogsResource}/${appUuid}/toggle-cart-visibility/`, data); + }, + toggleCatalogVisibility(appUuid, data) { + return request.$http.post(`${catalogsResource}/${appUuid}/toggle-catalog-visibility/`, data); + }, + getCommerceSettings(appUuid) { + return request.$http.get(`${catalogsResource}/${appUuid}/commerce-settings/`); + }, }; diff --git a/src/assets/svgs/storefront.svg b/src/assets/svgs/storefront.svg new file mode 100644 index 00000000..0d4b8320 --- /dev/null +++ b/src/assets/svgs/storefront.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/src/components/AddModal.vue b/src/components/AddModal.vue index 6ba3b97d..35bd0ce5 100644 --- a/src/components/AddModal.vue +++ b/src/components/AddModal.vue @@ -13,7 +13,7 @@ {{ $t('general.Close') }} diff --git a/src/components/AppGrid.vue b/src/components/AppGrid.vue index b0561843..6aa475ab 100644 --- a/src/components/AppGrid.vue +++ b/src/components/AppGrid.vue @@ -40,7 +40,7 @@ class="app-grid__content__item__dropdown" slot="actions" > - + {{ $t('general.Cancel') }} diff --git a/src/components/OnboardModal.vue b/src/components/OnboardModal.vue index ffe6cdbf..ce89d9e5 100644 --- a/src/components/OnboardModal.vue +++ b/src/components/OnboardModal.vue @@ -25,7 +25,7 @@
- + {{ $t('general.Cancel') }} diff --git a/src/components/app/AppDetailsRecommended.vue b/src/components/app/AppDetailsRecommended.vue index 9a075f91..40b0b621 100644 --- a/src/components/app/AppDetailsRecommended.vue +++ b/src/components/app/AppDetailsRecommended.vue @@ -7,14 +7,14 @@