@artisan-commerce/types 0.2.0 → 0.3.0
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/build/index.d.ts +2 -1
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/build/types/App.types.d.ts +8 -0
- package/build/types/App.types.js +1 -1
- package/build/types/App.types.js.map +1 -1
- package/build/types/http.types.d.ts +17 -0
- package/build/types/http.types.js +4 -0
- package/build/types/http.types.js.map +1 -0
- package/package.json +8 -3
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./types/
|
|
1
|
+
export * from "./types/app.types";
|
|
2
2
|
export * from "./types/account.types";
|
|
3
3
|
export * from "./types/category.types";
|
|
4
4
|
export * from "./types/channel.types";
|
|
@@ -9,3 +9,4 @@ export * from "./types/shippingCost.types";
|
|
|
9
9
|
export * from "./types/shoppingCart.types";
|
|
10
10
|
export * from "./types/store.types";
|
|
11
11
|
export * from "./types/vendor.types";
|
|
12
|
+
export * from "./types/http.types";
|
package/build/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
// Main
|
|
14
|
-
__exportStar(require("./types/
|
|
14
|
+
__exportStar(require("./types/app.types"), exports);
|
|
15
15
|
__exportStar(require("./types/account.types"), exports);
|
|
16
16
|
__exportStar(require("./types/category.types"), exports);
|
|
17
17
|
__exportStar(require("./types/channel.types"), exports);
|
|
@@ -22,4 +22,5 @@ __exportStar(require("./types/shippingCost.types"), exports);
|
|
|
22
22
|
__exportStar(require("./types/shoppingCart.types"), exports);
|
|
23
23
|
__exportStar(require("./types/store.types"), exports);
|
|
24
24
|
__exportStar(require("./types/vendor.types"), exports);
|
|
25
|
+
__exportStar(require("./types/http.types"), exports);
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO;AACP,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,wDAAsC;AACtC,uDAAqC;AACrC,sDAAoC;AACpC,wDAAsC;AACtC,6DAA2C;AAC3C,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO;AACP,oDAAkC;AAClC,wDAAsC;AACtC,yDAAuC;AACvC,wDAAsC;AACtC,uDAAqC;AACrC,sDAAoC;AACpC,wDAAsC;AACtC,6DAA2C;AAC3C,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC"}
|
|
@@ -9,3 +9,11 @@ export interface ArtisanAuth extends firebase.auth.Auth {
|
|
|
9
9
|
}
|
|
10
10
|
export interface ArtisanDB extends firebase.firestore.Firestore {
|
|
11
11
|
}
|
|
12
|
+
export interface ArtisanHints {
|
|
13
|
+
accountId: string | number;
|
|
14
|
+
vendorId?: string | number;
|
|
15
|
+
storeId?: string | number;
|
|
16
|
+
catalogueId?: string | number;
|
|
17
|
+
categoryId?: string | number;
|
|
18
|
+
productId?: string | number;
|
|
19
|
+
}
|
package/build/types/App.types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"app.types.js","sourceRoot":"","sources":["../../src/types/app.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ArtisanRequest {
|
|
2
|
+
url: string;
|
|
3
|
+
headers: ArtisanRequestHeaders;
|
|
4
|
+
body: ArtisanRequestBody;
|
|
5
|
+
query: ArtisanQuery;
|
|
6
|
+
params: ArtisanParams;
|
|
7
|
+
}
|
|
8
|
+
export declare type ArtisanRequestHeaders = Record<string, string>;
|
|
9
|
+
export interface ArtisanRequestBody {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface ArtisanQuery {
|
|
13
|
+
[key: string]: string | number | boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface ArtisanParams {
|
|
16
|
+
[key: string]: string | number;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.types.js","sourceRoot":"","sources":["../../src/types/http.types.ts"],"names":[],"mappings":";AAAA,2BAA2B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@artisan-commerce/types",
|
|
3
3
|
"description": "Artisan's types and interfaces library",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -39,9 +39,14 @@
|
|
|
39
39
|
"eslint-plugin-react": "^7.20.3",
|
|
40
40
|
"eslint-plugin-react-hooks": "^4.0.8",
|
|
41
41
|
"firebase": "^7.23.0",
|
|
42
|
+
"jest-extended": "^0.11.5",
|
|
42
43
|
"npm-run-all": "^4.1.5",
|
|
43
44
|
"prettier": "^2.1.2",
|
|
44
|
-
"typescript": "^3.9.7"
|
|
45
|
+
"typescript": "^3.9.7",
|
|
46
|
+
"webpack-bundle-analyzer": "^3.9.0"
|
|
45
47
|
},
|
|
46
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "ca369f4e86bd8697ad7485c223b8ca8021a667d5",
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"jest-extended": "^0.11.5"
|
|
51
|
+
}
|
|
47
52
|
}
|