@moonbase.sh/vue 0.1.91 → 0.1.93
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 +34 -3
- package/dist/index.d.ts +34 -3
- package/dist/index.js +3 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -252,6 +252,9 @@ function useInventory() {
|
|
|
252
252
|
},
|
|
253
253
|
revokeActivation: async (activation) => {
|
|
254
254
|
return storefront.client.licenses.revokeActivation(activation.licenseId, activation.id);
|
|
255
|
+
},
|
|
256
|
+
activateProduct: async (deviceToken, activationMethod) => {
|
|
257
|
+
return storefront.client.products.activate(deviceToken, activationMethod);
|
|
255
258
|
}
|
|
256
259
|
};
|
|
257
260
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _moonbase_sh_storefront_api from '@moonbase.sh/storefront-api';
|
|
2
|
-
import { MoonbaseConfiguration, Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, Activation, PricingVariation, LineItem } from '@moonbase.sh/storefront-api';
|
|
2
|
+
import { MoonbaseConfiguration, Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, ActivationMethod, Activation, PricingVariation, LineItem } from '@moonbase.sh/storefront-api';
|
|
3
3
|
export * from '@moonbase.sh/storefront-api';
|
|
4
4
|
import * as vue from 'vue';
|
|
5
5
|
import { Plugin, Ref, App, UnwrapRef, InjectionKey } from 'vue';
|
|
@@ -70,7 +70,7 @@ declare function useInventory(): {
|
|
|
70
70
|
id: string;
|
|
71
71
|
name: string;
|
|
72
72
|
licenseId: string;
|
|
73
|
-
activationMethod:
|
|
73
|
+
activationMethod: ActivationMethod;
|
|
74
74
|
lastValidatedAt: Date | null;
|
|
75
75
|
}>>;
|
|
76
76
|
getProducts: (nextUrl?: string) => Promise<_moonbase_sh_storefront_api.Page<{
|
|
@@ -127,10 +127,41 @@ declare function useInventory(): {
|
|
|
127
127
|
id: string;
|
|
128
128
|
name: string;
|
|
129
129
|
licenseId: string;
|
|
130
|
-
activationMethod:
|
|
130
|
+
activationMethod: ActivationMethod;
|
|
131
131
|
lastValidatedAt: Date | null;
|
|
132
132
|
}>>;
|
|
133
133
|
revokeActivation: (activation: Activation) => Promise<void>;
|
|
134
|
+
activateProduct: (deviceToken: string, activationMethod: ActivationMethod) => Promise<{
|
|
135
|
+
license: {
|
|
136
|
+
status: _moonbase_sh_storefront_api.LicenseStatus;
|
|
137
|
+
id: string;
|
|
138
|
+
activeNumberOfActivations: number;
|
|
139
|
+
maxNumberOfActivations: number;
|
|
140
|
+
createdAt: Date;
|
|
141
|
+
product?: {
|
|
142
|
+
id: string;
|
|
143
|
+
name: string;
|
|
144
|
+
tagline: string;
|
|
145
|
+
currentVersion: string | null;
|
|
146
|
+
downloadsNeedsUser: boolean;
|
|
147
|
+
downloadsNeedsOwnership: boolean;
|
|
148
|
+
website?: string | undefined;
|
|
149
|
+
iconUrl?: string | undefined;
|
|
150
|
+
numberOfLicenses?: number | undefined;
|
|
151
|
+
numberOfTrials?: number | undefined;
|
|
152
|
+
currentActivations?: number | undefined;
|
|
153
|
+
maxActivations?: number | undefined;
|
|
154
|
+
downloads?: {
|
|
155
|
+
path: string | null;
|
|
156
|
+
name: string;
|
|
157
|
+
key: string;
|
|
158
|
+
platform: _moonbase_sh_storefront_api.Platform;
|
|
159
|
+
size: number;
|
|
160
|
+
}[] | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
};
|
|
163
|
+
url: string;
|
|
164
|
+
}>;
|
|
134
165
|
};
|
|
135
166
|
|
|
136
167
|
declare function useActivationRequest(requestId: string): {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _moonbase_sh_storefront_api from '@moonbase.sh/storefront-api';
|
|
2
|
-
import { MoonbaseConfiguration, Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, Activation, PricingVariation, LineItem } from '@moonbase.sh/storefront-api';
|
|
2
|
+
import { MoonbaseConfiguration, Storefront, Order, User, MoonbaseClient, StorefrontBundle, StorefrontProduct, ActivationMethod, Activation, PricingVariation, LineItem } from '@moonbase.sh/storefront-api';
|
|
3
3
|
export * from '@moonbase.sh/storefront-api';
|
|
4
4
|
import * as vue from 'vue';
|
|
5
5
|
import { Plugin, Ref, App, UnwrapRef, InjectionKey } from 'vue';
|
|
@@ -70,7 +70,7 @@ declare function useInventory(): {
|
|
|
70
70
|
id: string;
|
|
71
71
|
name: string;
|
|
72
72
|
licenseId: string;
|
|
73
|
-
activationMethod:
|
|
73
|
+
activationMethod: ActivationMethod;
|
|
74
74
|
lastValidatedAt: Date | null;
|
|
75
75
|
}>>;
|
|
76
76
|
getProducts: (nextUrl?: string) => Promise<_moonbase_sh_storefront_api.Page<{
|
|
@@ -127,10 +127,41 @@ declare function useInventory(): {
|
|
|
127
127
|
id: string;
|
|
128
128
|
name: string;
|
|
129
129
|
licenseId: string;
|
|
130
|
-
activationMethod:
|
|
130
|
+
activationMethod: ActivationMethod;
|
|
131
131
|
lastValidatedAt: Date | null;
|
|
132
132
|
}>>;
|
|
133
133
|
revokeActivation: (activation: Activation) => Promise<void>;
|
|
134
|
+
activateProduct: (deviceToken: string, activationMethod: ActivationMethod) => Promise<{
|
|
135
|
+
license: {
|
|
136
|
+
status: _moonbase_sh_storefront_api.LicenseStatus;
|
|
137
|
+
id: string;
|
|
138
|
+
activeNumberOfActivations: number;
|
|
139
|
+
maxNumberOfActivations: number;
|
|
140
|
+
createdAt: Date;
|
|
141
|
+
product?: {
|
|
142
|
+
id: string;
|
|
143
|
+
name: string;
|
|
144
|
+
tagline: string;
|
|
145
|
+
currentVersion: string | null;
|
|
146
|
+
downloadsNeedsUser: boolean;
|
|
147
|
+
downloadsNeedsOwnership: boolean;
|
|
148
|
+
website?: string | undefined;
|
|
149
|
+
iconUrl?: string | undefined;
|
|
150
|
+
numberOfLicenses?: number | undefined;
|
|
151
|
+
numberOfTrials?: number | undefined;
|
|
152
|
+
currentActivations?: number | undefined;
|
|
153
|
+
maxActivations?: number | undefined;
|
|
154
|
+
downloads?: {
|
|
155
|
+
path: string | null;
|
|
156
|
+
name: string;
|
|
157
|
+
key: string;
|
|
158
|
+
platform: _moonbase_sh_storefront_api.Platform;
|
|
159
|
+
size: number;
|
|
160
|
+
}[] | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
};
|
|
163
|
+
url: string;
|
|
164
|
+
}>;
|
|
134
165
|
};
|
|
135
166
|
|
|
136
167
|
declare function useActivationRequest(requestId: string): {
|
package/dist/index.js
CHANGED
|
@@ -217,6 +217,9 @@ function useInventory() {
|
|
|
217
217
|
},
|
|
218
218
|
revokeActivation: async (activation) => {
|
|
219
219
|
return storefront.client.licenses.revokeActivation(activation.licenseId, activation.id);
|
|
220
|
+
},
|
|
221
|
+
activateProduct: async (deviceToken, activationMethod) => {
|
|
222
|
+
return storefront.client.products.activate(deviceToken, activationMethod);
|
|
220
223
|
}
|
|
221
224
|
};
|
|
222
225
|
}
|
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.93",
|
|
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/storefront-api": "0.1.
|
|
21
|
+
"@moonbase.sh/storefront-api": "0.1.93"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/uuid": "^9.0.7",
|