@infrab4a/connect 4.25.1-beta.1 → 4.25.1

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 CHANGED
@@ -1489,7 +1489,7 @@ class ProductErrors extends BaseModel {
1489
1489
  }
1490
1490
  }
1491
1491
  tslib.__decorate([
1492
- classTransformer.Type((type) => (+type.object.product.productId ? Variant : Product)),
1492
+ classTransformer.Type((type) => (+type.object['product']['productId'] ? Variant : Product)),
1493
1493
  tslib.__metadata("design:type", Object)
1494
1494
  ], ProductErrors.prototype, "product", void 0);
1495
1495
 
@@ -5365,7 +5365,7 @@ class VariantHasuraGraphQL extends Variant {
5365
5365
  class ProductErrorsHasuraGraphQL extends ProductErrors {
5366
5366
  }
5367
5367
  tslib.__decorate([
5368
- classTransformer.Type((type) => (+type.object.product.productId ? VariantHasuraGraphQL : ProductHasuraGraphQL)),
5368
+ classTransformer.Type((type) => (+type.object['product']['productId'] ? VariantHasuraGraphQL : ProductHasuraGraphQL)),
5369
5369
  tslib.__metadata("design:type", Object)
5370
5370
  ], ProductErrorsHasuraGraphQL.prototype, "product", void 0);
5371
5371
 
package/index.esm.js CHANGED
@@ -1464,7 +1464,7 @@ class ProductErrors extends BaseModel {
1464
1464
  }
1465
1465
  }
1466
1466
  __decorate([
1467
- Type((type) => (+type.object.product.productId ? Variant : Product)),
1467
+ Type((type) => (+type.object['product']['productId'] ? Variant : Product)),
1468
1468
  __metadata("design:type", Object)
1469
1469
  ], ProductErrors.prototype, "product", void 0);
1470
1470
 
@@ -5340,7 +5340,7 @@ class VariantHasuraGraphQL extends Variant {
5340
5340
  class ProductErrorsHasuraGraphQL extends ProductErrors {
5341
5341
  }
5342
5342
  __decorate([
5343
- Type((type) => (+type.object.product.productId ? VariantHasuraGraphQL : ProductHasuraGraphQL)),
5343
+ Type((type) => (+type.object['product']['productId'] ? VariantHasuraGraphQL : ProductHasuraGraphQL)),
5344
5344
  __metadata("design:type", Object)
5345
5345
  ], ProductErrorsHasuraGraphQL.prototype, "product", void 0);
5346
5346
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.25.1-beta.1",
3
+ "version": "4.25.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -5,7 +5,7 @@ import { FirestoreRepository, FirestoreSubRepository } from '../types';
5
5
  export declare const withHelpers: <TMixinBase extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: MixinCtor<any, any[]> & TMixinBase) => {
6
6
  new (...args: any[]): {
7
7
  [x: string]: any;
8
- toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T, import("firebase/firestore").DocumentData> | QueryDocumentSnapshot<T, import("firebase/firestore").DocumentData>[]): T[];
8
+ toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T> | QueryDocumentSnapshot<T>[]): T[];
9
9
  isSubCollection<T_1 extends ModelBaseStructure<T_1, T_1["identifiersFields"][number]>, E extends ModelBaseStructure<E, E["identifiersFields"][number]>>(repository: FirestoreRepository<T_1> | FirestoreSubRepository<T_1, E>): repository is FirestoreSubRepository<T_1, E>;
10
10
  };
11
11
  } & TMixinBase;