@moonbase.sh/vue 0.1.75 → 0.1.76
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +3 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -248,6 +248,9 @@ function useInventory() {
|
|
|
248
248
|
},
|
|
249
249
|
getProductActivations: async (productId, nextUrl) => {
|
|
250
250
|
return storefront.client.products.getActivations(productId, nextUrl);
|
|
251
|
+
},
|
|
252
|
+
revokeActivation: async (activation) => {
|
|
253
|
+
return storefront.client.licenses.revokeActivation(activation.licenseId, activation.id);
|
|
251
254
|
}
|
|
252
255
|
};
|
|
253
256
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, LineItem } from '@moonbase.sh/api-client/src';
|
|
2
2
|
import * as _moonbase_sh_api_client from '@moonbase.sh/api-client';
|
|
3
|
-
import { Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, PricingVariation } from '@moonbase.sh/api-client';
|
|
3
|
+
import { Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, Activation, PricingVariation } from '@moonbase.sh/api-client';
|
|
4
4
|
export * from '@moonbase.sh/api-client';
|
|
5
5
|
import * as vue from 'vue';
|
|
6
6
|
import { Plugin, Ref, App, InjectionKey } from 'vue';
|
|
@@ -112,6 +112,7 @@ declare function useInventory(): {
|
|
|
112
112
|
activationMethod: _moonbase_sh_api_client.ActivationMethod;
|
|
113
113
|
lastValidatedAt: Date | null;
|
|
114
114
|
}>>;
|
|
115
|
+
revokeActivation: (activation: Activation) => Promise<void>;
|
|
115
116
|
};
|
|
116
117
|
|
|
117
118
|
declare function useVoucher(): {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Address, LineItem } from '@moonbase.sh/api-client/src';
|
|
2
2
|
import * as _moonbase_sh_api_client from '@moonbase.sh/api-client';
|
|
3
|
-
import { Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, PricingVariation } from '@moonbase.sh/api-client';
|
|
3
|
+
import { Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, Activation, PricingVariation } from '@moonbase.sh/api-client';
|
|
4
4
|
export * from '@moonbase.sh/api-client';
|
|
5
5
|
import * as vue from 'vue';
|
|
6
6
|
import { Plugin, Ref, App, InjectionKey } from 'vue';
|
|
@@ -112,6 +112,7 @@ declare function useInventory(): {
|
|
|
112
112
|
activationMethod: _moonbase_sh_api_client.ActivationMethod;
|
|
113
113
|
lastValidatedAt: Date | null;
|
|
114
114
|
}>>;
|
|
115
|
+
revokeActivation: (activation: Activation) => Promise<void>;
|
|
115
116
|
};
|
|
116
117
|
|
|
117
118
|
declare function useVoucher(): {
|
package/dist/index.js
CHANGED
|
@@ -214,6 +214,9 @@ function useInventory() {
|
|
|
214
214
|
},
|
|
215
215
|
getProductActivations: async (productId, nextUrl) => {
|
|
216
216
|
return storefront.client.products.getActivations(productId, nextUrl);
|
|
217
|
+
},
|
|
218
|
+
revokeActivation: async (activation) => {
|
|
219
|
+
return storefront.client.licenses.revokeActivation(activation.licenseId, activation.id);
|
|
217
220
|
}
|
|
218
221
|
};
|
|
219
222
|
}
|
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.76",
|
|
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.76"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/uuid": "^9.0.7",
|