@seminarcatalog/redux
Version:
Redux bridge for SeminarCatalog API Javascript SDK
1,372 lines (1,227 loc) • 40.1 kB
JavaScript
import { createAction, createReducer } from '@reduxjs/toolkit';
import { equals, clone, compose, applySpec, useWith, includes, toLower, allPass, values, mapObjIndexed, path, uncurryN, filter, isNil, propOr, identity, sort, prop, not, pathEq, reverse, is } from 'ramda';
import { combineReducers } from 'redux';
import { AddressApi, AllocationWaitingListApi, BookingInterestApi, CategoryApi, CertificateApi, ContactPersonApi, CountryApi, CouponApi, CouponCodeApi, CurrencyApi, EducationHistoryItemApi, EventApi, HotelApi, LanguageApi, LocationApi, MediaApi, OrderApi, OrganizerApi, ParticipantApi, ParticipationApi, ParticipationCodeApi, PartnerApi, PaymentMethodApi, PriceApi, ProductApi, ProductVariantApi, ProviderInfoApi, ReceiverApi, RegionApi, RestaurantApi, RevenueAccountApi, RoleDiscountApi, SeminarApi, SeminarConfigurationApi, SubscriptionApi, SubscriptionConfigurationApi, SubscriptionPlanApi, TaskApi, TestApi, TestResultApi, TopicApi, TrainerApi, UserApi, UserGroupApi, VatApi, VatItemApi, WaitingListApi } from '@seminarcatalog/sdk';
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var createAsyncAction = function createAsyncAction(type) {
var prepareFn = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {
var payload = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return payload;
};
var request = createAction("".concat(type, "/request"), prepareFn);
var onSuccess = createAction("".concat(type, "/success"));
var onFailure = createAction("".concat(type, "/failure"));
var asyncAction = function asyncAction() {
for (var _len = arguments.length, payload = new Array(_len), _key = 0; _key < _len; _key++) {
payload[_key] = arguments[_key];
}
return function (dispatch) {
var response = dispatch(request.apply(void 0, payload));
return response.then(function (data) {
return dispatch(onSuccess(data.value));
})["catch"](function (data) {
return console.error(data) || dispatch(onFailure(data));
});
};
};
asyncAction.type = type;
asyncAction.toString = function () {
return type;
};
asyncAction.request = request;
asyncAction.onSuccess = onSuccess;
asyncAction.onFailure = onFailure;
return asyncAction;
};
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);
if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
keys.push.apply(keys, symbols);
}
return keys;
}
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
if (i % 2) {
ownKeys(Object(source), true).forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else if (Object.getOwnPropertyDescriptors) {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
} else {
ownKeys(Object(source)).forEach(function (key) {
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
});
}
}
return target;
}
function _objectWithoutPropertiesLoose(source, excluded) {
if (source == null) return {};
var target = {};
var sourceKeys = Object.keys(source);
var key, i;
for (i = 0; i < sourceKeys.length; i++) {
key = sourceKeys[i];
if (excluded.indexOf(key) >= 0) continue;
target[key] = source[key];
}
return target;
}
function _objectWithoutProperties(source, excluded) {
if (source == null) return {};
var target = _objectWithoutPropertiesLoose(source, excluded);
var key, i;
if (Object.getOwnPropertySymbols) {
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
for (i = 0; i < sourceSymbolKeys.length; i++) {
key = sourceSymbolKeys[i];
if (excluded.indexOf(key) >= 0) continue;
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
target[key] = source[key];
}
}
return target;
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _createForOfIteratorHelper(o) {
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) {
var i = 0;
var F = function () {};
return {
s: F,
n: function () {
if (i >= o.length) return {
done: true
};
return {
done: false,
value: o[i++]
};
},
e: function (e) {
throw e;
},
f: F
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var it,
normalCompletion = true,
didErr = false,
err;
return {
s: function () {
it = o[Symbol.iterator]();
},
n: function () {
var step = it.next();
normalCompletion = step.done;
return step;
},
e: function (e) {
didErr = true;
err = e;
},
f: function () {
try {
if (!normalCompletion && it.return != null) it.return();
} finally {
if (didErr) throw err;
}
}
};
}
var composeId = function composeId(id, lng) {
return "".concat(id, "_").concat(lng || 1);
};
var maybeReplaceStateWithPayload = function maybeReplaceStateWithPayload(state, _ref) {
var payload = _ref.payload;
return equals(state, payload) ? undefined : clone(payload);
};
var reduceList = function reduceList(state, action) {
var resources = {};
var _iterator = _createForOfIteratorHelper(action.payload.entries),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var resource = _step.value;
resources = _objectSpread2(_objectSpread2({}, resources), {}, _defineProperty({}, composeId(resource.id, resource.language), resource));
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
if (equals(state, resources)) {
return undefined;
}
return _objectSpread2(_objectSpread2({}, state), resources);
};
var reduceGet = function reduceGet(state, _ref2) {
var payload = _ref2.payload;
if (equals(state[payload.id], payload)) {
return undefined;
}
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, composeId(payload.id, payload.language), payload));
};
var reduceCreate = function reduceCreate(state, _ref3) {
var payload = _ref3.payload;
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, composeId(payload.id, payload.language), payload));
};
var reduceUpdate = function reduceUpdate(state, _ref4) {
var payload = _ref4.payload;
if (equals(state[payload.id], payload)) {
return undefined;
}
return _objectSpread2(_objectSpread2({}, state), {}, _defineProperty({}, composeId(payload.id, payload.language), payload));
};
var reduceDelete = function reduceDelete(state, _ref5) {
var payload = _ref5.payload;
var _state = _objectSpread2({}, state);
var id = composeId(payload.id, payload.language);
if (_state.hasOwnProperty(id)) {
delete _state[id];
}
return _objectSpread2({}, _state);
};
var reduceLoaded = function reduceLoaded() {
return Date.now();
};
var reduceFilter = maybeReplaceStateWithPayload;
var reduceSort = maybeReplaceStateWithPayload;
var reduceSortDirection = function reduceSortDirection(state, _ref6) {
var payload = _ref6.payload,
rest = _objectWithoutProperties(_ref6, ["payload"]);
return reduceSort(state, _objectSpread2({
payload: _objectSpread2(_objectSpread2({}, state), {}, {
direction: payload
})
}, rest));
};
var reduceSortField = function reduceSortField(state, _ref7) {
var payload = _ref7.payload,
rest = _objectWithoutProperties(_ref7, ["payload"]);
return reduceSort(state, _objectSpread2({
payload: _objectSpread2(_objectSpread2({}, state), {}, {
field: payload
})
}, rest));
};
var reducers = /*#__PURE__*/Object.freeze({
__proto__: null,
composeId: composeId,
maybeReplaceStateWithPayload: maybeReplaceStateWithPayload,
reduceList: reduceList,
reduceGet: reduceGet,
reduceCreate: reduceCreate,
reduceUpdate: reduceUpdate,
reduceDelete: reduceDelete,
reduceLoaded: reduceLoaded,
reduceFilter: reduceFilter,
reduceSort: reduceSort,
reduceSortDirection: reduceSortDirection,
reduceSortField: reduceSortField
});
var createEntityReducer = function createEntityReducer(resource, actions) {
var _createReducer;
return createReducer({}, (_createReducer = {}, _defineProperty(_createReducer, actions.LIST.onSuccess, reduceList), _defineProperty(_createReducer, actions.GET.onSuccess, reduceGet), _defineProperty(_createReducer, actions.CREATE.onSuccess, reduceCreate), _defineProperty(_createReducer, actions.UPDATE.onSuccess, reduceUpdate), _defineProperty(_createReducer, actions.DELETE.onSuccess, reduceDelete), _defineProperty(_createReducer, actions.TRANSLATE.onSuccess, reduceGet), _createReducer));
};
var initValue = {
/**
* this value will have a structure like this:
* [propName]: searchQuery,
* ...
*/
};
var createFilterReducer = function createFilterReducer(resource, actions) {
return createReducer(initValue, _defineProperty({}, actions.FILTER, reduceFilter));
};
var initValue$1 = {
direction: 'asc',
field: undefined
};
var createSortingReducer = function createSortingReducer(resource, actions) {
var _createReducer;
return createReducer(initValue$1, (_createReducer = {}, _defineProperty(_createReducer, actions.SORT, reduceSort), _defineProperty(_createReducer, actions.SORT_DIRECTION, reduceSortDirection), _defineProperty(_createReducer, actions.SORT_FIELD, reduceSortField), _createReducer));
};
var createLoadedReducer = function createLoadedReducer(resource, actions) {
return createReducer(false, _defineProperty({}, actions.LIST.onSuccess, reduceLoaded));
};
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var createResourceReducer = function createResourceReducer(resource, actions) {
return compose(combineReducers, applySpec({
loaded: createLoadedReducer,
entities: createEntityReducer,
filter: createFilterReducer,
sorting: createSortingReducer
}))(resource, actions);
};
function defaultEqualityCheck(a, b) {
return a === b;
}
function areArgumentsShallowlyEqual(equalityCheck, prev, next) {
if (prev === null || next === null || prev.length !== next.length) {
return false;
} // Do this in a for loop (and not a `forEach` or an `every`) so we can determine equality as fast as possible.
var length = prev.length;
for (var i = 0; i < length; i++) {
if (!equalityCheck(prev[i], next[i])) {
return false;
}
}
return true;
}
function defaultMemoize(func) {
var equalityCheck = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultEqualityCheck;
var lastArgs = null;
var lastResult = null; // we reference arguments instead of spreading them for performance reasons
return function () {
if (!areArgumentsShallowlyEqual(equalityCheck, lastArgs, arguments)) {
// apply arguments instead of spreading for performance.
lastResult = func.apply(null, arguments);
}
lastArgs = arguments;
return lastResult;
};
}
function getDependencies(funcs) {
var dependencies = Array.isArray(funcs[0]) ? funcs[0] : funcs;
if (!dependencies.every(function (dep) {
return typeof dep === 'function';
})) {
var dependencyTypes = dependencies.map(function (dep) {
return typeof dep;
}).join(', ');
throw new Error('Selector creators expect all input-selectors to be functions, ' + ('instead received the following types: [' + dependencyTypes + ']'));
}
return dependencies;
}
function createSelectorCreator(memoize) {
for (var _len = arguments.length, memoizeOptions = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
memoizeOptions[_key - 1] = arguments[_key];
}
return function () {
for (var _len2 = arguments.length, funcs = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
funcs[_key2] = arguments[_key2];
}
var recomputations = 0;
var resultFunc = funcs.pop();
var dependencies = getDependencies(funcs);
var memoizedResultFunc = memoize.apply(undefined, [function () {
recomputations++; // apply arguments instead of spreading for performance.
return resultFunc.apply(null, arguments);
}].concat(memoizeOptions)); // If a selector is called with the exact same arguments we don't need to traverse our dependencies again.
var selector = memoize(function () {
var params = [];
var length = dependencies.length;
for (var i = 0; i < length; i++) {
// apply arguments instead of spreading and mutate a local list of params for performance.
params.push(dependencies[i].apply(null, arguments));
} // apply arguments instead of spreading for performance.
return memoizedResultFunc.apply(null, params);
});
selector.resultFunc = resultFunc;
selector.dependencies = dependencies;
selector.recomputations = function () {
return recomputations;
};
selector.resetRecomputations = function () {
return recomputations = 0;
};
return selector;
};
}
var createSelector = createSelectorCreator(defaultMemoize);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var getEntities = function getEntities(resource) {
return function (state) {
return path([resource, 'entities'], state);
};
};
var toArray = function toArray(resource) {
return createSelector(getEntities(resource), values);
};
/**
* (query, value) => string
*/
var queryMatches = useWith(includes, [toLower, toLower]);
var getFilterValue = function getFilterValue(resource) {
return function (state) {
return path([resource, 'filter'], state);
};
};
var filterFn = compose(allPass, values, mapObjIndexed(function (query, key) {
return compose(queryMatches(query), path([key]));
}));
var getListWithFilter = function getListWithFilter(resource) {
return createSelector(getFilterValue(resource), toArray(resource), uncurryN(2, compose(filter, filterFn)));
};
var getSortValue = function getSortValue(resource) {
return function (state) {
return path([resource, 'sorting'], state);
};
};
var applyDirection = {
asc: identity,
desc: reverse
};
var compare = function compare(a, b) {
return is(Number, a) ? a - b : String(a).localeCompare(b);
};
var getListSorted = function getListSorted(resource) {
return createSelector(getSortValue(resource), getListWithFilter(resource), function (_ref, array) {
var direction = _ref.direction,
field = _ref.field;
return isNil(field) ? array : propOr(identity, direction, applyDirection)(sort(useWith(compare, [path([field]), path([field])]), array));
});
};
var createResourceSelectors = function createResourceSelectors(resource) {
return {
getList: getListSorted(resource),
getAll: toArray(resource),
getItem: function getItem(state, id) {
var lng = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
return compose(prop(composeId(id, lng)), getEntities(resource))(state);
},
getSorting: getSortValue(resource),
getFilter: getFilterValue(resource),
isLoaded: compose(not, pathEq([resource, 'loaded'], false)),
getLastLoaded: path([resource, 'loaded'])
};
};
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var LIST = 'resource/list';
var GET = 'resource/get';
var CREATE = 'resource/create';
var UPDATE = 'resource/update';
var DELETE = 'resource/delete';
var FILTER = 'resource/filter';
var SORT = 'resource/sort';
var TRANSLATE = 'resource/translate';
var simpleAction = function simpleAction(type, resource) {
return createAction("".concat(type, "/").concat(resource));
};
var getApiOperationName = function getApiOperationName(resource, type) {
return "".concat(resource).concat(type.charAt(0).toUpperCase() + type.slice(1));
};
var createResourceActions = function createResourceActions(resource, apiEndpoint) {
return {
LIST: createAsyncAction("".concat(LIST, "/").concat(resource), function (payload) {
return {
payload: function payload() {
return apiEndpoint[getApiOperationName(resource, 'list')]();
}
};
}),
GET: createAsyncAction("".concat(GET, "/").concat(resource), function (id) {
var lng = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
return {
payload: function payload() {
return apiEndpoint[getApiOperationName(resource, 'get')](id, lng);
}
};
}),
CREATE: createAsyncAction("".concat(CREATE, "/").concat(resource), function (_payload) {
return {
payload: function payload() {
return apiEndpoint[getApiOperationName(resource, 'create')](_payload);
}
};
}),
UPDATE: createAsyncAction("".concat(UPDATE, "/").concat(resource), function (_payload2) {
return {
payload: function payload() {
return apiEndpoint[getApiOperationName(resource, 'update')](_payload2.id, _payload2);
}
};
}),
DELETE: createAsyncAction("".concat(DELETE, "/").concat(resource), function (id) {
var lng = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
return {
payload: function payload() {
return apiEndpoint[getApiOperationName(resource, 'delete')](id, lng).then(function (response) {
return {
id: id,
lng: lng
};
});
}
};
}),
TRANSLATE: createAsyncAction("".concat(TRANSLATE, "/").concat(resource), function (id, lng) {
return {
payload: function payload() {
return apiEndpoint[getApiOperationName(resource, 'translate')](id, {
id: id,
lng: lng
});
}
};
}),
FILTER: simpleAction(FILTER, resource),
SORT: simpleAction(SORT, resource)
};
};
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var createReduxResource = function createReduxResource(resource, apiEndpoint) {
var actions = createResourceActions(resource, apiEndpoint);
var reducer = createResourceReducer(resource, actions);
var selectors = createResourceSelectors(resource);
return {
actions: actions,
reducer: reducer,
selectors: selectors
};
};
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var ADDRESS = createReduxResource('address', AddressApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var ALLOCATIONWAITINGLIST = createReduxResource('allocationwaitinglist', AllocationWaitingListApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var BOOKINGINTEREST = createReduxResource('bookinginterest', BookingInterestApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var CATEGORY = createReduxResource('category', CategoryApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var CERTIFICATE = createReduxResource('certificate', CertificateApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var CONTACTPERSON = createReduxResource('contactperson', ContactPersonApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var COUNTRY = createReduxResource('country', CountryApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var COUPON = createReduxResource('coupon', CouponApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var COUPONCODE = createReduxResource('couponcode', CouponCodeApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var CURRENCY = createReduxResource('currency', CurrencyApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var EDUCATIONHISTORYITEM = createReduxResource('educationhistoryitem', EducationHistoryItemApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var EVENT = createReduxResource('event', EventApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var HOTEL = createReduxResource('hotel', HotelApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var LANGUAGE = createReduxResource('language', LanguageApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var LOCATION = createReduxResource('location', LocationApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var MEDIA = createReduxResource('media', MediaApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var ORDER = createReduxResource('order', OrderApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var ORGANIZER = createReduxResource('organizer', OrganizerApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var PARTICIPANT = createReduxResource('participant', ParticipantApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var PARTICIPATION = createReduxResource('participation', ParticipationApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var PARTICIPATIONCODE = createReduxResource('participationcode', ParticipationCodeApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var PARTNER = createReduxResource('partner', PartnerApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var PAYMENTMETHOD = createReduxResource('paymentmethod', PaymentMethodApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var PRICE = createReduxResource('price', PriceApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var PRODUCT = createReduxResource('product', ProductApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var PRODUCTVARIANT = createReduxResource('productvariant', ProductVariantApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var PROVIDERINFO = createReduxResource('providerinfo', ProviderInfoApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var RECEIVER = createReduxResource('receiver', ReceiverApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var REGION = createReduxResource('region', RegionApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var RESTAURANT = createReduxResource('restaurant', RestaurantApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var REVENUEACCOUNT = createReduxResource('revenueaccount', RevenueAccountApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var ROLEDISCOUNT = createReduxResource('rolediscount', RoleDiscountApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var SEMINAR = createReduxResource('seminar', SeminarApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var SEMINARCONFIGURATION = createReduxResource('seminarconfiguration', SeminarConfigurationApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var SUBSCRIPTION = createReduxResource('subscription', SubscriptionApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var SUBSCRIPTIONCONFIGURATION = createReduxResource('subscriptionconfiguration', SubscriptionConfigurationApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var SUBSCRIPTIONPLAN = createReduxResource('subscriptionplan', SubscriptionPlanApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var TASK = createReduxResource('task', TaskApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var TEST = createReduxResource('test', TestApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var TESTRESULT = createReduxResource('testresult', TestResultApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var TOPIC = createReduxResource('topic', TopicApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var TRAINER = createReduxResource('trainer', TrainerApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var USER = createReduxResource('user', UserApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var USERGROUP = createReduxResource('usergroup', UserGroupApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var VAT = createReduxResource('vat', VatApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var VATITEM = createReduxResource('vatitem', VatItemApi);
/*
* SeminarCatalog Redux
* Redux bridge for SeminarCatalog API Javascript SDK
*
* Contact: info@databay.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.4.12
*
* Do not edit the file manually.
*/
var WAITINGLIST = createReduxResource('waitinglist', WaitingListApi);
export { ADDRESS, ALLOCATIONWAITINGLIST, BOOKINGINTEREST, CATEGORY, CERTIFICATE, CONTACTPERSON, COUNTRY, COUPON, COUPONCODE, CURRENCY, EDUCATIONHISTORYITEM, EVENT, HOTEL, LANGUAGE, LOCATION, MEDIA, ORDER, ORGANIZER, PARTICIPANT, PARTICIPATION, PARTICIPATIONCODE, PARTNER, PAYMENTMETHOD, PRICE, PRODUCT, PRODUCTVARIANT, PROVIDERINFO, RECEIVER, REGION, RESTAURANT, REVENUEACCOUNT, ROLEDISCOUNT, SEMINAR, SEMINARCONFIGURATION, SUBSCRIPTION, SUBSCRIPTIONCONFIGURATION, SUBSCRIPTIONPLAN, TASK, TEST, TESTRESULT, TOPIC, TRAINER, USER, USERGROUP, VAT, VATITEM, WAITINGLIST, createAsyncAction, createEntityReducer, createReduxResource, createResourceActions, createResourceReducer, createResourceSelectors, reducers };