@moonbase.sh/vue 0.1.75 → 0.1.77
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 +75 -22
- package/dist/index.d.ts +75 -22
- 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';
|
|
@@ -43,18 +43,23 @@ declare function useInventory(): {
|
|
|
43
43
|
product?: {
|
|
44
44
|
id: string;
|
|
45
45
|
name: string;
|
|
46
|
+
tagline: string;
|
|
46
47
|
currentVersion: string | null;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
key: string;
|
|
50
|
-
platform: _moonbase_sh_api_client.Platform;
|
|
51
|
-
}[] | null;
|
|
48
|
+
downloadsNeedsUser: boolean;
|
|
49
|
+
downloadsNeedsOwnership: boolean;
|
|
52
50
|
website?: string | undefined;
|
|
53
51
|
iconUrl?: string | undefined;
|
|
54
52
|
numberOfLicenses?: number | undefined;
|
|
55
53
|
numberOfTrials?: number | undefined;
|
|
56
54
|
currentActivations?: number | undefined;
|
|
57
55
|
maxActivations?: number | undefined;
|
|
56
|
+
downloads?: {
|
|
57
|
+
path: string | null;
|
|
58
|
+
name: string;
|
|
59
|
+
key: string;
|
|
60
|
+
platform: _moonbase_sh_api_client.Platform;
|
|
61
|
+
size: number;
|
|
62
|
+
}[] | undefined;
|
|
58
63
|
} | undefined;
|
|
59
64
|
}>>;
|
|
60
65
|
getLicenseActivations: (licenseId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
@@ -68,18 +73,23 @@ declare function useInventory(): {
|
|
|
68
73
|
getProducts: (nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
69
74
|
id: string;
|
|
70
75
|
name: string;
|
|
76
|
+
tagline: string;
|
|
71
77
|
currentVersion: string | null;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
key: string;
|
|
75
|
-
platform: _moonbase_sh_api_client.Platform;
|
|
76
|
-
}[] | null;
|
|
78
|
+
downloadsNeedsUser: boolean;
|
|
79
|
+
downloadsNeedsOwnership: boolean;
|
|
77
80
|
website?: string | undefined;
|
|
78
81
|
iconUrl?: string | undefined;
|
|
79
82
|
numberOfLicenses?: number | undefined;
|
|
80
83
|
numberOfTrials?: number | undefined;
|
|
81
84
|
currentActivations?: number | undefined;
|
|
82
85
|
maxActivations?: number | undefined;
|
|
86
|
+
downloads?: {
|
|
87
|
+
path: string | null;
|
|
88
|
+
name: string;
|
|
89
|
+
key: string;
|
|
90
|
+
platform: _moonbase_sh_api_client.Platform;
|
|
91
|
+
size: number;
|
|
92
|
+
}[] | undefined;
|
|
83
93
|
}>>;
|
|
84
94
|
getProductLicenses: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
85
95
|
status: _moonbase_sh_api_client.LicenseStatus;
|
|
@@ -90,18 +100,23 @@ declare function useInventory(): {
|
|
|
90
100
|
product?: {
|
|
91
101
|
id: string;
|
|
92
102
|
name: string;
|
|
103
|
+
tagline: string;
|
|
93
104
|
currentVersion: string | null;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
key: string;
|
|
97
|
-
platform: _moonbase_sh_api_client.Platform;
|
|
98
|
-
}[] | null;
|
|
105
|
+
downloadsNeedsUser: boolean;
|
|
106
|
+
downloadsNeedsOwnership: boolean;
|
|
99
107
|
website?: string | undefined;
|
|
100
108
|
iconUrl?: string | undefined;
|
|
101
109
|
numberOfLicenses?: number | undefined;
|
|
102
110
|
numberOfTrials?: number | undefined;
|
|
103
111
|
currentActivations?: number | undefined;
|
|
104
112
|
maxActivations?: number | undefined;
|
|
113
|
+
downloads?: {
|
|
114
|
+
path: string | null;
|
|
115
|
+
name: string;
|
|
116
|
+
key: string;
|
|
117
|
+
platform: _moonbase_sh_api_client.Platform;
|
|
118
|
+
size: number;
|
|
119
|
+
}[] | undefined;
|
|
105
120
|
} | undefined;
|
|
106
121
|
}>>;
|
|
107
122
|
getProductActivations: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
@@ -112,6 +127,7 @@ declare function useInventory(): {
|
|
|
112
127
|
activationMethod: _moonbase_sh_api_client.ActivationMethod;
|
|
113
128
|
lastValidatedAt: Date | null;
|
|
114
129
|
}>>;
|
|
130
|
+
revokeActivation: (activation: Activation) => Promise<void>;
|
|
115
131
|
};
|
|
116
132
|
|
|
117
133
|
declare function useVoucher(): {
|
|
@@ -126,8 +142,8 @@ declare function useVoucher(): {
|
|
|
126
142
|
type: "product";
|
|
127
143
|
id: string;
|
|
128
144
|
name: string;
|
|
129
|
-
iconUrl: string | null;
|
|
130
145
|
tagline: string;
|
|
146
|
+
iconUrl: string | null;
|
|
131
147
|
owned: boolean;
|
|
132
148
|
defaultVariation?: {
|
|
133
149
|
id: string;
|
|
@@ -175,16 +191,16 @@ declare function useVoucher(): {
|
|
|
175
191
|
type: "bundle";
|
|
176
192
|
id: string;
|
|
177
193
|
name: string;
|
|
178
|
-
iconUrl: string | null;
|
|
179
194
|
tagline: string;
|
|
195
|
+
iconUrl: string | null;
|
|
180
196
|
owned: boolean;
|
|
181
197
|
partial: boolean;
|
|
182
198
|
products: ({
|
|
183
199
|
type: "product";
|
|
184
200
|
id: string;
|
|
185
201
|
name: string;
|
|
186
|
-
iconUrl: string | null;
|
|
187
202
|
tagline: string;
|
|
203
|
+
iconUrl: string | null;
|
|
188
204
|
owned: boolean;
|
|
189
205
|
defaultVariation?: {
|
|
190
206
|
id: string;
|
|
@@ -280,8 +296,8 @@ declare function useVoucher(): {
|
|
|
280
296
|
type: "product";
|
|
281
297
|
id: string;
|
|
282
298
|
name: string;
|
|
283
|
-
iconUrl: string | null;
|
|
284
299
|
tagline: string;
|
|
300
|
+
iconUrl: string | null;
|
|
285
301
|
owned: boolean;
|
|
286
302
|
defaultVariation?: {
|
|
287
303
|
id: string;
|
|
@@ -329,16 +345,16 @@ declare function useVoucher(): {
|
|
|
329
345
|
type: "bundle";
|
|
330
346
|
id: string;
|
|
331
347
|
name: string;
|
|
332
|
-
iconUrl: string | null;
|
|
333
348
|
tagline: string;
|
|
349
|
+
iconUrl: string | null;
|
|
334
350
|
owned: boolean;
|
|
335
351
|
partial: boolean;
|
|
336
352
|
products: ({
|
|
337
353
|
type: "product";
|
|
338
354
|
id: string;
|
|
339
355
|
name: string;
|
|
340
|
-
iconUrl: string | null;
|
|
341
356
|
tagline: string;
|
|
357
|
+
iconUrl: string | null;
|
|
342
358
|
owned: boolean;
|
|
343
359
|
defaultVariation?: {
|
|
344
360
|
id: string;
|
|
@@ -498,6 +514,20 @@ declare function useCart(): {
|
|
|
498
514
|
} | undefined;
|
|
499
515
|
}[] | undefined;
|
|
500
516
|
} | undefined;
|
|
517
|
+
appliedDiscount?: {
|
|
518
|
+
type: "PercentageOffDiscount";
|
|
519
|
+
name: string;
|
|
520
|
+
percentage: number;
|
|
521
|
+
isExclusive: boolean;
|
|
522
|
+
description?: string | undefined;
|
|
523
|
+
total?: Record<string, number> | undefined;
|
|
524
|
+
} | {
|
|
525
|
+
type: "FlatAmountOffDiscount";
|
|
526
|
+
name: string;
|
|
527
|
+
isExclusive: boolean;
|
|
528
|
+
description?: string | undefined;
|
|
529
|
+
total?: Record<string, number> | undefined;
|
|
530
|
+
} | undefined;
|
|
501
531
|
} | {
|
|
502
532
|
type: "Bundle";
|
|
503
533
|
id: string;
|
|
@@ -619,6 +649,20 @@ declare function useCart(): {
|
|
|
619
649
|
} | undefined;
|
|
620
650
|
}[] | undefined;
|
|
621
651
|
} | undefined;
|
|
652
|
+
appliedDiscount?: {
|
|
653
|
+
type: "PercentageOffDiscount";
|
|
654
|
+
name: string;
|
|
655
|
+
percentage: number;
|
|
656
|
+
isExclusive: boolean;
|
|
657
|
+
description?: string | undefined;
|
|
658
|
+
total?: Record<string, number> | undefined;
|
|
659
|
+
} | {
|
|
660
|
+
type: "FlatAmountOffDiscount";
|
|
661
|
+
name: string;
|
|
662
|
+
isExclusive: boolean;
|
|
663
|
+
description?: string | undefined;
|
|
664
|
+
total?: Record<string, number> | undefined;
|
|
665
|
+
} | undefined;
|
|
622
666
|
})[]>;
|
|
623
667
|
currency: vue.ComputedRef<string>;
|
|
624
668
|
total: vue.ComputedRef<{
|
|
@@ -637,6 +681,9 @@ declare function useAuth(): {
|
|
|
637
681
|
email: string;
|
|
638
682
|
name: string;
|
|
639
683
|
tenantId: string;
|
|
684
|
+
communicationPreferences: {
|
|
685
|
+
newsletterOptIn: boolean;
|
|
686
|
+
};
|
|
640
687
|
address?: {
|
|
641
688
|
countryCode: string;
|
|
642
689
|
streetAddress1: string;
|
|
@@ -652,6 +699,9 @@ declare function useAuth(): {
|
|
|
652
699
|
email: string;
|
|
653
700
|
name: string;
|
|
654
701
|
tenantId: string;
|
|
702
|
+
communicationPreferences: {
|
|
703
|
+
newsletterOptIn: boolean;
|
|
704
|
+
};
|
|
655
705
|
address?: {
|
|
656
706
|
countryCode: string;
|
|
657
707
|
streetAddress1: string;
|
|
@@ -666,6 +716,9 @@ declare function useAuth(): {
|
|
|
666
716
|
email: string;
|
|
667
717
|
name: string;
|
|
668
718
|
tenantId: string;
|
|
719
|
+
communicationPreferences: {
|
|
720
|
+
newsletterOptIn: boolean;
|
|
721
|
+
};
|
|
669
722
|
address?: {
|
|
670
723
|
countryCode: string;
|
|
671
724
|
streetAddress1: string;
|
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';
|
|
@@ -43,18 +43,23 @@ declare function useInventory(): {
|
|
|
43
43
|
product?: {
|
|
44
44
|
id: string;
|
|
45
45
|
name: string;
|
|
46
|
+
tagline: string;
|
|
46
47
|
currentVersion: string | null;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
key: string;
|
|
50
|
-
platform: _moonbase_sh_api_client.Platform;
|
|
51
|
-
}[] | null;
|
|
48
|
+
downloadsNeedsUser: boolean;
|
|
49
|
+
downloadsNeedsOwnership: boolean;
|
|
52
50
|
website?: string | undefined;
|
|
53
51
|
iconUrl?: string | undefined;
|
|
54
52
|
numberOfLicenses?: number | undefined;
|
|
55
53
|
numberOfTrials?: number | undefined;
|
|
56
54
|
currentActivations?: number | undefined;
|
|
57
55
|
maxActivations?: number | undefined;
|
|
56
|
+
downloads?: {
|
|
57
|
+
path: string | null;
|
|
58
|
+
name: string;
|
|
59
|
+
key: string;
|
|
60
|
+
platform: _moonbase_sh_api_client.Platform;
|
|
61
|
+
size: number;
|
|
62
|
+
}[] | undefined;
|
|
58
63
|
} | undefined;
|
|
59
64
|
}>>;
|
|
60
65
|
getLicenseActivations: (licenseId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
@@ -68,18 +73,23 @@ declare function useInventory(): {
|
|
|
68
73
|
getProducts: (nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
69
74
|
id: string;
|
|
70
75
|
name: string;
|
|
76
|
+
tagline: string;
|
|
71
77
|
currentVersion: string | null;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
key: string;
|
|
75
|
-
platform: _moonbase_sh_api_client.Platform;
|
|
76
|
-
}[] | null;
|
|
78
|
+
downloadsNeedsUser: boolean;
|
|
79
|
+
downloadsNeedsOwnership: boolean;
|
|
77
80
|
website?: string | undefined;
|
|
78
81
|
iconUrl?: string | undefined;
|
|
79
82
|
numberOfLicenses?: number | undefined;
|
|
80
83
|
numberOfTrials?: number | undefined;
|
|
81
84
|
currentActivations?: number | undefined;
|
|
82
85
|
maxActivations?: number | undefined;
|
|
86
|
+
downloads?: {
|
|
87
|
+
path: string | null;
|
|
88
|
+
name: string;
|
|
89
|
+
key: string;
|
|
90
|
+
platform: _moonbase_sh_api_client.Platform;
|
|
91
|
+
size: number;
|
|
92
|
+
}[] | undefined;
|
|
83
93
|
}>>;
|
|
84
94
|
getProductLicenses: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
85
95
|
status: _moonbase_sh_api_client.LicenseStatus;
|
|
@@ -90,18 +100,23 @@ declare function useInventory(): {
|
|
|
90
100
|
product?: {
|
|
91
101
|
id: string;
|
|
92
102
|
name: string;
|
|
103
|
+
tagline: string;
|
|
93
104
|
currentVersion: string | null;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
key: string;
|
|
97
|
-
platform: _moonbase_sh_api_client.Platform;
|
|
98
|
-
}[] | null;
|
|
105
|
+
downloadsNeedsUser: boolean;
|
|
106
|
+
downloadsNeedsOwnership: boolean;
|
|
99
107
|
website?: string | undefined;
|
|
100
108
|
iconUrl?: string | undefined;
|
|
101
109
|
numberOfLicenses?: number | undefined;
|
|
102
110
|
numberOfTrials?: number | undefined;
|
|
103
111
|
currentActivations?: number | undefined;
|
|
104
112
|
maxActivations?: number | undefined;
|
|
113
|
+
downloads?: {
|
|
114
|
+
path: string | null;
|
|
115
|
+
name: string;
|
|
116
|
+
key: string;
|
|
117
|
+
platform: _moonbase_sh_api_client.Platform;
|
|
118
|
+
size: number;
|
|
119
|
+
}[] | undefined;
|
|
105
120
|
} | undefined;
|
|
106
121
|
}>>;
|
|
107
122
|
getProductActivations: (productId: string, nextUrl?: string) => Promise<_moonbase_sh_api_client.Page<{
|
|
@@ -112,6 +127,7 @@ declare function useInventory(): {
|
|
|
112
127
|
activationMethod: _moonbase_sh_api_client.ActivationMethod;
|
|
113
128
|
lastValidatedAt: Date | null;
|
|
114
129
|
}>>;
|
|
130
|
+
revokeActivation: (activation: Activation) => Promise<void>;
|
|
115
131
|
};
|
|
116
132
|
|
|
117
133
|
declare function useVoucher(): {
|
|
@@ -126,8 +142,8 @@ declare function useVoucher(): {
|
|
|
126
142
|
type: "product";
|
|
127
143
|
id: string;
|
|
128
144
|
name: string;
|
|
129
|
-
iconUrl: string | null;
|
|
130
145
|
tagline: string;
|
|
146
|
+
iconUrl: string | null;
|
|
131
147
|
owned: boolean;
|
|
132
148
|
defaultVariation?: {
|
|
133
149
|
id: string;
|
|
@@ -175,16 +191,16 @@ declare function useVoucher(): {
|
|
|
175
191
|
type: "bundle";
|
|
176
192
|
id: string;
|
|
177
193
|
name: string;
|
|
178
|
-
iconUrl: string | null;
|
|
179
194
|
tagline: string;
|
|
195
|
+
iconUrl: string | null;
|
|
180
196
|
owned: boolean;
|
|
181
197
|
partial: boolean;
|
|
182
198
|
products: ({
|
|
183
199
|
type: "product";
|
|
184
200
|
id: string;
|
|
185
201
|
name: string;
|
|
186
|
-
iconUrl: string | null;
|
|
187
202
|
tagline: string;
|
|
203
|
+
iconUrl: string | null;
|
|
188
204
|
owned: boolean;
|
|
189
205
|
defaultVariation?: {
|
|
190
206
|
id: string;
|
|
@@ -280,8 +296,8 @@ declare function useVoucher(): {
|
|
|
280
296
|
type: "product";
|
|
281
297
|
id: string;
|
|
282
298
|
name: string;
|
|
283
|
-
iconUrl: string | null;
|
|
284
299
|
tagline: string;
|
|
300
|
+
iconUrl: string | null;
|
|
285
301
|
owned: boolean;
|
|
286
302
|
defaultVariation?: {
|
|
287
303
|
id: string;
|
|
@@ -329,16 +345,16 @@ declare function useVoucher(): {
|
|
|
329
345
|
type: "bundle";
|
|
330
346
|
id: string;
|
|
331
347
|
name: string;
|
|
332
|
-
iconUrl: string | null;
|
|
333
348
|
tagline: string;
|
|
349
|
+
iconUrl: string | null;
|
|
334
350
|
owned: boolean;
|
|
335
351
|
partial: boolean;
|
|
336
352
|
products: ({
|
|
337
353
|
type: "product";
|
|
338
354
|
id: string;
|
|
339
355
|
name: string;
|
|
340
|
-
iconUrl: string | null;
|
|
341
356
|
tagline: string;
|
|
357
|
+
iconUrl: string | null;
|
|
342
358
|
owned: boolean;
|
|
343
359
|
defaultVariation?: {
|
|
344
360
|
id: string;
|
|
@@ -498,6 +514,20 @@ declare function useCart(): {
|
|
|
498
514
|
} | undefined;
|
|
499
515
|
}[] | undefined;
|
|
500
516
|
} | undefined;
|
|
517
|
+
appliedDiscount?: {
|
|
518
|
+
type: "PercentageOffDiscount";
|
|
519
|
+
name: string;
|
|
520
|
+
percentage: number;
|
|
521
|
+
isExclusive: boolean;
|
|
522
|
+
description?: string | undefined;
|
|
523
|
+
total?: Record<string, number> | undefined;
|
|
524
|
+
} | {
|
|
525
|
+
type: "FlatAmountOffDiscount";
|
|
526
|
+
name: string;
|
|
527
|
+
isExclusive: boolean;
|
|
528
|
+
description?: string | undefined;
|
|
529
|
+
total?: Record<string, number> | undefined;
|
|
530
|
+
} | undefined;
|
|
501
531
|
} | {
|
|
502
532
|
type: "Bundle";
|
|
503
533
|
id: string;
|
|
@@ -619,6 +649,20 @@ declare function useCart(): {
|
|
|
619
649
|
} | undefined;
|
|
620
650
|
}[] | undefined;
|
|
621
651
|
} | undefined;
|
|
652
|
+
appliedDiscount?: {
|
|
653
|
+
type: "PercentageOffDiscount";
|
|
654
|
+
name: string;
|
|
655
|
+
percentage: number;
|
|
656
|
+
isExclusive: boolean;
|
|
657
|
+
description?: string | undefined;
|
|
658
|
+
total?: Record<string, number> | undefined;
|
|
659
|
+
} | {
|
|
660
|
+
type: "FlatAmountOffDiscount";
|
|
661
|
+
name: string;
|
|
662
|
+
isExclusive: boolean;
|
|
663
|
+
description?: string | undefined;
|
|
664
|
+
total?: Record<string, number> | undefined;
|
|
665
|
+
} | undefined;
|
|
622
666
|
})[]>;
|
|
623
667
|
currency: vue.ComputedRef<string>;
|
|
624
668
|
total: vue.ComputedRef<{
|
|
@@ -637,6 +681,9 @@ declare function useAuth(): {
|
|
|
637
681
|
email: string;
|
|
638
682
|
name: string;
|
|
639
683
|
tenantId: string;
|
|
684
|
+
communicationPreferences: {
|
|
685
|
+
newsletterOptIn: boolean;
|
|
686
|
+
};
|
|
640
687
|
address?: {
|
|
641
688
|
countryCode: string;
|
|
642
689
|
streetAddress1: string;
|
|
@@ -652,6 +699,9 @@ declare function useAuth(): {
|
|
|
652
699
|
email: string;
|
|
653
700
|
name: string;
|
|
654
701
|
tenantId: string;
|
|
702
|
+
communicationPreferences: {
|
|
703
|
+
newsletterOptIn: boolean;
|
|
704
|
+
};
|
|
655
705
|
address?: {
|
|
656
706
|
countryCode: string;
|
|
657
707
|
streetAddress1: string;
|
|
@@ -666,6 +716,9 @@ declare function useAuth(): {
|
|
|
666
716
|
email: string;
|
|
667
717
|
name: string;
|
|
668
718
|
tenantId: string;
|
|
719
|
+
communicationPreferences: {
|
|
720
|
+
newsletterOptIn: boolean;
|
|
721
|
+
};
|
|
669
722
|
address?: {
|
|
670
723
|
countryCode: string;
|
|
671
724
|
streetAddress1: string;
|
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.77",
|
|
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.77"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/uuid": "^9.0.7",
|