@infrab4a/connect 3.6.0 → 3.6.1-beta.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/bundles/infrab4a-connect.umd.js +3 -2
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/catalog/models/variant.d.ts +1 -0
- package/esm2015/domain/catalog/models/variant.js +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +3 -3
- package/esm2015/infra/hasura-graphql/mixins/with-get-hasura-graphql.mixin.js +2 -2
- package/esm2015/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.js +2 -1
- package/fesm2015/infrab4a-connect.js +3 -2
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +2 -2
- package/package.json +1 -1
|
@@ -2019,7 +2019,7 @@
|
|
|
2019
2019
|
doc = _a.sent();
|
|
2020
2020
|
data = doc.data();
|
|
2021
2021
|
if (lodash.isNil(data))
|
|
2022
|
-
throw new NotFoundError("Document " +
|
|
2022
|
+
throw new NotFoundError("Document " + this.model.constructor.name + " not found with id " + Object.values(identifiers).shift().toString());
|
|
2023
2023
|
return [2 /*return*/, data];
|
|
2024
2024
|
}
|
|
2025
2025
|
});
|
|
@@ -3638,7 +3638,7 @@
|
|
|
3638
3638
|
result = _b.sent();
|
|
3639
3639
|
data = result[this.getGraphQLOperation];
|
|
3640
3640
|
if (lodash.isNil(data))
|
|
3641
|
-
throw new NotFoundError(instance.constructor.name + " not found");
|
|
3641
|
+
throw new NotFoundError(instance.constructor.name + " not found with identifiers: " + JSON.stringify(identifiers));
|
|
3642
3642
|
return [2 /*return*/, this.convertDataFromHasura(result[this.getGraphQLOperation])];
|
|
3643
3643
|
}
|
|
3644
3644
|
});
|
|
@@ -5237,6 +5237,7 @@
|
|
|
5237
5237
|
'weight',
|
|
5238
5238
|
{ name: { to: function () { return ''; }, from: function () { return undefined; } } },
|
|
5239
5239
|
{ hasVariants: { columnName: 'has_variants', to: function () { return false; }, from: function () { return undefined; } } },
|
|
5240
|
+
{ shoppingCount: { columnName: 'shopping_count' } },
|
|
5240
5241
|
{ createdAt: { columnName: 'created_at' } },
|
|
5241
5242
|
{ updatedAt: { columnName: 'updated_at' } },
|
|
5242
5243
|
{
|