cecon-interfaces 1.0.6 → 1.0.7

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.
Files changed (35) hide show
  1. package/dist/package.json +1 -1
  2. package/package.json +1 -1
  3. package/tsconfig.json +1 -1
  4. package/path-to-declarations/company/enums/keys.enum.d.ts +0 -7
  5. package/path-to-declarations/company/enums/message-type.enum.d.ts +0 -5
  6. package/path-to-declarations/company/index.d.ts +0 -3
  7. package/path-to-declarations/company/interfaces/i-company.d.ts +0 -29
  8. package/path-to-declarations/device/enums/device-mode.enum.d.ts +0 -8
  9. package/path-to-declarations/device/index.d.ts +0 -3
  10. package/path-to-declarations/device/interfaces/i-device-metadata.d.ts +0 -8
  11. package/path-to-declarations/device/interfaces/i-device.d.ts +0 -16
  12. package/path-to-declarations/general/enums/doc-type.enum.d.ts +0 -4
  13. package/path-to-declarations/general/enums/lead-origin.enum.d.ts +0 -9
  14. package/path-to-declarations/general/enums/order-satus.enum.d.ts +0 -37
  15. package/path-to-declarations/general/enums/payment-channel.enum.d.ts +0 -10
  16. package/path-to-declarations/general/enums/payment-mode.enum.d.ts +0 -5
  17. package/path-to-declarations/general/enums/payment-type.enum.d.ts +0 -19
  18. package/path-to-declarations/general/enums/providers.enum.d.ts +0 -8
  19. package/path-to-declarations/general/index.d.ts +0 -17
  20. package/path-to-declarations/general/interfaces/i-address.d.ts +0 -9
  21. package/path-to-declarations/general/interfaces/i-coords.d.ts +0 -4
  22. package/path-to-declarations/general/interfaces/i-delivery-area-fixed.d.ts +0 -7
  23. package/path-to-declarations/general/interfaces/i-delivery-area.d.ts +0 -11
  24. package/path-to-declarations/general/interfaces/i-messager-channel.d.ts +0 -5
  25. package/path-to-declarations/general/interfaces/i-mobyo-server-api.d.ts +0 -8
  26. package/path-to-declarations/general/interfaces/i-origin.d.ts +0 -9
  27. package/path-to-declarations/general/interfaces/i-payment-method.d.ts +0 -18
  28. package/path-to-declarations/general/interfaces/i-payment-provider-agent.d.ts +0 -4
  29. package/path-to-declarations/general/interfaces/i-payment-provider.d.ts +0 -17
  30. package/path-to-declarations/general/interfaces/i-payment-tokens-data.d.ts +0 -9
  31. package/path-to-declarations/general/interfaces/i-payment-tokens.d.ts +0 -8
  32. package/path-to-declarations/index.d.ts +0 -3
  33. package/path-to-declarations/purchases/interfaces/i-app-info.d.ts +0 -11
  34. package/path-to-declarations/purchases/interfaces/i-payment-details.d.ts +0 -17
  35. package/path-to-declarations/purchases/interfaces/i-purchase.d.ts +0 -26
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {},
6
6
  "peerDependencies": {
package/tsconfig.json CHANGED
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "target": "es5",
17
17
  "declaration": true,
18
- "declarationDir": "./path-to-declarations",
18
+ "declarationDir": "./dist",
19
19
  "experimentalDecorators": true,
20
20
  "esModuleInterop": true,
21
21
  "outDir": "./dist",
@@ -1,7 +0,0 @@
1
- export declare enum CompanyKeysEnum {
2
- google = "GOOGLE",
3
- loggi = "LOGGI",
4
- desenfila = "DESENFILA",
5
- mottu = "MOTTU",
6
- algolia = "ALGOLIA"
7
- }
@@ -1,5 +0,0 @@
1
- export declare enum CompanyMessageTypeEnum {
2
- whatsapp = "WHATSAPP",
3
- instagram = "INSTAGRAM",
4
- sms = "SMS"
5
- }
@@ -1,3 +0,0 @@
1
- export { CompanyKeysEnum } from './enums/keys.enum';
2
- export { CompanyMessageTypeEnum } from './enums/message-type.enum';
3
- export { ICompany } from './interfaces/i-company';
@@ -1,29 +0,0 @@
1
- import { DocTypeEnum, IAddress, IDeliveryArea, IDeliveryAreaFixed, IMessagerChannel, IMobyoApiConfig, IOrigin, IPaymentMethod, IPaymentProvider } from '../../general';
2
- export interface ICompany {
3
- active: boolean;
4
- address: IAddress;
5
- bgImageURL?: string;
6
- containerId: string;
7
- createdAt: Date;
8
- deliveryArea: IDeliveryArea[];
9
- deliveryAreaFixed?: IDeliveryAreaFixed;
10
- doc: string;
11
- docType: DocTypeEnum;
12
- email: string;
13
- id: string;
14
- imageURL?: string;
15
- logoURL?: string;
16
- internationalCode: string;
17
- messagerChannels: IMessagerChannel[];
18
- config: IMobyoApiConfig;
19
- name: string;
20
- origin: IOrigin;
21
- paymentProvider: IPaymentProvider;
22
- paymentsMethods: IPaymentMethod[];
23
- phoneNumber: string;
24
- pubsubTopic: string;
25
- fullName: string;
26
- sandbox: boolean;
27
- updatedAt: number;
28
- version: string;
29
- }
@@ -1,8 +0,0 @@
1
- export declare enum DeviceModeEnum {
2
- app = "APP",
3
- checkout = "CHECKOUT",
4
- screen = "SCREEN",
5
- natigo = "NATIGO",
6
- satManager = "SAT-MANAGER",
7
- pdvNati = "PDV-NATI"
8
- }
@@ -1,3 +0,0 @@
1
- export { DeviceModeEnum } from './enums/device-mode.enum';
2
- export { IDevice } from './interfaces/i-device';
3
- export { IDeviceMetadata } from './interfaces/i-device-metadata';
@@ -1,8 +0,0 @@
1
- export interface IDeviceMetadata {
2
- app?: any;
3
- checkout?: any;
4
- screen?: any;
5
- natigo?: any;
6
- satManager?: any;
7
- pdvNati?: any;
8
- }
@@ -1,16 +0,0 @@
1
- import { DeviceModeEnum } from '../enums/device-mode.enum';
2
- import { IDeviceMetadata } from './i-device-metadata';
3
- export interface IDevice {
4
- active: boolean;
5
- companyId: string;
6
- containerId: string;
7
- createdAt: number;
8
- deviceId: string;
9
- metadata: IDeviceMetadata;
10
- id: string;
11
- key: string;
12
- lastAccess: Date;
13
- mode: DeviceModeEnum;
14
- name: string;
15
- updatedAt: number;
16
- }
@@ -1,4 +0,0 @@
1
- export declare enum DocTypeEnum {
2
- CPF = "CPF",
3
- CNPJ = "CNPJ"
4
- }
@@ -1,9 +0,0 @@
1
- export declare enum LeadOriginEnum {
2
- FACEBOOK_ADS = "Facebook Ads",
3
- GOOGLE_ADS = "Google Ads",
4
- EMAIL_MARKETING = "Email Marketing",
5
- REFERRED_BY_FRIEND = "Indica\u00E7\u00E3o de amigo",
6
- ORGANIC_SEARCH = "Busca org\u00E2nica",
7
- DIRECT_VISIT = "Visita Direta",
8
- OTHERS = "Outros"
9
- }
@@ -1,37 +0,0 @@
1
- export declare enum OrderStatusEnum {
2
- PLACED = "PLACED",
3
- INTEGRATED = "INTEGRATED",
4
- CONFIRMED = "CONFIRMED",
5
- PENDING = "PENDING",
6
- CANCELLATION_REQUESTED = "CANCELLATION_REQUESTED",
7
- CANCELLATION_REQUEST_FAILED = "CANCELLATION_REQUEST_FAILED",
8
- CANCELLED = "CANCELLED",
9
- GOING_TO_ORIGIN = "GOING_TO_ORIGIN",
10
- ARRIVED_AT_ORIGIN = "ARRIVED_AT_ORIGIN",
11
- ARRIVED_AT_DESTINATION = "ARRIVED_AT_DESTINATION",
12
- READY_TO_PICKUP = "READY_TO_PICKUP",
13
- COLLECTED = "COLLECTED",
14
- DISPATCHED = "DISPATCHED",
15
- DELIVERED = "DELIVERED",
16
- CONCLUDED = "CONCLUDED",
17
- PICKUP_AREA_ASSIGNED = "PICKUP_AREA_ASSIGNED",
18
- DELAY_NOTIFICATION = "DELAY_NOTIFICATION",
19
- CHANGE_PREPARATION_TIME = "CHANGE_PREPARATION_TIME",
20
- REQUEST_DRIVER_AVAILABILITY = "REQUEST_DRIVER_AVAILABILITY",
21
- REQUEST_DRIVER = "REQUEST_DRIVER",
22
- REQUEST_DRIVER_SUCCESS = "REQUEST_DRIVER_SUCCESS",
23
- REQUEST_DRIVER_FAILED = "REQUEST_DRIVER_FAILED",
24
- ASSIGN_DRIVER = "ASSIGN_DRIVER",
25
- CONSUMER_CANCELLATION_REQUESTED = "CONSUMER_CANCELLATION_REQUESTED",
26
- CONSUMER_CANCELLATION_ACCEPTED = "CONSUMER_CANCELLATION_ACCEPTED",
27
- CONSUMER_CANCELLATION_DENIED = "CONSUMER_CANCELLATION_DENIED",
28
- ADDED_TO_GROUP = "ADDED_TO_GROUP",
29
- EXECUTED_WITH_GROUP = "EXECUTED_WITH_GROUP",
30
- CANCELLED_WITH_GROUP = "CANCELLED_WITH_GROUP",
31
- COLLECTED_IN_GROUP = "COLLECTED_IN_GROUP",
32
- ASSIGNED_WITH_GROUP = "ASSIGNED_WITH_GROUP",
33
- UPDATE_REQUESTED = "UPDATE_REQUESTED",
34
- UPDATE_DENIED = "UPDATE_DENIED",
35
- UPDATED = "UPDATED",
36
- BOX_ASSIGNED = "BOX_ASSIGNED"
37
- }
@@ -1,10 +0,0 @@
1
- export declare enum PaymentChannelEnum {
2
- APP = "APP",
3
- DELIVERY = "DELIVERY",
4
- AUTOMATION = "AUTOMATION",
5
- PHONE = "PHONE",
6
- MAIL = "MAIL",
7
- KIOSK = "KIOSK",
8
- QR_CODE = "QR_CODE",
9
- WEBSITE = "WEBSITE"
10
- }
@@ -1,5 +0,0 @@
1
- export declare enum PaymentModeEnum {
2
- ELECTRONIC = "ELECTRONIC",
3
- MANUAL = "MANUAL",
4
- DIGITAL = "DIGITAL"
5
- }
@@ -1,19 +0,0 @@
1
- export declare enum PaymentTypeEnum {
2
- CREDIT_CARD = "CREDIT_CARD",
3
- DEBIT_CARD = "DEBIT_CARD",
4
- CASH = "CASH",
5
- PIX = "PIX",
6
- MOBILE_PAYMENT = "MOBILE_PAYMENT",
7
- CHECK = "CHECK",
8
- CRYPTOCURRENCY = "CRYPTOCURRENCY",
9
- ELECTRONIC_BANKING = "ELECTRONIC_BANKING",
10
- MONEY_ORDER = "MONEY_ORDER",
11
- PREPAID_CARD = "PREPAID_CARD",
12
- E_WALLET = "E_WALLET",
13
- DIRECT_DEBIT = "DIRECT_DEBIT",
14
- PAYPAL = "PAYPAL",
15
- WIRE_TRANSFER = "WIRE_TRANSFER",
16
- GIFT_CARD = "GIFT_CARD",
17
- VOUCHER = "VOUCHER",
18
- BILLING = "BILLING"
19
- }
@@ -1,8 +0,0 @@
1
- export declare enum PaymentProviderEnum {
2
- iugu = "IUGU",
3
- desenfila = "DESENFILA",
4
- mercadoPago = "MERCADO PAGO",
5
- stripe = "STRIPE",
6
- payPal = "PAYPAL",
7
- other = "OTHER"
8
- }
@@ -1,17 +0,0 @@
1
- export { DocTypeEnum } from './enums/doc-type.enum';
2
- export { LeadOriginEnum } from './enums/lead-origin.enum';
3
- export { PaymentChannelEnum } from './enums/payment-channel.enum';
4
- export { PaymentModeEnum } from './enums/payment-mode.enum';
5
- export { PaymentTypeEnum } from './enums/payment-type.enum';
6
- export { IAddress } from './interfaces/i-address';
7
- export { ICoords } from './interfaces/i-coords';
8
- export { IDeliveryArea } from './interfaces/i-delivery-area';
9
- export { IDeliveryAreaFixed } from './interfaces/i-delivery-area-fixed';
10
- export { IMessagerChannel } from './interfaces/i-messager-channel';
11
- export { IMobyoApiConfig } from './interfaces/i-mobyo-server-api';
12
- export { IOrigin } from './interfaces/i-origin';
13
- export { IPaymentMethod } from './interfaces/i-payment-method';
14
- export { IPaymentProvider } from './interfaces/i-payment-provider';
15
- export { IPaymentProviderAgent } from './interfaces/i-payment-provider-agent';
16
- export { IPaymentToken } from './interfaces/i-payment-tokens';
17
- export { IPaymentTokenData } from './interfaces/i-payment-tokens-data';
@@ -1,9 +0,0 @@
1
- export interface IAddress {
2
- city: string;
3
- complement?: string;
4
- neighborhood: string;
5
- postalCode: string;
6
- state: string;
7
- streetName: string;
8
- streetNumber: string;
9
- }
@@ -1,4 +0,0 @@
1
- export interface ICoords {
2
- latitude: number;
3
- longitude: number;
4
- }
@@ -1,7 +0,0 @@
1
- export interface IDeliveryAreaFixed {
2
- active: boolean;
3
- deliveryFee: number;
4
- maxTime: number;
5
- minTime: number;
6
- minimumOrderValue: number;
7
- }
@@ -1,11 +0,0 @@
1
- import { ICoords } from './i-coords';
2
- export interface IDeliveryArea {
3
- deliveryFee: number;
4
- id: string;
5
- latlngs: ICoords[];
6
- maxTime: number;
7
- minTime: number;
8
- minimumOrderValue: number;
9
- name: string;
10
- sequence: number;
11
- }
@@ -1,5 +0,0 @@
1
- export interface IMessagerChannel {
2
- channelId: string;
3
- type: string;
4
- id: string;
5
- }
@@ -1,8 +0,0 @@
1
- export interface IMobyoApiConfig {
2
- hasIntegration: boolean;
3
- hasPrint: boolean;
4
- integrationUrl: string;
5
- printCols: number;
6
- printInterface: string;
7
- printType: string;
8
- }
@@ -1,9 +0,0 @@
1
- import { LeadOriginEnum } from '../enums/lead-origin.enum';
2
- export interface IOrigin {
3
- campaign?: string;
4
- contactPoint?: string;
5
- date: Number;
6
- details?: string;
7
- referrer?: string;
8
- type: LeadOriginEnum;
9
- }
@@ -1,18 +0,0 @@
1
- import { PaymentChannelEnum } from '../enums/payment-channel.enum';
2
- import { PaymentModeEnum } from '../enums/payment-mode.enum';
3
- import { PaymentTypeEnum } from '../enums/payment-type.enum';
4
- export interface IPaymentMethod {
5
- active: boolean;
6
- channel: PaymentChannelEnum;
7
- createdAt: number;
8
- fee: number;
9
- id: string;
10
- index: number;
11
- maxAmount: number;
12
- minAmount: number;
13
- mode: PaymentModeEnum;
14
- name: string;
15
- token: string;
16
- type: PaymentTypeEnum;
17
- updatedAt: number;
18
- }
@@ -1,4 +0,0 @@
1
- export interface IPaymentProviderAgent {
2
- accountId: string;
3
- name?: string;
4
- }
@@ -1,17 +0,0 @@
1
- import { IPaymentProviderAgent } from './i-payment-provider-agent';
2
- import { IPaymentToken } from './i-payment-tokens';
3
- export interface IPaymentProvider {
4
- accountId: string;
5
- active: boolean;
6
- agent: IPaymentProviderAgent;
7
- customerId: string;
8
- liveApiToken: string;
9
- name: string;
10
- paymentTokens: IPaymentToken[];
11
- subscriptionId: string;
12
- subscriptions?: string;
13
- testApiToken: string;
14
- userApiToken: string;
15
- verified: boolean;
16
- verifiedAt: number;
17
- }
@@ -1,9 +0,0 @@
1
- export interface IPaymentTokenData {
2
- bin: string;
3
- brand: string;
4
- displayNumber: string;
5
- firstDigits: string;
6
- maskedNumber: string;
7
- month: number;
8
- year: number;
9
- }
@@ -1,8 +0,0 @@
1
- import { IPaymentTokenData } from './i-payment-tokens-data';
2
- export interface IPaymentToken {
3
- customerId: string;
4
- data: IPaymentTokenData;
5
- description: string;
6
- id: string;
7
- itemType: string;
8
- }
@@ -1,3 +0,0 @@
1
- export * from './company';
2
- export * from './device';
3
- export * from './general';
@@ -1,11 +0,0 @@
1
- /**
2
- * Representa informações básicas sobre um aplicativo ou módulo dentro do sistema.
3
- */
4
- export interface IAppInfo {
5
- /** Identificador único do aplicativo ou módulo. */
6
- appId: string;
7
- /** Nome amigável ou título do aplicativo. */
8
- name: string;
9
- /** Versão do aplicativo ou módulo. */
10
- version: string;
11
- }
@@ -1,17 +0,0 @@
1
- import { PaymentTypeEnum } from '../../general';
2
- import { OrderStatusEnum } from '../../general/enums/order-satus.enum';
3
- /**
4
- * Representa os detalhes específicos do pagamento de uma compra.
5
- */
6
- export interface IPaymentDetails {
7
- /** Tipo de método de pagamento usado (por exemplo, cartão de crédito, PayPal). */
8
- method: PaymentTypeEnum;
9
- /** Identificador único para a transação de pagamento. */
10
- transactionId: string;
11
- /** Montante total pago. */
12
- amount: number;
13
- /** Moeda na qual o pagamento foi realizado (por exemplo: 'USD', 'BRL'). */
14
- currency: string;
15
- /** Estado atual da transação (por exemplo, pendente, concluído). */
16
- status: OrderStatusEnum;
17
- }
@@ -1,26 +0,0 @@
1
- import { PaymentProviderEnum } from '../../general/enums/providers.enum';
2
- import { IAppInfo } from './i-app-info';
3
- import { IPaymentDetails } from './i-payment-details';
4
- /**
5
- * Representa uma compra dentro do sistema.
6
- * Esta interface fornece uma separação clara de diferentes aspectos da compra,
7
- * como detalhes do pagamento e informações sobre o aplicativo.
8
- */
9
- export interface IPurchase {
10
- /** Identificador único para a compra. */
11
- purchaseId: string;
12
- /** ID da empresa associada à compra. */
13
- companyId: string;
14
- /** ID do dispositivo para o qual o aplicativo foi ativado. */
15
- deviceId: string;
16
- /** Informações sobre o aplicativo ou módulo ativado. */
17
- appInfo: IAppInfo;
18
- /** Data e hora da compra. */
19
- purchaseDate: Date;
20
- /** Identificação da origem do pagamento ex: DESENFILA */
21
- provider: PaymentProviderEnum;
22
- /** Detalhes específicos do pagamento. */
23
- paymentDetails: IPaymentDetails;
24
- /** Qualquer informação adicional ou notas relacionadas à compra. */
25
- additionalNotes?: string;
26
- }