@punks/backend-core 0.0.37 → 0.0.39
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/cjs/index.js +6 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/index.d.ts +1 -0
- package/dist/cjs/types/abstractions/localization.d.ts +3 -0
- package/dist/cjs/types/functions/arrays/index.d.ts +4 -1
- package/dist/esm/index.js +6 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/index.d.ts +1 -0
- package/dist/esm/types/abstractions/localization.d.ts +3 -0
- package/dist/esm/types/functions/arrays/index.d.ts +4 -1
- package/dist/index.d.ts +9 -2
- package/package.json +1 -1
|
@@ -6,5 +6,8 @@ export declare const processArrayDifferences: <TItem, TInputItem, TId>({ element
|
|
|
6
6
|
}) => {
|
|
7
7
|
missingElements: TInputItem[];
|
|
8
8
|
exceedingElements: TItem[];
|
|
9
|
-
|
|
9
|
+
correspondingElements: {
|
|
10
|
+
current: TItem;
|
|
11
|
+
desired: TInputItem;
|
|
12
|
+
}[];
|
|
10
13
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ interface IServiceLocator {
|
|
|
9
9
|
resolve<T>(name: string, options?: IResolveServiceOptions): T;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
type LocalizedField<T> = {
|
|
13
|
+
[key: string]: T;
|
|
14
|
+
};
|
|
15
|
+
|
|
12
16
|
declare enum LogLevel {
|
|
13
17
|
Debug = 0,
|
|
14
18
|
Info = 1,
|
|
@@ -45,7 +49,10 @@ declare const processArrayDifferences: <TItem, TInputItem, TId>({ elements, elem
|
|
|
45
49
|
}) => {
|
|
46
50
|
missingElements: TInputItem[];
|
|
47
51
|
exceedingElements: TItem[];
|
|
48
|
-
|
|
52
|
+
correspondingElements: {
|
|
53
|
+
current: TItem;
|
|
54
|
+
desired: TInputItem;
|
|
55
|
+
}[];
|
|
49
56
|
};
|
|
50
57
|
|
|
51
58
|
declare class Log {
|
|
@@ -182,4 +189,4 @@ type ExcelParseOptions = {
|
|
|
182
189
|
};
|
|
183
190
|
declare const excelParse: (file: string | ArrayBuffer, options?: ExcelParseOptions) => any[];
|
|
184
191
|
|
|
185
|
-
export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, ITree, ITreeNode, Log, LogLevel, MetaSerializationType, RichText, TimeUnit, TreeNodeBuilder, addTime, buildObject, buildTree, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, csvBuild, csvParse, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, getDirectoryFilePaths, getDirectoryPath, groupBy, indexes, isNullOrUndefined, iterate, joinPath, jsonDistinct, last, mapOrThrow, mergeDeep, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, subArrays, subtractTime, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
|
|
192
|
+
export { CsvColumnDefinition as ColumnDefinition, CsvBuildOptions, Dict, ExcelKeyTransform, ExcelParseOptions, ExcelColumnDefinition as ExcelRowBuilder, ExcelSheetDefinition, ILogger, ILoggerProvider, IResolveServiceOptions, IServiceLocator, ITree, ITreeNode, LocalizedField, Log, LogLevel, MetaSerializationType, RichText, TimeUnit, TreeNodeBuilder, addTime, buildObject, buildTree, byField, byFieldDesc, camelToKebabCase, camelToSnakeCase, csvBuild, csvParse, distinct, distinctElements, ensureDirectory, ensureStartSlash, ensureTailingSlash, excelBuild, excelParse, first, flatten, getDirectoryFilePaths, getDirectoryPath, groupBy, indexes, isNullOrUndefined, iterate, joinPath, jsonDistinct, last, mapOrThrow, mergeDeep, newUuid, notNull, notUndefined, pluralize, processArrayDifferences, range, removeUndefinedProps, selectMany, sleep, sort, splitPath, subArrays, subtractTime, toCamelCase, toDict, toItemsDict, toItemsMap, toMap, toTitleCase, trim, trimEnd, trimStart };
|