@bprotsyk/aso-core 1.0.0 → 1.1.1

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.1",
4
+ "main": "lib/index.js",
5
+ "types": "lib/index.d.ts",
5
6
  "scripts": {
7
+ "publish": "tsc; 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,14 @@
17
19
  },
18
20
  "homepage": "https://bitbucket.org/bprtsk/aso-core#readme",
19
21
  "description": "",
20
- "files": ["lib/**/*"]
22
+ "files": [
23
+ "lib/**/*"
24
+ ],
25
+ "dependencies": {
26
+ "@types/module-alias": "^2.0.1",
27
+ "module-alias": "^2.2.2"
28
+ },
29
+ "devDependencies": {
30
+ "typescript": "^4.8.0-dev.20220623"
31
+ }
21
32
  }