cecon-interfaces 1.4.20 → 1.4.22
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/mobyo/company-settings/entities/company-settings.entity.mjs +19 -0
- package/dist/esm2022/mobyo/company-settings/entities/index.mjs +2 -1
- package/dist/esm2022/mobyo/company-settings/entities/wa-server.entity.mjs +5 -5
- package/dist/esm2022/mobyo/company-settings/interfaces/i-company-settings.mjs +2 -0
- package/dist/esm2022/mobyo/company-settings/interfaces/i-wa-server.mjs +1 -1
- package/dist/esm2022/mobyo/company-settings/interfaces/index.mjs +1 -1
- package/dist/esm2022/wa-server/enums/handler-message.enum.mjs +19 -0
- package/dist/esm2022/wa-server/enums/index.mjs +2 -1
- package/dist/fesm2022/cecon-interfaces.mjs +42 -5
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/mobyo/company-settings/entities/company-settings.entity.d.ts +9 -0
- package/dist/mobyo/company-settings/entities/company-settings.entity.js +23 -0
- package/dist/mobyo/company-settings/entities/index.d.ts +1 -0
- package/dist/mobyo/company-settings/entities/index.js +3 -1
- package/dist/mobyo/company-settings/entities/wa-server.entity.d.ts +2 -2
- package/dist/mobyo/company-settings/entities/wa-server.entity.js +4 -4
- package/dist/mobyo/company-settings/interfaces/i-company-settings.d.ts +7 -0
- package/dist/mobyo/company-settings/interfaces/i-company-settings.js +2 -0
- package/dist/mobyo/company-settings/interfaces/i-wa-server.d.ts +2 -2
- package/dist/mobyo/company-settings/interfaces/index.d.ts +1 -0
- package/dist/package.json +1 -1
- package/dist/wa-server/enums/handler-message.enum.d.ts +17 -0
- package/dist/wa-server/enums/handler-message.enum.js +21 -0
- package/dist/wa-server/enums/index.d.ts +1 -0
- package/dist/wa-server/enums/index.js +3 -1
- package/package.json +1 -1
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ICompanySettings } from '../interfaces';
|
2
|
+
import { CompanySettingsWaServerEntity } from './wa-server.entity';
|
3
|
+
export declare class CompanySettingsEntity implements ICompanySettings {
|
4
|
+
createdAt: Date;
|
5
|
+
id: string;
|
6
|
+
updatedAt: Date;
|
7
|
+
waServer: CompanySettingsWaServerEntity;
|
8
|
+
constructor(data?: ICompanySettings);
|
9
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CompanySettingsEntity = void 0;
|
4
|
+
var wa_server_entity_1 = require("./wa-server.entity");
|
5
|
+
var CompanySettingsEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (4)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function CompanySettingsEntity(data) {
|
9
|
+
// #region Properties (4)
|
10
|
+
this.createdAt = new Date();
|
11
|
+
this.id = '';
|
12
|
+
this.updatedAt = new Date();
|
13
|
+
this.waServer = new wa_server_entity_1.CompanySettingsWaServerEntity();
|
14
|
+
if (data) {
|
15
|
+
this.id = data.id || '';
|
16
|
+
this.createdAt = data.createdAt || new Date();
|
17
|
+
this.updatedAt = data.updatedAt || new Date();
|
18
|
+
this.waServer = new wa_server_entity_1.CompanySettingsWaServerEntity(data.waServer);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
return CompanySettingsEntity;
|
22
|
+
}());
|
23
|
+
exports.CompanySettingsEntity = CompanySettingsEntity;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CompanySettingsWaServerEntity = void 0;
|
3
|
+
exports.CompanySettingsWaServerEntity = exports.CompanySettingsEntity = void 0;
|
4
|
+
var company_settings_entity_1 = require("./company-settings.entity");
|
5
|
+
Object.defineProperty(exports, "CompanySettingsEntity", { enumerable: true, get: function () { return company_settings_entity_1.CompanySettingsEntity; } });
|
4
6
|
var wa_server_entity_1 = require("./wa-server.entity");
|
5
7
|
Object.defineProperty(exports, "CompanySettingsWaServerEntity", { enumerable: true, get: function () { return wa_server_entity_1.CompanySettingsWaServerEntity; } });
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ICompanySettingsWaServer } from '../interfaces';
|
2
2
|
export declare class CompanySettingsWaServerEntity implements ICompanySettingsWaServer {
|
3
|
-
deliveryMenuUrl: string;
|
4
|
-
indoorMenuUrl: string;
|
3
|
+
deliveryMenuUrl: string | null;
|
4
|
+
indoorMenuUrl: string | null;
|
5
5
|
instanceName: string;
|
6
6
|
serverId: string;
|
7
7
|
constructor(data?: ICompanySettingsWaServer);
|
@@ -6,15 +6,15 @@ var CompanySettingsWaServerEntity = /** @class */ (function () {
|
|
6
6
|
// #region Constructors (1)
|
7
7
|
function CompanySettingsWaServerEntity(data) {
|
8
8
|
// #region Properties (4)
|
9
|
-
this.deliveryMenuUrl =
|
10
|
-
this.indoorMenuUrl =
|
9
|
+
this.deliveryMenuUrl = null;
|
10
|
+
this.indoorMenuUrl = null;
|
11
11
|
this.instanceName = '';
|
12
12
|
this.serverId = '';
|
13
13
|
if (data) {
|
14
14
|
this.serverId = data.serverId || '';
|
15
15
|
this.instanceName = data.instanceName || '';
|
16
|
-
this.deliveryMenuUrl = data.deliveryMenuUrl ||
|
17
|
-
this.indoorMenuUrl = data.indoorMenuUrl ||
|
16
|
+
this.deliveryMenuUrl = data.deliveryMenuUrl || null;
|
17
|
+
this.indoorMenuUrl = data.indoorMenuUrl || null;
|
18
18
|
}
|
19
19
|
}
|
20
20
|
return CompanySettingsWaServerEntity;
|
package/dist/package.json
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare enum EWaServerHandlerMessage {
|
2
|
+
WELCOME = "WELCOME",
|
3
|
+
ORDER_DISPATCHED = "ORDER_DISPATCHED",
|
4
|
+
SET_PIX = "SET_PIX",
|
5
|
+
CONFIRM_PAYMENT_PIX = "CONFIRM_PAYMENT_PIX",
|
6
|
+
ORDER_CANCELLED = "ORDER_CANCELLED",
|
7
|
+
ORDER_DELIVERED = "ORDER_DELIVERED",
|
8
|
+
ORDER_READY_TO_PICKUP = "ORDER_READY_TO_PICKUP",
|
9
|
+
ORDER_PLACED = "ORDER_PLACED",
|
10
|
+
ORDER_CONFIRMED = "ORDER_CONFIRMED",
|
11
|
+
CREATED_COMPANY = "CREATED_COMPANY",
|
12
|
+
SUBSCRIPTION_CREATED = "SUBSCRIPTION_CREATED",
|
13
|
+
SUBSCRIPTION_CANCELLED = "SUBSCRIPTION_CANCELLED",
|
14
|
+
SUBSCRIPTION_RENEWED = "SUBSCRIPTION_RENEWED",
|
15
|
+
SUBSCRIPTION_EXPIRED = "SUBSCRIPTION_EXPIRED",
|
16
|
+
SUBSCRIPTION_SUSPENDED = "SUBSCRIPTION_SUSPENDED"
|
17
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EWaServerHandlerMessage = void 0;
|
4
|
+
var EWaServerHandlerMessage;
|
5
|
+
(function (EWaServerHandlerMessage) {
|
6
|
+
EWaServerHandlerMessage["WELCOME"] = "WELCOME";
|
7
|
+
EWaServerHandlerMessage["ORDER_DISPATCHED"] = "ORDER_DISPATCHED";
|
8
|
+
EWaServerHandlerMessage["SET_PIX"] = "SET_PIX";
|
9
|
+
EWaServerHandlerMessage["CONFIRM_PAYMENT_PIX"] = "CONFIRM_PAYMENT_PIX";
|
10
|
+
EWaServerHandlerMessage["ORDER_CANCELLED"] = "ORDER_CANCELLED";
|
11
|
+
EWaServerHandlerMessage["ORDER_DELIVERED"] = "ORDER_DELIVERED";
|
12
|
+
EWaServerHandlerMessage["ORDER_READY_TO_PICKUP"] = "ORDER_READY_TO_PICKUP";
|
13
|
+
EWaServerHandlerMessage["ORDER_PLACED"] = "ORDER_PLACED";
|
14
|
+
EWaServerHandlerMessage["ORDER_CONFIRMED"] = "ORDER_CONFIRMED";
|
15
|
+
EWaServerHandlerMessage["CREATED_COMPANY"] = "CREATED_COMPANY";
|
16
|
+
EWaServerHandlerMessage["SUBSCRIPTION_CREATED"] = "SUBSCRIPTION_CREATED";
|
17
|
+
EWaServerHandlerMessage["SUBSCRIPTION_CANCELLED"] = "SUBSCRIPTION_CANCELLED";
|
18
|
+
EWaServerHandlerMessage["SUBSCRIPTION_RENEWED"] = "SUBSCRIPTION_RENEWED";
|
19
|
+
EWaServerHandlerMessage["SUBSCRIPTION_EXPIRED"] = "SUBSCRIPTION_EXPIRED";
|
20
|
+
EWaServerHandlerMessage["SUBSCRIPTION_SUSPENDED"] = "SUBSCRIPTION_SUSPENDED";
|
21
|
+
})(EWaServerHandlerMessage || (exports.EWaServerHandlerMessage = EWaServerHandlerMessage = {}));
|
@@ -1,5 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EWaServerStatus = void 0;
|
3
|
+
exports.EWaServerStatus = exports.EWaServerHandlerMessage = void 0;
|
4
|
+
var handler_message_enum_1 = require("./handler-message.enum");
|
5
|
+
Object.defineProperty(exports, "EWaServerHandlerMessage", { enumerable: true, get: function () { return handler_message_enum_1.EWaServerHandlerMessage; } });
|
4
6
|
var status_enum_1 = require("./status.enum");
|
5
7
|
Object.defineProperty(exports, "EWaServerStatus", { enumerable: true, get: function () { return status_enum_1.EWaServerStatus; } });
|