@infrab4a/connect 5.4.0-beta.13 → 5.4.0-beta.16
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 +25 -2
- package/index.esm.js +25 -2
- package/package.json +1 -1
- package/src/domain/catalog/models/product-review.d.ts +2 -0
package/index.cjs.js
CHANGED
|
@@ -829,7 +829,12 @@ class ProductReview extends BaseModel {
|
|
|
829
829
|
static get identifiersFields() {
|
|
830
830
|
return ['id'];
|
|
831
831
|
}
|
|
832
|
-
}
|
|
832
|
+
}
|
|
833
|
+
tslib.__decorate([
|
|
834
|
+
classTransformer.Type(resolveClass('Product')),
|
|
835
|
+
tslib.__metadata("design:type", Function)
|
|
836
|
+
], ProductReview.prototype, "product", void 0);
|
|
837
|
+
registerClass('ProductReview', ProductReview);
|
|
833
838
|
|
|
834
839
|
class ProductBase extends BaseModel {
|
|
835
840
|
get evaluation() {
|
|
@@ -8468,7 +8473,25 @@ class ProductReviewHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHas
|
|
|
8468
8473
|
product: {
|
|
8469
8474
|
columnName: 'product',
|
|
8470
8475
|
foreignKeyColumn: { id: 'productId' },
|
|
8471
|
-
fields: [
|
|
8476
|
+
fields: [
|
|
8477
|
+
'id',
|
|
8478
|
+
{
|
|
8479
|
+
productId: {
|
|
8480
|
+
columnName: 'main_product_id',
|
|
8481
|
+
to: (value) => +value,
|
|
8482
|
+
from: (value) => value?.toString(),
|
|
8483
|
+
},
|
|
8484
|
+
},
|
|
8485
|
+
'ean',
|
|
8486
|
+
'sku',
|
|
8487
|
+
'name',
|
|
8488
|
+
'brand',
|
|
8489
|
+
'slug',
|
|
8490
|
+
'images',
|
|
8491
|
+
'grade',
|
|
8492
|
+
'gender',
|
|
8493
|
+
'',
|
|
8494
|
+
],
|
|
8472
8495
|
},
|
|
8473
8496
|
},
|
|
8474
8497
|
],
|
package/index.esm.js
CHANGED
|
@@ -805,7 +805,12 @@ class ProductReview extends BaseModel {
|
|
|
805
805
|
static get identifiersFields() {
|
|
806
806
|
return ['id'];
|
|
807
807
|
}
|
|
808
|
-
}
|
|
808
|
+
}
|
|
809
|
+
__decorate([
|
|
810
|
+
Type(resolveClass('Product')),
|
|
811
|
+
__metadata("design:type", Function)
|
|
812
|
+
], ProductReview.prototype, "product", void 0);
|
|
813
|
+
registerClass('ProductReview', ProductReview);
|
|
809
814
|
|
|
810
815
|
class ProductBase extends BaseModel {
|
|
811
816
|
get evaluation() {
|
|
@@ -8444,7 +8449,25 @@ class ProductReviewHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHas
|
|
|
8444
8449
|
product: {
|
|
8445
8450
|
columnName: 'product',
|
|
8446
8451
|
foreignKeyColumn: { id: 'productId' },
|
|
8447
|
-
fields: [
|
|
8452
|
+
fields: [
|
|
8453
|
+
'id',
|
|
8454
|
+
{
|
|
8455
|
+
productId: {
|
|
8456
|
+
columnName: 'main_product_id',
|
|
8457
|
+
to: (value) => +value,
|
|
8458
|
+
from: (value) => value?.toString(),
|
|
8459
|
+
},
|
|
8460
|
+
},
|
|
8461
|
+
'ean',
|
|
8462
|
+
'sku',
|
|
8463
|
+
'name',
|
|
8464
|
+
'brand',
|
|
8465
|
+
'slug',
|
|
8466
|
+
'images',
|
|
8467
|
+
'grade',
|
|
8468
|
+
'gender',
|
|
8469
|
+
'',
|
|
8470
|
+
],
|
|
8448
8471
|
},
|
|
8449
8472
|
},
|
|
8450
8473
|
],
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseModel, GenericIdentifier } from '../../generic/model';
|
|
2
2
|
import { Shops } from './enums';
|
|
3
|
+
import type { Product } from './product';
|
|
3
4
|
export declare class ProductReview extends BaseModel<ProductReview> {
|
|
4
5
|
id: number;
|
|
5
6
|
productId: string;
|
|
@@ -16,5 +17,6 @@ export declare class ProductReview extends BaseModel<ProductReview> {
|
|
|
16
17
|
orderId?: string;
|
|
17
18
|
createdAt?: Date;
|
|
18
19
|
updatedAt?: Date;
|
|
20
|
+
product: Product;
|
|
19
21
|
static get identifiersFields(): GenericIdentifier[];
|
|
20
22
|
}
|