@cloudcommerce/app-discounts 0.0.41 → 0.0.44

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,6 +1,5 @@
1
- @cloudcommerce/app-discounts:build: cache hit, replaying output 163884b8a95e2c55
1
+ @cloudcommerce/app-discounts:build: cache hit, replaying output 1b33cfa7d9efea6f
2
2
  @cloudcommerce/app-discounts:build: 
3
- @cloudcommerce/app-discounts:build: > @cloudcommerce/app-discounts@0.0.40 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/discounts
4
- @cloudcommerce/app-discounts:build: > echo '@ecomplus/app-discounts'
3
+ @cloudcommerce/app-discounts:build: > @cloudcommerce/app-discounts@0.0.43 build /home/leo/code/ecomplus/cloud-commerce/packages/apps/discounts
4
+ @cloudcommerce/app-discounts:build: > sh ../../../scripts/build-lib.sh
5
5
  @cloudcommerce/app-discounts:build: 
6
- @cloudcommerce/app-discounts:build: @ecomplus/app-discounts
package/lib/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { AppEventsTopic } from '@cloudcommerce/types';
2
+ export declare const events: AppEventsTopic[];
3
+ export declare const applyDiscount: () => Promise<{}>;
package/lib/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  export const events = [];
2
2
 
3
- export const modules = {};
3
+ export const applyDiscount = async () => {
4
+ return {};
5
+ };
4
6
  // # sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAiB,EAAE,CAAC;AAEvC,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,MAAM,GAAqB,EAAE,CAAC;AAE3C,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,IAAI,EAAE;IACtC,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-discounts",
3
3
  "type": "module",
4
- "version": "0.0.41",
4
+ "version": "0.0.44",
5
5
  "description": "E-Com Plus Cloud Commerce app for complex discount rules",
6
- "main": "functions/dist/index.js",
6
+ "main": "lib/index.js",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/ecomplus/cloud-commerce.git",
@@ -16,12 +16,12 @@
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.41"
19
+ "@cloudcommerce/api": "0.0.44"
20
20
  },
21
21
  "devDependencies": {
22
- "@cloudcommerce/types": "0.0.41"
22
+ "@cloudcommerce/types": "0.0.44"
23
23
  },
24
24
  "scripts": {
25
- "build": "echo '@ecomplus/app-discounts'"
25
+ "build": "sh ../../../scripts/build-lib.sh"
26
26
  }
27
27
  }
package/src/index.ts CHANGED
@@ -2,6 +2,6 @@ import type { AppEventsTopic } from '@cloudcommerce/types';
2
2
 
3
3
  export const events: AppEventsTopic[] = [];
4
4
 
5
- export const applyDiscount = () => {
5
+ export const applyDiscount = async () => {
6
6
  return {};
7
7
  };
package/tsconfig.json CHANGED
@@ -1,3 +1,6 @@
1
1
  {
2
- "extends": "../../../tsconfig.json"
2
+ "extends": "../../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true
5
+ }
3
6
  }