@grafikr/shopify-typescript 1.1.0 → 1.2.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/global/Shopify.ts CHANGED
@@ -33,4 +33,7 @@ export default interface Shopify {
33
33
  money_format: string
34
34
  shop: string
35
35
  designMode: true | undefined
36
+ routes: {
37
+ root: string
38
+ }
36
39
  }
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@grafikr/shopify-typescript",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "lint": "node_modules/.bin/eslint . --ext .js,.ts",
7
7
  "test": "yarn lint"
8
8
  },
9
+ "engines": {
10
+ "node": ">=16.0.0"
11
+ },
9
12
  "devDependencies": {
10
13
  "@typescript-eslint/eslint-plugin": "^5.0.0",
11
14
  "@typescript-eslint/parser": "^5.0.0",
@@ -13,7 +16,7 @@
13
16
  "eslint-config-airbnb-base": "^15.0.0",
14
17
  "eslint-config-airbnb-typescript": "^17.0.0",
15
18
  "eslint-plugin-import": "^2.0.0",
16
- "typescript": "^4.0.0"
19
+ "typescript": "^5.0.2"
17
20
  },
18
21
  "repository": {
19
22
  "type": "git",
package/type/LineItem.ts CHANGED
@@ -25,13 +25,13 @@ export default interface Item {
25
25
  final_price: number
26
26
  final_line_price: number
27
27
  url: string
28
- featured_image: [{
28
+ featured_image: {
29
29
  aspect_ratio: number
30
30
  alt: string
31
31
  height: number
32
32
  url: string
33
33
  width: number
34
- }]
34
+ }
35
35
  image: string
36
36
  handle: string
37
37
  requires_shipping: boolean
@@ -0,0 +1,16 @@
1
+ type PaginationPart = {
2
+ is_link: boolean;
3
+ title: string;
4
+ url?: string;
5
+ };
6
+
7
+ export default interface Pagination {
8
+ current_offset: number;
9
+ current_page: number;
10
+ items: number;
11
+ previous?: PaginationPart;
12
+ next?: PaginationPart;
13
+ page_size: number;
14
+ pages: number;
15
+ parts: PaginationPart[];
16
+ }