@infrab4a/connect 4.0.0-beta.30 → 4.0.0-beta.32
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/domain/catalog/models/types/shop-description.type.d.ts +1 -0
- package/domain/generic/repository/find.repository.d.ts +3 -1
- package/domain/generic/repository/types/repository-find-result.type.d.ts +8 -1
- package/esm2020/domain/catalog/models/types/shop-description.type.mjs +1 -1
- package/esm2020/domain/generic/repository/find.repository.mjs +1 -1
- package/esm2020/domain/generic/repository/types/repository-find-result.type.mjs +1 -1
- package/esm2020/infra/firebase/firestore/mixins/with-firestore.mixin.mjs +2 -2
- package/esm2020/infra/hasura-graphql/mixins/helpers/attribute-option.helper.mjs +2 -2
- package/esm2020/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.mjs +49 -5
- package/esm2020/infra/hasura-graphql/mixins/with-hasura-graphql.mixin.mjs +1 -1
- package/esm2020/infra/hasura-graphql/models/product-hasura-graphql.mjs +1 -1
- package/esm2020/infra/hasura-graphql/repositories/catalog/product-hasura-graphql.repository.mjs +15 -5
- package/esm2020/utils/index.mjs +3 -3
- package/fesm2015/infrab4a-connect.mjs +67 -16
- package/fesm2015/infrab4a-connect.mjs.map +1 -1
- package/fesm2020/infrab4a-connect.mjs +65 -11
- package/fesm2020/infrab4a-connect.mjs.map +1 -1
- package/infra/hasura-graphql/mixins/with-find-hasura-graphql.mixin.d.ts +12 -1
- package/infra/hasura-graphql/models/product-hasura-graphql.d.ts +1 -0
- package/package.json +1 -1
- package/utils/index.d.ts +2 -2
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import { FindRepositoryParams, ModelBaseStructure, RepositoryFindResult, RepositoryOrderBy } from '../../../domain';
|
|
1
|
+
import { FindRepositoryParams, ModelBaseStructure, NonFunctionAndIdentifierPropertyNames, RepositoryFindResult, RepositoryOrderBy } from '../../../domain';
|
|
2
2
|
import { DebugHelper, MixinCtor } from '../../../utils';
|
|
3
3
|
import { GraphQLParams, GraphQLRepository, HasuraGraphQLFields } from '../types';
|
|
4
4
|
export declare const withFindHasuraGraphQL: <MBase extends ModelBaseStructure<MBase, MBase["identifiersFields"][number]>, TMixinBase extends MixinCtor<GraphQLRepository<MBase>, any[]>>(MixinBase: MixinCtor<GraphQLRepository<MBase>, any[]> & TMixinBase) => {
|
|
5
5
|
new (...args: any[]): {
|
|
6
6
|
find(params?: FindRepositoryParams<MBase>): Promise<RepositoryFindResult<MBase>>;
|
|
7
7
|
bindOrderByAttributes: (orderBy: RepositoryOrderBy<MBase>, fields: HasuraGraphQLFields<MBase>) => {};
|
|
8
|
+
bindAggretageAttributes: (aggregates: {
|
|
9
|
+
minimal?: ({} | NonFunctionAndIdentifierPropertyNames<MBase>)[];
|
|
10
|
+
maximum?: ({} | NonFunctionAndIdentifierPropertyNames<MBase>)[];
|
|
11
|
+
}, fields: HasuraGraphQLFields<MBase>) => ({
|
|
12
|
+
min: {}[];
|
|
13
|
+
max?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
max: {}[];
|
|
16
|
+
min?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
bindAttributesToColumns: (attributes: ({} | NonFunctionAndIdentifierPropertyNames<MBase>)[], fields: HasuraGraphQLFields<MBase>) => {}[];
|
|
8
19
|
tableName: string;
|
|
9
20
|
model: import("../../../domain").BaseModelBuilder<MBase, any, MBase & {
|
|
10
21
|
prototype: unknown;
|
package/package.json
CHANGED
package/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { add, addBusinessDays, addDays, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub } from 'date-fns';
|
|
2
|
-
import { chunk, each, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, unset } from 'lodash';
|
|
2
|
+
import { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, unset } from 'lodash';
|
|
3
3
|
export declare type DateDuration = Duration;
|
|
4
4
|
export * from './decorators';
|
|
5
5
|
export * from './get';
|
|
@@ -10,4 +10,4 @@ export * from './log.utils';
|
|
|
10
10
|
export * from './mixins';
|
|
11
11
|
export * from './parse-datetime';
|
|
12
12
|
export * from './types';
|
|
13
|
-
export { add, addDays, addBusinessDays, addMonths, addYears, chunk, each, endOfDay, format, formatISO9075, isBoolean, isDate, isEmpty, isInteger, isNil, isNaN, isNumber, isObject, isString, parseISO, now, omit, pick, set, startOfDay, sub, unset, };
|
|
13
|
+
export { add, addDays, addBusinessDays, addMonths, addYears, chunk, each, endOfDay, format, formatISO9075, get, isBoolean, isDate, isEmpty, isInteger, isNil, isNaN, isNumber, isObject, isString, parseISO, now, omit, pick, set, startOfDay, sub, unset, };
|