@commercetools/sync-actions 4.10.0 → 4.10.1

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.
@@ -695,7 +695,7 @@
695
695
  });
696
696
  }
697
697
 
698
- var baseActionsList$h = [{
698
+ var baseActionsList$i = [{
699
699
  action: 'changeName',
700
700
  key: 'name'
701
701
  }, {
@@ -732,10 +732,10 @@
732
732
  * SYNC FUNCTIONS
733
733
  */
734
734
 
735
- function actionsMapBase$h(diff, oldObj, newObj) {
735
+ function actionsMapBase$i(diff, oldObj, newObj) {
736
736
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
737
737
  return buildBaseAttributesActions({
738
- actions: baseActionsList$h,
738
+ actions: baseActionsList$i,
739
739
  diff: diff,
740
740
  oldObj: oldObj,
741
741
  newObj: newObj,
@@ -839,7 +839,7 @@
839
839
  return function doMapActions(diff, newObj, oldObj) {
840
840
  var allActions = [];
841
841
  allActions.push(mapActionGroup('base', function () {
842
- return actionsMapBase$h(diff, oldObj, newObj, syncActionConfig);
842
+ return actionsMapBase$i(diff, oldObj, newObj, syncActionConfig);
843
843
  }));
844
844
  allActions.push(mapActionGroup('references', function () {
845
845
  return actionsMapReferences$3(diff, oldObj, newObj);
@@ -875,7 +875,7 @@
875
875
  };
876
876
  });
877
877
 
878
- var baseActionsList$g = [{
878
+ var baseActionsList$h = [{
879
879
  action: 'setSalutation',
880
880
  key: 'salutation'
881
881
  }, {
@@ -935,10 +935,10 @@
935
935
  * SYNC FUNCTIONS
936
936
  */
937
937
 
938
- function actionsMapBase$g(diff, oldObj, newObj) {
938
+ function actionsMapBase$h(diff, oldObj, newObj) {
939
939
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
940
940
  return buildBaseAttributesActions({
941
- actions: baseActionsList$g,
941
+ actions: baseActionsList$h,
942
942
  diff: diff,
943
943
  oldObj: oldObj,
944
944
  newObj: newObj,
@@ -1022,7 +1022,7 @@
1022
1022
  return function doMapActions(diff, newObj, oldObj) {
1023
1023
  var allActions = [];
1024
1024
  allActions.push(mapActionGroup('base', function () {
1025
- return actionsMapBase$g(diff, oldObj, newObj, syncActionConfig);
1025
+ return actionsMapBase$h(diff, oldObj, newObj, syncActionConfig);
1026
1026
  }));
1027
1027
  allActions.push(mapActionGroup('references', function () {
1028
1028
  return actionsMapReferences$2(diff, oldObj, newObj);
@@ -1064,7 +1064,7 @@
1064
1064
  };
1065
1065
  });
1066
1066
 
1067
- var baseActionsList$f = [{
1067
+ var baseActionsList$g = [{
1068
1068
  action: 'changeQuantity',
1069
1069
  key: 'quantityOnStock',
1070
1070
  actionKey: 'quantity'
@@ -1083,10 +1083,10 @@
1083
1083
  * SYNC FUNCTIONS
1084
1084
  */
1085
1085
 
1086
- function actionsMapBase$f(diff, oldObj, newObj) {
1086
+ function actionsMapBase$g(diff, oldObj, newObj) {
1087
1087
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1088
1088
  return buildBaseAttributesActions({
1089
- actions: baseActionsList$f,
1089
+ actions: baseActionsList$g,
1090
1090
  diff: diff,
1091
1091
  oldObj: oldObj,
1092
1092
  newObj: newObj,
@@ -1106,7 +1106,7 @@
1106
1106
  return function doMapActions(diff, newObj, oldObj) {
1107
1107
  var allActions = [];
1108
1108
  allActions.push(mapActionGroup('base', function () {
1109
- return actionsMapBase$f(diff, oldObj, newObj, syncActionConfig);
1109
+ return actionsMapBase$g(diff, oldObj, newObj, syncActionConfig);
1110
1110
  }));
1111
1111
  allActions.push(mapActionGroup('references', function () {
1112
1112
  return actionsMapReferences$1(diff, oldObj, newObj);
@@ -1201,7 +1201,7 @@
1201
1201
 
1202
1202
  var REGEX_NUMBER$2 = new RegExp(/^\d+$/);
1203
1203
  var REGEX_UNDERSCORE_NUMBER$2 = new RegExp(/^_\d+$/);
1204
- var baseActionsList$e = [{
1204
+ var baseActionsList$f = [{
1205
1205
  action: 'changeName',
1206
1206
  key: 'name'
1207
1207
  }, {
@@ -1605,10 +1605,10 @@
1605
1605
  */
1606
1606
 
1607
1607
 
1608
- function actionsMapBase$e(diff, oldObj, newObj) {
1608
+ function actionsMapBase$f(diff, oldObj, newObj) {
1609
1609
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1610
1610
  return buildBaseAttributesActions({
1611
- actions: baseActionsList$e,
1611
+ actions: baseActionsList$f,
1612
1612
  diff: diff,
1613
1613
  oldObj: oldObj,
1614
1614
  newObj: newObj,
@@ -1849,7 +1849,7 @@
1849
1849
  return actionsMapRemoveVariants(diff, oldObj, newObj);
1850
1850
  }));
1851
1851
  allActions.push(mapActionGroup('base', function () {
1852
- return actionsMapBase$e(diff, oldObj, newObj, syncActionConfig);
1852
+ return actionsMapBase$f(diff, oldObj, newObj, syncActionConfig);
1853
1853
  }));
1854
1854
  allActions.push(mapActionGroup('meta', function () {
1855
1855
  return actionsMapMeta(diff, oldObj, newObj);
@@ -1924,7 +1924,7 @@
1924
1924
  return REGEX_UNDERSCORE_NUMBER$1.test(key) && Number(resource[2]) === 0;
1925
1925
  };
1926
1926
 
1927
- var baseActionsList$d = [{
1927
+ var baseActionsList$e = [{
1928
1928
  action: 'changeOrderState',
1929
1929
  key: 'orderState'
1930
1930
  }, {
@@ -1938,10 +1938,10 @@
1938
1938
  * SYNC FUNCTIONS
1939
1939
  */
1940
1940
 
1941
- function actionsMapBase$d(diff, oldObj, newObj) {
1941
+ function actionsMapBase$e(diff, oldObj, newObj) {
1942
1942
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
1943
1943
  return buildBaseAttributesActions({
1944
- actions: baseActionsList$d,
1944
+ actions: baseActionsList$e,
1945
1945
  diff: diff,
1946
1946
  oldObj: oldObj,
1947
1947
  newObj: newObj,
@@ -2074,7 +2074,7 @@
2074
2074
  }
2075
2075
 
2076
2076
  allActions.push(mapActionGroup('base', function () {
2077
- return actionsMapBase$d(diff, oldObj, newObj, syncActionConfig);
2077
+ return actionsMapBase$e(diff, oldObj, newObj, syncActionConfig);
2078
2078
  }));
2079
2079
  allActions.push(mapActionGroup('deliveries', function () {
2080
2080
  return actionsMapDeliveries(diff, oldObj, newObj);
@@ -2110,7 +2110,7 @@
2110
2110
  };
2111
2111
  });
2112
2112
 
2113
- var baseActionsList$c = [{
2113
+ var baseActionsList$d = [{
2114
2114
  action: 'changeIsActive',
2115
2115
  key: 'isActive'
2116
2116
  }, {
@@ -2138,10 +2138,10 @@
2138
2138
  action: 'setKey',
2139
2139
  key: 'key'
2140
2140
  }];
2141
- function actionsMapBase$c(diff, oldObj, newObj) {
2141
+ function actionsMapBase$d(diff, oldObj, newObj) {
2142
2142
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2143
2143
  return buildBaseAttributesActions({
2144
- actions: baseActionsList$c,
2144
+ actions: baseActionsList$d,
2145
2145
  diff: diff,
2146
2146
  oldObj: oldObj,
2147
2147
  newObj: newObj,
@@ -2182,7 +2182,7 @@
2182
2182
  return function doMapActions(diff, newObj, oldObj) {
2183
2183
  var allActions = [];
2184
2184
  allActions.push(mapActionGroup('base', function () {
2185
- return actionsMapBase$c(diff, oldObj, newObj, syncActionConfig);
2185
+ return actionsMapBase$d(diff, oldObj, newObj, syncActionConfig);
2186
2186
  }));
2187
2187
  return combineValidityActions(flatten__default["default"](allActions));
2188
2188
  };
@@ -2198,7 +2198,7 @@
2198
2198
  };
2199
2199
  });
2200
2200
 
2201
- var baseActionsList$b = [{
2201
+ var baseActionsList$c = [{
2202
2202
  action: 'changeIsActive',
2203
2203
  key: 'isActive'
2204
2204
  }, {
@@ -2229,10 +2229,10 @@
2229
2229
  action: 'changeGroups',
2230
2230
  key: 'groups'
2231
2231
  }];
2232
- function actionsMapBase$b(diff, oldObj, newObj) {
2232
+ function actionsMapBase$c(diff, oldObj, newObj) {
2233
2233
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2234
2234
  return buildBaseAttributesActions({
2235
- actions: baseActionsList$b,
2235
+ actions: baseActionsList$c,
2236
2236
  diff: diff,
2237
2237
  oldObj: oldObj,
2238
2238
  newObj: newObj,
@@ -2244,7 +2244,7 @@
2244
2244
  return function doMapActions(diff, newObj, oldObj) {
2245
2245
  var allActions = [];
2246
2246
  allActions.push(mapActionGroup('base', function () {
2247
- return actionsMapBase$b(diff, oldObj, newObj, syncActionConfig);
2247
+ return actionsMapBase$c(diff, oldObj, newObj, syncActionConfig);
2248
2248
  }));
2249
2249
  allActions.push(mapActionGroup('custom', function () {
2250
2250
  return actionsMapCustom(diff, newObj, oldObj);
@@ -2272,17 +2272,17 @@
2272
2272
  };
2273
2273
  });
2274
2274
 
2275
- var baseActionsList$a = [{
2275
+ var baseActionsList$b = [{
2276
2276
  action: 'changeName',
2277
2277
  key: 'name'
2278
2278
  }, {
2279
2279
  action: 'setKey',
2280
2280
  key: 'key'
2281
2281
  }];
2282
- function actionsMapBase$a(diff, oldObj, newObj) {
2282
+ function actionsMapBase$b(diff, oldObj, newObj) {
2283
2283
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2284
2284
  return buildBaseAttributesActions({
2285
- actions: baseActionsList$a,
2285
+ actions: baseActionsList$b,
2286
2286
  diff: diff,
2287
2287
  oldObj: oldObj,
2288
2288
  newObj: newObj,
@@ -2294,7 +2294,7 @@
2294
2294
  return function doMapActions(diff, newObj, oldObj) {
2295
2295
  var allActions = [];
2296
2296
  allActions.push(mapActionGroup('base', function () {
2297
- return actionsMapBase$a(diff, oldObj, newObj, syncActionConfig);
2297
+ return actionsMapBase$b(diff, oldObj, newObj, syncActionConfig);
2298
2298
  }));
2299
2299
  allActions.push(mapActionGroup('custom', function () {
2300
2300
  return actionsMapCustom(diff, newObj, oldObj);
@@ -2313,7 +2313,7 @@
2313
2313
  };
2314
2314
  });
2315
2315
 
2316
- var baseActionsList$9 = [{
2316
+ var baseActionsList$a = [{
2317
2317
  action: 'changeIsActive',
2318
2318
  key: 'isActive'
2319
2319
  }, {
@@ -2350,10 +2350,10 @@
2350
2350
  action: 'setKey',
2351
2351
  key: 'key'
2352
2352
  }];
2353
- function actionsMapBase$9(diff, oldObj, newObj) {
2353
+ function actionsMapBase$a(diff, oldObj, newObj) {
2354
2354
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2355
2355
  return buildBaseAttributesActions({
2356
- actions: baseActionsList$9,
2356
+ actions: baseActionsList$a,
2357
2357
  diff: diff,
2358
2358
  oldObj: oldObj,
2359
2359
  newObj: newObj,
@@ -2365,7 +2365,7 @@
2365
2365
  return function doMapActions(diff, newObj, oldObj) {
2366
2366
  var allActions = [];
2367
2367
  allActions.push(mapActionGroup('base', function () {
2368
- return actionsMapBase$9(diff, oldObj, newObj, syncActionConfig);
2368
+ return actionsMapBase$a(diff, oldObj, newObj, syncActionConfig);
2369
2369
  }));
2370
2370
  allActions.push(mapActionGroup('custom', function () {
2371
2371
  return actionsMapCustom(diff, newObj, oldObj);
@@ -2384,7 +2384,7 @@
2384
2384
  };
2385
2385
  });
2386
2386
 
2387
- var baseActionsList$8 = [{
2387
+ var baseActionsList$9 = [{
2388
2388
  action: 'changeName',
2389
2389
  key: 'name'
2390
2390
  }, {
@@ -2394,10 +2394,10 @@
2394
2394
  action: 'setDescription',
2395
2395
  key: 'description'
2396
2396
  }];
2397
- function actionsMapBase$8(diff, oldObj, newObj) {
2397
+ function actionsMapBase$9(diff, oldObj, newObj) {
2398
2398
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2399
2399
  return buildBaseAttributesActions({
2400
- actions: baseActionsList$8,
2400
+ actions: baseActionsList$9,
2401
2401
  diff: diff,
2402
2402
  oldObj: oldObj,
2403
2403
  newObj: newObj,
@@ -2431,7 +2431,7 @@
2431
2431
  return function doMapActions(diff, newObj, oldObj) {
2432
2432
  var allActions = [];
2433
2433
  allActions.push(mapActionGroup('base', function () {
2434
- return actionsMapBase$8(diff, oldObj, newObj, syncActionConfig);
2434
+ return actionsMapBase$9(diff, oldObj, newObj, syncActionConfig);
2435
2435
  }));
2436
2436
  allActions.push(mapActionGroup('rates', function () {
2437
2437
  return actionsMapRates(diff, oldObj, newObj);
@@ -2458,7 +2458,7 @@
2458
2458
  };
2459
2459
  });
2460
2460
 
2461
- var baseActionsList$7 = [{
2461
+ var baseActionsList$8 = [{
2462
2462
  action: 'changeName',
2463
2463
  key: 'name'
2464
2464
  }, {
@@ -2475,10 +2475,10 @@
2475
2475
  });
2476
2476
  };
2477
2477
 
2478
- function actionsMapBase$7(diff, oldObj, newObj) {
2478
+ function actionsMapBase$8(diff, oldObj, newObj) {
2479
2479
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2480
2480
  return buildBaseAttributesActions({
2481
- actions: baseActionsList$7,
2481
+ actions: baseActionsList$8,
2482
2482
  diff: diff,
2483
2483
  oldObj: oldObj,
2484
2484
  newObj: newObj,
@@ -2523,7 +2523,7 @@
2523
2523
  return function doMapActions(diff, newObj, oldObj) {
2524
2524
  var allActions = [];
2525
2525
  allActions.push(mapActionGroup('base', function () {
2526
- return actionsMapBase$7(diff, oldObj, newObj, syncActionConfig);
2526
+ return actionsMapBase$8(diff, oldObj, newObj, syncActionConfig);
2527
2527
  }));
2528
2528
  allActions.push(flatten__default["default"](mapActionGroup('locations', function () {
2529
2529
  return actionsMapLocations(diff, oldObj, newObj);
@@ -2550,7 +2550,7 @@
2550
2550
  };
2551
2551
  });
2552
2552
 
2553
- var baseActionsList$6 = [{
2553
+ var baseActionsList$7 = [{
2554
2554
  action: 'setKey',
2555
2555
  key: 'key'
2556
2556
  }, {
@@ -2572,10 +2572,10 @@
2572
2572
  action: 'changeTaxCategory',
2573
2573
  key: 'taxCategory'
2574
2574
  }];
2575
- function actionsMapBase$6(diff, oldObj, newObj) {
2575
+ function actionsMapBase$7(diff, oldObj, newObj) {
2576
2576
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
2577
2577
  return buildBaseAttributesActions({
2578
- actions: baseActionsList$6,
2578
+ actions: baseActionsList$7,
2579
2579
  diff: diff,
2580
2580
  oldObj: oldObj,
2581
2581
  newObj: newObj,
@@ -2657,7 +2657,7 @@
2657
2657
  return function doMapActions(diff, newObj, oldObj) {
2658
2658
  var allActions = [];
2659
2659
  allActions.push(mapActionGroup('base', function () {
2660
- return actionsMapBase$6(diff, oldObj, newObj, syncActionConfig);
2660
+ return actionsMapBase$7(diff, oldObj, newObj, syncActionConfig);
2661
2661
  }));
2662
2662
  allActions.push(flatten__default["default"](mapActionGroup('zoneRates', function () {
2663
2663
  return actionsMapZoneRates(diff, oldObj, newObj);
@@ -3168,7 +3168,7 @@
3168
3168
  createComparator(createCircularEqualCreator());
3169
3169
  createComparator(createCircularEqualCreator(sameValueZeroEqual));
3170
3170
 
3171
- var baseActionsList$5 = [{
3171
+ var baseActionsList$6 = [{
3172
3172
  action: 'changeName',
3173
3173
  key: 'name'
3174
3174
  }, {
@@ -3178,7 +3178,7 @@
3178
3178
  action: 'changeDescription',
3179
3179
  key: 'description'
3180
3180
  }];
3181
- function actionsMapBase$5(diff, previous, next) {
3181
+ function actionsMapBase$6(diff, previous, next) {
3182
3182
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3183
3183
  // when `diff` is undefined, then the underlying `buildActions` has returned any diff
3184
3184
  // which given in product-types would mean that `buildActions` has run with `nestedValuesChanges` applied
@@ -3186,7 +3186,7 @@
3186
3186
  if (!diff) return [];
3187
3187
  return buildBaseAttributesActions({
3188
3188
  diff: diff,
3189
- actions: baseActionsList$5,
3189
+ actions: baseActionsList$6,
3190
3190
  oldObj: previous,
3191
3191
  newObj: next,
3192
3192
  shouldOmitEmptyString: config.shouldOmitEmptyString
@@ -3412,7 +3412,7 @@
3412
3412
  return flatten__default["default"]([// we support only base fields for the product type,
3413
3413
  // for attributes, applying hints would be recommended
3414
3414
  mapActionGroup('base', function () {
3415
- return actionsMapBase$5(diff, previous, next, syncActionConfig);
3415
+ return actionsMapBase$6(diff, previous, next, syncActionConfig);
3416
3416
  }), actionsMapForHints(options.nestedValuesChanges, previous, next)]);
3417
3417
  };
3418
3418
  }
@@ -3429,7 +3429,7 @@
3429
3429
  };
3430
3430
  });
3431
3431
 
3432
- var baseActionsList$4 = [{
3432
+ var baseActionsList$5 = [{
3433
3433
  action: 'changeKey',
3434
3434
  key: 'key'
3435
3435
  }, {
@@ -3448,10 +3448,10 @@
3448
3448
  action: 'setTransitions',
3449
3449
  key: 'transitions'
3450
3450
  }];
3451
- function actionsMapBase$4(diff, oldObj, newObj) {
3451
+ function actionsMapBase$5(diff, oldObj, newObj) {
3452
3452
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3453
3453
  return buildBaseAttributesActions({
3454
- actions: baseActionsList$4,
3454
+ actions: baseActionsList$5,
3455
3455
  diff: diff,
3456
3456
  oldObj: oldObj,
3457
3457
  newObj: newObj,
@@ -3501,7 +3501,7 @@
3501
3501
  var baseActions = [];
3502
3502
  var roleActions = [];
3503
3503
  baseActions.push(mapActionGroup('base', function () {
3504
- return actionsMapBase$4(diff, oldObj, newObj, syncActionConfig);
3504
+ return actionsMapBase$5(diff, oldObj, newObj, syncActionConfig);
3505
3505
  }));
3506
3506
  roleActions.push(mapActionGroup('roles', function () {
3507
3507
  return actionsMapRoles(diff, oldObj, newObj);
@@ -3519,7 +3519,7 @@
3519
3519
  };
3520
3520
  });
3521
3521
 
3522
- var baseActionsList$3 = [{
3522
+ var baseActionsList$4 = [{
3523
3523
  action: 'changeKey',
3524
3524
  key: 'key'
3525
3525
  }, {
@@ -3538,10 +3538,10 @@
3538
3538
  action: 'setRoles',
3539
3539
  key: 'roles'
3540
3540
  }];
3541
- function actionsMapBase$3(diff, oldObj, newObj) {
3541
+ function actionsMapBase$4(diff, oldObj, newObj) {
3542
3542
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3543
3543
  return buildBaseAttributesActions({
3544
- actions: baseActionsList$3,
3544
+ actions: baseActionsList$4,
3545
3545
  diff: diff,
3546
3546
  oldObj: oldObj,
3547
3547
  newObj: newObj,
@@ -3553,7 +3553,7 @@
3553
3553
  return function doMapActions(diff, newObj, oldObj) {
3554
3554
  var allActions = [];
3555
3555
  allActions.push(mapActionGroup('base', function () {
3556
- return actionsMapBase$3(diff, oldObj, newObj, syncActionConfig);
3556
+ return actionsMapBase$4(diff, oldObj, newObj, syncActionConfig);
3557
3557
  }));
3558
3558
  allActions.push(mapActionGroup('custom', function () {
3559
3559
  return actionsMapCustom(diff, newObj, oldObj);
@@ -3583,7 +3583,7 @@
3583
3583
  return REGEX_UNDERSCORE_NUMBER.test(key);
3584
3584
  };
3585
3585
 
3586
- var baseActionsList$2 = [{
3586
+ var baseActionsList$3 = [{
3587
3587
  action: 'changeKey',
3588
3588
  key: 'key'
3589
3589
  }, {
@@ -3593,10 +3593,10 @@
3593
3593
  action: 'setDescription',
3594
3594
  key: 'description'
3595
3595
  }];
3596
- function actionsMapBase$2(diff, oldObj, newObj) {
3596
+ function actionsMapBase$3(diff, oldObj, newObj) {
3597
3597
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3598
3598
  return buildBaseAttributesActions({
3599
- actions: baseActionsList$2,
3599
+ actions: baseActionsList$3,
3600
3600
  diff: diff,
3601
3601
  oldObj: oldObj,
3602
3602
  newObj: newObj,
@@ -3713,7 +3713,7 @@
3713
3713
  return function doMapActions(diff, next, previous) {
3714
3714
  var allActions = [];
3715
3715
  allActions.push(mapActionGroup('base', function () {
3716
- return actionsMapBase$2(diff, previous, next, syncActionConfig);
3716
+ return actionsMapBase$3(diff, previous, next, syncActionConfig);
3717
3717
  }), mapActionGroup('fieldDefinitions', function () {
3718
3718
  return actionsMapFieldDefinitions(diff.fieldDefinitions, previous.fieldDefinitions, next.fieldDefinitions, findMatchingPairs(diff.fieldDefinitions, previous.fieldDefinitions, next.fieldDefinitions, 'name'));
3719
3719
  }));
@@ -3730,7 +3730,7 @@
3730
3730
  };
3731
3731
  });
3732
3732
 
3733
- var baseActionsList$1 = [{
3733
+ var baseActionsList$2 = [{
3734
3734
  action: 'changeName',
3735
3735
  key: 'name'
3736
3736
  }, {
@@ -3749,10 +3749,10 @@
3749
3749
  action: 'setShippingRateInputType',
3750
3750
  key: 'shippingRateInputType'
3751
3751
  }];
3752
- function actionsMapBase$1(diff, oldObj, newObj) {
3752
+ function actionsMapBase$2(diff, oldObj, newObj) {
3753
3753
  var config = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
3754
3754
  return buildBaseAttributesActions({
3755
- actions: baseActionsList$1,
3755
+ actions: baseActionsList$2,
3756
3756
  diff: diff,
3757
3757
  oldObj: oldObj,
3758
3758
  newObj: newObj,
@@ -3764,7 +3764,7 @@
3764
3764
  return function doMapActions(diff, newObj, oldObj) {
3765
3765
  var allActions = [];
3766
3766
  allActions.push(mapActionGroup('base', function () {
3767
- return actionsMapBase$1(diff, oldObj, newObj, syncActionConfig);
3767
+ return actionsMapBase$2(diff, oldObj, newObj, syncActionConfig);
3768
3768
  }));
3769
3769
  return flatten__default["default"](allActions);
3770
3770
  };
@@ -3780,7 +3780,7 @@
3780
3780
  };
3781
3781
  });
3782
3782
 
3783
- var baseActionsList = [{
3783
+ var baseActionsList$1 = [{
3784
3784
  action: 'setName',
3785
3785
  key: 'name'
3786
3786
  }, {
@@ -3793,9 +3793,9 @@
3793
3793
  action: 'setSupplyChannels',
3794
3794
  key: 'supplyChannels'
3795
3795
  }];
3796
- function actionsMapBase(diff, oldObj, newObj) {
3796
+ function actionsMapBase$1(diff, oldObj, newObj) {
3797
3797
  return buildBaseAttributesActions({
3798
- actions: baseActionsList,
3798
+ actions: baseActionsList$1,
3799
3799
  diff: diff,
3800
3800
  oldObj: oldObj,
3801
3801
  newObj: newObj
@@ -3806,7 +3806,7 @@
3806
3806
  return function doMapActions(diff, next, previous) {
3807
3807
  var allActions = [];
3808
3808
  allActions.push(mapActionGroup('base', function () {
3809
- return actionsMapBase(diff, previous, next);
3809
+ return actionsMapBase$1(diff, previous, next);
3810
3810
  }));
3811
3811
  allActions.push(mapActionGroup('custom', function () {
3812
3812
  return actionsMapCustom(diff, next, previous);
@@ -3825,6 +3825,45 @@
3825
3825
  };
3826
3826
  });
3827
3827
 
3828
+ var baseActionsList = [{
3829
+ action: 'changeName',
3830
+ key: 'name'
3831
+ }, {
3832
+ action: 'setKey',
3833
+ key: 'key'
3834
+ }];
3835
+ function actionsMapBase(diff, oldObj, newObj) {
3836
+ return buildBaseAttributesActions({
3837
+ actions: baseActionsList,
3838
+ diff: diff,
3839
+ oldObj: oldObj,
3840
+ newObj: newObj
3841
+ });
3842
+ }
3843
+
3844
+ function createProductSelectionsMapActions(mapActionGroup) {
3845
+ return function doMapActions(diff, next, previous) {
3846
+ var allActions = [];
3847
+ allActions.push(mapActionGroup('base', function () {
3848
+ return actionsMapBase(diff, previous, next);
3849
+ }));
3850
+ allActions.push(mapActionGroup('custom', function () {
3851
+ return actionsMapCustom(diff, next, previous);
3852
+ }));
3853
+ return flatten__default["default"](allActions);
3854
+ };
3855
+ }
3856
+
3857
+ var productSelections = (function (actionGroupList) {
3858
+ var mapActionGroup = createMapActionGroup(actionGroupList);
3859
+ var doMapActions = createProductSelectionsMapActions(mapActionGroup);
3860
+ var onBeforeApplyingDiff = null;
3861
+ var buildActions = createBuildActions(diff, doMapActions, onBeforeApplyingDiff);
3862
+ return {
3863
+ buildActions: buildActions
3864
+ };
3865
+ });
3866
+
3828
3867
  exports.createSyncCartDiscounts = cartDiscounts;
3829
3868
  exports.createSyncCategories = categories;
3830
3869
  exports.createSyncChannels = channels;
@@ -3834,6 +3873,7 @@
3834
3873
  exports.createSyncInventories = inventories;
3835
3874
  exports.createSyncOrders = orders;
3836
3875
  exports.createSyncProductDiscounts = productDiscounts;
3876
+ exports.createSyncProductSelections = productSelections;
3837
3877
  exports.createSyncProductTypes = productTypes;
3838
3878
  exports.createSyncProducts = products;
3839
3879
  exports.createSyncProjects = projects;