@infrab4a/connect 4.23.1-beta.0 → 4.23.1-beta.2
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.cjs.js
CHANGED
|
@@ -342,6 +342,12 @@ class ProductErrors extends BaseModel {
|
|
|
342
342
|
this.errors[source] = errors.filter((error) => { var _a, _b; return !((_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a[source]) === null || _b === void 0 ? void 0 : _b.includes(error)); });
|
|
343
343
|
this.hasErrors = Object.values(this.errors).flat().length > 0;
|
|
344
344
|
}
|
|
345
|
+
getErrors(source) {
|
|
346
|
+
return this.errors[source];
|
|
347
|
+
}
|
|
348
|
+
getAllErrors() {
|
|
349
|
+
return this.errors;
|
|
350
|
+
}
|
|
345
351
|
static get identifiersFields() {
|
|
346
352
|
return ['productId'];
|
|
347
353
|
}
|
|
@@ -5850,6 +5856,8 @@ class ProductErrorsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHas
|
|
|
5850
5856
|
'name',
|
|
5851
5857
|
'slug',
|
|
5852
5858
|
'published',
|
|
5859
|
+
'group',
|
|
5860
|
+
'validity',
|
|
5853
5861
|
{ createdAt: { columnName: 'created_at' } },
|
|
5854
5862
|
{ updatedAt: { columnName: 'updated_at' } },
|
|
5855
5863
|
],
|
package/index.esm.js
CHANGED
|
@@ -336,6 +336,12 @@ class ProductErrors extends BaseModel {
|
|
|
336
336
|
this.errors[source] = errors.filter((error) => { var _a, _b; return !((_b = (_a = this.errors) === null || _a === void 0 ? void 0 : _a[source]) === null || _b === void 0 ? void 0 : _b.includes(error)); });
|
|
337
337
|
this.hasErrors = Object.values(this.errors).flat().length > 0;
|
|
338
338
|
}
|
|
339
|
+
getErrors(source) {
|
|
340
|
+
return this.errors[source];
|
|
341
|
+
}
|
|
342
|
+
getAllErrors() {
|
|
343
|
+
return this.errors;
|
|
344
|
+
}
|
|
339
345
|
static get identifiersFields() {
|
|
340
346
|
return ['productId'];
|
|
341
347
|
}
|
|
@@ -5844,6 +5850,8 @@ class ProductErrorsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHas
|
|
|
5844
5850
|
'name',
|
|
5845
5851
|
'slug',
|
|
5846
5852
|
'published',
|
|
5853
|
+
'group',
|
|
5854
|
+
'validity',
|
|
5847
5855
|
{ createdAt: { columnName: 'created_at' } },
|
|
5848
5856
|
{ updatedAt: { columnName: 'updated_at' } },
|
|
5849
5857
|
],
|
package/package.json
CHANGED
|
@@ -9,6 +9,8 @@ export declare class ProductErrors extends BaseModel<ProductErrors, ProductError
|
|
|
9
9
|
updatedAt: Date;
|
|
10
10
|
product: Product;
|
|
11
11
|
setErrors(source: string, errors: string[]): void;
|
|
12
|
+
getErrors(source: string): string[];
|
|
13
|
+
getAllErrors(): Record<string, string[]>;
|
|
12
14
|
static get identifiersFields(): ProductErrorsIdentifiers[];
|
|
13
15
|
}
|
|
14
16
|
export {};
|