@infrab4a/connect 5.4.0-beta.2 → 5.4.0-beta.4
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/index.cjs.js +8 -6
- package/index.esm.js +8 -6
- package/package.json +1 -1
- package/src/domain/catalog/models/variant.d.ts +0 -2
package/index.cjs.js
CHANGED
|
@@ -871,12 +871,7 @@ class Variant extends ProductBase {
|
|
|
871
871
|
static get identifiersFields() {
|
|
872
872
|
return ['id', 'productId'];
|
|
873
873
|
}
|
|
874
|
-
}
|
|
875
|
-
tslib.__decorate([
|
|
876
|
-
classTransformer.Type(() => Product),
|
|
877
|
-
tslib.__metadata("design:type", Product)
|
|
878
|
-
], Variant.prototype, "product", void 0);
|
|
879
|
-
registerClass('Product', Product);
|
|
874
|
+
}
|
|
880
875
|
|
|
881
876
|
class Product extends ProductBase {
|
|
882
877
|
}
|
|
@@ -7378,6 +7373,13 @@ const commonFields$1 = [
|
|
|
7378
7373
|
{ reviewsTotal: { columnName: 'reviews_total' } },
|
|
7379
7374
|
{ shoppingCount: { columnName: 'shopping_count' } },
|
|
7380
7375
|
{ categoryId: { columnName: 'category_id' } },
|
|
7376
|
+
{
|
|
7377
|
+
category: {
|
|
7378
|
+
columnName: 'category',
|
|
7379
|
+
foreignKeyColumn: { id: 'categoryId' },
|
|
7380
|
+
fields: ['id', 'name', 'reference', 'slug'],
|
|
7381
|
+
},
|
|
7382
|
+
},
|
|
7381
7383
|
'group',
|
|
7382
7384
|
'validity',
|
|
7383
7385
|
{ tagsCollection: { columnName: 'tags_collection', type: HasuraGraphQLColumnType.Jsonb } },
|
package/index.esm.js
CHANGED
|
@@ -847,12 +847,7 @@ class Variant extends ProductBase {
|
|
|
847
847
|
static get identifiersFields() {
|
|
848
848
|
return ['id', 'productId'];
|
|
849
849
|
}
|
|
850
|
-
}
|
|
851
|
-
__decorate([
|
|
852
|
-
Type(() => Product),
|
|
853
|
-
__metadata("design:type", Product)
|
|
854
|
-
], Variant.prototype, "product", void 0);
|
|
855
|
-
registerClass('Product', Product);
|
|
850
|
+
}
|
|
856
851
|
|
|
857
852
|
class Product extends ProductBase {
|
|
858
853
|
}
|
|
@@ -7354,6 +7349,13 @@ const commonFields$1 = [
|
|
|
7354
7349
|
{ reviewsTotal: { columnName: 'reviews_total' } },
|
|
7355
7350
|
{ shoppingCount: { columnName: 'shopping_count' } },
|
|
7356
7351
|
{ categoryId: { columnName: 'category_id' } },
|
|
7352
|
+
{
|
|
7353
|
+
category: {
|
|
7354
|
+
columnName: 'category',
|
|
7355
|
+
foreignKeyColumn: { id: 'categoryId' },
|
|
7356
|
+
fields: ['id', 'name', 'reference', 'slug'],
|
|
7357
|
+
},
|
|
7358
|
+
},
|
|
7357
7359
|
'group',
|
|
7358
7360
|
'validity',
|
|
7359
7361
|
{ tagsCollection: { columnName: 'tags_collection', type: HasuraGraphQLColumnType.Jsonb } },
|
package/package.json
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { Product } from './product';
|
|
2
1
|
import { ProductBase } from './product-base';
|
|
3
2
|
import { VariantGrade } from './types';
|
|
4
3
|
export type ProductVariantIdentifiers = 'id' | 'productId';
|
|
5
4
|
export declare class Variant extends ProductBase<Variant, ProductVariantIdentifiers> {
|
|
6
5
|
productId: string;
|
|
7
6
|
grade?: VariantGrade[];
|
|
8
|
-
product?: Product;
|
|
9
7
|
static get identifiersFields(): ProductVariantIdentifiers[];
|
|
10
8
|
}
|