openxiangda-contracts 2.84.0 → 2.86.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.
@@ -1121,7 +1121,7 @@ function compileExpectedContract(config, configDigest, generatorVersion) {
1121
1121
  fail('NATIVE_EVENT_TYPE_NOT_REGISTERED', `${pointer}/eventTypes/${eventIndex}`, { eventType });
1122
1122
  }
1123
1123
  });
1124
- const nativeAction = compileNativeEventAction(subscription, config.data.resources, pointer, { emitEventTypes: eventSchemas.map((schema) => String(schema.eventType)), workflowResources: config.workflows.bindings.map((binding) => String(binding.binding?.resourceCode || binding.resourceCode || '')) });
1124
+ const nativeAction = compileNativeEventAction(subscription, config.data.resources, pointer, { emitEventTypes: eventSchemas.map((schema) => String(schema.eventType)), workflowResources: config.workflows.definitions.map((entry) => String(entry.definition?.subject?.resourceCode || '')) });
1125
1125
  const delivery = validateEventDeliveryPolicy(subscription.delivery, eventTypes, `${pointer}/delivery`);
1126
1126
  const platformAccess = validateEventSubscriptionPlatformAccess(subscription.platformAccess, `${pointer}/platformAccess`, eventResourceFields, config, subscription);
1127
1127
  return {