cecon-interfaces 1.0.15 → 1.0.17
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 +39 -0
- package/dist/company/entities/company.entity.js +51 -0
- package/dist/company/entities/index.d.ts +1 -0
- package/dist/company/entities/index.js +6 -0
- package/dist/company/enums/index.d.ts +2 -0
- package/dist/company/enums/index.js +8 -0
- package/dist/company/index.d.ts +3 -3
- package/dist/company/index.js +17 -6
- package/dist/company/interfaces/i-company.d.ts +1 -0
- package/dist/company/interfaces/index.d.ts +1 -0
- package/dist/device/entities/device.entity.d.ts +19 -0
- package/dist/device/entities/device.entity.js +35 -0
- package/dist/device/entities/index.d.ts +3 -0
- package/dist/device/entities/index.js +10 -0
- package/dist/device/entities/metadata.entity.d.ts +6 -0
- package/dist/device/entities/metadata.entity.js +21 -0
- package/dist/device/entities/natigo.entity.d.ts +8 -0
- package/dist/device/entities/natigo.entity.js +23 -0
- package/dist/device/enums/index.d.ts +1 -0
- package/dist/device/enums/index.js +6 -0
- package/dist/device/index.d.ts +3 -4
- package/dist/device/index.js +17 -4
- package/dist/device/interfaces/index.d.ts +3 -0
- package/dist/device/interfaces/index.js +3 -0
- package/dist/esm2022/company/entities/company.entity.mjs +47 -0
- package/dist/esm2022/company/entities/index.mjs +3 -0
- package/dist/esm2022/company/enums/index.mjs +4 -0
- package/dist/esm2022/company/index.mjs +4 -4
- package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
- package/dist/esm2022/company/interfaces/index.mjs +2 -0
- package/dist/esm2022/device/entities/device.entity.mjs +31 -0
- package/dist/esm2022/device/entities/index.mjs +5 -0
- package/dist/esm2022/device/entities/metadata.entity.mjs +17 -0
- package/dist/esm2022/device/entities/natigo.entity.mjs +19 -0
- package/dist/esm2022/device/enums/index.mjs +3 -0
- package/dist/esm2022/device/index.mjs +4 -3
- package/dist/esm2022/device/interfaces/index.mjs +3 -0
- package/dist/esm2022/general/entities/address.entity.mjs +24 -0
- package/dist/esm2022/general/entities/coords.entity.mjs +14 -0
- package/dist/esm2022/general/entities/delivery-area.entity.mjs +23 -0
- package/dist/esm2022/general/entities/dellivery-area-fixed.entity.mjs +20 -0
- package/dist/esm2022/general/entities/index.mjs +13 -0
- package/dist/esm2022/general/entities/messager-channel.entity.mjs +18 -0
- package/dist/esm2022/general/entities/mobyo-apiconfig.entity.mjs +21 -0
- package/dist/esm2022/general/entities/origin.entity.mjs +22 -0
- package/dist/esm2022/general/entities/payment-method.entity.mjs +31 -0
- package/dist/esm2022/general/entities/payment-provider-agent.entity.mjs +17 -0
- package/dist/esm2022/general/entities/payment-provider.entity.mjs +29 -0
- package/dist/esm2022/general/entities/payment-token-data.entity.mjs +22 -0
- package/dist/esm2022/general/entities/payment-token.entity.mjs +21 -0
- package/dist/esm2022/general/enums/index.mjs +7 -0
- package/dist/esm2022/general/enums/payment-type.enum.mjs +2 -1
- package/dist/esm2022/general/index.mjs +4 -7
- package/dist/esm2022/general/interfaces/i-address.mjs +1 -1
- package/dist/esm2022/general/interfaces/{i-mobyo-server-api.mjs → i-mobyo-api-config.mjs} +1 -1
- package/dist/esm2022/general/interfaces/i-payment-provider.mjs +1 -1
- package/dist/esm2022/general/interfaces/i-payment-token-data.mjs +3 -0
- package/dist/esm2022/general/interfaces/i-payment-token.mjs +3 -0
- package/dist/esm2022/general/interfaces/index.mjs +3 -0
- package/dist/esm2022/index.mjs +2 -2
- package/dist/esm2022/order/entities/index.mjs +20 -0
- package/dist/esm2022/order/entities/order-additional-fees.entity.mjs +17 -0
- package/dist/esm2022/order/entities/order-benefits-sponsor-ship.entity.mjs +17 -0
- package/dist/esm2022/order/entities/order-benefits.entity.mjs +21 -0
- package/dist/esm2022/order/entities/order-cancellation.entity.mjs +18 -0
- package/dist/esm2022/order/entities/order-customer-phone.entity.mjs +19 -0
- package/dist/esm2022/order/entities/order-customer.entity.mjs +23 -0
- package/dist/esm2022/order/entities/order-item-composition.entity.mjs +21 -0
- package/dist/esm2022/order/entities/order-item-option.entity.mjs +30 -0
- package/dist/esm2022/order/entities/order-item.entity.mjs +36 -0
- package/dist/esm2022/order/entities/order-payment-card.entity.mjs +16 -0
- package/dist/esm2022/order/entities/order-payment-cash.entity.mjs +16 -0
- package/dist/esm2022/order/entities/order-payment-method.entity.mjs +27 -0
- package/dist/esm2022/order/entities/order-payment-pix.entity.mjs +17 -0
- package/dist/esm2022/order/entities/order-payment-wallet.entity.mjs +16 -0
- package/dist/esm2022/order/entities/order-payment.entity.mjs +18 -0
- package/dist/esm2022/order/entities/order-scale-item.entity.mjs +17 -0
- package/dist/esm2022/order/entities/order-scale-price.entity.mjs +17 -0
- package/dist/esm2022/order/entities/order-total.entity.mjs +20 -0
- package/dist/esm2022/order/entities/order.entity.mjs +34 -0
- package/dist/esm2022/order/enums/index.mjs +3 -0
- package/dist/esm2022/{general/enums/order-satus.enum.mjs → order/enums/order-status.enum.mjs} +1 -1
- package/dist/esm2022/order/index.mjs +4 -0
- package/dist/esm2022/order/interfaces/i-order-additional-fee.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-benefits-sponsor-ship.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-benefits.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-cancellation.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-customer-phone.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-customer.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-item-composition.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-item-option.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-item.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment-card.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment-cash.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment-method.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment-pix.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment-wallet.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-payment.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-scale-item.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-scale-price.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order-total.mjs +2 -0
- package/dist/esm2022/order/interfaces/i-order.mjs +2 -0
- package/dist/esm2022/order/interfaces/index.mjs +2 -0
- package/dist/esm2022/purchases/entities/app-info.entity.mjs +18 -0
- package/dist/esm2022/purchases/entities/index.mjs +3 -0
- package/dist/esm2022/purchases/entities/purchase.entity.mjs +23 -0
- package/dist/esm2022/purchases/index.mjs +3 -3
- package/dist/esm2022/purchases/interfaces/i-purchase.mjs +1 -1
- package/dist/esm2022/purchases/interfaces/index.mjs +2 -0
- package/dist/fesm2022/cecon-interfaces.mjs +877 -31
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/general/entities/address.entity.d.ts +12 -0
- package/dist/general/entities/address.entity.js +28 -0
- package/dist/general/entities/coords.entity.d.ts +5 -0
- package/dist/general/entities/coords.entity.js +18 -0
- package/dist/general/entities/delivery-area.entity.d.ts +12 -0
- package/dist/general/entities/delivery-area.entity.js +27 -0
- package/dist/general/entities/dellivery-area-fixed.entity.d.ts +8 -0
- package/dist/general/entities/dellivery-area-fixed.entity.js +24 -0
- package/dist/general/entities/index.d.ts +12 -0
- package/dist/general/entities/index.js +27 -0
- package/dist/general/entities/messager-channel.entity.d.ts +6 -0
- package/dist/general/entities/messager-channel.entity.js +22 -0
- package/dist/general/entities/mobyo-apiconfig.entity.d.ts +9 -0
- package/dist/general/entities/mobyo-apiconfig.entity.js +25 -0
- package/dist/general/entities/origin.entity.d.ts +10 -0
- package/dist/general/entities/origin.entity.js +26 -0
- package/dist/general/entities/payment-method.entity.d.ts +19 -0
- package/dist/general/entities/payment-method.entity.js +35 -0
- package/dist/general/entities/payment-provider-agent.entity.d.ts +5 -0
- package/dist/general/entities/payment-provider-agent.entity.js +21 -0
- package/dist/general/entities/payment-provider.entity.d.ts +18 -0
- package/dist/general/entities/payment-provider.entity.js +33 -0
- package/dist/general/entities/payment-token-data.entity.d.ts +10 -0
- package/dist/general/entities/payment-token-data.entity.js +26 -0
- package/dist/general/entities/payment-token.entity.d.ts +9 -0
- package/dist/general/entities/payment-token.entity.js +25 -0
- package/dist/general/enums/index.d.ts +6 -0
- package/dist/general/enums/index.js +15 -0
- package/dist/general/enums/payment-type.enum.d.ts +1 -0
- package/dist/general/enums/payment-type.enum.js +1 -0
- package/dist/general/index.d.ts +3 -17
- package/dist/general/index.js +17 -12
- package/dist/general/interfaces/i-address.d.ts +2 -0
- package/dist/general/interfaces/i-payment-provider.d.ts +1 -1
- package/dist/general/interfaces/{i-payment-tokens.d.ts → i-payment-token.d.ts} +1 -1
- package/dist/general/interfaces/index.d.ts +12 -0
- package/dist/general/interfaces/index.js +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/order/entities/index.d.ts +19 -0
- package/dist/order/entities/index.js +41 -0
- package/dist/order/entities/order-additional-fees.entity.d.ts +5 -0
- package/dist/order/entities/order-additional-fees.entity.js +21 -0
- package/dist/order/entities/order-benefits-sponsor-ship.entity.d.ts +5 -0
- package/dist/order/entities/order-benefits-sponsor-ship.entity.js +21 -0
- package/dist/order/entities/order-benefits.entity.d.ts +10 -0
- package/dist/order/entities/order-benefits.entity.js +25 -0
- package/dist/order/entities/order-cancellation.entity.d.ts +6 -0
- package/dist/order/entities/order-cancellation.entity.js +22 -0
- package/dist/order/entities/order-customer-phone.entity.d.ts +7 -0
- package/dist/order/entities/order-customer-phone.entity.js +23 -0
- package/dist/order/entities/order-customer.entity.d.ts +11 -0
- package/dist/order/entities/order-customer.entity.js +27 -0
- package/dist/order/entities/order-item-composition.entity.d.ts +9 -0
- package/dist/order/entities/order-item-composition.entity.js +25 -0
- package/dist/order/entities/order-item-option.entity.d.ts +18 -0
- package/dist/order/entities/order-item-option.entity.js +34 -0
- package/dist/order/entities/order-item.entity.d.ts +26 -0
- package/dist/order/entities/order-item.entity.js +40 -0
- package/dist/order/entities/order-payment-card.entity.d.ts +4 -0
- package/dist/order/entities/order-payment-card.entity.js +20 -0
- package/dist/order/entities/order-payment-cash.entity.d.ts +4 -0
- package/dist/order/entities/order-payment-cash.entity.js +20 -0
- package/dist/order/entities/order-payment-method.entity.d.ts +19 -0
- package/dist/order/entities/order-payment-method.entity.js +31 -0
- package/dist/order/entities/order-payment-pix.entity.d.ts +5 -0
- package/dist/order/entities/order-payment-pix.entity.js +21 -0
- package/dist/order/entities/order-payment-wallet.entity.d.ts +4 -0
- package/dist/order/entities/order-payment-wallet.entity.js +20 -0
- package/dist/order/entities/order-payment.entity.d.ts +7 -0
- package/dist/order/entities/order-payment.entity.js +22 -0
- package/dist/order/entities/order-scale-item.entity.d.ts +5 -0
- package/dist/order/entities/order-scale-item.entity.js +21 -0
- package/dist/order/entities/order-scale-price.entity.d.ts +6 -0
- package/dist/order/entities/order-scale-price.entity.js +21 -0
- package/dist/order/entities/order-total.entity.d.ts +8 -0
- package/dist/order/entities/order-total.entity.js +24 -0
- package/dist/order/entities/order.entity.d.ts +27 -0
- package/dist/order/entities/order.entity.js +38 -0
- package/dist/order/enums/index.d.ts +1 -0
- package/dist/order/enums/index.js +6 -0
- package/dist/order/index.d.ts +3 -0
- package/dist/order/index.js +19 -0
- package/dist/order/interfaces/i-order-additional-fee.d.ts +4 -0
- package/dist/order/interfaces/i-order-additional-fee.js +2 -0
- package/dist/order/interfaces/i-order-benefits-sponsor-ship.d.ts +4 -0
- package/dist/order/interfaces/i-order-benefits-sponsor-ship.js +2 -0
- package/dist/order/interfaces/i-order-benefits.d.ts +9 -0
- package/dist/order/interfaces/i-order-benefits.js +2 -0
- package/dist/order/interfaces/i-order-cancellation.d.ts +5 -0
- package/dist/order/interfaces/i-order-cancellation.js +2 -0
- package/dist/order/interfaces/i-order-customer-phone.d.ts +6 -0
- package/dist/order/interfaces/i-order-customer-phone.js +2 -0
- package/dist/order/interfaces/i-order-customer.d.ts +10 -0
- package/dist/order/interfaces/i-order-customer.js +2 -0
- package/dist/order/interfaces/i-order-item-composition.d.ts +8 -0
- package/dist/order/interfaces/i-order-item-composition.js +2 -0
- package/dist/order/interfaces/i-order-item-option.d.ts +17 -0
- package/dist/order/interfaces/i-order-item-option.js +2 -0
- package/dist/order/interfaces/i-order-item.d.ts +25 -0
- package/dist/order/interfaces/i-order-item.js +2 -0
- package/dist/order/interfaces/i-order-payment-card.d.ts +3 -0
- package/dist/order/interfaces/i-order-payment-card.js +2 -0
- package/dist/order/interfaces/i-order-payment-cash.d.ts +3 -0
- package/dist/order/interfaces/i-order-payment-cash.js +2 -0
- package/dist/order/interfaces/i-order-payment-method.d.ts +18 -0
- package/dist/order/interfaces/i-order-payment-method.js +2 -0
- package/dist/order/interfaces/i-order-payment-pix.d.ts +4 -0
- package/dist/order/interfaces/i-order-payment-pix.js +2 -0
- package/dist/order/interfaces/i-order-payment-wallet.d.ts +3 -0
- package/dist/order/interfaces/i-order-payment-wallet.js +2 -0
- package/dist/order/interfaces/i-order-payment.d.ts +6 -0
- package/dist/order/interfaces/i-order-payment.js +2 -0
- package/dist/order/interfaces/i-order-scale-item.d.ts +4 -0
- package/dist/order/interfaces/i-order-scale-item.js +2 -0
- package/dist/order/interfaces/i-order-scale-price.d.ts +5 -0
- package/dist/order/interfaces/i-order-scale-price.js +2 -0
- package/dist/order/interfaces/i-order-total.d.ts +12 -0
- package/dist/order/interfaces/i-order-total.js +2 -0
- package/dist/order/interfaces/i-order.d.ts +26 -0
- package/dist/order/interfaces/i-order.js +2 -0
- package/dist/order/interfaces/index.d.ts +19 -0
- package/dist/order/interfaces/index.js +2 -0
- package/dist/package.json +2 -4
- package/dist/purchases/entities/app-info.entity.d.ts +6 -0
- package/dist/purchases/entities/app-info.entity.js +22 -0
- package/dist/purchases/entities/index.d.ts +2 -0
- package/dist/purchases/entities/index.js +7 -0
- package/dist/purchases/entities/purchase.entity.d.ts +10 -0
- package/dist/purchases/entities/purchase.entity.js +44 -0
- package/dist/purchases/index.d.ts +2 -3
- package/dist/purchases/index.js +16 -1
- package/dist/purchases/interfaces/i-purchase.d.ts +7 -15
- package/dist/purchases/interfaces/index.d.ts +2 -0
- package/dist/purchases/interfaces/index.js +2 -0
- package/package.json +2 -4
- package/tsconfig.json +3 -3
- package/dist/esm2022/general/interfaces/i-payment-tokens-data.mjs +0 -3
- package/dist/esm2022/general/interfaces/i-payment-tokens.mjs +0 -3
- package/dist/esm2022/purchases/interfaces/i-payment-details.mjs +0 -2
- package/dist/purchases/interfaces/i-payment-details.d.ts +0 -17
- /package/dist/{general/interfaces/i-mobyo-server-api.js → company/interfaces/index.js} +0 -0
- /package/dist/general/interfaces/{i-mobyo-server-api.d.ts → i-mobyo-api-config.d.ts} +0 -0
- /package/dist/{purchases/interfaces/i-payment-details.js → general/interfaces/i-mobyo-api-config.js} +0 -0
- /package/dist/general/interfaces/{i-payment-tokens-data.d.ts → i-payment-token-data.d.ts} +0 -0
- /package/dist/general/interfaces/{i-payment-tokens-data.js → i-payment-token-data.js} +0 -0
- /package/dist/general/interfaces/{i-payment-tokens.js → i-payment-token.js} +0 -0
- /package/dist/{general/enums/order-satus.enum.d.ts → order/enums/order-status.enum.d.ts} +0 -0
- /package/dist/{general/enums/order-satus.enum.js → order/enums/order-status.enum.js} +0 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
import { DocTypeEnum } from '../../general';
|
2
|
+
import { AddressEntity } from '../../general/entities/address.entity';
|
3
|
+
import { DeliveryAreaEntity } from '../../general/entities/delivery-area.entity';
|
4
|
+
import { DeliveryAreaFixedEntity } from '../../general/entities/dellivery-area-fixed.entity';
|
5
|
+
import { MessagerChannelEntity } from '../../general/entities/messager-channel.entity';
|
6
|
+
import { MobyoApiConfigEntity } from '../../general/entities/mobyo-apiconfig.entity';
|
7
|
+
import { OriginEntity } from '../../general/entities/origin.entity';
|
8
|
+
import { PaymentMethodEntity } from '../../general/entities/payment-method.entity';
|
9
|
+
import { PaymentProviderEntity } from '../../general/entities/payment-provider.entity';
|
10
|
+
export declare class CompanyEntity {
|
11
|
+
active: boolean;
|
12
|
+
address: AddressEntity;
|
13
|
+
bgImageURL?: string;
|
14
|
+
config: MobyoApiConfigEntity;
|
15
|
+
containerId: string;
|
16
|
+
createdAt: number;
|
17
|
+
deliveryArea: DeliveryAreaEntity[];
|
18
|
+
deliveryAreaFixed?: DeliveryAreaFixedEntity | null;
|
19
|
+
doc: string;
|
20
|
+
docType: DocTypeEnum;
|
21
|
+
email: string;
|
22
|
+
fullName: string;
|
23
|
+
id: string;
|
24
|
+
imageURL?: string;
|
25
|
+
internationalCode: string;
|
26
|
+
logoURL?: string;
|
27
|
+
messagerChannels: MessagerChannelEntity[];
|
28
|
+
name: string;
|
29
|
+
origin: OriginEntity;
|
30
|
+
paymentProvider: PaymentProviderEntity;
|
31
|
+
paymentsMethods: PaymentMethodEntity[];
|
32
|
+
phoneNumber: string;
|
33
|
+
pubsubTopic: string;
|
34
|
+
sandbox: boolean;
|
35
|
+
tags: string[];
|
36
|
+
updatedAt: number;
|
37
|
+
version: string;
|
38
|
+
constructor(data?: Partial<CompanyEntity>);
|
39
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CompanyEntity = void 0;
|
4
|
+
var general_1 = require("../../general");
|
5
|
+
var address_entity_1 = require("../../general/entities/address.entity");
|
6
|
+
var mobyo_apiconfig_entity_1 = require("../../general/entities/mobyo-apiconfig.entity");
|
7
|
+
var origin_entity_1 = require("../../general/entities/origin.entity");
|
8
|
+
var payment_provider_entity_1 = require("../../general/entities/payment-provider.entity");
|
9
|
+
var CompanyEntity = /** @class */ (function () {
|
10
|
+
// #endregion Properties (26)
|
11
|
+
// #region Constructors (1)
|
12
|
+
function CompanyEntity(data) {
|
13
|
+
// #region Properties (26)
|
14
|
+
this.active = false;
|
15
|
+
this.address = new address_entity_1.AddressEntity();
|
16
|
+
this.bgImageURL = '';
|
17
|
+
this.config = new mobyo_apiconfig_entity_1.MobyoApiConfigEntity();
|
18
|
+
this.containerId = '';
|
19
|
+
this.createdAt = Date.now();
|
20
|
+
this.deliveryArea = [];
|
21
|
+
this.deliveryAreaFixed = null;
|
22
|
+
this.doc = '';
|
23
|
+
this.docType = general_1.DocTypeEnum.CNPJ;
|
24
|
+
this.email = '';
|
25
|
+
this.fullName = '';
|
26
|
+
this.id = '';
|
27
|
+
this.imageURL = '';
|
28
|
+
this.internationalCode = '+55';
|
29
|
+
this.logoURL = '';
|
30
|
+
this.messagerChannels = [];
|
31
|
+
this.name = '';
|
32
|
+
this.origin = new origin_entity_1.OriginEntity();
|
33
|
+
this.paymentProvider = new payment_provider_entity_1.PaymentProviderEntity();
|
34
|
+
this.paymentsMethods = [];
|
35
|
+
this.phoneNumber = '';
|
36
|
+
this.pubsubTopic = '';
|
37
|
+
this.sandbox = false;
|
38
|
+
this.tags = [];
|
39
|
+
this.updatedAt = 0;
|
40
|
+
this.version = '1.0.0';
|
41
|
+
if (data) {
|
42
|
+
for (var key in data) {
|
43
|
+
if (data.hasOwnProperty(key) && key in this) {
|
44
|
+
this[key] = data[key];
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
return CompanyEntity;
|
50
|
+
}());
|
51
|
+
exports.CompanyEntity = CompanyEntity;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { CompanyEntity } from './company.entity';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
// index.ts
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.CompanyEntity = void 0;
|
5
|
+
var company_entity_1 = require("./company.entity");
|
6
|
+
Object.defineProperty(exports, "CompanyEntity", { enumerable: true, get: function () { return company_entity_1.CompanyEntity; } });
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
// index.ts
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.CompanyMessageTypeEnum = exports.CompanyKeysEnum = void 0;
|
5
|
+
var keys_enum_1 = require("./keys.enum");
|
6
|
+
Object.defineProperty(exports, "CompanyKeysEnum", { enumerable: true, get: function () { return keys_enum_1.CompanyKeysEnum; } });
|
7
|
+
var message_type_enum_1 = require("./message-type.enum");
|
8
|
+
Object.defineProperty(exports, "CompanyMessageTypeEnum", { enumerable: true, get: function () { return message_type_enum_1.CompanyMessageTypeEnum; } });
|
package/dist/company/index.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export
|
2
|
-
export
|
3
|
-
export
|
1
|
+
export * from './entities';
|
2
|
+
export * from './enums';
|
3
|
+
export * from './interfaces';
|
package/dist/company/index.js
CHANGED
@@ -1,8 +1,19 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
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
|
+
};
|
3
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
var message_type_enum_1 = require("./enums/message-type.enum");
|
8
|
-
Object.defineProperty(exports, "CompanyMessageTypeEnum", { enumerable: true, get: function () { return message_type_enum_1.CompanyMessageTypeEnum; } });
|
17
|
+
__exportStar(require("./entities"), exports);
|
18
|
+
__exportStar(require("./enums"), exports);
|
19
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ICompany } from './i-company';
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { DeviceModeEnum } from '../enums/device-mode.enum';
|
2
|
+
import { IDevice } from '../interfaces/i-device';
|
3
|
+
import { MetadataEntity } from './metadata.entity';
|
4
|
+
export declare class DeviceEntity implements IDevice {
|
5
|
+
active: boolean;
|
6
|
+
companyId: string;
|
7
|
+
containerId: string;
|
8
|
+
createdAt: number;
|
9
|
+
deviceId: string;
|
10
|
+
id: string;
|
11
|
+
key: string;
|
12
|
+
lastAccess: number;
|
13
|
+
metadata: MetadataEntity;
|
14
|
+
mode: DeviceModeEnum;
|
15
|
+
name: string;
|
16
|
+
topicSubscriptions: string[];
|
17
|
+
updatedAt: number;
|
18
|
+
constructor(data?: Partial<DeviceEntity>);
|
19
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeviceEntity = void 0;
|
4
|
+
var device_mode_enum_1 = require("../enums/device-mode.enum");
|
5
|
+
var metadata_entity_1 = require("./metadata.entity");
|
6
|
+
var DeviceEntity = /** @class */ (function () {
|
7
|
+
// #endregion Properties (13)
|
8
|
+
// #region Constructors (1)
|
9
|
+
function DeviceEntity(data) {
|
10
|
+
// #region Properties (13)
|
11
|
+
this.active = false;
|
12
|
+
this.companyId = '';
|
13
|
+
this.containerId = '';
|
14
|
+
this.createdAt = 0;
|
15
|
+
this.deviceId = '';
|
16
|
+
this.id = '';
|
17
|
+
this.key = '';
|
18
|
+
this.lastAccess = 0;
|
19
|
+
// Supondo que INatiGo tenha propriedades que você queira documentar
|
20
|
+
this.metadata = new metadata_entity_1.MetadataEntity();
|
21
|
+
this.mode = device_mode_enum_1.DeviceModeEnum.natigo;
|
22
|
+
this.name = '';
|
23
|
+
this.topicSubscriptions = [];
|
24
|
+
this.updatedAt = 0;
|
25
|
+
if (data) {
|
26
|
+
for (var key in data) {
|
27
|
+
if (data.hasOwnProperty(key) && key in this) {
|
28
|
+
this[key] = data[key];
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
return DeviceEntity;
|
34
|
+
}());
|
35
|
+
exports.DeviceEntity = DeviceEntity;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
// index.ts
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.NatiGoEntity = exports.MetadataEntity = exports.DeviceEntity = void 0;
|
5
|
+
var device_entity_1 = require("./device.entity");
|
6
|
+
Object.defineProperty(exports, "DeviceEntity", { enumerable: true, get: function () { return device_entity_1.DeviceEntity; } });
|
7
|
+
var metadata_entity_1 = require("./metadata.entity");
|
8
|
+
Object.defineProperty(exports, "MetadataEntity", { enumerable: true, get: function () { return metadata_entity_1.MetadataEntity; } });
|
9
|
+
var natigo_entity_1 = require("./natigo.entity");
|
10
|
+
Object.defineProperty(exports, "NatiGoEntity", { enumerable: true, get: function () { return natigo_entity_1.NatiGoEntity; } });
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MetadataEntity = void 0;
|
4
|
+
var natigo_entity_1 = require("./natigo.entity");
|
5
|
+
var MetadataEntity = /** @class */ (function () {
|
6
|
+
// #endregion Properties (1)
|
7
|
+
// #region Constructors (1)
|
8
|
+
function MetadataEntity(data) {
|
9
|
+
// #region Properties (1)
|
10
|
+
this.natigo = new natigo_entity_1.NatiGoEntity();
|
11
|
+
if (data) {
|
12
|
+
for (var key in data) {
|
13
|
+
if (data.hasOwnProperty(key) && key in this) {
|
14
|
+
this[key] = data[key];
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
return MetadataEntity;
|
20
|
+
}());
|
21
|
+
exports.MetadataEntity = MetadataEntity;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NatiGoEntity = void 0;
|
4
|
+
var NatiGoEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (4)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function NatiGoEntity(data) {
|
8
|
+
// #region Properties (4)
|
9
|
+
this.isForAdultsOnly = false;
|
10
|
+
this.logoUrl = '';
|
11
|
+
this.openLockRequired = true;
|
12
|
+
this.siteDescription = '';
|
13
|
+
if (data) {
|
14
|
+
for (var key in data) {
|
15
|
+
if (data.hasOwnProperty(key) && key in this) {
|
16
|
+
this[key] = data[key];
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
return NatiGoEntity;
|
22
|
+
}());
|
23
|
+
exports.NatiGoEntity = NatiGoEntity;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { DeviceModeEnum } from './device-mode.enum';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
// index.ts
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
exports.DeviceModeEnum = void 0;
|
5
|
+
var device_mode_enum_1 = require("./device-mode.enum");
|
6
|
+
Object.defineProperty(exports, "DeviceModeEnum", { enumerable: true, get: function () { return device_mode_enum_1.DeviceModeEnum; } });
|
package/dist/device/index.d.ts
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
export
|
2
|
-
export
|
3
|
-
export
|
4
|
-
export { INatigo } from './interfaces/i-natigo';
|
1
|
+
export * from './entities';
|
2
|
+
export * from './enums';
|
3
|
+
export * from './interfaces';
|
package/dist/device/index.js
CHANGED
@@ -1,6 +1,19 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
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
|
+
};
|
3
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
-
exports
|
5
|
-
|
6
|
-
|
17
|
+
__exportStar(require("./entities"), exports);
|
18
|
+
__exportStar(require("./enums"), exports);
|
19
|
+
__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { DocTypeEnum } from '../../general';
|
2
|
+
import { AddressEntity } from '../../general/entities/address.entity';
|
3
|
+
import { MobyoApiConfigEntity } from '../../general/entities/mobyo-apiconfig.entity';
|
4
|
+
import { OriginEntity } from '../../general/entities/origin.entity';
|
5
|
+
import { PaymentProviderEntity } from '../../general/entities/payment-provider.entity';
|
6
|
+
export class CompanyEntity {
|
7
|
+
// #region Properties (26)
|
8
|
+
active = false;
|
9
|
+
address = new AddressEntity();
|
10
|
+
bgImageURL = '';
|
11
|
+
config = new MobyoApiConfigEntity();
|
12
|
+
containerId = '';
|
13
|
+
createdAt = Date.now();
|
14
|
+
deliveryArea = [];
|
15
|
+
deliveryAreaFixed = null;
|
16
|
+
doc = '';
|
17
|
+
docType = DocTypeEnum.CNPJ;
|
18
|
+
email = '';
|
19
|
+
fullName = '';
|
20
|
+
id = '';
|
21
|
+
imageURL = '';
|
22
|
+
internationalCode = '+55';
|
23
|
+
logoURL = '';
|
24
|
+
messagerChannels = [];
|
25
|
+
name = '';
|
26
|
+
origin = new OriginEntity();
|
27
|
+
paymentProvider = new PaymentProviderEntity();
|
28
|
+
paymentsMethods = [];
|
29
|
+
phoneNumber = '';
|
30
|
+
pubsubTopic = '';
|
31
|
+
sandbox = false;
|
32
|
+
tags = [];
|
33
|
+
updatedAt = 0;
|
34
|
+
version = '1.0.0';
|
35
|
+
// #endregion Properties (26)
|
36
|
+
// #region Constructors (1)
|
37
|
+
constructor(data) {
|
38
|
+
if (data) {
|
39
|
+
for (let key in data) {
|
40
|
+
if (data.hasOwnProperty(key) && key in this) {
|
41
|
+
this[key] = data[key];
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGFueS5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcGFueS9lbnRpdGllcy9jb21wYW55LmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzVDLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUl0RSxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwrQ0FBK0MsQ0FBQztBQUNyRixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sc0NBQXNDLENBQUM7QUFFcEUsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sZ0RBQWdELENBQUM7QUFFdkYsTUFBTSxPQUFPLGFBQWE7SUFDdEIsMEJBQTBCO0lBRW5CLE1BQU0sR0FBWSxLQUFLLENBQUM7SUFDeEIsT0FBTyxHQUFrQixJQUFJLGFBQWEsRUFBRSxDQUFDO0lBQ3BELFVBQVUsR0FBWSxFQUFFLENBQUM7SUFDbEIsTUFBTSxHQUF5QixJQUFJLG9CQUFvQixFQUFFLENBQUM7SUFDMUQsV0FBVyxHQUFXLEVBQUUsQ0F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Z2VyQ2hhbm5lbEVudGl0eVtdID0gW107XG4gICAgcHVibGljIG5hbWU6IHN0cmluZyA9ICcnO1xuICAgIHB1YmxpYyBvcmlnaW46IE9yaWdpbkVudGl0eSA9IG5ldyBPcmlnaW5FbnRpdHkoKTtcbiAgICBwdWJsaWMgcGF5bWVudFByb3ZpZGVyOiBQYXltZW50UHJvdmlkZXJFbnRpdHkgPSBuZXcgUGF5bWVudFByb3ZpZGVyRW50aXR5KCk7XG4gICAgcHVibGljIHBheW1lbnRzTWV0aG9kczogUGF5bWVudE1ldGhvZEVudGl0eVtdID0gW107XG4gICAgcHVibGljIHBob25lTnVtYmVyOiBzdHJpbmcgPSAnJztcbiAgICBwdWJsaWMgcHVic3ViVG9waWM6IHN0cmluZyA9ICcnO1xuICAgIHB1YmxpYyBzYW5kYm94OiBib29sZWFuID0gZmFsc2U7XG4gICAgcHVibGljIHRhZ3M6IHN0cmluZ1tdID0gW107XG4gICAgcHVibGljIHVwZGF0ZWRBdDogbnVtYmVyID0gMDtcbiAgICBwdWJsaWMgdmVyc2lvbjogc3RyaW5nID0gJzEuMC4wJztcblxuICAgIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMjYpXG5cbiAgICAvLyAjcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcblxuICAgIGNvbnN0cnVjdG9yKGRhdGE/OiBQYXJ0aWFsPENvbXBhbnlFbnRpdHk+KSB7XG4gICAgICAgIGlmIChkYXRhKSB7XG4gICAgICAgICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xuICAgICAgICAgICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcbiAgICAgICAgICAgICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxufVxuIl19
|
@@ -0,0 +1,3 @@
|
|
1
|
+
// index.ts
|
2
|
+
export { CompanyEntity } from './company.entity';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcGFueS9lbnRpdGllcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxXQUFXO0FBRVgsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gaW5kZXgudHNcblxuZXhwb3J0IHsgQ29tcGFueUVudGl0eSB9IGZyb20gJy4vY29tcGFueS5lbnRpdHknO1xuXG5cbiJdfQ==
|
@@ -0,0 +1,4 @@
|
|
1
|
+
// index.ts
|
2
|
+
export { CompanyKeysEnum } from './keys.enum';
|
3
|
+
export { CompanyMessageTypeEnum } from './message-type.enum';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcGFueS9lbnVtcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxXQUFXO0FBRVgsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUM5QyxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8vIGluZGV4LnRzXG5cbmV4cG9ydCB7IENvbXBhbnlLZXlzRW51bSB9IGZyb20gJy4va2V5cy5lbnVtJztcbmV4cG9ydCB7IENvbXBhbnlNZXNzYWdlVHlwZUVudW0gfSBmcm9tICcuL21lc3NhZ2UtdHlwZS5lbnVtJztcblxuXG5cbiJdfQ==
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
export
|
3
|
-
export
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
1
|
+
export * from './entities';
|
2
|
+
export * from './enums';
|
3
|
+
export * from './interfaces';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tcGFueS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFlBQVksQ0FBQztBQUMzQixjQUFjLFNBQVMsQ0FBQztBQUN4QixjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZW50aXRpZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9lbnVtcyc7XG5leHBvcnQgKiBmcm9tICcuL2ludGVyZmFjZXMnO1xuXG4iXX0=
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1jb21wYW55LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbXBhbnkvaW50ZXJmYWNlcy9pLWNvbXBhbnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERvY1R5cGVFbnVtLCBJQWRkcmVzcywgSURlbGl2ZXJ5QXJlYSwgSURlbGl2ZXJ5QXJlYUZpeGVkLCBJTWVzc2FnZXJDaGFubmVsLCBJTW9ieW9BcGlDb25maWcsIElPcmlnaW4sIElQYXltZW50TWV0aG9kLCBJUGF5bWVudFByb3ZpZGVyIH0gZnJvbSAnLi4vLi4vZ2VuZXJhbC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VxyXG59XHJcbiJdfQ==
|
@@ -0,0 +1,2 @@
|
|
1
|
+
export {};
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcGFueS9pbnRlcmZhY2VzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBJQ29tcGFueSB9IGZyb20gJy4vaS1jb21wYW55JztcbiJdfQ==
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { DeviceModeEnum } from '../enums/device-mode.enum';
|
2
|
+
import { MetadataEntity } from './metadata.entity';
|
3
|
+
export class DeviceEntity {
|
4
|
+
// #region Properties (13)
|
5
|
+
active = false;
|
6
|
+
companyId = '';
|
7
|
+
containerId = '';
|
8
|
+
createdAt = 0;
|
9
|
+
deviceId = '';
|
10
|
+
id = '';
|
11
|
+
key = '';
|
12
|
+
lastAccess = 0;
|
13
|
+
// Supondo que INatiGo tenha propriedades que você queira documentar
|
14
|
+
metadata = new MetadataEntity();
|
15
|
+
mode = DeviceModeEnum.natigo;
|
16
|
+
name = '';
|
17
|
+
topicSubscriptions = [];
|
18
|
+
updatedAt = 0;
|
19
|
+
// #endregion Properties (13)
|
20
|
+
// #region Constructors (1)
|
21
|
+
constructor(data) {
|
22
|
+
if (data) {
|
23
|
+
for (let key in data) {
|
24
|
+
if (data.hasOwnProperty(key) && key in this) {
|
25
|
+
this[key] = data[key];
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGV2aWNlLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9kZXZpY2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bmdbXSA9IFtdO1xuICAgIHB1YmxpYyB1cGRhdGVkQXQ6IG51bWJlciA9IDA7XG5cbiAgICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDEzKVxuXG4gICAgLy8gI3JlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG5cbiAgICBjb25zdHJ1Y3RvcihkYXRhPzogUGFydGlhbDxEZXZpY2VFbnRpdHk+KSB7XG4gICAgICAgIGlmIChkYXRhKSB7XG4gICAgICAgICAgICBmb3IgKGxldCBrZXkgaW4gZGF0YSkge1xuICAgICAgICAgICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcbiAgICAgICAgICAgICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8vICNlbmRyZWdpb24gQ29uc3RydWN0b3JzICgxKVxufVxuIl19
|
@@ -0,0 +1,5 @@
|
|
1
|
+
// index.ts
|
2
|
+
export { DeviceEntity } from './device.entity';
|
3
|
+
export { MetadataEntity } from './metadata.entity';
|
4
|
+
export { NatiGoEntity } from './natigo.entity';
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZGV2aWNlL2VudGl0aWVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFdBQVc7QUFFWCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ25ELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8vIGluZGV4LnRzXG5cbmV4cG9ydCB7IERldmljZUVudGl0eSB9IGZyb20gJy4vZGV2aWNlLmVudGl0eSc7XG5leHBvcnQgeyBNZXRhZGF0YUVudGl0eSB9IGZyb20gJy4vbWV0YWRhdGEuZW50aXR5JztcbmV4cG9ydCB7IE5hdGlHb0VudGl0eSB9IGZyb20gJy4vbmF0aWdvLmVudGl0eSc7XG5cblxuXG4iXX0=
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { NatiGoEntity } from './natigo.entity';
|
2
|
+
export class MetadataEntity {
|
3
|
+
// #region Properties (1)
|
4
|
+
natigo = new NatiGoEntity();
|
5
|
+
// #endregion Properties (1)
|
6
|
+
// #region Constructors (1)
|
7
|
+
constructor(data) {
|
8
|
+
if (data) {
|
9
|
+
for (let key in data) {
|
10
|
+
if (data.hasOwnProperty(key) && key in this) {
|
11
|
+
this[key] = data[key];
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0YWRhdGEuZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2RldmljZS9lbnRpdGllcy9tZXRhZGF0YS5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRS9DLE1BQU0sT0FBTyxjQUFjO0lBQ3ZCLHlCQUF5QjtJQUVsQixNQUFNLEdBQWlCLElBQUksWUFBWSxFQUFFLENBQUM7SUFFakQsNEJBQTRCO0lBRTVCLDJCQUEyQjtJQUUzQixZQUFZLElBQThCO1FBQ3RDLElBQUksSUFBSSxFQUFFO1lBQ04sS0FBSyxJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUU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Z2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export class NatiGoEntity {
|
2
|
+
// #region Properties (4)
|
3
|
+
isForAdultsOnly = false;
|
4
|
+
logoUrl = '';
|
5
|
+
openLockRequired = true;
|
6
|
+
siteDescription = '';
|
7
|
+
// #endregion Properties (4)
|
8
|
+
// #region Constructors (1)
|
9
|
+
constructor(data) {
|
10
|
+
if (data) {
|
11
|
+
for (let key in data) {
|
12
|
+
if (data.hasOwnProperty(key) && key in this) {
|
13
|
+
this[key] = data[key];
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aWdvLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9kZXZpY2UvZW50aXRpZXMvbmF0aWdvLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sWUFBWTtJQUNyQix5QkFBeUI7SUFFbEIsZUFBZSxHQUFZLEtBQUssQ0FBQztJQUNqQyxPQUFPLEdBQVcsRUFBRSxDQUFDO0lBQ3JCLGdCQUFnQixHQUFZLElBQUksQ0FBQztJQUNqQyxlQUFlLEdBQVcsRUFBRSxDQUFDO0lBRXBDLDRCQUE0QjtJQUU1QiwyQkFBMkI7SUFFM0IsWUFBWSxJQUE0QjtRQUNwQyxJQUFJLElBQUksRUFBRTtZQUNOLEtBQUssSUFBSSxHQUFHLElBQUksSUFBSSxFQUFFO2dCQUNsQixJQUFJLElBQUksQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLElBQUksR0FBRyxJQUFJLElBQUksRUFBRTtvQkFDeEMsSUFBWSxDQUFDLEdBQUcsQ0FBQyxHQUFJLElBQVksQ0FBQyxHQUFHLENBQUMsQ0FBQztpQkFDM0M7YUFDSjtTQUNKO0lBQ0wsQ0FBQztDQUdKIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSU5hdGlnbyB9IGZyb20gJy4uL2ludGVyZmFjZXMvaS1uYXRpZ28nO1xuXG5leHBvcnQgY2xhc3MgTmF0aUdvRW50aXR5IGltcGxlbWVudHMgSU5hdGlnbyB7XG4gICAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICg0KVxuXG4gICAgcHVibGljIGlzRm9yQWR1bHRzT25seTogYm9vbGVhbiA9IGZhbHNlO1xuICAgIHB1YmxpYyBsb2dvVXJsOiBzdHJpbmcgPSAnJztcbiAgICBwdWJsaWMgb3BlbkxvY2tSZXF1aXJlZDogYm9vbGVhbiA9IHRydWU7XG4gICAgcHVibGljIHNpdGVEZXNjcmlwdGlvbjogc3RyaW5nID0gJyc7XG5cbiAgICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDQpXG5cbiAgICAvLyAjcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcblxuICAgIGNvbnN0cnVjdG9yKGRhdGE/OiBQYXJ0aWFsPE5hdGlHb0VudGl0eT4pIHtcbiAgICAgICAgaWYgKGRhdGEpIHtcbiAgICAgICAgICAgIGZvciAobGV0IGtleSBpbiBkYXRhKSB7XG4gICAgICAgICAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xuICAgICAgICAgICAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
|
@@ -0,0 +1,3 @@
|
|
1
|
+
// index.ts
|
2
|
+
export { DeviceModeEnum } from './device-mode.enum';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZGV2aWNlL2VudW1zL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLFdBQVc7QUFFWCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBpbmRleC50c1xuXG5leHBvcnQgeyBEZXZpY2VNb2RlRW51bSB9IGZyb20gJy4vZGV2aWNlLW1vZGUuZW51bSc7XG5cbiJdfQ==
|
@@ -1,3 +1,4 @@
|
|
1
|
-
|
2
|
-
export
|
3
|
-
|
1
|
+
export * from './entities';
|
2
|
+
export * from './enums';
|
3
|
+
export * from './interfaces';
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZGV2aWNlL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsU0FBUyxDQUFDO0FBQ3hCLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9lbnRpdGllcyc7XG5leHBvcnQgKiBmcm9tICcuL2VudW1zJztcbmV4cG9ydCAqIGZyb20gJy4vaW50ZXJmYWNlcyc7XG4iXX0=
|
@@ -0,0 +1,3 @@
|
|
1
|
+
// index.ts
|
2
|
+
export {};
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZGV2aWNlL2ludGVyZmFjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsV0FBVyIsInNvdXJjZXNDb250ZW50IjpbIi8vIGluZGV4LnRzXG5cbmV4cG9ydCB7IElEZXZpY2UgfSBmcm9tICcuL2ktZGV2aWNlJztcbmV4cG9ydCB7IElEZXZpY2VNZXRhZGF0YSB9IGZyb20gJy4vaS1kZXZpY2UtbWV0YWRhdGEnO1xuZXhwb3J0IHsgSU5hdGlnbyB9IGZyb20gJy4vaS1uYXRpZ28nO1xuXG5cbiJdfQ==
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { CoordsEntity } from './coords.entity';
|
2
|
+
export class AddressEntity {
|
3
|
+
// #region Properties (7)
|
4
|
+
city = '';
|
5
|
+
complement = '';
|
6
|
+
neighborhood = '';
|
7
|
+
postalCode = '';
|
8
|
+
state = '';
|
9
|
+
streetName = '';
|
10
|
+
streetNumber = '';
|
11
|
+
coords = new CoordsEntity();
|
12
|
+
// #endregion Properties (7)
|
13
|
+
// #region Constructors (1)
|
14
|
+
constructor(data) {
|
15
|
+
if (data) {
|
16
|
+
for (let key in data) {
|
17
|
+
if (data.hasOwnProperty(key) && key in this) {
|
18
|
+
this[key] = data[key];
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZ2VuZXJhbC9lbnRpdGllcy9hZGRyZXNzLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFL0MsTUFBTSxPQUFPLGFBQWE7SUFDdEIseUJBQXlCO0lBRWxCLElBQUksR0FBVyxFQ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dW1iZXI6IHN0cmluZyA9ICcnO1xuICAgIHB1YmxpYyBjb29yZHM6IENvb3Jkc0VudGl0eSA9IG5ldyBDb29yZHNFbnRpdHkoKTtcblxuICAgIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoNylcblxuICAgIC8vICNyZWdpb24gQ29uc3RydWN0b3JzICgxKVxuXG4gICAgY29uc3RydWN0b3IoZGF0YT86IFBhcnRpYWw8QWRkcmVzc0VudGl0eT4pIHtcbiAgICAgICAgaWYgKGRhdGEpIHtcbiAgICAgICAgICAgIGZvciAobGV0IGtleSBpbiBkYXRhKSB7XG4gICAgICAgICAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xuICAgICAgICAgICAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export class CoordsEntity {
|
2
|
+
latitude = 0;
|
3
|
+
longitude = 0;
|
4
|
+
constructor(data) {
|
5
|
+
if (data) {
|
6
|
+
for (let key in data) {
|
7
|
+
if (data.hasOwnProperty(key) && key in this) {
|
8
|
+
this[key] = data[key];
|
9
|
+
}
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29vcmRzLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9nZW5lcmFsL2VudGl0aWVzL2Nvb3Jkcy5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsTUFBTSxPQU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