@loopback/repository-tests 0.21.4 → 0.21.6

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.
@@ -12,7 +12,7 @@ export declare class Address extends Entity {
12
12
  export interface AddressRelations {
13
13
  customer?: CustomerWithRelations;
14
14
  }
15
- export declare type AddressWithRelations = Address & AddressRelations;
15
+ export type AddressWithRelations = Address & AddressRelations;
16
16
  export interface AddressRepository extends EntityCrudRepository<Address, typeof Address.prototype.id> {
17
17
  customer?: BelongsToAccessor<Customer, MixedIdType>;
18
18
  }
@@ -9,7 +9,7 @@ export declare class CartItem extends Entity {
9
9
  export interface CartItemRelations {
10
10
  order?: OrderWithRelations[];
11
11
  }
12
- export declare type CartItemWithRelations = CartItem & CartItemRelations;
12
+ export type CartItemWithRelations = CartItem & CartItemRelations;
13
13
  export interface CartItemRepository extends EntityCrudRepository<CartItem, typeof CartItem.prototype.id> {
14
14
  order: BelongsToAccessor<Order, MixedIdType>;
15
15
  }
@@ -12,7 +12,7 @@ export declare class Contact extends Entity {
12
12
  export interface ContactRelations {
13
13
  stakeholder?: CustomerWithRelations;
14
14
  }
15
- export declare type ContactWithRelations = Contact & ContactRelations;
15
+ export type ContactWithRelations = Contact & ContactRelations;
16
16
  export interface ContactRepository extends EntityCrudRepository<Contact, typeof Contact.prototype.id> {
17
17
  stakeholder: BelongsToAccessor<Stakeholder, MixedIdType>;
18
18
  }
@@ -8,6 +8,6 @@ export declare class CustomerCartItemLink extends Entity {
8
8
  }
9
9
  export interface CustomerCartItemLinkRelations {
10
10
  }
11
- export declare type CustomerCartItemLinkWithRelations = CustomerCartItemLink & CustomerCartItemLinkRelations;
11
+ export type CustomerCartItemLinkWithRelations = CustomerCartItemLink & CustomerCartItemLinkRelations;
12
12
  export interface CustomerCartItemLinkRepository extends EntityCrudRepository<CustomerCartItemLink, typeof CustomerCartItemLink.prototype.id> {
13
13
  }
@@ -9,6 +9,6 @@ export declare class CustomerPromotionLink extends Entity {
9
9
  }
10
10
  export interface CustomerPromotionLinkRelations {
11
11
  }
12
- export declare type CustomerPromotionLinkWithRelations = CustomerPromotionLink & CustomerPromotionLinkRelations;
12
+ export type CustomerPromotionLinkWithRelations = CustomerPromotionLink & CustomerPromotionLinkRelations;
13
13
  export interface CustomerPromotionLinkRepository extends EntityCrudRepository<CustomerPromotionLink, typeof CustomerPromotionLink.prototype.id> {
14
14
  }
@@ -31,7 +31,7 @@ export interface CustomerRelations {
31
31
  promotions?: PromotionWithRelations[];
32
32
  contact?: ContactWithRelations;
33
33
  }
34
- export declare type CustomerWithRelations = Customer & CustomerRelations;
34
+ export type CustomerWithRelations = Customer & CustomerRelations;
35
35
  export interface CustomerRepository extends EntityCrudRepository<Customer, typeof Customer.prototype.id> {
36
36
  address: HasOneRepositoryFactory<Address, MixedIdType>;
37
37
  orders: HasManyRepositoryFactory<Order, MixedIdType>;
@@ -13,7 +13,7 @@ export interface OrderRelations {
13
13
  customer?: CustomerWithRelations;
14
14
  shipment?: ShipmentWithRelations;
15
15
  }
16
- export declare type OrderWithRelations = Order & OrderRelations;
16
+ export type OrderWithRelations = Order & OrderRelations;
17
17
  export interface OrderRepository extends EntityCrudRepository<Order, typeof Order.prototype.id> {
18
18
  customer: BelongsToAccessor<Customer, MixedIdType>;
19
19
  shipment: BelongsToAccessor<Shipment, MixedIdType>;
@@ -9,7 +9,7 @@ export declare class PaymentMethod extends Entity {
9
9
  export interface PaymentMethodRelations {
10
10
  customer?: CustomerWithRelations[];
11
11
  }
12
- export declare type PaymentMethodWithRelations = PaymentMethod & PaymentMethodRelations;
12
+ export type PaymentMethodWithRelations = PaymentMethod & PaymentMethodRelations;
13
13
  export declare class CardInfo extends Entity {
14
14
  id: MixedIdType;
15
15
  creditCardId: MixedIdType;
@@ -18,7 +18,7 @@ export declare class CardInfo extends Entity {
18
18
  export interface CardInfoRelations {
19
19
  creditCard?: CreditCardWithRelations[];
20
20
  }
21
- export declare type CardInfoWithRelations = CardInfo & CardInfoRelations;
21
+ export type CardInfoWithRelations = CardInfo & CardInfoRelations;
22
22
  export declare class CreditCard extends PaymentMethod {
23
23
  cardNumber: number;
24
24
  cardInfo: CardInfo;
@@ -27,14 +27,14 @@ export interface CreditCardRelations {
27
27
  customer?: CustomerWithRelations[];
28
28
  cardInfo: CardInfoWithRelations;
29
29
  }
30
- export declare type CreditCardWithRelations = CreditCard & CreditCardRelations;
30
+ export type CreditCardWithRelations = CreditCard & CreditCardRelations;
31
31
  export declare class Cash extends PaymentMethod {
32
32
  detail: string;
33
33
  }
34
34
  export interface CashRelations {
35
35
  customer?: CustomerWithRelations[];
36
36
  }
37
- export declare type CashWithRelations = Cash & CashRelations;
37
+ export type CashWithRelations = Cash & CashRelations;
38
38
  export interface CreditCardRepository extends EntityCrudRepository<CreditCard, typeof CreditCard.prototype.id> {
39
39
  customer: BelongsToAccessor<Customer, MixedIdType>;
40
40
  cardInfo: HasOneRepositoryFactory<CardInfo, MixedIdType>;
@@ -6,7 +6,7 @@ export declare class Promotion extends Entity {
6
6
  }
7
7
  export interface PromotionRelations {
8
8
  }
9
- export declare type PromotionWithRelations = Promotion & PromotionRelations;
9
+ export type PromotionWithRelations = Promotion & PromotionRelations;
10
10
  export interface PromotionRepository extends EntityCrudRepository<Promotion, typeof Promotion.prototype.id> {
11
11
  }
12
12
  export declare class FreeDelivery extends Promotion {
@@ -14,7 +14,7 @@ export declare class FreeDelivery extends Promotion {
14
14
  }
15
15
  export interface FreeDeliveryRelations {
16
16
  }
17
- export declare type FreeDeliveryWithRelations = FreeDelivery & FreeDeliveryRelations;
17
+ export type FreeDeliveryWithRelations = FreeDelivery & FreeDeliveryRelations;
18
18
  export interface FreeDeliveryRepository extends EntityCrudRepository<FreeDelivery, typeof FreeDelivery.prototype.id> {
19
19
  }
20
20
  export declare class HalfPrice extends Promotion {
@@ -22,6 +22,6 @@ export declare class HalfPrice extends Promotion {
22
22
  }
23
23
  export interface HalfPriceRelations {
24
24
  }
25
- export declare type HalfPriceWithRelations = HalfPrice & HalfPriceRelations;
25
+ export type HalfPriceWithRelations = HalfPrice & HalfPriceRelations;
26
26
  export interface HalfPriceRepository extends EntityCrudRepository<HalfPrice, typeof HalfPrice.prototype.id> {
27
27
  }
@@ -11,7 +11,7 @@ export declare class Shipment extends Entity {
11
11
  export interface ShipmentRelations {
12
12
  shipmentOrders?: OrderWithRelations[];
13
13
  }
14
- export declare type ShipmentWithRelations = Shipment & ShipmentRelations;
14
+ export type ShipmentWithRelations = Shipment & ShipmentRelations;
15
15
  export interface ShipmentRepository extends EntityCrudRepository<Shipment, typeof Shipment.prototype.id> {
16
16
  shipmentOrders: HasManyRepositoryFactory<Order, MixedIdType>;
17
17
  }
@@ -9,7 +9,7 @@ export declare class Supplier extends Stakeholder {
9
9
  export interface SupplierRelations {
10
10
  contact?: PaymentMethodWithRelations;
11
11
  }
12
- export declare type SupplierWithRelations = Supplier & SupplierRelations;
12
+ export type SupplierWithRelations = Supplier & SupplierRelations;
13
13
  export interface SupplierRepository extends EntityCrudRepository<Supplier, typeof Supplier.prototype.id> {
14
14
  contact: HasOneRepositoryFactory<Contact, MixedIdType>;
15
15
  }
@@ -8,6 +8,6 @@ export declare class UserLink extends Entity {
8
8
  }
9
9
  export interface UserLinkRelations {
10
10
  }
11
- export declare type UserLinkWithRelations = UserLink & UserLinkRelations;
11
+ export type UserLinkWithRelations = UserLink & UserLinkRelations;
12
12
  export interface UserLinkRepository extends EntityCrudRepository<UserLink, typeof UserLink.prototype.id> {
13
13
  }
@@ -9,7 +9,7 @@ export declare class User extends Entity {
9
9
  export interface UserRelations {
10
10
  users?: UserWithRelations;
11
11
  }
12
- export declare type UserWithRelations = User & UserRelations;
12
+ export type UserWithRelations = User & UserRelations;
13
13
  export interface UserRepository extends EntityCrudRepository<User, typeof User.prototype.id> {
14
14
  users: HasManyThroughRepositoryFactory<User, MixedIdType, UserLink, MixedIdType>;
15
15
  }
@@ -25,4 +25,4 @@ export declare const deleteAllModelsInDefaultDataSource: Mocha.Func;
25
25
  * A union type between string and number to use since MongoDB and MySQL use
26
26
  * different id types.
27
27
  */
28
- export declare type MixedIdType = string | number;
28
+ export type MixedIdType = string | number;
@@ -2,7 +2,7 @@ import { Entity, EntityCrudRepository, juggler, Options, TransactionalEntityRepo
2
2
  /**
3
3
  * DataSource configuration (connector name, connection string, etc.).
4
4
  */
5
- export declare type DataSourceOptions = Options;
5
+ export type DataSourceOptions = Options;
6
6
  /**
7
7
  * List of flags describing behavior specific to different connectors and
8
8
  * repository implementations. These flags are used by the test suite to tweak
@@ -59,14 +59,14 @@ export interface CrudFeatures {
59
59
  * A constructor of a class implementing CrudRepository interface,
60
60
  * accepting the Entity class (constructor) and a dataSource instance.
61
61
  */
62
- export declare type CrudRepositoryCtor = new <T extends Entity, ID, Relations extends object>(entityClass: typeof Entity & {
62
+ export type CrudRepositoryCtor = new <T extends Entity, ID, Relations extends object>(entityClass: typeof Entity & {
63
63
  prototype: T;
64
64
  }, dataSource: juggler.DataSource) => EntityCrudRepository<T, ID, Relations>;
65
65
  /**
66
66
  * A constructor of a class implementing TransactionalRepository interface,
67
67
  * accepting the Entity class (constructor) and a dataSource instance.
68
68
  */
69
- export declare type TransactionalRepositoryCtor = new <T extends Entity, ID, Relations extends object>(entityClass: typeof Entity & {
69
+ export type TransactionalRepositoryCtor = new <T extends Entity, ID, Relations extends object>(entityClass: typeof Entity & {
70
70
  prototype: T;
71
71
  }, dataSource: juggler.DataSource) => TransactionalEntityRepository<T, ID, Relations>;
72
72
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@loopback/repository-tests",
3
3
  "description": "A shared test suite to verify `@loopback/repository` functionality with a given compatible connector",
4
- "version": "0.21.4",
4
+ "version": "0.21.6",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -32,23 +32,23 @@
32
32
  "!*/__tests__"
33
33
  ],
34
34
  "peerDependencies": {
35
- "@loopback/core": "^4.0.4",
36
- "@loopback/repository": "^5.0.4"
35
+ "@loopback/core": "^4.0.6",
36
+ "@loopback/repository": "^5.1.1"
37
37
  },
38
38
  "dependencies": {
39
- "@loopback/testlab": "^5.0.4",
39
+ "@loopback/testlab": "^5.0.6",
40
40
  "@types/debug": "^4.1.7",
41
41
  "debug": "^4.3.4",
42
- "tslib": "^2.4.0"
42
+ "tslib": "^2.4.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@loopback/build": "^9.0.4",
46
- "@loopback/core": "^4.0.4",
47
- "@loopback/repository": "^5.0.4",
45
+ "@loopback/build": "^9.0.6",
46
+ "@loopback/core": "^4.0.6",
47
+ "@loopback/repository": "^5.1.1",
48
48
  "@types/debug": "^4.1.7",
49
- "@types/lodash": "^4.14.186",
50
- "@types/node": "^14.18.32",
49
+ "@types/lodash": "^4.14.191",
50
+ "@types/node": "^14.18.34",
51
51
  "lodash": "^4.17.21"
52
52
  },
53
- "gitHead": "947500110c84ba77b2197b759b559c195cfce260"
53
+ "gitHead": "709a5ecd1ffddeb02262cecabf7b663c7b4d7e47"
54
54
  }