@cloudcommerce/app-discounts 0.0.62 → 0.0.65

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.
@@ -1,5 +1,5 @@
1
- @cloudcommerce/app-discounts:build: cache hit, replaying output 77a1b554d5b61818
2
- @cloudcommerce/app-discounts:build: 
3
- @cloudcommerce/app-discounts:build: > @cloudcommerce/app-discounts@0.0.61 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/discounts
4
- @cloudcommerce/app-discounts:build: > sh ../../../scripts/build-lib.sh
5
- @cloudcommerce/app-discounts:build: 
1
+ @cloudcommerce/app-discounts:build: cache hit, replaying output d9a86730799385c2
2
+ @cloudcommerce/app-discounts:build: 
3
+ @cloudcommerce/app-discounts:build: > @cloudcommerce/app-discounts@0.0.64 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/discounts
4
+ @cloudcommerce/app-discounts:build: > sh ../../../scripts/build-lib.sh
5
+ @cloudcommerce/app-discounts:build: 
package/lib/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './discounts';
1
+ export * from './discounts.js';
2
2
  // # sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-discounts",
3
3
  "type": "module",
4
- "version": "0.0.62",
4
+ "version": "0.0.65",
5
5
  "description": "E-Com Plus Cloud Commerce app for complex discount rules",
6
6
  "main": "lib/discounts.js",
7
7
  "repository": {
@@ -16,15 +16,11 @@
16
16
  },
17
17
  "homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/apps/discounts#readme",
18
18
  "dependencies": {
19
- "@cloudcommerce/api": "0.0.62",
20
- "@cloudcommerce/firebase": "0.0.62",
21
- "@ecomplus/utils": "^1.4.1",
22
- "firebase-admin": "^11.0.1",
23
- "firebase-functions": "^3.22.0"
19
+ "@cloudcommerce/api": "0.0.65",
20
+ "@ecomplus/utils": "^1.4.1"
24
21
  },
25
22
  "devDependencies": {
26
- "@cloudcommerce/types": "0.0.62",
27
- "@firebase/app-types": "^0.7.0"
23
+ "@cloudcommerce/types": "0.0.65"
28
24
  },
29
25
  "scripts": {
30
26
  "build": "sh ../../../scripts/build-lib.sh"
@@ -1,14 +0,0 @@
1
- declare const _default: () => {
2
- app_id: number;
3
- title: string;
4
- slug: string;
5
- type: string;
6
- state: string;
7
- modules: {
8
- apply_discount: {
9
- enabled: boolean;
10
- };
11
- };
12
- admin_settings: {};
13
- };
14
- export default _default;
@@ -1,19 +0,0 @@
1
- import config from '@cloudcommerce/firebase/lib/config';
2
-
3
- export default () => {
4
- const { lang, apps: { discounts: { appId } } } = config.get();
5
- return {
6
- app_id: appId,
7
- title: lang.startsWith('en') ? 'Campaigns and discounts' : 'Campanhas e descontos',
8
- slug: 'discounts',
9
- type: 'external',
10
- state: 'active',
11
- modules: {
12
- apply_discount: {
13
- enabled: true,
14
- },
15
- },
16
- admin_settings: {},
17
- };
18
- };
19
- // # sourceMappingURL=discounts.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"discounts.config.js","sourceRoot":"","sources":["../src/discounts.config.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oCAAoC,CAAC;AAExD,eAAe,GAAG,EAAE;IAClB,MAAM,EACJ,IAAI,EACJ,IAAI,EAAE,EACJ,SAAS,EAAE,EAAE,KAAK,EAAE,GACrB,GACF,GAAG,MAAM,CAAC,GAAG,EAAE,CAAC;IAEjB,OAAO;QACL,MAAM,EAAE,KAAK;QACb,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,uBAAuB;QAClF,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,UAAU;QAChB,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE;YACP,cAAc,EAAE;gBACd,OAAO,EAAE,IAAI;aACd;SACF;QACD,cAAc,EAAE,EACf;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,25 +0,0 @@
1
- import config from '@cloudcommerce/firebase/lib/config';
2
-
3
- export default () => {
4
- const {
5
- lang,
6
- apps: {
7
- discounts: { appId },
8
- },
9
- } = config.get();
10
-
11
- return {
12
- app_id: appId,
13
- title: lang.startsWith('en') ? 'Campaigns and discounts' : 'Campanhas e descontos',
14
- slug: 'discounts',
15
- type: 'external',
16
- state: 'active',
17
- modules: {
18
- apply_discount: {
19
- enabled: true,
20
- },
21
- },
22
- admin_settings: {
23
- },
24
- };
25
- };