@infrab4a/connect 4.0.0-beta.17 → 4.0.0-beta.18
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/esm2020/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.mjs +5 -8
- package/esm2020/infra/hasura-graphql/repositories/catalog/category-filter-hasura-graphql.repository.mjs +2 -2
- package/esm2020/infra/hasura-graphql/repositories/catalog/filter-hasura-graphql.repository.mjs +2 -2
- package/esm2020/infra/hasura-graphql/repositories/catalog/filter-option-hasura-graphql.repository.mjs +2 -2
- package/fesm2015/infrab4a-connect.mjs +5 -9
- package/fesm2015/infrab4a-connect.mjs.map +1 -1
- package/fesm2020/infrab4a-connect.mjs +7 -10
- package/fesm2020/infrab4a-connect.mjs.map +1 -1
- package/infra/hasura-graphql/repositories/catalog/category-filter-hasura-graphql.repository.d.ts +4 -4
- package/infra/hasura-graphql/repositories/catalog/filter-hasura-graphql.repository.d.ts +4 -4
- package/infra/hasura-graphql/repositories/catalog/filter-option-hasura-graphql.repository.d.ts +4 -4
- package/package.json +1 -1
|
@@ -2446,14 +2446,11 @@ const withHasuraGraphQL = (MixinBase) => {
|
|
|
2446
2446
|
get headers() {
|
|
2447
2447
|
return {
|
|
2448
2448
|
'Content-Type': 'application/json',
|
|
2449
|
-
...(isNil(this.authOptions
|
|
2450
|
-
...(isNil(this.authOptions
|
|
2451
|
-
...(isNil(this.authOptions
|
|
2449
|
+
...(isNil(this.authOptions.authToken) ? {} : { Authorization: this.authOptions.authToken }),
|
|
2450
|
+
...(isNil(this.authOptions.adminSecret) ? {} : { 'X-Hasura-Admin-Secret': this.authOptions.adminSecret }),
|
|
2451
|
+
...(isNil(this.authOptions.authRole)
|
|
2452
2452
|
? {}
|
|
2453
|
-
: {
|
|
2454
|
-
'X-Hasura-Role': this.authOptions.authRole.role,
|
|
2455
|
-
'X-Hasura-User-Id': this.authOptions?.authRole?.userId,
|
|
2456
|
-
}),
|
|
2453
|
+
: { 'X-Hasura-Role': this.authOptions.authRole.role, 'X-Hasura-User-Id': this.authOptions.authRole.userId }),
|
|
2457
2454
|
};
|
|
2458
2455
|
}
|
|
2459
2456
|
async mutation(operation, fields, variables) {
|
|
@@ -2701,7 +2698,7 @@ class VariantHasuraGraphQL extends Variant {
|
|
|
2701
2698
|
}
|
|
2702
2699
|
|
|
2703
2700
|
class CategoryFilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
2704
|
-
constructor(
|
|
2701
|
+
constructor(endpoint, authOptions) {
|
|
2705
2702
|
super({
|
|
2706
2703
|
tableName: 'category_filter',
|
|
2707
2704
|
model: CategoryFilter,
|
|
@@ -3053,7 +3050,7 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
3053
3050
|
}
|
|
3054
3051
|
|
|
3055
3052
|
class FilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
3056
|
-
constructor(
|
|
3053
|
+
constructor(endpoint, authOptions, filterOptionRepository, categoryFilterRepository) {
|
|
3057
3054
|
super({
|
|
3058
3055
|
tableName: 'filter',
|
|
3059
3056
|
model: Filter,
|
|
@@ -3154,7 +3151,7 @@ class FilterHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGrap
|
|
|
3154
3151
|
}
|
|
3155
3152
|
|
|
3156
3153
|
class FilterOptionHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGraphQL(Base)) {
|
|
3157
|
-
constructor(
|
|
3154
|
+
constructor(endpoint, authOptions) {
|
|
3158
3155
|
super({
|
|
3159
3156
|
tableName: 'filter_option',
|
|
3160
3157
|
model: FilterOption,
|