@win2win/shared 1.0.181 → 1.0.183
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/enums/captacion.js
CHANGED
|
@@ -9,6 +9,7 @@ var TipoCaptacion;
|
|
|
9
9
|
TipoCaptacion["PRODUCTOS"] = "4";
|
|
10
10
|
TipoCaptacion["PEDIDOS"] = "5";
|
|
11
11
|
TipoCaptacion["SOLICITUDES"] = "6";
|
|
12
|
+
TipoCaptacion["PARTNERS"] = "partners";
|
|
12
13
|
})(TipoCaptacion || (exports.TipoCaptacion = TipoCaptacion = {}));
|
|
13
14
|
var EstadoCaptacion;
|
|
14
15
|
(function (EstadoCaptacion) {
|
|
@@ -34,4 +34,7 @@ export declare function formatContactName(contact?: {
|
|
|
34
34
|
nombre?: string | null;
|
|
35
35
|
apellido: string | null;
|
|
36
36
|
apellido2: string | null;
|
|
37
|
-
} | null): string;
|
|
37
|
+
} | JsonObject | null): string;
|
|
38
|
+
export declare const upperSnakeCase: (text?: string) => string;
|
|
39
|
+
export declare const upperSnakeKeys: (item: Record<string, any>) => import("lodash").Dictionary<any>;
|
|
40
|
+
export declare const upperSnakeizeObject: <T = any>(item: any) => T;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.upperSnakeizeObject = exports.upperSnakeKeys = exports.upperSnakeCase = void 0;
|
|
3
4
|
exports.deserialize = deserialize;
|
|
4
5
|
exports.deserializeAndRun = deserializeAndRun;
|
|
5
6
|
exports.deserializeWithContext = deserializeWithContext;
|
|
@@ -125,3 +126,9 @@ function formatContactName(contact) {
|
|
|
125
126
|
.filter(Boolean)
|
|
126
127
|
.join(" "), true).trim();
|
|
127
128
|
}
|
|
129
|
+
const upperSnakeCase = (text) => (0, lodash_1.snakeCase)(text).toUpperCase();
|
|
130
|
+
exports.upperSnakeCase = upperSnakeCase;
|
|
131
|
+
const upperSnakeKeys = (item) => (0, lodash_1.mapKeys)(item, (_, k) => (0, exports.upperSnakeCase)(k));
|
|
132
|
+
exports.upperSnakeKeys = upperSnakeKeys;
|
|
133
|
+
const upperSnakeizeObject = (item) => (0, lodash_1.mapKeys)(item, (v, k) => (0, exports.upperSnakeCase)(k));
|
|
134
|
+
exports.upperSnakeizeObject = upperSnakeizeObject;
|
package/package.json
CHANGED