Open Cap Table Protocol Canton SDK - v0.2.224
    Preparing search index...

    Function checkDeprecatedFieldsForType

    • Check an array of objects of the same type for deprecated field usage.

      Parameters

      • objectType: string

        The OCF object type for all items

      • items: Record<string, unknown>[]

        Array of data objects to check

      Returns BatchDeprecatedFieldsResult

      Aggregated result with summary statistics

        const stockPlans = [
      { id: 'plan-1', stock_class_id: 'sc-1', plan_name: 'Plan A' },
      { id: 'plan-2', stock_class_ids: ['sc-2'], plan_name: 'Plan B' },
      ];
      const result = checkDeprecatedFieldsForType('StockPlan', stockPlans);