@jaws-developers-customers/consulca-types 1.0.1 → 1.0.4
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/index.d.ts +2 -6
- package/index.js +1 -4
- package/package.json +4 -1
package/index.d.ts
CHANGED
|
@@ -20,10 +20,6 @@ export interface ColorPalette {
|
|
|
20
20
|
text: string;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export interface ColorPalettes {
|
|
24
|
-
parcoCeresio: ColorPalette;
|
|
25
|
-
general: ColorPalette;
|
|
26
|
-
}
|
|
27
23
|
export interface Constants {
|
|
28
24
|
API_DEV: string;
|
|
29
25
|
API: string;
|
|
@@ -237,7 +233,8 @@ export declare const INSPECTION_STATUSES: readonly InspectionStatus[];
|
|
|
237
233
|
export declare const CONDITION_STATUSES: readonly ConditionStatus[];
|
|
238
234
|
export declare const CLAIM_STATUSES: readonly ClaimStatus[];
|
|
239
235
|
export declare const WORK_STATUSES: readonly WorkStatus[];
|
|
240
|
-
export declare const COLOR_PALETTE: Readonly<
|
|
236
|
+
export declare const COLOR_PALETTE: Readonly<ColorPalette>;
|
|
237
|
+
export declare const CONSTANTS: Readonly<Constants>;
|
|
241
238
|
|
|
242
239
|
export declare function toDate(value: string | number | Date | null | undefined): Date | null;
|
|
243
240
|
export declare function formatDate(
|
|
@@ -256,7 +253,6 @@ export declare function formatCurrency(
|
|
|
256
253
|
locales?: string | string[],
|
|
257
254
|
options?: Intl.NumberFormatOptions
|
|
258
255
|
): string;
|
|
259
|
-
export declare function getColorPalette(): Readonly<ColorPalettes>;
|
|
260
256
|
export declare function getUserFullName(
|
|
261
257
|
user: Pick<User, 'first_name' | 'last_name'> | Partial<Pick<User, 'first_name' | 'last_name'>> | null | undefined
|
|
262
258
|
): string;
|
package/index.js
CHANGED
|
@@ -116,9 +116,6 @@ function hasAccessChannel(accessChannels, channel) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
function getColorPalette() {
|
|
120
|
-
return COLOR_PALETTE;
|
|
121
|
-
}
|
|
122
119
|
|
|
123
120
|
module.exports = {
|
|
124
121
|
ACCESS_CHANNELS,
|
|
@@ -135,11 +132,11 @@ module.exports = {
|
|
|
135
132
|
USER_ROLES,
|
|
136
133
|
USER_STATUSES,
|
|
137
134
|
WORK_STATUSES,
|
|
135
|
+
CONSTANTS,
|
|
138
136
|
formatAddress,
|
|
139
137
|
formatCurrency,
|
|
140
138
|
formatDate,
|
|
141
139
|
formatDateTime,
|
|
142
|
-
getColorPalette,
|
|
143
140
|
getUserFullName,
|
|
144
141
|
hasAccessChannel,
|
|
145
142
|
hasUserRole,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaws-developers-customers/consulca-types",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Tipi e helper per il dominio Consulca.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"consulca",
|
|
@@ -44,5 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"jaws-helper": "^3.2.3"
|
|
47
50
|
}
|
|
48
51
|
}
|