@infrab4a/connect-angular 6.0.0-beta.0 → 6.0.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-angular",
3
- "version": "6.0.0-beta.0",
3
+ "version": "6.0.0-beta.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -12,7 +12,7 @@
12
12
  "@angular/common": "17.2.3",
13
13
  "@angular/core": "17.2.3",
14
14
  "@angular/fire": "17.0.1",
15
- "@infrab4a/connect": "5.3.0-beta.0",
15
+ "@infrab4a/connect": "5.3.0-beta.1",
16
16
  "js-cookie": "^3.0.1",
17
17
  "class-transformer": "^0.5.1",
18
18
  "rxjs": "^7.8.1",
@@ -1,11 +1,14 @@
1
- import { OrderFirestoreRepository, ProductReview, ProductReviewRepository } from '@infrab4a/connect';
1
+ import { OrderFirestoreRepository, ProductReview, ProductReviewRepository, VariantRepository } from '@infrab4a/connect';
2
2
  import { PendingProductReview, ProductReviewCreate } from './types';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class OrderProductReviewService {
5
5
  private readonly orderRepository;
6
6
  private readonly productReviewRepository;
7
- constructor(orderRepository: OrderFirestoreRepository, productReviewRepository: ProductReviewRepository);
7
+ private readonly variantRepository;
8
+ constructor(orderRepository: OrderFirestoreRepository, productReviewRepository: ProductReviewRepository, variantRepository: VariantRepository);
8
9
  getPendingReviewsByEmail(email: string): Promise<PendingProductReview[]>;
10
+ private getOrdersByEmail;
11
+ private getProductReview;
9
12
  private buildProductReview;
10
13
  createReview(review: ProductReviewCreate): Promise<ProductReview>;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<OrderProductReviewService, never>;
@@ -1,10 +1,12 @@
1
1
  export type PendingProductReview = {
2
2
  id: string;
3
- orderNumber: string;
4
3
  isEdition: boolean;
4
+ orderId: string;
5
+ orderNumber: string;
5
6
  name: string;
6
7
  image: string;
7
8
  deliveryDate: string;
8
9
  evaluationInAnalysis: boolean;
10
+ rating?: number;
9
11
  shopProductSlug: string;
10
12
  };