@bprotsyk/aso-core 1.1.1 → 1.1.3

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.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {
7
- "publish": "tsc; git add .; git commit -m \"Stub\"; git push origin master;",
7
+ "publish": "tsc; npm version patch; npm publish; git add .; git commit -m \"Stub\"; git push origin master;",
8
8
  "build": "tsc",
9
9
  "test": "echo \"Error: no test specified\" && exit 1"
10
10
  },
@@ -19,9 +19,6 @@
19
19
  },
20
20
  "homepage": "https://bitbucket.org/bprtsk/aso-core#readme",
21
21
  "description": "",
22
- "files": [
23
- "lib/**/*"
24
- ],
25
22
  "dependencies": {
26
23
  "@types/module-alias": "^2.0.1",
27
24
  "module-alias": "^2.2.2"
@@ -0,0 +1,10 @@
1
+ import { IOffer } from "shared/offer"
2
+
3
+ export interface IAsoCustomizedOffer {
4
+ offer: IOffer,
5
+ buttonText?: Object
6
+ emojiIcon?: string,
7
+ emojiCaption?: string,
8
+ customUrl?: string,
9
+ hidden?: boolean
10
+ }
@@ -0,0 +1,7 @@
1
+ import { IAsoCustomizedOffer } from "./aso-customized-offer";
2
+ import { IAsoSection } from "./aso-offer-section";
3
+
4
+ export interface IAsoOfferResponse {
5
+ sections: IAsoSection[],
6
+ customizedOffers: IAsoCustomizedOffer[],
7
+ }
@@ -0,0 +1,7 @@
1
+ import { IOffer } from "shared/offer"
2
+
3
+ export interface IAsoSection {
4
+ offers: IOffer[],
5
+ title: Object
6
+ buttonText: Object
7
+ }
package/src/index.ts ADDED
@@ -0,0 +1,5 @@
1
+ export { IAsoCustomizedOffer } from "aso/offer/aso-customized-offer"
2
+ export { IAsoOfferResponse } from "aso/offer/aso-offer-response"
3
+ export { IAsoSection } from "aso/offer/aso-offer-section"
4
+
5
+ export { IOffer } from "shared/offer"
@@ -0,0 +1,10 @@
1
+ export interface IOffer {
2
+ id: string;
3
+ name: string;
4
+ graphicFolder: string;
5
+ geo: string;
6
+ emojiIcon?: string;
7
+ emojiCaption?: string;
8
+ hidden?: boolean;
9
+ customUrl?: string;
10
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
4
+ "lib": [ "esnext"],
5
+ "module": "NodeNext",
6
+ "declaration": true,
7
+ "outDir": "./lib",
8
+ "baseUrl": "./src",
9
+ "rootDir": "src",
10
+ "strict": true,
11
+ "moduleResolution": "nodenext"
12
+ },
13
+
14
+ "include": ["src"],
15
+ "exclude": ["node_modules", "**/__tests__/*"]
16
+ }