@moonbase.sh/vue 0.1.73 → 0.1.75

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
@@ -245,6 +245,9 @@ function useInventory() {
245
245
  },
246
246
  getProductLicenses: async (productId, nextUrl) => {
247
247
  return storefront.client.products.getLicenses(productId, nextUrl);
248
+ },
249
+ getProductActivations: async (productId, nextUrl) => {
250
+ return storefront.client.products.getActivations(productId, nextUrl);
248
251
  }
249
252
  };
250
253
  }
package/dist/index.d.cts CHANGED
@@ -61,8 +61,9 @@ declare function useInventory(): {
61
61
  status: _moonbase_sh_api_client.ActivationStatus;
62
62
  id: string;
63
63
  name: string;
64
+ licenseId: string;
64
65
  activationMethod: _moonbase_sh_api_client.ActivationMethod;
65
- lastValidatedAt: Date;
66
+ lastValidatedAt: Date | null;
66
67
  }>>;
67
68
  getProducts: (nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
68
69
  id: string;
@@ -103,6 +104,14 @@ declare function useInventory(): {
103
104
  maxActivations?: number | undefined;
104
105
  } | undefined;
105
106
  }>>;
107
+ getProductActivations: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
108
+ status: _moonbase_sh_api_client.ActivationStatus;
109
+ id: string;
110
+ name: string;
111
+ licenseId: string;
112
+ activationMethod: _moonbase_sh_api_client.ActivationMethod;
113
+ lastValidatedAt: Date | null;
114
+ }>>;
106
115
  };
107
116
 
108
117
  declare function useVoucher(): {
package/dist/index.d.ts CHANGED
@@ -61,8 +61,9 @@ declare function useInventory(): {
61
61
  status: _moonbase_sh_api_client.ActivationStatus;
62
62
  id: string;
63
63
  name: string;
64
+ licenseId: string;
64
65
  activationMethod: _moonbase_sh_api_client.ActivationMethod;
65
- lastValidatedAt: Date;
66
+ lastValidatedAt: Date | null;
66
67
  }>>;
67
68
  getProducts: (nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
68
69
  id: string;
@@ -103,6 +104,14 @@ declare function useInventory(): {
103
104
  maxActivations?: number | undefined;
104
105
  } | undefined;
105
106
  }>>;
107
+ getProductActivations: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
108
+ status: _moonbase_sh_api_client.ActivationStatus;
109
+ id: string;
110
+ name: string;
111
+ licenseId: string;
112
+ activationMethod: _moonbase_sh_api_client.ActivationMethod;
113
+ lastValidatedAt: Date | null;
114
+ }>>;
106
115
  };
107
116
 
108
117
  declare function useVoucher(): {
package/dist/index.js CHANGED
@@ -211,6 +211,9 @@ function useInventory() {
211
211
  },
212
212
  getProductLicenses: async (productId, nextUrl) => {
213
213
  return storefront.client.products.getLicenses(productId, nextUrl);
214
+ },
215
+ getProductActivations: async (productId, nextUrl) => {
216
+ return storefront.client.products.getActivations(productId, nextUrl);
214
217
  }
215
218
  };
216
219
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/vue",
3
3
  "type": "module",
4
- "version": "0.1.73",
4
+ "version": "0.1.75",
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.73"
21
+ "@moonbase.sh/api-client": "0.1.75"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/uuid": "^9.0.7",