'use strict';
import { baseResourceProps } from '../../../fd-toolbox/base-resource/props/base-resource-props.js';
import { subscriptionEventStrings, subscriptionEventTypes } from '../../meta/server/integration-platforms/integration-events.js';
import { oDataOrderByDirections } from '../../../fd-toolbox/enums/enums.js';
import { wellKnownMetaProps } from '../../../fd-toolbox-core/constants/meta-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x259582,_0x1c006a)=>__defProp(_0x259582,'name',{'value':_0x1c006a,'configurable':!![]});const subscriptionEventsOData={[subscriptionEventStrings[subscriptionEventTypes['resourceAdded']]]:{'filters':[],'orderBys':[{'propertyName':baseResourceProps['createdDate'],'direction':oDataOrderByDirections['desc'],'priority':0x1}],'expands':[],'selects':[],'top':0x1},[subscriptionEventStrings[subscriptionEventTypes['resourceEdited']]]:{'filters':[],'orderBys':[{'propertyName':baseResourceProps['modifiedDate'],'direction':oDataOrderByDirections['desc'],'priority':0x1}],'expands':[],'selects':[],'top':0x1},[subscriptionEventStrings[subscriptionEventTypes['resourceRemoved']]]:{'top':0x1,'orderBys':[{'propertyName':baseResourceProps['createdDate'],'direction':oDataOrderByDirections['asc'],'priority':0x1}]}};function isSubscriptionEvent(_0x40782c){return _0x40782c===subscriptionEventStrings[subscriptionEventTypes['resourceAdded']]||_0x40782c===subscriptionEventStrings[subscriptionEventTypes['resourceRemoved']]||_0x40782c===subscriptionEventStrings[subscriptionEventTypes['resourceEdited']];}__name(isSubscriptionEvent,'isSubscriptionEvent');function getDynamicFieldsFromUiMeta(_0x1b7b3b){const _0x109e72=[];for(const _0x8ba099 of Object['values'](_0x1b7b3b['properties'])){_0x109e72['push']({'key':_0x8ba099['name'],'label':_0x8ba099['name'],'type':'string','required':_0x8ba099['name']===wellKnownMetaProps['id']});}return _0x109e72;}__name(getDynamicFieldsFromUiMeta,'getDynamicFieldsFromUiMeta');

export { getDynamicFieldsFromUiMeta, isSubscriptionEvent, subscriptionEventsOData };
