cecon-interfaces 1.2.83 → 1.2.85
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/company/entities/company.entity.d.ts +1 -0
- package/dist/company/entities/company.entity.js +1 -0
- package/dist/company/interfaces/i-company.d.ts +1 -0
- package/dist/esm2022/company/entities/company.entity.mjs +2 -1
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/index.mjs +2 -1
- package/dist/esm2022/logss/entities/index.mjs +2 -0
- package/dist/esm2022/logss/entities/log.entity.mjs +20 -0
- package/dist/esm2022/logss/index.mjs +3 -0
- package/dist/esm2022/logss/interfaces/i-log.mjs +2 -0
- package/dist/esm2022/logss/interfaces/index.mjs +2 -0
- package/dist/esm2022/mottu/entities/order.entity.mjs +3 -2
- package/dist/esm2022/mottu/interfaces/i-order.mjs +1 -1
- package/dist/esm2022/subscription-customer/entities/customer-credit-limit.entity.mjs +20 -0
- package/dist/esm2022/subscription-customer/entities/index.mjs +2 -1
- package/dist/esm2022/subscription-customer/entities/subscription.entity.mjs +2 -4
- package/dist/esm2022/subscription-customer/interfaces/i-customer-credit-limit.mjs +2 -0
- package/dist/esm2022/subscription-customer/interfaces/i-subscription.mjs +1 -1
- package/dist/esm2022/subscription-customer/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +45 -5
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/logss/entities/index.d.ts +1 -0
- package/dist/logss/entities/index.js +5 -0
- package/dist/logss/entities/log.entity.d.ts +11 -0
- package/dist/logss/entities/log.entity.js +24 -0
- package/dist/logss/index.d.ts +2 -0
- package/dist/logss/index.js +18 -0
- package/dist/logss/interfaces/i-log.d.ts +9 -0
- package/dist/logss/interfaces/i-log.js +2 -0
- package/dist/logss/interfaces/index.d.ts +1 -0
- package/dist/logss/interfaces/index.js +2 -0
- package/dist/mottu/entities/order.entity.d.ts +2 -1
- package/dist/mottu/entities/order.entity.js +2 -1
- package/dist/mottu/interfaces/i-order.d.ts +2 -1
- package/dist/package.json +1 -1
- package/dist/subscription-customer/entities/customer-credit-limit.entity.d.ts +9 -0
- package/dist/subscription-customer/entities/customer-credit-limit.entity.js +24 -0
- package/dist/subscription-customer/entities/index.d.ts +1 -0
- package/dist/subscription-customer/entities/index.js +3 -1
- package/dist/subscription-customer/entities/subscription.entity.d.ts +2 -3
- package/dist/subscription-customer/entities/subscription.entity.js +1 -3
- package/dist/subscription-customer/interfaces/i-customer-credit-limit.d.ts +7 -0
- package/dist/subscription-customer/interfaces/i-customer-credit-limit.js +2 -0
- package/dist/subscription-customer/interfaces/i-subscription.d.ts +2 -3
- package/dist/subscription-customer/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export { LogsEntity } from './log.entity';
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.LogsEntity = void 0;
|
4
|
+
var log_entity_1 = require("./log.entity");
|
5
|
+
Object.defineProperty(exports, "LogsEntity", { enumerable: true, get: function () { return log_entity_1.LogsEntity; } });
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { ILog } from '../interfaces/i-log';
|
2
|
+
export declare class LogsEntity implements ILog {
|
3
|
+
name: string;
|
4
|
+
createdAt: Date;
|
5
|
+
description: string;
|
6
|
+
email: string;
|
7
|
+
memberId: string;
|
8
|
+
endPoint: string;
|
9
|
+
id: string;
|
10
|
+
constructor(data?: Partial<LogsEntity>);
|
11
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.LogsEntity = void 0;
|
4
|
+
var LogsEntity = /** @class */ (function () {
|
5
|
+
function LogsEntity(data) {
|
6
|
+
// #region Properties (12)
|
7
|
+
this.name = '';
|
8
|
+
this.createdAt = new Date();
|
9
|
+
this.description = '';
|
10
|
+
this.email = '';
|
11
|
+
this.memberId = '';
|
12
|
+
this.endPoint = '';
|
13
|
+
this.id = '';
|
14
|
+
if (data) {
|
15
|
+
for (var key in data) {
|
16
|
+
if (data.hasOwnProperty(key) && key in this) {
|
17
|
+
this[key] = data[key];
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
return LogsEntity;
|
23
|
+
}());
|
24
|
+
exports.LogsEntity = LogsEntity;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./entities"), exports);
|
18
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ILog } from './i-log';
|
@@ -8,7 +8,7 @@ export declare class MottuOrderEntity implements IMottuOrder {
|
|
8
8
|
expectedDelivery: Date;
|
9
9
|
expectedPickup: Date;
|
10
10
|
fullCode: string;
|
11
|
-
id: number;
|
11
|
+
id: number | string;
|
12
12
|
origin: string;
|
13
13
|
pickupCode: string;
|
14
14
|
preparationTime: number;
|
@@ -16,5 +16,6 @@ export declare class MottuOrderEntity implements IMottuOrder {
|
|
16
16
|
situation: number;
|
17
17
|
storeId: number;
|
18
18
|
totalDistance: number;
|
19
|
+
updatedAt: Date;
|
19
20
|
constructor(data?: Partial<MottuOrderEntity>);
|
20
21
|
}
|
@@ -15,7 +15,7 @@ var MottuOrderEntity = /** @class */ (function () {
|
|
15
15
|
this.expectedDelivery = new Date();
|
16
16
|
this.expectedPickup = new Date();
|
17
17
|
this.fullCode = '';
|
18
|
-
this.id =
|
18
|
+
this.id = '';
|
19
19
|
this.origin = '';
|
20
20
|
this.pickupCode = '';
|
21
21
|
this.preparationTime = 0;
|
@@ -23,6 +23,7 @@ var MottuOrderEntity = /** @class */ (function () {
|
|
23
23
|
this.situation = 0;
|
24
24
|
this.storeId = 0;
|
25
25
|
this.totalDistance = 0;
|
26
|
+
this.updatedAt = new Date();
|
26
27
|
if (data) {
|
27
28
|
for (var key in data) {
|
28
29
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -9,7 +9,7 @@ export interface IMottuOrder {
|
|
9
9
|
expectedDelivery: Date;
|
10
10
|
expectedPickup: Date;
|
11
11
|
fullCode: string;
|
12
|
-
id: number;
|
12
|
+
id: number | string;
|
13
13
|
origin: string;
|
14
14
|
pickupCode: string;
|
15
15
|
preparationTime: number;
|
@@ -17,4 +17,5 @@ export interface IMottuOrder {
|
|
17
17
|
situation: number;
|
18
18
|
storeId: number;
|
19
19
|
totalDistance: number;
|
20
|
+
updatedAt: Date;
|
20
21
|
}
|
package/dist/package.json
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ICustomerCreditLimit } from '../interfaces/i-customer-credit-limit';
|
2
|
+
export declare class CustomerCreditLimitEntity implements ICustomerCreditLimit {
|
3
|
+
amountUsed: number;
|
4
|
+
currentBalance: number;
|
5
|
+
creditLimit: number;
|
6
|
+
companyId: string;
|
7
|
+
containerId: string;
|
8
|
+
constructor(data?: Partial<CustomerCreditLimitEntity>);
|
9
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CustomerCreditLimitEntity = void 0;
|
4
|
+
var CustomerCreditLimitEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (8)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function CustomerCreditLimitEntity(data) {
|
8
|
+
// #region Properties (8)
|
9
|
+
this.amountUsed = 0;
|
10
|
+
this.currentBalance = 0;
|
11
|
+
this.creditLimit = 0;
|
12
|
+
this.companyId = '';
|
13
|
+
this.containerId = '';
|
14
|
+
if (data) {
|
15
|
+
for (var key in data) {
|
16
|
+
if (data.hasOwnProperty(key) && key in this) {
|
17
|
+
this[key] = data[key];
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
return CustomerCreditLimitEntity;
|
23
|
+
}());
|
24
|
+
exports.CustomerCreditLimitEntity = CustomerCreditLimitEntity;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SubscriptionCustomerEntity = exports.SubscriptionCustomerProfileEntity = void 0;
|
3
|
+
exports.SubscriptionCustomerEntity = exports.SubscriptionCustomerProfileEntity = exports.CustomerCreditLimitEntity = void 0;
|
4
|
+
var customer_credit_limit_entity_1 = require("./customer-credit-limit.entity");
|
5
|
+
Object.defineProperty(exports, "CustomerCreditLimitEntity", { enumerable: true, get: function () { return customer_credit_limit_entity_1.CustomerCreditLimitEntity; } });
|
4
6
|
var subscription_customer_entity_1 = require("./subscription-customer.entity");
|
5
7
|
Object.defineProperty(exports, "SubscriptionCustomerProfileEntity", { enumerable: true, get: function () { return subscription_customer_entity_1.SubscriptionCustomerProfileEntity; } });
|
6
8
|
var subscription_entity_1 = require("./subscription.entity");
|
@@ -2,11 +2,10 @@ import { ECustomerInterval } from '../../customer';
|
|
2
2
|
import { IInvoice } from '../../invoice';
|
3
3
|
import { SubscriptionBaseEntity } from '../../subscription-base';
|
4
4
|
import { ISubscriptionCustomer } from '../interfaces/i-subscription';
|
5
|
+
import { CustomerCreditLimitEntity } from './customer-credit-limit.entity';
|
5
6
|
import { SubscriptionCustomerProfileEntity } from './subscription-customer.entity';
|
6
7
|
export declare class SubscriptionCustomerEntity extends SubscriptionBaseEntity implements ISubscriptionCustomer {
|
7
|
-
|
8
|
-
creditLimit: number;
|
9
|
-
currentBalance: number;
|
8
|
+
customerCreditLimit: CustomerCreditLimitEntity[];
|
10
9
|
customerId: string | null;
|
11
10
|
customerInterval: ECustomerInterval;
|
12
11
|
openedInvoices: IInvoice[];
|
@@ -26,9 +26,7 @@ var SubscriptionCustomerEntity = /** @class */ (function (_super) {
|
|
26
26
|
function SubscriptionCustomerEntity(data) {
|
27
27
|
var _this = _super.call(this, data) || this;
|
28
28
|
// #region Properties (9)
|
29
|
-
_this.
|
30
|
-
_this.creditLimit = 0;
|
31
|
-
_this.currentBalance = 0;
|
29
|
+
_this.customerCreditLimit = [];
|
32
30
|
_this.customerId = null;
|
33
31
|
_this.customerInterval = customer_1.ECustomerInterval.MONTHLY;
|
34
32
|
_this.openedInvoices = [];
|
@@ -1,11 +1,10 @@
|
|
1
1
|
import { ECustomerInterval } from '../../customer';
|
2
2
|
import { IInvoice } from '../../invoice';
|
3
3
|
import { ISubscriptionBase } from '../../subscription-base';
|
4
|
+
import { ICustomerCreditLimit } from './i-customer-credit-limit';
|
4
5
|
import { ISubscriptionCustomerProfile } from './i-subscription-customer';
|
5
6
|
export interface ISubscriptionCustomer extends ISubscriptionBase {
|
6
|
-
|
7
|
-
creditLimit: number;
|
8
|
-
currentBalance: number;
|
7
|
+
customerCreditLimit: ICustomerCreditLimit[];
|
9
8
|
customerId: string | null;
|
10
9
|
customerInterval: ECustomerInterval;
|
11
10
|
openedInvoices: IInvoice[];
|