@infrab4a/connect 5.4.0-beta.8 → 5.4.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/index.cjs.js +11 -505
- package/index.esm.js +14 -499
- package/package.json +3 -3
- package/src/domain/catalog/models/product-base.d.ts +0 -1
- package/src/domain/catalog/models/product.d.ts +0 -1
- package/src/domain/catalog/repositories/index.d.ts +0 -1
- package/src/domain/shopping/models/order.d.ts +7 -1
- package/src/infra/hasura-graphql/repositories/catalog/index.d.ts +0 -1
- package/src/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts +0 -1
- package/src/utils/index.d.ts +2 -2
- package/src/domain/catalog/repositories/product-catalog.repository.d.ts +0 -17
- package/src/infra/hasura-graphql/repositories/catalog/product-catalog-hasura-graphql.repository.d.ts +0 -20
|
@@ -5,7 +5,6 @@ export * from './category.repository';
|
|
|
5
5
|
export * from './filter-option.repository';
|
|
6
6
|
export * from './filter.repository';
|
|
7
7
|
export * from './group.repository';
|
|
8
|
-
export * from './product-catalog.repository';
|
|
9
8
|
export * from './product-errors.repository';
|
|
10
9
|
export * from './product-reviews.repository';
|
|
11
10
|
export * from './product-stock-notification.repository';
|
|
@@ -11,8 +11,14 @@ export declare class Order extends Checkout {
|
|
|
11
11
|
deliveredAt?: string;
|
|
12
12
|
trackingEvents?: OrderTrackingEvent[];
|
|
13
13
|
payment: PaymentTransaction;
|
|
14
|
-
pedidov?: number;
|
|
15
14
|
reshipmentOrderId?: string;
|
|
16
15
|
isChange?: boolean;
|
|
17
16
|
isReshipment?: boolean;
|
|
17
|
+
pedidov?: number;
|
|
18
|
+
metadata?: {
|
|
19
|
+
ip?: string;
|
|
20
|
+
userAgent?: string;
|
|
21
|
+
plataform?: string;
|
|
22
|
+
origin?: string;
|
|
23
|
+
};
|
|
18
24
|
}
|
|
@@ -4,7 +4,6 @@ export * from './category-hasura-graphql.repository';
|
|
|
4
4
|
export * from './category-product-hasura-graphql.repository';
|
|
5
5
|
export * from './filter-hasura-graphql.repository';
|
|
6
6
|
export * from './filter-option-hasura-graphql.repository';
|
|
7
|
-
export * from './product-catalog-hasura-graphql.repository';
|
|
8
7
|
export * from './product-errors-hasura-graphql.repository';
|
|
9
8
|
export * from './product-hasura-graphql.repository';
|
|
10
9
|
export * from './product-review-hasura-graphql.repository';
|
package/src/infra/hasura-graphql/repositories/catalog/variant-hasura-graphql.repository.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export declare class VariantHasuraGraphQLRepository extends VariantHasuraGraphQL
|
|
|
8
8
|
find(params?: FindRepositoryParams<VariantHasuraGraphQL>): Promise<RepositoryFindResult<VariantHasuraGraphQL>>;
|
|
9
9
|
getByEAN(EAN: string): Promise<VariantHasuraGraphQL>;
|
|
10
10
|
update(params: UpdateRepositoryParams<VariantHasuraGraphQL>): Promise<VariantHasuraGraphQL>;
|
|
11
|
-
private updateMetadata;
|
|
12
11
|
private getId;
|
|
13
12
|
}
|
|
14
13
|
export {};
|
package/src/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { add, addBusinessDays, addDays, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
|
|
2
|
-
import { formatInTimeZone
|
|
2
|
+
import { formatInTimeZone } from 'date-fns-tz';
|
|
3
3
|
import { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, sortBy, unset } from 'lodash';
|
|
4
4
|
export type DateDuration = Duration;
|
|
5
5
|
export * from './circular-dependencies';
|
|
@@ -14,4 +14,4 @@ export * from './obs-emitter';
|
|
|
14
14
|
export * from './parse-datetime';
|
|
15
15
|
export * from './serialize';
|
|
16
16
|
export * from './types';
|
|
17
|
-
export { add, addBusinessDays, addDays, addMonths, addYears,
|
|
17
|
+
export { add, addBusinessDays, addDays, addMonths, addYears, formatInTimeZone, chunk, each, endOfDay, format, formatISO9075, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, parseISO, pick, set, sortBy, startOfDay, sub, subDays, unset, };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ProductHasuraGraphQL } from '../../../infra';
|
|
2
|
-
import { FindRepositoryParams, RepositoryCacheOptions, RepositoryFindResult } from '../../generic';
|
|
3
|
-
import { Product, ProductGender } from '../models';
|
|
4
|
-
export interface ProductCatalogRepository {
|
|
5
|
-
get({ id }: {
|
|
6
|
-
id: string;
|
|
7
|
-
}): Promise<Product>;
|
|
8
|
-
find(params?: FindRepositoryParams<ProductHasuraGraphQL>, optionsParams?: {
|
|
9
|
-
cache?: RepositoryCacheOptions;
|
|
10
|
-
}): Promise<RepositoryFindResult<ProductHasuraGraphQL>>;
|
|
11
|
-
getByEAN(EAN: string, options?: {
|
|
12
|
-
cache?: RepositoryCacheOptions;
|
|
13
|
-
}): Promise<Product>;
|
|
14
|
-
findCatalog(params: FindRepositoryParams<Product>, mainGender?: Extract<ProductGender, 'female' | 'male' | 'unisex'>, options?: {
|
|
15
|
-
cache?: RepositoryCacheOptions;
|
|
16
|
-
}): Promise<RepositoryFindResult<Product>>;
|
|
17
|
-
}
|
package/src/infra/hasura-graphql/repositories/catalog/product-catalog-hasura-graphql.repository.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FindRepositoryParams, Product, ProductCatalogRepository, ProductGender, RepositoryCacheOptions, RepositoryFindResult } from '../../../../domain';
|
|
2
|
-
import { HasuraConstructorParams } from '../../mixins';
|
|
3
|
-
import { ProductHasuraGraphQL } from '../../models';
|
|
4
|
-
declare const ProductCatalogHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<ProductHasuraGraphQL> & import("../../../../domain").FindRepository<ProductHasuraGraphQL, FindRepositoryParams<ProductHasuraGraphQL>>, any[]>;
|
|
5
|
-
export declare class ProductCatalogHasuraGraphQLRepository extends ProductCatalogHasuraGraphQLRepository_base implements ProductCatalogRepository {
|
|
6
|
-
constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<ProductHasuraGraphQL>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>);
|
|
7
|
-
get({ id }: {
|
|
8
|
-
id: string;
|
|
9
|
-
}): Promise<Product>;
|
|
10
|
-
getByEAN(EAN: string, options?: {
|
|
11
|
-
cache?: RepositoryCacheOptions;
|
|
12
|
-
}): Promise<Product>;
|
|
13
|
-
find(params?: FindRepositoryParams<ProductHasuraGraphQL>, optionsParams?: {
|
|
14
|
-
cache?: RepositoryCacheOptions;
|
|
15
|
-
}): Promise<RepositoryFindResult<ProductHasuraGraphQL>>;
|
|
16
|
-
findCatalog(params: FindRepositoryParams<ProductHasuraGraphQL>, mainGender?: Extract<ProductGender, 'female' | 'male'>, options?: {
|
|
17
|
-
cache?: RepositoryCacheOptions;
|
|
18
|
-
}): Promise<RepositoryFindResult<ProductHasuraGraphQL>>;
|
|
19
|
-
}
|
|
20
|
-
export {};
|