@infrab4a/connect 4.23.0-beta.5 → 4.23.0-beta.7
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 +2 -14
- package/index.esm.js +2 -14
- package/package.json +1 -1
- package/src/domain/catalog/models/product-errors.d.ts +2 -5
package/index.cjs.js
CHANGED
|
@@ -334,19 +334,8 @@ tslib.__decorate([
|
|
|
334
334
|
], Product.prototype, "kitProducts", void 0);
|
|
335
335
|
|
|
336
336
|
class ProductErrors extends BaseModel {
|
|
337
|
-
constructor() {
|
|
338
|
-
super(...arguments);
|
|
339
|
-
this.errors = [];
|
|
340
|
-
}
|
|
341
|
-
setErrors(errors) {
|
|
342
|
-
this.errors = errors;
|
|
343
|
-
this.hasErrors = this.errors.length > 0;
|
|
344
|
-
}
|
|
345
|
-
getErrors() {
|
|
346
|
-
return this.errors;
|
|
347
|
-
}
|
|
348
337
|
static get identifiersFields() {
|
|
349
|
-
return ['productId', 'source'];
|
|
338
|
+
return ['productId', 'source', 'error'];
|
|
350
339
|
}
|
|
351
340
|
}
|
|
352
341
|
tslib.__decorate([
|
|
@@ -5840,10 +5829,9 @@ class ProductErrorsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHas
|
|
|
5840
5829
|
},
|
|
5841
5830
|
},
|
|
5842
5831
|
'source',
|
|
5843
|
-
|
|
5832
|
+
'error',
|
|
5844
5833
|
{ createdAt: { columnName: 'created_at' } },
|
|
5845
5834
|
{ updatedAt: { columnName: 'updated_at' } },
|
|
5846
|
-
{ errors: { columnName: 'errors', type: HasuraGraphQLColumnType.Jsonb } },
|
|
5847
5835
|
{
|
|
5848
5836
|
product: {
|
|
5849
5837
|
columnName: 'product',
|
package/index.esm.js
CHANGED
|
@@ -328,19 +328,8 @@ __decorate([
|
|
|
328
328
|
], Product.prototype, "kitProducts", void 0);
|
|
329
329
|
|
|
330
330
|
class ProductErrors extends BaseModel {
|
|
331
|
-
constructor() {
|
|
332
|
-
super(...arguments);
|
|
333
|
-
this.errors = [];
|
|
334
|
-
}
|
|
335
|
-
setErrors(errors) {
|
|
336
|
-
this.errors = errors;
|
|
337
|
-
this.hasErrors = this.errors.length > 0;
|
|
338
|
-
}
|
|
339
|
-
getErrors() {
|
|
340
|
-
return this.errors;
|
|
341
|
-
}
|
|
342
331
|
static get identifiersFields() {
|
|
343
|
-
return ['productId', 'source'];
|
|
332
|
+
return ['productId', 'source', 'error'];
|
|
344
333
|
}
|
|
345
334
|
}
|
|
346
335
|
__decorate([
|
|
@@ -5834,10 +5823,9 @@ class ProductErrorsHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHas
|
|
|
5834
5823
|
},
|
|
5835
5824
|
},
|
|
5836
5825
|
'source',
|
|
5837
|
-
|
|
5826
|
+
'error',
|
|
5838
5827
|
{ createdAt: { columnName: 'created_at' } },
|
|
5839
5828
|
{ updatedAt: { columnName: 'updated_at' } },
|
|
5840
|
-
{ errors: { columnName: 'errors', type: HasuraGraphQLColumnType.Jsonb } },
|
|
5841
5829
|
{
|
|
5842
5830
|
product: {
|
|
5843
5831
|
columnName: 'product',
|
package/package.json
CHANGED
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { BaseModel } from '../../generic/model';
|
|
2
2
|
import { Product } from './product';
|
|
3
|
-
type ProductErrorsIdentifiers = 'productId' | 'source';
|
|
3
|
+
type ProductErrorsIdentifiers = 'productId' | 'source' | 'error';
|
|
4
4
|
export declare class ProductErrors extends BaseModel<ProductErrors, ProductErrorsIdentifiers> {
|
|
5
5
|
productId: string;
|
|
6
6
|
source: string;
|
|
7
|
-
|
|
8
|
-
hasErrors: boolean;
|
|
7
|
+
error: string;
|
|
9
8
|
createdAt: Date;
|
|
10
9
|
updatedAt: Date;
|
|
11
10
|
product: Product;
|
|
12
|
-
setErrors(errors: string[]): void;
|
|
13
|
-
getErrors(): string[];
|
|
14
11
|
static get identifiersFields(): ProductErrorsIdentifiers[];
|
|
15
12
|
}
|
|
16
13
|
export {};
|