@infrab4a/connect 4.3.2-beta.1 → 4.3.2-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 +6 -2
- package/index.esm.js +4 -4
- package/package.json +1 -1
- package/src/utils/index.d.ts +2 -2
package/index.cjs.js
CHANGED
|
@@ -4315,8 +4315,8 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4315
4315
|
{
|
|
4316
4316
|
products: {
|
|
4317
4317
|
columnName: 'products',
|
|
4318
|
-
fields: ['product_id'],
|
|
4319
|
-
from: (value) => value.map((product) => product.product_id.toString()),
|
|
4318
|
+
fields: ['product_id', 'order'],
|
|
4319
|
+
from: (value) => lodash.sortBy(value, (row) => row.order).map((product) => product.product_id.toString()),
|
|
4320
4320
|
to: (productIds) => productIds.map((productId) => ({
|
|
4321
4321
|
product_id: +productId,
|
|
4322
4322
|
})),
|
|
@@ -5669,6 +5669,10 @@ Object.defineProperty(exports, 'set', {
|
|
|
5669
5669
|
enumerable: true,
|
|
5670
5670
|
get: function () { return lodash.set; }
|
|
5671
5671
|
});
|
|
5672
|
+
Object.defineProperty(exports, 'sortBy', {
|
|
5673
|
+
enumerable: true,
|
|
5674
|
+
get: function () { return lodash.sortBy; }
|
|
5675
|
+
});
|
|
5672
5676
|
Object.defineProperty(exports, 'unset', {
|
|
5673
5677
|
enumerable: true,
|
|
5674
5678
|
get: function () { return lodash.unset; }
|
package/index.esm.js
CHANGED
|
@@ -3,8 +3,8 @@ import { __decorate, __metadata, __values, __spreadArray, __read, __extends, __r
|
|
|
3
3
|
import { plainToInstance, instanceToPlain, Type, Expose } from 'class-transformer';
|
|
4
4
|
import { parseISO } from 'date-fns';
|
|
5
5
|
export { add, addBusinessDays, addDays, addMonths, addYears, endOfDay, format, formatISO9075, parseISO, startOfDay, sub } from 'date-fns';
|
|
6
|
-
import { isNil, isArray, first, last, flatten, compact, get, isString, each, unset, isObject, set, isNumber, isEmpty, chunk, isDate, isBoolean, isInteger, isNaN as isNaN$1, omit } from 'lodash';
|
|
7
|
-
export { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, unset } from 'lodash';
|
|
6
|
+
import { isNil, isArray, first, last, flatten, compact, get, isString, each, unset, isObject, set, isNumber, isEmpty, chunk, isDate, isBoolean, isInteger, isNaN as isNaN$1, sortBy, omit } from 'lodash';
|
|
7
|
+
export { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, sortBy, unset } from 'lodash';
|
|
8
8
|
import { debug } from 'debug';
|
|
9
9
|
import { CustomError } from 'ts-custom-error';
|
|
10
10
|
import axios from 'axios';
|
|
@@ -4309,8 +4309,8 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
|
|
|
4309
4309
|
{
|
|
4310
4310
|
products: {
|
|
4311
4311
|
columnName: 'products',
|
|
4312
|
-
fields: ['product_id'],
|
|
4313
|
-
from: (value) => value.map((product) => product.product_id.toString()),
|
|
4312
|
+
fields: ['product_id', 'order'],
|
|
4313
|
+
from: (value) => sortBy(value, (row) => row.order).map((product) => product.product_id.toString()),
|
|
4314
4314
|
to: (productIds) => productIds.map((productId) => ({
|
|
4315
4315
|
product_id: +productId,
|
|
4316
4316
|
})),
|
package/package.json
CHANGED
package/src/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { add, addBusinessDays, addDays, addMonths, addYears, Duration, endOfDay, format, formatISO9075, parseISO, startOfDay, sub } from 'date-fns';
|
|
2
|
-
import { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, unset } from 'lodash';
|
|
2
|
+
import { chunk, each, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, pick, set, sortBy, unset } from 'lodash';
|
|
3
3
|
export type DateDuration = Duration;
|
|
4
4
|
export * from './decorators';
|
|
5
5
|
export * from './get';
|
|
@@ -10,4 +10,4 @@ export * from './log.utils';
|
|
|
10
10
|
export * from './mixins';
|
|
11
11
|
export * from './parse-datetime';
|
|
12
12
|
export * from './types';
|
|
13
|
-
export { add,
|
|
13
|
+
export { add, addBusinessDays, addDays, addMonths, addYears, chunk, each, endOfDay, format, formatISO9075, get, isBoolean, isDate, isEmpty, isInteger, isNaN, isNil, isNumber, isObject, isString, now, omit, parseISO, pick, set, sortBy, startOfDay, sub, unset, };
|