easywork-common-lib 1.0.1256 → 1.0.1258
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/entities/group.entity.d.ts +0 -2
- package/dist/entities/group.entity.js +0 -6
- package/dist/entities/group.entity.js.map +1 -1
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.d.ts +2 -1
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js +9 -0
- package/dist/entities/helpers/sales/agent/connection/h_agent_connection.entity.js.map +1 -1
- package/dist/entities/index.d.ts +58 -56
- package/dist/entities/index.js +4 -2
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/messaging/whatsapp/group-whatsapp-number.entity.d.ts +18 -0
- package/dist/entities/messaging/whatsapp/group-whatsapp-number.entity.js +143 -0
- package/dist/entities/messaging/whatsapp/group-whatsapp-number.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/index.d.ts +9 -0
- package/dist/entities/messaging/whatsapp/index.js +26 -0
- package/dist/entities/messaging/whatsapp/index.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-conversation.entity.d.ts +33 -0
- package/dist/entities/messaging/whatsapp/whatsapp-conversation.entity.js +266 -0
- package/dist/entities/messaging/whatsapp/whatsapp-conversation.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message-cost.entity.d.ts +23 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message-cost.entity.js +145 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message-cost.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message.entity.d.ts +44 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message.entity.js +251 -0
- package/dist/entities/messaging/whatsapp/whatsapp-message.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider-configuration.entity.d.ts +22 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider-configuration.entity.js +144 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider-configuration.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider.entity.d.ts +24 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider.entity.js +99 -0
- package/dist/entities/messaging/whatsapp/whatsapp-provider.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-template.entity.d.ts +39 -0
- package/dist/entities/messaging/whatsapp/whatsapp-template.entity.js +122 -0
- package/dist/entities/messaging/whatsapp/whatsapp-template.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp-webhook-log.entity.d.ts +12 -0
- package/dist/entities/messaging/whatsapp/whatsapp-webhook-log.entity.js +106 -0
- package/dist/entities/messaging/whatsapp/whatsapp-webhook-log.entity.js.map +1 -0
- package/dist/entities/messaging/whatsapp/whatsapp.enum.d.ts +54 -0
- package/dist/entities/messaging/whatsapp/whatsapp.enum.js +67 -0
- package/dist/entities/messaging/whatsapp/whatsapp.enum.js.map +1 -0
- package/dist/entities/payments/banbajio-payment.entity.d.ts +26 -0
- package/dist/entities/payments/banbajio-payment.entity.js +92 -0
- package/dist/entities/payments/banbajio-payment.entity.js.map +1 -0
- package/dist/entities/payments/payment.entity.d.ts +58 -0
- package/dist/entities/payments/payment.entity.js +191 -0
- package/dist/entities/payments/payment.entity.js.map +1 -0
- package/dist/entities/payments/stripe-payment.entity.d.ts +50 -0
- package/dist/entities/payments/stripe-payment.entity.js +231 -0
- package/dist/entities/payments/stripe-payment.entity.js.map +1 -0
- package/dist/entities/subscriptions/subscription.entity.d.ts +2 -2
- package/dist/entities/subscriptions/subscription.entity.js +3 -3
- package/dist/entities/subscriptions/subscription.entity.js.map +1 -1
- package/dist/entities/tools/calendar/event-location.entity.d.ts +4 -0
- package/dist/entities/tools/calendar/event-location.entity.js +28 -0
- package/dist/entities/tools/calendar/event-location.entity.js.map +1 -0
- package/dist/entities/tools/calendar/index.d.ts +1 -0
- package/dist/entities/tools/calendar/index.js +1 -0
- package/dist/entities/tools/calendar/index.js.map +1 -1
- package/dist/entities/tools/task.entity.d.ts +13 -13
- package/dist/entities/tools/task.entity.js +82 -82
- package/dist/entities/tools/task.entity.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,6 @@ import { AgenteIntermediario } from './sales/agente-intermediario.entity';
|
|
|
5
5
|
import { Agent } from './sales';
|
|
6
6
|
import { Company } from './company.entity';
|
|
7
7
|
import { Subscription } from './subscriptions/subscription.entity';
|
|
8
|
-
import { PaymentHistory } from './subscriptions/payment-history.entity';
|
|
9
8
|
import { User } from './user.entity';
|
|
10
9
|
export declare class Group extends EntityBase {
|
|
11
10
|
name: string;
|
|
@@ -14,7 +13,6 @@ export declare class Group extends EntityBase {
|
|
|
14
13
|
userGroups: UserGroupStatus[];
|
|
15
14
|
courses: Course[];
|
|
16
15
|
company: Company;
|
|
17
|
-
paymentHistory: PaymentHistory;
|
|
18
16
|
subscription: Subscription;
|
|
19
17
|
agenteIntermediarios: AgenteIntermediario[];
|
|
20
18
|
subAgentes: Agent[];
|
|
@@ -19,7 +19,6 @@ const agente_intermediario_entity_1 = require("./sales/agente-intermediario.enti
|
|
|
19
19
|
const sales_1 = require("./sales");
|
|
20
20
|
const company_entity_1 = require("./company.entity");
|
|
21
21
|
const subscription_entity_1 = require("./subscriptions/subscription.entity");
|
|
22
|
-
const payment_history_entity_1 = require("./subscriptions/payment-history.entity");
|
|
23
22
|
const user_entity_1 = require("./user.entity");
|
|
24
23
|
let Group = class Group extends base_entity_1.EntityBase {
|
|
25
24
|
name;
|
|
@@ -28,7 +27,6 @@ let Group = class Group extends base_entity_1.EntityBase {
|
|
|
28
27
|
userGroups;
|
|
29
28
|
courses;
|
|
30
29
|
company;
|
|
31
|
-
paymentHistory;
|
|
32
30
|
subscription;
|
|
33
31
|
agenteIntermediarios;
|
|
34
32
|
subAgentes;
|
|
@@ -59,10 +57,6 @@ __decorate([
|
|
|
59
57
|
(0, typeorm_1.OneToOne)(() => company_entity_1.Company, company => company.group, { nullable: true }),
|
|
60
58
|
__metadata("design:type", company_entity_1.Company)
|
|
61
59
|
], Group.prototype, "company", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, typeorm_1.OneToMany)(() => payment_history_entity_1.PaymentHistory, paymentHistory => paymentHistory.group, { nullable: true }),
|
|
64
|
-
__metadata("design:type", payment_history_entity_1.PaymentHistory)
|
|
65
|
-
], Group.prototype, "paymentHistory", void 0);
|
|
66
60
|
__decorate([
|
|
67
61
|
(0, typeorm_1.OneToOne)(() => subscription_entity_1.Subscription, subscription => subscription.group, { nullable: true }),
|
|
68
62
|
__metadata("design:type", subscription_entity_1.Subscription)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.entity.js","sourceRoot":"","sources":["../../src/entities/group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAC5C,qCAA0E;AAC1E,gEAA4D;AAC5D,yEAA6D;AAC7D,iDAAwC;AACxC,qFAA0E;AAC1E,mCAAgC;AAChC,qDAA2C;AAC3C,6EAAmE;AACnE
|
|
1
|
+
{"version":3,"file":"group.entity.js","sourceRoot":"","sources":["../../src/entities/group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAC5C,qCAA0E;AAC1E,gEAA4D;AAC5D,yEAA6D;AAC7D,iDAAwC;AACxC,qFAA0E;AAC1E,mCAAgC;AAChC,qDAA2C;AAC3C,6EAAmE;AACnE,+CAAqC;AAG9B,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAGnC,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,KAAK,CAAS;IAGd,UAAU,CAAoB;IAG9B,OAAO,CAAW;IAGlB,OAAO,CAAU;IAGjB,YAAY,CAAe;IAG3B,oBAAoB,CAAwB;IAG5C,UAAU,CAAU;CACrB,CAAA;AA5BY,sBAAK;AAGhB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCACZ;AAGb;IADC,IAAA,gBAAM,GAAE;;oCACK;AAGd;IADC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;;oCAC9B;AAGd;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,0CAAe,EAAE,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC;;yCACjC;AAG9B;IADC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,qBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;;sCAChC;AAGlB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,wBAAO,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC7D,wBAAO;sCAAC;AAGjB;IADC,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kCAAY,EAAE,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACvE,kCAAY;2CAAC;AAG3B;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iDAAmB,EAAE,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC;;mDAC3C;AAG5C;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,aAAK,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;;yCAC3B;gBA3BT,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CA4BjB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Agent } from "../../../../sales";
|
|
2
2
|
import { AgentConnectionStage } from "../connection/h_agent_connection_stage.entity";
|
|
3
|
-
import { BaseEntitySimple } from "../../../../../common";
|
|
3
|
+
import { BaseEntitySimple, CertificateStatus } from "../../../../../common";
|
|
4
4
|
import { User } from "../../../../user.entity";
|
|
5
5
|
import { AgentSource } from "../h_agent_source.entity";
|
|
6
6
|
export declare class AgentConnection extends BaseEntitySimple {
|
|
@@ -13,6 +13,7 @@ export declare class AgentConnection extends BaseEntitySimple {
|
|
|
13
13
|
endDate: Date;
|
|
14
14
|
cnsfDate: Date;
|
|
15
15
|
closed: boolean;
|
|
16
|
+
status: CertificateStatus;
|
|
16
17
|
observationsStatus: string;
|
|
17
18
|
assignedBy: User;
|
|
18
19
|
developmentManager: User;
|
|
@@ -28,6 +28,7 @@ let AgentConnection = class AgentConnection extends common_1.BaseEntitySimple {
|
|
|
28
28
|
endDate;
|
|
29
29
|
cnsfDate;
|
|
30
30
|
closed;
|
|
31
|
+
status;
|
|
31
32
|
observationsStatus;
|
|
32
33
|
assignedBy;
|
|
33
34
|
developmentManager;
|
|
@@ -118,6 +119,14 @@ __decorate([
|
|
|
118
119
|
(0, typeorm_1.Column)({ default: false }),
|
|
119
120
|
__metadata("design:type", Boolean)
|
|
120
121
|
], AgentConnection.prototype, "closed", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({
|
|
124
|
+
type: "enum",
|
|
125
|
+
enum: common_1.CertificateStatus,
|
|
126
|
+
default: common_1.CertificateStatus.inProgress,
|
|
127
|
+
}),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], AgentConnection.prototype, "status", void 0);
|
|
121
130
|
__decorate([
|
|
122
131
|
(0, swagger_1.ApiProperty)({
|
|
123
132
|
type: String,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"h_agent_connection.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/helpers/sales/agent/connection/h_agent_connection.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,6CAA8C;AAC9C,6CAA0C;AAC1C,mGAAqF;AACrF,
|
|
1
|
+
{"version":3,"file":"h_agent_connection.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/helpers/sales/agent/connection/h_agent_connection.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,6CAA8C;AAC9C,6CAA0C;AAC1C,mGAAqF;AACrF,kDAA4E;AAC5E,yDAA+C;AAC/C,oEAAuD;AACvD,yDAA4C;AAGrC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,yBAAgB;IAQnD,OAAO,CAAS;IAQhB,sBAAsB,CAAS;IAQ/B,YAAY,CAAS;IAQrB,mBAAmB,CAAO;IAQ1B,gBAAgB,CAAO;IASvB,SAAS,CAAO;IAShB,OAAO,CAAO;IASd,QAAQ,CAAO;IASf,MAAM,CAAU;IAOhB,MAAM,CAAoB;IAQ1B,kBAAkB,CAAS;IAS3B,UAAU,CAAO;IAQjB,kBAAkB,CAAO;IAQzB,MAAM,CAAc;IAOb,KAAK,CAAQ;IAWb,oBAAoB,CAAuB;CACnD,CAAA;AAvIY,0CAAe;AAQ1B;IAPC,IAAA,2BAAO,GAAE;IACT,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,4BAA4B;QACzC,MAAM,EAAE,MAAM;KACf,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACT;AAQhB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,2CAA2C;QACxD,MAAM,EAAE,MAAM;KACf,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;+DACM;AAQ/B;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,sCAAsC;QACnD,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACN;AAQrB;IANC,IAAA,qBAAW,EAAC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C;IAC1E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,aAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE;QACpD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACY,aAAK;8CAAC;AAWb;IATN,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,sDAAoB;QAChC,WAAW,EAAE,wCAAwC;KACtD,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sDAAoB,EAAE;QACrC,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;8BAC2B,sDAAoB;6DAAC;0BAtIvC,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAuI3B"}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,56 +1,58 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
14
|
-
export * from
|
|
15
|
-
export * from
|
|
16
|
-
export * from
|
|
17
|
-
export * from
|
|
18
|
-
export * from
|
|
19
|
-
export * from
|
|
20
|
-
export * from
|
|
21
|
-
export * from
|
|
22
|
-
export * from
|
|
23
|
-
export * from
|
|
24
|
-
export * from
|
|
25
|
-
export * from
|
|
26
|
-
export * from
|
|
27
|
-
export * from
|
|
28
|
-
export * from
|
|
29
|
-
export * from
|
|
30
|
-
export * from
|
|
31
|
-
export * from
|
|
32
|
-
export * from
|
|
33
|
-
export * from
|
|
34
|
-
export * from
|
|
35
|
-
export * from
|
|
36
|
-
export * from
|
|
37
|
-
export * from
|
|
38
|
-
export * from
|
|
39
|
-
export * from
|
|
40
|
-
export * from
|
|
41
|
-
export * from
|
|
42
|
-
export * from
|
|
43
|
-
export * from
|
|
44
|
-
export * from
|
|
45
|
-
export * from
|
|
46
|
-
export * from
|
|
47
|
-
export * from
|
|
48
|
-
export * from
|
|
49
|
-
export * from
|
|
50
|
-
export * from
|
|
51
|
-
export * from
|
|
52
|
-
export * from
|
|
53
|
-
export * from
|
|
54
|
-
export * from
|
|
55
|
-
export * from
|
|
56
|
-
export * from
|
|
1
|
+
export * from './app_config/app-config.entity';
|
|
2
|
+
export * from './currency.entity';
|
|
3
|
+
export * from './drive';
|
|
4
|
+
export * from './easyapp/filter-view.entity';
|
|
5
|
+
export * from './email.entity';
|
|
6
|
+
export * from './group.entity';
|
|
7
|
+
export * from './group/group-collection-responsible.entity';
|
|
8
|
+
export * from './imap-config.entity';
|
|
9
|
+
export * from './login-history.entity';
|
|
10
|
+
export * from './meeting-comment.entity';
|
|
11
|
+
export * from './meeting.entity';
|
|
12
|
+
export * from './menu-permissions.entity';
|
|
13
|
+
export * from './notifications';
|
|
14
|
+
export * from './otp-log.entity';
|
|
15
|
+
export * from './permission.entity';
|
|
16
|
+
export * from './phone.entity';
|
|
17
|
+
export * from './policy';
|
|
18
|
+
export * from './profile.entity';
|
|
19
|
+
export * from './protocol.entity';
|
|
20
|
+
export * from './refresh-token.entity';
|
|
21
|
+
export * from './role.entity';
|
|
22
|
+
export * from './sales';
|
|
23
|
+
export * from './tag.entity';
|
|
24
|
+
export * from './user-invitations.entity';
|
|
25
|
+
export * from './user.entity';
|
|
26
|
+
export * from './user-group-status.entity';
|
|
27
|
+
export * from './user-from-cognito.entity';
|
|
28
|
+
export * from './company.entity';
|
|
29
|
+
export * from './user-special-role.entity';
|
|
30
|
+
export * from './capacitation';
|
|
31
|
+
export * from './tools';
|
|
32
|
+
export * from './project_management';
|
|
33
|
+
export * from './tools/mail/email-signature.entity';
|
|
34
|
+
export * from './tools/mail/mailbox-user-access.entity';
|
|
35
|
+
export * from './tools/mail/mailbox.entity';
|
|
36
|
+
export * from './tools/mail/mail.entity';
|
|
37
|
+
export * from './tools/mail/mail-gmail.entity';
|
|
38
|
+
export * from './tools/mail/mail-crm-queue-distribution.entity';
|
|
39
|
+
export * from './tools/mail/mail-crm-queue-entities-assigned.entity';
|
|
40
|
+
export * from './tools/mail/mail-crm-queue-status.entity';
|
|
41
|
+
export * from './all-activities.entity';
|
|
42
|
+
export * from './thirdparty/google-webhooks-config.entity';
|
|
43
|
+
export * from './thirdparty/google-gmail-watch-record.entity';
|
|
44
|
+
export * from './thirdparty/oauth.entity';
|
|
45
|
+
export * from './thirdparty/diio-integration.entity';
|
|
46
|
+
export * from './messaging/whatsapp';
|
|
47
|
+
export * from './subscriptions/plan.entity';
|
|
48
|
+
export * from './subscriptions/feature.entity';
|
|
49
|
+
export * from './subscriptions/plan-feature.entity';
|
|
50
|
+
export * from './subscriptions/subscription.entity';
|
|
51
|
+
export * from './payments/payment.entity';
|
|
52
|
+
export * from './payments/stripe-payment.entity';
|
|
53
|
+
export * from './payments/banbajio-payment.entity';
|
|
54
|
+
export * from './helpers';
|
|
55
|
+
export * from './audit.entity';
|
|
56
|
+
export * from './role-audit-log.entity';
|
|
57
|
+
export * from './user-change-log.entity';
|
|
58
|
+
export * from './subgroup.entity';
|
package/dist/entities/index.js
CHANGED
|
@@ -59,12 +59,14 @@ __exportStar(require("./thirdparty/google-webhooks-config.entity"), exports);
|
|
|
59
59
|
__exportStar(require("./thirdparty/google-gmail-watch-record.entity"), exports);
|
|
60
60
|
__exportStar(require("./thirdparty/oauth.entity"), exports);
|
|
61
61
|
__exportStar(require("./thirdparty/diio-integration.entity"), exports);
|
|
62
|
-
__exportStar(require("./
|
|
62
|
+
__exportStar(require("./messaging/whatsapp"), exports);
|
|
63
63
|
__exportStar(require("./subscriptions/plan.entity"), exports);
|
|
64
64
|
__exportStar(require("./subscriptions/feature.entity"), exports);
|
|
65
65
|
__exportStar(require("./subscriptions/plan-feature.entity"), exports);
|
|
66
66
|
__exportStar(require("./subscriptions/subscription.entity"), exports);
|
|
67
|
-
__exportStar(require("./
|
|
67
|
+
__exportStar(require("./payments/payment.entity"), exports);
|
|
68
|
+
__exportStar(require("./payments/stripe-payment.entity"), exports);
|
|
69
|
+
__exportStar(require("./payments/banbajio-payment.entity"), exports);
|
|
68
70
|
__exportStar(require("./helpers"), exports);
|
|
69
71
|
__exportStar(require("./audit.entity"), exports);
|
|
70
72
|
__exportStar(require("./role-audit-log.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,oDAAkC;AAClC,0CAAwB;AACxB,+DAA6C;AAC7C,iDAA+B;AAC/B,iDAA+B;AAC/B,8EAA4D;AAC5D,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,iDAA+B;AAC/B,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,4DAA0C;AAC1C,gDAA8B;AAC9B,6DAA2C;AAC3C,6DAA2C;AAC3C,mDAAiC;AACjC,6DAA2C;AAG3C,iDAA+B;AAG/B,0CAAwB;AAGxB,uDAAqC;AAGrC,sEAAoD;AACpD,0EAAwD;AACxD,8DAA4C;AAC5C,2DAAyC;AACzC,iEAA+C;AAC/C,kFAAgE;AAChE,uFAAqE;AACrE,4EAA0D;AAG1D,0DAAwC;AAGxC,6EAA2D;AAC3D,gFAA8D;AAC9D,4DAA0C;AAC1C,uEAAqD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,oDAAkC;AAClC,0CAAwB;AACxB,+DAA6C;AAC7C,iDAA+B;AAC/B,iDAA+B;AAC/B,8EAA4D;AAC5D,uDAAqC;AACrC,yDAAuC;AACvC,2DAAyC;AACzC,mDAAiC;AACjC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,iDAA+B;AAC/B,2CAAyB;AACzB,mDAAiC;AACjC,oDAAkC;AAClC,yDAAuC;AACvC,gDAA8B;AAC9B,0CAAwB;AACxB,+CAA6B;AAC7B,4DAA0C;AAC1C,gDAA8B;AAC9B,6DAA2C;AAC3C,6DAA2C;AAC3C,mDAAiC;AACjC,6DAA2C;AAG3C,iDAA+B;AAG/B,0CAAwB;AAGxB,uDAAqC;AAGrC,sEAAoD;AACpD,0EAAwD;AACxD,8DAA4C;AAC5C,2DAAyC;AACzC,iEAA+C;AAC/C,kFAAgE;AAChE,uFAAqE;AACrE,4EAA0D;AAG1D,0DAAwC;AAGxC,6EAA2D;AAC3D,gFAA8D;AAC9D,4DAA0C;AAC1C,uEAAqD;AAGrD,uDAAqC;AAGrC,8DAA4C;AAC5C,iEAA+C;AAC/C,sEAAoD;AACpD,sEAAoD;AAGpD,4DAA0C;AAC1C,mEAAiD;AACjD,qEAAmD;AAGnD,4CAA0B;AAG1B,iDAA+B;AAC/B,0DAAwC;AAGxC,2DAAyC;AAGzC,oDAAkC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EntityBase } from "../../../common/database/base.entity";
|
|
2
|
+
import { Group } from "../../group.entity";
|
|
3
|
+
import { WhatsAppProviderConfiguration } from "./whatsapp-provider-configuration.entity";
|
|
4
|
+
import { WhatsAppConversation } from "./whatsapp-conversation.entity";
|
|
5
|
+
export declare class GroupWhatsAppNumber extends EntityBase {
|
|
6
|
+
groupId: string;
|
|
7
|
+
group: Group;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
providerConfigurationId: string;
|
|
10
|
+
providerConfiguration: WhatsAppProviderConfiguration;
|
|
11
|
+
isPrimary: boolean;
|
|
12
|
+
purpose?: string;
|
|
13
|
+
displayName?: string;
|
|
14
|
+
fallbackConfigurationId?: string;
|
|
15
|
+
fallbackConfiguration?: WhatsAppProviderConfiguration;
|
|
16
|
+
metadata?: Record<string, any>;
|
|
17
|
+
conversations: WhatsAppConversation[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GroupWhatsAppNumber = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const base_entity_1 = require("../../../common/database/base.entity");
|
|
17
|
+
const group_entity_1 = require("../../group.entity");
|
|
18
|
+
const whatsapp_provider_configuration_entity_1 = require("./whatsapp-provider-configuration.entity");
|
|
19
|
+
const whatsapp_conversation_entity_1 = require("./whatsapp-conversation.entity");
|
|
20
|
+
let GroupWhatsAppNumber = class GroupWhatsAppNumber extends base_entity_1.EntityBase {
|
|
21
|
+
groupId;
|
|
22
|
+
group;
|
|
23
|
+
phoneNumber;
|
|
24
|
+
providerConfigurationId;
|
|
25
|
+
providerConfiguration;
|
|
26
|
+
isPrimary;
|
|
27
|
+
purpose;
|
|
28
|
+
displayName;
|
|
29
|
+
fallbackConfigurationId;
|
|
30
|
+
fallbackConfiguration;
|
|
31
|
+
metadata;
|
|
32
|
+
conversations;
|
|
33
|
+
};
|
|
34
|
+
exports.GroupWhatsAppNumber = GroupWhatsAppNumber;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
description: "ID del grupo al que pertenece este número",
|
|
38
|
+
}),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, typeorm_1.Index)(),
|
|
41
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], GroupWhatsAppNumber.prototype, "groupId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.ManyToOne)(() => group_entity_1.Group, { onDelete: "CASCADE" }),
|
|
46
|
+
(0, typeorm_1.JoinColumn)({ name: "groupId" }),
|
|
47
|
+
__metadata("design:type", group_entity_1.Group)
|
|
48
|
+
], GroupWhatsAppNumber.prototype, "group", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({
|
|
51
|
+
description: "Número de teléfono en formato E.164",
|
|
52
|
+
example: "+5215512345678",
|
|
53
|
+
}),
|
|
54
|
+
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, class_validator_1.MaxLength)(50),
|
|
56
|
+
(0, typeorm_1.Index)(),
|
|
57
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 50 }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], GroupWhatsAppNumber.prototype, "phoneNumber", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)({
|
|
62
|
+
description: "ID de la configuración del proveedor asociada",
|
|
63
|
+
}),
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, typeorm_1.Index)(),
|
|
66
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], GroupWhatsAppNumber.prototype, "providerConfigurationId", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.ManyToOne)(() => whatsapp_provider_configuration_entity_1.WhatsAppProviderConfiguration, (config) => config.groupNumbers, {
|
|
71
|
+
onDelete: "CASCADE",
|
|
72
|
+
}),
|
|
73
|
+
(0, typeorm_1.JoinColumn)({ name: "providerConfigurationId" }),
|
|
74
|
+
__metadata("design:type", whatsapp_provider_configuration_entity_1.WhatsAppProviderConfiguration)
|
|
75
|
+
], GroupWhatsAppNumber.prototype, "providerConfiguration", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
description: "Indica si este es el número principal del grupo",
|
|
79
|
+
default: false,
|
|
80
|
+
}),
|
|
81
|
+
(0, class_validator_1.IsBoolean)(),
|
|
82
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
83
|
+
__metadata("design:type", Boolean)
|
|
84
|
+
], GroupWhatsAppNumber.prototype, "isPrimary", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiProperty)({
|
|
87
|
+
description: "Propósito del número (sales, support, general, etc)",
|
|
88
|
+
example: "sales",
|
|
89
|
+
required: false,
|
|
90
|
+
}),
|
|
91
|
+
(0, class_validator_1.IsString)(),
|
|
92
|
+
(0, class_validator_1.MaxLength)(100),
|
|
93
|
+
(0, class_validator_1.IsOptional)(),
|
|
94
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], GroupWhatsAppNumber.prototype, "purpose", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, swagger_1.ApiProperty)({
|
|
99
|
+
description: "Nombre para mostrar del número",
|
|
100
|
+
example: "Ventas - Número Principal",
|
|
101
|
+
required: false,
|
|
102
|
+
}),
|
|
103
|
+
(0, class_validator_1.IsString)(),
|
|
104
|
+
(0, class_validator_1.MaxLength)(255),
|
|
105
|
+
(0, class_validator_1.IsOptional)(),
|
|
106
|
+
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], GroupWhatsAppNumber.prototype, "displayName", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, swagger_1.ApiProperty)({
|
|
111
|
+
description: "ID de la configuración de fallback si el proveedor principal falla",
|
|
112
|
+
required: false,
|
|
113
|
+
}),
|
|
114
|
+
(0, class_validator_1.IsString)(),
|
|
115
|
+
(0, class_validator_1.IsOptional)(),
|
|
116
|
+
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
117
|
+
__metadata("design:type", String)
|
|
118
|
+
], GroupWhatsAppNumber.prototype, "fallbackConfigurationId", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, typeorm_1.ManyToOne)(() => whatsapp_provider_configuration_entity_1.WhatsAppProviderConfiguration, { onDelete: "SET NULL", nullable: true }),
|
|
121
|
+
(0, typeorm_1.JoinColumn)({ name: "fallbackConfigurationId" }),
|
|
122
|
+
__metadata("design:type", whatsapp_provider_configuration_entity_1.WhatsAppProviderConfiguration)
|
|
123
|
+
], GroupWhatsAppNumber.prototype, "fallbackConfiguration", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, swagger_1.ApiProperty)({
|
|
126
|
+
description: "Metadata adicional del número",
|
|
127
|
+
type: "object",
|
|
128
|
+
required: false,
|
|
129
|
+
}),
|
|
130
|
+
(0, class_validator_1.IsJSON)(),
|
|
131
|
+
(0, class_validator_1.IsOptional)(),
|
|
132
|
+
(0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], GroupWhatsAppNumber.prototype, "metadata", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, typeorm_1.OneToMany)(() => whatsapp_conversation_entity_1.WhatsAppConversation, (conversation) => conversation.groupNumber),
|
|
137
|
+
__metadata("design:type", Array)
|
|
138
|
+
], GroupWhatsAppNumber.prototype, "conversations", void 0);
|
|
139
|
+
exports.GroupWhatsAppNumber = GroupWhatsAppNumber = __decorate([
|
|
140
|
+
(0, typeorm_1.Entity)("group_whatsapp_numbers"),
|
|
141
|
+
(0, typeorm_1.Index)(["groupId", "phoneNumber"], { unique: true })
|
|
142
|
+
], GroupWhatsAppNumber);
|
|
143
|
+
//# sourceMappingURL=group-whatsapp-number.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group-whatsapp-number.entity.js","sourceRoot":"","sources":["../../../../src/entities/messaging/whatsapp/group-whatsapp-number.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkF;AAClF,6CAA8C;AAC9C,qDAAqF;AACrF,sEAAkE;AAClE,qDAA2C;AAC3C,qGAAyF;AACzF,iFAAsE;AAS/D,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,wBAAU;IAOjD,OAAO,CAAS;IAIhB,KAAK,CAAQ;IAUb,WAAW,CAAS;IAQpB,uBAAuB,CAAS;IAMhC,qBAAqB,CAAgC;IAQrD,SAAS,CAAU;IAWnB,OAAO,CAAU;IAWjB,WAAW,CAAU;IASrB,uBAAuB,CAAU;IAIjC,qBAAqB,CAAiC;IAUtD,QAAQ,CAAuB;IAG/B,aAAa,CAAyB;CACvC,CAAA;AA5FY,kDAAmB;AAO9B;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,2CAA2C;KACzD,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,eAAK,GAAE;IACP,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDACT;AAIhB;IAFC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EA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,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,WAAW,CAAC;;0DAC5C;8BA3F3B,mBAAmB;IAF/B,IAAA,gBAAM,EAAC,wBAAwB,CAAC;IAChC,IAAA,eAAK,EAAC,CAAC,SAAS,EAAE,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACvC,mBAAmB,CA4F/B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./whatsapp.enum";
|
|
2
|
+
export * from "./whatsapp-provider.entity";
|
|
3
|
+
export * from "./whatsapp-provider-configuration.entity";
|
|
4
|
+
export * from "./group-whatsapp-number.entity";
|
|
5
|
+
export * from "./whatsapp-conversation.entity";
|
|
6
|
+
export * from "./whatsapp-message.entity";
|
|
7
|
+
export * from "./whatsapp-message-cost.entity";
|
|
8
|
+
export * from "./whatsapp-webhook-log.entity";
|
|
9
|
+
export * from "./whatsapp-template.entity";
|
|
@@ -0,0 +1,26 @@
|
|
|
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("./whatsapp.enum"), exports);
|
|
18
|
+
__exportStar(require("./whatsapp-provider.entity"), exports);
|
|
19
|
+
__exportStar(require("./whatsapp-provider-configuration.entity"), exports);
|
|
20
|
+
__exportStar(require("./group-whatsapp-number.entity"), exports);
|
|
21
|
+
__exportStar(require("./whatsapp-conversation.entity"), exports);
|
|
22
|
+
__exportStar(require("./whatsapp-message.entity"), exports);
|
|
23
|
+
__exportStar(require("./whatsapp-message-cost.entity"), exports);
|
|
24
|
+
__exportStar(require("./whatsapp-webhook-log.entity"), exports);
|
|
25
|
+
__exportStar(require("./whatsapp-template.entity"), exports);
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/messaging/whatsapp/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,kDAAgC;AAChC,6DAA2C;AAC3C,2EAAyD;AACzD,iEAA+C;AAC/C,iEAA+C;AAC/C,4DAA0C;AAC1C,iEAA+C;AAC/C,gEAA8C;AAC9C,6DAA2C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EntityBase } from "../../../common/database/base.entity";
|
|
2
|
+
import { Group } from "../../group.entity";
|
|
3
|
+
import { Contact } from "../../sales/contact.entity";
|
|
4
|
+
import { Lead } from "../../sales/lead.entity";
|
|
5
|
+
import { User } from "../../user.entity";
|
|
6
|
+
import { WhatsAppConversationStatus } from "./whatsapp.enum";
|
|
7
|
+
import { GroupWhatsAppNumber } from "./group-whatsapp-number.entity";
|
|
8
|
+
import { WhatsAppMessage } from "./whatsapp-message.entity";
|
|
9
|
+
export declare class WhatsAppConversation extends EntityBase {
|
|
10
|
+
groupId: string;
|
|
11
|
+
group: Group;
|
|
12
|
+
phoneNumber: string;
|
|
13
|
+
groupWhatsAppNumberId: string;
|
|
14
|
+
groupNumber: GroupWhatsAppNumber;
|
|
15
|
+
externalConversationId?: string;
|
|
16
|
+
contactId?: string;
|
|
17
|
+
contact?: Contact;
|
|
18
|
+
leadId?: string;
|
|
19
|
+
lead?: Lead;
|
|
20
|
+
assignedToUserId?: string;
|
|
21
|
+
assignedToUser?: User;
|
|
22
|
+
assignedAt?: Date;
|
|
23
|
+
status: WhatsAppConversationStatus;
|
|
24
|
+
sessionActive: boolean;
|
|
25
|
+
sessionExpiresAt?: Date;
|
|
26
|
+
unreadCount: number;
|
|
27
|
+
lastMessageAt?: Date;
|
|
28
|
+
lastMessagePreview?: string;
|
|
29
|
+
contactName?: string;
|
|
30
|
+
contactMetadata?: Record<string, any>;
|
|
31
|
+
tags?: string[];
|
|
32
|
+
messages: WhatsAppMessage[];
|
|
33
|
+
}
|