@moonbase.sh/vue 0.1.76 → 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.d.cts CHANGED
@@ -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
- downloads: {
48
- name: string;
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
- downloads: {
73
- name: string;
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
- downloads: {
95
- name: string;
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<{
@@ -127,8 +142,8 @@ declare function useVoucher(): {
127
142
  type: "product";
128
143
  id: string;
129
144
  name: string;
130
- iconUrl: string | null;
131
145
  tagline: string;
146
+ iconUrl: string | null;
132
147
  owned: boolean;
133
148
  defaultVariation?: {
134
149
  id: string;
@@ -176,16 +191,16 @@ declare function useVoucher(): {
176
191
  type: "bundle";
177
192
  id: string;
178
193
  name: string;
179
- iconUrl: string | null;
180
194
  tagline: string;
195
+ iconUrl: string | null;
181
196
  owned: boolean;
182
197
  partial: boolean;
183
198
  products: ({
184
199
  type: "product";
185
200
  id: string;
186
201
  name: string;
187
- iconUrl: string | null;
188
202
  tagline: string;
203
+ iconUrl: string | null;
189
204
  owned: boolean;
190
205
  defaultVariation?: {
191
206
  id: string;
@@ -281,8 +296,8 @@ declare function useVoucher(): {
281
296
  type: "product";
282
297
  id: string;
283
298
  name: string;
284
- iconUrl: string | null;
285
299
  tagline: string;
300
+ iconUrl: string | null;
286
301
  owned: boolean;
287
302
  defaultVariation?: {
288
303
  id: string;
@@ -330,16 +345,16 @@ declare function useVoucher(): {
330
345
  type: "bundle";
331
346
  id: string;
332
347
  name: string;
333
- iconUrl: string | null;
334
348
  tagline: string;
349
+ iconUrl: string | null;
335
350
  owned: boolean;
336
351
  partial: boolean;
337
352
  products: ({
338
353
  type: "product";
339
354
  id: string;
340
355
  name: string;
341
- iconUrl: string | null;
342
356
  tagline: string;
357
+ iconUrl: string | null;
343
358
  owned: boolean;
344
359
  defaultVariation?: {
345
360
  id: string;
@@ -499,6 +514,20 @@ declare function useCart(): {
499
514
  } | undefined;
500
515
  }[] | undefined;
501
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;
502
531
  } | {
503
532
  type: "Bundle";
504
533
  id: string;
@@ -620,6 +649,20 @@ declare function useCart(): {
620
649
  } | undefined;
621
650
  }[] | undefined;
622
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;
623
666
  })[]>;
624
667
  currency: vue.ComputedRef<string>;
625
668
  total: vue.ComputedRef<{
@@ -638,6 +681,9 @@ declare function useAuth(): {
638
681
  email: string;
639
682
  name: string;
640
683
  tenantId: string;
684
+ communicationPreferences: {
685
+ newsletterOptIn: boolean;
686
+ };
641
687
  address?: {
642
688
  countryCode: string;
643
689
  streetAddress1: string;
@@ -653,6 +699,9 @@ declare function useAuth(): {
653
699
  email: string;
654
700
  name: string;
655
701
  tenantId: string;
702
+ communicationPreferences: {
703
+ newsletterOptIn: boolean;
704
+ };
656
705
  address?: {
657
706
  countryCode: string;
658
707
  streetAddress1: string;
@@ -667,6 +716,9 @@ declare function useAuth(): {
667
716
  email: string;
668
717
  name: string;
669
718
  tenantId: string;
719
+ communicationPreferences: {
720
+ newsletterOptIn: boolean;
721
+ };
670
722
  address?: {
671
723
  countryCode: string;
672
724
  streetAddress1: string;
package/dist/index.d.ts CHANGED
@@ -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
- downloads: {
48
- name: string;
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
- downloads: {
73
- name: string;
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
- downloads: {
95
- name: string;
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<{
@@ -127,8 +142,8 @@ declare function useVoucher(): {
127
142
  type: "product";
128
143
  id: string;
129
144
  name: string;
130
- iconUrl: string | null;
131
145
  tagline: string;
146
+ iconUrl: string | null;
132
147
  owned: boolean;
133
148
  defaultVariation?: {
134
149
  id: string;
@@ -176,16 +191,16 @@ declare function useVoucher(): {
176
191
  type: "bundle";
177
192
  id: string;
178
193
  name: string;
179
- iconUrl: string | null;
180
194
  tagline: string;
195
+ iconUrl: string | null;
181
196
  owned: boolean;
182
197
  partial: boolean;
183
198
  products: ({
184
199
  type: "product";
185
200
  id: string;
186
201
  name: string;
187
- iconUrl: string | null;
188
202
  tagline: string;
203
+ iconUrl: string | null;
189
204
  owned: boolean;
190
205
  defaultVariation?: {
191
206
  id: string;
@@ -281,8 +296,8 @@ declare function useVoucher(): {
281
296
  type: "product";
282
297
  id: string;
283
298
  name: string;
284
- iconUrl: string | null;
285
299
  tagline: string;
300
+ iconUrl: string | null;
286
301
  owned: boolean;
287
302
  defaultVariation?: {
288
303
  id: string;
@@ -330,16 +345,16 @@ declare function useVoucher(): {
330
345
  type: "bundle";
331
346
  id: string;
332
347
  name: string;
333
- iconUrl: string | null;
334
348
  tagline: string;
349
+ iconUrl: string | null;
335
350
  owned: boolean;
336
351
  partial: boolean;
337
352
  products: ({
338
353
  type: "product";
339
354
  id: string;
340
355
  name: string;
341
- iconUrl: string | null;
342
356
  tagline: string;
357
+ iconUrl: string | null;
343
358
  owned: boolean;
344
359
  defaultVariation?: {
345
360
  id: string;
@@ -499,6 +514,20 @@ declare function useCart(): {
499
514
  } | undefined;
500
515
  }[] | undefined;
501
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;
502
531
  } | {
503
532
  type: "Bundle";
504
533
  id: string;
@@ -620,6 +649,20 @@ declare function useCart(): {
620
649
  } | undefined;
621
650
  }[] | undefined;
622
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;
623
666
  })[]>;
624
667
  currency: vue.ComputedRef<string>;
625
668
  total: vue.ComputedRef<{
@@ -638,6 +681,9 @@ declare function useAuth(): {
638
681
  email: string;
639
682
  name: string;
640
683
  tenantId: string;
684
+ communicationPreferences: {
685
+ newsletterOptIn: boolean;
686
+ };
641
687
  address?: {
642
688
  countryCode: string;
643
689
  streetAddress1: string;
@@ -653,6 +699,9 @@ declare function useAuth(): {
653
699
  email: string;
654
700
  name: string;
655
701
  tenantId: string;
702
+ communicationPreferences: {
703
+ newsletterOptIn: boolean;
704
+ };
656
705
  address?: {
657
706
  countryCode: string;
658
707
  streetAddress1: string;
@@ -667,6 +716,9 @@ declare function useAuth(): {
667
716
  email: string;
668
717
  name: string;
669
718
  tenantId: string;
719
+ communicationPreferences: {
720
+ newsletterOptIn: boolean;
721
+ };
670
722
  address?: {
671
723
  countryCode: string;
672
724
  streetAddress1: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/vue",
3
3
  "type": "module",
4
- "version": "0.1.76",
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.76"
21
+ "@moonbase.sh/api-client": "0.1.77"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/uuid": "^9.0.7",