@merkaly/api 0.2.2-3 → 0.2.2-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/.output/configs/app.entity.d.ts +2 -1
- package/.output/main.d.ts +0 -39
- package/.output/modules/assets/asset.entity.d.ts +1 -26
- package/.output/modules/inventory/brands/brand.entity.d.ts +0 -26
- package/.output/modules/inventory/categories/category.entity.d.ts +0 -26
- package/.output/modules/inventory/products/product.entity.d.ts +3 -29
- package/.output/modules/store/carts/cart.entity.d.ts +2 -28
- package/.output/modules/store/carts/cart.validator.d.ts +5 -0
- package/.output/modules/store/orders/order.entity.d.ts +0 -26
- package/package.json +1 -4
- package/.output/configs/app.document.d.ts +0 -8
- package/.output/configs/app.validator.d.ts +0 -6
- package/.output/modules/assets/asset.document.d.ts +0 -7
- package/.output/modules/inventory/brands/brand.document.d.ts +0 -5
- package/.output/modules/inventory/categories/category.document.d.ts +0 -5
- package/.output/modules/inventory/products/product.document.d.ts +0 -12
- package/.output/modules/store/carts/cart.document.d.ts +0 -4
- package/.output/modules/store/items/item.document.d.ts +0 -6
- package/.output/modules/store/items/item.entity.d.ts +0 -8
- package/.output/modules/store/items/item.validator.d.ts +0 -5
- package/.output/modules/store/orders/order.document.d.ts +0 -5
package/.output/main.d.ts
CHANGED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { BrandDocument } from './modules/inventory/brands/brand.document';
|
|
2
|
-
import * as BrandValidators from './modules/inventory/brands/brand.validator';
|
|
3
|
-
import { CategoryDocument } from './modules/inventory/categories/category.document';
|
|
4
|
-
import * as CategoryValidators from './modules/inventory/categories/category.validator';
|
|
5
|
-
import { ProductDocument } from './modules/inventory/products/product.document';
|
|
6
|
-
import * as ProductValidators from './modules/inventory/products/product.validator';
|
|
7
|
-
import { CartDocument } from './modules/store/carts/cart.document';
|
|
8
|
-
import * as CartValidator from './modules/store/carts/cart.validator';
|
|
9
|
-
import { OrderDocument } from './modules/store/orders/order.document';
|
|
10
|
-
import * as OrderValidators from './modules/store/orders/order.validator';
|
|
11
|
-
export declare const Inventory: {
|
|
12
|
-
Brand: {
|
|
13
|
-
CreateBrandValidator: typeof BrandValidators.CreateBrandValidator;
|
|
14
|
-
UpdateBrandValidator: typeof BrandValidators.UpdateBrandValidator;
|
|
15
|
-
BrandDocument: typeof BrandDocument;
|
|
16
|
-
};
|
|
17
|
-
Category: {
|
|
18
|
-
CreateCategoryValidator: typeof CategoryValidators.CreateCategoryValidator;
|
|
19
|
-
UpdateCategoryValidator: typeof CategoryValidators.UpdateCategoryValidator;
|
|
20
|
-
CategoryDocument: typeof CategoryDocument;
|
|
21
|
-
};
|
|
22
|
-
Product: {
|
|
23
|
-
CreateProductValidator: typeof ProductValidators.CreateProductValidator;
|
|
24
|
-
UpdateProductValidator: typeof ProductValidators.UpdateProductValidator;
|
|
25
|
-
ProductDocument: typeof ProductDocument;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export declare const Store: {
|
|
29
|
-
Order: {
|
|
30
|
-
CreateOrderValidator: typeof OrderValidators.CreateOrderValidator;
|
|
31
|
-
UpdateOrderValidator: typeof OrderValidators.UpdateOrderValidator;
|
|
32
|
-
OrderDocument: typeof OrderDocument;
|
|
33
|
-
};
|
|
34
|
-
Cart: {
|
|
35
|
-
CreateCartValidator: typeof CartValidator.CreateCartValidator;
|
|
36
|
-
UpdateCartValidator: typeof CartValidator.UpdateCartValidator;
|
|
37
|
-
CartDocument: typeof CartDocument;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
@@ -1,35 +1,10 @@
|
|
|
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/types/inferschematype" />
|
|
25
|
-
import { Schema as MongoSchema } from 'mongoose';
|
|
26
1
|
import { AppEntity } from '../../configs/app.entity';
|
|
27
2
|
export declare class AssetEntity extends AppEntity {
|
|
28
3
|
static readonly $index = "assets";
|
|
29
4
|
name: string;
|
|
5
|
+
url: string;
|
|
30
6
|
weak: boolean;
|
|
31
7
|
description: string;
|
|
32
8
|
type: string;
|
|
33
9
|
size: number;
|
|
34
10
|
}
|
|
35
|
-
export declare const AssetSchema: MongoSchema<AssetEntity, import("mongoose").Model<AssetEntity, any, any, any, any>, {}, {}, {}, {}, "type", AssetEntity>;
|
|
@@ -1,32 +1,6 @@
|
|
|
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/types/inferschematype" />
|
|
25
|
-
import { Schema as MongoSchema } from 'mongoose';
|
|
26
1
|
import { AppEntity } from '../../../configs/app.entity';
|
|
27
2
|
export declare class BrandEntity extends AppEntity {
|
|
28
3
|
static readonly $index = "inventory_brands";
|
|
29
4
|
name: string;
|
|
30
5
|
description: string;
|
|
31
6
|
}
|
|
32
|
-
export declare const BrandSchema: MongoSchema<BrandEntity, import("mongoose").Model<BrandEntity, any, any, any, any>, {}, {}, {}, {}, "type", BrandEntity>;
|
|
@@ -1,32 +1,6 @@
|
|
|
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/types/inferschematype" />
|
|
25
|
-
import { Schema as MongoSchema } from 'mongoose';
|
|
26
1
|
import { AppEntity } from '../../../configs/app.entity';
|
|
27
2
|
export declare class CategoryEntity extends AppEntity {
|
|
28
3
|
static readonly $index = "inventory_categories";
|
|
29
4
|
name: string;
|
|
30
5
|
description: string;
|
|
31
6
|
}
|
|
32
|
-
export declare const CategorySchema: MongoSchema<CategoryEntity, import("mongoose").Model<CategoryEntity, any, any, any, any>, {}, {}, {}, {}, "type", CategoryEntity>;
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
|
|
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/types/inferschematype" />
|
|
25
|
-
import { Schema as MongoSchema } from 'mongoose';
|
|
26
|
-
import { AppEntity } from '../../../configs/app.entity';
|
|
1
|
+
import { AppEntity, ObjectRef } from '../../../configs/app.entity';
|
|
27
2
|
import { AssetEntity } from '../../assets/asset.entity';
|
|
28
3
|
import { BrandEntity } from '../brands/brand.entity';
|
|
29
4
|
import { CategoryEntity } from '../categories/category.entity';
|
|
@@ -32,8 +7,7 @@ export declare class ProductEntity extends AppEntity {
|
|
|
32
7
|
name: string;
|
|
33
8
|
description: string;
|
|
34
9
|
price: number;
|
|
35
|
-
category?: CategoryEntity
|
|
36
|
-
brand?: BrandEntity
|
|
10
|
+
category?: ObjectRef<CategoryEntity>;
|
|
11
|
+
brand?: ObjectRef<BrandEntity>;
|
|
37
12
|
files: AssetEntity[];
|
|
38
13
|
}
|
|
39
|
-
export declare const ProductSchema: MongoSchema<ProductEntity, import("mongoose").Model<ProductEntity, any, any, any, any>, {}, {}, {}, {}, "type", ProductEntity>;
|
|
@@ -1,34 +1,8 @@
|
|
|
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/types/inferschematype" />
|
|
25
|
-
import { Schema as MongoSchema } from 'mongoose';
|
|
26
1
|
import { AppEntity } from '../../../configs/app.entity';
|
|
27
|
-
import {
|
|
2
|
+
import { AddItemValidator } from './cart.validator';
|
|
28
3
|
export declare class CartEntity extends AppEntity {
|
|
29
4
|
static readonly $index = "store_carts";
|
|
30
5
|
user: string;
|
|
31
6
|
number: string;
|
|
32
|
-
items:
|
|
7
|
+
items: AddItemValidator[];
|
|
33
8
|
}
|
|
34
|
-
export declare const CartSchema: MongoSchema<CartEntity, import("mongoose").Model<CartEntity, any, any, any, any>, {}, {}, {}, {}, "type", CartEntity>;
|
|
@@ -1,32 +1,6 @@
|
|
|
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/types/inferschematype" />
|
|
25
|
-
import { Schema as MongoSchema } from 'mongoose';
|
|
26
1
|
import { AppEntity } from '../../../configs/app.entity';
|
|
27
2
|
export declare class OrderEntity extends AppEntity {
|
|
28
3
|
static readonly $index = "store_orders";
|
|
29
4
|
number: string;
|
|
30
5
|
price: number;
|
|
31
6
|
}
|
|
32
|
-
export declare const OrderSchema: MongoSchema<OrderEntity, import("mongoose").Model<OrderEntity, any, any, any, any>, {}, {}, {}, {}, "type", OrderEntity>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/api",
|
|
3
|
-
"version": "0.2.2-
|
|
3
|
+
"version": "0.2.2-4",
|
|
4
4
|
"description": "NestJS Backend ApiRest Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,13 +40,11 @@
|
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@commitlint/config-conventional": "^17.0.0",
|
|
43
|
-
"@elastic/elasticsearch": "^8.2.1",
|
|
44
43
|
"@google-cloud/storage": "^6.4.1",
|
|
45
44
|
"@nestjs/cli": "^9.1.1",
|
|
46
45
|
"@nestjs/common": "^9.0.11",
|
|
47
46
|
"@nestjs/config": "^2.2.0",
|
|
48
47
|
"@nestjs/core": "^9.0.11",
|
|
49
|
-
"@nestjs/elasticsearch": "^9.0.0",
|
|
50
48
|
"@nestjs/jwt": "^9.0.0",
|
|
51
49
|
"@nestjs/mongoose": "^9.2.0",
|
|
52
50
|
"@nestjs/passport": "^9.0.0",
|
|
@@ -69,7 +67,6 @@
|
|
|
69
67
|
"cache-manager": "^4.1.0",
|
|
70
68
|
"chalk": "^4.1.2",
|
|
71
69
|
"commitlint": "^17.0.1",
|
|
72
|
-
"es-mapping-ts": "^1.0.1",
|
|
73
70
|
"eslint": "7.32.0",
|
|
74
71
|
"eslint-plugin-import": "^2.23.4",
|
|
75
72
|
"express": "^4.17.3",
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AppDocument } from '../../../configs/app.document';
|
|
2
|
-
import { AssetDocument } from '../../assets/asset.document';
|
|
3
|
-
import { BrandDocument } from '../brands/brand.document';
|
|
4
|
-
import { CategoryDocument } from '../categories/category.document';
|
|
5
|
-
export declare class ProductDocument extends AppDocument<ProductDocument> {
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
category: CategoryDocument;
|
|
9
|
-
brand: BrandDocument;
|
|
10
|
-
price: number;
|
|
11
|
-
files: AssetDocument[];
|
|
12
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AppDocument } from '../../../configs/app.document';
|
|
2
|
-
import { ProductDocument } from '../../inventory/products/product.document';
|
|
3
|
-
export declare class ItemDocument extends AppDocument {
|
|
4
|
-
product: Pick<ProductDocument, '$id' | 'name' | 'price'>;
|
|
5
|
-
quantity: number;
|
|
6
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AppEntity } from '../../../configs/app.entity';
|
|
2
|
-
import { ProductEntity } from '../../inventory/products/product.entity';
|
|
3
|
-
import { CartEntity } from '../carts/cart.entity';
|
|
4
|
-
export declare class ItemEntity extends AppEntity {
|
|
5
|
-
quantity: number;
|
|
6
|
-
product: ProductEntity;
|
|
7
|
-
carts: CartEntity[];
|
|
8
|
-
}
|