cecon-interfaces 1.1.65 → 1.1.67
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/index.mjs +4 -2
- package/dist/esm2022/installation/entities/installation.entity.mjs +2 -2
- package/dist/esm2022/installation/interfaces/i-installation.mjs +1 -1
- package/dist/esm2022/pubsub/entities/subscription-change-status.entity.mjs +1 -1
- package/dist/esm2022/pubsub/interfaces/i-subscription-change-status.mjs +1 -1
- package/dist/esm2022/subscription-base/entities/index.mjs +4 -0
- package/dist/esm2022/subscription-base/entities/subscription-base-item.entity.mjs +21 -0
- package/dist/esm2022/subscription-base/entities/subscription-base-log.entity.mjs +19 -0
- package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +40 -0
- package/dist/esm2022/subscription-base/enums/index.mjs +2 -0
- package/dist/esm2022/subscription-base/enums/subscription-status.enum.mjs +12 -0
- package/dist/esm2022/subscription-base/index.mjs +4 -0
- package/dist/esm2022/subscription-base/interfaces/i-subscription-base-item.mjs +2 -0
- package/dist/esm2022/subscription-base/interfaces/i-subscription-base-log.mjs +2 -0
- package/dist/esm2022/subscription-base/interfaces/i-subscription-base.mjs +2 -0
- package/dist/esm2022/subscription-base/interfaces/index.mjs +2 -0
- package/dist/esm2022/subscription-company/entities/index.mjs +3 -0
- package/dist/esm2022/subscription-company/entities/subscription-company.entity.mjs +21 -0
- package/dist/esm2022/subscription-company/entities/subscription.entity.mjs +24 -0
- package/dist/esm2022/subscription-company/index.mjs +3 -0
- package/dist/esm2022/subscription-company/interfaces/i-subscription-company.mjs +2 -0
- package/dist/esm2022/subscription-company/interfaces/i-subscription.mjs +2 -0
- package/dist/esm2022/subscription-company/interfaces/index.mjs +2 -0
- package/dist/esm2022/subscription-customer/entities/index.mjs +3 -0
- package/dist/esm2022/subscription-customer/entities/subscription-customer.entity.mjs +21 -0
- package/dist/esm2022/subscription-customer/entities/subscription.entity.mjs +19 -0
- package/dist/esm2022/subscription-customer/index.mjs +3 -0
- package/dist/esm2022/subscription-customer/interfaces/i-subscription-customer.mjs +2 -0
- package/dist/esm2022/subscription-customer/interfaces/i-subscription.mjs +2 -0
- package/dist/esm2022/subscription-customer/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +105 -52
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/installation/entities/installation.entity.d.ts +1 -1
- package/dist/installation/entities/installation.entity.js +2 -2
- package/dist/installation/interfaces/i-installation.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/pubsub/entities/subscription-change-status.entity.d.ts +1 -1
- package/dist/pubsub/interfaces/i-subscription-change-status.d.ts +1 -1
- package/dist/subscription-base/entities/index.d.ts +3 -0
- package/dist/subscription-base/entities/index.js +9 -0
- package/dist/subscription-base/entities/subscription-base-item.entity.d.ts +10 -0
- package/dist/{subscription/entities/subscription-item.entity.js → subscription-base/entities/subscription-base-item.entity.js} +5 -5
- package/dist/subscription-base/entities/subscription-base-log.entity.d.ts +8 -0
- package/dist/{subscription/entities/subscription-log.entity.js → subscription-base/entities/subscription-base-log.entity.js} +8 -8
- package/dist/{subscription/entities/subscription.entity.d.ts → subscription-base/entities/subscription-base.entity.d.ts} +7 -17
- package/dist/{subscription/entities/subscription.entity.js → subscription-base/entities/subscription-base.entity.js} +7 -16
- package/dist/{subscription/interfaces/i-subscription-item.d.ts → subscription-base/interfaces/i-subscription-base-item.d.ts} +1 -1
- package/dist/{subscription/interfaces/i-subscription-log.d.ts → subscription-base/interfaces/i-subscription-base-log.d.ts} +1 -1
- package/dist/subscription-base/interfaces/i-subscription-base.d.ts +30 -0
- package/dist/subscription-base/interfaces/index.d.ts +3 -0
- package/dist/subscription-company/entities/index.d.ts +2 -0
- package/dist/subscription-company/entities/index.js +7 -0
- package/dist/subscription-company/entities/subscription-company.entity.d.ts +10 -0
- package/dist/{subscription → subscription-company}/entities/subscription-company.entity.js +5 -5
- package/dist/subscription-company/entities/subscription.entity.d.ts +13 -0
- package/dist/subscription-company/entities/subscription.entity.js +45 -0
- package/dist/subscription-company/index.d.ts +2 -0
- package/dist/subscription-company/index.js +18 -0
- package/dist/{subscription → subscription-company}/interfaces/i-subscription-company.d.ts +1 -1
- package/dist/subscription-company/interfaces/i-subscription.d.ts +11 -0
- package/dist/subscription-company/interfaces/i-subscription.js +2 -0
- package/dist/subscription-company/interfaces/index.d.ts +2 -0
- package/dist/subscription-company/interfaces/index.js +2 -0
- package/dist/subscription-customer/entities/index.d.ts +2 -0
- package/dist/subscription-customer/entities/index.js +7 -0
- package/dist/subscription-customer/entities/subscription-customer.entity.d.ts +10 -0
- package/dist/subscription-customer/entities/subscription-customer.entity.js +25 -0
- package/dist/subscription-customer/entities/subscription.entity.d.ts +7 -0
- package/dist/subscription-customer/entities/subscription.entity.js +40 -0
- package/dist/subscription-customer/index.d.ts +2 -0
- package/dist/subscription-customer/index.js +18 -0
- package/dist/subscription-customer/interfaces/i-subscription-customer.d.ts +8 -0
- package/dist/subscription-customer/interfaces/i-subscription-customer.js +2 -0
- package/dist/subscription-customer/interfaces/i-subscription.d.ts +5 -0
- package/dist/subscription-customer/interfaces/i-subscription.js +2 -0
- package/dist/subscription-customer/interfaces/index.d.ts +2 -0
- package/dist/subscription-customer/interfaces/index.js +2 -0
- package/package.json +1 -1
- package/dist/esm2022/subscription/entities/index.mjs +0 -5
- package/dist/esm2022/subscription/entities/subscription-company.entity.mjs +0 -21
- package/dist/esm2022/subscription/entities/subscription-item.entity.mjs +0 -21
- package/dist/esm2022/subscription/entities/subscription-log.entity.mjs +0 -19
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +0 -49
- package/dist/esm2022/subscription/enums/index.mjs +0 -2
- package/dist/esm2022/subscription/enums/subscription-status.enum.mjs +0 -12
- package/dist/esm2022/subscription/index.mjs +0 -4
- package/dist/esm2022/subscription/interfaces/i-subscription-company.mjs +0 -2
- package/dist/esm2022/subscription/interfaces/i-subscription-item.mjs +0 -2
- package/dist/esm2022/subscription/interfaces/i-subscription-log.mjs +0 -2
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +0 -2
- package/dist/esm2022/subscription/interfaces/index.mjs +0 -2
- package/dist/subscription/entities/index.d.ts +0 -4
- package/dist/subscription/entities/index.js +0 -11
- package/dist/subscription/entities/subscription-company.entity.d.ts +0 -10
- package/dist/subscription/entities/subscription-item.entity.d.ts +0 -10
- package/dist/subscription/entities/subscription-log.entity.d.ts +0 -8
- package/dist/subscription/interfaces/i-subscription.d.ts +0 -41
- package/dist/subscription/interfaces/index.d.ts +0 -4
- /package/dist/{subscription → subscription-base}/enums/index.d.ts +0 -0
- /package/dist/{subscription → subscription-base}/enums/index.js +0 -0
- /package/dist/{subscription → subscription-base}/enums/subscription-status.enum.d.ts +0 -0
- /package/dist/{subscription → subscription-base}/enums/subscription-status.enum.js +0 -0
- /package/dist/{subscription → subscription-base}/index.d.ts +0 -0
- /package/dist/{subscription → subscription-base}/index.js +0 -0
- /package/dist/{subscription/interfaces/i-subscription-company.js → subscription-base/interfaces/i-subscription-base-item.js} +0 -0
- /package/dist/{subscription/interfaces/i-subscription-item.js → subscription-base/interfaces/i-subscription-base-log.js} +0 -0
- /package/dist/{subscription/interfaces/i-subscription-log.js → subscription-base/interfaces/i-subscription-base.js} +0 -0
- /package/dist/{subscription → subscription-base}/interfaces/index.js +0 -0
- /package/dist/{subscription/interfaces/i-subscription.js → subscription-company/interfaces/i-subscription-company.js} +0 -0
package/dist/index.d.ts
CHANGED
@@ -21,7 +21,9 @@ export * from './plan';
|
|
21
21
|
export * from './pubsub';
|
22
22
|
export * from './purchases';
|
23
23
|
export * from './resume';
|
24
|
-
export * from './subscription';
|
24
|
+
export * from './subscription-base';
|
25
|
+
export * from './subscription-company';
|
26
|
+
export * from './subscription-customer';
|
25
27
|
export * from './token';
|
26
28
|
export * from './viacep';
|
27
29
|
export * from './voucher';
|
package/dist/index.js
CHANGED
@@ -37,7 +37,9 @@ __exportStar(require("./plan"), exports);
|
|
37
37
|
__exportStar(require("./pubsub"), exports);
|
38
38
|
__exportStar(require("./purchases"), exports);
|
39
39
|
__exportStar(require("./resume"), exports);
|
40
|
-
__exportStar(require("./subscription"), exports);
|
40
|
+
__exportStar(require("./subscription-base"), exports);
|
41
|
+
__exportStar(require("./subscription-company"), exports);
|
42
|
+
__exportStar(require("./subscription-customer"), exports);
|
41
43
|
__exportStar(require("./token"), exports);
|
42
44
|
__exportStar(require("./viacep"), exports);
|
43
45
|
__exportStar(require("./voucher"), exports);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AppConfigType } from '../../app';
|
2
|
-
import { ESubscriptionStatus } from '../../subscription
|
2
|
+
import { ESubscriptionStatus } from '../../subscription-base';
|
3
3
|
import { IInstallation } from '../interfaces/i-installation';
|
4
4
|
import { InstallationAppEntity } from './installation-app.entity';
|
5
5
|
export declare class InstallationEntity implements IInstallation {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.InstallationEntity = void 0;
|
4
|
-
var
|
4
|
+
var subscription_base_1 = require("../../subscription-base");
|
5
5
|
var installation_app_entity_1 = require("./installation-app.entity");
|
6
6
|
var InstallationEntity = /** @class */ (function () {
|
7
7
|
// #endregion Properties (13)
|
@@ -15,7 +15,7 @@ var InstallationEntity = /** @class */ (function () {
|
|
15
15
|
this.featureId = '';
|
16
16
|
this.id = '';
|
17
17
|
this.lastCheckAt = new Date();
|
18
|
-
this.status =
|
18
|
+
this.status = subscription_base_1.ESubscriptionStatus.PLACED;
|
19
19
|
this.subscriptionId = '';
|
20
20
|
this.tags = [];
|
21
21
|
this.trialEndDate = new Date();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AppConfigType } from '../../app';
|
2
|
-
import { ESubscriptionStatus } from '../../subscription
|
2
|
+
import { ESubscriptionStatus } from '../../subscription-base';
|
3
3
|
import { IInstallationApp } from './i-installation-app';
|
4
4
|
export interface IInstallation {
|
5
5
|
app: IInstallationApp;
|
package/dist/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ESubscriptionStatus } from '../../subscription';
|
1
|
+
import { ESubscriptionStatus } from '../../subscription-base';
|
2
2
|
import { EPubSubTopicType } from '../enums';
|
3
3
|
import { IPubsubSubscriptionChangeStatus } from '../interfaces';
|
4
4
|
export declare class PubsubSubscriptionChangeStatusEntity implements IPubsubSubscriptionChangeStatus {
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubscriptionBaseEntity = exports.SubscriptionBaseLogEntity = exports.SubscriptionBaseItemEntity = void 0;
|
4
|
+
var subscription_base_item_entity_1 = require("./subscription-base-item.entity");
|
5
|
+
Object.defineProperty(exports, "SubscriptionBaseItemEntity", { enumerable: true, get: function () { return subscription_base_item_entity_1.SubscriptionBaseItemEntity; } });
|
6
|
+
var subscription_base_log_entity_1 = require("./subscription-base-log.entity");
|
7
|
+
Object.defineProperty(exports, "SubscriptionBaseLogEntity", { enumerable: true, get: function () { return subscription_base_log_entity_1.SubscriptionBaseLogEntity; } });
|
8
|
+
var subscription_base_entity_1 = require("./subscription-base.entity");
|
9
|
+
Object.defineProperty(exports, "SubscriptionBaseEntity", { enumerable: true, get: function () { return subscription_base_entity_1.SubscriptionBaseEntity; } });
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ISubscriptionBaseItem } from '../interfaces';
|
2
|
+
export declare class SubscriptionBaseItemEntity implements ISubscriptionBaseItem {
|
3
|
+
description: string;
|
4
|
+
quantity: number;
|
5
|
+
recurrent: boolean;
|
6
|
+
totalPrice: number;
|
7
|
+
unitPrice: number;
|
8
|
+
voucherKey: string | null;
|
9
|
+
constructor(data?: Partial<SubscriptionBaseItemEntity>);
|
10
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
3
|
+
exports.SubscriptionBaseItemEntity = void 0;
|
4
|
+
var SubscriptionBaseItemEntity = /** @class */ (function () {
|
5
5
|
// #endregion Properties (6)
|
6
6
|
// #region Constructors (1)
|
7
|
-
function
|
7
|
+
function SubscriptionBaseItemEntity(data) {
|
8
8
|
// #region Properties (6)
|
9
9
|
this.description = '';
|
10
10
|
this.quantity = 1;
|
@@ -20,6 +20,6 @@ var SubscriptionItemEntity = /** @class */ (function () {
|
|
20
20
|
}
|
21
21
|
}
|
22
22
|
}
|
23
|
-
return
|
23
|
+
return SubscriptionBaseItemEntity;
|
24
24
|
}());
|
25
|
-
exports.
|
25
|
+
exports.SubscriptionBaseItemEntity = SubscriptionBaseItemEntity;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { ISubscriptionBaseLog } from '../interfaces/i-subscription-base-log';
|
2
|
+
export declare class SubscriptionBaseLogEntity implements ISubscriptionBaseLog {
|
3
|
+
createdAt: Date;
|
4
|
+
description: string;
|
5
|
+
id: string;
|
6
|
+
notes: string;
|
7
|
+
constructor(data?: Partial<SubscriptionBaseLogEntity>);
|
8
|
+
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
3
|
+
exports.SubscriptionBaseLogEntity = void 0;
|
4
|
+
var SubscriptionBaseLogEntity = /** @class */ (function () {
|
5
5
|
// #endregion Properties (4)
|
6
6
|
// #region Constructors (1)
|
7
|
-
function
|
7
|
+
function SubscriptionBaseLogEntity(data) {
|
8
8
|
// #region Properties (4)
|
9
9
|
this.createdAt = new Date();
|
10
|
-
this.description =
|
11
|
-
this.id =
|
12
|
-
this.notes =
|
10
|
+
this.description = '';
|
11
|
+
this.id = '';
|
12
|
+
this.notes = '';
|
13
13
|
if (data) {
|
14
14
|
for (var key in data) {
|
15
15
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -18,6 +18,6 @@ var SubscriptionLogEntity = /** @class */ (function () {
|
|
18
18
|
}
|
19
19
|
}
|
20
20
|
}
|
21
|
-
return
|
21
|
+
return SubscriptionBaseLogEntity;
|
22
22
|
}());
|
23
|
-
exports.
|
23
|
+
exports.SubscriptionBaseLogEntity = SubscriptionBaseLogEntity;
|
@@ -1,35 +1,25 @@
|
|
1
|
-
import { FeatureEntity } from '../../feature';
|
2
1
|
import { CustomVariableEntity, EPaymentType, IntervalTypeEnum, PaymentEntity } from '../../general';
|
3
2
|
import { InvoiceEntity } from '../../invoice';
|
4
3
|
import { ESubscriptionStatus } from '../enums';
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
|
9
|
-
export declare class SubscriptionEntity implements ISubscription {
|
4
|
+
import { ISubscriptionBase } from '../interfaces/i-subscription-base';
|
5
|
+
import { SubscriptionBaseItemEntity } from './subscription-base-item.entity';
|
6
|
+
import { SubscriptionBaseLogEntity } from './subscription-base-log.entity';
|
7
|
+
export declare class SubscriptionBaseEntity implements ISubscriptionBase {
|
10
8
|
amount: number;
|
11
|
-
appId: string;
|
12
|
-
appName: string;
|
13
9
|
cancellationReason: string;
|
14
|
-
company: SubscriptionCompanyEntity;
|
15
10
|
createdAt: Date;
|
16
11
|
customVariables: CustomVariableEntity[];
|
17
|
-
cycledAt: Date;
|
18
12
|
expiresAt: Date;
|
19
|
-
features: FeatureEntity[];
|
20
13
|
id: string;
|
21
14
|
interval: number;
|
22
15
|
intervalType: IntervalTypeEnum;
|
23
16
|
invoices: InvoiceEntity[];
|
24
|
-
items:
|
25
|
-
logs:
|
17
|
+
items: SubscriptionBaseItemEntity[];
|
18
|
+
logs: SubscriptionBaseLogEntity[];
|
26
19
|
notes: string;
|
27
|
-
partnerId: string | null;
|
28
20
|
payment: PaymentEntity;
|
29
21
|
paymentType: EPaymentType;
|
30
22
|
phoneNumberNotification: string;
|
31
|
-
planId: string;
|
32
|
-
planName: string;
|
33
23
|
recentInvoices: InvoiceEntity[];
|
34
24
|
renewPaymentDate: Date;
|
35
25
|
renovatedAt: Date;
|
@@ -38,5 +28,5 @@ export declare class SubscriptionEntity implements ISubscription {
|
|
38
28
|
suspendedTimes: number;
|
39
29
|
tags: string[];
|
40
30
|
updatedAt: Date;
|
41
|
-
constructor(data?: Partial<
|
31
|
+
constructor(data?: Partial<SubscriptionBaseEntity>);
|
42
32
|
}
|
@@ -1,24 +1,18 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.SubscriptionBaseEntity = void 0;
|
4
4
|
var general_1 = require("../../general");
|
5
5
|
var enums_1 = require("../enums");
|
6
|
-
var
|
7
|
-
|
8
|
-
// #endregion Properties (31)
|
6
|
+
var SubscriptionBaseEntity = /** @class */ (function () {
|
7
|
+
// #endregion Properties (25)
|
9
8
|
// #region Constructors (1)
|
10
|
-
function
|
11
|
-
// #region Properties (
|
9
|
+
function SubscriptionBaseEntity(data) {
|
10
|
+
// #region Properties (25)
|
12
11
|
this.amount = 0;
|
13
|
-
this.appId = '';
|
14
|
-
this.appName = '';
|
15
12
|
this.cancellationReason = '';
|
16
|
-
this.company = new subscription_company_entity_1.SubscriptionCompanyEntity();
|
17
13
|
this.createdAt = new Date();
|
18
14
|
this.customVariables = [];
|
19
|
-
this.cycledAt = new Date();
|
20
15
|
this.expiresAt = new Date();
|
21
|
-
this.features = [];
|
22
16
|
this.id = '';
|
23
17
|
this.interval = 0;
|
24
18
|
this.intervalType = general_1.IntervalTypeEnum.MONTHS;
|
@@ -26,12 +20,9 @@ var SubscriptionEntity = /** @class */ (function () {
|
|
26
20
|
this.items = [];
|
27
21
|
this.logs = [];
|
28
22
|
this.notes = '';
|
29
|
-
this.partnerId = '';
|
30
23
|
this.payment = new general_1.PaymentEntity();
|
31
24
|
this.paymentType = general_1.EPaymentType.NONE;
|
32
25
|
this.phoneNumberNotification = '';
|
33
|
-
this.planId = '';
|
34
|
-
this.planName = '';
|
35
26
|
this.recentInvoices = [];
|
36
27
|
this.renewPaymentDate = new Date();
|
37
28
|
this.renovatedAt = new Date();
|
@@ -48,6 +39,6 @@ var SubscriptionEntity = /** @class */ (function () {
|
|
48
39
|
}
|
49
40
|
}
|
50
41
|
}
|
51
|
-
return
|
42
|
+
return SubscriptionBaseEntity;
|
52
43
|
}());
|
53
|
-
exports.
|
44
|
+
exports.SubscriptionBaseEntity = SubscriptionBaseEntity;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { EPaymentType, ICustomVariable, IPayment, IntervalTypeEnum } from '../../general';
|
2
|
+
import { IInvoice } from '../../invoice';
|
3
|
+
import { ESubscriptionStatus } from '../enums';
|
4
|
+
import { ISubscriptionBaseItem } from './i-subscription-base-item';
|
5
|
+
import { ISubscriptionBaseLog } from './i-subscription-base-log';
|
6
|
+
export interface ISubscriptionBase {
|
7
|
+
amount: number;
|
8
|
+
cancellationReason: string;
|
9
|
+
createdAt: Date;
|
10
|
+
customVariables: ICustomVariable[];
|
11
|
+
expiresAt: Date;
|
12
|
+
id: string;
|
13
|
+
interval: number;
|
14
|
+
intervalType: IntervalTypeEnum;
|
15
|
+
invoices: IInvoice[];
|
16
|
+
items: ISubscriptionBaseItem[];
|
17
|
+
logs: ISubscriptionBaseLog[];
|
18
|
+
notes: string;
|
19
|
+
payment: IPayment;
|
20
|
+
paymentType: EPaymentType;
|
21
|
+
phoneNumberNotification: string;
|
22
|
+
recentInvoices: IInvoice[];
|
23
|
+
renewPaymentDate: Date;
|
24
|
+
renovatedAt: Date;
|
25
|
+
startsAt: Date;
|
26
|
+
status: ESubscriptionStatus;
|
27
|
+
suspendedTimes: number;
|
28
|
+
tags: string[];
|
29
|
+
updatedAt: Date;
|
30
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubscriptionCompanyEntity = exports.SubscriptionCompanyCompanyEntity = void 0;
|
4
|
+
var subscription_company_entity_1 = require("./subscription-company.entity");
|
5
|
+
Object.defineProperty(exports, "SubscriptionCompanyCompanyEntity", { enumerable: true, get: function () { return subscription_company_entity_1.SubscriptionCompanyCompanyEntity; } });
|
6
|
+
var subscription_entity_1 = require("./subscription.entity");
|
7
|
+
Object.defineProperty(exports, "SubscriptionCompanyEntity", { enumerable: true, get: function () { return subscription_entity_1.SubscriptionCompanyEntity; } });
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ISubscriptionCompanyCompany } from '../interfaces/i-subscription-company';
|
2
|
+
export declare class SubscriptionCompanyCompanyEntity implements ISubscriptionCompanyCompany {
|
3
|
+
containerId: string | null;
|
4
|
+
doc: string | null;
|
5
|
+
docType: string | null;
|
6
|
+
id: string | null;
|
7
|
+
imageUrl: string | null;
|
8
|
+
name: string | null;
|
9
|
+
constructor(data?: Partial<SubscriptionCompanyCompanyEntity>);
|
10
|
+
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
var
|
3
|
+
exports.SubscriptionCompanyCompanyEntity = void 0;
|
4
|
+
var SubscriptionCompanyCompanyEntity = /** @class */ (function () {
|
5
5
|
// #endregion Properties (6)
|
6
6
|
// #region Constructors (1)
|
7
|
-
function
|
7
|
+
function SubscriptionCompanyCompanyEntity(data) {
|
8
8
|
// #region Properties (6)
|
9
9
|
this.containerId = '';
|
10
10
|
this.doc = '';
|
@@ -20,6 +20,6 @@ var SubscriptionCompanyEntity = /** @class */ (function () {
|
|
20
20
|
}
|
21
21
|
}
|
22
22
|
}
|
23
|
-
return
|
23
|
+
return SubscriptionCompanyCompanyEntity;
|
24
24
|
}());
|
25
|
-
exports.
|
25
|
+
exports.SubscriptionCompanyCompanyEntity = SubscriptionCompanyCompanyEntity;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { FeatureEntity } from '../../feature';
|
2
|
+
import { SubscriptionBaseEntity } from '../../subscription-base/entities/subscription-base.entity';
|
3
|
+
import { ISubscriptionCompany } from '../interfaces/i-subscription';
|
4
|
+
export declare class SubscriptionCompanyEntity extends SubscriptionBaseEntity implements ISubscriptionCompany {
|
5
|
+
appId: string;
|
6
|
+
appName: string;
|
7
|
+
company: SubscriptionCompanyEntity;
|
8
|
+
features: FeatureEntity[];
|
9
|
+
partnerId: string | null;
|
10
|
+
planId: string;
|
11
|
+
planName: string;
|
12
|
+
constructor(data?: Partial<SubscriptionCompanyEntity>);
|
13
|
+
}
|
@@ -0,0 +1,45 @@
|
|
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.SubscriptionCompanyEntity = void 0;
|
19
|
+
var subscription_base_entity_1 = require("../../subscription-base/entities/subscription-base.entity");
|
20
|
+
var SubscriptionCompanyEntity = /** @class */ (function (_super) {
|
21
|
+
__extends(SubscriptionCompanyEntity, _super);
|
22
|
+
// #endregion Properties (7)
|
23
|
+
// #region Constructors (1)
|
24
|
+
function SubscriptionCompanyEntity(data) {
|
25
|
+
var _this = _super.call(this, data) || this;
|
26
|
+
// #region Properties (7)
|
27
|
+
_this.appId = '';
|
28
|
+
_this.appName = '';
|
29
|
+
_this.company = new SubscriptionCompanyEntity();
|
30
|
+
_this.features = [];
|
31
|
+
_this.partnerId = '';
|
32
|
+
_this.planId = '';
|
33
|
+
_this.planName = '';
|
34
|
+
if (data) {
|
35
|
+
for (var key in data) {
|
36
|
+
if (data.hasOwnProperty(key) && key in _this) {
|
37
|
+
_this[key] = data[key];
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
return _this;
|
42
|
+
}
|
43
|
+
return SubscriptionCompanyEntity;
|
44
|
+
}(subscription_base_entity_1.SubscriptionBaseEntity));
|
45
|
+
exports.SubscriptionCompanyEntity = SubscriptionCompanyEntity;
|
@@ -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,11 @@
|
|
1
|
+
import { IFeature } from '../../feature';
|
2
|
+
import { ISubscriptionBase } from '../../subscription-base/interfaces/i-subscription-base';
|
3
|
+
export interface ISubscriptionCompany extends ISubscriptionBase {
|
4
|
+
appId: string;
|
5
|
+
appName: string;
|
6
|
+
company: ISubscriptionCompany;
|
7
|
+
features: IFeature[];
|
8
|
+
partnerId: string | null;
|
9
|
+
planId: string;
|
10
|
+
planName: string;
|
11
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubscriptionCustomerEntity = exports.SubscriptionCustomerCustomerEntity = void 0;
|
4
|
+
var subscription_customer_entity_1 = require("./subscription-customer.entity");
|
5
|
+
Object.defineProperty(exports, "SubscriptionCustomerCustomerEntity", { enumerable: true, get: function () { return subscription_customer_entity_1.SubscriptionCustomerCustomerEntity; } });
|
6
|
+
var subscription_entity_1 = require("./subscription.entity");
|
7
|
+
Object.defineProperty(exports, "SubscriptionCustomerEntity", { enumerable: true, get: function () { return subscription_entity_1.SubscriptionCustomerEntity; } });
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { ISubscriptionCustomerCustomer } from '../interfaces/i-subscription-customer';
|
2
|
+
export declare class SubscriptionCustomerCustomerEntity implements ISubscriptionCustomerCustomer {
|
3
|
+
doc: string | null;
|
4
|
+
docType: string | null;
|
5
|
+
id: string | null;
|
6
|
+
imageUrl: string | null;
|
7
|
+
name: string | null;
|
8
|
+
uid: string | null;
|
9
|
+
constructor(data?: Partial<SubscriptionCustomerCustomerEntity>);
|
10
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SubscriptionCustomerCustomerEntity = void 0;
|
4
|
+
var SubscriptionCustomerCustomerEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (6)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function SubscriptionCustomerCustomerEntity(data) {
|
8
|
+
// #region Properties (6)
|
9
|
+
this.doc = '';
|
10
|
+
this.docType = '';
|
11
|
+
this.id = '';
|
12
|
+
this.imageUrl = '';
|
13
|
+
this.name = '';
|
14
|
+
this.uid = '';
|
15
|
+
if (data) {
|
16
|
+
for (var key in data) {
|
17
|
+
if (data.hasOwnProperty(key) && key in this) {
|
18
|
+
this[key] = data[key];
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
return SubscriptionCustomerCustomerEntity;
|
24
|
+
}());
|
25
|
+
exports.SubscriptionCustomerCustomerEntity = SubscriptionCustomerCustomerEntity;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { SubscriptionBaseEntity } from '../../subscription-base';
|
2
|
+
import { ISubscriptionCustomer } from '../interfaces/i-subscription';
|
3
|
+
import { SubscriptionCustomerCustomerEntity } from './subscription-customer.entity';
|
4
|
+
export declare class SubscriptionCustomerEntity extends SubscriptionBaseEntity implements ISubscriptionCustomer {
|
5
|
+
customer: SubscriptionCustomerCustomerEntity;
|
6
|
+
constructor(data?: Partial<SubscriptionCustomerEntity>);
|
7
|
+
}
|
@@ -0,0 +1,40 @@
|
|
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.SubscriptionCustomerEntity = void 0;
|
19
|
+
var subscription_base_1 = require("../../subscription-base");
|
20
|
+
var subscription_customer_entity_1 = require("./subscription-customer.entity");
|
21
|
+
var SubscriptionCustomerEntity = /** @class */ (function (_super) {
|
22
|
+
__extends(SubscriptionCustomerEntity, _super);
|
23
|
+
// #endregion Properties (1)
|
24
|
+
// #region Constructors (1)
|
25
|
+
function SubscriptionCustomerEntity(data) {
|
26
|
+
var _this = _super.call(this, data) || this;
|
27
|
+
// #region Properties (1)
|
28
|
+
_this.customer = new subscription_customer_entity_1.SubscriptionCustomerCustomerEntity();
|
29
|
+
if (data) {
|
30
|
+
for (var key in data) {
|
31
|
+
if (data.hasOwnProperty(key) && key in _this) {
|
32
|
+
_this[key] = data[key];
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
return _this;
|
37
|
+
}
|
38
|
+
return SubscriptionCustomerEntity;
|
39
|
+
}(subscription_base_1.SubscriptionBaseEntity));
|
40
|
+
exports.SubscriptionCustomerEntity = SubscriptionCustomerEntity;
|
@@ -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);
|