ravcredit-lib 0.0.21 → 0.0.23
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/fesm2022/ravcredit-lib.mjs +46 -1
- package/fesm2022/ravcredit-lib.mjs.map +1 -1
- package/index.d.ts +203 -74
- package/package.json +1 -1
|
@@ -158,6 +158,7 @@ var eRoles;
|
|
|
158
158
|
eRoles["Administrator"] = "Administrator";
|
|
159
159
|
eRoles["Seller"] = "Seller";
|
|
160
160
|
eRoles["Consultant"] = "Consultant";
|
|
161
|
+
eRoles["Client"] = "Client";
|
|
161
162
|
})(eRoles || (eRoles = {}));
|
|
162
163
|
|
|
163
164
|
const cSingleOptionClientStatus = {
|
|
@@ -1488,6 +1489,7 @@ const dateFormat = "EEEE, dd MMM yyyy";
|
|
|
1488
1489
|
const dateCompleteFormat = "EEEE, dd MMM yyyy hh:mm aaaa";
|
|
1489
1490
|
const timeFormat = "hh:mm aaaa";
|
|
1490
1491
|
const expiredPayment = "expiredPayment";
|
|
1492
|
+
const ROLES_KEY = 'roles';
|
|
1491
1493
|
|
|
1492
1494
|
class IndexedDbService {
|
|
1493
1495
|
indexDbStatus = false;
|
|
@@ -2030,6 +2032,35 @@ class FactoryPayment {
|
|
|
2030
2032
|
}
|
|
2031
2033
|
}
|
|
2032
2034
|
|
|
2035
|
+
const ErrorMessages = {
|
|
2036
|
+
NotFound: "Recurso no encontrado",
|
|
2037
|
+
Unauthorized: "Request without(or not valid) token",
|
|
2038
|
+
RandomError: "Something goes wrong, try again -> ",
|
|
2039
|
+
RandomErrorFirestore: "Something goes wrong in firestore",
|
|
2040
|
+
CreateUser: "Error: Something goes wrong",
|
|
2041
|
+
CreateFoundedUser: "Error: User already exists try with another username",
|
|
2042
|
+
FindAllNotFound: "Not users found",
|
|
2043
|
+
UserFindOne: "User with given ID not found",
|
|
2044
|
+
UserFindOneError: "Error getting user by ID",
|
|
2045
|
+
UserUpdate: "Error updating user by ID",
|
|
2046
|
+
DeleteUser: "Error deleting user",
|
|
2047
|
+
UsernameNotFound: "User with given username not found",
|
|
2048
|
+
IncorrectPassword: "Incorrect or not valid password",
|
|
2049
|
+
LastLogIn: "Last LogIn date not updated",
|
|
2050
|
+
authError: "Username or password incorrect",
|
|
2051
|
+
tokenRequired: "Token required",
|
|
2052
|
+
ClientDefined: "This user already registered: Update user's contracts instead",
|
|
2053
|
+
ClientsNotFound: "List of clients is empty",
|
|
2054
|
+
ClientNotFound: "Client with given ID, not found",
|
|
2055
|
+
ClientNotUpdated: "Client with given ID, not updated",
|
|
2056
|
+
DeleteClient: "Error deleting client",
|
|
2057
|
+
UsernameClientNotFound: "Client with given username not found",
|
|
2058
|
+
ContractsAllEmpty: "Contract list empty",
|
|
2059
|
+
ContractNotFound: "Contract not found",
|
|
2060
|
+
ContractUpdateError: "Something goes wrong updating contract, try again",
|
|
2061
|
+
ContractDeleteError: "Something goes wrong deleting contract, try again"
|
|
2062
|
+
};
|
|
2063
|
+
|
|
2033
2064
|
var eAssetPeriod;
|
|
2034
2065
|
(function (eAssetPeriod) {
|
|
2035
2066
|
eAssetPeriod["MONTH"] = "MONTH";
|
|
@@ -2090,6 +2121,20 @@ var eProcessStatus;
|
|
|
2090
2121
|
eProcessStatus["PROCESSING"] = "PROCESSING";
|
|
2091
2122
|
eProcessStatus["WAITING"] = "WAITING";
|
|
2092
2123
|
})(eProcessStatus || (eProcessStatus = {}));
|
|
2124
|
+
var eRequestVerb;
|
|
2125
|
+
(function (eRequestVerb) {
|
|
2126
|
+
eRequestVerb["POST"] = "POST";
|
|
2127
|
+
eRequestVerb["GET"] = "GET";
|
|
2128
|
+
eRequestVerb["PATCH"] = "PATCH";
|
|
2129
|
+
eRequestVerb["DELETE"] = "DELETE";
|
|
2130
|
+
})(eRequestVerb || (eRequestVerb = {}));
|
|
2131
|
+
var eGCActions;
|
|
2132
|
+
(function (eGCActions) {
|
|
2133
|
+
eGCActions["Create"] = "Create";
|
|
2134
|
+
eGCActions["Update"] = "Update";
|
|
2135
|
+
eGCActions["Remove"] = "Remove";
|
|
2136
|
+
eGCActions["LoginTime"] = "UpdateLogIn";
|
|
2137
|
+
})(eGCActions || (eGCActions = {}));
|
|
2093
2138
|
|
|
2094
2139
|
var eVerificationStep;
|
|
2095
2140
|
(function (eVerificationStep) {
|
|
@@ -2123,5 +2168,5 @@ var eVerificationChannel;
|
|
|
2123
2168
|
* Generated bundle index. Do not edit.
|
|
2124
2169
|
*/
|
|
2125
2170
|
|
|
2126
|
-
export { FactoryBusiness, FactoryClient, FactoryConekta, FactoryContract, FactoryDynamiCore, FactoryNotification, FactoryPassport, FactoryPayment, IndexedDbService, ROUTE_GLOBAL_REFERENCE2, ROUTE_NOTIFICATIONS, RavcreditLibComponent, RavcreditLibService, UtilTime, UtilsHttp, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientConekta, cClientContract, cClientDynamicStatus, cContract, cContractMetrics, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cNotification, cSchedule, cTopic, cUserReference, dateCompleteFormat, dateFormat, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAssetPeriod, eAuthActions, eAuthType, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaRes, eContractStatus, eContractSteps, eIdentityTypes, eLoginStatus, eNotificationType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRoles, eVerificationChannel, eVerificationStatus, eVerificationStep, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, timeFormat, week };
|
|
2171
|
+
export { ErrorMessages, FactoryBusiness, FactoryClient, FactoryConekta, FactoryContract, FactoryDynamiCore, FactoryNotification, FactoryPassport, FactoryPayment, IndexedDbService, ROLES_KEY, ROUTE_GLOBAL_REFERENCE2, ROUTE_NOTIFICATIONS, RavcreditLibComponent, RavcreditLibService, UtilTime, UtilsHttp, cAddress, cAuthConfig, cBusinessConfig, cBusinessDeadlines, cBusinessInfo, cClient, cClientConekta, cClientContract, cClientDynamicStatus, cConektaRecurrent, cContract, cContractMetrics, cDaySchedule, cDefinedSchedule, cDevice, cEmptyDay, cFinancial, cIDCCharge, cIDCCustomer, cIDCDataPii, cIDCGeneratedReference, cIDCPayment, cNotification, cOptionsClientStatus, cOxxoRecurrentSources, cOxxoRecurrentSourcesData, cPaymentDelay, cSchedule, cSingleOptionClientStatus, cTopic, cTyClientContract, cUserReference, dateCompleteFormat, dateFormat, dbAuthStore, dbBusinessConfig, dbBusinessInfo, dbClientsStore, dbConektaClientsStore, dbConektaReferencesStore, dbContractsStore, dbDynamicAccountStore, dbDynamicReferencesStore, dbIndexAuth, dbIndexBusiness, dbIndexClients, dbIndexConektaClients, dbIndexConektaClientsRef, dbIndexContracts, dbIndexNotification, dbIndexPassportClientsRef, dbIndexPayments, dbIndexUsers, dbName, dbNotificationsStore, dbPassportReferencesStore, dbPaymentsStore, dbUsersStore, dbVersion, eAccountDynamicStatus, eAssetPeriod, eAuthActions, eAuthType, eClientDynamicStatus, eClientStatus, eConektaOrderStatus, eConektaRes, eContractStatus, eContractSteps, eGCActions, eIdentityTypes, eLoginStatus, eNotificationType, ePassportTypes, ePaymentType, eProcessStatus, eProvider, eReferenceStatusRav, eRequestVerb, eRoles, eRolesSelect, eVerificationChannel, eVerificationStatus, eVerificationStep, expiredPayment, keyPathId, keyUserID, ravCreditFunctions, snackBarConfigAction, snackBarConfigNoAction, snackBarConfigNoActionLong, timeFormat, week };
|
|
2127
2172
|
//# sourceMappingURL=ravcredit-lib.mjs.map
|