@bprotsyk/aso-core 1.0.0 → 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.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IOffer } from "@shared";
2
+ export interface ISection {
3
+ offers: IOffer[];
4
+ title: Object;
5
+ buttonText: Object;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { IOffer } from "shared/offer";
2
+ export interface IAsoCustomizedOffer {
3
+ offer: IOffer;
4
+ buttonText?: Object;
5
+ emojiIcon?: string;
6
+ emojiCaption?: string;
7
+ customUrl?: string;
8
+ hidden?: boolean;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IAsoCustomizedOffer } from "./aso-customized-offer";
2
+ import { IAsoSection } from "./aso-offer-section";
3
+ export interface IAsoOfferResponse {
4
+ sections: IAsoSection[];
5
+ customizedOffers: IAsoCustomizedOffer[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IOffer } from "shared/offer";
2
+ export interface IAsoSection {
3
+ offers: IOffer[];
4
+ title: Object;
5
+ buttonText: Object;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/index.d.ts CHANGED
@@ -1,10 +1,4 @@
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
- }
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
+ 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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,8 +1,10 @@
1
1
  {
2
2
  "name": "@bprotsyk/aso-core",
3
- "version": "1.0.0",
4
- "main": "index.js",
3
+ "version": "1.1.3",
4
+ "main": "lib/index.js",
5
+ "types": "lib/index.d.ts",
5
6
  "scripts": {
7
+ "publish": "tsc; npm version patch; npm publish; git add .; git commit -m \"Stub\"; git push origin master;",
6
8
  "build": "tsc",
7
9
  "test": "echo \"Error: no test specified\" && exit 1"
8
10
  },
@@ -17,5 +19,11 @@
17
19
  },
18
20
  "homepage": "https://bitbucket.org/bprtsk/aso-core#readme",
19
21
  "description": "",
20
- "files": ["lib/**/*"]
22
+ "dependencies": {
23
+ "@types/module-alias": "^2.0.1",
24
+ "module-alias": "^2.2.2"
25
+ },
26
+ "devDependencies": {
27
+ "typescript": "^4.8.0-dev.20220623"
28
+ }
21
29
  }
@@ -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
+ }