@loopback/repository-tests 0.25.8 → 0.25.9
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/dist/crud/relations/fixtures/models/promotion.model.js.map +1 -1
- package/package.json +7 -7
- package/src/crud/relations/fixtures/models/address.model.ts +4 -2
- package/src/crud/relations/fixtures/models/cart-item.model.ts +4 -2
- package/src/crud/relations/fixtures/models/contact.model.ts +4 -2
- package/src/crud/relations/fixtures/models/customer-cart-item-link.model.ts +4 -5
- package/src/crud/relations/fixtures/models/customer-promotion-link.model.ts +4 -5
- package/src/crud/relations/fixtures/models/customer.model.ts +4 -2
- package/src/crud/relations/fixtures/models/order.model.ts +4 -2
- package/src/crud/relations/fixtures/models/payment-method.model.ts +12 -6
- package/src/crud/relations/fixtures/models/promotion.model.ts +12 -9
- package/src/crud/relations/fixtures/models/shipment.model.ts +4 -2
- package/src/crud/relations/fixtures/models/supplier.model.ts +4 -2
- package/src/crud/relations/fixtures/models/user-link.model.ts +4 -2
- package/src/crud/relations/fixtures/models/user.model.ts +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promotion.model.js","sourceRoot":"","sources":["../../../../../src/crud/relations/fixtures/models/promotion.model.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0CAA0C;AAC1C,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAK8B;AAIvB,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,mBAAM;CAYpC,CAAA;AAZY,8BAAS;AAMpB;IALC,IAAA,qBAAQ,EAAC;QACR,EAAE,EAAE,IAAI;QACR,SAAS,EAAE,IAAI;QACf,gBAAgB,EAAE,IAAI;KACvB,CAAC;;qCACc;AAKhB;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;8CACkB;oBAXT,SAAS;IADrB,IAAA,kBAAK,GAAE;GACK,SAAS,CAYrB;
|
|
1
|
+
{"version":3,"file":"promotion.model.js","sourceRoot":"","sources":["../../../../../src/crud/relations/fixtures/models/promotion.model.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,0CAA0C;AAC1C,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,qDAK8B;AAIvB,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,mBAAM;CAYpC,CAAA;AAZY,8BAAS;AAMpB;IALC,IAAA,qBAAQ,EAAC;QACR,EAAE,EAAE,IAAI;QACR,SAAS,EAAE,IAAI;QACf,gBAAgB,EAAE,IAAI;KACvB,CAAC;;qCACc;AAKhB;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;8CACkB;oBAXT,SAAS;IADrB,IAAA,kBAAK,GAAE;GACK,SAAS,CAYrB;AAYM,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,SAAS;CAK1C,CAAA;AALY,oCAAY;AAIvB;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;0CACW;uBAJF,YAAY;IADxB,IAAA,kBAAK,GAAE;GACK,YAAY,CAKxB;AAYM,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,SAAS;CAKvC,CAAA;AALY,8BAAS;AAIpB;IAHC,IAAA,qBAAQ,EAAC;QACR,IAAI,EAAE,QAAQ;KACf,CAAC;;uCACW;oBAJF,SAAS;IADrB,IAAA,kBAAK,GAAE;GACK,SAAS,CAKrB"}
|
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.25.
|
|
4
|
+
"version": "0.25.9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@loopback/repository": "^8.0.1"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@loopback/testlab": "^8.0.
|
|
39
|
+
"@loopback/testlab": "^8.0.8",
|
|
40
40
|
"@types/debug": "^4.1.12",
|
|
41
41
|
"debug": "^4.4.3",
|
|
42
42
|
"tslib": "^2.8.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@loopback/build": "^12.0.
|
|
46
|
-
"@loopback/core": "^7.0.
|
|
47
|
-
"@loopback/repository": "^8.0.
|
|
45
|
+
"@loopback/build": "^12.0.8",
|
|
46
|
+
"@loopback/core": "^7.0.8",
|
|
47
|
+
"@loopback/repository": "^8.0.8",
|
|
48
48
|
"@types/debug": "^4.1.12",
|
|
49
|
-
"@types/lodash": "^4.17.
|
|
49
|
+
"@types/lodash": "^4.17.23",
|
|
50
50
|
"@types/node": "^16.18.126",
|
|
51
51
|
"lodash": "^4.17.21"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "497f7e22bb6a9867e5afe830bb82a39172fe5c78"
|
|
54
54
|
}
|
|
@@ -49,8 +49,10 @@ export interface AddressRelations {
|
|
|
49
49
|
|
|
50
50
|
export type AddressWithRelations = Address & AddressRelations;
|
|
51
51
|
|
|
52
|
-
export interface AddressRepository
|
|
53
|
-
|
|
52
|
+
export interface AddressRepository extends EntityCrudRepository<
|
|
53
|
+
Address,
|
|
54
|
+
typeof Address.prototype.id
|
|
55
|
+
> {
|
|
54
56
|
// define additional members like relation methods here
|
|
55
57
|
customer?: BelongsToAccessor<Customer, MixedIdType>;
|
|
56
58
|
}
|
|
@@ -44,8 +44,10 @@ export interface CartItemRelations {
|
|
|
44
44
|
|
|
45
45
|
export type CartItemWithRelations = CartItem & CartItemRelations;
|
|
46
46
|
|
|
47
|
-
export interface CartItemRepository
|
|
48
|
-
|
|
47
|
+
export interface CartItemRepository extends EntityCrudRepository<
|
|
48
|
+
CartItem,
|
|
49
|
+
typeof CartItem.prototype.id
|
|
50
|
+
> {
|
|
49
51
|
order: BelongsToAccessor<Order, MixedIdType>;
|
|
50
52
|
customers: HasManyThroughRepositoryFactory<
|
|
51
53
|
Customer,
|
|
@@ -49,8 +49,10 @@ export interface ContactRelations {
|
|
|
49
49
|
|
|
50
50
|
export type ContactWithRelations = Contact & ContactRelations;
|
|
51
51
|
|
|
52
|
-
export interface ContactRepository
|
|
53
|
-
|
|
52
|
+
export interface ContactRepository extends EntityCrudRepository<
|
|
53
|
+
Contact,
|
|
54
|
+
typeof Contact.prototype.id
|
|
55
|
+
> {
|
|
54
56
|
// define additional members like relation methods here
|
|
55
57
|
stakeholder: BelongsToAccessor<Stakeholder, MixedIdType>;
|
|
56
58
|
}
|
|
@@ -37,8 +37,7 @@ export interface CustomerCartItemLinkRelations {}
|
|
|
37
37
|
export type CustomerCartItemLinkWithRelations = CustomerCartItemLink &
|
|
38
38
|
CustomerCartItemLinkRelations;
|
|
39
39
|
|
|
40
|
-
export interface CustomerCartItemLinkRepository
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
> {}
|
|
40
|
+
export interface CustomerCartItemLinkRepository extends EntityCrudRepository<
|
|
41
|
+
CustomerCartItemLink,
|
|
42
|
+
typeof CustomerCartItemLink.prototype.id
|
|
43
|
+
> {}
|
|
@@ -45,8 +45,7 @@ export interface CustomerPromotionLinkRelations {}
|
|
|
45
45
|
export type CustomerPromotionLinkWithRelations = CustomerPromotionLink &
|
|
46
46
|
CustomerPromotionLinkRelations;
|
|
47
47
|
|
|
48
|
-
export interface CustomerPromotionLinkRepository
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
> {}
|
|
48
|
+
export interface CustomerPromotionLinkRepository extends EntityCrudRepository<
|
|
49
|
+
CustomerPromotionLink,
|
|
50
|
+
typeof CustomerPromotionLink.prototype.id
|
|
51
|
+
> {}
|
|
@@ -84,8 +84,10 @@ export interface CustomerRelations {
|
|
|
84
84
|
|
|
85
85
|
export type CustomerWithRelations = Customer & CustomerRelations;
|
|
86
86
|
|
|
87
|
-
export interface CustomerRepository
|
|
88
|
-
|
|
87
|
+
export interface CustomerRepository extends EntityCrudRepository<
|
|
88
|
+
Customer,
|
|
89
|
+
typeof Customer.prototype.id
|
|
90
|
+
> {
|
|
89
91
|
// define additional members like relation methods here
|
|
90
92
|
address: HasOneRepositoryFactory<Address, MixedIdType>;
|
|
91
93
|
orders: HasManyRepositoryFactory<Order, MixedIdType>;
|
|
@@ -50,8 +50,10 @@ export interface OrderRelations {
|
|
|
50
50
|
|
|
51
51
|
export type OrderWithRelations = Order & OrderRelations;
|
|
52
52
|
|
|
53
|
-
export interface OrderRepository
|
|
54
|
-
|
|
53
|
+
export interface OrderRepository extends EntityCrudRepository<
|
|
54
|
+
Order,
|
|
55
|
+
typeof Order.prototype.id
|
|
56
|
+
> {
|
|
55
57
|
// define additional members like relation methods here
|
|
56
58
|
customer: BelongsToAccessor<Customer, MixedIdType>;
|
|
57
59
|
shipment: BelongsToAccessor<Shipment, MixedIdType>;
|
|
@@ -98,21 +98,27 @@ export interface CashRelations {
|
|
|
98
98
|
|
|
99
99
|
export type CashWithRelations = Cash & CashRelations;
|
|
100
100
|
|
|
101
|
-
export interface CreditCardRepository
|
|
102
|
-
|
|
101
|
+
export interface CreditCardRepository extends EntityCrudRepository<
|
|
102
|
+
CreditCard,
|
|
103
|
+
typeof CreditCard.prototype.id
|
|
104
|
+
> {
|
|
103
105
|
// define additional members like relation methods here
|
|
104
106
|
customer: BelongsToAccessor<Customer, MixedIdType>;
|
|
105
107
|
cardInfo: HasOneRepositoryFactory<CardInfo, MixedIdType>;
|
|
106
108
|
}
|
|
107
109
|
|
|
108
|
-
export interface CashRepository
|
|
109
|
-
|
|
110
|
+
export interface CashRepository extends EntityCrudRepository<
|
|
111
|
+
Cash,
|
|
112
|
+
typeof Cash.prototype.id
|
|
113
|
+
> {
|
|
110
114
|
// define additional members like relation methods here
|
|
111
115
|
customer: BelongsToAccessor<Customer, MixedIdType>;
|
|
112
116
|
}
|
|
113
117
|
|
|
114
|
-
export interface CardInfoRepository
|
|
115
|
-
|
|
118
|
+
export interface CardInfoRepository extends EntityCrudRepository<
|
|
119
|
+
CardInfo,
|
|
120
|
+
typeof CardInfo.prototype.id
|
|
121
|
+
> {
|
|
116
122
|
// define additional members like relation methods here
|
|
117
123
|
creditCard: BelongsToAccessor<CreditCard, MixedIdType>;
|
|
118
124
|
}
|
|
@@ -30,8 +30,10 @@ export interface PromotionRelations {}
|
|
|
30
30
|
|
|
31
31
|
export type PromotionWithRelations = Promotion & PromotionRelations;
|
|
32
32
|
|
|
33
|
-
export interface PromotionRepository
|
|
34
|
-
|
|
33
|
+
export interface PromotionRepository extends EntityCrudRepository<
|
|
34
|
+
Promotion,
|
|
35
|
+
typeof Promotion.prototype.id
|
|
36
|
+
> {}
|
|
35
37
|
|
|
36
38
|
@model()
|
|
37
39
|
export class FreeDelivery extends Promotion {
|
|
@@ -45,11 +47,10 @@ export interface FreeDeliveryRelations {}
|
|
|
45
47
|
|
|
46
48
|
export type FreeDeliveryWithRelations = FreeDelivery & FreeDeliveryRelations;
|
|
47
49
|
|
|
48
|
-
export interface FreeDeliveryRepository
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
> {}
|
|
50
|
+
export interface FreeDeliveryRepository extends EntityCrudRepository<
|
|
51
|
+
FreeDelivery,
|
|
52
|
+
typeof FreeDelivery.prototype.id
|
|
53
|
+
> {}
|
|
53
54
|
|
|
54
55
|
@model()
|
|
55
56
|
export class HalfPrice extends Promotion {
|
|
@@ -63,5 +64,7 @@ export interface HalfPriceRelations {}
|
|
|
63
64
|
|
|
64
65
|
export type HalfPriceWithRelations = HalfPrice & HalfPriceRelations;
|
|
65
66
|
|
|
66
|
-
export interface HalfPriceRepository
|
|
67
|
-
|
|
67
|
+
export interface HalfPriceRepository extends EntityCrudRepository<
|
|
68
|
+
HalfPrice,
|
|
69
|
+
typeof HalfPrice.prototype.id
|
|
70
|
+
> {}
|
|
@@ -47,8 +47,10 @@ export interface ShipmentRelations {
|
|
|
47
47
|
|
|
48
48
|
export type ShipmentWithRelations = Shipment & ShipmentRelations;
|
|
49
49
|
|
|
50
|
-
export interface ShipmentRepository
|
|
51
|
-
|
|
50
|
+
export interface ShipmentRepository extends EntityCrudRepository<
|
|
51
|
+
Shipment,
|
|
52
|
+
typeof Shipment.prototype.id
|
|
53
|
+
> {
|
|
52
54
|
// define additional members like relation methods here
|
|
53
55
|
shipmentOrders: HasManyRepositoryFactory<Order, MixedIdType>;
|
|
54
56
|
}
|
|
@@ -28,8 +28,10 @@ export interface SupplierRelations {
|
|
|
28
28
|
|
|
29
29
|
export type SupplierWithRelations = Supplier & SupplierRelations;
|
|
30
30
|
|
|
31
|
-
export interface SupplierRepository
|
|
32
|
-
|
|
31
|
+
export interface SupplierRepository extends EntityCrudRepository<
|
|
32
|
+
Supplier,
|
|
33
|
+
typeof Supplier.prototype.id
|
|
34
|
+
> {
|
|
33
35
|
// define additional members like relation methods here
|
|
34
36
|
contact: HasOneRepositoryFactory<Contact, MixedIdType>;
|
|
35
37
|
}
|
|
@@ -36,5 +36,7 @@ export interface UserLinkRelations {}
|
|
|
36
36
|
|
|
37
37
|
export type UserLinkWithRelations = UserLink & UserLinkRelations;
|
|
38
38
|
|
|
39
|
-
export interface UserLinkRepository
|
|
40
|
-
|
|
39
|
+
export interface UserLinkRepository extends EntityCrudRepository<
|
|
40
|
+
UserLink,
|
|
41
|
+
typeof UserLink.prototype.id
|
|
42
|
+
> {}
|
|
@@ -44,8 +44,10 @@ export interface UserRelations {
|
|
|
44
44
|
|
|
45
45
|
export type UserWithRelations = User & UserRelations;
|
|
46
46
|
|
|
47
|
-
export interface UserRepository
|
|
48
|
-
|
|
47
|
+
export interface UserRepository extends EntityCrudRepository<
|
|
48
|
+
User,
|
|
49
|
+
typeof User.prototype.id
|
|
50
|
+
> {
|
|
49
51
|
// define additional members like relation methods here
|
|
50
52
|
users: HasManyThroughRepositoryFactory<
|
|
51
53
|
User,
|