@moonbase.sh/vue 0.1.73 → 0.1.74
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 +3 -0
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +3 -0
- package/package.json +2 -2
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
|
@@ -62,7 +62,7 @@ declare function useInventory(): {
|
|
|
62
62
|
id: string;
|
|
63
63
|
name: string;
|
|
64
64
|
activationMethod: _moonbase_sh_api_client.ActivationMethod;
|
|
65
|
-
lastValidatedAt: Date;
|
|
65
|
+
lastValidatedAt: Date | null;
|
|
66
66
|
}>>;
|
|
67
67
|
getProducts: (nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
68
68
|
id: string;
|
|
@@ -103,6 +103,13 @@ declare function useInventory(): {
|
|
|
103
103
|
maxActivations?: number | undefined;
|
|
104
104
|
} | undefined;
|
|
105
105
|
}>>;
|
|
106
|
+
getProductActivations: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
107
|
+
status: _moonbase_sh_api_client.ActivationStatus;
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
activationMethod: _moonbase_sh_api_client.ActivationMethod;
|
|
111
|
+
lastValidatedAt: Date | null;
|
|
112
|
+
}>>;
|
|
106
113
|
};
|
|
107
114
|
|
|
108
115
|
declare function useVoucher(): {
|
package/dist/index.d.ts
CHANGED
|
@@ -62,7 +62,7 @@ declare function useInventory(): {
|
|
|
62
62
|
id: string;
|
|
63
63
|
name: string;
|
|
64
64
|
activationMethod: _moonbase_sh_api_client.ActivationMethod;
|
|
65
|
-
lastValidatedAt: Date;
|
|
65
|
+
lastValidatedAt: Date | null;
|
|
66
66
|
}>>;
|
|
67
67
|
getProducts: (nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
68
68
|
id: string;
|
|
@@ -103,6 +103,13 @@ declare function useInventory(): {
|
|
|
103
103
|
maxActivations?: number | undefined;
|
|
104
104
|
} | undefined;
|
|
105
105
|
}>>;
|
|
106
|
+
getProductActivations: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
107
|
+
status: _moonbase_sh_api_client.ActivationStatus;
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
activationMethod: _moonbase_sh_api_client.ActivationMethod;
|
|
111
|
+
lastValidatedAt: Date | null;
|
|
112
|
+
}>>;
|
|
106
113
|
};
|
|
107
114
|
|
|
108
115
|
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.
|
|
4
|
+
"version": "0.1.74",
|
|
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.
|
|
21
|
+
"@moonbase.sh/api-client": "0.1.74"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/uuid": "^9.0.7",
|