@infrab4a/connect 4.24.0-beta.0 → 4.24.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": "4.24.0-beta.0",
3
+ "version": "4.24.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -2,7 +2,7 @@ import { BaseModel } from '../../generic/model';
2
2
  import { Product } from './product';
3
3
  import { Variant } from './variant';
4
4
  type ProductErrorsIdentifiers = 'productId' | 'source' | 'error';
5
- type ProductAndVariant = Product & Pick<Variant, 'productId'>;
5
+ type ProductAndVariant = Product | Variant;
6
6
  export declare class ProductErrors<T extends ProductAndVariant = ProductAndVariant> extends BaseModel<ProductErrors<T>, ProductErrorsIdentifiers> {
7
7
  productId: string;
8
8
  source: string;
@@ -1,3 +1,6 @@
1
1
  import { ProductErrors } from '../../../domain';
2
- export declare class ProductErrorsHasuraGraphQL extends ProductErrors {
2
+ import { ProductHasuraGraphQL } from './product-hasura-graphql';
3
+ import { VariantHasuraGraphQL } from './variant-hasura-graphql';
4
+ export declare class ProductErrorsHasuraGraphQL extends ProductErrors<ProductHasuraGraphQL | VariantHasuraGraphQL> {
5
+ product: ProductHasuraGraphQL | VariantHasuraGraphQL;
3
6
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Este arquivo define funções para resolver dependências circulares
3
+ * em ambiente ESM, onde não podemos usar require()
4
+ */
5
+ export declare function registerClass(name: string, classConstructor: any): void;
6
+ export declare function getClass(name: string): any;
7
+ export declare function resolveClass(name: string): () => any;
@@ -1,6 +1,7 @@
1
1
  import { add, addBusinessDays, addDays, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub, subDays } from 'date-fns';
2
2
  import { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, sortBy, unset } from 'lodash';
3
3
  export type DateDuration = Duration;
4
+ export * from './circular-dependencies';
4
5
  export * from './decorators';
5
6
  export * from './get';
6
7
  export * from './helpers';