@moonbase.sh/vue 0.1.65 → 0.1.67

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/dist/index.cjs CHANGED
@@ -256,8 +256,12 @@ function useVoucher() {
256
256
  if (!storefront)
257
257
  throw new Error("No storefront configured");
258
258
  return {
259
- peek: storefront.client.vouchers.peek,
260
- redeem: storefront.client.vouchers.redeem
259
+ peek: async (code) => {
260
+ return storefront.client.vouchers.peek(code);
261
+ },
262
+ redeem: async (code) => {
263
+ return storefront.client.vouchers.redeem(code);
264
+ }
261
265
  };
262
266
  }
263
267
 
package/dist/index.d.cts CHANGED
@@ -43,13 +43,16 @@ declare function useInventory(): {
43
43
  product?: {
44
44
  id: string;
45
45
  name: string;
46
- iconUrl: string | null;
47
46
  currentVersion: string | null;
48
47
  downloads: {
49
48
  name: string;
50
49
  key: string;
51
50
  platform: _moonbase_sh_api_client.Platform;
52
51
  }[] | null;
52
+ website?: string | undefined;
53
+ iconUrl?: string | undefined;
54
+ numberOfLicenses?: number | undefined;
55
+ numberOfTrials?: number | undefined;
53
56
  } | undefined;
54
57
  }>>;
55
58
  getLicenseActivations: (licenseId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
@@ -62,13 +65,16 @@ declare function useInventory(): {
62
65
  getProducts: (nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
63
66
  id: string;
64
67
  name: string;
65
- iconUrl: string | null;
66
68
  currentVersion: string | null;
67
69
  downloads: {
68
70
  name: string;
69
71
  key: string;
70
72
  platform: _moonbase_sh_api_client.Platform;
71
73
  }[] | null;
74
+ website?: string | undefined;
75
+ iconUrl?: string | undefined;
76
+ numberOfLicenses?: number | undefined;
77
+ numberOfTrials?: number | undefined;
72
78
  }>>;
73
79
  getProductLicenses: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
74
80
  status: _moonbase_sh_api_client.LicenseStatus;
@@ -79,13 +85,16 @@ declare function useInventory(): {
79
85
  product?: {
80
86
  id: string;
81
87
  name: string;
82
- iconUrl: string | null;
83
88
  currentVersion: string | null;
84
89
  downloads: {
85
90
  name: string;
86
91
  key: string;
87
92
  platform: _moonbase_sh_api_client.Platform;
88
93
  }[] | null;
94
+ website?: string | undefined;
95
+ iconUrl?: string | undefined;
96
+ numberOfLicenses?: number | undefined;
97
+ numberOfTrials?: number | undefined;
89
98
  } | undefined;
90
99
  }>>;
91
100
  };
package/dist/index.d.ts CHANGED
@@ -43,13 +43,16 @@ declare function useInventory(): {
43
43
  product?: {
44
44
  id: string;
45
45
  name: string;
46
- iconUrl: string | null;
47
46
  currentVersion: string | null;
48
47
  downloads: {
49
48
  name: string;
50
49
  key: string;
51
50
  platform: _moonbase_sh_api_client.Platform;
52
51
  }[] | null;
52
+ website?: string | undefined;
53
+ iconUrl?: string | undefined;
54
+ numberOfLicenses?: number | undefined;
55
+ numberOfTrials?: number | undefined;
53
56
  } | undefined;
54
57
  }>>;
55
58
  getLicenseActivations: (licenseId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
@@ -62,13 +65,16 @@ declare function useInventory(): {
62
65
  getProducts: (nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
63
66
  id: string;
64
67
  name: string;
65
- iconUrl: string | null;
66
68
  currentVersion: string | null;
67
69
  downloads: {
68
70
  name: string;
69
71
  key: string;
70
72
  platform: _moonbase_sh_api_client.Platform;
71
73
  }[] | null;
74
+ website?: string | undefined;
75
+ iconUrl?: string | undefined;
76
+ numberOfLicenses?: number | undefined;
77
+ numberOfTrials?: number | undefined;
72
78
  }>>;
73
79
  getProductLicenses: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
74
80
  status: _moonbase_sh_api_client.LicenseStatus;
@@ -79,13 +85,16 @@ declare function useInventory(): {
79
85
  product?: {
80
86
  id: string;
81
87
  name: string;
82
- iconUrl: string | null;
83
88
  currentVersion: string | null;
84
89
  downloads: {
85
90
  name: string;
86
91
  key: string;
87
92
  platform: _moonbase_sh_api_client.Platform;
88
93
  }[] | null;
94
+ website?: string | undefined;
95
+ iconUrl?: string | undefined;
96
+ numberOfLicenses?: number | undefined;
97
+ numberOfTrials?: number | undefined;
89
98
  } | undefined;
90
99
  }>>;
91
100
  };
package/dist/index.js CHANGED
@@ -222,8 +222,12 @@ function useVoucher() {
222
222
  if (!storefront)
223
223
  throw new Error("No storefront configured");
224
224
  return {
225
- peek: storefront.client.vouchers.peek,
226
- redeem: storefront.client.vouchers.redeem
225
+ peek: async (code) => {
226
+ return storefront.client.vouchers.peek(code);
227
+ },
228
+ redeem: async (code) => {
229
+ return storefront.client.vouchers.redeem(code);
230
+ }
227
231
  };
228
232
  }
229
233
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/vue",
3
3
  "type": "module",
4
- "version": "0.1.65",
4
+ "version": "0.1.67",
5
5
  "description": "Package to let you build vue.js storefronts with Moonbase.sh as payment and delivery provider",
6
6
  "author": "Tobias Lønnerød Madsen <m@dsen.tv>",
7
7
  "license": "MIT",
@@ -18,7 +18,7 @@
18
18
  "dependencies": {
19
19
  "@vue/devtools-api": "^6.5.1",
20
20
  "uuid": "^9.0.1",
21
- "@moonbase.sh/api-client": "0.1.65"
21
+ "@moonbase.sh/api-client": "0.1.67"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/uuid": "^9.0.7",