@moonbase.sh/vue 0.1.74 → 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 +4 -1
- package/dist/index.d.ts +4 -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';
|
|
@@ -61,6 +61,7 @@ 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
66
|
lastValidatedAt: Date | null;
|
|
66
67
|
}>>;
|
|
@@ -107,9 +108,11 @@ declare function useInventory(): {
|
|
|
107
108
|
status: _moonbase_sh_api_client.ActivationStatus;
|
|
108
109
|
id: string;
|
|
109
110
|
name: string;
|
|
111
|
+
licenseId: string;
|
|
110
112
|
activationMethod: _moonbase_sh_api_client.ActivationMethod;
|
|
111
113
|
lastValidatedAt: Date | null;
|
|
112
114
|
}>>;
|
|
115
|
+
revokeActivation: (activation: Activation) => Promise<void>;
|
|
113
116
|
};
|
|
114
117
|
|
|
115
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';
|
|
@@ -61,6 +61,7 @@ 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
66
|
lastValidatedAt: Date | null;
|
|
66
67
|
}>>;
|
|
@@ -107,9 +108,11 @@ declare function useInventory(): {
|
|
|
107
108
|
status: _moonbase_sh_api_client.ActivationStatus;
|
|
108
109
|
id: string;
|
|
109
110
|
name: string;
|
|
111
|
+
licenseId: string;
|
|
110
112
|
activationMethod: _moonbase_sh_api_client.ActivationMethod;
|
|
111
113
|
lastValidatedAt: Date | null;
|
|
112
114
|
}>>;
|
|
115
|
+
revokeActivation: (activation: Activation) => Promise<void>;
|
|
113
116
|
};
|
|
114
117
|
|
|
115
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",
|