@merkaly/api 0.6.1 → 0.6.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/dist/abstract.validator.js +1 -0
- package/dist/account/address/address.entity.d.ts +2 -2
- package/dist/account/address/request.validator.d.ts +1 -1
- package/dist/account/address/request.validator.js +2 -1
- package/dist/account/payment/payment.entity.d.ts +2 -2
- package/dist/account/payment/request.validator.d.ts +1 -1
- package/dist/account/payment/request.validator.js +2 -1
- package/dist/account/user/request.validator.d.ts +1 -1
- package/dist/account/user/request.validator.js +2 -1
- package/dist/account/user/user.entity.d.ts +7 -2
- package/dist/address.validator.js +1 -0
- package/dist/app.schemas.d.ts +54 -0
- package/dist/app.types.d.ts +20 -0
- package/dist/assets/asset/asset.entity.d.ts +1 -1
- package/dist/finance/invoice/invoice.entity.d.ts +1 -1
- package/dist/finance/invoice/request.validator.d.ts +1 -1
- package/dist/finance/invoice/request.validator.js +2 -1
- package/dist/finance/payment/payment.entity.d.ts +2 -2
- package/dist/finance/payment/payment.transition.js +1 -1
- package/dist/finance/payment/request.validator.d.ts +1 -1
- package/dist/finance/payment/request.validator.js +2 -1
- package/dist/finance/refund/refund.entity.d.ts +2 -2
- package/dist/finance/refund/refund.transition.js +1 -1
- package/dist/finance/refund/request.validator.d.ts +1 -1
- package/dist/finance/refund/request.validator.js +2 -1
- package/dist/index.d.ts +33 -7
- package/dist/index.js +27 -2
- package/dist/inventory/catalog/attribute/attribute.entity.d.ts +1 -1
- package/dist/inventory/catalog/attribute/request.validator.d.ts +1 -1
- package/dist/inventory/catalog/attribute/request.validator.js +2 -1
- package/dist/inventory/catalog/brand/brand.entity.d.ts +1 -1
- package/dist/inventory/catalog/brand/request.validator.d.ts +1 -1
- package/dist/inventory/catalog/brand/request.validator.js +2 -1
- package/dist/inventory/catalog/category/category.entity.d.ts +1 -1
- package/dist/inventory/catalog/category/request.validator.d.ts +1 -1
- package/dist/inventory/catalog/category/request.validator.js +2 -1
- package/dist/inventory/catalog/collection/collection.entity.d.ts +1 -1
- package/dist/inventory/catalog/collection/request.validator.d.ts +1 -1
- package/dist/inventory/catalog/collection/request.validator.js +2 -1
- package/dist/inventory/catalog/product/product.entity.d.ts +1 -1
- package/dist/inventory/catalog/product/request.validator.d.ts +1 -1
- package/dist/inventory/catalog/product/request.validator.js +2 -1
- package/dist/inventory/catalog/variant/request.validator.d.ts +1 -1
- package/dist/inventory/catalog/variant/request.validator.js +2 -1
- package/dist/inventory/catalog/variant/variant.entity.d.ts +1 -1
- package/dist/inventory/configuration/measurement/measurement.entity.d.ts +1 -1
- package/dist/inventory/configuration/measurement/request.validator.d.ts +1 -1
- package/dist/inventory/configuration/measurement/request.validator.js +2 -1
- package/dist/inventory/configuration/unit/unit.entity.d.ts +1 -1
- package/dist/inventory/stock/balance/balance.entity.d.ts +1 -1
- package/dist/inventory/stock/transfer/request.validator.d.ts +1 -1
- package/dist/inventory/stock/transfer/request.validator.js +3 -2
- package/dist/inventory/stock/transfer/transfer.entity.d.ts +2 -2
- package/dist/inventory/stock/transfer/transfer.item.entity.d.ts +1 -1
- package/dist/inventory/stock/transfer/transfer.transition.js +1 -1
- package/dist/inventory/stock/warehouse/request.validator.d.ts +2 -2
- package/dist/inventory/stock/warehouse/request.validator.js +3 -2
- package/dist/inventory/stock/warehouse/warehouse.entity.d.ts +2 -2
- package/dist/order/purchase/item/item.entity.d.ts +1 -1
- package/dist/order/purchase/item/request.validator.d.ts +1 -1
- package/dist/order/purchase/item/request.validator.js +2 -1
- package/dist/order/purchase/transaction/request.validator.d.ts +1 -1
- package/dist/order/purchase/transaction/request.validator.js +2 -1
- package/dist/order/purchase/transaction/transaction.entity.d.ts +1 -1
- package/dist/order/purchase/transaction/transaction.transition.js +1 -1
- package/dist/order/purchase/vendor/request.validator.d.ts +1 -1
- package/dist/order/purchase/vendor/request.validator.js +2 -1
- package/dist/order/purchase/vendor/vendor.entity.d.ts +1 -1
- package/dist/order/sale/customer/customer.entity.d.ts +1 -1
- package/dist/order/sale/customer/request.validator.d.ts +1 -1
- package/dist/order/sale/customer/request.validator.js +2 -1
- package/dist/order/sale/item/item.entity.d.ts +1 -1
- package/dist/order/sale/item/request.validator.d.ts +1 -1
- package/dist/order/sale/item/request.validator.js +2 -1
- package/dist/order/sale/transaction/request.validator.d.ts +1 -1
- package/dist/order/sale/transaction/request.validator.js +2 -1
- package/dist/order/sale/transaction/transaction.entity.d.ts +1 -1
- package/dist/order/sale/transaction/transaction.transition.js +1 -1
- package/dist/settings/organization/index.d.ts +1 -0
- package/dist/settings/organization/index.js +1 -0
- package/dist/settings/organization/organization.entity.d.ts +1 -1
- package/dist/settings/organization/organization.enum.d.ts +8 -12
- package/dist/settings/organization/organization.enum.js +8 -12
- package/dist/settings/organization/request.validator.d.ts +51 -0
- package/dist/settings/organization/request.validator.js +245 -0
- package/dist/transaction.entity.d.ts +1 -1
- package/package.json +16 -6
- package/dist/abstract.repository.d.ts +0 -63
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccountUserEntity } from '../user';
|
|
2
|
-
import { AddressEntity } from '
|
|
3
|
-
import type { MongoEntity } from '
|
|
2
|
+
import { AddressEntity } from '../../address.entity.js';
|
|
3
|
+
import type { MongoEntity } from '../../abstract.entity.js';
|
|
4
4
|
export declare class AccountAddressEntity extends AddressEntity {
|
|
5
5
|
user: MongoEntity<AccountUserEntity>;
|
|
6
6
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractRequestValidator } from '
|
|
1
|
+
import { AbstractRequestValidator } from '../../abstract.validator.js';
|
|
2
2
|
import type { AccountAddressEntity } from './';
|
|
3
3
|
export declare class CreateAddressRequestValidator extends AbstractRequestValidator {
|
|
4
4
|
street: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
10
11
|
import * as class_validator_1 from "class-validator";
|
|
11
|
-
import * as abstract_validator_1 from '../../
|
|
12
|
+
import * as abstract_validator_1 from '../../abstract.validator.js';
|
|
12
13
|
export class CreateAddressRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
13
14
|
street;
|
|
14
15
|
name;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccountUserEntity } from '../user';
|
|
2
|
-
import { AbstractEntity } from '
|
|
3
|
-
import type { MongoEntity } from '
|
|
2
|
+
import { AbstractEntity } from '../../abstract.entity.js';
|
|
3
|
+
import type { MongoEntity } from '../../abstract.entity.js';
|
|
4
4
|
export declare class AccountPaymentEntity extends AbstractEntity {
|
|
5
5
|
user: MongoEntity<AccountUserEntity>;
|
|
6
6
|
hash: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractRequestValidator } from '
|
|
1
|
+
import { AbstractRequestValidator } from '../../abstract.validator.js';
|
|
2
2
|
import type { AccountPaymentEntity } from './';
|
|
3
3
|
export declare class CreatePaymentRequestValidator extends AbstractRequestValidator {
|
|
4
4
|
holder: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
10
11
|
import * as class_validator_1 from "class-validator";
|
|
11
|
-
import * as abstract_validator_1 from '../../
|
|
12
|
+
import * as abstract_validator_1 from '../../abstract.validator.js';
|
|
12
13
|
export class CreatePaymentRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
13
14
|
holder;
|
|
14
15
|
hash;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
10
11
|
import * as class_validator_1 from "class-validator";
|
|
11
|
-
import * as abstract_validator_1 from '../../
|
|
12
|
+
import * as abstract_validator_1 from '../../abstract.validator.js';
|
|
12
13
|
export class UpdateUserRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
13
14
|
name;
|
|
14
15
|
picture;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { AbstractEntity } from '
|
|
1
|
+
import { AbstractEntity } from '../../abstract.entity.js';
|
|
2
2
|
export declare class AccountUserEntity extends AbstractEntity {
|
|
3
3
|
_id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
picture: string;
|
|
6
6
|
email: string;
|
|
7
7
|
phone?: string;
|
|
8
|
-
isMember?: boolean;
|
|
9
8
|
role?: string;
|
|
9
|
+
status: string;
|
|
10
|
+
verified?: boolean;
|
|
11
|
+
providers: string[];
|
|
12
|
+
locale?: string;
|
|
13
|
+
lastIp?: string;
|
|
14
|
+
loginAt?: Date;
|
|
10
15
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare abstract class AppSchemas {
|
|
2
|
+
static get account(): {
|
|
3
|
+
addresses: string;
|
|
4
|
+
payments: string;
|
|
5
|
+
users: string;
|
|
6
|
+
};
|
|
7
|
+
static get assets(): {
|
|
8
|
+
files: string;
|
|
9
|
+
};
|
|
10
|
+
static get finance(): {
|
|
11
|
+
invoices: string;
|
|
12
|
+
payments: string;
|
|
13
|
+
refunds: string;
|
|
14
|
+
subscriptions: string;
|
|
15
|
+
taxes: string;
|
|
16
|
+
};
|
|
17
|
+
static get inventory(): {
|
|
18
|
+
catalog: {
|
|
19
|
+
attributes: string;
|
|
20
|
+
brands: string;
|
|
21
|
+
categories: string;
|
|
22
|
+
collections: string;
|
|
23
|
+
products: string;
|
|
24
|
+
variants: string;
|
|
25
|
+
};
|
|
26
|
+
configuration: {
|
|
27
|
+
measurements: string;
|
|
28
|
+
};
|
|
29
|
+
stock: {
|
|
30
|
+
balances: string;
|
|
31
|
+
transfers: string;
|
|
32
|
+
warehouses: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
static get order(): {
|
|
36
|
+
purchase: {
|
|
37
|
+
items: string;
|
|
38
|
+
transactions: string;
|
|
39
|
+
vendors: string;
|
|
40
|
+
};
|
|
41
|
+
sale: {
|
|
42
|
+
customers: string;
|
|
43
|
+
items: string;
|
|
44
|
+
transactions: string;
|
|
45
|
+
};
|
|
46
|
+
service: {
|
|
47
|
+
items: string;
|
|
48
|
+
transactions: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
static get settings(): {
|
|
52
|
+
organizations: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface Auth0JwtPayload {
|
|
2
|
+
sub: string;
|
|
3
|
+
iat: number;
|
|
4
|
+
exp: number;
|
|
5
|
+
iss: string;
|
|
6
|
+
aud: string | string[];
|
|
7
|
+
org_id?: string;
|
|
8
|
+
'https://merka.ly/authorization'?: {
|
|
9
|
+
roles: string[];
|
|
10
|
+
permissions?: string[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface AppAuth {
|
|
14
|
+
expiresAt: Date;
|
|
15
|
+
issuedAt: Date;
|
|
16
|
+
orgId?: string;
|
|
17
|
+
role: string;
|
|
18
|
+
userId: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const SESSION_COOKIE = "merkaly.sid";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractEntity, MongoEntity } from '
|
|
1
|
+
import { AbstractEntity, MongoEntity } from '../../abstract.entity.js';
|
|
2
2
|
import { FinanceInvoiceStatusEnum, FinanceInvoiceTypeEnum } from './invoice.enum.js';
|
|
3
3
|
export declare class FinanceInvoiceEntity extends AbstractEntity {
|
|
4
4
|
order: MongoEntity<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FinanceInvoiceStatusEnum, FinanceInvoiceTypeEnum } from './';
|
|
2
|
-
import { AbstractRequestValidator } from '
|
|
2
|
+
import { AbstractRequestValidator } from '../../abstract.validator.js';
|
|
3
3
|
import type { FinanceInvoiceEntity } from './';
|
|
4
4
|
export declare class CreateFinanceInvoiceRequestValidator extends AbstractRequestValidator {
|
|
5
5
|
order: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -9,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
10
|
};
|
|
10
11
|
import * as class_validator_1 from "class-validator";
|
|
11
12
|
import * as invoice_enum_1 from './invoice.enum.js';
|
|
12
|
-
import * as abstract_validator_1 from '../../
|
|
13
|
+
import * as abstract_validator_1 from '../../abstract.validator.js';
|
|
13
14
|
export class CreateFinanceInvoiceRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
14
15
|
order;
|
|
15
16
|
orderModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PurchaseTransactionEntity } from '../../order/purchase/transaction';
|
|
2
2
|
import { SaleTransactionEntity } from '../../order/sale/transaction';
|
|
3
|
-
import { AbstractEntity } from '
|
|
4
|
-
import { StatusEntity } from '
|
|
3
|
+
import { AbstractEntity } from '../../abstract.entity.js';
|
|
4
|
+
import { StatusEntity } from '../../status.plugin.js';
|
|
5
5
|
import { ITransitionable } from '../..';
|
|
6
6
|
import { FinancePaymentMethodEnum, FinancePaymentStatusEnum, FinancePaymentTypeEnum } from './payment.enum.js';
|
|
7
7
|
export type OrderEntity = SaleTransactionEntity | PurchaseTransactionEntity;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FinancePaymentMethodEnum, FinancePaymentStatusEnum, FinancePaymentTypeEnum } from './';
|
|
2
|
-
import { AbstractRequestValidator } from '
|
|
2
|
+
import { AbstractRequestValidator } from '../../abstract.validator.js';
|
|
3
3
|
import type { FinancePaymentEntity } from './';
|
|
4
4
|
export declare class CreateFinancePaymentRequestValidator extends AbstractRequestValidator {
|
|
5
5
|
type: FinancePaymentTypeEnum;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -9,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
10
|
};
|
|
10
11
|
import * as class_validator_1 from "class-validator";
|
|
11
12
|
import * as payment_enum_1 from './payment.enum.js';
|
|
12
|
-
import * as abstract_validator_1 from '../../
|
|
13
|
+
import * as abstract_validator_1 from '../../abstract.validator.js';
|
|
13
14
|
export class CreateFinancePaymentRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
14
15
|
type;
|
|
15
16
|
order;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AbstractEntity, MongoEntity } from '
|
|
2
|
-
import { StatusEntity } from '
|
|
1
|
+
import { AbstractEntity, MongoEntity } from '../../abstract.entity.js';
|
|
2
|
+
import { StatusEntity } from '../../status.plugin.js';
|
|
3
3
|
import { ITransitionable } from '../..';
|
|
4
4
|
import { FinanceRefundReasonEnum, FinanceRefundStatusEnum } from './refund.enum.js';
|
|
5
5
|
import type { FinancePaymentEntity } from '../payment';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FinanceRefundReasonEnum, FinanceRefundStatusEnum } from './';
|
|
2
|
-
import { AbstractRequestValidator } from '
|
|
2
|
+
import { AbstractRequestValidator } from '../../abstract.validator.js';
|
|
3
3
|
import type { FinanceRefundEntity } from './';
|
|
4
4
|
export declare class CreateFinanceRefundRequestValidator extends AbstractRequestValidator {
|
|
5
5
|
payment: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -9,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
10
|
};
|
|
10
11
|
import * as class_validator_1 from "class-validator";
|
|
11
12
|
import * as refund_enum_1 from './refund.enum.js';
|
|
12
|
-
import * as abstract_validator_1 from '../../
|
|
13
|
+
import * as abstract_validator_1 from '../../abstract.validator.js';
|
|
13
14
|
export class CreateFinanceRefundRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
14
15
|
payment;
|
|
15
16
|
reason;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './abstract.repository';
|
|
1
|
+
export * from './app.types';
|
|
2
|
+
export * from './app.schemas';
|
|
3
|
+
export * from './status.plugin';
|
|
5
4
|
export * from './not-equal-to.decorator';
|
|
5
|
+
export * from './address.validator';
|
|
6
6
|
export * from './address.entity';
|
|
7
7
|
export * from './transaction.entity';
|
|
8
|
-
export * from './
|
|
9
|
-
export
|
|
10
|
-
export
|
|
8
|
+
export * from './abstract.entity';
|
|
9
|
+
export * from './abstract.transition';
|
|
10
|
+
export * from './abstract.validator';
|
|
11
|
+
export * from './account/address';
|
|
12
|
+
export * from './account/payment';
|
|
13
|
+
export * from './account/user';
|
|
14
|
+
export * from './assets/asset';
|
|
15
|
+
export * from './finance/invoice';
|
|
16
|
+
export * from './finance/payment';
|
|
17
|
+
export * from './finance/refund';
|
|
18
|
+
export * from './inventory/catalog/attribute';
|
|
19
|
+
export * from './inventory/catalog/brand';
|
|
20
|
+
export * from './inventory/catalog/category';
|
|
21
|
+
export * from './inventory/catalog/collection';
|
|
22
|
+
export * from './inventory/catalog/product';
|
|
23
|
+
export * from './inventory/catalog/variant';
|
|
24
|
+
export * from './inventory/configuration/measurement';
|
|
25
|
+
export * from './inventory/configuration/unit';
|
|
26
|
+
export * from './inventory/stock/balance';
|
|
27
|
+
export * from './inventory/stock/transfer';
|
|
28
|
+
export * from './inventory/stock/warehouse';
|
|
29
|
+
export * from './order/purchase/item';
|
|
30
|
+
export * from './order/purchase/transaction';
|
|
31
|
+
export * from './order/purchase/vendor';
|
|
32
|
+
export * from './order/sale/customer';
|
|
33
|
+
export * from './order/sale/item';
|
|
34
|
+
export * from './order/sale/transaction';
|
|
35
|
+
export * from './settings/organization';
|
|
36
|
+
export type { SaveEntityArgs } from './repository.types';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
|
-
export * from './abstract.transition.js';
|
|
2
|
-
export * from './abstract.validator.js';
|
|
3
1
|
export * from './not-equal-to.decorator.js';
|
|
4
2
|
export * from './address.validator.js';
|
|
3
|
+
export * from './abstract.transition.js';
|
|
4
|
+
export * from './abstract.validator.js';
|
|
5
|
+
export * from './account/address/index.js';
|
|
6
|
+
export * from './account/payment/index.js';
|
|
7
|
+
export * from './account/user/index.js';
|
|
8
|
+
export * from './assets/asset/index.js';
|
|
9
|
+
export * from './finance/invoice/index.js';
|
|
10
|
+
export * from './finance/payment/index.js';
|
|
11
|
+
export * from './finance/refund/index.js';
|
|
12
|
+
export * from './inventory/catalog/attribute/index.js';
|
|
13
|
+
export * from './inventory/catalog/brand/index.js';
|
|
14
|
+
export * from './inventory/catalog/category/index.js';
|
|
15
|
+
export * from './inventory/catalog/collection/index.js';
|
|
16
|
+
export * from './inventory/catalog/product/index.js';
|
|
17
|
+
export * from './inventory/catalog/variant/index.js';
|
|
18
|
+
export * from './inventory/configuration/measurement/index.js';
|
|
19
|
+
export * from './inventory/configuration/unit/index.js';
|
|
20
|
+
export * from './inventory/stock/balance/index.js';
|
|
21
|
+
export * from './inventory/stock/transfer/index.js';
|
|
22
|
+
export * from './inventory/stock/warehouse/index.js';
|
|
23
|
+
export * from './order/purchase/item/index.js';
|
|
24
|
+
export * from './order/purchase/transaction/index.js';
|
|
25
|
+
export * from './order/purchase/vendor/index.js';
|
|
26
|
+
export * from './order/sale/customer/index.js';
|
|
27
|
+
export * from './order/sale/item/index.js';
|
|
28
|
+
export * from './order/sale/transaction/index.js';
|
|
29
|
+
export * from './settings/organization/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractRequestValidator } from '
|
|
1
|
+
import { AbstractRequestValidator } from '../../../abstract.validator.js';
|
|
2
2
|
import type { CatalogAttributeEntity } from './';
|
|
3
3
|
export declare class CreateAttributeRequestValidator extends AbstractRequestValidator {
|
|
4
4
|
name: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
10
11
|
import * as class_validator_1 from "class-validator";
|
|
11
|
-
import * as abstract_validator_1 from '../../../
|
|
12
|
+
import * as abstract_validator_1 from '../../../abstract.validator.js';
|
|
12
13
|
export class CreateAttributeRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
13
14
|
name;
|
|
14
15
|
values = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractEntity } from '
|
|
1
|
+
import { AbstractEntity } from '../../../abstract.entity.js';
|
|
2
2
|
import { CatalogRelationStatusEnum } from '../../..';
|
|
3
3
|
import { CatalogProductEntity } from '../product';
|
|
4
4
|
export declare class CatalogBrandEntity extends AbstractEntity {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractRequestValidator } from '
|
|
1
|
+
import { AbstractRequestValidator } from '../../../abstract.validator.js';
|
|
2
2
|
import type { CatalogBrandEntity } from './';
|
|
3
3
|
export declare class CreateBrandRequestValidator extends AbstractRequestValidator {
|
|
4
4
|
name: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
10
11
|
import * as class_validator_1 from "class-validator";
|
|
11
|
-
import * as abstract_validator_1 from '../../../
|
|
12
|
+
import * as abstract_validator_1 from '../../../abstract.validator.js';
|
|
12
13
|
export class CreateBrandRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
13
14
|
name;
|
|
14
15
|
description;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractEntity } from '
|
|
1
|
+
import { AbstractEntity } from '../../../abstract.entity.js';
|
|
2
2
|
import { CatalogRelationStatusEnum } from '../../..';
|
|
3
3
|
import { CatalogProductEntity } from '../product';
|
|
4
4
|
export declare class CatalogCategoryEntity extends AbstractEntity {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractRequestValidator } from '
|
|
1
|
+
import { AbstractRequestValidator } from '../../../abstract.validator.js';
|
|
2
2
|
import type { CatalogCategoryEntity } from './';
|
|
3
3
|
export declare class CreateCategoryRequestValidator extends AbstractRequestValidator {
|
|
4
4
|
name: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
10
11
|
import * as class_validator_1 from "class-validator";
|
|
11
|
-
import * as abstract_validator_1 from '../../../
|
|
12
|
+
import * as abstract_validator_1 from '../../../abstract.validator.js';
|
|
12
13
|
export class CreateCategoryRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
13
14
|
name;
|
|
14
15
|
description;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractRequestValidator } from '
|
|
1
|
+
import { AbstractRequestValidator } from '../../../abstract.validator.js';
|
|
2
2
|
import type { CatalogCollectionEntity } from './';
|
|
3
3
|
export declare class CreateCollectionRequestValidator extends AbstractRequestValidator {
|
|
4
4
|
name: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
10
|
};
|
|
10
11
|
import * as class_validator_1 from "class-validator";
|
|
11
|
-
import * as abstract_validator_1 from '../../../
|
|
12
|
+
import * as abstract_validator_1 from '../../../abstract.validator.js';
|
|
12
13
|
export class CreateCollectionRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
13
14
|
name;
|
|
14
15
|
description;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AssetEntity } from '../../../assets/asset';
|
|
2
2
|
import { StockBalanceEntity } from '../../stock/balance';
|
|
3
3
|
import { StockBalanceStatusEnum } from '../../stock/balance';
|
|
4
|
-
import { AbstractEntity } from '
|
|
4
|
+
import { AbstractEntity } from '../../../abstract.entity.js';
|
|
5
5
|
import { CatalogAttributeEntity } from '../attribute';
|
|
6
6
|
import type { CatalogBrandEntity } from '../brand';
|
|
7
7
|
import type { CatalogCategoryEntity } from '../category';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -9,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
10
|
};
|
|
10
11
|
import * as class_transformer_1 from "class-transformer";
|
|
11
12
|
import * as class_validator_1 from "class-validator";
|
|
12
|
-
import * as abstract_validator_1 from '../../../
|
|
13
|
+
import * as abstract_validator_1 from '../../../abstract.validator.js';
|
|
13
14
|
export class ProductAttributeRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
14
15
|
type;
|
|
15
16
|
values = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractRequestValidator } from '
|
|
1
|
+
import { AbstractRequestValidator } from '../../../abstract.validator.js';
|
|
2
2
|
import type { CatalogVariantEntity } from './';
|
|
3
3
|
export declare class VariantOptionRequestValidator extends AbstractRequestValidator {
|
|
4
4
|
type: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -9,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
10
|
};
|
|
10
11
|
import * as class_transformer_1 from "class-transformer";
|
|
11
12
|
import * as class_validator_1 from "class-validator";
|
|
12
|
-
import * as abstract_validator_1 from '../../../
|
|
13
|
+
import * as abstract_validator_1 from '../../../abstract.validator.js';
|
|
13
14
|
export class VariantOptionRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
14
15
|
type;
|
|
15
16
|
value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AssetEntity } from '../../../assets/asset';
|
|
2
2
|
import { StockBalanceStatusEnum } from '../../stock/balance';
|
|
3
|
-
import { AbstractEntity } from '
|
|
3
|
+
import { AbstractEntity } from '../../../abstract.entity.js';
|
|
4
4
|
import { VariantIdentifierEntity } from '../../..';
|
|
5
5
|
import { VariantPolicyEntity } from '../../..';
|
|
6
6
|
import type { CatalogAttributeEntity } from '../attribute';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractRequestValidator } from '
|
|
1
|
+
import { AbstractRequestValidator } from '../../../abstract.validator.js';
|
|
2
2
|
import type { ConfigurationMeasurementEntity } from './';
|
|
3
3
|
import type { ConfigurationUnitEntity } from '../unit';
|
|
4
4
|
export declare class ConfigurationUnitRequestValidator extends AbstractRequestValidator {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
1
2
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
3
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
4
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -9,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
10
|
};
|
|
10
11
|
import * as class_transformer_1 from "class-transformer";
|
|
11
12
|
import * as class_validator_1 from "class-validator";
|
|
12
|
-
import * as abstract_validator_1 from '../../../
|
|
13
|
+
import * as abstract_validator_1 from '../../../abstract.validator.js';
|
|
13
14
|
export class ConfigurationUnitRequestValidator extends abstract_validator_1.AbstractRequestValidator {
|
|
14
15
|
active;
|
|
15
16
|
description;
|