@murumets-ee/imports 0.43.0 → 0.44.0
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/index.d.mts
CHANGED
|
@@ -228,14 +228,14 @@ declare const ImportMapping: import("@murumets-ee/entity").Entity<{
|
|
|
228
228
|
id: import("@murumets-ee/entity").IdField;
|
|
229
229
|
} & import("@murumets-ee/entity").AuditableFields & Record<never, never> & {
|
|
230
230
|
/** FK to commerce `supplier` (by name string — no cross-package import). Required. */supplierId: import("@murumets-ee/entity").ReferenceField & {
|
|
231
|
-
cardinality: "
|
|
231
|
+
cardinality: "one" | "many";
|
|
232
232
|
} & {
|
|
233
233
|
readonly entity: "supplier";
|
|
234
234
|
readonly required: true;
|
|
235
235
|
readonly indexed: true;
|
|
236
236
|
}; /** FK to commerce `brand`. NULL = supplier default (applies to all that supplier's brands). */
|
|
237
237
|
brandId: import("@murumets-ee/entity").ReferenceField & {
|
|
238
|
-
cardinality: "
|
|
238
|
+
cardinality: "one" | "many";
|
|
239
239
|
} & {
|
|
240
240
|
readonly entity: "brand";
|
|
241
241
|
readonly indexed: true;
|
package/dist/mapping/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as RowTransform } from "../transform-CulePAbJ.mjs";
|
|
2
|
-
import { C as toMinorUnits, S as parseNumber, _ as ColumnTransformOpDescriptor, a as BuildRowContext, b as NumberFormat, c as TargetField, d as rowError, f as textOrNull, g as ColumnTransformOp, h as ColumnTransform, i as partsSchema, l as TargetSchema, m as CellValue, n as normalizeCode, o as MappedRow, p as COLUMN_TRANSFORM_OPS, r as partsParamsSchema, s as NumberOutcome, t as PartsParams, u as numberCell, v as applyColumnTransforms, x as parseEuropeanNumber, y as columnTransformSchema } from "../parts-schema-
|
|
2
|
+
import { C as toMinorUnits, S as parseNumber, _ as ColumnTransformOpDescriptor, a as BuildRowContext, b as NumberFormat, c as TargetField, d as rowError, f as textOrNull, g as ColumnTransformOp, h as ColumnTransform, i as partsSchema, l as TargetSchema, m as CellValue, n as normalizeCode, o as MappedRow, p as COLUMN_TRANSFORM_OPS, r as partsParamsSchema, s as NumberOutcome, t as PartsParams, u as numberCell, v as applyColumnTransforms, x as parseEuropeanNumber, y as columnTransformSchema } from "../parts-schema-CryML9F_.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/mapping/discount-table-schema.d.ts
|
|
@@ -257,17 +257,17 @@ declare const partsParamsSchema: z.ZodObject<{
|
|
|
257
257
|
*/
|
|
258
258
|
discountGroups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
supplierId: string;
|
|
260
261
|
brandId: string;
|
|
261
262
|
brandSlug: string;
|
|
262
|
-
supplierId: string;
|
|
263
263
|
supplierDisplayName: string;
|
|
264
264
|
importBatchId: string;
|
|
265
265
|
supplierCodePrefix?: string | undefined;
|
|
266
266
|
discountGroups?: Record<string, number> | undefined;
|
|
267
267
|
}, {
|
|
268
|
+
supplierId: string;
|
|
268
269
|
brandId: string;
|
|
269
270
|
brandSlug: string;
|
|
270
|
-
supplierId: string;
|
|
271
271
|
supplierDisplayName: string;
|
|
272
272
|
importBatchId: string;
|
|
273
273
|
supplierCodePrefix?: string | undefined;
|
|
@@ -290,4 +290,4 @@ declare function normalizeCode(s: string): string;
|
|
|
290
290
|
declare const partsSchema: TargetSchema<PartsDocument>;
|
|
291
291
|
//#endregion
|
|
292
292
|
export { toMinorUnits as C, parseNumber as S, ColumnTransformOpDescriptor as _, BuildRowContext as a, NumberFormat as b, TargetField as c, rowError as d, textOrNull as f, ColumnTransformOp as g, ColumnTransform as h, partsSchema as i, TargetSchema as l, CellValue as m, normalizeCode as n, MappedRow as o, COLUMN_TRANSFORM_OPS as p, partsParamsSchema as r, NumberOutcome as s, PartsParams as t, numberCell as u, applyColumnTransforms as v, parseEuropeanNumber as x, columnTransformSchema as y };
|
|
293
|
-
//# sourceMappingURL=parts-schema-
|
|
293
|
+
//# sourceMappingURL=parts-schema-CryML9F_.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parts-schema-
|
|
1
|
+
{"version":3,"file":"parts-schema-CryML9F_.d.mts","names":[],"sources":["../src/mapping/number-format.ts","../src/mapping/column-transforms.ts","../src/mapping/target-schema.ts","../src/mapping/parts-schema.ts"],"mappings":";;;;;;;;;;AAqBA;;;;AAIW;AAsBX;;;;;;;;AAA6D;AA+B7D;AAAA,UAzDiB,YAAA;;EAEf,OAAA;EAuDwC;EArDxC,SAAS;AAAA;;;AA+EkC;;;;AC9E7C;;;;;;;;;;iBDqBgB,WAAA,CAAY,GAAA,UAAa,MAAA,EAAQ,YAAY;;;;;;;;iBA+B7C,YAAA,CAAa,KAAa;;;;;;;;;;;;;;;;;;;;;;;iBA0B1B,mBAAA,CAAoB,CAAS;;;;;AAzDgB;AA+B7D;;cCpDa,qBAAA,EAAqB,CAAA,CAAA,qBAAA,QAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAYtB,eAAA,GAAkB,CAAA,CAAE,KAAK,QAAQ,qBAAA;;KAGjC,iBAAA,GAAoB,eAAe;;UAG9B,2BAAA;EACf,EAAA,EAAI,iBAAiB;EACrB,KAAA;;EAEA,QAAA;AAAA;;;;;;cAQW,oBAAA,WAA+B,2BAA2B;;KAY3D,SAAA;;;;;;;;iBASI,qBAAA,CACd,GAAA,UACA,UAAA,WAAqB,eAAA,IACrB,MAAA,EAAQ,YAAA,GACP,SAAA;;;;UC/Dc,WAAA;EF6B4C;EE3B3D,GAAA;EF0Dc;EExDd,KAAA;;EAEA,QAAA;EFsDwC;EEpDxC,IAAA;AAAA;;KAIU,SAAA,GAAY,MAAM,SAAS,SAAA;AF0EM;AAAA,UEvE5B,eAAA;EACf,WAAA;EACA,SAAA;EDTW;;;;ECcX,MAAA,EAAQ,MAAM;AAAA;;UAIC,YAAA;;EAEf,IAAA;;EAEA,MAAA,WAAiB,WAAA;;EAEjB,QAAA,CAAS,MAAA,EAAQ,SAAA,EAAW,GAAA,EAAK,eAAA,GAAkB,SAAA,CAAU,IAAA;AAAA;;;;;;iBAY/C,UAAA,CAAW,CAAwB,EAArB,SAAS;;KAO3B,aAAA;EACN,IAAA;EAAe,KAAA;AAAA;EACf,IAAA;AAAA;EACA,IAAA;AAAA;;;;;;iBAOU,UAAA,CAAW,CAAA,EAAG,SAAA,eAAwB,aAAa;;iBASnD,QAAA,CAAS,SAAA,UAAmB,OAAA,UAAiB,KAAA;;;;;;;;;;;;AD9D7D;;;;cEsBa,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqBlB,WAAA,GAAc,CAAA,CAAE,KAAK,QAAQ,iBAAA;;;;;;;;iBAoDzB,aAAA,CAAc,CAAS;;;;;;cA8D1B,WAAA,EAAa,YAAY,CAAC,aAAA"}
|
package/dist/transforms.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as RowTransform } from "./transform-CulePAbJ.mjs";
|
|
2
|
-
import { t as PartsParams } from "./parts-schema-
|
|
2
|
+
import { t as PartsParams } from "./parts-schema-CryML9F_.mjs";
|
|
3
3
|
import { PartsDocument } from "@murumets-ee/search-elasticsearch";
|
|
4
4
|
|
|
5
5
|
//#region src/transforms/carmaker-feed.d.ts
|
|
@@ -19,17 +19,17 @@ declare const carmakerFeedParamsSchema: import("zod").ZodObject<{
|
|
|
19
19
|
supplierCodePrefix: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
20
|
discountGroups: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>>;
|
|
21
21
|
}, "strip", import("zod").ZodTypeAny, {
|
|
22
|
+
supplierId: string;
|
|
22
23
|
brandId: string;
|
|
23
24
|
brandSlug: string;
|
|
24
|
-
supplierId: string;
|
|
25
25
|
supplierDisplayName: string;
|
|
26
26
|
importBatchId: string;
|
|
27
27
|
supplierCodePrefix?: string | undefined;
|
|
28
28
|
discountGroups?: Record<string, number> | undefined;
|
|
29
29
|
}, {
|
|
30
|
+
supplierId: string;
|
|
30
31
|
brandId: string;
|
|
31
32
|
brandSlug: string;
|
|
32
|
-
supplierId: string;
|
|
33
33
|
supplierDisplayName: string;
|
|
34
34
|
importBatchId: string;
|
|
35
35
|
supplierCodePrefix?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@murumets-ee/imports",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.44.0",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"drizzle-orm": "^0.45.2",
|
|
46
46
|
"exceljs": "^4.4.0",
|
|
47
47
|
"zod": "^3.24.1",
|
|
48
|
-
"@murumets-ee/core": "0.
|
|
49
|
-
"@murumets-ee/db": "0.
|
|
50
|
-
"@murumets-ee/entity": "0.
|
|
51
|
-
"@murumets-ee/logging": "0.
|
|
52
|
-
"@murumets-ee/queue": "0.
|
|
53
|
-
"@murumets-ee/search-elasticsearch": "0.
|
|
54
|
-
"@murumets-ee/storage": "0.
|
|
48
|
+
"@murumets-ee/core": "0.44.0",
|
|
49
|
+
"@murumets-ee/db": "0.44.0",
|
|
50
|
+
"@murumets-ee/entity": "0.44.0",
|
|
51
|
+
"@murumets-ee/logging": "0.44.0",
|
|
52
|
+
"@murumets-ee/queue": "0.44.0",
|
|
53
|
+
"@murumets-ee/search-elasticsearch": "0.44.0",
|
|
54
|
+
"@murumets-ee/storage": "0.44.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/node": "^20.19.42",
|