@commercetools/sync-actions 5.0.0 → 5.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @commercetools/sync-actions
2
2
 
3
+ ## 5.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1803](https://github.com/commercetools/nodejs/pull/1803) [`823985ae`](https://github.com/commercetools/nodejs/commit/823985ae67465673c26f296b68681f255230d571) Thanks [@nicolasnieto92](https://github.com/nicolasnieto92)! - Add createSyncStandalonePrices export to index for supporting prices sync actions
8
+
3
9
  ## 5.0.0
4
10
 
5
11
  ### Major Changes
@@ -682,7 +682,7 @@ function buildReferenceActions(_ref4) {
682
682
  });
683
683
  }
684
684
 
685
- var baseActionsList$i = [{
685
+ var baseActionsList$j = [{
686
686
  action: 'changeName',
687
687
  key: 'name'
688
688
  }, {
@@ -719,10 +719,10 @@ var referenceActionsList$3 = [{
719
719
  * SYNC FUNCTIONS
720
720
  */
721
721
 
722
- function actionsMapBase$i(diff, oldObj, newObj) {
722
+ function actionsMapBase$j(diff, oldObj, newObj) {
723
723
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
724
724
  return buildBaseAttributesActions({
725
- actions: baseActionsList$i,
725
+ actions: baseActionsList$j,
726
726
  diff: diff,
727
727
  oldObj: oldObj,
728
728
  newObj: newObj,
@@ -826,7 +826,7 @@ function createCategoryMapActions(mapActionGroup, syncActionConfig) {
826
826
  return function doMapActions(diff, newObj, oldObj) {
827
827
  var allActions = [];
828
828
  allActions.push(mapActionGroup('base', function () {
829
- return actionsMapBase$i(diff, oldObj, newObj, syncActionConfig);
829
+ return actionsMapBase$j(diff, oldObj, newObj, syncActionConfig);
830
830
  }));
831
831
  allActions.push(mapActionGroup('references', function () {
832
832
  return actionsMapReferences$3(diff, oldObj, newObj);
@@ -862,7 +862,7 @@ var categories = (function (actionGroupList, syncActionConfig) {
862
862
  };
863
863
  });
864
864
 
865
- var baseActionsList$h = [{
865
+ var baseActionsList$i = [{
866
866
  action: 'setSalutation',
867
867
  key: 'salutation'
868
868
  }, {
@@ -922,10 +922,10 @@ var referenceActionsList$2 = [{
922
922
  * SYNC FUNCTIONS
923
923
  */
924
924
 
925
- function actionsMapBase$h(diff, oldObj, newObj) {
925
+ function actionsMapBase$i(diff, oldObj, newObj) {
926
926
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
927
927
  return buildBaseAttributesActions({
928
- actions: baseActionsList$h,
928
+ actions: baseActionsList$i,
929
929
  diff: diff,
930
930
  oldObj: oldObj,
931
931
  newObj: newObj,
@@ -1009,7 +1009,7 @@ function createCustomerMapActions(mapActionGroup, syncActionConfig) {
1009
1009
  return function doMapActions(diff, newObj, oldObj) {
1010
1010
  var allActions = [];
1011
1011
  allActions.push(mapActionGroup('base', function () {
1012
- return actionsMapBase$h(diff, oldObj, newObj, syncActionConfig);
1012
+ return actionsMapBase$i(diff, oldObj, newObj, syncActionConfig);
1013
1013
  }));
1014
1014
  allActions.push(mapActionGroup('references', function () {
1015
1015
  return actionsMapReferences$2(diff, oldObj, newObj);
@@ -1051,7 +1051,7 @@ var customers = (function (actionGroupList, syncActionConfig) {
1051
1051
  };
1052
1052
  });
1053
1053
 
1054
- var baseActionsList$g = [{
1054
+ var baseActionsList$h = [{
1055
1055
  action: 'changeQuantity',
1056
1056
  key: 'quantityOnStock',
1057
1057
  actionKey: 'quantity'
@@ -1070,10 +1070,10 @@ var referenceActionsList$1 = [{
1070
1070
  * SYNC FUNCTIONS
1071
1071
  */
1072
1072
 
1073
- function actionsMapBase$g(diff, oldObj, newObj) {
1073
+ function actionsMapBase$h(diff, oldObj, newObj) {
1074
1074
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1075
1075
  return buildBaseAttributesActions({
1076
- actions: baseActionsList$g,
1076
+ actions: baseActionsList$h,
1077
1077
  diff: diff,
1078
1078
  oldObj: oldObj,
1079
1079
  newObj: newObj,
@@ -1093,7 +1093,7 @@ function createInventoryMapActions(mapActionGroup, syncActionConfig) {
1093
1093
  return function doMapActions(diff, newObj, oldObj) {
1094
1094
  var allActions = [];
1095
1095
  allActions.push(mapActionGroup('base', function () {
1096
- return actionsMapBase$g(diff, oldObj, newObj, syncActionConfig);
1096
+ return actionsMapBase$h(diff, oldObj, newObj, syncActionConfig);
1097
1097
  }));
1098
1098
  allActions.push(mapActionGroup('references', function () {
1099
1099
  return actionsMapReferences$1(diff, oldObj, newObj);
@@ -1188,7 +1188,7 @@ function findMatchingPairs(diff) {
1188
1188
 
1189
1189
  var REGEX_NUMBER$2 = new RegExp(/^\d+$/);
1190
1190
  var REGEX_UNDERSCORE_NUMBER$2 = new RegExp(/^_\d+$/);
1191
- var baseActionsList$f = [{
1191
+ var baseActionsList$g = [{
1192
1192
  action: 'changeName',
1193
1193
  key: 'name'
1194
1194
  }, {
@@ -1595,10 +1595,10 @@ function _buildVariantAssetsActions(diffAssets, oldVariant, newVariant) {
1595
1595
  */
1596
1596
 
1597
1597
 
1598
- function actionsMapBase$f(diff, oldObj, newObj) {
1598
+ function actionsMapBase$g(diff, oldObj, newObj) {
1599
1599
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1600
1600
  return buildBaseAttributesActions({
1601
- actions: baseActionsList$f,
1601
+ actions: baseActionsList$g,
1602
1602
  diff: diff,
1603
1603
  oldObj: oldObj,
1604
1604
  newObj: newObj,
@@ -1839,7 +1839,7 @@ function createProductMapActions(mapActionGroup, syncActionConfig) {
1839
1839
  return actionsMapRemoveVariants(diff, oldObj, newObj);
1840
1840
  }));
1841
1841
  allActions.push(mapActionGroup('base', function () {
1842
- return actionsMapBase$f(diff, oldObj, newObj, syncActionConfig);
1842
+ return actionsMapBase$g(diff, oldObj, newObj, syncActionConfig);
1843
1843
  }));
1844
1844
  allActions.push(mapActionGroup('meta', function () {
1845
1845
  return actionsMapMeta(diff, oldObj, newObj);
@@ -1914,7 +1914,7 @@ var isRemoveAction = function isRemoveAction(key, resource) {
1914
1914
  return REGEX_UNDERSCORE_NUMBER$1.test(key) && Number(resource[2]) === 0;
1915
1915
  };
1916
1916
 
1917
- var baseActionsList$e = [{
1917
+ var baseActionsList$f = [{
1918
1918
  action: 'changeOrderState',
1919
1919
  key: 'orderState'
1920
1920
  }, {
@@ -1928,10 +1928,10 @@ var baseActionsList$e = [{
1928
1928
  * SYNC FUNCTIONS
1929
1929
  */
1930
1930
 
1931
- function actionsMapBase$e(diff, oldObj, newObj) {
1931
+ function actionsMapBase$f(diff, oldObj, newObj) {
1932
1932
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1933
1933
  return buildBaseAttributesActions({
1934
- actions: baseActionsList$e,
1934
+ actions: baseActionsList$f,
1935
1935
  diff: diff,
1936
1936
  oldObj: oldObj,
1937
1937
  newObj: newObj,
@@ -2064,7 +2064,7 @@ function createOrderMapActions(mapActionGroup, syncActionConfig) {
2064
2064
  }
2065
2065
 
2066
2066
  allActions.push(mapActionGroup('base', function () {
2067
- return actionsMapBase$e(diff, oldObj, newObj, syncActionConfig);
2067
+ return actionsMapBase$f(diff, oldObj, newObj, syncActionConfig);
2068
2068
  }));
2069
2069
  allActions.push(mapActionGroup('deliveries', function () {
2070
2070
  return actionsMapDeliveries(diff, oldObj, newObj);
@@ -2100,7 +2100,7 @@ var orders = (function (actionGroupList, syncActionConfig) {
2100
2100
  };
2101
2101
  });
2102
2102
 
2103
- var baseActionsList$d = [{
2103
+ var baseActionsList$e = [{
2104
2104
  action: 'changeIsActive',
2105
2105
  key: 'isActive'
2106
2106
  }, {
@@ -2128,10 +2128,10 @@ var baseActionsList$d = [{
2128
2128
  action: 'setKey',
2129
2129
  key: 'key'
2130
2130
  }];
2131
- function actionsMapBase$d(diff, oldObj, newObj) {
2131
+ function actionsMapBase$e(diff, oldObj, newObj) {
2132
2132
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2133
2133
  return buildBaseAttributesActions({
2134
- actions: baseActionsList$d,
2134
+ actions: baseActionsList$e,
2135
2135
  diff: diff,
2136
2136
  oldObj: oldObj,
2137
2137
  newObj: newObj,
@@ -2172,7 +2172,7 @@ function createProductDiscountsMapActions(mapActionGroup, syncActionConfig) {
2172
2172
  return function doMapActions(diff, newObj, oldObj) {
2173
2173
  var allActions = [];
2174
2174
  allActions.push(mapActionGroup('base', function () {
2175
- return actionsMapBase$d(diff, oldObj, newObj, syncActionConfig);
2175
+ return actionsMapBase$e(diff, oldObj, newObj, syncActionConfig);
2176
2176
  }));
2177
2177
  return combineValidityActions(flatten__default["default"](allActions));
2178
2178
  };
@@ -2188,7 +2188,7 @@ var productDiscounts = (function (actionGroupList) {
2188
2188
  };
2189
2189
  });
2190
2190
 
2191
- var baseActionsList$c = [{
2191
+ var baseActionsList$d = [{
2192
2192
  action: 'changeIsActive',
2193
2193
  key: 'isActive'
2194
2194
  }, {
@@ -2219,10 +2219,10 @@ var baseActionsList$c = [{
2219
2219
  action: 'changeGroups',
2220
2220
  key: 'groups'
2221
2221
  }];
2222
- function actionsMapBase$c(diff, oldObj, newObj) {
2222
+ function actionsMapBase$d(diff, oldObj, newObj) {
2223
2223
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2224
2224
  return buildBaseAttributesActions({
2225
- actions: baseActionsList$c,
2225
+ actions: baseActionsList$d,
2226
2226
  diff: diff,
2227
2227
  oldObj: oldObj,
2228
2228
  newObj: newObj,
@@ -2234,7 +2234,7 @@ function createDiscountCodesMapActions(mapActionGroup, syncActionConfig) {
2234
2234
  return function doMapActions(diff, newObj, oldObj) {
2235
2235
  var allActions = [];
2236
2236
  allActions.push(mapActionGroup('base', function () {
2237
- return actionsMapBase$c(diff, oldObj, newObj, syncActionConfig);
2237
+ return actionsMapBase$d(diff, oldObj, newObj, syncActionConfig);
2238
2238
  }));
2239
2239
  allActions.push(mapActionGroup('custom', function () {
2240
2240
  return actionsMapCustom(diff, newObj, oldObj);
@@ -2262,17 +2262,17 @@ var discountCodes = (function (actionGroupList) {
2262
2262
  };
2263
2263
  });
2264
2264
 
2265
- var baseActionsList$b = [{
2265
+ var baseActionsList$c = [{
2266
2266
  action: 'changeName',
2267
2267
  key: 'name'
2268
2268
  }, {
2269
2269
  action: 'setKey',
2270
2270
  key: 'key'
2271
2271
  }];
2272
- function actionsMapBase$b(diff, oldObj, newObj) {
2272
+ function actionsMapBase$c(diff, oldObj, newObj) {
2273
2273
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2274
2274
  return buildBaseAttributesActions({
2275
- actions: baseActionsList$b,
2275
+ actions: baseActionsList$c,
2276
2276
  diff: diff,
2277
2277
  oldObj: oldObj,
2278
2278
  newObj: newObj,
@@ -2284,7 +2284,7 @@ function createCustomerGroupMapActions(mapActionGroup, syncActionConfig) {
2284
2284
  return function doMapActions(diff, newObj, oldObj) {
2285
2285
  var allActions = [];
2286
2286
  allActions.push(mapActionGroup('base', function () {
2287
- return actionsMapBase$b(diff, oldObj, newObj, syncActionConfig);
2287
+ return actionsMapBase$c(diff, oldObj, newObj, syncActionConfig);
2288
2288
  }));
2289
2289
  allActions.push(mapActionGroup('custom', function () {
2290
2290
  return actionsMapCustom(diff, newObj, oldObj);
@@ -2303,7 +2303,7 @@ var customerGroup = (function (actionGroupList) {
2303
2303
  };
2304
2304
  });
2305
2305
 
2306
- var baseActionsList$a = [{
2306
+ var baseActionsList$b = [{
2307
2307
  action: 'changeIsActive',
2308
2308
  key: 'isActive'
2309
2309
  }, {
@@ -2340,10 +2340,10 @@ var baseActionsList$a = [{
2340
2340
  action: 'setKey',
2341
2341
  key: 'key'
2342
2342
  }];
2343
- function actionsMapBase$a(diff, oldObj, newObj) {
2343
+ function actionsMapBase$b(diff, oldObj, newObj) {
2344
2344
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2345
2345
  return buildBaseAttributesActions({
2346
- actions: baseActionsList$a,
2346
+ actions: baseActionsList$b,
2347
2347
  diff: diff,
2348
2348
  oldObj: oldObj,
2349
2349
  newObj: newObj,
@@ -2355,7 +2355,7 @@ function createCartDiscountsMapActions(mapActionGroup, syncActionConfig) {
2355
2355
  return function doMapActions(diff, newObj, oldObj) {
2356
2356
  var allActions = [];
2357
2357
  allActions.push(mapActionGroup('base', function () {
2358
- return actionsMapBase$a(diff, oldObj, newObj, syncActionConfig);
2358
+ return actionsMapBase$b(diff, oldObj, newObj, syncActionConfig);
2359
2359
  }));
2360
2360
  allActions.push(mapActionGroup('custom', function () {
2361
2361
  return actionsMapCustom(diff, newObj, oldObj);
@@ -2374,7 +2374,7 @@ var cartDiscounts = (function (actionGroupList) {
2374
2374
  };
2375
2375
  });
2376
2376
 
2377
- var baseActionsList$9 = [{
2377
+ var baseActionsList$a = [{
2378
2378
  action: 'changeName',
2379
2379
  key: 'name'
2380
2380
  }, {
@@ -2384,10 +2384,10 @@ var baseActionsList$9 = [{
2384
2384
  action: 'setDescription',
2385
2385
  key: 'description'
2386
2386
  }];
2387
- function actionsMapBase$9(diff, oldObj, newObj) {
2387
+ function actionsMapBase$a(diff, oldObj, newObj) {
2388
2388
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2389
2389
  return buildBaseAttributesActions({
2390
- actions: baseActionsList$9,
2390
+ actions: baseActionsList$a,
2391
2391
  diff: diff,
2392
2392
  oldObj: oldObj,
2393
2393
  newObj: newObj,
@@ -2421,7 +2421,7 @@ function createTaxCategoriesMapActions(mapActionGroup, syncActionConfig) {
2421
2421
  return function doMapActions(diff, newObj, oldObj) {
2422
2422
  var allActions = [];
2423
2423
  allActions.push(mapActionGroup('base', function () {
2424
- return actionsMapBase$9(diff, oldObj, newObj, syncActionConfig);
2424
+ return actionsMapBase$a(diff, oldObj, newObj, syncActionConfig);
2425
2425
  }));
2426
2426
  allActions.push(mapActionGroup('rates', function () {
2427
2427
  return actionsMapRates(diff, oldObj, newObj);
@@ -2448,7 +2448,7 @@ var taxCategories = (function (actionGroupList, syncActionConfig) {
2448
2448
  };
2449
2449
  });
2450
2450
 
2451
- var baseActionsList$8 = [{
2451
+ var baseActionsList$9 = [{
2452
2452
  action: 'changeName',
2453
2453
  key: 'name'
2454
2454
  }, {
@@ -2465,10 +2465,10 @@ var hasLocation = function hasLocation(locations, otherLocation) {
2465
2465
  });
2466
2466
  };
2467
2467
 
2468
- function actionsMapBase$8(diff, oldObj, newObj) {
2468
+ function actionsMapBase$9(diff, oldObj, newObj) {
2469
2469
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2470
2470
  return buildBaseAttributesActions({
2471
- actions: baseActionsList$8,
2471
+ actions: baseActionsList$9,
2472
2472
  diff: diff,
2473
2473
  oldObj: oldObj,
2474
2474
  newObj: newObj,
@@ -2513,7 +2513,7 @@ function createZonesMapActions(mapActionGroup, syncActionConfig) {
2513
2513
  return function doMapActions(diff, newObj, oldObj) {
2514
2514
  var allActions = [];
2515
2515
  allActions.push(mapActionGroup('base', function () {
2516
- return actionsMapBase$8(diff, oldObj, newObj, syncActionConfig);
2516
+ return actionsMapBase$9(diff, oldObj, newObj, syncActionConfig);
2517
2517
  }));
2518
2518
  allActions.push(flatten__default["default"](mapActionGroup('locations', function () {
2519
2519
  return actionsMapLocations(diff, oldObj, newObj);
@@ -2540,7 +2540,7 @@ var zones = (function (actionGroupList, syncActionConfig) {
2540
2540
  };
2541
2541
  });
2542
2542
 
2543
- var baseActionsList$7 = [{
2543
+ var baseActionsList$8 = [{
2544
2544
  action: 'setKey',
2545
2545
  key: 'key'
2546
2546
  }, {
@@ -2562,10 +2562,10 @@ var baseActionsList$7 = [{
2562
2562
  action: 'changeTaxCategory',
2563
2563
  key: 'taxCategory'
2564
2564
  }];
2565
- function actionsMapBase$7(diff, oldObj, newObj) {
2565
+ function actionsMapBase$8(diff, oldObj, newObj) {
2566
2566
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2567
2567
  return buildBaseAttributesActions({
2568
- actions: baseActionsList$7,
2568
+ actions: baseActionsList$8,
2569
2569
  diff: diff,
2570
2570
  oldObj: oldObj,
2571
2571
  newObj: newObj,
@@ -2647,7 +2647,7 @@ function createShippingMethodsMapActions(mapActionGroup, syncActionConfig) {
2647
2647
  return function doMapActions(diff, newObj, oldObj) {
2648
2648
  var allActions = [];
2649
2649
  allActions.push(mapActionGroup('base', function () {
2650
- return actionsMapBase$7(diff, oldObj, newObj, syncActionConfig);
2650
+ return actionsMapBase$8(diff, oldObj, newObj, syncActionConfig);
2651
2651
  }));
2652
2652
  allActions.push(flatten__default["default"](mapActionGroup('zoneRates', function () {
2653
2653
  return actionsMapZoneRates(diff, oldObj, newObj);
@@ -3042,7 +3042,7 @@ createComparator(function () {
3042
3042
  createComparator(createCircularEqualCreator());
3043
3043
  createComparator(createCircularEqualCreator(sameValueZeroEqual));
3044
3044
 
3045
- var baseActionsList$6 = [{
3045
+ var baseActionsList$7 = [{
3046
3046
  action: 'changeName',
3047
3047
  key: 'name'
3048
3048
  }, {
@@ -3052,7 +3052,7 @@ var baseActionsList$6 = [{
3052
3052
  action: 'changeDescription',
3053
3053
  key: 'description'
3054
3054
  }];
3055
- function actionsMapBase$6(diff, previous, next) {
3055
+ function actionsMapBase$7(diff, previous, next) {
3056
3056
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3057
3057
  // when `diff` is undefined, then the underlying `buildActions` has returned any diff
3058
3058
  // which given in product-types would mean that `buildActions` has run with `nestedValuesChanges` applied
@@ -3060,7 +3060,7 @@ function actionsMapBase$6(diff, previous, next) {
3060
3060
  if (!diff) return [];
3061
3061
  return buildBaseAttributesActions({
3062
3062
  diff: diff,
3063
- actions: baseActionsList$6,
3063
+ actions: baseActionsList$7,
3064
3064
  oldObj: previous,
3065
3065
  newObj: next,
3066
3066
  shouldOmitEmptyString: config.shouldOmitEmptyString
@@ -3286,7 +3286,7 @@ function createProductTypeMapActions(mapActionGroup, syncActionConfig) {
3286
3286
  return flatten__default["default"]([// we support only base fields for the product type,
3287
3287
  // for attributes, applying hints would be recommended
3288
3288
  mapActionGroup('base', function () {
3289
- return actionsMapBase$6(diff, previous, next, syncActionConfig);
3289
+ return actionsMapBase$7(diff, previous, next, syncActionConfig);
3290
3290
  }), actionsMapForHints(options.nestedValuesChanges, previous, next)]);
3291
3291
  };
3292
3292
  }
@@ -3303,7 +3303,7 @@ var productTypes = (function (actionGroupList, syncActionConfig) {
3303
3303
  };
3304
3304
  });
3305
3305
 
3306
- var baseActionsList$5 = [{
3306
+ var baseActionsList$6 = [{
3307
3307
  action: 'changeKey',
3308
3308
  key: 'key'
3309
3309
  }, {
@@ -3322,10 +3322,10 @@ var baseActionsList$5 = [{
3322
3322
  action: 'setTransitions',
3323
3323
  key: 'transitions'
3324
3324
  }];
3325
- function actionsMapBase$5(diff, oldObj, newObj) {
3325
+ function actionsMapBase$6(diff, oldObj, newObj) {
3326
3326
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3327
3327
  return buildBaseAttributesActions({
3328
- actions: baseActionsList$5,
3328
+ actions: baseActionsList$6,
3329
3329
  diff: diff,
3330
3330
  oldObj: oldObj,
3331
3331
  newObj: newObj,
@@ -3375,7 +3375,7 @@ function createStatesMapActions(mapActionGroup, syncActionConfig) {
3375
3375
  var baseActions = [];
3376
3376
  var roleActions = [];
3377
3377
  baseActions.push(mapActionGroup('base', function () {
3378
- return actionsMapBase$5(diff, oldObj, newObj, syncActionConfig);
3378
+ return actionsMapBase$6(diff, oldObj, newObj, syncActionConfig);
3379
3379
  }));
3380
3380
  roleActions.push(mapActionGroup('roles', function () {
3381
3381
  return actionsMapRoles(diff, oldObj, newObj);
@@ -3393,7 +3393,7 @@ var states = (function (actionGroupList, syncActionConfig) {
3393
3393
  };
3394
3394
  });
3395
3395
 
3396
- var baseActionsList$4 = [{
3396
+ var baseActionsList$5 = [{
3397
3397
  action: 'changeKey',
3398
3398
  key: 'key'
3399
3399
  }, {
@@ -3412,10 +3412,10 @@ var baseActionsList$4 = [{
3412
3412
  action: 'setRoles',
3413
3413
  key: 'roles'
3414
3414
  }];
3415
- function actionsMapBase$4(diff, oldObj, newObj) {
3415
+ function actionsMapBase$5(diff, oldObj, newObj) {
3416
3416
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3417
3417
  return buildBaseAttributesActions({
3418
- actions: baseActionsList$4,
3418
+ actions: baseActionsList$5,
3419
3419
  diff: diff,
3420
3420
  oldObj: oldObj,
3421
3421
  newObj: newObj,
@@ -3427,7 +3427,7 @@ function createChannelsMapActions$1(mapActionGroup, syncActionConfig) {
3427
3427
  return function doMapActions(diff, newObj, oldObj) {
3428
3428
  var allActions = [];
3429
3429
  allActions.push(mapActionGroup('base', function () {
3430
- return actionsMapBase$4(diff, oldObj, newObj, syncActionConfig);
3430
+ return actionsMapBase$5(diff, oldObj, newObj, syncActionConfig);
3431
3431
  }));
3432
3432
  allActions.push(mapActionGroup('custom', function () {
3433
3433
  return actionsMapCustom(diff, newObj, oldObj);
@@ -3457,7 +3457,7 @@ var getIsRemovedOperation = function getIsRemovedOperation(key) {
3457
3457
  return REGEX_UNDERSCORE_NUMBER.test(key);
3458
3458
  };
3459
3459
 
3460
- var baseActionsList$3 = [{
3460
+ var baseActionsList$4 = [{
3461
3461
  action: 'changeKey',
3462
3462
  key: 'key'
3463
3463
  }, {
@@ -3467,10 +3467,10 @@ var baseActionsList$3 = [{
3467
3467
  action: 'setDescription',
3468
3468
  key: 'description'
3469
3469
  }];
3470
- function actionsMapBase$3(diff, oldObj, newObj) {
3470
+ function actionsMapBase$4(diff, oldObj, newObj) {
3471
3471
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3472
3472
  return buildBaseAttributesActions({
3473
- actions: baseActionsList$3,
3473
+ actions: baseActionsList$4,
3474
3474
  diff: diff,
3475
3475
  oldObj: oldObj,
3476
3476
  newObj: newObj,
@@ -3587,7 +3587,7 @@ function createTypeMapActions(mapActionGroup, syncActionConfig) {
3587
3587
  return function doMapActions(diff, next, previous) {
3588
3588
  var allActions = [];
3589
3589
  allActions.push(mapActionGroup('base', function () {
3590
- return actionsMapBase$3(diff, previous, next, syncActionConfig);
3590
+ return actionsMapBase$4(diff, previous, next, syncActionConfig);
3591
3591
  }), mapActionGroup('fieldDefinitions', function () {
3592
3592
  return actionsMapFieldDefinitions(diff.fieldDefinitions, previous.fieldDefinitions, next.fieldDefinitions, findMatchingPairs(diff.fieldDefinitions, previous.fieldDefinitions, next.fieldDefinitions, 'name'));
3593
3593
  }));
@@ -3604,7 +3604,7 @@ var types = (function (actionGroupList, syncActionConfig) {
3604
3604
  };
3605
3605
  });
3606
3606
 
3607
- var baseActionsList$2 = [{
3607
+ var baseActionsList$3 = [{
3608
3608
  action: 'changeName',
3609
3609
  key: 'name'
3610
3610
  }, {
@@ -3623,10 +3623,10 @@ var baseActionsList$2 = [{
3623
3623
  action: 'setShippingRateInputType',
3624
3624
  key: 'shippingRateInputType'
3625
3625
  }];
3626
- function actionsMapBase$2(diff, oldObj, newObj) {
3626
+ function actionsMapBase$3(diff, oldObj, newObj) {
3627
3627
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3628
3628
  return buildBaseAttributesActions({
3629
- actions: baseActionsList$2,
3629
+ actions: baseActionsList$3,
3630
3630
  diff: diff,
3631
3631
  oldObj: oldObj,
3632
3632
  newObj: newObj,
@@ -3638,7 +3638,7 @@ function createChannelsMapActions(mapActionGroup, syncActionConfig) {
3638
3638
  return function doMapActions(diff, newObj, oldObj) {
3639
3639
  var allActions = [];
3640
3640
  allActions.push(mapActionGroup('base', function () {
3641
- return actionsMapBase$2(diff, oldObj, newObj, syncActionConfig);
3641
+ return actionsMapBase$3(diff, oldObj, newObj, syncActionConfig);
3642
3642
  }));
3643
3643
  return flatten__default["default"](allActions);
3644
3644
  };
@@ -3654,7 +3654,7 @@ var projects = (function (actionGroupList) {
3654
3654
  };
3655
3655
  });
3656
3656
 
3657
- var baseActionsList$1 = [{
3657
+ var baseActionsList$2 = [{
3658
3658
  action: 'setName',
3659
3659
  key: 'name'
3660
3660
  }, {
@@ -3667,9 +3667,9 @@ var baseActionsList$1 = [{
3667
3667
  action: 'setSupplyChannels',
3668
3668
  key: 'supplyChannels'
3669
3669
  }];
3670
- function actionsMapBase$1(diff, oldObj, newObj) {
3670
+ function actionsMapBase$2(diff, oldObj, newObj) {
3671
3671
  return buildBaseAttributesActions({
3672
- actions: baseActionsList$1,
3672
+ actions: baseActionsList$2,
3673
3673
  diff: diff,
3674
3674
  oldObj: oldObj,
3675
3675
  newObj: newObj
@@ -3680,7 +3680,7 @@ function createStoresMapActions(mapActionGroup) {
3680
3680
  return function doMapActions(diff, next, previous) {
3681
3681
  var allActions = [];
3682
3682
  allActions.push(mapActionGroup('base', function () {
3683
- return actionsMapBase$1(diff, previous, next);
3683
+ return actionsMapBase$2(diff, previous, next);
3684
3684
  }));
3685
3685
  allActions.push(mapActionGroup('custom', function () {
3686
3686
  return actionsMapCustom(diff, next, previous);
@@ -3699,16 +3699,16 @@ var stores = (function (actionGroupList) {
3699
3699
  };
3700
3700
  });
3701
3701
 
3702
- var baseActionsList = [{
3702
+ var baseActionsList$1 = [{
3703
3703
  action: 'changeName',
3704
3704
  key: 'name'
3705
3705
  }, {
3706
3706
  action: 'setKey',
3707
3707
  key: 'key'
3708
3708
  }];
3709
- function actionsMapBase(diff, oldObj, newObj) {
3709
+ function actionsMapBase$1(diff, oldObj, newObj) {
3710
3710
  return buildBaseAttributesActions({
3711
- actions: baseActionsList,
3711
+ actions: baseActionsList$1,
3712
3712
  diff: diff,
3713
3713
  oldObj: oldObj,
3714
3714
  newObj: newObj
@@ -3719,7 +3719,7 @@ function createProductSelectionsMapActions(mapActionGroup) {
3719
3719
  return function doMapActions(diff, next, previous) {
3720
3720
  var allActions = [];
3721
3721
  allActions.push(mapActionGroup('base', function () {
3722
- return actionsMapBase(diff, previous, next);
3722
+ return actionsMapBase$1(diff, previous, next);
3723
3723
  }));
3724
3724
  allActions.push(mapActionGroup('custom', function () {
3725
3725
  return actionsMapCustom(diff, next, previous);
@@ -3738,6 +3738,47 @@ var productSelections = (function (actionGroupList) {
3738
3738
  };
3739
3739
  });
3740
3740
 
3741
+ /* eslint-disable max-len */
3742
+ var baseActionsList = [{
3743
+ action: 'changeValue',
3744
+ key: 'value'
3745
+ }, {
3746
+ action: 'setDiscountedPrice',
3747
+ key: 'discounted'
3748
+ }];
3749
+ function actionsMapBase(diff, oldObj, newObj) {
3750
+ var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3751
+ return buildBaseAttributesActions({
3752
+ actions: baseActionsList,
3753
+ diff: diff,
3754
+ oldObj: oldObj,
3755
+ newObj: newObj,
3756
+ shouldOmitEmptyString: config.shouldOmitEmptyString
3757
+ });
3758
+ }
3759
+
3760
+ function createPriceMapActions(mapActionGroup, syncActionConfig) {
3761
+ return function doMapActions(diff, newObj, oldObj) {
3762
+ var allActions = [];
3763
+ allActions.push(mapActionGroup('base', function () {
3764
+ return actionsMapBase(diff, oldObj, newObj, syncActionConfig);
3765
+ }));
3766
+ allActions.push(mapActionGroup('custom', function () {
3767
+ return actionsMapCustom(diff, newObj, oldObj);
3768
+ }));
3769
+ return flatten__default["default"](allActions);
3770
+ };
3771
+ }
3772
+
3773
+ var prices = (function (actionGroupList, syncActionConfig) {
3774
+ var mapActionGroup = createMapActionGroup(actionGroupList);
3775
+ var doMapActions = createPriceMapActions(mapActionGroup, syncActionConfig);
3776
+ var buildActions = createBuildActions(diff, doMapActions);
3777
+ return {
3778
+ buildActions: buildActions
3779
+ };
3780
+ });
3781
+
3741
3782
  exports.createSyncCartDiscounts = cartDiscounts;
3742
3783
  exports.createSyncCategories = categories;
3743
3784
  exports.createSyncChannels = channels;
@@ -3752,6 +3793,7 @@ exports.createSyncProductTypes = productTypes;
3752
3793
  exports.createSyncProducts = products;
3753
3794
  exports.createSyncProjects = projects;
3754
3795
  exports.createSyncShippingMethods = shippingMethods;
3796
+ exports.createSyncStandalonePrices = prices;
3755
3797
  exports.createSyncStates = states;
3756
3798
  exports.createSyncStores = stores;
3757
3799
  exports.createSyncTaxCategories = taxCategories;