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.
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/path-to-declarations/company/enums/keys.enum.d.ts +0 -7
- package/path-to-declarations/company/enums/message-type.enum.d.ts +0 -5
- package/path-to-declarations/company/index.d.ts +0 -3
- package/path-to-declarations/company/interfaces/i-company.d.ts +0 -29
- package/path-to-declarations/device/enums/device-mode.enum.d.ts +0 -8
- package/path-to-declarations/device/index.d.ts +0 -3
- package/path-to-declarations/device/interfaces/i-device-metadata.d.ts +0 -8
- package/path-to-declarations/device/interfaces/i-device.d.ts +0 -16
- package/path-to-declarations/general/enums/doc-type.enum.d.ts +0 -4
- package/path-to-declarations/general/enums/lead-origin.enum.d.ts +0 -9
- package/path-to-declarations/general/enums/order-satus.enum.d.ts +0 -37
- package/path-to-declarations/general/enums/payment-channel.enum.d.ts +0 -10
- package/path-to-declarations/general/enums/payment-mode.enum.d.ts +0 -5
- package/path-to-declarations/general/enums/payment-type.enum.d.ts +0 -19
- package/path-to-declarations/general/enums/providers.enum.d.ts +0 -8
- package/path-to-declarations/general/index.d.ts +0 -17
- package/path-to-declarations/general/interfaces/i-address.d.ts +0 -9
- package/path-to-declarations/general/interfaces/i-coords.d.ts +0 -4
- package/path-to-declarations/general/interfaces/i-delivery-area-fixed.d.ts +0 -7
- package/path-to-declarations/general/interfaces/i-delivery-area.d.ts +0 -11
- package/path-to-declarations/general/interfaces/i-messager-channel.d.ts +0 -5
- package/path-to-declarations/general/interfaces/i-mobyo-server-api.d.ts +0 -8
- package/path-to-declarations/general/interfaces/i-origin.d.ts +0 -9
- package/path-to-declarations/general/interfaces/i-payment-method.d.ts +0 -18
- package/path-to-declarations/general/interfaces/i-payment-provider-agent.d.ts +0 -4
- package/path-to-declarations/general/interfaces/i-payment-provider.d.ts +0 -17
- package/path-to-declarations/general/interfaces/i-payment-tokens-data.d.ts +0 -9
- package/path-to-declarations/general/interfaces/i-payment-tokens.d.ts +0 -8
- package/path-to-declarations/index.d.ts +0 -3
- package/path-to-declarations/purchases/interfaces/i-app-info.d.ts +0 -11
- package/path-to-declarations/purchases/interfaces/i-payment-details.d.ts +0 -17
- package/path-to-declarations/purchases/interfaces/i-purchase.d.ts +0 -26
package/dist/package.json
CHANGED
package/package.json
CHANGED
package/tsconfig.json
CHANGED
@@ -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,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,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,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,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,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,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,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
|
-
}
|