@merkaly/api 0.2.2-2 → 0.2.2-21
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/abstract/abstract.document.d.ts +7 -0
- package/.output/abstract/abstract.document.js +14 -0
- package/.output/abstract/abstract.entity.d.ts +8 -0
- package/.output/abstract/abstract.entity.js +34 -0
- package/.output/abstract/abstract.validator.d.ts +18 -0
- package/.output/abstract/abstract.validator.js +56 -0
- package/.output/modules/assets/asset.entity.d.ts +10 -0
- package/.output/modules/assets/asset.entity.js +52 -0
- package/.output/modules/inventory/brands/brand.document.d.ts +5 -0
- package/.output/modules/inventory/brands/brand.document.js +9 -0
- package/.output/modules/inventory/brands/brand.entity.d.ts +6 -0
- package/.output/modules/inventory/brands/brand.entity.js +32 -0
- package/.output/modules/inventory/brands/brand.validator.d.ts +8 -0
- package/.output/modules/inventory/brands/brand.validator.js +43 -0
- package/.output/modules/inventory/categories/category.document.d.ts +6 -0
- package/.output/modules/inventory/categories/category.document.js +10 -0
- package/.output/modules/inventory/categories/category.entity.d.ts +9 -0
- package/.output/modules/inventory/categories/category.entity.js +43 -0
- package/.output/modules/inventory/categories/category.validator.d.ts +10 -0
- package/.output/modules/inventory/categories/category.validator.js +55 -0
- package/.output/modules/inventory/products/product.document.d.ts +23 -0
- package/.output/modules/inventory/products/product.document.js +13 -0
- package/.output/modules/inventory/products/product.entity.d.ts +13 -0
- package/.output/modules/inventory/products/product.entity.js +55 -0
- package/.output/modules/inventory/products/product.validator.d.ts +17 -0
- package/.output/modules/inventory/products/product.validator.js +91 -0
- package/.output/modules/inventory/properties/property.entity.d.ts +7 -0
- package/.output/modules/inventory/properties/property.entity.js +38 -0
- package/.output/modules/inventory/properties/property.validator.d.ts +12 -0
- package/.output/modules/inventory/properties/property.validator.js +50 -0
- package/.output/modules/search/search.validator.d.ts +6 -0
- package/.output/modules/search/search.validator.js +39 -0
- package/.output/{module/organization → modules/setting}/connections/connection.validator.d.ts +0 -0
- package/.output/modules/setting/connections/connection.validator.js +35 -0
- package/.output/{module/organization → modules/setting}/members/member.validator.d.ts +0 -0
- package/.output/modules/setting/members/member.validator.js +3 -0
- package/.output/modules/setting/organization/organization.validator.d.ts +16 -0
- package/.output/modules/setting/organization/organization.validator.js +77 -0
- package/.output/modules/setting/payments/payment.entity.d.ts +8 -0
- package/.output/modules/setting/payments/payment.entity.js +38 -0
- package/.output/modules/setting/payments/payment.validator.d.ts +3 -0
- package/.output/modules/setting/payments/payment.validator.js +7 -0
- package/.output/modules/setting/social/social.entity.d.ts +8 -0
- package/.output/modules/setting/social/social.entity.js +38 -0
- package/.output/modules/setting/social/social.validator.d.ts +11 -0
- package/.output/modules/setting/social/social.validator.js +35 -0
- package/.output/modules/store/cart/cart.entity.d.ts +9 -0
- package/.output/modules/store/cart/cart.entity.js +39 -0
- package/.output/modules/store/cart/cart.validator.d.ts +19 -0
- package/.output/modules/store/cart/cart.validator.js +64 -0
- package/.output/modules/store/orders/billing/billing.document.d.ts +7 -0
- package/.output/modules/store/orders/billing/billing.document.js +11 -0
- package/.output/modules/store/orders/billing/billing.entity.d.ts +7 -0
- package/.output/modules/store/orders/billing/billing.entity.js +46 -0
- package/.output/modules/store/orders/billing/billing.validator.d.ts +7 -0
- package/.output/modules/store/orders/billing/billing.validator.js +44 -0
- package/.output/modules/store/orders/item/item.document.d.ts +6 -0
- package/.output/modules/store/orders/item/item.document.js +9 -0
- package/.output/modules/store/orders/item/item.entity.d.ts +7 -0
- package/.output/modules/store/orders/item/item.entity.js +37 -0
- package/.output/modules/store/orders/item/item.schema.d.ts +27 -0
- package/.output/modules/store/orders/item/item.schema.js +6 -0
- package/.output/modules/store/orders/item/item.validator.d.ts +4 -0
- package/.output/modules/store/orders/item/item.validator.js +27 -0
- package/.output/modules/store/orders/order.document.d.ts +21 -0
- package/.output/modules/store/orders/order.document.js +15 -0
- package/.output/modules/store/orders/order.entity.d.ts +16 -0
- package/.output/modules/store/orders/order.entity.js +66 -0
- package/.output/modules/store/orders/order.validator.d.ts +13 -0
- package/.output/modules/store/orders/order.validator.js +53 -0
- package/.output/modules/store/orders/shipping/shipping.document.d.ts +7 -0
- package/.output/modules/store/orders/shipping/shipping.document.js +11 -0
- package/.output/modules/store/orders/shipping/shipping.entity.d.ts +7 -0
- package/.output/modules/store/orders/shipping/shipping.entity.js +46 -0
- package/.output/modules/store/orders/shipping/shipping.validator.d.ts +7 -0
- package/.output/modules/store/orders/shipping/shipping.validator.js +44 -0
- package/.output/modules/store/orders/status/status.document.d.ts +5 -0
- package/.output/modules/store/orders/status/status.document.js +9 -0
- package/.output/modules/store/orders/status/status.entity.d.ts +6 -0
- package/.output/modules/store/orders/status/status.entity.js +37 -0
- package/.output/modules/store/orders/status/status.validator.d.ts +8 -0
- package/.output/modules/store/orders/status/status.validator.js +12 -0
- package/.output/types.d.ts +8 -0
- package/.output/types.js +2 -0
- package/package.json +42 -44
- package/.output/config/app.config.d.ts +0 -26
- package/.output/config/app.document.d.ts +0 -10
- package/.output/config/app.entity.d.ts +0 -8
- package/.output/config/app.repository.d.ts +0 -25
- package/.output/config/app.validator.d.ts +0 -10
- package/.output/main.d.ts +0 -54
- package/.output/module/auth/auth.repository.d.ts +0 -10
- package/.output/module/auth/auth.repository.d.ts.map +0 -1
- package/.output/module/auth/auth.repository.js +0 -46
- package/.output/module/auth/auth.repository.js.map +0 -1
- package/.output/module/inventory/brands/brand.document.d.ts +0 -7
- package/.output/module/inventory/brands/brand.entity.d.ts +0 -7
- package/.output/module/inventory/brands/brand.validator.d.ts +0 -12
- package/.output/module/inventory/categories/category.document.d.ts +0 -7
- package/.output/module/inventory/categories/category.entity.d.ts +0 -7
- package/.output/module/inventory/categories/category.validator.d.ts +0 -12
- package/.output/module/inventory/media/media.document.d.ts +0 -7
- package/.output/module/inventory/media/media.entity.d.ts +0 -7
- package/.output/module/inventory/media/media.validator.d.ts +0 -10
- package/.output/module/inventory/products/product.document.d.ts +0 -12
- package/.output/module/inventory/products/product.entity.d.ts +0 -14
- package/.output/module/inventory/products/product.validator.d.ts +0 -21
- package/.output/module/inventory/variants/variant.document.d.ts +0 -6
- package/.output/module/inventory/variants/variant.entity.d.ts +0 -6
- package/.output/module/inventory/variants/variant.validator.d.ts +0 -12
- package/.output/module/store/carts/cart.document.d.ts +0 -6
- package/.output/module/store/carts/cart.entity.d.ts +0 -6
- package/.output/module/store/carts/cart.validator.d.ts +0 -8
- package/.output/module/store/items/item.document.d.ts +0 -8
- package/.output/module/store/items/item.entity.d.ts +0 -8
- package/.output/module/store/items/item.validator.d.ts +0 -5
- package/.output/module/store/orders/order.document.d.ts +0 -7
- package/.output/module/store/orders/order.entity.d.ts +0 -5
- package/.output/module/store/orders/order.validator.d.ts +0 -8
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Id } from '@elastic/elasticsearch/lib/api/types';
|
|
2
|
-
import { AppValidator } from '../../../config/app.validator';
|
|
3
|
-
import { CreateVariantValidator } from '../variants/variant.validator';
|
|
4
|
-
import { ProductEntity } from './product.entity';
|
|
5
|
-
export declare class CreateProductValidator extends AppValidator<ProductEntity> {
|
|
6
|
-
name: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
price: number;
|
|
9
|
-
category?: string;
|
|
10
|
-
brand?: string;
|
|
11
|
-
variants?: CreateVariantValidator[];
|
|
12
|
-
toEntity?(): ProductEntity;
|
|
13
|
-
}
|
|
14
|
-
export declare class UpdateProductValidator extends AppValidator<ProductEntity> {
|
|
15
|
-
name?: string;
|
|
16
|
-
description?: string;
|
|
17
|
-
price: number;
|
|
18
|
-
category?: Id;
|
|
19
|
-
brand?: Id;
|
|
20
|
-
toEntity?(entity: ProductEntity): ProductEntity;
|
|
21
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AppValidator } from '../../../config/app.validator';
|
|
2
|
-
import { ProductEntity } from '../products/product.entity';
|
|
3
|
-
import { VariantEntity } from './variant.entity';
|
|
4
|
-
export declare class CreateVariantValidator extends AppValidator<VariantEntity> {
|
|
5
|
-
price: number;
|
|
6
|
-
active: boolean;
|
|
7
|
-
toEntity?(product?: ProductEntity): VariantEntity;
|
|
8
|
-
}
|
|
9
|
-
export declare class UpdateVariantValidator extends AppValidator<VariantEntity> {
|
|
10
|
-
price: number;
|
|
11
|
-
toEntity?(entity: VariantEntity): VariantEntity;
|
|
12
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AppValidator } from '../../../config/app.validator';
|
|
2
|
-
import { CartEntity } from './cart.entity';
|
|
3
|
-
export declare class CreateCartValidator extends AppValidator<CartEntity> {
|
|
4
|
-
toEntity?(): CartEntity;
|
|
5
|
-
}
|
|
6
|
-
export declare class UpdateCartValidator extends AppValidator<CartEntity> {
|
|
7
|
-
toEntity?(entity: CartEntity): CartEntity;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AppDocument } from '../../../config/app.document';
|
|
2
|
-
import { ProductDocument } from '../../inventory/products/product.document';
|
|
3
|
-
import { ItemEntity } from './item.entity';
|
|
4
|
-
export declare class ItemDocument extends AppDocument {
|
|
5
|
-
product: Pick<ProductDocument, '$id' | 'name' | 'price'>;
|
|
6
|
-
quantity: number;
|
|
7
|
-
protected transform?(entity: ItemEntity): this;
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AppEntity } from '../../../config/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
|
-
product: ProductEntity;
|
|
6
|
-
quantity: number;
|
|
7
|
-
carts: CartEntity[];
|
|
8
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AppValidator } from '../../../config/app.validator';
|
|
2
|
-
import { OrderEntity } from './order.entity';
|
|
3
|
-
export declare class CreateOrderValidator extends AppValidator<OrderEntity> {
|
|
4
|
-
toEntity?(): OrderEntity;
|
|
5
|
-
}
|
|
6
|
-
export declare class UpdateOrderValidator extends AppValidator<OrderEntity> {
|
|
7
|
-
toEntity?(entity: OrderEntity): OrderEntity;
|
|
8
|
-
}
|