@haus-tech/badge-plugin 2.2.3 → 3.0.0
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/badge.plugin.js
CHANGED
|
@@ -15,6 +15,10 @@ const typeorm_1 = require("typeorm");
|
|
|
15
15
|
let Badge = class Badge extends core_1.VendureEntity {
|
|
16
16
|
constructor(input) {
|
|
17
17
|
super(input);
|
|
18
|
+
//TODO - this is a workaround for the issue with the assetId decorator
|
|
19
|
+
if (input) {
|
|
20
|
+
Object.assign(this, input);
|
|
21
|
+
}
|
|
18
22
|
}
|
|
19
23
|
position;
|
|
20
24
|
order;
|
|
@@ -25,7 +29,7 @@ let Badge = class Badge extends core_1.VendureEntity {
|
|
|
25
29
|
collectionId;
|
|
26
30
|
};
|
|
27
31
|
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)(),
|
|
32
|
+
(0, typeorm_1.Column)({ default: 'top-left' }),
|
|
29
33
|
__metadata("design:type", String)
|
|
30
34
|
], Badge.prototype, "position", void 0);
|
|
31
35
|
__decorate([
|
|
@@ -3,7 +3,7 @@ import { TypedBaseListComponent, NotificationService, ModalService, SelectionMan
|
|
|
3
3
|
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
4
4
|
import { Badge } from './gql/graphql';
|
|
5
5
|
import { Asset } from '@vendure/core';
|
|
6
|
-
declare const getBadgeListDocument: import("
|
|
6
|
+
declare const getBadgeListDocument: import("apollo-angular").TypedDocumentNode<import("./gql/graphql").GetBadgesQuery, import("./gql/graphql").Exact<{
|
|
7
7
|
options?: import("./gql/graphql").InputMaybe<import("./gql/graphql").BadgeListOptions> | undefined;
|
|
8
8
|
}>>;
|
|
9
9
|
export interface BadgePluginOptions {
|