pure-orm 4.0.0-1 → 4.0.0-4
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/README.md +46 -3
- package/coverage/clover.xml +271 -287
- package/coverage/coverage-final.json +18 -18
- package/coverage/lcov-report/dist/src/factory.js.html +6 -6
- package/coverage/lcov-report/dist/src/index.html +5 -5
- package/coverage/lcov-report/dist/src/index.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/index.html +7 -7
- package/coverage/lcov-report/dist/test-utils/blog/models/article.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/models/article_tag.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/models/person.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/models/tag.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/orm.js.html +6 -6
- package/coverage/lcov-report/dist/test-utils/five/index.html +7 -7
- package/coverage/lcov-report/dist/test-utils/five/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/order.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/parcel-event.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/parcel-line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/parcel.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/orm.js.html +6 -6
- package/coverage/lcov-report/dist/test-utils/nine/index.html +7 -7
- package/coverage/lcov-report/dist/test-utils/nine/models/feature-switch.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/nine/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/nine/orm.js.html +6 -6
- package/coverage/lcov-report/dist/test-utils/order/index.html +7 -7
- package/coverage/lcov-report/dist/test-utils/order/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/order.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/product-variant.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/product.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/utm-source.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/orm.js.html +6 -6
- package/coverage/lcov-report/dist/test-utils/order-more/index.html +7 -7
- package/coverage/lcov-report/dist/test-utils/order-more/models/actual-product-variant.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/color.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/customer.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/gender.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/inventory-level.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/order.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/parcel-event.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/parcel-line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/parcel.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/physical-address.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/product-variant-image.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/product-variant.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/product.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/refund.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/shipment-actual-product-variant.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/shipment.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/size.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/utm-medium.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/utm-source.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/orm.js.html +6 -6
- package/coverage/lcov-report/dist/test-utils/six/index.html +7 -7
- package/coverage/lcov-report/dist/test-utils/six/models/customer.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/order.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/parcel-line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/parcel.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/orm.js.html +6 -6
- package/coverage/lcov-report/dist/test-utils/thirteen/index.html +7 -7
- package/coverage/lcov-report/dist/test-utils/thirteen/models/audience.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/brand.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/category.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/member.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/passion.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/product.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/recommendation-audience.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/recommendation.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/orm.js.html +6 -6
- package/coverage/lcov-report/dist/test-utils/three/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/three/results.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/twelve/index.html +7 -7
- package/coverage/lcov-report/dist/test-utils/twelve/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/twelve/models/member.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/twelve/models/prompt.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/twelve/orm.js.html +6 -6
- package/coverage/lcov-report/dist/test-utils/two/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/two/results.js.html +1 -1
- package/coverage/lcov-report/index.html +61 -61
- package/coverage/lcov-report/src/factory.ts.html +27 -9
- package/coverage/lcov-report/src/index.html +5 -5
- package/coverage/lcov-report/src/index.ts.html +1 -1
- package/coverage/lcov-report/test-utils/blog/index.html +7 -7
- package/coverage/lcov-report/test-utils/blog/models/article.ts.html +1 -1
- package/coverage/lcov-report/test-utils/blog/models/article_tag.ts.html +1 -1
- package/coverage/lcov-report/test-utils/blog/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/blog/models/person.ts.html +1 -1
- package/coverage/lcov-report/test-utils/blog/models/tag.ts.html +1 -1
- package/coverage/lcov-report/test-utils/blog/orm.ts.html +6 -6
- package/coverage/lcov-report/test-utils/five/index.html +7 -7
- package/coverage/lcov-report/test-utils/five/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/order.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/parcel-event.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/parcel-line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/parcel.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/orm.ts.html +6 -6
- package/coverage/lcov-report/test-utils/nine/index.html +7 -7
- package/coverage/lcov-report/test-utils/nine/models/feature-switch.ts.html +1 -1
- package/coverage/lcov-report/test-utils/nine/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/nine/orm.ts.html +6 -6
- package/coverage/lcov-report/test-utils/order/index.html +7 -7
- package/coverage/lcov-report/test-utils/order/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/order.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/product-variant.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/product.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/utm-source.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order/orm.ts.html +6 -6
- package/coverage/lcov-report/test-utils/order-more/index.html +7 -7
- package/coverage/lcov-report/test-utils/order-more/models/actual-product-variant.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/color.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/customer.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/gender.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/inventory-level.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/order.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/parcel-event.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/parcel-line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/parcel.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/physical-address.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/product-variant-image.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/product-variant.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/product.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/refund.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/shipment-actual-product-variant.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/shipment.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/size.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/utm-medium.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/utm-source.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/orm.ts.html +6 -6
- package/coverage/lcov-report/test-utils/six/index.html +7 -7
- package/coverage/lcov-report/test-utils/six/models/customer.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/order.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/parcel-line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/parcel.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/orm.ts.html +6 -6
- package/coverage/lcov-report/test-utils/thirteen/index.html +7 -7
- package/coverage/lcov-report/test-utils/thirteen/models/audience.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/brand.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/category.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/member.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/passion.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/product.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/recommendation-audience.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/recommendation.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/orm.ts.html +6 -6
- package/coverage/lcov-report/test-utils/three/index.html +1 -1
- package/coverage/lcov-report/test-utils/three/results.js.html +1 -1
- package/coverage/lcov-report/test-utils/twelve/index.html +7 -7
- package/coverage/lcov-report/test-utils/twelve/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/twelve/models/member.ts.html +1 -1
- package/coverage/lcov-report/test-utils/twelve/models/prompt.ts.html +1 -1
- package/coverage/lcov-report/test-utils/twelve/orm.ts.html +6 -6
- package/coverage/lcov-report/test-utils/two/index.html +1 -1
- package/coverage/lcov-report/test-utils/two/results.js.html +1 -1
- package/coverage/lcov.info +588 -632
- package/dist/example/factories/orm.js +1 -1
- package/dist/example/models/employer.d.ts +1 -1
- package/dist/example/models/job.d.ts +1 -1
- package/dist/example/models/person.d.ts +1 -1
- package/dist/src/factory.d.ts +3 -3
- package/dist/src/factory.js +3 -3
- package/dist/test-utils/blog/models/article.d.ts +1 -1
- package/dist/test-utils/blog/models/article_tag.d.ts +1 -1
- package/dist/test-utils/blog/models/person.d.ts +1 -1
- package/dist/test-utils/blog/models/tag.d.ts +1 -1
- package/dist/test-utils/blog/orm.js +1 -1
- package/dist/test-utils/blog/orm.ts +1 -1
- package/dist/test-utils/five/models/line-item.d.ts +1 -1
- package/dist/test-utils/five/models/order.d.ts +1 -1
- package/dist/test-utils/five/models/parcel-event.d.ts +1 -1
- package/dist/test-utils/five/models/parcel-line-item.d.ts +1 -1
- package/dist/test-utils/five/models/parcel.d.ts +1 -1
- package/dist/test-utils/five/orm.js +1 -1
- package/dist/test-utils/five/orm.ts +1 -1
- package/dist/test-utils/nine/models/feature-switch.d.ts +1 -1
- package/dist/test-utils/nine/orm.js +1 -1
- package/dist/test-utils/nine/orm.ts +1 -1
- package/dist/test-utils/order/models/line-item.d.ts +1 -1
- package/dist/test-utils/order/models/order.d.ts +1 -1
- package/dist/test-utils/order/models/product-variant.d.ts +1 -1
- package/dist/test-utils/order/models/product.d.ts +1 -1
- package/dist/test-utils/order/models/utm-source.d.ts +1 -1
- package/dist/test-utils/order/orm.js +1 -1
- package/dist/test-utils/order/orm.ts +1 -1
- package/dist/test-utils/order-more/models/actual-product-variant.d.ts +1 -1
- package/dist/test-utils/order-more/models/color.d.ts +1 -1
- package/dist/test-utils/order-more/models/customer.d.ts +1 -1
- package/dist/test-utils/order-more/models/gender.d.ts +1 -1
- package/dist/test-utils/order-more/models/inventory-level.d.ts +1 -1
- package/dist/test-utils/order-more/models/line-item.d.ts +1 -1
- package/dist/test-utils/order-more/models/order.d.ts +1 -1
- package/dist/test-utils/order-more/models/parcel-event.d.ts +1 -1
- package/dist/test-utils/order-more/models/parcel-line-item.d.ts +1 -1
- package/dist/test-utils/order-more/models/parcel.d.ts +1 -1
- package/dist/test-utils/order-more/models/physical-address.d.ts +1 -1
- package/dist/test-utils/order-more/models/product-variant-image.d.ts +1 -1
- package/dist/test-utils/order-more/models/product-variant.d.ts +1 -1
- package/dist/test-utils/order-more/models/product.d.ts +1 -1
- package/dist/test-utils/order-more/models/refund.d.ts +1 -1
- package/dist/test-utils/order-more/models/shipment-actual-product-variant.d.ts +1 -1
- package/dist/test-utils/order-more/models/shipment.d.ts +1 -1
- package/dist/test-utils/order-more/models/size.d.ts +1 -1
- package/dist/test-utils/order-more/models/utm-medium.d.ts +1 -1
- package/dist/test-utils/order-more/models/utm-source.d.ts +1 -1
- package/dist/test-utils/order-more/orm.js +1 -1
- package/dist/test-utils/order-more/orm.ts +1 -1
- package/dist/test-utils/six/models/customer.d.ts +1 -1
- package/dist/test-utils/six/models/line-item.d.ts +1 -1
- package/dist/test-utils/six/models/order.d.ts +1 -1
- package/dist/test-utils/six/models/parcel-line-item.d.ts +1 -1
- package/dist/test-utils/six/models/parcel.d.ts +1 -1
- package/dist/test-utils/six/orm.js +1 -1
- package/dist/test-utils/six/orm.ts +1 -1
- package/dist/test-utils/thirteen/models/audience.d.ts +1 -1
- package/dist/test-utils/thirteen/models/brand.d.ts +1 -1
- package/dist/test-utils/thirteen/models/category.d.ts +1 -1
- package/dist/test-utils/thirteen/models/member.d.ts +1 -1
- package/dist/test-utils/thirteen/models/passion.d.ts +1 -1
- package/dist/test-utils/thirteen/models/product.d.ts +1 -1
- package/dist/test-utils/thirteen/models/recommendation-audience.d.ts +1 -1
- package/dist/test-utils/thirteen/models/recommendation.d.ts +1 -1
- package/dist/test-utils/thirteen/orm.js +1 -1
- package/dist/test-utils/thirteen/orm.ts +1 -1
- package/dist/test-utils/twelve/models/member.d.ts +1 -1
- package/dist/test-utils/twelve/models/prompt.d.ts +1 -1
- package/dist/test-utils/twelve/orm.js +1 -1
- package/dist/test-utils/twelve/orm.ts +1 -1
- package/example/factories/orm.ts +1 -1
- package/package.json +3 -3
- package/src/factory.ts +11 -5
- package/test-utils/blog/orm.ts +1 -1
- package/test-utils/five/orm.ts +1 -1
- package/test-utils/nine/orm.ts +1 -1
- package/test-utils/order/orm.ts +1 -1
- package/test-utils/order-more/orm.ts +1 -1
- package/test-utils/six/orm.ts +1 -1
- package/test-utils/thirteen/orm.ts +1 -1
- package/test-utils/twelve/orm.ts +1 -1
|
@@ -6,7 +6,7 @@ const person_1 = require("../models/person");
|
|
|
6
6
|
const job_1 = require("../models/job");
|
|
7
7
|
const employer_1 = require("../models/employer");
|
|
8
8
|
const orm = (0, index_1.create)({
|
|
9
|
-
|
|
9
|
+
entities: [person_1.personEntity, job_1.jobEntity, employer_1.employerEntity],
|
|
10
10
|
db: db_1.db
|
|
11
11
|
});
|
|
12
12
|
exports.default = orm;
|
|
@@ -16,7 +16,7 @@ export declare class Employers implements ICollection<Employer> {
|
|
|
16
16
|
}
|
|
17
17
|
export declare const employerEntity: {
|
|
18
18
|
tableName: string;
|
|
19
|
-
columns:
|
|
19
|
+
columns: import("../../src/factory").IColumn[];
|
|
20
20
|
Model: typeof Employer;
|
|
21
21
|
Collection: typeof Employers;
|
|
22
22
|
};
|
|
@@ -18,7 +18,7 @@ export declare class Persons implements ICollection<Person> {
|
|
|
18
18
|
}
|
|
19
19
|
export declare const personEntity: {
|
|
20
20
|
tableName: string;
|
|
21
|
-
columns:
|
|
21
|
+
columns: import("../../src/factory").IColumn[];
|
|
22
22
|
Model: typeof Person;
|
|
23
23
|
Collection: typeof Persons;
|
|
24
24
|
};
|
package/dist/src/factory.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface IColumnData {
|
|
|
5
5
|
primaryKey?: boolean;
|
|
6
6
|
}
|
|
7
7
|
export declare type IColumn = IColumnData | string;
|
|
8
|
-
export declare type IColumns = Array<IColumn
|
|
8
|
+
export declare type IColumns = Array<IColumn> | (() => Array<IColumn>);
|
|
9
9
|
export interface IColumnInternalData {
|
|
10
10
|
column: string;
|
|
11
11
|
property: string;
|
|
@@ -47,11 +47,11 @@ export interface IEntityInternal<T extends IModel> {
|
|
|
47
47
|
}
|
|
48
48
|
export declare type IEntitiesInternal<T extends IModel> = Array<IEntityInternal<T>>;
|
|
49
49
|
export interface CreateOptions {
|
|
50
|
-
|
|
50
|
+
entities: IEntities<any>;
|
|
51
51
|
db: any;
|
|
52
52
|
logError?: (err: Error) => void;
|
|
53
53
|
}
|
|
54
|
-
export declare const create: ({
|
|
54
|
+
export declare const create: ({ entities: externalEntities, db, logError }: CreateOptions) => {
|
|
55
55
|
nestClump: (clump: Array<Array<IModel>>) => object;
|
|
56
56
|
clumpIntoGroups: (processed: Array<Array<IModel>>) => Array<Array<Array<IModel>>>;
|
|
57
57
|
mapToBos: (objectified: any) => any[];
|
package/dist/src/factory.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.create = void 0;
|
|
4
4
|
const camelCase = require('camelcase');
|
|
5
|
-
const create = ({
|
|
6
|
-
const entities =
|
|
5
|
+
const create = ({ entities: externalEntities, db, logError }) => {
|
|
6
|
+
const entities = externalEntities.map((d) => {
|
|
7
7
|
const tableName = d.tableName;
|
|
8
8
|
const displayName = d.displayName || camelCase(d.tableName);
|
|
9
9
|
const collectionDisplayName = d.collectionDisplayName || `${displayName}s`;
|
|
10
|
-
const columns = d.columns.map((d) => {
|
|
10
|
+
const columns = (typeof d.columns === 'function' ? d.columns() : d.columns).map((d) => {
|
|
11
11
|
if (typeof d === 'string') {
|
|
12
12
|
return {
|
|
13
13
|
column: d,
|
|
@@ -24,7 +24,7 @@ export declare class Articles implements ICollection<Article> {
|
|
|
24
24
|
}
|
|
25
25
|
export declare const articleEntity: {
|
|
26
26
|
tableName: string;
|
|
27
|
-
columns:
|
|
27
|
+
columns: import("../../../src/factory").IColumn[];
|
|
28
28
|
Model: typeof Article;
|
|
29
29
|
Collection: typeof Articles;
|
|
30
30
|
};
|
|
@@ -17,7 +17,7 @@ export declare class ArticleTags implements ICollection<ArticleTag> {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const articleTagEntity: {
|
|
19
19
|
tableName: string;
|
|
20
|
-
columns:
|
|
20
|
+
columns: import("../../../src/factory").IColumn[];
|
|
21
21
|
Model: typeof ArticleTag;
|
|
22
22
|
Collection: typeof ArticleTags;
|
|
23
23
|
};
|
|
@@ -36,7 +36,7 @@ export declare class Persons implements ICollection<Person> {
|
|
|
36
36
|
}
|
|
37
37
|
export declare const personEntity: {
|
|
38
38
|
tableName: string;
|
|
39
|
-
columns:
|
|
39
|
+
columns: import("../../../src/factory").IColumn[];
|
|
40
40
|
Model: typeof Person;
|
|
41
41
|
Collection: typeof Persons;
|
|
42
42
|
};
|
|
@@ -6,7 +6,7 @@ const { personEntity } = require('./models/person');
|
|
|
6
6
|
const { articleTagEntity } = require('./models/article_tag');
|
|
7
7
|
const { tagEntity } = require('./models/tag');
|
|
8
8
|
const orm = create({
|
|
9
|
-
|
|
9
|
+
entities: [articleEntity, personEntity, articleTagEntity, tagEntity],
|
|
10
10
|
db: void 0
|
|
11
11
|
});
|
|
12
12
|
exports.default = orm;
|
|
@@ -5,7 +5,7 @@ const { articleTagEntity } = require('./models/article_tag');
|
|
|
5
5
|
const { tagEntity } = require('./models/tag');
|
|
6
6
|
|
|
7
7
|
const orm = create({
|
|
8
|
-
|
|
8
|
+
entities: [articleEntity, personEntity, articleTagEntity, tagEntity],
|
|
9
9
|
db: void 0
|
|
10
10
|
});
|
|
11
11
|
export default orm;
|
|
@@ -14,7 +14,7 @@ export declare class LineItems implements ICollection<LineItem> {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const lineItemEntity: {
|
|
16
16
|
tableName: string;
|
|
17
|
-
columns:
|
|
17
|
+
columns: import("../../../src/factory").IColumn[];
|
|
18
18
|
Model: typeof LineItem;
|
|
19
19
|
Collection: typeof LineItems;
|
|
20
20
|
};
|
|
@@ -12,7 +12,7 @@ export declare class Orders implements ICollection<Order> {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const orderEntity: {
|
|
14
14
|
tableName: string;
|
|
15
|
-
columns:
|
|
15
|
+
columns: import("../../../src/factory").IColumn[];
|
|
16
16
|
Model: typeof Order;
|
|
17
17
|
Collection: typeof Orders;
|
|
18
18
|
};
|
|
@@ -16,7 +16,7 @@ export declare class ParcelEvents implements ICollection<ParcelEvent> {
|
|
|
16
16
|
}
|
|
17
17
|
export declare const parcelEventEntity: {
|
|
18
18
|
tableName: string;
|
|
19
|
-
columns:
|
|
19
|
+
columns: import("../../../src/factory").IColumn[];
|
|
20
20
|
Model: typeof ParcelEvent;
|
|
21
21
|
Collection: typeof ParcelEvents;
|
|
22
22
|
};
|
|
@@ -17,7 +17,7 @@ export declare class ParcelLineItems implements ICollection<ParcelLineItem> {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const parcelLineItemEntity: {
|
|
19
19
|
tableName: string;
|
|
20
|
-
columns:
|
|
20
|
+
columns: import("../../../src/factory").IColumn[];
|
|
21
21
|
Model: typeof ParcelLineItem;
|
|
22
22
|
Collection: typeof ParcelLineItems;
|
|
23
23
|
};
|
|
@@ -11,7 +11,7 @@ export declare class Parcels implements ICollection<Parcel> {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const parcelEntity: {
|
|
13
13
|
tableName: string;
|
|
14
|
-
columns:
|
|
14
|
+
columns: import("../../../src/factory").IColumn[];
|
|
15
15
|
Model: typeof Parcel;
|
|
16
16
|
Collection: typeof Parcels;
|
|
17
17
|
};
|
|
@@ -7,7 +7,7 @@ const parcel_line_item_1 = require("./models/parcel-line-item");
|
|
|
7
7
|
const parcel_1 = require("./models/parcel");
|
|
8
8
|
const parcel_event_1 = require("./models/parcel-event");
|
|
9
9
|
const orm = (0, index_1.create)({
|
|
10
|
-
|
|
10
|
+
entities: [
|
|
11
11
|
order_1.orderEntity,
|
|
12
12
|
line_item_1.lineItemEntity,
|
|
13
13
|
parcel_line_item_1.parcelLineItemEntity,
|
|
@@ -5,7 +5,7 @@ import { parcelLineItemEntity } from './models/parcel-line-item';
|
|
|
5
5
|
import { parcelEntity } from './models/parcel';
|
|
6
6
|
import { parcelEventEntity } from './models/parcel-event';
|
|
7
7
|
const orm = create({
|
|
8
|
-
|
|
8
|
+
entities: [
|
|
9
9
|
orderEntity,
|
|
10
10
|
lineItemEntity,
|
|
11
11
|
parcelLineItemEntity,
|
|
@@ -18,7 +18,7 @@ export declare class FeatureSwitches implements ICollection<FeatureSwitch> {
|
|
|
18
18
|
}
|
|
19
19
|
export declare const featureSwitchEntity: {
|
|
20
20
|
tableName: string;
|
|
21
|
-
columns:
|
|
21
|
+
columns: import("../../../src/factory").IColumn[];
|
|
22
22
|
Model: typeof FeatureSwitch;
|
|
23
23
|
Collection: typeof FeatureSwitches;
|
|
24
24
|
};
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const index_1 = require("../../src/index");
|
|
4
4
|
const feature_switch_1 = require("./models/feature-switch");
|
|
5
5
|
const orm = (0, index_1.create)({
|
|
6
|
-
|
|
6
|
+
entities: [feature_switch_1.featureSwitchEntity],
|
|
7
7
|
db: void 0
|
|
8
8
|
});
|
|
9
9
|
exports.default = orm;
|
|
@@ -25,7 +25,7 @@ export declare class LineItems implements ICollection<LineItem> {
|
|
|
25
25
|
}
|
|
26
26
|
export declare const lineItemEntity: {
|
|
27
27
|
tableName: string;
|
|
28
|
-
columns:
|
|
28
|
+
columns: import("../../../src/factory").IColumn[];
|
|
29
29
|
Model: typeof LineItem;
|
|
30
30
|
Collection: typeof LineItems;
|
|
31
31
|
};
|
|
@@ -36,7 +36,7 @@ export declare class Orders implements ICollection<Order> {
|
|
|
36
36
|
}
|
|
37
37
|
export declare const orderEntity: {
|
|
38
38
|
tableName: string;
|
|
39
|
-
columns:
|
|
39
|
+
columns: import("../../../src/factory").IColumn[];
|
|
40
40
|
Model: typeof Order;
|
|
41
41
|
Collection: typeof Orders;
|
|
42
42
|
};
|
|
@@ -25,7 +25,7 @@ export declare class ProductVariants implements ICollection<ProductVariant> {
|
|
|
25
25
|
}
|
|
26
26
|
export declare const productVariantEntity: {
|
|
27
27
|
tableName: string;
|
|
28
|
-
columns:
|
|
28
|
+
columns: import("../../../src/factory").IColumn[];
|
|
29
29
|
Model: typeof ProductVariant;
|
|
30
30
|
Collection: typeof ProductVariants;
|
|
31
31
|
};
|
|
@@ -19,7 +19,7 @@ export declare class Products implements ICollection<Product> {
|
|
|
19
19
|
}
|
|
20
20
|
export declare const productEntity: {
|
|
21
21
|
tableName: string;
|
|
22
|
-
columns:
|
|
22
|
+
columns: import("../../../src/factory").IColumn[];
|
|
23
23
|
Model: typeof Product;
|
|
24
24
|
Collection: typeof Products;
|
|
25
25
|
};
|
|
@@ -14,7 +14,7 @@ export declare class UtmSources implements ICollection<UtmSource> {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const utmSourceEntity: {
|
|
16
16
|
tableName: string;
|
|
17
|
-
columns:
|
|
17
|
+
columns: import("../../../src/factory").IColumn[];
|
|
18
18
|
Model: typeof UtmSource;
|
|
19
19
|
Collection: typeof UtmSources;
|
|
20
20
|
};
|
|
@@ -7,7 +7,7 @@ const line_item_1 = require("./models/line-item");
|
|
|
7
7
|
const product_variant_1 = require("./models/product-variant");
|
|
8
8
|
const product_1 = require("./models/product");
|
|
9
9
|
const orm = (0, index_1.create)({
|
|
10
|
-
|
|
10
|
+
entities: [
|
|
11
11
|
utm_source_1.utmSourceEntity,
|
|
12
12
|
order_1.orderEntity,
|
|
13
13
|
line_item_1.lineItemEntity,
|
|
@@ -12,7 +12,7 @@ export declare class ActualProductVariants implements ICollection<ActualProductV
|
|
|
12
12
|
}
|
|
13
13
|
export declare const actualProductVariantEntity: {
|
|
14
14
|
tableName: string;
|
|
15
|
-
columns:
|
|
15
|
+
columns: import("../../../src/factory").IColumn[];
|
|
16
16
|
Model: typeof ActualProductVariant;
|
|
17
17
|
Collection: typeof ActualProductVariants;
|
|
18
18
|
};
|
|
@@ -15,7 +15,7 @@ export declare class Colors implements ICollection<Color> {
|
|
|
15
15
|
}
|
|
16
16
|
export declare const colorEntity: {
|
|
17
17
|
tableName: string;
|
|
18
|
-
columns:
|
|
18
|
+
columns: import("../../../src/factory").IColumn[];
|
|
19
19
|
Model: typeof Color;
|
|
20
20
|
Collection: typeof Colors;
|
|
21
21
|
};
|
|
@@ -12,7 +12,7 @@ export declare class Customers implements ICollection<Customer> {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const customerEntity: {
|
|
14
14
|
tableName: string;
|
|
15
|
-
columns:
|
|
15
|
+
columns: import("../../../src/factory").IColumn[];
|
|
16
16
|
Model: typeof Customer;
|
|
17
17
|
Collection: typeof Customers;
|
|
18
18
|
};
|
|
@@ -13,7 +13,7 @@ export declare class Genders implements ICollection<Gender> {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const genderEntity: {
|
|
15
15
|
tableName: string;
|
|
16
|
-
columns:
|
|
16
|
+
columns: import("../../../src/factory").IColumn[];
|
|
17
17
|
Model: typeof Gender;
|
|
18
18
|
Collection: typeof Genders;
|
|
19
19
|
};
|
|
@@ -21,7 +21,7 @@ export declare class InventoryLevels implements ICollection<InventoryLevel> {
|
|
|
21
21
|
}
|
|
22
22
|
export declare const inventoryLevelEntity: {
|
|
23
23
|
tableName: string;
|
|
24
|
-
columns:
|
|
24
|
+
columns: import("../../../src/factory").IColumn[];
|
|
25
25
|
Model: typeof InventoryLevel;
|
|
26
26
|
Collection: typeof InventoryLevels;
|
|
27
27
|
};
|
|
@@ -25,7 +25,7 @@ export declare class LineItems implements ICollection<LineItem> {
|
|
|
25
25
|
}
|
|
26
26
|
export declare const lineItemEntity: {
|
|
27
27
|
tableName: string;
|
|
28
|
-
columns:
|
|
28
|
+
columns: import("../../../src/factory").IColumn[];
|
|
29
29
|
Model: typeof LineItem;
|
|
30
30
|
Collection: typeof LineItems;
|
|
31
31
|
};
|
|
@@ -44,7 +44,7 @@ export declare class Orders implements ICollection<Order> {
|
|
|
44
44
|
}
|
|
45
45
|
export declare const orderEntity: {
|
|
46
46
|
tableName: string;
|
|
47
|
-
columns:
|
|
47
|
+
columns: import("../../../src/factory").IColumn[];
|
|
48
48
|
Model: typeof Order;
|
|
49
49
|
Collection: typeof Orders;
|
|
50
50
|
};
|
|
@@ -16,7 +16,7 @@ export declare class ParcelEvents implements ICollection<ParcelEvent> {
|
|
|
16
16
|
}
|
|
17
17
|
export declare const parcelEventEntity: {
|
|
18
18
|
tableName: string;
|
|
19
|
-
columns:
|
|
19
|
+
columns: import("../../../src/factory").IColumn[];
|
|
20
20
|
Model: typeof ParcelEvent;
|
|
21
21
|
Collection: typeof ParcelEvents;
|
|
22
22
|
};
|
|
@@ -17,7 +17,7 @@ export declare class ParcelLineItems implements ICollection<ParcelLineItem> {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const parcelLineItemEntity: {
|
|
19
19
|
tableName: string;
|
|
20
|
-
columns:
|
|
20
|
+
columns: import("../../../src/factory").IColumn[];
|
|
21
21
|
Model: typeof ParcelLineItem;
|
|
22
22
|
Collection: typeof ParcelLineItems;
|
|
23
23
|
};
|
|
@@ -11,7 +11,7 @@ export declare class Parcels implements ICollection<Parcel> {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const parcelEntity: {
|
|
13
13
|
tableName: string;
|
|
14
|
-
columns:
|
|
14
|
+
columns: import("../../../src/factory").IColumn[];
|
|
15
15
|
Model: typeof Parcel;
|
|
16
16
|
Collection: typeof Parcels;
|
|
17
17
|
};
|
|
@@ -21,7 +21,7 @@ export declare class PhysicalAddresses implements ICollection<PhysicalAddress> {
|
|
|
21
21
|
}
|
|
22
22
|
export declare const physicalAddressEntity: {
|
|
23
23
|
tableName: string;
|
|
24
|
-
columns:
|
|
24
|
+
columns: import("../../../src/factory").IColumn[];
|
|
25
25
|
Model: typeof PhysicalAddress;
|
|
26
26
|
Collection: typeof PhysicalAddresses;
|
|
27
27
|
};
|
|
@@ -17,7 +17,7 @@ export declare class ProductVariantImages implements ICollection<ProductVariantI
|
|
|
17
17
|
}
|
|
18
18
|
export declare const productVariantImageEntity: {
|
|
19
19
|
tableName: string;
|
|
20
|
-
columns:
|
|
20
|
+
columns: import("../../../src/factory").IColumn[];
|
|
21
21
|
Model: typeof ProductVariantImage;
|
|
22
22
|
Collection: typeof ProductVariantImages;
|
|
23
23
|
};
|
|
@@ -35,7 +35,7 @@ export declare class ProductVariants implements ICollection<ProductVariant> {
|
|
|
35
35
|
}
|
|
36
36
|
export declare const productVariantEntity: {
|
|
37
37
|
tableName: string;
|
|
38
|
-
columns:
|
|
38
|
+
columns: import("../../../src/factory").IColumn[];
|
|
39
39
|
Model: typeof ProductVariant;
|
|
40
40
|
Collection: typeof ProductVariants;
|
|
41
41
|
};
|
|
@@ -20,7 +20,7 @@ export declare class Products implements ICollection<Product> {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const productEntity: {
|
|
22
22
|
tableName: string;
|
|
23
|
-
columns:
|
|
23
|
+
columns: import("../../../src/factory").IColumn[];
|
|
24
24
|
Model: typeof Product;
|
|
25
25
|
Collection: typeof Products;
|
|
26
26
|
};
|
|
@@ -21,7 +21,7 @@ export declare class Refunds implements ICollection<Refund> {
|
|
|
21
21
|
}
|
|
22
22
|
export declare const refundEntity: {
|
|
23
23
|
tableName: string;
|
|
24
|
-
columns:
|
|
24
|
+
columns: import("../../../src/factory").IColumn[];
|
|
25
25
|
Model: typeof Refund;
|
|
26
26
|
Collection: typeof Refunds;
|
|
27
27
|
};
|
|
@@ -19,7 +19,7 @@ export declare class ShipmentActualProductVariants implements ICollection<Shipme
|
|
|
19
19
|
}
|
|
20
20
|
export declare const shipmentActualProductVariantEntity: {
|
|
21
21
|
tableName: string;
|
|
22
|
-
columns:
|
|
22
|
+
columns: import("../../../src/factory").IColumn[];
|
|
23
23
|
Model: typeof ShipmentActualProductVariant;
|
|
24
24
|
Collection: typeof ShipmentActualProductVariants;
|
|
25
25
|
};
|
|
@@ -13,7 +13,7 @@ export declare class Shipments implements ICollection<Shipment> {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const shipmentEntity: {
|
|
15
15
|
tableName: string;
|
|
16
|
-
columns:
|
|
16
|
+
columns: import("../../../src/factory").IColumn[];
|
|
17
17
|
Model: typeof Shipment;
|
|
18
18
|
Collection: typeof Shipments;
|
|
19
19
|
};
|
|
@@ -13,7 +13,7 @@ export declare class UtmMediums implements ICollection<UtmMedium> {
|
|
|
13
13
|
}
|
|
14
14
|
export declare const utmMediumEntity: {
|
|
15
15
|
tableName: string;
|
|
16
|
-
columns:
|
|
16
|
+
columns: import("../../../src/factory").IColumn[];
|
|
17
17
|
Model: typeof UtmMedium;
|
|
18
18
|
Collection: typeof UtmMediums;
|
|
19
19
|
};
|
|
@@ -14,7 +14,7 @@ export declare class UtmSources implements ICollection<UtmSource> {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const utmSourceEntity: {
|
|
16
16
|
tableName: string;
|
|
17
|
-
columns:
|
|
17
|
+
columns: import("../../../src/factory").IColumn[];
|
|
18
18
|
Model: typeof UtmSource;
|
|
19
19
|
Collection: typeof UtmSources;
|
|
20
20
|
};
|
|
@@ -22,7 +22,7 @@ const parcel_line_item_1 = require("./models/parcel-line-item");
|
|
|
22
22
|
const parcel_1 = require("./models/parcel");
|
|
23
23
|
const parcel_event_1 = require("./models/parcel-event");
|
|
24
24
|
const orm = (0, index_1.create)({
|
|
25
|
-
|
|
25
|
+
entities: [
|
|
26
26
|
inventory_level_1.inventoryLevelEntity,
|
|
27
27
|
actual_product_variant_1.actualProductVariantEntity,
|
|
28
28
|
product_variant_1.productVariantEntity,
|
|
@@ -12,7 +12,7 @@ export declare class Customers implements ICollection<Customer> {
|
|
|
12
12
|
}
|
|
13
13
|
export declare const customerEntity: {
|
|
14
14
|
tableName: string;
|
|
15
|
-
columns:
|
|
15
|
+
columns: import("../../../src/factory").IColumn[];
|
|
16
16
|
Model: typeof Customer;
|
|
17
17
|
Collection: typeof Customers;
|
|
18
18
|
};
|
|
@@ -14,7 +14,7 @@ export declare class LineItems implements ICollection<LineItem> {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const lineItemEntity: {
|
|
16
16
|
tableName: string;
|
|
17
|
-
columns:
|
|
17
|
+
columns: import("../../../src/factory").IColumn[];
|
|
18
18
|
Model: typeof LineItem;
|
|
19
19
|
Collection: typeof LineItems;
|
|
20
20
|
};
|
|
@@ -14,7 +14,7 @@ export declare class Orders implements ICollection<Order> {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const orderEntity: {
|
|
16
16
|
tableName: string;
|
|
17
|
-
columns:
|
|
17
|
+
columns: import("../../../src/factory").IColumn[];
|
|
18
18
|
Model: typeof Order;
|
|
19
19
|
Collection: typeof Orders;
|
|
20
20
|
};
|
|
@@ -17,7 +17,7 @@ export declare class ParcelLineItems implements ICollection<ParcelLineItem> {
|
|
|
17
17
|
}
|
|
18
18
|
export declare const parcelLineItemEntity: {
|
|
19
19
|
tableName: string;
|
|
20
|
-
columns:
|
|
20
|
+
columns: import("../../../src/factory").IColumn[];
|
|
21
21
|
Model: typeof ParcelLineItem;
|
|
22
22
|
Collection: typeof ParcelLineItems;
|
|
23
23
|
};
|
|
@@ -11,7 +11,7 @@ export declare class Parcels implements ICollection<Parcel> {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const parcelEntity: {
|
|
13
13
|
tableName: string;
|
|
14
|
-
columns:
|
|
14
|
+
columns: import("../../../src/factory").IColumn[];
|
|
15
15
|
Model: typeof Parcel;
|
|
16
16
|
Collection: typeof Parcels;
|
|
17
17
|
};
|
|
@@ -7,7 +7,7 @@ const line_item_1 = require("./models/line-item");
|
|
|
7
7
|
const order_1 = require("./models/order");
|
|
8
8
|
const customer_1 = require("./models/customer");
|
|
9
9
|
const orm = (0, index_1.create)({
|
|
10
|
-
|
|
10
|
+
entities: [
|
|
11
11
|
parcel_1.parcelEntity,
|
|
12
12
|
parcel_line_item_1.parcelLineItemEntity,
|
|
13
13
|
line_item_1.lineItemEntity,
|
|
@@ -5,7 +5,7 @@ import { lineItemEntity } from './models/line-item';
|
|
|
5
5
|
import { orderEntity } from './models/order';
|
|
6
6
|
import { customerEntity } from './models/customer';
|
|
7
7
|
const orm = create({
|
|
8
|
-
|
|
8
|
+
entities: [
|
|
9
9
|
parcelEntity,
|
|
10
10
|
parcelLineItemEntity,
|
|
11
11
|
lineItemEntity,
|
|
@@ -11,7 +11,7 @@ export declare class Audiences implements ICollection<Audience> {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const audienceEntity: {
|
|
13
13
|
tableName: string;
|
|
14
|
-
columns:
|
|
14
|
+
columns: import("../../../src/factory").IColumn[];
|
|
15
15
|
Model: typeof Audience;
|
|
16
16
|
Collection: typeof Audiences;
|
|
17
17
|
};
|
|
@@ -11,7 +11,7 @@ export declare class Brands implements ICollection<Brand> {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const brandEntity: {
|
|
13
13
|
tableName: string;
|
|
14
|
-
columns:
|
|
14
|
+
columns: import("../../../src/factory").IColumn[];
|
|
15
15
|
Model: typeof Brand;
|
|
16
16
|
Collection: typeof Brands;
|
|
17
17
|
};
|