@moonbase.sh/vue 0.1.58 → 0.1.60

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
@@ -102,6 +102,20 @@ declare function useCart(): {
102
102
  id: string;
103
103
  price: Record<string, number>;
104
104
  name: string;
105
+ originalPrice: Record<string, number>;
106
+ hasDiscount: boolean;
107
+ discount?: {
108
+ type: "PercentageOffDiscount";
109
+ name: string;
110
+ percentage: number;
111
+ total: Record<string, number>;
112
+ description?: string | undefined;
113
+ } | {
114
+ type: "FlatAmountOffDiscount";
115
+ name: string;
116
+ total: Record<string, number>;
117
+ description?: string | undefined;
118
+ } | undefined;
105
119
  } | undefined;
106
120
  product?: {
107
121
  type: "product";
@@ -109,15 +123,44 @@ declare function useCart(): {
109
123
  name: string;
110
124
  tagline: string;
111
125
  iconUrl: string;
126
+ owned: boolean;
112
127
  defaultVariation?: {
113
128
  id: string;
114
129
  price: Record<string, number>;
115
130
  name: string;
131
+ originalPrice: Record<string, number>;
132
+ hasDiscount: boolean;
133
+ discount?: {
134
+ type: "PercentageOffDiscount";
135
+ name: string;
136
+ percentage: number;
137
+ total: Record<string, number>;
138
+ description?: string | undefined;
139
+ } | {
140
+ type: "FlatAmountOffDiscount";
141
+ name: string;
142
+ total: Record<string, number>;
143
+ description?: string | undefined;
144
+ } | undefined;
116
145
  } | undefined;
117
146
  variations?: {
118
147
  id: string;
119
148
  price: Record<string, number>;
120
149
  name: string;
150
+ originalPrice: Record<string, number>;
151
+ hasDiscount: boolean;
152
+ discount?: {
153
+ type: "PercentageOffDiscount";
154
+ name: string;
155
+ percentage: number;
156
+ total: Record<string, number>;
157
+ description?: string | undefined;
158
+ } | {
159
+ type: "FlatAmountOffDiscount";
160
+ name: string;
161
+ total: Record<string, number>;
162
+ description?: string | undefined;
163
+ } | undefined;
121
164
  }[] | undefined;
122
165
  } | undefined;
123
166
  } | {
@@ -131,6 +174,20 @@ declare function useCart(): {
131
174
  id: string;
132
175
  price: Record<string, number>;
133
176
  name: string;
177
+ originalPrice: Record<string, number>;
178
+ hasDiscount: boolean;
179
+ discount?: {
180
+ type: "PercentageOffDiscount";
181
+ name: string;
182
+ percentage: number;
183
+ total: Record<string, number>;
184
+ description?: string | undefined;
185
+ } | {
186
+ type: "FlatAmountOffDiscount";
187
+ name: string;
188
+ total: Record<string, number>;
189
+ description?: string | undefined;
190
+ } | undefined;
134
191
  } | undefined;
135
192
  bundle?: {
136
193
  type: "bundle";
@@ -144,26 +201,83 @@ declare function useCart(): {
144
201
  name: string;
145
202
  tagline: string;
146
203
  iconUrl: string;
204
+ owned: boolean;
147
205
  defaultVariation?: {
148
206
  id: string;
149
207
  price: Record<string, number>;
150
208
  name: string;
209
+ originalPrice: Record<string, number>;
210
+ hasDiscount: boolean;
211
+ discount?: {
212
+ type: "PercentageOffDiscount";
213
+ name: string;
214
+ percentage: number;
215
+ total: Record<string, number>;
216
+ description?: string | undefined;
217
+ } | {
218
+ type: "FlatAmountOffDiscount";
219
+ name: string;
220
+ total: Record<string, number>;
221
+ description?: string | undefined;
222
+ } | undefined;
151
223
  } | undefined;
152
224
  variations?: {
153
225
  id: string;
154
226
  price: Record<string, number>;
155
227
  name: string;
228
+ originalPrice: Record<string, number>;
229
+ hasDiscount: boolean;
230
+ discount?: {
231
+ type: "PercentageOffDiscount";
232
+ name: string;
233
+ percentage: number;
234
+ total: Record<string, number>;
235
+ description?: string | undefined;
236
+ } | {
237
+ type: "FlatAmountOffDiscount";
238
+ name: string;
239
+ total: Record<string, number>;
240
+ description?: string | undefined;
241
+ } | undefined;
156
242
  }[] | undefined;
157
243
  }[];
158
244
  defaultVariation?: {
159
245
  id: string;
160
246
  price: Record<string, number>;
161
247
  name: string;
248
+ originalPrice: Record<string, number>;
249
+ hasDiscount: boolean;
250
+ discount?: {
251
+ type: "PercentageOffDiscount";
252
+ name: string;
253
+ percentage: number;
254
+ total: Record<string, number>;
255
+ description?: string | undefined;
256
+ } | {
257
+ type: "FlatAmountOffDiscount";
258
+ name: string;
259
+ total: Record<string, number>;
260
+ description?: string | undefined;
261
+ } | undefined;
162
262
  } | undefined;
163
263
  variations?: {
164
264
  id: string;
165
265
  price: Record<string, number>;
166
266
  name: string;
267
+ originalPrice: Record<string, number>;
268
+ hasDiscount: boolean;
269
+ discount?: {
270
+ type: "PercentageOffDiscount";
271
+ name: string;
272
+ percentage: number;
273
+ total: Record<string, number>;
274
+ description?: string | undefined;
275
+ } | {
276
+ type: "FlatAmountOffDiscount";
277
+ name: string;
278
+ total: Record<string, number>;
279
+ description?: string | undefined;
280
+ } | undefined;
167
281
  }[] | undefined;
168
282
  } | undefined;
169
283
  })[]>;
