@merkaly/api 0.2.5-7 → 0.3.0
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/account/address/address.entity.d.ts +7 -0
- package/dist/account/address/address.validator.d.ts +17 -0
- package/dist/account/address/index.d.ts +2 -0
- package/dist/account/address/index.js +2 -0
- package/dist/account/user/index.d.ts +2 -0
- package/dist/account/user/index.js +2 -0
- package/dist/account/user/user.entity.d.ts +8 -0
- package/dist/account/user/user.validator.d.ts +17 -0
- package/dist/billing/payment/index.d.ts +2 -0
- package/dist/billing/payment/index.js +5 -0
- package/dist/billing/payment/payment.enum.d.ts +15 -0
- package/dist/billing/payment/payment.enum.js +21 -0
- package/dist/billing/payment/transaction.entity.d.ts +15 -0
- package/dist/billing/status/index.d.ts +1 -0
- package/dist/billing/status/index.js +2 -0
- package/dist/billing/status/status.entity.d.ts +8 -0
- package/dist/inventory/catalog/attribute/attribute.entity.d.ts +8 -0
- package/dist/inventory/catalog/attribute/attribute.validator.d.ts +15 -0
- package/dist/inventory/catalog/attribute/index.d.ts +2 -0
- package/dist/inventory/catalog/attribute/index.js +2 -0
- package/dist/inventory/catalog/brand/brand.entity.d.ts +7 -0
- package/dist/inventory/catalog/brand/brand.validator.d.ts +12 -0
- package/dist/inventory/catalog/brand/index.d.ts +2 -0
- package/dist/inventory/catalog/brand/index.js +2 -0
- package/dist/inventory/catalog/category/category.entity.d.ts +7 -0
- package/dist/inventory/catalog/category/category.validator.d.ts +12 -0
- package/dist/inventory/catalog/category/index.d.ts +2 -0
- package/dist/inventory/catalog/category/index.js +2 -0
- package/dist/inventory/catalog/collection/collection.entity.d.ts +7 -0
- package/dist/inventory/catalog/collection/collection.validator.d.ts +13 -0
- package/dist/inventory/catalog/collection/index.d.ts +2 -0
- package/dist/inventory/catalog/collection/index.js +2 -0
- package/dist/inventory/catalog/product/index.d.ts +3 -0
- package/dist/inventory/catalog/product/index.js +4 -0
- package/dist/inventory/catalog/product/product.entity.d.ts +31 -0
- package/dist/inventory/catalog/product/product.status.enum.d.ts +8 -0
- package/dist/inventory/catalog/product/product.status.enum.js +13 -0
- package/dist/inventory/catalog/product/product.validator.d.ts +39 -0
- package/dist/inventory/configuration/label/index.d.ts +2 -0
- package/dist/inventory/configuration/label/index.js +2 -0
- package/dist/inventory/configuration/label/label.entity.d.ts +7 -0
- package/dist/inventory/configuration/label/label.validator.d.ts +14 -0
- package/dist/inventory/configuration/measurement/index.d.ts +1 -0
- package/dist/inventory/configuration/measurement/index.js +2 -0
- package/dist/inventory/configuration/measurement/measurement.entity.d.ts +8 -0
- package/dist/inventory/configuration/unit/index.d.ts +1 -0
- package/dist/inventory/configuration/unit/index.js +2 -0
- package/dist/inventory/configuration/unit/unit.entity.d.ts +8 -0
- package/dist/inventory/stock/backorder/backorder.entity.d.ts +33 -0
- package/dist/inventory/stock/backorder/backorder.validator.d.ts +24 -0
- package/dist/inventory/stock/backorder/index.d.ts +2 -0
- package/dist/inventory/stock/backorder/index.js +2 -0
- package/dist/inventory/stock/transfer/index.d.ts +2 -0
- package/dist/inventory/stock/transfer/index.js +2 -0
- package/dist/inventory/stock/transfer/transfer.entity.d.ts +28 -0
- package/dist/inventory/stock/transfer/transfer.validator.d.ts +25 -0
- package/dist/inventory/stock/warehouse/index.d.ts +2 -0
- package/dist/inventory/stock/warehouse/index.js +2 -0
- package/dist/inventory/stock/warehouse/warehouse.entity.d.ts +21 -0
- package/dist/inventory/stock/warehouse/warehouse.validator.d.ts +27 -0
- package/dist/logistic/carrier/carrier.entity.d.ts +10 -0
- package/dist/logistic/carrier/carrier.validator.d.ts +17 -0
- package/dist/logistic/carrier/index.d.ts +2 -0
- package/dist/logistic/carrier/index.js +2 -0
- package/dist/logistic/shipment/index.d.ts +3 -0
- package/dist/logistic/shipment/index.js +5 -0
- package/dist/logistic/shipment/shipment.entity.d.ts +19 -0
- package/dist/logistic/shipment/shipment.enum.d.ts +16 -0
- package/dist/logistic/shipment/shipment.enum.js +22 -0
- package/dist/logistic/shipment/shipment.validator.d.ts +18 -0
- package/dist/order/purchase/item/index.d.ts +2 -0
- package/dist/order/purchase/item/index.js +2 -0
- package/dist/order/purchase/item/item.entity.d.ts +11 -0
- package/dist/order/purchase/item/item.validator.d.ts +7 -0
- package/dist/order/purchase/transaction/index.d.ts +3 -0
- package/dist/order/purchase/transaction/index.js +4 -0
- package/dist/order/purchase/transaction/transaction.entity.d.ts +17 -0
- package/dist/order/purchase/transaction/transaction.enum.d.ts +8 -0
- package/dist/order/purchase/transaction/transaction.enum.js +13 -0
- package/dist/order/purchase/transaction/transaction.validator.d.ts +21 -0
- package/dist/order/purchase/vendor/index.d.ts +2 -0
- package/dist/order/purchase/vendor/index.js +2 -0
- package/dist/order/purchase/vendor/vendor.entity.d.ts +11 -0
- package/dist/order/purchase/vendor/vendor.validator.d.ts +18 -0
- package/dist/order/sale/customer/customer.entity.d.ts +11 -0
- package/dist/order/sale/customer/customer.validator.d.ts +18 -0
- package/dist/order/sale/customer/index.d.ts +2 -0
- package/dist/order/sale/customer/index.js +2 -0
- package/dist/order/sale/item/index.d.ts +2 -0
- package/dist/order/sale/item/index.js +2 -0
- package/dist/order/sale/item/item.entity.d.ts +10 -0
- package/dist/order/sale/item/item.validator.d.ts +5 -0
- package/dist/order/sale/transaction/index.d.ts +3 -0
- package/dist/order/sale/transaction/index.js +4 -0
- package/dist/order/sale/transaction/transaction.entity.d.ts +21 -0
- package/dist/order/sale/transaction/transaction.enum.d.ts +8 -0
- package/dist/order/sale/transaction/transaction.enum.js +13 -0
- package/dist/order/sale/transaction/transaction.validator.d.ts +21 -0
- package/package.json +102 -86
- package/.output/abstracts/abstract.entity.d.ts +0 -14
- package/.output/abstracts/abstract.validator.d.ts +0 -24
- package/.output/abstracts/abstract.validator.js +0 -118
- package/.output/exceptions/missing-identity.exception.d.ts +0 -5
- package/.output/exceptions/missing-identity.exception.js +0 -30
- package/.output/modules/asset/files/file.entity.d.ts +0 -9
- package/.output/modules/asset/files/file.schema.d.ts +0 -34
- package/.output/modules/asset/files/file.schema.js +0 -10
- package/.output/modules/auth/organizations/organization.entity.d.ts +0 -8
- package/.output/modules/auth/users/user.entity.d.ts +0 -9
- package/.output/modules/auth/users/user.schema.d.ts +0 -34
- package/.output/modules/auth/users/user.schema.js +0 -10
- package/.output/modules/auth/users/user.validator.d.ts +0 -12
- package/.output/modules/auth/users/user.validator.js +0 -58
- package/.output/modules/inventory/brands/brand.entity.d.ts +0 -6
- package/.output/modules/inventory/brands/brand.schema.d.ts +0 -34
- package/.output/modules/inventory/brands/brand.schema.js +0 -10
- package/.output/modules/inventory/brands/brand.validator.d.ts +0 -11
- package/.output/modules/inventory/brands/brand.validator.js +0 -74
- package/.output/modules/inventory/categories/category.entity.d.ts +0 -6
- package/.output/modules/inventory/categories/category.schema.d.ts +0 -34
- package/.output/modules/inventory/categories/category.schema.js +0 -10
- package/.output/modules/inventory/categories/category.validator.d.ts +0 -8
- package/.output/modules/inventory/categories/category.validator.js +0 -42
- package/.output/modules/inventory/complements/complement.entity.d.ts +0 -6
- package/.output/modules/inventory/complements/complement.validator.d.ts +0 -10
- package/.output/modules/inventory/complements/complement.validator.js +0 -52
- package/.output/modules/inventory/products/documents/attribute.document.d.ts +0 -5
- package/.output/modules/inventory/products/documents/attribute.document.js +0 -33
- package/.output/modules/inventory/products/documents/dimension.document.d.ts +0 -6
- package/.output/modules/inventory/products/documents/dimension.document.js +0 -35
- package/.output/modules/inventory/products/product.entity.d.ts +0 -19
- package/.output/modules/inventory/products/product.schema.d.ts +0 -34
- package/.output/modules/inventory/products/product.schema.js +0 -18
- package/.output/modules/inventory/products/product.validator.d.ts +0 -29
- package/.output/modules/inventory/products/product.validator.js +0 -179
- package/.output/modules/inventory/products/validators/attributes.validator.d.ts +0 -5
- package/.output/modules/inventory/products/validators/attributes.validator.js +0 -35
- package/.output/modules/inventory/products/validators/dimension.validator.d.ts +0 -6
- package/.output/modules/inventory/products/validators/dimension.validator.js +0 -38
- package/.output/modules/sale/customers/customer.entity.d.ts +0 -8
- package/.output/modules/sale/customers/customer.schema.d.ts +0 -34
- package/.output/modules/sale/customers/customer.schema.js +0 -10
- package/.output/modules/sale/customers/customer.validator.d.ts +0 -14
- package/.output/modules/sale/customers/customer.validator.js +0 -94
- package/.output/modules/sale/orders/documents/address.document.d.ts +0 -8
- package/.output/modules/sale/orders/documents/address.document.js +0 -43
- package/.output/modules/sale/orders/documents/status.document.d.ts +0 -8
- package/.output/modules/sale/orders/documents/status.document.js +0 -34
- package/.output/modules/sale/orders/entities/item.entity.d.ts +0 -38
- package/.output/modules/sale/orders/enums/order.status.d.ts +0 -6
- package/.output/modules/sale/orders/enums/order.status.js +0 -10
- package/.output/modules/sale/orders/order.entity.d.ts +0 -21
- package/.output/modules/sale/orders/order.validator.d.ts +0 -16
- package/.output/modules/sale/orders/order.validator.js +0 -86
- package/.output/modules/sale/orders/validators/address.validator.d.ts +0 -17
- package/.output/modules/sale/orders/validators/address.validator.js +0 -81
- package/.output/modules/sale/orders/validators/billing.validator.d.ts +0 -8
- package/.output/modules/sale/orders/validators/billing.validator.js +0 -13
- package/.output/modules/sale/orders/validators/item.validator.d.ts +0 -5
- package/.output/modules/sale/orders/validators/item.validator.js +0 -32
- package/.output/modules/sale/orders/validators/payment.validator.d.ts +0 -10
- package/.output/modules/sale/orders/validators/payment.validator.js +0 -62
- package/.output/modules/sale/orders/validators/shipping.validator.d.ts +0 -9
- package/.output/modules/sale/orders/validators/shipping.validator.js +0 -14
- package/.output/modules/sale/payments/entities/status.entity.d.ts +0 -8
- package/.output/modules/sale/payments/enums/billing.type.d.ts +0 -6
- package/.output/modules/sale/payments/enums/billing.type.js +0 -10
- package/.output/modules/sale/payments/enums/payment.status.d.ts +0 -7
- package/.output/modules/sale/payments/enums/payment.status.js +0 -11
- package/.output/modules/sale/payments/enums/shipping.type.d.ts +0 -4
- package/.output/modules/sale/payments/enums/shipping.type.js +0 -8
- package/.output/modules/sale/payments/payment.entity.d.ts +0 -12
- package/.output/modules/sale/payments/payment.schema.d.ts +0 -34
- package/.output/modules/sale/payments/payment.schema.js +0 -14
- package/.output/modules/sale/payments/payment.validator.d.ts +0 -16
- package/.output/modules/sale/payments/payment.validator.js +0 -77
- package/.output/tsconfig.package.tsbuildinfo +0 -1
- package/README.md +0 -79
package/package.json
CHANGED
|
@@ -1,96 +1,112 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Shared TypeScript interfaces and enums for Merkaly API",
|
|
5
|
+
"exports": {
|
|
6
|
+
"./inventory/catalog/product": {
|
|
7
|
+
"types": "./dist/inventory/catalog/product/index.d.ts",
|
|
8
|
+
"default": "./dist/inventory/catalog/product/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./inventory/catalog/category": {
|
|
11
|
+
"types": "./dist/inventory/catalog/category/index.d.ts",
|
|
12
|
+
"default": "./dist/inventory/catalog/category/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./inventory/catalog/brand": {
|
|
15
|
+
"types": "./dist/inventory/catalog/brand/index.d.ts",
|
|
16
|
+
"default": "./dist/inventory/catalog/brand/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./inventory/catalog/attribute": {
|
|
19
|
+
"types": "./dist/inventory/catalog/attribute/index.d.ts",
|
|
20
|
+
"default": "./dist/inventory/catalog/attribute/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./inventory/catalog/collection": {
|
|
23
|
+
"types": "./dist/inventory/catalog/collection/index.d.ts",
|
|
24
|
+
"default": "./dist/inventory/catalog/collection/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./inventory/configuration/measurement": {
|
|
27
|
+
"types": "./dist/inventory/configuration/measurement/index.d.ts",
|
|
28
|
+
"default": "./dist/inventory/configuration/measurement/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./inventory/configuration/unit": {
|
|
31
|
+
"types": "./dist/inventory/configuration/unit/index.d.ts",
|
|
32
|
+
"default": "./dist/inventory/configuration/unit/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./inventory/configuration/label": {
|
|
35
|
+
"types": "./dist/inventory/configuration/label/index.d.ts",
|
|
36
|
+
"default": "./dist/inventory/configuration/label/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./inventory/stock/warehouse": {
|
|
39
|
+
"types": "./dist/inventory/stock/warehouse/index.d.ts",
|
|
40
|
+
"default": "./dist/inventory/stock/warehouse/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./inventory/stock/transfer": {
|
|
43
|
+
"types": "./dist/inventory/stock/transfer/index.d.ts",
|
|
44
|
+
"default": "./dist/inventory/stock/transfer/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./inventory/stock/backorder": {
|
|
47
|
+
"types": "./dist/inventory/stock/backorder/index.d.ts",
|
|
48
|
+
"default": "./dist/inventory/stock/backorder/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./order/sale/transaction": {
|
|
51
|
+
"types": "./dist/order/sale/transaction/index.d.ts",
|
|
52
|
+
"default": "./dist/order/sale/transaction/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./order/sale/customer": {
|
|
55
|
+
"types": "./dist/order/sale/customer/index.d.ts",
|
|
56
|
+
"default": "./dist/order/sale/customer/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./order/sale/item": {
|
|
59
|
+
"types": "./dist/order/sale/item/index.d.ts",
|
|
60
|
+
"default": "./dist/order/sale/item/index.js"
|
|
61
|
+
},
|
|
62
|
+
"./order/purchase/transaction": {
|
|
63
|
+
"types": "./dist/order/purchase/transaction/index.d.ts",
|
|
64
|
+
"default": "./dist/order/purchase/transaction/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./order/purchase/vendor": {
|
|
67
|
+
"types": "./dist/order/purchase/vendor/index.d.ts",
|
|
68
|
+
"default": "./dist/order/purchase/vendor/index.js"
|
|
69
|
+
},
|
|
70
|
+
"./order/purchase/item": {
|
|
71
|
+
"types": "./dist/order/purchase/item/index.d.ts",
|
|
72
|
+
"default": "./dist/order/purchase/item/index.js"
|
|
73
|
+
},
|
|
74
|
+
"./billing/payment": {
|
|
75
|
+
"types": "./dist/billing/payment/index.d.ts",
|
|
76
|
+
"default": "./dist/billing/payment/index.js"
|
|
77
|
+
},
|
|
78
|
+
"./billing/status": {
|
|
79
|
+
"types": "./dist/billing/status/index.d.ts",
|
|
80
|
+
"default": "./dist/billing/status/index.js"
|
|
81
|
+
},
|
|
82
|
+
"./logistic/shipment": {
|
|
83
|
+
"types": "./dist/logistic/shipment/index.d.ts",
|
|
84
|
+
"default": "./dist/logistic/shipment/index.js"
|
|
85
|
+
},
|
|
86
|
+
"./logistic/carrier": {
|
|
87
|
+
"types": "./dist/logistic/carrier/index.d.ts",
|
|
88
|
+
"default": "./dist/logistic/carrier/index.js"
|
|
89
|
+
},
|
|
90
|
+
"./account/user": {
|
|
91
|
+
"types": "./dist/account/user/index.d.ts",
|
|
92
|
+
"default": "./dist/account/user/index.js"
|
|
93
|
+
},
|
|
94
|
+
"./account/address": {
|
|
95
|
+
"types": "./dist/account/address/index.d.ts",
|
|
96
|
+
"default": "./dist/account/address/index.js"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
4
99
|
"files": [
|
|
5
|
-
"
|
|
100
|
+
"dist"
|
|
6
101
|
],
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "https://github.com/merkaly-io/api.git"
|
|
10
|
-
},
|
|
11
|
-
"license": "UNLICENSED",
|
|
12
102
|
"scripts": {
|
|
13
|
-
"build": "
|
|
14
|
-
"
|
|
15
|
-
"console": "yarn clean && ts-node -r tsconfig-paths/register ./src/app.console.ts",
|
|
16
|
-
"dev": "nest start --watch",
|
|
17
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
18
|
-
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
|
19
|
-
"postpack": "yarn run clean",
|
|
20
|
-
"prebuild": "yarn run clean",
|
|
21
|
-
"prepack": ".bin/package.sh",
|
|
22
|
-
"start": "node dist/src/main",
|
|
23
|
-
"test": "jest",
|
|
24
|
-
"test:cov": "jest --coverage",
|
|
25
|
-
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
26
|
-
"test:e2e": "jest --config ./test/jest-e2e.json",
|
|
27
|
-
"test:watch": "jest --watch"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"auth0": "^4.2.0",
|
|
31
|
-
"class-transformer": "^0.5.1",
|
|
32
|
-
"class-validator": "^0.14.0",
|
|
33
|
-
"mongoose": "^7.5.3",
|
|
34
|
-
"reflect-metadata": "^0.1.14"
|
|
103
|
+
"build": "tsx build.ts",
|
|
104
|
+
"prepack": "pnpm build"
|
|
35
105
|
},
|
|
36
106
|
"devDependencies": {
|
|
37
|
-
"
|
|
38
|
-
"@nestjs/cli": "^10.2.1",
|
|
39
|
-
"@nestjs/common": "^9.0.0",
|
|
40
|
-
"@nestjs/config": "^3.1.1",
|
|
41
|
-
"@nestjs/core": "^9.0.0",
|
|
42
|
-
"@nestjs/jwt": "^10.2.0",
|
|
43
|
-
"@nestjs/mongoose": "^10.0.1",
|
|
44
|
-
"@nestjs/passport": "^10.0.3",
|
|
45
|
-
"@nestjs/platform-express": "^9.0.0",
|
|
46
|
-
"@nestjs/schematics": "^10.0.3",
|
|
47
|
-
"@nestjs/swagger": "^7.1.16",
|
|
48
|
-
"@nestjs/testing": "^9.0.0",
|
|
49
|
-
"@types/express": "^4.17.21",
|
|
50
|
-
"@types/jest": "29.5.11",
|
|
51
|
-
"@types/multer": "^1.4.11",
|
|
52
|
-
"@types/node": "20.10.3",
|
|
53
|
-
"@types/passport-jwt": "^3.0.13",
|
|
54
|
-
"@types/supertest": "^2.0.16",
|
|
55
|
-
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
56
|
-
"@typescript-eslint/parser": "^5.0.0",
|
|
57
|
-
"class-transformer": "^0.5.1",
|
|
58
|
-
"class-validator": "^0.14.0",
|
|
59
|
-
"dotenv": "^16.3.1",
|
|
60
|
-
"eslint": "^8.56.0",
|
|
61
|
-
"eslint-config-prettier": "^8.3.0",
|
|
62
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
63
|
-
"jest": "29.7.0",
|
|
64
|
-
"mongoose": "^7.5.3",
|
|
65
|
-
"nestjs-console": "^9.0.0",
|
|
66
|
-
"passport": "^0.6.0",
|
|
67
|
-
"passport-jwt": "^4.0.1",
|
|
68
|
-
"prettier": "^2.3.2",
|
|
69
|
-
"reflect-metadata": "^0.1.14",
|
|
70
|
-
"rxjs": "^7.2.0",
|
|
71
|
-
"source-map-support": "^0.5.20",
|
|
72
|
-
"supertest": "^6.1.3",
|
|
73
|
-
"ts-jest": "29.1.1",
|
|
74
|
-
"ts-loader": "^9.5.1",
|
|
75
|
-
"ts-node": "^10.0.0",
|
|
76
|
-
"tsconfig-paths": "4.2.0",
|
|
77
|
-
"typescript": "<5.2.0"
|
|
107
|
+
"tsx": "^4.0.0"
|
|
78
108
|
},
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"js",
|
|
82
|
-
"json",
|
|
83
|
-
"ts"
|
|
84
|
-
],
|
|
85
|
-
"rootDir": "src",
|
|
86
|
-
"testRegex": ".*\\.spec\\.ts$",
|
|
87
|
-
"transform": {
|
|
88
|
-
"^.+\\.(t|j)s$": "ts-jest"
|
|
89
|
-
},
|
|
90
|
-
"collectCoverageFrom": [
|
|
91
|
-
"**/*.(t|j)s"
|
|
92
|
-
],
|
|
93
|
-
"coverageDirectory": "../coverage",
|
|
94
|
-
"testEnvironment": "node"
|
|
109
|
+
"publishConfig": {
|
|
110
|
+
"access": "public"
|
|
95
111
|
}
|
|
96
112
|
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const $collection: {
|
|
2
|
-
timestamps: boolean;
|
|
3
|
-
toJSON: {
|
|
4
|
-
versionKey: boolean;
|
|
5
|
-
virtuals: boolean;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export type MaybeEntity<T extends AbstractEntity> = T;
|
|
9
|
-
export declare abstract class AbstractEntity {
|
|
10
|
-
readonly _id: string;
|
|
11
|
-
readonly createdAt: Date;
|
|
12
|
-
readonly updatedAt?: Date;
|
|
13
|
-
readonly deletedAt?: Date;
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { FilterQuery, PopulateOptions, SortOrder } from 'mongoose';
|
|
2
|
-
import { AbstractEntity } from './abstract.entity';
|
|
3
|
-
export declare abstract class AbstractValidator {
|
|
4
|
-
}
|
|
5
|
-
export type FindResult<I> = {
|
|
6
|
-
items: I[];
|
|
7
|
-
page: number;
|
|
8
|
-
total: number;
|
|
9
|
-
};
|
|
10
|
-
export type KeyOfType<T, V> = keyof {
|
|
11
|
-
[P in keyof T as T[P] extends V ? P : string]: any;
|
|
12
|
-
};
|
|
13
|
-
export declare class IdMongoValidator {
|
|
14
|
-
id: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class ReadValidator<E = AbstractEntity> extends AbstractValidator {
|
|
17
|
-
join?: (PopulateOptions | KeyOfType<E, AbstractEntity | AbstractEntity[]>)[];
|
|
18
|
-
}
|
|
19
|
-
export declare class FindValidator<E = AbstractEntity> extends ReadValidator<E> {
|
|
20
|
-
limit?: number;
|
|
21
|
-
page?: number;
|
|
22
|
-
sort?: Partial<Record<keyof E, SortOrder>>;
|
|
23
|
-
filters?: FilterQuery<E>;
|
|
24
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
-
};
|
|
23
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
-
};
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.FindValidator = exports.ReadValidator = exports.IdMongoValidator = exports.AbstractValidator = void 0;
|
|
28
|
-
var class_transformer_1 = require("class-transformer");
|
|
29
|
-
var class_validator_1 = require("class-validator");
|
|
30
|
-
var AbstractValidator = (function () {
|
|
31
|
-
function AbstractValidator() {
|
|
32
|
-
}
|
|
33
|
-
return AbstractValidator;
|
|
34
|
-
}());
|
|
35
|
-
exports.AbstractValidator = AbstractValidator;
|
|
36
|
-
var IdMongoValidator = exports.IdMongoValidator = (function () {
|
|
37
|
-
function IdMongoValidator() {
|
|
38
|
-
}
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, class_validator_1.IsMongoId)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], IdMongoValidator.prototype, "id", void 0);
|
|
43
|
-
return IdMongoValidator;
|
|
44
|
-
}());
|
|
45
|
-
var ReadValidator = exports.ReadValidator = (function (_super) {
|
|
46
|
-
__extends(ReadValidator, _super);
|
|
47
|
-
function ReadValidator() {
|
|
48
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
49
|
-
_this.join = [];
|
|
50
|
-
return _this;
|
|
51
|
-
}
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
|
54
|
-
var value = _a.value;
|
|
55
|
-
try {
|
|
56
|
-
return JSON.parse(value);
|
|
57
|
-
}
|
|
58
|
-
catch (e) {
|
|
59
|
-
return value;
|
|
60
|
-
}
|
|
61
|
-
}),
|
|
62
|
-
(0, class_validator_1.IsOptional)(),
|
|
63
|
-
__metadata("design:type", Array)
|
|
64
|
-
], ReadValidator.prototype, "join", void 0);
|
|
65
|
-
return ReadValidator;
|
|
66
|
-
}(AbstractValidator));
|
|
67
|
-
var FindValidator = exports.FindValidator = (function (_super) {
|
|
68
|
-
__extends(FindValidator, _super);
|
|
69
|
-
function FindValidator() {
|
|
70
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
71
|
-
_this.limit = 10;
|
|
72
|
-
_this.page = 1;
|
|
73
|
-
_this.sort = {};
|
|
74
|
-
_this.filters = {};
|
|
75
|
-
return _this;
|
|
76
|
-
}
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
|
79
|
-
var value = _a.value;
|
|
80
|
-
return (value ? Number(value) : 10);
|
|
81
|
-
}),
|
|
82
|
-
(0, class_validator_1.IsInt)(),
|
|
83
|
-
(0, class_validator_1.IsOptional)(),
|
|
84
|
-
__metadata("design:type", Object)
|
|
85
|
-
], FindValidator.prototype, "limit", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
|
88
|
-
var value = _a.value;
|
|
89
|
-
return (value ? Number(value) : 1);
|
|
90
|
-
}),
|
|
91
|
-
(0, class_validator_1.IsInt)(),
|
|
92
|
-
(0, class_validator_1.IsOptional)(),
|
|
93
|
-
__metadata("design:type", Object)
|
|
94
|
-
], FindValidator.prototype, "page", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
|
97
|
-
var value = _a.value;
|
|
98
|
-
if ((0, class_validator_1.isObject)(value)) {
|
|
99
|
-
return value;
|
|
100
|
-
}
|
|
101
|
-
return value && JSON.parse(value);
|
|
102
|
-
}),
|
|
103
|
-
(0, class_validator_1.IsOptional)(),
|
|
104
|
-
__metadata("design:type", Object)
|
|
105
|
-
], FindValidator.prototype, "sort", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, class_transformer_1.Transform)(function (_a) {
|
|
108
|
-
var value = _a.value;
|
|
109
|
-
if ((0, class_validator_1.isObject)(value)) {
|
|
110
|
-
return value;
|
|
111
|
-
}
|
|
112
|
-
return value && JSON.parse(value);
|
|
113
|
-
}),
|
|
114
|
-
(0, class_validator_1.IsOptional)(),
|
|
115
|
-
__metadata("design:type", Object)
|
|
116
|
-
], FindValidator.prototype, "filters", void 0);
|
|
117
|
-
return FindValidator;
|
|
118
|
-
}(ReadValidator));
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.MissingIdentityException = void 0;
|
|
19
|
-
var common_1 = require("@nestjs/common");
|
|
20
|
-
var MissingIdentityException = (function (_super) {
|
|
21
|
-
__extends(MissingIdentityException, _super);
|
|
22
|
-
function MissingIdentityException() {
|
|
23
|
-
return _super.call(this, 'Missing identity parameter on your request') || this;
|
|
24
|
-
}
|
|
25
|
-
MissingIdentityException.throw = function () {
|
|
26
|
-
throw new MissingIdentityException();
|
|
27
|
-
};
|
|
28
|
-
return MissingIdentityException;
|
|
29
|
-
}(common_1.PreconditionFailedException));
|
|
30
|
-
exports.MissingIdentityException = MissingIdentityException;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
|
-
import { FileEntity } from './file.entity';
|
|
27
|
-
export declare namespace FileSchema {
|
|
28
|
-
const name = "asset_files";
|
|
29
|
-
const schema: import("mongoose").Schema<FileEntity, import("mongoose").Model<FileEntity, any, any, any, import("mongoose").Document<unknown, any, FileEntity> & FileEntity & Required<{
|
|
30
|
-
_id: string;
|
|
31
|
-
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FileEntity, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FileEntity>> & import("mongoose").FlatRecord<FileEntity> & Required<{
|
|
32
|
-
_id: string;
|
|
33
|
-
}>>;
|
|
34
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("@nestjs/mongoose");
|
|
5
|
-
var file_entity_1 = require("./file.entity");
|
|
6
|
-
var FileSchema;
|
|
7
|
-
(function (FileSchema) {
|
|
8
|
-
FileSchema.name = 'asset_files';
|
|
9
|
-
FileSchema.schema = mongoose_1.SchemaFactory.createForClass(file_entity_1.FileEntity);
|
|
10
|
-
})(FileSchema || (exports.FileSchema = FileSchema = {}));
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
|
-
import { UserEntity } from './user.entity';
|
|
27
|
-
export declare namespace UserSchema {
|
|
28
|
-
const name = "auth_users";
|
|
29
|
-
const schema: import("mongoose").Schema<UserEntity, import("mongoose").Model<UserEntity, any, any, any, import("mongoose").Document<unknown, any, UserEntity> & UserEntity & Required<{
|
|
30
|
-
_id: string;
|
|
31
|
-
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, UserEntity, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<UserEntity>> & import("mongoose").FlatRecord<UserEntity> & Required<{
|
|
32
|
-
_id: string;
|
|
33
|
-
}>>;
|
|
34
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("@nestjs/mongoose");
|
|
5
|
-
var user_entity_1 = require("./user.entity");
|
|
6
|
-
var UserSchema;
|
|
7
|
-
(function (UserSchema) {
|
|
8
|
-
UserSchema.name = 'auth_users';
|
|
9
|
-
UserSchema.schema = mongoose_1.SchemaFactory.createForClass(user_entity_1.UserEntity);
|
|
10
|
-
})(UserSchema || (exports.UserSchema = UserSchema = {}));
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UpdatedUserValidator = exports.CreateUserValidator = void 0;
|
|
13
|
-
var class_validator_1 = require("class-validator");
|
|
14
|
-
var CreateUserValidator = exports.CreateUserValidator = (function () {
|
|
15
|
-
function CreateUserValidator() {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], CreateUserValidator.prototype, "auth0", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], CreateUserValidator.prototype, "name", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsEmail)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], CreateUserValidator.prototype, "email", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsString)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], CreateUserValidator.prototype, "picture", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_validator_1.IsLocale)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], CreateUserValidator.prototype, "locale", void 0);
|
|
37
|
-
return CreateUserValidator;
|
|
38
|
-
}());
|
|
39
|
-
var UpdatedUserValidator = exports.UpdatedUserValidator = (function () {
|
|
40
|
-
function UpdatedUserValidator() {
|
|
41
|
-
}
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, class_validator_1.IsString)(),
|
|
44
|
-
(0, class_validator_1.IsOptional)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], UpdatedUserValidator.prototype, "name", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, class_validator_1.IsString)(),
|
|
49
|
-
(0, class_validator_1.IsOptional)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], UpdatedUserValidator.prototype, "picture", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsLocale)(),
|
|
54
|
-
(0, class_validator_1.IsOptional)(),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], UpdatedUserValidator.prototype, "locale", void 0);
|
|
57
|
-
return UpdatedUserValidator;
|
|
58
|
-
}());
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose" />
|
|
25
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
26
|
-
import { BrandEntity } from './brand.entity';
|
|
27
|
-
export declare namespace BrandSchema {
|
|
28
|
-
const name = "inventory_brands";
|
|
29
|
-
const schema: import("mongoose").Schema<BrandEntity, import("mongoose").Model<BrandEntity, any, any, any, import("mongoose").Document<unknown, any, BrandEntity> & BrandEntity & Required<{
|
|
30
|
-
_id: string;
|
|
31
|
-
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, BrandEntity, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<BrandEntity>> & import("mongoose").FlatRecord<BrandEntity> & Required<{
|
|
32
|
-
_id: string;
|
|
33
|
-
}>>;
|
|
34
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BrandSchema = void 0;
|
|
4
|
-
var mongoose_1 = require("@nestjs/mongoose");
|
|
5
|
-
var brand_entity_1 = require("./brand.entity");
|
|
6
|
-
var BrandSchema;
|
|
7
|
-
(function (BrandSchema) {
|
|
8
|
-
BrandSchema.name = 'inventory_brands';
|
|
9
|
-
BrandSchema.schema = mongoose_1.SchemaFactory.createForClass(brand_entity_1.BrandEntity);
|
|
10
|
-
})(BrandSchema || (exports.BrandSchema = BrandSchema = {}));
|