@entity-access/entity-access 1.0.378 → 1.0.379
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/model/EntityQuery.d.ts.map +1 -1
- package/dist/model/EntityQuery.js +10 -0
- package/dist/model/EntityQuery.js.map +1 -1
- package/dist/model/IFilterWithParameter.d.ts +5 -5
- package/dist/model/IFilterWithParameter.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/model/EntityQuery.ts +11 -1
- package/src/model/IFilterWithParameter.ts +5 -5
- package/dist/tests/TestConfig.d.ts +0 -6
- package/dist/tests/TestConfig.d.ts.map +0 -1
- package/dist/tests/TestConfig.js +0 -3
- package/dist/tests/TestConfig.js.map +0 -1
- package/dist/tests/db-tests/tests/check-constraint-test.d.ts +0 -3
- package/dist/tests/db-tests/tests/check-constraint-test.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/check-constraint-test.js +0 -25
- package/dist/tests/db-tests/tests/check-constraint-test.js.map +0 -1
- package/dist/tests/db-tests/tests/delete-items.d.ts +0 -3
- package/dist/tests/db-tests/tests/delete-items.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/delete-items.js +0 -25
- package/dist/tests/db-tests/tests/delete-items.js.map +0 -1
- package/dist/tests/db-tests/tests/filtered-include-items.d.ts +0 -3
- package/dist/tests/db-tests/tests/filtered-include-items.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/filtered-include-items.js +0 -19
- package/dist/tests/db-tests/tests/filtered-include-items.js.map +0 -1
- package/dist/tests/db-tests/tests/insert-into.d.ts +0 -3
- package/dist/tests/db-tests/tests/insert-into.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/insert-into.js +0 -17
- package/dist/tests/db-tests/tests/insert-into.js.map +0 -1
- package/dist/tests/db-tests/tests/multi-fk-tests.d.ts +0 -3
- package/dist/tests/db-tests/tests/multi-fk-tests.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/multi-fk-tests.js +0 -29
- package/dist/tests/db-tests/tests/multi-fk-tests.js.map +0 -1
- package/dist/tests/db-tests/tests/select-identity.d.ts +0 -3
- package/dist/tests/db-tests/tests/select-identity.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/select-identity.js +0 -16
- package/dist/tests/db-tests/tests/select-identity.js.map +0 -1
- package/dist/tests/db-tests/tests/select-inverse-one-to-one.d.ts +0 -3
- package/dist/tests/db-tests/tests/select-inverse-one-to-one.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/select-inverse-one-to-one.js +0 -27
- package/dist/tests/db-tests/tests/select-inverse-one-to-one.js.map +0 -1
- package/dist/tests/db-tests/tests/select-items-map.d.ts +0 -3
- package/dist/tests/db-tests/tests/select-items-map.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/select-items-map.js +0 -28
- package/dist/tests/db-tests/tests/select-items-map.js.map +0 -1
- package/dist/tests/db-tests/tests/select-items-sum.d.ts +0 -3
- package/dist/tests/db-tests/tests/select-items-sum.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/select-items-sum.js +0 -46
- package/dist/tests/db-tests/tests/select-items-sum.js.map +0 -1
- package/dist/tests/db-tests/tests/select-items.d.ts +0 -3
- package/dist/tests/db-tests/tests/select-items.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/select-items.js +0 -30
- package/dist/tests/db-tests/tests/select-items.js.map +0 -1
- package/dist/tests/db-tests/tests/select-map.d.ts +0 -3
- package/dist/tests/db-tests/tests/select-map.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/select-map.js +0 -12
- package/dist/tests/db-tests/tests/select-map.js.map +0 -1
- package/dist/tests/db-tests/tests/select-nested.d.ts +0 -3
- package/dist/tests/db-tests/tests/select-nested.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/select-nested.js +0 -25
- package/dist/tests/db-tests/tests/select-nested.js.map +0 -1
- package/dist/tests/db-tests/tests/select-parent.d.ts +0 -3
- package/dist/tests/db-tests/tests/select-parent.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/select-parent.js +0 -17
- package/dist/tests/db-tests/tests/select-parent.js.map +0 -1
- package/dist/tests/db-tests/tests/select-related.d.ts +0 -3
- package/dist/tests/db-tests/tests/select-related.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/select-related.js +0 -20
- package/dist/tests/db-tests/tests/select-related.js.map +0 -1
- package/dist/tests/db-tests/tests/update-items.d.ts +0 -3
- package/dist/tests/db-tests/tests/update-items.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/update-items.js +0 -31
- package/dist/tests/db-tests/tests/update-items.js.map +0 -1
- package/dist/tests/db-tests/tests/update-select.d.ts +0 -3
- package/dist/tests/db-tests/tests/update-select.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/update-select.js +0 -19
- package/dist/tests/db-tests/tests/update-select.js.map +0 -1
- package/dist/tests/db-tests/tests/upsert-test.d.ts +0 -3
- package/dist/tests/db-tests/tests/upsert-test.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/upsert-test.js +0 -31
- package/dist/tests/db-tests/tests/upsert-test.js.map +0 -1
- package/dist/tests/db-tests/tests/version-history.d.ts +0 -3
- package/dist/tests/db-tests/tests/version-history.d.ts.map +0 -1
- package/dist/tests/db-tests/tests/version-history.js +0 -16
- package/dist/tests/db-tests/tests/version-history.js.map +0 -1
- package/dist/tests/db-tests/transaction-save-point/transaction-save-point.d.ts +0 -3
- package/dist/tests/db-tests/transaction-save-point/transaction-save-point.d.ts.map +0 -1
- package/dist/tests/db-tests/transaction-save-point/transaction-save-point.js +0 -58
- package/dist/tests/db-tests/transaction-save-point/transaction-save-point.js.map +0 -1
- package/dist/tests/drivers/postgres/connection-test.d.ts +0 -3
- package/dist/tests/drivers/postgres/connection-test.d.ts.map +0 -1
- package/dist/tests/drivers/postgres/connection-test.js +0 -40
- package/dist/tests/drivers/postgres/connection-test.js.map +0 -1
- package/dist/tests/drivers/sql-server/sql-server-test.d.ts +0 -2
- package/dist/tests/drivers/sql-server/sql-server-test.d.ts.map +0 -1
- package/dist/tests/drivers/sql-server/sql-server-test.js +0 -6
- package/dist/tests/drivers/sql-server/sql-server-test.js.map +0 -1
- package/dist/tests/eternity/child-tests.d.ts +0 -3
- package/dist/tests/eternity/child-tests.d.ts.map +0 -1
- package/dist/tests/eternity/child-tests.js +0 -97
- package/dist/tests/eternity/child-tests.js.map +0 -1
- package/dist/tests/eternity/eternity-tests.d.ts +0 -3
- package/dist/tests/eternity/eternity-tests.d.ts.map +0 -1
- package/dist/tests/eternity/eternity-tests.js +0 -85
- package/dist/tests/eternity/eternity-tests.js.map +0 -1
- package/dist/tests/eternity/external-event-tests.d.ts +0 -3
- package/dist/tests/eternity/external-event-tests.d.ts.map +0 -1
- package/dist/tests/eternity/external-event-tests.js +0 -108
- package/dist/tests/eternity/external-event-tests.js.map +0 -1
- package/dist/tests/eternity/throttle-tests.d.ts +0 -3
- package/dist/tests/eternity/throttle-tests.d.ts.map +0 -1
- package/dist/tests/eternity/throttle-tests.js +0 -86
- package/dist/tests/eternity/throttle-tests.js.map +0 -1
- package/dist/tests/expressions/left-joins/child-joins.d.ts +0 -2
- package/dist/tests/expressions/left-joins/child-joins.d.ts.map +0 -1
- package/dist/tests/expressions/left-joins/child-joins.js +0 -114
- package/dist/tests/expressions/left-joins/child-joins.js.map +0 -1
- package/dist/tests/expressions/sanitize/sanitize-test.d.ts +0 -2
- package/dist/tests/expressions/sanitize/sanitize-test.d.ts.map +0 -1
- package/dist/tests/expressions/sanitize/sanitize-test.js +0 -8
- package/dist/tests/expressions/sanitize/sanitize-test.js.map +0 -1
- package/dist/tests/expressions/select/select.d.ts +0 -2
- package/dist/tests/expressions/select/select.d.ts.map +0 -1
- package/dist/tests/expressions/select/select.js +0 -11
- package/dist/tests/expressions/select/select.js.map +0 -1
- package/dist/tests/expressions/self-joins/self-joins.d.ts +0 -2
- package/dist/tests/expressions/self-joins/self-joins.d.ts.map +0 -1
- package/dist/tests/expressions/self-joins/self-joins.js +0 -14
- package/dist/tests/expressions/self-joins/self-joins.js.map +0 -1
- package/dist/tests/expressions/simple/parse-array.d.ts +0 -2
- package/dist/tests/expressions/simple/parse-array.d.ts.map +0 -1
- package/dist/tests/expressions/simple/parse-array.js +0 -21
- package/dist/tests/expressions/simple/parse-array.js.map +0 -1
- package/dist/tests/expressions/simple/parse-arrow.d.ts +0 -2
- package/dist/tests/expressions/simple/parse-arrow.d.ts.map +0 -1
- package/dist/tests/expressions/simple/parse-arrow.js +0 -36
- package/dist/tests/expressions/simple/parse-arrow.js.map +0 -1
- package/dist/tests/expressions/simple/parse-complex.d.ts +0 -2
- package/dist/tests/expressions/simple/parse-complex.d.ts.map +0 -1
- package/dist/tests/expressions/simple/parse-complex.js +0 -11
- package/dist/tests/expressions/simple/parse-complex.js.map +0 -1
- package/dist/tests/expressions/trimInternal.d.ts +0 -3
- package/dist/tests/expressions/trimInternal.d.ts.map +0 -1
- package/dist/tests/expressions/trimInternal.js +0 -24
- package/dist/tests/expressions/trimInternal.js.map +0 -1
- package/dist/tests/model/ShoppingContext.d.ts +0 -140
- package/dist/tests/model/ShoppingContext.d.ts.map +0 -1
- package/dist/tests/model/ShoppingContext.js +0 -440
- package/dist/tests/model/ShoppingContext.js.map +0 -1
- package/dist/tests/model/UseFile.d.ts +0 -8
- package/dist/tests/model/UseFile.d.ts.map +0 -1
- package/dist/tests/model/UseFile.js +0 -25
- package/dist/tests/model/UseFile.js.map +0 -1
- package/dist/tests/model/createContext.d.ts +0 -6
- package/dist/tests/model/createContext.d.ts.map +0 -1
- package/dist/tests/model/createContext.js +0 -327
- package/dist/tests/model/createContext.js.map +0 -1
- package/dist/tests/pool/pool-test.d.ts +0 -2
- package/dist/tests/pool/pool-test.d.ts.map +0 -1
- package/dist/tests/pool/pool-test.js +0 -66
- package/dist/tests/pool/pool-test.js.map +0 -1
- package/dist/tests/query/combine.d.ts +0 -2
- package/dist/tests/query/combine.d.ts.map +0 -1
- package/dist/tests/query/combine.js +0 -20
- package/dist/tests/query/combine.js.map +0 -1
- package/dist/tests/security/ShoppingContextEvents.d.ts +0 -5
- package/dist/tests/security/ShoppingContextEvents.d.ts.map +0 -1
- package/dist/tests/security/ShoppingContextEvents.js +0 -20
- package/dist/tests/security/ShoppingContextEvents.js.map +0 -1
- package/dist/tests/security/events/OrderEvents.d.ts +0 -17
- package/dist/tests/security/events/OrderEvents.d.ts.map +0 -1
- package/dist/tests/security/events/OrderEvents.js +0 -62
- package/dist/tests/security/events/OrderEvents.js.map +0 -1
- package/dist/tests/security/events/ProductEvents.d.ts +0 -23
- package/dist/tests/security/events/ProductEvents.d.ts.map +0 -1
- package/dist/tests/security/events/ProductEvents.js +0 -79
- package/dist/tests/security/events/ProductEvents.js.map +0 -1
- package/dist/tests/security/events/UserEvents.d.ts +0 -10
- package/dist/tests/security/events/UserEvents.d.ts.map +0 -1
- package/dist/tests/security/events/UserEvents.js +0 -26
- package/dist/tests/security/events/UserEvents.js.map +0 -1
- package/dist/tests/security/events/UserFileEvents.d.ts +0 -7
- package/dist/tests/security/events/UserFileEvents.d.ts.map +0 -1
- package/dist/tests/security/events/UserFileEvents.js +0 -7
- package/dist/tests/security/events/UserFileEvents.js.map +0 -1
- package/dist/tests/security/events/UserInfo.d.ts +0 -5
- package/dist/tests/security/events/UserInfo.d.ts.map +0 -1
- package/dist/tests/security/events/UserInfo.js +0 -9
- package/dist/tests/security/events/UserInfo.js.map +0 -1
- package/dist/tests/security/tests/include-items.d.ts +0 -3
- package/dist/tests/security/tests/include-items.d.ts.map +0 -1
- package/dist/tests/security/tests/include-items.js +0 -15
- package/dist/tests/security/tests/include-items.js.map +0 -1
- package/dist/tests/security/tests/place-order.d.ts +0 -3
- package/dist/tests/security/tests/place-order.d.ts.map +0 -1
- package/dist/tests/security/tests/place-order.js +0 -139
- package/dist/tests/security/tests/place-order.js.map +0 -1
- package/dist/tests/security/tests/test-events.d.ts +0 -3
- package/dist/tests/security/tests/test-events.d.ts.map +0 -1
- package/dist/tests/security/tests/test-events.js +0 -54
- package/dist/tests/security/tests/test-events.js.map +0 -1
- package/src/tests/TestConfig.ts +0 -6
- package/src/tests/db-tests/tests/check-constraint-test.ts +0 -32
- package/src/tests/db-tests/tests/delete-items.ts +0 -42
- package/src/tests/db-tests/tests/filtered-include-items.ts +0 -28
- package/src/tests/db-tests/tests/insert-into.ts +0 -24
- package/src/tests/db-tests/tests/multi-fk-tests.ts +0 -37
- package/src/tests/db-tests/tests/select-identity.ts +0 -23
- package/src/tests/db-tests/tests/select-inverse-one-to-one.ts +0 -39
- package/src/tests/db-tests/tests/select-items-map.ts +0 -38
- package/src/tests/db-tests/tests/select-items-sum.ts +0 -60
- package/src/tests/db-tests/tests/select-items.ts +0 -49
- package/src/tests/db-tests/tests/select-map.ts +0 -19
- package/src/tests/db-tests/tests/select-nested.ts +0 -36
- package/src/tests/db-tests/tests/select-parent.ts +0 -25
- package/src/tests/db-tests/tests/select-related.ts +0 -35
- package/src/tests/db-tests/tests/update-items.ts +0 -44
- package/src/tests/db-tests/tests/update-select.ts +0 -28
- package/src/tests/db-tests/tests/upsert-test.ts +0 -48
- package/src/tests/db-tests/tests/version-history.ts +0 -24
- package/src/tests/db-tests/transaction-save-point/transaction-save-point.ts +0 -48
- package/src/tests/drivers/postgres/connection-test.ts +0 -39
- package/src/tests/drivers/sql-server/sql-server-test.ts +0 -9
- package/src/tests/eternity/child-tests.ts +0 -119
- package/src/tests/eternity/eternity-tests.ts +0 -108
- package/src/tests/eternity/external-event-tests.ts +0 -133
- package/src/tests/eternity/throttle-tests.ts +0 -100
- package/src/tests/expressions/left-joins/child-joins.ts +0 -131
- package/src/tests/expressions/sanitize/sanitize-test.ts +0 -17
- package/src/tests/expressions/select/select.ts +0 -21
- package/src/tests/expressions/self-joins/self-joins.ts +0 -23
- package/src/tests/expressions/simple/parse-array.ts +0 -31
- package/src/tests/expressions/simple/parse-arrow.ts +0 -65
- package/src/tests/expressions/simple/parse-complex.ts +0 -20
- package/src/tests/expressions/trimInternal.ts +0 -25
- package/src/tests/model/ShoppingContext.ts +0 -435
- package/src/tests/model/UseFile.ts +0 -24
- package/src/tests/model/createContext.ts +0 -367
- package/src/tests/pool/pool-test.ts +0 -79
- package/src/tests/query/combine.ts +0 -28
- package/src/tests/security/ShoppingContextEvents.ts +0 -23
- package/src/tests/security/events/OrderEvents.ts +0 -72
- package/src/tests/security/events/ProductEvents.ts +0 -102
- package/src/tests/security/events/UserEvents.ts +0 -28
- package/src/tests/security/events/UserFileEvents.ts +0 -11
- package/src/tests/security/events/UserInfo.ts +0 -7
- package/src/tests/security/tests/include-items.ts +0 -20
- package/src/tests/security/tests/place-order.ts +0 -138
- package/src/tests/security/tests/test-events.ts +0 -55
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import EntityContext from "../../model/EntityContext.js";
|
|
3
|
-
import Column from "../../decorators/Column.js";
|
|
4
|
-
import { RelateTo, RelateToOne } from "../../decorators/Relate.js";
|
|
5
|
-
import Table from "../../decorators/Table.js";
|
|
6
|
-
import Index from "../../decorators/Index.js";
|
|
7
|
-
import DateTime from "../../types/DateTime.js";
|
|
8
|
-
import { UserFile } from "./UseFile.js";
|
|
9
|
-
import Sql from "../../sql/Sql.js";
|
|
10
|
-
import MultiForeignKeys from "../../decorators/ForeignKey.js";
|
|
11
|
-
import CheckConstraint from "../../decorators/CheckConstraint.js";
|
|
12
|
-
export const statusPublished = "published";
|
|
13
|
-
export class ShoppingContext extends EntityContext {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.categories = this.model.register(Category);
|
|
17
|
-
this.productCategories = this.model.register(ProductCategory);
|
|
18
|
-
this.products = this.model.register(Product);
|
|
19
|
-
this.productPrices = this.model.register(ProductPrice);
|
|
20
|
-
this.orders = this.model.register(Order);
|
|
21
|
-
this.orderItems = this.model.register(OrderItem);
|
|
22
|
-
this.users = this.model.register(User);
|
|
23
|
-
this.userCategories = this.model.register(UserCategory);
|
|
24
|
-
this.userProfiles = this.model.register(UserProfile);
|
|
25
|
-
this.profilePhotos = this.model.register(ProfilePhoto);
|
|
26
|
-
this.userFiles = this.model.register(UserFile);
|
|
27
|
-
this.emailAddresses = this.model.register(EmailAddress);
|
|
28
|
-
this.userCategoryTags = this.model.register(UserCategoryTag);
|
|
29
|
-
this.messages = this.model.register(UserMessage);
|
|
30
|
-
this.archivedMessages = this.model.register(ArchivedUserMessage);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
let User = class User {
|
|
34
|
-
};
|
|
35
|
-
__decorate([
|
|
36
|
-
Column({ key: true, generated: "identity", dataType: "BigInt" }),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], User.prototype, "userID", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
Column({}),
|
|
41
|
-
__metadata("design:type", Date)
|
|
42
|
-
], User.prototype, "dateCreated", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
Column({ dataType: "Char", length: 200 }),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], User.prototype, "userName", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
Column({ dataType: "BigInt", nullable: true }),
|
|
49
|
-
RelateTo({
|
|
50
|
-
type: () => UserFile,
|
|
51
|
-
property: (u) => u.photo,
|
|
52
|
-
inverseProperty: (uf) => uf.photoUsers
|
|
53
|
-
}),
|
|
54
|
-
__metadata("design:type", Number)
|
|
55
|
-
], User.prototype, "photoID", void 0);
|
|
56
|
-
User = __decorate([
|
|
57
|
-
Table("Users"),
|
|
58
|
-
Index({
|
|
59
|
-
name: "IX_Unique_Users",
|
|
60
|
-
columns: [(x) => x.userName],
|
|
61
|
-
unique: true
|
|
62
|
-
})
|
|
63
|
-
], User);
|
|
64
|
-
export { User };
|
|
65
|
-
let EmailAddress = class EmailAddress {
|
|
66
|
-
};
|
|
67
|
-
__decorate([
|
|
68
|
-
Column({ key: true, generated: "identity" }),
|
|
69
|
-
__metadata("design:type", Number)
|
|
70
|
-
], EmailAddress.prototype, "id", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
Column({ dataType: "Char", length: 200 }),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], EmailAddress.prototype, "address", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
Column({ dataType: "Char", length: 200, nullable: true }),
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], EmailAddress.prototype, "name", void 0);
|
|
79
|
-
EmailAddress = __decorate([
|
|
80
|
-
Table("EmailAddresses"),
|
|
81
|
-
Index({
|
|
82
|
-
name: "IX_Unique_EmailAddress",
|
|
83
|
-
columns: [{ name: (x) => x.address, descending: false }],
|
|
84
|
-
unique: true
|
|
85
|
-
})
|
|
86
|
-
], EmailAddress);
|
|
87
|
-
export { EmailAddress };
|
|
88
|
-
let Category = class Category {
|
|
89
|
-
};
|
|
90
|
-
__decorate([
|
|
91
|
-
Column({ key: true, dataType: "Char", length: 200 }),
|
|
92
|
-
__metadata("design:type", String)
|
|
93
|
-
], Category.prototype, "categoryID", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
Column({ length: 200 }),
|
|
96
|
-
__metadata("design:type", String)
|
|
97
|
-
], Category.prototype, "name", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
Column({ computed: (x) => Sql.text.lower(x.name) }),
|
|
100
|
-
__metadata("design:type", String)
|
|
101
|
-
], Category.prototype, "lowerName", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
Column({ dataType: "Char", length: 200, nullable: true }),
|
|
104
|
-
RelateTo(Category, {
|
|
105
|
-
property: (c) => c.parent,
|
|
106
|
-
inverseProperty: (c) => c.children
|
|
107
|
-
}),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], Category.prototype, "parentID", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
Column({
|
|
112
|
-
dataType: "Char",
|
|
113
|
-
length: 400,
|
|
114
|
-
nullable: true,
|
|
115
|
-
computed: (x) => x.parentID === null ? null : Sql.text.concatImmutable(Sql.cast.asText(x.parentID), '/', Sql.text.lower(x.name))
|
|
116
|
-
}),
|
|
117
|
-
__metadata("design:type", String)
|
|
118
|
-
], Category.prototype, "path", void 0);
|
|
119
|
-
Category = __decorate([
|
|
120
|
-
Table("Categories")
|
|
121
|
-
], Category);
|
|
122
|
-
export { Category };
|
|
123
|
-
let UserProfile = class UserProfile {
|
|
124
|
-
};
|
|
125
|
-
__decorate([
|
|
126
|
-
Column({ key: true, dataType: "BigInt" }),
|
|
127
|
-
RelateToOne(User, {
|
|
128
|
-
property: (up) => up.user,
|
|
129
|
-
inverseProperty: (u) => u.profile,
|
|
130
|
-
foreignKeyConstraint: {
|
|
131
|
-
name: "FC_UserProfiles_User",
|
|
132
|
-
cascade: "delete"
|
|
133
|
-
}
|
|
134
|
-
}),
|
|
135
|
-
__metadata("design:type", Number)
|
|
136
|
-
], UserProfile.prototype, "profileID", void 0);
|
|
137
|
-
UserProfile = __decorate([
|
|
138
|
-
Table("UserProfile")
|
|
139
|
-
], UserProfile);
|
|
140
|
-
export { UserProfile };
|
|
141
|
-
let ProfilePhoto = class ProfilePhoto {
|
|
142
|
-
};
|
|
143
|
-
__decorate([
|
|
144
|
-
Column({ key: true, dataType: "BigInt", generated: "identity" }),
|
|
145
|
-
__metadata("design:type", Number)
|
|
146
|
-
], ProfilePhoto.prototype, "photoID", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
Column({ dataType: "BigInt" }),
|
|
149
|
-
RelateTo(UserProfile, {
|
|
150
|
-
property: (pp) => pp.profile,
|
|
151
|
-
inverseProperty: (up) => up.photos
|
|
152
|
-
}),
|
|
153
|
-
__metadata("design:type", Number)
|
|
154
|
-
], ProfilePhoto.prototype, "profileID", void 0);
|
|
155
|
-
__decorate([
|
|
156
|
-
Column({ dataType: "Char" }),
|
|
157
|
-
__metadata("design:type", String)
|
|
158
|
-
], ProfilePhoto.prototype, "url", void 0);
|
|
159
|
-
ProfilePhoto = __decorate([
|
|
160
|
-
Table("ProfilePhotos")
|
|
161
|
-
], ProfilePhoto);
|
|
162
|
-
export { ProfilePhoto };
|
|
163
|
-
let UserCategory = class UserCategory {
|
|
164
|
-
};
|
|
165
|
-
__decorate([
|
|
166
|
-
Column({ key: true, dataType: "BigInt" }),
|
|
167
|
-
RelateTo(User, {
|
|
168
|
-
property: (uc) => uc.user,
|
|
169
|
-
inverseProperty: (u) => u.categories
|
|
170
|
-
}),
|
|
171
|
-
__metadata("design:type", Number)
|
|
172
|
-
], UserCategory.prototype, "userID", void 0);
|
|
173
|
-
__decorate([
|
|
174
|
-
Column({ key: true, dataType: "Char", length: 200 }),
|
|
175
|
-
RelateTo(Category, {
|
|
176
|
-
property: (uc) => uc.category,
|
|
177
|
-
inverseProperty: (c) => c.users
|
|
178
|
-
}),
|
|
179
|
-
__metadata("design:type", String)
|
|
180
|
-
], UserCategory.prototype, "categoryID", void 0);
|
|
181
|
-
__decorate([
|
|
182
|
-
Column({ default: () => Sql.date.now() }),
|
|
183
|
-
__metadata("design:type", DateTime)
|
|
184
|
-
], UserCategory.prototype, "lastUpdated", void 0);
|
|
185
|
-
UserCategory = __decorate([
|
|
186
|
-
Table("UserCategories")
|
|
187
|
-
], UserCategory);
|
|
188
|
-
export { UserCategory };
|
|
189
|
-
let UserCategoryTag = class UserCategoryTag {
|
|
190
|
-
};
|
|
191
|
-
__decorate([
|
|
192
|
-
Column({ key: true, dataType: "BigInt", generated: "identity" }),
|
|
193
|
-
__metadata("design:type", Number)
|
|
194
|
-
], UserCategoryTag.prototype, "tagID", void 0);
|
|
195
|
-
__decorate([
|
|
196
|
-
Column({ dataType: "Char", length: 200 }),
|
|
197
|
-
__metadata("design:type", String)
|
|
198
|
-
], UserCategoryTag.prototype, "tag", void 0);
|
|
199
|
-
__decorate([
|
|
200
|
-
Column({ dataType: "BigInt" }),
|
|
201
|
-
__metadata("design:type", Number)
|
|
202
|
-
], UserCategoryTag.prototype, "userID", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
Column({ dataType: "Char", length: 200 }),
|
|
205
|
-
__metadata("design:type", String)
|
|
206
|
-
], UserCategoryTag.prototype, "categoryID", void 0);
|
|
207
|
-
__decorate([
|
|
208
|
-
MultiForeignKeys(UserCategory, {
|
|
209
|
-
inverseProperty: (x) => x.tags,
|
|
210
|
-
foreignKeys: [
|
|
211
|
-
{ foreignKey: (x) => x.userID, key: (x) => x.userID },
|
|
212
|
-
{ foreignKey: (x) => x.categoryID, key: (x) => x.categoryID }
|
|
213
|
-
]
|
|
214
|
-
}),
|
|
215
|
-
__metadata("design:type", UserCategory)
|
|
216
|
-
], UserCategoryTag.prototype, "userCategory", void 0);
|
|
217
|
-
UserCategoryTag = __decorate([
|
|
218
|
-
Table("UserCategoryTags")
|
|
219
|
-
], UserCategoryTag);
|
|
220
|
-
export { UserCategoryTag };
|
|
221
|
-
let Product = class Product {
|
|
222
|
-
};
|
|
223
|
-
__decorate([
|
|
224
|
-
Column({ key: true, generated: "identity", dataType: "BigInt" }),
|
|
225
|
-
__metadata("design:type", Number)
|
|
226
|
-
], Product.prototype, "productID", void 0);
|
|
227
|
-
__decorate([
|
|
228
|
-
Column(),
|
|
229
|
-
__metadata("design:type", String)
|
|
230
|
-
], Product.prototype, "name", void 0);
|
|
231
|
-
__decorate([
|
|
232
|
-
Column({ nullable: true }),
|
|
233
|
-
RelateTo(User, {
|
|
234
|
-
property: (product) => product.owner,
|
|
235
|
-
inverseProperty: (user) => user.ownedProducts
|
|
236
|
-
}),
|
|
237
|
-
__metadata("design:type", Number)
|
|
238
|
-
], Product.prototype, "ownerID", void 0);
|
|
239
|
-
__decorate([
|
|
240
|
-
Column({ dataType: "Char", length: 20 }),
|
|
241
|
-
__metadata("design:type", String)
|
|
242
|
-
], Product.prototype, "status", void 0);
|
|
243
|
-
__decorate([
|
|
244
|
-
Column({ dataType: "Char", nullable: true }),
|
|
245
|
-
__metadata("design:type", String)
|
|
246
|
-
], Product.prototype, "productDescription", void 0);
|
|
247
|
-
Product = __decorate([
|
|
248
|
-
Table("Products")
|
|
249
|
-
], Product);
|
|
250
|
-
export { Product };
|
|
251
|
-
let ProductCategory = class ProductCategory {
|
|
252
|
-
};
|
|
253
|
-
__decorate([
|
|
254
|
-
Column({ key: true, dataType: "BigInt", generated: "identity" }),
|
|
255
|
-
__metadata("design:type", Number)
|
|
256
|
-
], ProductCategory.prototype, "productCategoryID", void 0);
|
|
257
|
-
__decorate([
|
|
258
|
-
Column({ dataType: "BigInt" }),
|
|
259
|
-
RelateTo(Product, {
|
|
260
|
-
property: (pc) => pc.product,
|
|
261
|
-
inverseProperty: (p) => p.categories
|
|
262
|
-
}),
|
|
263
|
-
__metadata("design:type", Number)
|
|
264
|
-
], ProductCategory.prototype, "productID", void 0);
|
|
265
|
-
__decorate([
|
|
266
|
-
Column({ dataType: "Char", length: 200 }),
|
|
267
|
-
RelateTo(Category, {
|
|
268
|
-
property: (pc) => pc.category,
|
|
269
|
-
inverseProperty: (c) => c.productCategories
|
|
270
|
-
}),
|
|
271
|
-
__metadata("design:type", String)
|
|
272
|
-
], ProductCategory.prototype, "categoryID", void 0);
|
|
273
|
-
ProductCategory = __decorate([
|
|
274
|
-
Table("ProductCategories")
|
|
275
|
-
], ProductCategory);
|
|
276
|
-
export { ProductCategory };
|
|
277
|
-
let ProductPrice = class ProductPrice {
|
|
278
|
-
};
|
|
279
|
-
__decorate([
|
|
280
|
-
Column({ key: true, generated: "identity", dataType: "BigInt" }),
|
|
281
|
-
__metadata("design:type", Number)
|
|
282
|
-
], ProductPrice.prototype, "priceID", void 0);
|
|
283
|
-
__decorate([
|
|
284
|
-
Column(),
|
|
285
|
-
__metadata("design:type", Boolean)
|
|
286
|
-
], ProductPrice.prototype, "active", void 0);
|
|
287
|
-
__decorate([
|
|
288
|
-
Column(),
|
|
289
|
-
__metadata("design:type", Date)
|
|
290
|
-
], ProductPrice.prototype, "startDate", void 0);
|
|
291
|
-
__decorate([
|
|
292
|
-
Column({ nullable: true }),
|
|
293
|
-
__metadata("design:type", Date)
|
|
294
|
-
], ProductPrice.prototype, "endDate", void 0);
|
|
295
|
-
__decorate([
|
|
296
|
-
Column({}),
|
|
297
|
-
__metadata("design:type", Number)
|
|
298
|
-
], ProductPrice.prototype, "amount", void 0);
|
|
299
|
-
__decorate([
|
|
300
|
-
Column({}),
|
|
301
|
-
RelateTo(Product, {
|
|
302
|
-
property: (price) => price.product,
|
|
303
|
-
inverseProperty: (p) => p.prices
|
|
304
|
-
}),
|
|
305
|
-
__metadata("design:type", Number)
|
|
306
|
-
], ProductPrice.prototype, "productID", void 0);
|
|
307
|
-
ProductPrice = __decorate([
|
|
308
|
-
Table("ProductPrices"),
|
|
309
|
-
CheckConstraint({
|
|
310
|
-
name: "CX_ProductPrices_PositivePrice",
|
|
311
|
-
filter: (x) => x.amount > 0
|
|
312
|
-
})
|
|
313
|
-
], ProductPrice);
|
|
314
|
-
export { ProductPrice };
|
|
315
|
-
let Order = class Order {
|
|
316
|
-
};
|
|
317
|
-
__decorate([
|
|
318
|
-
Column({ key: true, generated: "identity", dataType: "BigInt" }),
|
|
319
|
-
__metadata("design:type", Number)
|
|
320
|
-
], Order.prototype, "orderID", void 0);
|
|
321
|
-
__decorate([
|
|
322
|
-
Column(),
|
|
323
|
-
__metadata("design:type", Date)
|
|
324
|
-
], Order.prototype, "orderDate", void 0);
|
|
325
|
-
__decorate([
|
|
326
|
-
Column(),
|
|
327
|
-
RelateTo(User, {
|
|
328
|
-
property: (order) => order.customer,
|
|
329
|
-
inverseProperty: (user) => user.orders
|
|
330
|
-
}),
|
|
331
|
-
__metadata("design:type", Number)
|
|
332
|
-
], Order.prototype, "customerID", void 0);
|
|
333
|
-
__decorate([
|
|
334
|
-
Column({ dataType: "Char", length: 200, nullable: true }),
|
|
335
|
-
__metadata("design:type", String)
|
|
336
|
-
], Order.prototype, "purchaseOrder", void 0);
|
|
337
|
-
__decorate([
|
|
338
|
-
Column({ dataType: "Char", length: 20, default: () => "pending" }),
|
|
339
|
-
__metadata("design:type", String)
|
|
340
|
-
], Order.prototype, "status", void 0);
|
|
341
|
-
__decorate([
|
|
342
|
-
Column({ dataType: "Decimal", default: () => 0 }),
|
|
343
|
-
__metadata("design:type", Number)
|
|
344
|
-
], Order.prototype, "total", void 0);
|
|
345
|
-
Order = __decorate([
|
|
346
|
-
Table("Orders"),
|
|
347
|
-
Index({
|
|
348
|
-
name: "IX_Orders_PO",
|
|
349
|
-
columns: [{ name: (x) => x.purchaseOrder, descending: false }],
|
|
350
|
-
filter: (x) => x.purchaseOrder !== null
|
|
351
|
-
})
|
|
352
|
-
], Order);
|
|
353
|
-
export { Order };
|
|
354
|
-
let OrderItem = class OrderItem {
|
|
355
|
-
};
|
|
356
|
-
__decorate([
|
|
357
|
-
Column({ key: true, generated: "identity", dataType: "BigInt" }),
|
|
358
|
-
__metadata("design:type", Number)
|
|
359
|
-
], OrderItem.prototype, "orderItemID", void 0);
|
|
360
|
-
__decorate([
|
|
361
|
-
Column(),
|
|
362
|
-
RelateTo({
|
|
363
|
-
type: () => Order,
|
|
364
|
-
property: (orderItem) => orderItem.order,
|
|
365
|
-
inverseProperty: (order) => order.orderItems,
|
|
366
|
-
foreignKeyConstraint: {
|
|
367
|
-
cascade: "delete"
|
|
368
|
-
}
|
|
369
|
-
}),
|
|
370
|
-
__metadata("design:type", Number)
|
|
371
|
-
], OrderItem.prototype, "orderID", void 0);
|
|
372
|
-
__decorate([
|
|
373
|
-
Column(),
|
|
374
|
-
RelateTo(Product, {
|
|
375
|
-
property: (orderItem) => orderItem.product,
|
|
376
|
-
inverseProperty: (product) => product.orderItems
|
|
377
|
-
}),
|
|
378
|
-
__metadata("design:type", Number)
|
|
379
|
-
], OrderItem.prototype, "productID", void 0);
|
|
380
|
-
__decorate([
|
|
381
|
-
Column(),
|
|
382
|
-
RelateTo(ProductPrice, {
|
|
383
|
-
property: (orderItem) => orderItem.productPrice,
|
|
384
|
-
inverseProperty: (productPrice) => productPrice.orderItems
|
|
385
|
-
}),
|
|
386
|
-
__metadata("design:type", Number)
|
|
387
|
-
], OrderItem.prototype, "priceID", void 0);
|
|
388
|
-
__decorate([
|
|
389
|
-
Column(),
|
|
390
|
-
__metadata("design:type", Number)
|
|
391
|
-
], OrderItem.prototype, "amount", void 0);
|
|
392
|
-
OrderItem = __decorate([
|
|
393
|
-
Table("OrderItems")
|
|
394
|
-
], OrderItem);
|
|
395
|
-
export { OrderItem };
|
|
396
|
-
let UserMessage = class UserMessage {
|
|
397
|
-
};
|
|
398
|
-
__decorate([
|
|
399
|
-
Column({ dataType: "BigInt", key: true, generated: "identity" }),
|
|
400
|
-
__metadata("design:type", Number)
|
|
401
|
-
], UserMessage.prototype, "messageID", void 0);
|
|
402
|
-
__decorate([
|
|
403
|
-
Column({ dataType: "BigInt" }),
|
|
404
|
-
__metadata("design:type", Number)
|
|
405
|
-
], UserMessage.prototype, "fromID", void 0);
|
|
406
|
-
__decorate([
|
|
407
|
-
Column({ dataType: "BigInt" }),
|
|
408
|
-
__metadata("design:type", Number)
|
|
409
|
-
], UserMessage.prototype, "toID", void 0);
|
|
410
|
-
__decorate([
|
|
411
|
-
Column({ dataType: "Char" }),
|
|
412
|
-
__metadata("design:type", String)
|
|
413
|
-
], UserMessage.prototype, "message", void 0);
|
|
414
|
-
UserMessage = __decorate([
|
|
415
|
-
Table("UserMessages")
|
|
416
|
-
], UserMessage);
|
|
417
|
-
export { UserMessage };
|
|
418
|
-
let ArchivedUserMessage = class ArchivedUserMessage {
|
|
419
|
-
};
|
|
420
|
-
__decorate([
|
|
421
|
-
Column({ dataType: "BigInt", key: true, generated: "identity" }),
|
|
422
|
-
__metadata("design:type", Number)
|
|
423
|
-
], ArchivedUserMessage.prototype, "messageID", void 0);
|
|
424
|
-
__decorate([
|
|
425
|
-
Column({ dataType: "BigInt" }),
|
|
426
|
-
__metadata("design:type", Number)
|
|
427
|
-
], ArchivedUserMessage.prototype, "fromID", void 0);
|
|
428
|
-
__decorate([
|
|
429
|
-
Column({ dataType: "BigInt" }),
|
|
430
|
-
__metadata("design:type", Number)
|
|
431
|
-
], ArchivedUserMessage.prototype, "toID", void 0);
|
|
432
|
-
__decorate([
|
|
433
|
-
Column({ dataType: "Char" }),
|
|
434
|
-
__metadata("design:type", String)
|
|
435
|
-
], ArchivedUserMessage.prototype, "message", void 0);
|
|
436
|
-
ArchivedUserMessage = __decorate([
|
|
437
|
-
Table("ArchivedUserMessages")
|
|
438
|
-
], ArchivedUserMessage);
|
|
439
|
-
export { ArchivedUserMessage };
|
|
440
|
-
//# sourceMappingURL=ShoppingContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ShoppingContext.js","sourceRoot":"","sources":["../../../src/tests/model/ShoppingContext.ts"],"names":[],"mappings":";AAAA,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAC9C,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAC9C,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,GAAG,MAAM,kBAAkB,CAAC;AACnC,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,eAAe,MAAM,qCAAqC,CAAC;AAElE,MAAM,CAAC,MAAM,eAAe,GAAG,WAAW,CAAC;AAE3C,MAAM,OAAO,eAAgB,SAAQ,aAAa;IAAlD;;QAEW,eAAU,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAE3C,sBAAiB,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;QAEzD,aAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;QAExC,kBAAa,GAAG,IAAI,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W,CAavB;;AAGM,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;CAa/B,CAAA;AAVG;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAC,CAAC;;sDAC9C;AAGlB;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC;;mDACf;AAGf;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC;;iDACjB;AAGb;IADC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAC,CAAC;;oDACZ;AAZP,mBAAmB;IAD/B,KAAK,CAAC,sBAAsB,CAAC;GACjB,mBAAmB,CAa/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UseFile.d.ts","sourceRoot":"","sources":["../../../src/tests/model/UseFile.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAE5C,qBACa,QAAQ;IAGV,MAAM,EAAE,MAAM,CAAC;IAQf,OAAO,EAAE,MAAM,CAAC;IAEhB,IAAI,EAAE,IAAI,CAAC;IAEX,UAAU,EAAE,IAAI,EAAE,CAAC;CAE7B"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import Column from "../../decorators/Column.js";
|
|
3
|
-
import { RelateTo } from "../../decorators/Relate.js";
|
|
4
|
-
import Table from "../../decorators/Table.js";
|
|
5
|
-
import { User } from "./ShoppingContext.js";
|
|
6
|
-
let UserFile = class UserFile {
|
|
7
|
-
};
|
|
8
|
-
__decorate([
|
|
9
|
-
Column({ dataType: "BigInt", key: true, generated: "identity" }),
|
|
10
|
-
__metadata("design:type", Number)
|
|
11
|
-
], UserFile.prototype, "fileID", void 0);
|
|
12
|
-
__decorate([
|
|
13
|
-
Column({ dataType: "BigInt" }),
|
|
14
|
-
RelateTo({
|
|
15
|
-
type: () => User,
|
|
16
|
-
property: (uf) => uf.user,
|
|
17
|
-
inverseProperty: (u) => u.files
|
|
18
|
-
}),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], UserFile.prototype, "ownerID", void 0);
|
|
21
|
-
UserFile = __decorate([
|
|
22
|
-
Table("UserFiles")
|
|
23
|
-
], UserFile);
|
|
24
|
-
export { UserFile };
|
|
25
|
-
//# sourceMappingURL=UseFile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UseFile.js","sourceRoot":"","sources":["../../../src/tests/model/UseFile.ts"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAGrC,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAiBpB,CAAA;AAdU;IADN,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,CAAC;;wCAC3C;AAQf;IANN,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAC,CAAC;IAC7B,QAAQ,CAAC;QACN,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI;QAChB,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI;QACzB,eAAe,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK;KAClC,CAAC;;yCACqB;AAXd,QAAQ;IADpB,KAAK,CAAC,WAAW,CAAC;GACN,QAAQ,CAiBpB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BaseDriver } from "../../drivers/base/BaseDriver.js";
|
|
2
|
-
import { ContextEvents } from "../../index.js";
|
|
3
|
-
import { ShoppingContext } from "./ShoppingContext.js";
|
|
4
|
-
export declare function createContext(driver: BaseDriver, events?: ContextEvents): Promise<ShoppingContext>;
|
|
5
|
-
export declare const headPhoneCategory = "head-phones";
|
|
6
|
-
//# sourceMappingURL=createContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createContext.d.ts","sourceRoot":"","sources":["../../../src/tests/model/createContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAyB,MAAM,sBAAsB,CAAC;AAI9E,wBAAsB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,aAAa,4BAgB7E;AAoND,eAAO,MAAM,iBAAiB,gBAAgB,CAAC"}
|