@infrab4a/connect 5.4.0-beta.9 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "5.4.0-beta.9",
3
+ "version": "5.4.1-beta.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -11,8 +11,8 @@
11
11
  "dependencies": {
12
12
  "axios": "^0.27.2",
13
13
  "class-transformer": "^0.5.1",
14
- "date-fns": "^2.28.0",
15
- "date-fns-tz": "^3.2.0",
14
+ "date-fns": "2.28.0",
15
+ "date-fns-tz": "2.0.1",
16
16
  "debug": "^4.3.4",
17
17
  "firebase": "^9.22.0",
18
18
  "gql-query-builder": "3.7.0",
@@ -40,7 +40,6 @@ export declare class ProductBase<T extends ProductBase<T, I>, I = ProductIdentif
40
40
  group?: number;
41
41
  validity: boolean;
42
42
  daysOfUse?: number;
43
- variantSlug?: string;
44
43
  category: Category;
45
44
  kitProducts?: KitProduct[];
46
45
  reviews?: ProductReview[];
@@ -2,6 +2,5 @@ import { ProductBase } from './product-base';
2
2
  import { Variant } from './variant';
3
3
  export declare class Product extends ProductBase<Product> {
4
4
  hasVariants: boolean;
5
- showVariants: boolean;
6
5
  variants?: Variant[];
7
6
  }
@@ -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
  }
@@ -1,6 +1,5 @@
1
1
  export * from './category-hasura-graphql';
2
2
  export * from './kit-product-hasura-graphql';
3
- export * from './product-catalog-hasura-graphql';
4
3
  export * from './product-errors-hasura-graphql';
5
4
  export * from './product-hasura-graphql';
6
5
  export * from './variant-hasura-graphql';
@@ -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';
@@ -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 {};
@@ -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, fromZonedTime, toZonedTime } from 'date-fns-tz';
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, toZonedTime, formatInTimeZone, fromZonedTime, 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, };
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
- }
@@ -1,16 +0,0 @@
1
- import { Product } from '../../../domain';
2
- export declare class ProductCatalogHasuraGraphQL extends Product {
3
- firestoreId?: string;
4
- fullPrice?: number;
5
- subscriberDiscountPercentage?: number;
6
- subscriberPrice?: number;
7
- productId?: number;
8
- differentials?: string;
9
- whoMustUse?: string;
10
- howToUse?: string;
11
- brandDescription?: string;
12
- categoryId?: number;
13
- ingredients?: string;
14
- hasStock?: boolean;
15
- intGender?: number;
16
- }
@@ -1,22 +0,0 @@
1
- import { FindRepositoryParams, Product, ProductCatalogRepository, ProductGender, RepositoryCacheOptions, RepositoryFindResult } from '../../../../domain';
2
- import { HasuraConstructorParams } from '../../mixins';
3
- import { ProductCatalogHasuraGraphQL, ProductHasuraGraphQL } from '../../models';
4
- declare const ProductCatalogHasuraGraphQLRepository_base: import("../../../../utils").MixinCtor<import("../../types").GraphQLRepository<ProductCatalogHasuraGraphQL> & import("../../../../domain").FindRepository<ProductCatalogHasuraGraphQL, FindRepositoryParams<ProductCatalogHasuraGraphQL>>, any[]>;
5
- export declare class ProductCatalogHasuraGraphQLRepository extends ProductCatalogHasuraGraphQLRepository_base implements ProductCatalogRepository {
6
- constructor({ endpoint, authOptions, interceptors, cache, }: Pick<HasuraConstructorParams<ProductCatalogHasuraGraphQL>, 'endpoint' | 'authOptions' | 'interceptors' | 'cache'>);
7
- get({ id }: {
8
- id: string;
9
- }, options?: {
10
- cache?: RepositoryCacheOptions;
11
- }): Promise<Product>;
12
- getByEAN(EAN: string, options?: {
13
- cache?: RepositoryCacheOptions;
14
- }): Promise<Product>;
15
- find(params?: FindRepositoryParams<ProductHasuraGraphQL>, optionsParams?: {
16
- cache?: RepositoryCacheOptions;
17
- }): Promise<RepositoryFindResult<ProductHasuraGraphQL>>;
18
- findCatalog(params: FindRepositoryParams<ProductHasuraGraphQL>, mainGender?: Extract<ProductGender, 'female' | 'male'>, options?: {
19
- cache?: RepositoryCacheOptions;
20
- }): Promise<RepositoryFindResult<ProductHasuraGraphQL>>;
21
- }
22
- export {};