@unchainedshop/core 4.3.3 → 4.3.5
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/lib/bulk-importer/createBulkImporter.d.ts +1 -1
- package/lib/bulk-importer/createBulkImporter.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/create.d.ts +40 -480
- package/lib/bulk-importer/handlers/assortment/create.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/create.js +1 -1
- package/lib/bulk-importer/handlers/assortment/create.js.map +1 -1
- package/lib/bulk-importer/handlers/assortment/remove.d.ts +2 -10
- package/lib/bulk-importer/handlers/assortment/remove.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/update.d.ts +40 -480
- package/lib/bulk-importer/handlers/assortment/update.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/update.js +1 -1
- package/lib/bulk-importer/handlers/assortment/update.js.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.d.ts +3 -15
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.js +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentChildren.js.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.d.ts +3 -15
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.js +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentFilters.js.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.d.ts +3 -15
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.js +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertAssortmentProducts.js.map +1 -1
- package/lib/bulk-importer/handlers/assortment/upsertMedia.d.ts +6 -54
- package/lib/bulk-importer/handlers/assortment/upsertMedia.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/filter/create.d.ts +7 -107
- package/lib/bulk-importer/handlers/filter/create.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/filter/create.js +1 -1
- package/lib/bulk-importer/handlers/filter/create.js.map +1 -1
- package/lib/bulk-importer/handlers/filter/remove.d.ts +1 -5
- package/lib/bulk-importer/handlers/filter/remove.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/filter/update.d.ts +7 -107
- package/lib/bulk-importer/handlers/filter/update.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/filter/update.js +1 -1
- package/lib/bulk-importer/handlers/filter/update.js.map +1 -1
- package/lib/bulk-importer/handlers/product/create.d.ts +61 -1155
- package/lib/bulk-importer/handlers/product/create.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/product/create.js +2 -2
- package/lib/bulk-importer/handlers/product/create.js.map +1 -1
- package/lib/bulk-importer/handlers/product/remove.d.ts +2 -10
- package/lib/bulk-importer/handlers/product/remove.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/product/update.d.ts +61 -1155
- package/lib/bulk-importer/handlers/product/update.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/product/update.js +2 -2
- package/lib/bulk-importer/handlers/product/update.js.map +1 -1
- package/lib/bulk-importer/handlers/product/upsertMedia.d.ts +6 -54
- package/lib/bulk-importer/handlers/product/upsertMedia.d.ts.map +1 -1
- package/lib/bulk-importer/handlers/product/upsertVariations.d.ts +4 -58
- package/lib/bulk-importer/handlers/product/upsertVariations.d.ts.map +1 -1
- package/lib/bulk-importer/upsertAsset.d.ts +3 -15
- package/lib/bulk-importer/upsertAsset.d.ts.map +1 -1
- package/lib/bulk-importer/upsertAsset.js +2 -2
- package/lib/bulk-importer/upsertAsset.js.map +1 -1
- package/lib/directors/BasePricingSheet.d.ts.map +1 -1
- package/lib/directors/BasePricingSheet.js.map +1 -1
- package/package.json +1 -1
- package/src/bulk-importer/createBulkImporter.ts +1 -1
- package/src/bulk-importer/handlers/assortment/create.ts +1 -1
- package/src/bulk-importer/handlers/assortment/update.ts +1 -1
- package/src/bulk-importer/handlers/assortment/upsertAssortmentChildren.ts +1 -1
- package/src/bulk-importer/handlers/assortment/upsertAssortmentFilters.ts +1 -1
- package/src/bulk-importer/handlers/assortment/upsertAssortmentProducts.ts +1 -1
- package/src/bulk-importer/handlers/filter/create.ts +1 -1
- package/src/bulk-importer/handlers/filter/update.ts +1 -1
- package/src/bulk-importer/handlers/product/create.ts +2 -2
- package/src/bulk-importer/handlers/product/update.ts +2 -2
- package/src/bulk-importer/upsertAsset.ts +2 -2
- package/src/directors/BasePricingSheet.ts +3 -2
- package/lib/factory/registerPhysicalWarehouse copy.d.ts +0 -10
- package/lib/factory/registerPhysicalWarehouse copy.d.ts.map +0 -1
- package/lib/factory/registerPhysicalWarehouse copy.js +0 -54
- package/lib/factory/registerPhysicalWarehouse copy.js.map +0 -1
- package/lib/factory/registerPhysicalWarehouse.d.ts +0 -10
- package/lib/factory/registerPhysicalWarehouse.d.ts.map +0 -1
- package/lib/factory/registerPhysicalWarehouse.js +0 -54
- package/lib/factory/registerPhysicalWarehouse.js.map +0 -1
- package/lib/factory/registerVirtualWarehouse.d.ts +0 -11
- package/lib/factory/registerVirtualWarehouse.d.ts.map +0 -1
- package/lib/factory/registerVirtualWarehouse.js +0 -51
- package/lib/factory/registerVirtualWarehouse.js.map +0 -1
- package/lib/factory/registerWarehouse.d.ts +0 -7
- package/lib/factory/registerWarehouse.d.ts.map +0 -1
- package/lib/factory/registerWarehouse.js +0 -35
- package/lib/factory/registerWarehouse.js.map +0 -1
- package/lib/factory/registerWorker copy.d.ts +0 -7
- package/lib/factory/registerWorker copy.d.ts.map +0 -1
- package/lib/factory/registerWorker copy.js +0 -35
- package/lib/factory/registerWorker copy.js.map +0 -1
|
@@ -12,7 +12,7 @@ export interface BulkImportOperationResult {
|
|
|
12
12
|
success: boolean;
|
|
13
13
|
}
|
|
14
14
|
export type BulkImportOperation<T> = {
|
|
15
|
-
payloadSchema?: z.
|
|
15
|
+
payloadSchema?: z.ZodObject;
|
|
16
16
|
} & ((payload: any, options: {
|
|
17
17
|
bulk: (collection: string) => typeof mongodb.BulkOperationBase;
|
|
18
18
|
createShouldUpsertIfIDExists?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createBulkImporter.d.ts","sourceRoot":"","sources":["../../src/bulk-importer/createBulkImporter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,KAAK,kBAAkB,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAC7D,OAAO,KAAK,eAAe,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AACD,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI;IAAE,aAAa,CAAC,EAAE,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"createBulkImporter.d.ts","sourceRoot":"","sources":["../../src/bulk-importer/createBulkImporter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAe,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,KAAK,kBAAkB,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,cAAc,MAA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AAE;;sCAQpC,QAAQ;kCAgBzC,QAAQ,gBACN,UAAU;;4CAxEe;YAAE,OAAO,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,QAAQ,CAAA;SAAE;;;;;;2BAnClE,MAAM;wBACT,MAAM;2BACH,MAAM;2BACN,MAAM;8BACH,MAAM;;;;;;yCA8EmB;YAAE,OAAO,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,QAAQ,CAAA;SAAE;MAyB9B,gBACrC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,QAAQ,CAAA;KAAE;EAsBzD;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAExE,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -8,272 +8,52 @@ export declare const AssortmentCreatePayloadSchema: z.ZodObject<{
|
|
|
8
8
|
isBase: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
isRoot: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
sequence: z.ZodNumber;
|
|
11
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
12
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
11
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
13
13
|
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14
14
|
title: z.ZodOptional<z.ZodString>;
|
|
15
15
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
16
16
|
slug: z.ZodOptional<z.ZodString>;
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
subtitle?: string | undefined;
|
|
20
|
-
slug?: string | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
title?: string | undefined;
|
|
23
|
-
subtitle?: string | undefined;
|
|
24
|
-
slug?: string | undefined;
|
|
25
|
-
}>>>;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
isActive: boolean;
|
|
28
|
-
sequence: number;
|
|
29
|
-
isBase?: boolean | undefined;
|
|
30
|
-
isRoot?: boolean | undefined;
|
|
31
|
-
meta?: Record<string, unknown> | undefined;
|
|
32
|
-
tags?: string[] | undefined;
|
|
33
|
-
content?: Record<string, {
|
|
34
|
-
title?: string | undefined;
|
|
35
|
-
subtitle?: string | undefined;
|
|
36
|
-
slug?: string | undefined;
|
|
37
|
-
}> | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
isActive: boolean;
|
|
40
|
-
sequence: number;
|
|
41
|
-
isBase?: boolean | undefined;
|
|
42
|
-
isRoot?: boolean | undefined;
|
|
43
|
-
meta?: Record<string, unknown> | undefined;
|
|
44
|
-
tags?: string[] | undefined;
|
|
45
|
-
content?: Record<string, {
|
|
46
|
-
title?: string | undefined;
|
|
47
|
-
subtitle?: string | undefined;
|
|
48
|
-
slug?: string | undefined;
|
|
49
|
-
}> | undefined;
|
|
50
|
-
}>;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
51
19
|
media: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
52
20
|
_id: z.ZodOptional<z.ZodString>;
|
|
53
21
|
asset: z.ZodObject<{
|
|
54
22
|
_id: z.ZodOptional<z.ZodString>;
|
|
55
23
|
url: z.ZodString;
|
|
56
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
24
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
57
25
|
fileName: z.ZodString;
|
|
58
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
59
|
-
},
|
|
60
|
-
url: string;
|
|
61
|
-
fileName: string;
|
|
62
|
-
_id?: string | undefined;
|
|
63
|
-
meta?: Record<string, unknown> | undefined;
|
|
64
|
-
headers?: Record<string, string> | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
url: string;
|
|
67
|
-
fileName: string;
|
|
68
|
-
_id?: string | undefined;
|
|
69
|
-
meta?: Record<string, unknown> | undefined;
|
|
70
|
-
headers?: Record<string, string> | undefined;
|
|
71
|
-
}>;
|
|
26
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
72
28
|
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
73
29
|
title: z.ZodOptional<z.ZodString>;
|
|
74
30
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
subtitle?: string | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
title?: string | undefined;
|
|
80
|
-
subtitle?: string | undefined;
|
|
81
|
-
}>>>;
|
|
82
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
33
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
84
|
-
},
|
|
85
|
-
asset: {
|
|
86
|
-
url: string;
|
|
87
|
-
fileName: string;
|
|
88
|
-
_id?: string | undefined;
|
|
89
|
-
meta?: Record<string, unknown> | undefined;
|
|
90
|
-
headers?: Record<string, string> | undefined;
|
|
91
|
-
};
|
|
92
|
-
_id?: string | undefined;
|
|
93
|
-
tags?: string[] | undefined;
|
|
94
|
-
sortKey?: number | undefined;
|
|
95
|
-
content?: Record<string, {
|
|
96
|
-
title?: string | undefined;
|
|
97
|
-
subtitle?: string | undefined;
|
|
98
|
-
}> | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
asset: {
|
|
101
|
-
url: string;
|
|
102
|
-
fileName: string;
|
|
103
|
-
_id?: string | undefined;
|
|
104
|
-
meta?: Record<string, unknown> | undefined;
|
|
105
|
-
headers?: Record<string, string> | undefined;
|
|
106
|
-
};
|
|
107
|
-
_id?: string | undefined;
|
|
108
|
-
tags?: string[] | undefined;
|
|
109
|
-
sortKey?: number | undefined;
|
|
110
|
-
content?: Record<string, {
|
|
111
|
-
title?: string | undefined;
|
|
112
|
-
subtitle?: string | undefined;
|
|
113
|
-
}> | undefined;
|
|
114
|
-
}>, "many">>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
115
35
|
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
36
|
_id: z.ZodOptional<z.ZodString>;
|
|
117
37
|
productId: z.ZodString;
|
|
118
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
38
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
39
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
120
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
121
|
-
},
|
|
122
|
-
productId: string;
|
|
123
|
-
_id?: string | undefined;
|
|
124
|
-
meta?: Record<string, any> | undefined;
|
|
125
|
-
tags?: string[] | undefined;
|
|
126
|
-
sortKey?: number | undefined;
|
|
127
|
-
}, {
|
|
128
|
-
productId: string;
|
|
129
|
-
_id?: string | undefined;
|
|
130
|
-
meta?: Record<string, any> | undefined;
|
|
131
|
-
tags?: string[] | undefined;
|
|
132
|
-
sortKey?: number | undefined;
|
|
133
|
-
}>, "many">>;
|
|
40
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
41
|
+
}, z.core.$strip>>>;
|
|
134
42
|
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
135
43
|
_id: z.ZodOptional<z.ZodString>;
|
|
136
44
|
assortmentId: z.ZodString;
|
|
137
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
45
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
138
46
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
140
|
-
},
|
|
141
|
-
assortmentId: string;
|
|
142
|
-
_id?: string | undefined;
|
|
143
|
-
meta?: Record<string, unknown> | undefined;
|
|
144
|
-
tags?: string[] | undefined;
|
|
145
|
-
sortKey?: number | undefined;
|
|
146
|
-
}, {
|
|
147
|
-
assortmentId: string;
|
|
148
|
-
_id?: string | undefined;
|
|
149
|
-
meta?: Record<string, unknown> | undefined;
|
|
150
|
-
tags?: string[] | undefined;
|
|
151
|
-
sortKey?: number | undefined;
|
|
152
|
-
}>, "many">>;
|
|
47
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
153
49
|
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
154
50
|
_id: z.ZodOptional<z.ZodString>;
|
|
155
51
|
filterId: z.ZodString;
|
|
156
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
52
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
157
53
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
158
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
_id?: string | undefined;
|
|
162
|
-
meta?: Record<string, unknown> | undefined;
|
|
163
|
-
tags?: string[] | undefined;
|
|
164
|
-
sortKey?: number | undefined;
|
|
165
|
-
}, {
|
|
166
|
-
filterId: string;
|
|
167
|
-
_id?: string | undefined;
|
|
168
|
-
meta?: Record<string, unknown> | undefined;
|
|
169
|
-
tags?: string[] | undefined;
|
|
170
|
-
sortKey?: number | undefined;
|
|
171
|
-
}>, "many">>;
|
|
172
|
-
}, "strip", z.ZodTypeAny, {
|
|
173
|
-
_id: string;
|
|
174
|
-
specification: {
|
|
175
|
-
isActive: boolean;
|
|
176
|
-
sequence: number;
|
|
177
|
-
isBase?: boolean | undefined;
|
|
178
|
-
isRoot?: boolean | undefined;
|
|
179
|
-
meta?: Record<string, unknown> | undefined;
|
|
180
|
-
tags?: string[] | undefined;
|
|
181
|
-
content?: Record<string, {
|
|
182
|
-
title?: string | undefined;
|
|
183
|
-
subtitle?: string | undefined;
|
|
184
|
-
slug?: string | undefined;
|
|
185
|
-
}> | undefined;
|
|
186
|
-
};
|
|
187
|
-
children?: {
|
|
188
|
-
assortmentId: string;
|
|
189
|
-
_id?: string | undefined;
|
|
190
|
-
meta?: Record<string, unknown> | undefined;
|
|
191
|
-
tags?: string[] | undefined;
|
|
192
|
-
sortKey?: number | undefined;
|
|
193
|
-
}[] | undefined;
|
|
194
|
-
filters?: {
|
|
195
|
-
filterId: string;
|
|
196
|
-
_id?: string | undefined;
|
|
197
|
-
meta?: Record<string, unknown> | undefined;
|
|
198
|
-
tags?: string[] | undefined;
|
|
199
|
-
sortKey?: number | undefined;
|
|
200
|
-
}[] | undefined;
|
|
201
|
-
products?: {
|
|
202
|
-
productId: string;
|
|
203
|
-
_id?: string | undefined;
|
|
204
|
-
meta?: Record<string, any> | undefined;
|
|
205
|
-
tags?: string[] | undefined;
|
|
206
|
-
sortKey?: number | undefined;
|
|
207
|
-
}[] | undefined;
|
|
208
|
-
media?: {
|
|
209
|
-
asset: {
|
|
210
|
-
url: string;
|
|
211
|
-
fileName: string;
|
|
212
|
-
_id?: string | undefined;
|
|
213
|
-
meta?: Record<string, unknown> | undefined;
|
|
214
|
-
headers?: Record<string, string> | undefined;
|
|
215
|
-
};
|
|
216
|
-
_id?: string | undefined;
|
|
217
|
-
tags?: string[] | undefined;
|
|
218
|
-
sortKey?: number | undefined;
|
|
219
|
-
content?: Record<string, {
|
|
220
|
-
title?: string | undefined;
|
|
221
|
-
subtitle?: string | undefined;
|
|
222
|
-
}> | undefined;
|
|
223
|
-
}[] | undefined;
|
|
224
|
-
}, {
|
|
225
|
-
_id: string;
|
|
226
|
-
specification: {
|
|
227
|
-
isActive: boolean;
|
|
228
|
-
sequence: number;
|
|
229
|
-
isBase?: boolean | undefined;
|
|
230
|
-
isRoot?: boolean | undefined;
|
|
231
|
-
meta?: Record<string, unknown> | undefined;
|
|
232
|
-
tags?: string[] | undefined;
|
|
233
|
-
content?: Record<string, {
|
|
234
|
-
title?: string | undefined;
|
|
235
|
-
subtitle?: string | undefined;
|
|
236
|
-
slug?: string | undefined;
|
|
237
|
-
}> | undefined;
|
|
238
|
-
};
|
|
239
|
-
children?: {
|
|
240
|
-
assortmentId: string;
|
|
241
|
-
_id?: string | undefined;
|
|
242
|
-
meta?: Record<string, unknown> | undefined;
|
|
243
|
-
tags?: string[] | undefined;
|
|
244
|
-
sortKey?: number | undefined;
|
|
245
|
-
}[] | undefined;
|
|
246
|
-
filters?: {
|
|
247
|
-
filterId: string;
|
|
248
|
-
_id?: string | undefined;
|
|
249
|
-
meta?: Record<string, unknown> | undefined;
|
|
250
|
-
tags?: string[] | undefined;
|
|
251
|
-
sortKey?: number | undefined;
|
|
252
|
-
}[] | undefined;
|
|
253
|
-
products?: {
|
|
254
|
-
productId: string;
|
|
255
|
-
_id?: string | undefined;
|
|
256
|
-
meta?: Record<string, any> | undefined;
|
|
257
|
-
tags?: string[] | undefined;
|
|
258
|
-
sortKey?: number | undefined;
|
|
259
|
-
}[] | undefined;
|
|
260
|
-
media?: {
|
|
261
|
-
asset: {
|
|
262
|
-
url: string;
|
|
263
|
-
fileName: string;
|
|
264
|
-
_id?: string | undefined;
|
|
265
|
-
meta?: Record<string, unknown> | undefined;
|
|
266
|
-
headers?: Record<string, string> | undefined;
|
|
267
|
-
};
|
|
268
|
-
_id?: string | undefined;
|
|
269
|
-
tags?: string[] | undefined;
|
|
270
|
-
sortKey?: number | undefined;
|
|
271
|
-
content?: Record<string, {
|
|
272
|
-
title?: string | undefined;
|
|
273
|
-
subtitle?: string | undefined;
|
|
274
|
-
}> | undefined;
|
|
275
|
-
}[] | undefined;
|
|
276
|
-
}>;
|
|
54
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
55
|
+
}, z.core.$strip>>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
277
57
|
declare function createAssortment(payload: z.infer<typeof AssortmentCreatePayloadSchema>, { logger, createShouldUpsertIfIDExists }: {
|
|
278
58
|
logger: any;
|
|
279
59
|
createShouldUpsertIfIDExists: any;
|
|
@@ -294,272 +74,52 @@ declare namespace createAssortment {
|
|
|
294
74
|
isBase: z.ZodOptional<z.ZodBoolean>;
|
|
295
75
|
isRoot: z.ZodOptional<z.ZodBoolean>;
|
|
296
76
|
sequence: z.ZodNumber;
|
|
297
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
298
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
77
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
299
79
|
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
300
80
|
title: z.ZodOptional<z.ZodString>;
|
|
301
81
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
302
82
|
slug: z.ZodOptional<z.ZodString>;
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
subtitle?: string | undefined;
|
|
306
|
-
slug?: string | undefined;
|
|
307
|
-
}, {
|
|
308
|
-
title?: string | undefined;
|
|
309
|
-
subtitle?: string | undefined;
|
|
310
|
-
slug?: string | undefined;
|
|
311
|
-
}>>>;
|
|
312
|
-
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
isActive: boolean;
|
|
314
|
-
sequence: number;
|
|
315
|
-
isBase?: boolean | undefined;
|
|
316
|
-
isRoot?: boolean | undefined;
|
|
317
|
-
meta?: Record<string, unknown> | undefined;
|
|
318
|
-
tags?: string[] | undefined;
|
|
319
|
-
content?: Record<string, {
|
|
320
|
-
title?: string | undefined;
|
|
321
|
-
subtitle?: string | undefined;
|
|
322
|
-
slug?: string | undefined;
|
|
323
|
-
}> | undefined;
|
|
324
|
-
}, {
|
|
325
|
-
isActive: boolean;
|
|
326
|
-
sequence: number;
|
|
327
|
-
isBase?: boolean | undefined;
|
|
328
|
-
isRoot?: boolean | undefined;
|
|
329
|
-
meta?: Record<string, unknown> | undefined;
|
|
330
|
-
tags?: string[] | undefined;
|
|
331
|
-
content?: Record<string, {
|
|
332
|
-
title?: string | undefined;
|
|
333
|
-
subtitle?: string | undefined;
|
|
334
|
-
slug?: string | undefined;
|
|
335
|
-
}> | undefined;
|
|
336
|
-
}>;
|
|
83
|
+
}, z.core.$strip>>>;
|
|
84
|
+
}, z.core.$strip>;
|
|
337
85
|
media: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
338
86
|
_id: z.ZodOptional<z.ZodString>;
|
|
339
87
|
asset: z.ZodObject<{
|
|
340
88
|
_id: z.ZodOptional<z.ZodString>;
|
|
341
89
|
url: z.ZodString;
|
|
342
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
90
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
343
91
|
fileName: z.ZodString;
|
|
344
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
345
|
-
},
|
|
346
|
-
url: string;
|
|
347
|
-
fileName: string;
|
|
348
|
-
_id?: string | undefined;
|
|
349
|
-
meta?: Record<string, unknown> | undefined;
|
|
350
|
-
headers?: Record<string, string> | undefined;
|
|
351
|
-
}, {
|
|
352
|
-
url: string;
|
|
353
|
-
fileName: string;
|
|
354
|
-
_id?: string | undefined;
|
|
355
|
-
meta?: Record<string, unknown> | undefined;
|
|
356
|
-
headers?: Record<string, string> | undefined;
|
|
357
|
-
}>;
|
|
92
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
358
94
|
content: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
359
95
|
title: z.ZodOptional<z.ZodString>;
|
|
360
96
|
subtitle: z.ZodOptional<z.ZodString>;
|
|
361
|
-
},
|
|
362
|
-
|
|
363
|
-
subtitle?: string | undefined;
|
|
364
|
-
}, {
|
|
365
|
-
title?: string | undefined;
|
|
366
|
-
subtitle?: string | undefined;
|
|
367
|
-
}>>>;
|
|
368
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
97
|
+
}, z.core.$strip>>>;
|
|
98
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
369
99
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
370
|
-
},
|
|
371
|
-
asset: {
|
|
372
|
-
url: string;
|
|
373
|
-
fileName: string;
|
|
374
|
-
_id?: string | undefined;
|
|
375
|
-
meta?: Record<string, unknown> | undefined;
|
|
376
|
-
headers?: Record<string, string> | undefined;
|
|
377
|
-
};
|
|
378
|
-
_id?: string | undefined;
|
|
379
|
-
tags?: string[] | undefined;
|
|
380
|
-
sortKey?: number | undefined;
|
|
381
|
-
content?: Record<string, {
|
|
382
|
-
title?: string | undefined;
|
|
383
|
-
subtitle?: string | undefined;
|
|
384
|
-
}> | undefined;
|
|
385
|
-
}, {
|
|
386
|
-
asset: {
|
|
387
|
-
url: string;
|
|
388
|
-
fileName: string;
|
|
389
|
-
_id?: string | undefined;
|
|
390
|
-
meta?: Record<string, unknown> | undefined;
|
|
391
|
-
headers?: Record<string, string> | undefined;
|
|
392
|
-
};
|
|
393
|
-
_id?: string | undefined;
|
|
394
|
-
tags?: string[] | undefined;
|
|
395
|
-
sortKey?: number | undefined;
|
|
396
|
-
content?: Record<string, {
|
|
397
|
-
title?: string | undefined;
|
|
398
|
-
subtitle?: string | undefined;
|
|
399
|
-
}> | undefined;
|
|
400
|
-
}>, "many">>;
|
|
100
|
+
}, z.core.$strip>>>;
|
|
401
101
|
products: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
402
102
|
_id: z.ZodOptional<z.ZodString>;
|
|
403
103
|
productId: z.ZodString;
|
|
404
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
104
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
405
105
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
406
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
407
|
-
},
|
|
408
|
-
productId: string;
|
|
409
|
-
_id?: string | undefined;
|
|
410
|
-
meta?: Record<string, any> | undefined;
|
|
411
|
-
tags?: string[] | undefined;
|
|
412
|
-
sortKey?: number | undefined;
|
|
413
|
-
}, {
|
|
414
|
-
productId: string;
|
|
415
|
-
_id?: string | undefined;
|
|
416
|
-
meta?: Record<string, any> | undefined;
|
|
417
|
-
tags?: string[] | undefined;
|
|
418
|
-
sortKey?: number | undefined;
|
|
419
|
-
}>, "many">>;
|
|
106
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
107
|
+
}, z.core.$strip>>>;
|
|
420
108
|
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
421
109
|
_id: z.ZodOptional<z.ZodString>;
|
|
422
110
|
assortmentId: z.ZodString;
|
|
423
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
111
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
424
112
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
425
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
426
|
-
},
|
|
427
|
-
assortmentId: string;
|
|
428
|
-
_id?: string | undefined;
|
|
429
|
-
meta?: Record<string, unknown> | undefined;
|
|
430
|
-
tags?: string[] | undefined;
|
|
431
|
-
sortKey?: number | undefined;
|
|
432
|
-
}, {
|
|
433
|
-
assortmentId: string;
|
|
434
|
-
_id?: string | undefined;
|
|
435
|
-
meta?: Record<string, unknown> | undefined;
|
|
436
|
-
tags?: string[] | undefined;
|
|
437
|
-
sortKey?: number | undefined;
|
|
438
|
-
}>, "many">>;
|
|
113
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
439
115
|
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
440
116
|
_id: z.ZodOptional<z.ZodString>;
|
|
441
117
|
filterId: z.ZodString;
|
|
442
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
118
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
443
119
|
sortKey: z.ZodOptional<z.ZodNumber>;
|
|
444
|
-
meta: z.ZodOptional<z.ZodRecord<z.
|
|
445
|
-
},
|
|
446
|
-
|
|
447
|
-
_id?: string | undefined;
|
|
448
|
-
meta?: Record<string, unknown> | undefined;
|
|
449
|
-
tags?: string[] | undefined;
|
|
450
|
-
sortKey?: number | undefined;
|
|
451
|
-
}, {
|
|
452
|
-
filterId: string;
|
|
453
|
-
_id?: string | undefined;
|
|
454
|
-
meta?: Record<string, unknown> | undefined;
|
|
455
|
-
tags?: string[] | undefined;
|
|
456
|
-
sortKey?: number | undefined;
|
|
457
|
-
}>, "many">>;
|
|
458
|
-
}, "strip", z.ZodTypeAny, {
|
|
459
|
-
_id: string;
|
|
460
|
-
specification: {
|
|
461
|
-
isActive: boolean;
|
|
462
|
-
sequence: number;
|
|
463
|
-
isBase?: boolean | undefined;
|
|
464
|
-
isRoot?: boolean | undefined;
|
|
465
|
-
meta?: Record<string, unknown> | undefined;
|
|
466
|
-
tags?: string[] | undefined;
|
|
467
|
-
content?: Record<string, {
|
|
468
|
-
title?: string | undefined;
|
|
469
|
-
subtitle?: string | undefined;
|
|
470
|
-
slug?: string | undefined;
|
|
471
|
-
}> | undefined;
|
|
472
|
-
};
|
|
473
|
-
children?: {
|
|
474
|
-
assortmentId: string;
|
|
475
|
-
_id?: string | undefined;
|
|
476
|
-
meta?: Record<string, unknown> | undefined;
|
|
477
|
-
tags?: string[] | undefined;
|
|
478
|
-
sortKey?: number | undefined;
|
|
479
|
-
}[] | undefined;
|
|
480
|
-
filters?: {
|
|
481
|
-
filterId: string;
|
|
482
|
-
_id?: string | undefined;
|
|
483
|
-
meta?: Record<string, unknown> | undefined;
|
|
484
|
-
tags?: string[] | undefined;
|
|
485
|
-
sortKey?: number | undefined;
|
|
486
|
-
}[] | undefined;
|
|
487
|
-
products?: {
|
|
488
|
-
productId: string;
|
|
489
|
-
_id?: string | undefined;
|
|
490
|
-
meta?: Record<string, any> | undefined;
|
|
491
|
-
tags?: string[] | undefined;
|
|
492
|
-
sortKey?: number | undefined;
|
|
493
|
-
}[] | undefined;
|
|
494
|
-
media?: {
|
|
495
|
-
asset: {
|
|
496
|
-
url: string;
|
|
497
|
-
fileName: string;
|
|
498
|
-
_id?: string | undefined;
|
|
499
|
-
meta?: Record<string, unknown> | undefined;
|
|
500
|
-
headers?: Record<string, string> | undefined;
|
|
501
|
-
};
|
|
502
|
-
_id?: string | undefined;
|
|
503
|
-
tags?: string[] | undefined;
|
|
504
|
-
sortKey?: number | undefined;
|
|
505
|
-
content?: Record<string, {
|
|
506
|
-
title?: string | undefined;
|
|
507
|
-
subtitle?: string | undefined;
|
|
508
|
-
}> | undefined;
|
|
509
|
-
}[] | undefined;
|
|
510
|
-
}, {
|
|
511
|
-
_id: string;
|
|
512
|
-
specification: {
|
|
513
|
-
isActive: boolean;
|
|
514
|
-
sequence: number;
|
|
515
|
-
isBase?: boolean | undefined;
|
|
516
|
-
isRoot?: boolean | undefined;
|
|
517
|
-
meta?: Record<string, unknown> | undefined;
|
|
518
|
-
tags?: string[] | undefined;
|
|
519
|
-
content?: Record<string, {
|
|
520
|
-
title?: string | undefined;
|
|
521
|
-
subtitle?: string | undefined;
|
|
522
|
-
slug?: string | undefined;
|
|
523
|
-
}> | undefined;
|
|
524
|
-
};
|
|
525
|
-
children?: {
|
|
526
|
-
assortmentId: string;
|
|
527
|
-
_id?: string | undefined;
|
|
528
|
-
meta?: Record<string, unknown> | undefined;
|
|
529
|
-
tags?: string[] | undefined;
|
|
530
|
-
sortKey?: number | undefined;
|
|
531
|
-
}[] | undefined;
|
|
532
|
-
filters?: {
|
|
533
|
-
filterId: string;
|
|
534
|
-
_id?: string | undefined;
|
|
535
|
-
meta?: Record<string, unknown> | undefined;
|
|
536
|
-
tags?: string[] | undefined;
|
|
537
|
-
sortKey?: number | undefined;
|
|
538
|
-
}[] | undefined;
|
|
539
|
-
products?: {
|
|
540
|
-
productId: string;
|
|
541
|
-
_id?: string | undefined;
|
|
542
|
-
meta?: Record<string, any> | undefined;
|
|
543
|
-
tags?: string[] | undefined;
|
|
544
|
-
sortKey?: number | undefined;
|
|
545
|
-
}[] | undefined;
|
|
546
|
-
media?: {
|
|
547
|
-
asset: {
|
|
548
|
-
url: string;
|
|
549
|
-
fileName: string;
|
|
550
|
-
_id?: string | undefined;
|
|
551
|
-
meta?: Record<string, unknown> | undefined;
|
|
552
|
-
headers?: Record<string, string> | undefined;
|
|
553
|
-
};
|
|
554
|
-
_id?: string | undefined;
|
|
555
|
-
tags?: string[] | undefined;
|
|
556
|
-
sortKey?: number | undefined;
|
|
557
|
-
content?: Record<string, {
|
|
558
|
-
title?: string | undefined;
|
|
559
|
-
subtitle?: string | undefined;
|
|
560
|
-
}> | undefined;
|
|
561
|
-
}[] | undefined;
|
|
562
|
-
}>;
|
|
120
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
122
|
+
}, z.core.$strip>;
|
|
563
123
|
}
|
|
564
124
|
export default createAssortment;
|
|
565
125
|
//# sourceMappingURL=create.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/bulk-importer/handlers/assortment/create.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../src/bulk-importer/handlers/assortment/create.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBxC,CAAC;AAEH,iBAA8B,gBAAgB,CAC5C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,EACtD,EAAE,MAAM,EAAE,4BAA4B,EAAE;;;CAAA,EACxC,YAAY,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAA;CAAE;;;;;GA6EvD;kBAhF6B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAAhB,gBAAgB"}
|
|
@@ -12,7 +12,7 @@ export const AssortmentCreatePayloadSchema = z.object({
|
|
|
12
12
|
isRoot: z.boolean().optional(),
|
|
13
13
|
sequence: z.number(),
|
|
14
14
|
tags: z.array(z.string()).optional(),
|
|
15
|
-
meta: z.record(z.
|
|
15
|
+
meta: z.record(z.any(), z.any()).optional(),
|
|
16
16
|
content: z
|
|
17
17
|
.record(z.string(), // locale
|
|
18
18
|
z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../src/bulk-importer/handlers/assortment/create.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,oCAAoC,CAAC;AACxE,OAAO,wBAAwB,EAAE,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC/F,OAAO,uBAAuB,EAAE,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAC/F,OAAO,wBAAwB,EAAE,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAClG,OAAO,WAA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,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,aAAa,CAAgB,EAAE,EAAE;YACnF,OAAO;gBACL,MAAM;gBACN,GAAG,aAAa;aACjB,CAAC;QACJ,CAAC,CAAC,CACH,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAAC;IACrD,MAAM,wBAAwB,CAC5B;QACE,QAAQ,EAAE,QAAQ,IAAI,EAAE;QACxB,YAAY,EAAE,GAAG;KAClB,EACD,YAAY,CACb,CAAC;IAEF,MAAM,CAAC,KAAK,CAAC,4BAA4B,EAAE,QAAQ,CAAC,CAAC;IACrD,MAAM,wBAAwB,CAC5B;QACE,QAAQ,EAAE,QAAQ,IAAI,EAAE;QACxB,YAAY,EAAE,GAAG;KAClB,EACD,YAAY,CACb,CAAC;IAEF,MAAM,CAAC,KAAK,CAAC,2BAA2B,EAAE,OAAO,CAAC,CAAC;IACnD,MAAM,uBAAuB,CAC3B;QACE,OAAO,EAAE,OAAO,IAAI,EAAE;QACtB,YAAY,EAAE,GAAG;KAClB,EACD,YAAY,CACb,CAAC;IAEF,MAAM,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;IAC/C,MAAM,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,EAAE,YAAY,EAAE,GAAG,EAAE,EAAE,YAAY,CAAC,CAAC;IAE3E,OAAO;QACL,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,QAAQ;QACnB,GAAG;QACH,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC;AAED,gBAAgB,CAAC,aAAa,GAAG,6BAA6B,CAAC"}
|
|
@@ -2,11 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { Modules } from '../../../modules.js';
|
|
3
3
|
export declare const AssortmentRemovePayloadSchema: z.ZodObject<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
|
-
},
|
|
6
|
-
_id: string;
|
|
7
|
-
}, {
|
|
8
|
-
_id: string;
|
|
9
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
10
6
|
declare function removeAssortment(payload: z.infer<typeof AssortmentRemovePayloadSchema>, { logger }: {
|
|
11
7
|
logger: any;
|
|
12
8
|
}, unchainedAPI: {
|
|
@@ -20,11 +16,7 @@ declare function removeAssortment(payload: z.infer<typeof AssortmentRemovePayloa
|
|
|
20
16
|
declare namespace removeAssortment {
|
|
21
17
|
var payloadSchema: z.ZodObject<{
|
|
22
18
|
_id: z.ZodString;
|
|
23
|
-
},
|
|
24
|
-
_id: string;
|
|
25
|
-
}, {
|
|
26
|
-
_id: string;
|
|
27
|
-
}>;
|
|
19
|
+
}, z.core.$strip>;
|
|
28
20
|
}
|
|
29
21
|
export default removeAssortment;
|
|
30
22
|
//# sourceMappingURL=remove.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../../src/bulk-importer/handlers/assortment/remove.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../../src/bulk-importer/handlers/assortment/remove.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,iBAA8B,gBAAgB,CAC5C,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,EACtD,EAAE,MAAM,EAAE;;CAAA,EACV,YAAY,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE;;;;;GAanC;kBAhB6B,gBAAgB;;;;;eAAhB,gBAAgB"}
|