@infrab4a/connect 2.0.0 → 2.0.2
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/bundles/infrab4a-connect.umd.js +11 -3
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/models/enums/index.d.ts +1 -0
- package/domain/catalog/models/enums/product-genders.enum.d.ts +5 -0
- package/domain/catalog/models/product.d.ts +2 -1
- package/domain/catalog/models/types/index.d.ts +4 -3
- package/domain/catalog/models/types/product-gender.type.d.ts +1 -0
- package/esm2015/domain/catalog/models/enums/index.js +2 -1
- package/esm2015/domain/catalog/models/enums/product-genders.enum.js +7 -0
- package/esm2015/domain/catalog/models/product.js +1 -1
- package/esm2015/domain/catalog/models/types/index.js +5 -4
- package/esm2015/domain/catalog/models/types/product-gender.type.js +2 -0
- package/esm2015/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.js +5 -4
- package/fesm2015/infrab4a-connect.js +12 -4
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/package.json +1 -1
|
@@ -1278,6 +1278,13 @@
|
|
|
1278
1278
|
return Category;
|
|
1279
1279
|
}(BaseModel));
|
|
1280
1280
|
|
|
1281
|
+
exports.GenderDestination = void 0;
|
|
1282
|
+
(function (GenderDestination) {
|
|
1283
|
+
GenderDestination["FEMALE"] = "female";
|
|
1284
|
+
GenderDestination["MALE"] = "male";
|
|
1285
|
+
GenderDestination["UNISEX"] = "unisex";
|
|
1286
|
+
})(exports.GenderDestination || (exports.GenderDestination = {}));
|
|
1287
|
+
|
|
1281
1288
|
exports.Shops = void 0;
|
|
1282
1289
|
(function (Shops) {
|
|
1283
1290
|
Shops["MENSMARKET"] = "mensmarket";
|
|
@@ -3906,6 +3913,7 @@
|
|
|
3906
3913
|
'type',
|
|
3907
3914
|
'video',
|
|
3908
3915
|
'weight',
|
|
3916
|
+
'gender',
|
|
3909
3917
|
{
|
|
3910
3918
|
shopAvailability: {
|
|
3911
3919
|
columnName: 'shop_availabilities',
|
|
@@ -4190,7 +4198,7 @@
|
|
|
4190
4198
|
where: {
|
|
4191
4199
|
type: 'product_kit_bool_exp',
|
|
4192
4200
|
required: true,
|
|
4193
|
-
value: {
|
|
4201
|
+
value: { kit_product_id: { _eq: productId } },
|
|
4194
4202
|
},
|
|
4195
4203
|
})];
|
|
4196
4204
|
case 1:
|
|
@@ -4200,8 +4208,8 @@
|
|
|
4200
4208
|
type: '[product_kit_insert_input!]',
|
|
4201
4209
|
required: true,
|
|
4202
4210
|
value: plainData.kitProducts.map(function (kitProduct) { return ({
|
|
4203
|
-
kit_product_id:
|
|
4204
|
-
product_id: productId,
|
|
4211
|
+
kit_product_id: productId,
|
|
4212
|
+
product_id: kitProduct.productId || kitProduct.product.id,
|
|
4205
4213
|
quantity: kitProduct.quantity,
|
|
4206
4214
|
}); }),
|
|
4207
4215
|
},
|