@commercetools/sync-actions 7.3.0 → 7.3.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.
|
@@ -945,13 +945,17 @@ function actionsMapAddresses(diff, oldObj, newObj) {
|
|
|
945
945
|
}));
|
|
946
946
|
return handler(diff, oldObj, newObj);
|
|
947
947
|
}
|
|
948
|
-
function
|
|
949
|
-
var handler = createBuildArrayActions('billingAddressIds', _defineProperty(
|
|
948
|
+
function actionsMapAddBillingAddresses(diff, oldObj, newObj) {
|
|
949
|
+
var handler = createBuildArrayActions('billingAddressIds', _defineProperty({}, ADD_ACTIONS, function (addressId) {
|
|
950
950
|
return {
|
|
951
951
|
action: 'addBillingAddressId',
|
|
952
952
|
addressId: addressId
|
|
953
953
|
};
|
|
954
|
-
})
|
|
954
|
+
}));
|
|
955
|
+
return handler(diff, oldObj, newObj);
|
|
956
|
+
}
|
|
957
|
+
function actionsMapRemoveBillingAddresses(diff, oldObj, newObj) {
|
|
958
|
+
var handler = createBuildArrayActions('billingAddressIds', _defineProperty({}, REMOVE_ACTIONS, function (addressId) {
|
|
955
959
|
return {
|
|
956
960
|
action: 'removeBillingAddressId',
|
|
957
961
|
addressId: addressId
|
|
@@ -959,13 +963,17 @@ function actionsMapBillingAddresses(diff, oldObj, newObj) {
|
|
|
959
963
|
}));
|
|
960
964
|
return handler(diff, oldObj, newObj);
|
|
961
965
|
}
|
|
962
|
-
function
|
|
963
|
-
var handler = createBuildArrayActions('shippingAddressIds', _defineProperty(
|
|
966
|
+
function actionsMapAddShippingAddresses(diff, oldObj, newObj) {
|
|
967
|
+
var handler = createBuildArrayActions('shippingAddressIds', _defineProperty({}, ADD_ACTIONS, function (addressId) {
|
|
964
968
|
return {
|
|
965
969
|
action: 'addShippingAddressId',
|
|
966
970
|
addressId: addressId
|
|
967
971
|
};
|
|
968
|
-
})
|
|
972
|
+
}));
|
|
973
|
+
return handler(diff, oldObj, newObj);
|
|
974
|
+
}
|
|
975
|
+
function actionsMapRemoveShippingAddresses(diff, oldObj, newObj) {
|
|
976
|
+
var handler = createBuildArrayActions('shippingAddressIds', _defineProperty({}, REMOVE_ACTIONS, function (addressId) {
|
|
969
977
|
return {
|
|
970
978
|
action: 'removeShippingAddressId',
|
|
971
979
|
addressId: addressId
|
|
@@ -1042,6 +1050,12 @@ function createCustomerMapActions$1(mapActionGroup, syncActionConfig) {
|
|
|
1042
1050
|
allActions.push(mapActionGroup('references', function () {
|
|
1043
1051
|
return actionsMapReferences$2(diff, oldObj, newObj);
|
|
1044
1052
|
}));
|
|
1053
|
+
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
1054
|
+
return actionsMapRemoveBillingAddresses(diff, oldObj, newObj);
|
|
1055
|
+
}));
|
|
1056
|
+
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
1057
|
+
return actionsMapRemoveShippingAddresses(diff, oldObj, newObj);
|
|
1058
|
+
}));
|
|
1045
1059
|
allActions.push(mapActionGroup('addresses', function () {
|
|
1046
1060
|
return actionsMapAddresses(diff, oldObj, newObj);
|
|
1047
1061
|
}));
|
|
@@ -1049,10 +1063,10 @@ function createCustomerMapActions$1(mapActionGroup, syncActionConfig) {
|
|
|
1049
1063
|
return actionsMapSetDefaultBase(diff, oldObj, newObj, syncActionConfig);
|
|
1050
1064
|
}));
|
|
1051
1065
|
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
1052
|
-
return
|
|
1066
|
+
return actionsMapAddBillingAddresses(diff, oldObj, newObj);
|
|
1053
1067
|
}));
|
|
1054
1068
|
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
1055
|
-
return
|
|
1069
|
+
return actionsMapAddShippingAddresses(diff, oldObj, newObj);
|
|
1056
1070
|
}));
|
|
1057
1071
|
allActions.push(mapActionGroup('custom', function () {
|
|
1058
1072
|
return actionsMapCustom(diff, newObj, oldObj);
|
|
@@ -3876,6 +3890,12 @@ var createCustomerMapActions = function createCustomerMapActions(mapActionGroup,
|
|
|
3876
3890
|
allActions.push(mapActionGroup('base', function () {
|
|
3877
3891
|
return actionsMapBase$1(diff, oldObj, newObj, syncActionConfig);
|
|
3878
3892
|
}));
|
|
3893
|
+
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
3894
|
+
return actionsMapRemoveBillingAddresses(diff, oldObj, newObj);
|
|
3895
|
+
}));
|
|
3896
|
+
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
3897
|
+
return actionsMapRemoveShippingAddresses(diff, oldObj, newObj);
|
|
3898
|
+
}));
|
|
3879
3899
|
allActions.push(mapActionGroup('addresses', function () {
|
|
3880
3900
|
return actionsMapAddresses(diff, oldObj, newObj);
|
|
3881
3901
|
}));
|
|
@@ -3883,10 +3903,10 @@ var createCustomerMapActions = function createCustomerMapActions(mapActionGroup,
|
|
|
3883
3903
|
return actionsMapSetDefaultBase(diff, oldObj, newObj, syncActionConfig);
|
|
3884
3904
|
}));
|
|
3885
3905
|
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
3886
|
-
return
|
|
3906
|
+
return actionsMapAddBillingAddresses(diff, oldObj, newObj);
|
|
3887
3907
|
}));
|
|
3888
3908
|
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
3889
|
-
return
|
|
3909
|
+
return actionsMapAddShippingAddresses(diff, oldObj, newObj);
|
|
3890
3910
|
}));
|
|
3891
3911
|
allActions.push(mapActionGroup('associates', function () {
|
|
3892
3912
|
return actionsMapAssociates(diff, oldObj, newObj);
|
|
@@ -945,13 +945,17 @@ function actionsMapAddresses(diff, oldObj, newObj) {
|
|
|
945
945
|
}));
|
|
946
946
|
return handler(diff, oldObj, newObj);
|
|
947
947
|
}
|
|
948
|
-
function
|
|
949
|
-
var handler = createBuildArrayActions('billingAddressIds', _defineProperty(
|
|
948
|
+
function actionsMapAddBillingAddresses(diff, oldObj, newObj) {
|
|
949
|
+
var handler = createBuildArrayActions('billingAddressIds', _defineProperty({}, ADD_ACTIONS, function (addressId) {
|
|
950
950
|
return {
|
|
951
951
|
action: 'addBillingAddressId',
|
|
952
952
|
addressId: addressId
|
|
953
953
|
};
|
|
954
|
-
})
|
|
954
|
+
}));
|
|
955
|
+
return handler(diff, oldObj, newObj);
|
|
956
|
+
}
|
|
957
|
+
function actionsMapRemoveBillingAddresses(diff, oldObj, newObj) {
|
|
958
|
+
var handler = createBuildArrayActions('billingAddressIds', _defineProperty({}, REMOVE_ACTIONS, function (addressId) {
|
|
955
959
|
return {
|
|
956
960
|
action: 'removeBillingAddressId',
|
|
957
961
|
addressId: addressId
|
|
@@ -959,13 +963,17 @@ function actionsMapBillingAddresses(diff, oldObj, newObj) {
|
|
|
959
963
|
}));
|
|
960
964
|
return handler(diff, oldObj, newObj);
|
|
961
965
|
}
|
|
962
|
-
function
|
|
963
|
-
var handler = createBuildArrayActions('shippingAddressIds', _defineProperty(
|
|
966
|
+
function actionsMapAddShippingAddresses(diff, oldObj, newObj) {
|
|
967
|
+
var handler = createBuildArrayActions('shippingAddressIds', _defineProperty({}, ADD_ACTIONS, function (addressId) {
|
|
964
968
|
return {
|
|
965
969
|
action: 'addShippingAddressId',
|
|
966
970
|
addressId: addressId
|
|
967
971
|
};
|
|
968
|
-
})
|
|
972
|
+
}));
|
|
973
|
+
return handler(diff, oldObj, newObj);
|
|
974
|
+
}
|
|
975
|
+
function actionsMapRemoveShippingAddresses(diff, oldObj, newObj) {
|
|
976
|
+
var handler = createBuildArrayActions('shippingAddressIds', _defineProperty({}, REMOVE_ACTIONS, function (addressId) {
|
|
969
977
|
return {
|
|
970
978
|
action: 'removeShippingAddressId',
|
|
971
979
|
addressId: addressId
|
|
@@ -1042,6 +1050,12 @@ function createCustomerMapActions$1(mapActionGroup, syncActionConfig) {
|
|
|
1042
1050
|
allActions.push(mapActionGroup('references', function () {
|
|
1043
1051
|
return actionsMapReferences$2(diff, oldObj, newObj);
|
|
1044
1052
|
}));
|
|
1053
|
+
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
1054
|
+
return actionsMapRemoveBillingAddresses(diff, oldObj, newObj);
|
|
1055
|
+
}));
|
|
1056
|
+
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
1057
|
+
return actionsMapRemoveShippingAddresses(diff, oldObj, newObj);
|
|
1058
|
+
}));
|
|
1045
1059
|
allActions.push(mapActionGroup('addresses', function () {
|
|
1046
1060
|
return actionsMapAddresses(diff, oldObj, newObj);
|
|
1047
1061
|
}));
|
|
@@ -1049,10 +1063,10 @@ function createCustomerMapActions$1(mapActionGroup, syncActionConfig) {
|
|
|
1049
1063
|
return actionsMapSetDefaultBase(diff, oldObj, newObj, syncActionConfig);
|
|
1050
1064
|
}));
|
|
1051
1065
|
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
1052
|
-
return
|
|
1066
|
+
return actionsMapAddBillingAddresses(diff, oldObj, newObj);
|
|
1053
1067
|
}));
|
|
1054
1068
|
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
1055
|
-
return
|
|
1069
|
+
return actionsMapAddShippingAddresses(diff, oldObj, newObj);
|
|
1056
1070
|
}));
|
|
1057
1071
|
allActions.push(mapActionGroup('custom', function () {
|
|
1058
1072
|
return actionsMapCustom(diff, newObj, oldObj);
|
|
@@ -3876,6 +3890,12 @@ var createCustomerMapActions = function createCustomerMapActions(mapActionGroup,
|
|
|
3876
3890
|
allActions.push(mapActionGroup('base', function () {
|
|
3877
3891
|
return actionsMapBase$1(diff, oldObj, newObj, syncActionConfig);
|
|
3878
3892
|
}));
|
|
3893
|
+
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
3894
|
+
return actionsMapRemoveBillingAddresses(diff, oldObj, newObj);
|
|
3895
|
+
}));
|
|
3896
|
+
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
3897
|
+
return actionsMapRemoveShippingAddresses(diff, oldObj, newObj);
|
|
3898
|
+
}));
|
|
3879
3899
|
allActions.push(mapActionGroup('addresses', function () {
|
|
3880
3900
|
return actionsMapAddresses(diff, oldObj, newObj);
|
|
3881
3901
|
}));
|
|
@@ -3883,10 +3903,10 @@ var createCustomerMapActions = function createCustomerMapActions(mapActionGroup,
|
|
|
3883
3903
|
return actionsMapSetDefaultBase(diff, oldObj, newObj, syncActionConfig);
|
|
3884
3904
|
}));
|
|
3885
3905
|
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
3886
|
-
return
|
|
3906
|
+
return actionsMapAddBillingAddresses(diff, oldObj, newObj);
|
|
3887
3907
|
}));
|
|
3888
3908
|
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
3889
|
-
return
|
|
3909
|
+
return actionsMapAddShippingAddresses(diff, oldObj, newObj);
|
|
3890
3910
|
}));
|
|
3891
3911
|
allActions.push(mapActionGroup('associates', function () {
|
|
3892
3912
|
return actionsMapAssociates(diff, oldObj, newObj);
|
|
@@ -930,13 +930,17 @@ function actionsMapAddresses(diff, oldObj, newObj) {
|
|
|
930
930
|
}));
|
|
931
931
|
return handler(diff, oldObj, newObj);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
934
|
-
var handler = createBuildArrayActions('billingAddressIds', _defineProperty(
|
|
933
|
+
function actionsMapAddBillingAddresses(diff, oldObj, newObj) {
|
|
934
|
+
var handler = createBuildArrayActions('billingAddressIds', _defineProperty({}, ADD_ACTIONS, function (addressId) {
|
|
935
935
|
return {
|
|
936
936
|
action: 'addBillingAddressId',
|
|
937
937
|
addressId: addressId
|
|
938
938
|
};
|
|
939
|
-
})
|
|
939
|
+
}));
|
|
940
|
+
return handler(diff, oldObj, newObj);
|
|
941
|
+
}
|
|
942
|
+
function actionsMapRemoveBillingAddresses(diff, oldObj, newObj) {
|
|
943
|
+
var handler = createBuildArrayActions('billingAddressIds', _defineProperty({}, REMOVE_ACTIONS, function (addressId) {
|
|
940
944
|
return {
|
|
941
945
|
action: 'removeBillingAddressId',
|
|
942
946
|
addressId: addressId
|
|
@@ -944,13 +948,17 @@ function actionsMapBillingAddresses(diff, oldObj, newObj) {
|
|
|
944
948
|
}));
|
|
945
949
|
return handler(diff, oldObj, newObj);
|
|
946
950
|
}
|
|
947
|
-
function
|
|
948
|
-
var handler = createBuildArrayActions('shippingAddressIds', _defineProperty(
|
|
951
|
+
function actionsMapAddShippingAddresses(diff, oldObj, newObj) {
|
|
952
|
+
var handler = createBuildArrayActions('shippingAddressIds', _defineProperty({}, ADD_ACTIONS, function (addressId) {
|
|
949
953
|
return {
|
|
950
954
|
action: 'addShippingAddressId',
|
|
951
955
|
addressId: addressId
|
|
952
956
|
};
|
|
953
|
-
})
|
|
957
|
+
}));
|
|
958
|
+
return handler(diff, oldObj, newObj);
|
|
959
|
+
}
|
|
960
|
+
function actionsMapRemoveShippingAddresses(diff, oldObj, newObj) {
|
|
961
|
+
var handler = createBuildArrayActions('shippingAddressIds', _defineProperty({}, REMOVE_ACTIONS, function (addressId) {
|
|
954
962
|
return {
|
|
955
963
|
action: 'removeShippingAddressId',
|
|
956
964
|
addressId: addressId
|
|
@@ -1027,6 +1035,12 @@ function createCustomerMapActions$1(mapActionGroup, syncActionConfig) {
|
|
|
1027
1035
|
allActions.push(mapActionGroup('references', function () {
|
|
1028
1036
|
return actionsMapReferences$2(diff, oldObj, newObj);
|
|
1029
1037
|
}));
|
|
1038
|
+
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
1039
|
+
return actionsMapRemoveBillingAddresses(diff, oldObj, newObj);
|
|
1040
|
+
}));
|
|
1041
|
+
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
1042
|
+
return actionsMapRemoveShippingAddresses(diff, oldObj, newObj);
|
|
1043
|
+
}));
|
|
1030
1044
|
allActions.push(mapActionGroup('addresses', function () {
|
|
1031
1045
|
return actionsMapAddresses(diff, oldObj, newObj);
|
|
1032
1046
|
}));
|
|
@@ -1034,10 +1048,10 @@ function createCustomerMapActions$1(mapActionGroup, syncActionConfig) {
|
|
|
1034
1048
|
return actionsMapSetDefaultBase(diff, oldObj, newObj, syncActionConfig);
|
|
1035
1049
|
}));
|
|
1036
1050
|
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
1037
|
-
return
|
|
1051
|
+
return actionsMapAddBillingAddresses(diff, oldObj, newObj);
|
|
1038
1052
|
}));
|
|
1039
1053
|
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
1040
|
-
return
|
|
1054
|
+
return actionsMapAddShippingAddresses(diff, oldObj, newObj);
|
|
1041
1055
|
}));
|
|
1042
1056
|
allActions.push(mapActionGroup('custom', function () {
|
|
1043
1057
|
return actionsMapCustom(diff, newObj, oldObj);
|
|
@@ -3861,6 +3875,12 @@ var createCustomerMapActions = function createCustomerMapActions(mapActionGroup,
|
|
|
3861
3875
|
allActions.push(mapActionGroup('base', function () {
|
|
3862
3876
|
return actionsMapBase$1(diff, oldObj, newObj, syncActionConfig);
|
|
3863
3877
|
}));
|
|
3878
|
+
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
3879
|
+
return actionsMapRemoveBillingAddresses(diff, oldObj, newObj);
|
|
3880
|
+
}));
|
|
3881
|
+
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
3882
|
+
return actionsMapRemoveShippingAddresses(diff, oldObj, newObj);
|
|
3883
|
+
}));
|
|
3864
3884
|
allActions.push(mapActionGroup('addresses', function () {
|
|
3865
3885
|
return actionsMapAddresses(diff, oldObj, newObj);
|
|
3866
3886
|
}));
|
|
@@ -3868,10 +3888,10 @@ var createCustomerMapActions = function createCustomerMapActions(mapActionGroup,
|
|
|
3868
3888
|
return actionsMapSetDefaultBase(diff, oldObj, newObj, syncActionConfig);
|
|
3869
3889
|
}));
|
|
3870
3890
|
allActions.push(mapActionGroup('billingAddressIds', function () {
|
|
3871
|
-
return
|
|
3891
|
+
return actionsMapAddBillingAddresses(diff, oldObj, newObj);
|
|
3872
3892
|
}));
|
|
3873
3893
|
allActions.push(mapActionGroup('shippingAddressIds', function () {
|
|
3874
|
-
return
|
|
3894
|
+
return actionsMapAddShippingAddresses(diff, oldObj, newObj);
|
|
3875
3895
|
}));
|
|
3876
3896
|
allActions.push(mapActionGroup('associates', function () {
|
|
3877
3897
|
return actionsMapAssociates(diff, oldObj, newObj);
|