42 lines
1.9 KiB
TypeScript
42 lines
1.9 KiB
TypeScript
|
|
import type { UserIdMapping } from "../mappings/contract";
|
||
|
|
export declare const ORDER_TYPE: {
|
||
|
|
readonly INTERNET: "Internet";
|
||
|
|
readonly SIM: "SIM";
|
||
|
|
readonly VPN: "VPN";
|
||
|
|
readonly OTHER: "Other";
|
||
|
|
};
|
||
|
|
export type OrderTypeValue = (typeof ORDER_TYPE)[keyof typeof ORDER_TYPE];
|
||
|
|
export declare const ORDER_STATUS: {
|
||
|
|
readonly DRAFT: "Draft";
|
||
|
|
readonly ACTIVATED: "Activated";
|
||
|
|
readonly PENDING: "Pending";
|
||
|
|
readonly FAILED: "Failed";
|
||
|
|
readonly CANCELLED: "Cancelled";
|
||
|
|
};
|
||
|
|
export type OrderStatusValue = (typeof ORDER_STATUS)[keyof typeof ORDER_STATUS];
|
||
|
|
export declare const ACTIVATION_TYPE: {
|
||
|
|
readonly IMMEDIATE: "Immediate";
|
||
|
|
readonly SCHEDULED: "Scheduled";
|
||
|
|
};
|
||
|
|
export type ActivationTypeValue = (typeof ACTIVATION_TYPE)[keyof typeof ACTIVATION_TYPE];
|
||
|
|
export declare const SIM_TYPE: {
|
||
|
|
readonly ESIM: "eSIM";
|
||
|
|
readonly PHYSICAL: "Physical SIM";
|
||
|
|
};
|
||
|
|
export type SimTypeValue = (typeof SIM_TYPE)[keyof typeof SIM_TYPE];
|
||
|
|
export declare const ORDER_FULFILLMENT_ERROR_CODE: {
|
||
|
|
readonly PAYMENT_METHOD_MISSING: "PAYMENT_METHOD_MISSING";
|
||
|
|
readonly ORDER_NOT_FOUND: "ORDER_NOT_FOUND";
|
||
|
|
readonly WHMCS_ERROR: "WHMCS_ERROR";
|
||
|
|
readonly MAPPING_ERROR: "MAPPING_ERROR";
|
||
|
|
readonly VALIDATION_ERROR: "VALIDATION_ERROR";
|
||
|
|
readonly SALESFORCE_ERROR: "SALESFORCE_ERROR";
|
||
|
|
readonly PROVISIONING_ERROR: "PROVISIONING_ERROR";
|
||
|
|
};
|
||
|
|
export type OrderFulfillmentErrorCode = (typeof ORDER_FULFILLMENT_ERROR_CODE)[keyof typeof ORDER_FULFILLMENT_ERROR_CODE];
|
||
|
|
export type OrderCreationType = "Internet" | "SIM" | "VPN" | "Other";
|
||
|
|
export type OrderStatus = string;
|
||
|
|
export type OrderType = string;
|
||
|
|
export type UserMapping = Pick<UserIdMapping, "userId" | "whmcsClientId" | "sfAccountId">;
|
||
|
|
export type { OrderItemSummary, OrderItemDetails, OrderSummary, OrderDetails, OrderQueryParams, OrderConfigurationsAddress, OrderConfigurations, CreateOrderRequest, OrderBusinessValidation, SfOrderIdParam, } from './schema';
|