package/dist/index.d.ts CHANGED
@@ -102,6 +102,20 @@ declare function useCart(): {
102
102
  id: string;
103
103
  price: Record<string, number>;
104
104
  name: string;
105
+ originalPrice: Record<string, number>;
106
+ hasDiscount: boolean;
107
+ discount?: {
108
+ type: "PercentageOffDiscount";
109
+ name: string;
110
+ percentage: number;
111
+ total: Record<string, number>;
112
+ description?: string | undefined;
113
+ } | {
114
+ type: "FlatAmountOffDiscount";
115
+ name: string;
116
+ total: Record<string, number>;
117
+ description?: string | undefined;
118
+ } | undefined;
105
119
  } | undefined;
106
120
  product?: {
107
121
  type: "product";
@@ -109,15 +123,44 @@ declare function useCart(): {
109
123
  name: string;
110
124
  tagline: string;
111
125
  iconUrl: string;
126
+ owned: boolean;
112
127
  defaultVariation?: {
113
128
  id: string;
114
129
  price: Record<string, number>;
115
130
  name: string;
131
+ originalPrice: Record<string, number>;
132
+ hasDiscount: boolean;
133
+ discount?: {
134
+ type: "PercentageOffDiscount";
135
+ name: string;
136
+ percentage: number;
137
+ total: Record<string, number>;
138
+ description?: string | undefined;
139
+ } | {
140
+ type: "FlatAmountOffDiscount";
141
+ name: string;
142
+ total: Record<string, number>;
143
+ description?: string | undefined;
144
+ } | undefined;
116
145
  } | undefined;
117
146
  variations?: {
118
147
  id: string;
119
148
  price: Record<string, number>;
120
149
  name: string;
150
+ originalPrice: Record<string, number>;
151
+ hasDiscount: boolean;
152
+ discount?: {
153
+ type: "PercentageOffDiscount";
154
+ name: string;
155
+ percentage: number;
156
+ total: Record<string, number>;
157
+ description?: string | undefined;
158
+ } | {
159
+ type: "FlatAmountOffDiscount";
160
+ name: string;
161
+ total: Record<string, number>;
162
+ description?: string | undefined;
163
+ } | undefined;
121
164
  }[] | undefined;
122
165
  } | undefined;
123
166
  } | {
@@ -131,6 +174,20 @@ declare function useCart(): {
131
174
  id: string;
132
175
  price: Record<string, number>;
133
176
  name: string;
177
+ originalPrice: Record<string, number>;
178
+ hasDiscount: boolean;
179
+ discount?: {
180
+ type: "PercentageOffDiscount";
181
+ name: string;
182
+ percentage: number;
183
+ total: Record<string, number>;
184
+ description?: string | undefined;
185
+ } | {
186
+ type: "FlatAmountOffDiscount";
187
+ name: string;
188
+ total: Record<string, number>;
189
+ description?: string | undefined;
190
+ } | undefined;
134
191
  } | undefined;
135
192
  bundle?: {
136
193
  type: "bundle";
@@ -144,26 +201,83 @@ declare function useCart(): {
144
201
  name: string;
145
202
  tagline: string;
146
203
  iconUrl: string;
204
+ owned: boolean;
147
205
  defaultVariation?: {
148
206
  id: string;
149
207
  price: Record<string, number>;
150
208
  name: string;
209
+ originalPrice: Record<string, number>;
210
+ hasDiscount: boolean;
211
+ discount?: {
212
+ type: "PercentageOffDiscount";
213
+ name: string;
214
+ percentage: number;
215
+ total: Record<string, number>;
216
+ description?: string | undefined;
217
+ } | {
218
+ type: "FlatAmountOffDiscount";
219
+ name: string;
220
+ total: Record<string, number>;
221
+ description?: string | undefined;
222
+ } | undefined;
151
223
  } | undefined;
152
224
  variations?: {
153
225
  id: string;
154
226
  price: Record<string, number>;
155
227
  name: string;
228
+ originalPrice: Record<string, number>;
229
+ hasDiscount: boolean;
230
+ discount?: {
231
+ type: "PercentageOffDiscount";
232
+ name: string;
233
+ percentage: number;
234
+ total: Record<string, number>;
235
+ description?: string | undefined;
236
+ } | {
237
+ type: "FlatAmountOffDiscount";
238
+ name: string;
239
+ total: Record<string, number>;
240
+ description?: string | undefined;
241
+ } | undefined;
156
242
  }[] | undefined;
157
243
  }[];
158
244
  defaultVariation?: {
159
245
  id: string;
160
246
  price: Record<string, number>;
161
247
  name: string;
248
+ originalPrice: Record<string, number>;
249
+ hasDiscount: boolean;
250
+ discount?: {
251
+ type: "PercentageOffDiscount";
252
+ name: string;
253
+ percentage: number;
254
+ total: Record<string, number>;
255
+ description?: string | undefined;
256
+ } | {
257
+ type: "FlatAmountOffDiscount";
258
+ name: string;
259
+ total: Record<string, number>;
260
+ description?: string | undefined;
261
+ } | undefined;
162
262
  } | undefined;
163
263
  variations?: {
164
264
  id: string;
165
265
  price: Record<string, number>;
166
266
  name: string;
267
+ originalPrice: Record<string, number>;
268
+ hasDiscount: boolean;
269
+ discount?: {
270
+ type: "PercentageOffDiscount";
271
+ name: string;
272
+ percentage: number;
273
+ total: Record<string, number>;
274
+ description?: string | undefined;
275
+ } | {
276
+ type: "FlatAmountOffDiscount";
277
+ name: string;
278
+ total: Record<string, number>;
279
+ description?: string | undefined;
280
+ } | undefined;
167
281
  }[] | undefined;
168
282
  } | undefined;
169
283
  })[]>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moonbase.sh/vue",
3
3
  "type": "module",
4
- "version": "0.1.58",
4
+ "version": "0.1.60",
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.58"
21
+ "@moonbase.sh/api-client": "0.1.60"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/uuid": "^9.0.7",